Changeset 3430556
- Timestamp:
- 01/01/2026 02:12:05 PM (3 months ago)
- Location:
- eventkoi-lite/trunk
- Files:
-
- 8 edited
-
eventkoi.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
scripts/backend/build/index.asset.php (modified) (1 diff)
-
scripts/backend/build/index.js (modified) (1 diff)
-
scripts/backend/src/blocks/calendar/edit.js (modified) (2 diffs)
-
scripts/frontend/build/index.asset.php (modified) (1 diff)
-
scripts/frontend/build/index.js (modified) (1 diff)
-
scripts/frontend/src/components/calendar/CalendarGridMode.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eventkoi-lite/trunk/eventkoi.php
r3425990 r3430556 4 4 * Plugin URI: https://eventkoi.com 5 5 * Description: Event and calendar management for WordPress. 6 * Version: 1.2.0. 16 * Version: 1.2.0.2 7 7 * Author: EventKoi 8 8 * Author URI: https://eventkoi.com/ … … 33 33 34 34 // Define constants for the plugin. 35 define( 'EVENTKOI_VERSION', '1.2.0. 1' );35 define( 'EVENTKOI_VERSION', '1.2.0.2' ); 36 36 define( 'EVENTKOI_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 37 37 define( 'EVENTKOI_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
eventkoi-lite/trunk/readme.txt
r3425990 r3430556 6 6 Tested up to: 6.9 7 7 Requires PHP: 8.0 8 Stable tag: 1.2.0. 18 Stable tag: 1.2.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 178 178 == Changelog == 179 179 180 = 1.2.0.2 – Timezone fix – 2026-01-01 = 181 * Fix: Fixed calendar day headers shifting when the server timezone differs from the WordPress timezone. 182 180 183 = 1.2.0.1 – Style fixes – 2025-12-23 = 181 184 * Fix: Fixed image styling in the Event Query Loop block. -
eventkoi-lite/trunk/scripts/backend/build/index.asset.php
r3425990 r3430556 1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-primitives'), 'version' => ' 4a6ba3fc123997dbe40d');1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-primitives'), 'version' => '0bb30b4cd0e15e3d237e'); -
eventkoi-lite/trunk/scripts/backend/build/index.js
r3425990 r3430556 4 4 label:(0,Ms.sprintf)((0,Ms.__)("Current year (%s)","eventkoi-lite"),o)},...Array.from({length:10},((e,t)=>{const n=o+t+1;return{value:String(n),label:String(n)}}))];return"list"===e?.display?null:(0,De.jsx)(Kk,{className:"p-0",children:(0,De.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:[(0,De.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,De.jsx)(Gl,{htmlFor:"default_month",children:(0,Ms.__)("Default month to display","eventkoi-lite")}),(0,De.jsxs)(qh,{value:e?.default_month||"current",onValueChange:e=>r("default_month",e),children:[(0,De.jsx)(Yh,{id:"default_month",className:"w-full max-w-[250px]",children:(0,De.jsx)(Gh,{placeholder:(0,Ms.__)("Select a month","eventkoi-lite")})}),(0,De.jsx)(Qh,{children:yD.map((e=>(0,De.jsx)(Jh,{value:e.value,children:e.label},e.value)))})]}),(0,De.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Ms.__)("Select the month visitors see when they first view the calendar.","eventkoi-lite")})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,De.jsx)(Gl,{htmlFor:"default_year",children:(0,Ms.__)("Default year to display","eventkoi-lite")}),(0,De.jsxs)(qh,{value:e?.default_year||"current",onValueChange:e=>r("default_year",e),children:[(0,De.jsx)(Yh,{id:"default_year",className:"w-full max-w-[250px]",children:(0,De.jsx)(Gh,{placeholder:(0,Ms.__)("Select a year","eventkoi-lite")})}),(0,De.jsx)(Qh,{children:a.map((e=>(0,De.jsx)(Jh,{value:e.value,children:e.label},e.value)))})]}),(0,De.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Ms.__)("Select the year visitors see when they first view the calendar.","eventkoi-lite")})]})]})})}function bD({calendar:t,setCalendar:n}){const r=(0,e.useRef)(null),[o,a]=(0,e.useState)(!1),s=e=>{var t=e.currentTarget.textContent.trim();n((e=>({...e,name:t}))),t?(e.currentTarget.classList.remove("eventkoi-error"),a(!1)):(e.currentTarget.classList.add("eventkoi-error"),a(!0))};return(0,e.useEffect)((()=>{r.current&&0===t.name?.length&&r.current.focus()}),[]),(0,De.jsxs)(Kk,{className:"flex-row items-center flex-wrap gap-y-1",children:[(0,De.jsx)("div",{ref:r,id:"calendar-name",className:"inline-flex rounded-md items-center px-2 py-1 cursor-pointer font-medium text-lg border-2 border-transparent hover:border-input focus:border-input active:border-input",contentEditable:!0,spellCheck:!1,placeholder:"Enter calendar name",dangerouslySetInnerHTML:{__html:t?.name},onBlur:e=>s(e),onKeyDown:e=>"Enter"===e.key&&s(e)}),(0,De.jsxs)("div",{onClick:()=>{(e=>{var t,n;document.createRange?((t=document.createRange()).selectNodeContents(e),t.collapse(!1),(n=window.getSelection()).removeAllRanges(),n.addRange(t)):document.selection&&((t=document.body.createTextRange()).moveToElementText(e),t.collapse(!1),t.select())})(document.getElementById("calendar-name")),r.current.focus()},className:"cursor-pointer inline-flex items-center gap-x-1",children:[(0,De.jsx)(ej,{className:"w-3.5 h-3.5 text-ring"}),(0,De.jsx)("span",{className:"text-xs",children:"Click to edit"})]}),o&&(0,De.jsx)("p",{className:"w-full text-xs text-[#d13d3d]",children:"Calendar name cannot be blank"})]})}function wD({calendar:e,setCalendar:t}){let n=e.name?e.name.replace(/\s+/g,"-").toLowerCase():"";const r=e.slug?e.slug:n;return(0,De.jsxs)(Kk,{className:"p-0",children:[(0,De.jsx)(Gl,{htmlFor:"slug",children:(0,Ms.__)("Slug","eventkoi-lite")}),(0,De.jsx)(nw,{type:"text",id:"slug",value:r,placeholder:(0,Ms.__)("Address","eventkoi-lite"),className:"max-w-[422px]",onChange:e=>{t((t=>({...t,slug:e.target.value})))}}),(0,De.jsxs)("div",{className:"text-muted-foreground",children:[(0,Ms.__)("Define the URL of your calendar","eventkoi-lite"),(0,De.jsx)("br",{}),(0,De.jsx)(De.Fragment,{children:(0,Ms.sprintf)(/* translators: 1: calendar base URL, 2: calendar slug */ /* translators: 1: calendar base URL, 2: calendar slug */ 5 5 (0,Ms.__)("(e.g. %1$s%2$s)","eventkoi-lite"),eventkoi_params.default_cal_url,r)})]})]})}function kD(){const[e,t]=J();return(0,De.jsx)(Wi,{children:(0,De.jsxs)("div",{className:"grid w-full",children:[(0,De.jsx)(bD,{calendar:e,setCalendar:t}),(0,De.jsx)(Bl,{}),(0,De.jsxs)("div",{className:"flex flex-col px-6 py-8 w-full gap-10",children:[(0,De.jsx)(wD,{calendar:e,setCalendar:t}),(0,De.jsx)(vD,{calendar:e,setCalendar:t}),(0,De.jsx)(aD,{calendar:e,setCalendar:t}),(0,De.jsx)(dD,{calendar:e,setCalendar:t}),(0,De.jsx)(xD,{calendar:e,setCalendar:t}),(0,De.jsx)(cD,{calendar:e,setCalendar:t})]})]})})}const _D=(e,t,n)=>`${e.original.name} ${e.original.slug}`.toLowerCase().includes(n.toLowerCase()),SD=(0,e.createContext)({showTourHints:!1,hintStep:1,onLinkClick:()=>{}}),CD=[{id:"select",header:({table:e})=>(0,De.jsx)("div",{className:"flex items-center justify-center min-h-6",children:(0,De.jsx)(Uk,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:t=>e.toggleAllPageRowsSelected(!!t),"aria-label":"Select all rows"})}),cell:({row:e})=>(0,De.jsx)("div",{className:"flex items-center justify-center min-h-6",children:(0,De.jsx)(Uk,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row"})}),enableSorting:!1,enableHiding:!1},{accessorKey:"name",header:({column:e})=>(0,De.jsx)(Ek,{title:"Calendar name",column:e}),cell:function({row:t}){const{showTourHints:n,hintStep:r,onLinkClick:o}=(0,e.useContext)(SD),a=parseInt(t.original.id)===parseInt(eventkoi_params.default_cal),s=`#/calendars/${t.original.id}/main`;return(0,De.jsx)("div",{className:"grid space-y-1",children:(0,De.jsxs)("div",{className:"flex gap-2 items-start text-foreground",children:[(0,De.jsxs)("span",{className:"inline",children:[(0,De.jsx)("a",{href:s,className:"inline font-medium hover:underline hover:decoration-dotted underline-offset-4",children:t.getValue("name")}),(0,De.jsx)(jD,{url:t.original.url,isDefaultCal:a,calendarId:t.original.id,showTourHints:n,hintStep:r,onLinkClick:o})]}),a&&(0,De.jsx)(ml,{variant:"outline",className:"font-normal",children:"Default"})]})})},filterFn:_D,sortingFn:"alphanumeric"},{accessorKey:"slug",header:({column:e})=>(0,De.jsx)(Ek,{title:"Slug",column:e}),cell:({row:e})=>(0,De.jsx)("div",{className:"text-foreground",children:e.getValue("slug")}),filterFn:_D,sortingFn:"alphanumeric"},{accessorKey:"shortcode",header:({column:e})=>(0,De.jsx)(Ek,{title:"Shortcode",column:e}),cell:function({row:t}){const n=t.getValue("shortcode"),[r,o]=(0,e.useState)(!1),[a,s]=(0,e.useState)(0);return(0,De.jsxs)("div",{className:"relative text-foreground w-full max-w-[220px]",children:[(0,De.jsx)(nw,{type:"text",value:n,readOnly:!0,className:"w-full pr-10"}),(0,De.jsx)(WE,{delayDuration:0,children:(0,De.jsxs)(UE,{children:[(0,De.jsx)($E,{asChild:!0,children:(0,De.jsx)(al,{variant:"secondary",size:"icon",className:"absolute h-8 right-[5px] top-[4px] border-none cursor-pointer hover:bg-input",onClick:()=>{navigator.clipboard.writeText(n),o(!0),s((e=>e+1)),setTimeout((()=>{o(!1),s((e=>e+1))}),1500)},"aria-label":"Copy shortcode",children:r?(0,De.jsx)(GE,{className:"h-4 w-4 transition-all duration-200"}):(0,De.jsx)(YE,{className:"h-4 w-4 transition-all duration-200"})})}),(0,De.jsx)(qE,{className:"bg-zinc-900 text-white px-3 py-1.5 text-sm rounded-md shadow-lg",side:"top",sideOffset:8,children:r?"Copied!":"Copy shortcode"})]},a)})]})},filterFn:_D,sortingFn:"alphanumeric"},{accessorKey:"count",header:({column:e})=>(0,De.jsx)(Ek,{title:"Events count",column:e}),cell:({row:e})=>(0,De.jsx)("div",{className:"text-foreground text-right",children:e.getValue("count")}),filterFn:_D,sortingFn:"alphanumeric"}];function jD({url:t,isDefaultCal:n,calendarId:r,showTourHints:o,hintStep:a,onLinkClick:s}){const i=new URLSearchParams(window.location.search),l=(window.location.hash||"").split("?")[1]||"",c=new URLSearchParams(l),d="demo-event"===i.get("onboarding")||"demo-event"===c.get("onboarding"),u=c.get("demo_event_id")||i.get("demo_event_id"),f=(0,e.useMemo)((()=>{let e=t||"";if(d&&o&&2===a&&t)try{const n=new URL(t,window.location.origin);n.searchParams.set("onboarding","demo-event"),u&&n.searchParams.set("demo_event_id",u),e=n.toString()}catch{e=t}return e}),[t,d,u,o,a]);return(0,De.jsx)("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"ms-2 text-muted-foreground hover:text-foreground shrink-0 eventkoi-calendar-link-icon","data-default-cal-link":n?"true":void 0,"aria-label":"View public calendar","data-calendar-id":r,onClick:e=>{s?.();try{e.preventDefault(),window.open(f,"_blank","noopener,noreferrer")}catch{}},children:(0,De.jsx)($k,{className:"w-5 h-5 inline-block"})})}function ED(){var t;const[n,r]=je(),o=K(),a=G(),s=n.get("onboarding")||"",i=parseInt(n.get("demo_event_id")||(null!==(t=window?.eventkoi_params?.demo_event_id)&&void 0!==t?t:0),10)||0,l=(0,e.useMemo)((()=>{const e=parseInt(n.get("hint"),10);return Number.isFinite(e)?Math.min(Math.max(e,1),2):null}),[n]),c=l||1,d=(0,e.useMemo)((()=>{const e=new URLSearchParams(n);return e.delete("hint"),e.delete("onboarding"),e.delete("demo_event_id"),e.toString()}),[n]),[u,f]=(0,e.useState)([]),[h,m]=(0,e.useState)(!1),[p,g]=(0,e.useState)("demo-event"===s),[v,y]=(0,e.useState)("demo-event"===s),[x,b]=(0,e.useState)(null),[w,k]=(0,e.useState)(!1),[_,S]=(0,e.useState)(!1),[C,j]=(0,e.useState)(!1),E=(0,e.useMemo)((()=>[{key:"event",title:(0,Ms.__)("Publish demo event","eventkoi-lite")},{key:"view",title:(0,Ms.__)("View default calendar","eventkoi-lite")}]),[]),N=async()=>{try{const e=await Ne()({path:`${eventkoi_params.api}/calendars`,method:"get"});f(e),console.log("loading calendars...")}catch(e){console.error("Failed to load calendars:",e)}finally{m(!1)}};(0,e.useEffect)((()=>{m(!0),N()}),[d]),(0,e.useEffect)((()=>{if("undefined"==typeof window)return;const e="1"===window.localStorage.getItem("eventkoi_onboarding_demo_complete");k(e)}),[]),(0,e.useEffect)((()=>{if("demo-event"===s){if(C)return;p||g(!0),v||w||y(!0);try{window.localStorage.setItem("eventkoi_onboarding_active","1")}catch{}}}),[s,l,p,v,w,C]),(0,e.useEffect)((()=>{if("demo-event"!==s||l)return;const e=new URLSearchParams(n);e.set("hint","1"),o({search:e.toString()?`?${e.toString()}`:""},{replace:!0})}),[s,l,n,o]);const D=()=>{const e=new URLSearchParams(a.search);e.delete("onboarding"),e.delete("demo_event_id"),e.delete("hint"),o({search:e.toString()?`?${e.toString()}`:""},{replace:!0})},T=(0,e.useCallback)((()=>{if(!v)return;let e=null;const t=["ring-2","ring-[#fb4409]","rounded-sm"];if(2===c&&(e=document.querySelector('[data-default-cal-link="true"]'),e&&(e.classList.add("eventkoi-cal-link-highlight"),t.forEach((t=>e.classList.add(t))))),e||(e=document.querySelector(".eventkoi-calendars-heading h1")),!e){b(null);const e=document.querySelector(".eventkoi-cal-link-highlight");return e&&(e.classList.remove("eventkoi-cal-link-highlight"),t.forEach((t=>e.classList.remove(t)))),void(v&&setTimeout((()=>{T()}),250))}const n=e.getBoundingClientRect();b({top:2===c?n.top-27:n.top-17,left:2===c?n.right+14:n.right+22})}),[v,c]);(0,e.useEffect)((()=>{if(T(),!v)return;const e=()=>T();return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}),[v,c,T]),(0,e.useEffect)((()=>{v&&T()}),[u,v,c,T]),(0,e.useEffect)((()=>{if(!v||2!==c){const e=document.querySelector(".eventkoi-cal-link-highlight");return void(e&&(e.classList.remove("eventkoi-cal-link-highlight"),["ring-2","ring-[#fb4409]","rounded-sm"].forEach((t=>e.classList.remove(t)))))}const e=document.querySelector('[data-default-cal-link="true"]');e&&(e.classList.add("eventkoi-cal-link-highlight"),["ring-2","ring-[#fb4409]","rounded-sm"].forEach((t=>e.classList.add(t))))}),[v,c]),(0,e.useEffect)((()=>{}),[v,s]);const A=(0,e.useCallback)((()=>{y(!1),k(!0),S(!0),window?.localStorage?.setItem("eventkoi_onboarding_demo_complete","1")}),[]),R=p?_?(0,De.jsxs)("div",{className:"eventkoi-onboarding-widget fixed bottom-8 right-8 z-50 w-[250px] rounded-lg shadow-md",style:{boxSizing:"border-box",fontFamily:"Inter, system-ui, sans-serif"},children:[(0,De.jsxs)("div",{className:"flex items-center gap-2 bg-[#EDFBF8] p-4 rounded-t-lg",children:[(0,De.jsx)("span",{className:"text-[18px]","aria-hidden":"true",children:"🥳"}),(0,De.jsx)("div",{className:"text-[14px] font-semibold text-[#0D5342] leading-tight",children:(0,De.jsx)("span",{className:"block",children:(0,Ms.__)("EventKoi Plugin Tour Completed!","eventkoi")})}),(0,De.jsx)("button",{type:"button",className:"ml-auto p-0 text-[#555] hover:text-black transition-colors leading-none -mt-1","aria-label":(0,Ms.__)("Close","eventkoi"),style:{background:"transparent",border:"none",fontSize:"24px",cursor:"pointer"},onClick:()=>{g(!1),D()},children:"×"})]}),(0,De.jsxs)("div",{className:"p-4 border border-solid border-border bg-white rounded-b-lg flex flex-col gap-4",children:[(0,De.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,De.jsx)("div",{className:"text-[14px] text-[#161616] font-medium text-center w-full",children:(0,Ms.__)("What you can do next:","eventkoi")}),(0,De.jsx)(al,{asChild:!0,className:"w-full h-10 text-[12px] rounded-sm font-medium text-[#FBFBFB] bg-[#161616] hover:bg-black","data-eventkoi-dashboard":!0,style:{boxSizing:"border-box"},children:(0,De.jsx)("a",{className:"no-underline",href:`${window.eventkoi_params?.admin_page||"/wp-admin/admin.php?page=eventkoi"}#/dashboard`,children:(0,Ms.__)("Go to EventKoi Dashboard","eventkoi")})}),(0,De.jsx)(al,{asChild:!0,variant:"outline",className:"w-full rounded-sm border border-solid border-[#161616] py-2 h-10 text-[12px] font-medium hover:bg-white text-[#161616] whitespace-normal",style:{boxSizing:"border-box"},children:(0,De.jsx)("a",{className:"no-underline text-[#161616] text-center",href:"https://eventkoi.com/docs/knowledge-base/how-to-customise-the-default-events-template/",target:"_blank",rel:"noopener noreferrer",children:(0,Ms.__)("Learn how to customize an Event Template","eventkoi")})})]}),(0,De.jsx)("div",{className:"h-[1px] w-full bg-border"}),(0,De.jsx)("p",{className:"text-[12px] text-[#555] m-0",children:(0,Ms.__)("You can restart this Tour any time in the EventKoi Dashboard.","eventkoi")})]})]}):(0,De.jsxs)("div",{className:"fixed bottom-8 right-8 z-50 w-[250px] rounded-lg border border-border bg-white shadow-xl p-4 space-y-4",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(Ti,{width:"18",height:"23"}),(0,De.jsx)("div",{className:"text-[14px] font-semibold text-black",children:(0,De.jsx)("span",{className:"block",children:(0,Ms.__)("EventKoi Plugin Tour","eventkoi-lite")})}),(0,De.jsx)("button",{type:"button",className:"ml-auto text-[#555] hover:text-black transition-colors text-2xl leading-none -mt-1",onClick:()=>{g(!1),D(),j(!0),y(!1),b(null);try{window.localStorage.removeItem("eventkoi_onboarding_active")}catch{}},"aria-label":(0,Ms.__)("Close","eventkoi-lite"),children:"×"})]}),(0,De.jsxs)("div",{className:"space-y-1",children:[(0,De.jsx)("div",{className:"h-[1px] w-full bg-border"}),(0,De.jsx)("div",{className:"h-1"}),E.map(((e,t)=>{var n;const r=null!==(n=e.sidebarKey)&&void 0!==n?n:e.key,o="event"===r&&w,a="view"===r;return(0,De.jsx)("button",{type:"button",className:Ni("w-full h-9 rounded-lg cursor-default border px-3 py-3 text-left transition bg-white text-[#161616] text-[14px] font-medium","border-none flex items-center focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",a&&"bg-[#e6e6e6]",o&&"line-through text-[#137C63]"),children:(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[o?(0,De.jsx)(pl,{className:"h-4 w-4 text-[#137C63]"}):(0,De.jsx)(gl,{className:"h-4 w-4 text-[#161616]"}),(0,De.jsx)("span",{className:"text-[14px] font-medium",children:e.title})]})},e.key)})),(0,De.jsx)("div",{className:"h-[1px] w-full bg-border"})]}),(0,De.jsx)("div",{className:"text-[12px] text-[#555]",children:(0,Ms.__)("You can restart this Tour any time in the EventKoi Dashboard.","eventkoi-lite")})]}):null,M=v&&x?(0,De.jsx)("div",{className:"pointer-events-none fixed inset-0 z-[100001]",children:(0,De.jsxs)("div",{className:"pointer-events-auto absolute max-w-xs bg-[#161616] border border-border shadow-lg rounded-lg p-4 flex flex-col gap-2",style:{top:x.top,left:x.left},children:[(0,De.jsx)("div",{className:"absolute top-6 -left-2 w-0 h-0 border-y-[10px] border-y-transparent border-r-[10px] border-r-[#161616]"}),(0,De.jsx)("button",{type:"button",className:"absolute top-2 right-2 text-[#FBFBFB] hover:text-white transition-colors text-2xl leading-none",onClick:()=>{y(!1),D(),j(!0),b(null);try{window.localStorage.removeItem("eventkoi_onboarding_active")}catch{}},"aria-label":(0,Ms.__)("Close","eventkoi-lite"),children:"×"}),(0,De.jsxs)("div",{className:"text-[16px] font-semibold text-[#FBFBFB] flex flex-col pr-6",children:[2===c&&(0,De.jsx)("span",{className:"mb-2",children:(0,De.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[(0,De.jsx)("path",{d:"M10.5 3.07495L9 4.49995",stroke:"white",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M3.82502 5.9999L1.65002 5.3999",stroke:"white",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M4.50001 9L3.07501 10.5",stroke:"white",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M5.40002 1.6499L6.00002 3.8249",stroke:"white",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M6.77774 7.26749C6.74866 7.19898 6.74071 7.12334 6.75491 7.05028C6.76911 6.97722 6.80481 6.91007 6.85744 6.85744C6.91007 6.80481 6.97722 6.76911 7.05028 6.75491C7.12334 6.74071 7.19898 6.74866 7.26749 6.77774L15.5175 10.1527C15.5909 10.1829 15.6529 10.2355 15.6945 10.3031C15.7361 10.3707 15.7552 10.4497 15.749 10.5288C15.7429 10.608 15.7117 10.6831 15.6602 10.7434C15.6086 10.8037 15.5392 10.8461 15.462 10.8645L12.2002 11.6452C12.0656 11.6774 11.9425 11.7462 11.8445 11.844C11.7466 11.9419 11.6776 12.0649 11.6452 12.1995L10.8652 15.462C10.8471 15.5395 10.8047 15.6091 10.7443 15.6609C10.6839 15.7128 10.6086 15.744 10.5293 15.7502C10.4499 15.7564 10.3707 15.7372 10.303 15.6953C10.2353 15.6535 10.1827 15.5912 10.1527 15.5175L6.77774 7.26749Z",stroke:"white",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,De.jsx)("span",{children:1===c?(0,Ms.__)("Welcome to your Calendars","eventkoi-lite"):(0,Ms.__)("Take action: Click link icon","eventkoi-lite")})]}),(0,De.jsx)("p",{className:"text-sm text-[#FBFBFB]",children:1===c?(0,Ms.__)("Here, you can create new calendars, edit existing ones, and more.","eventkoi-lite"):(0,De.jsxs)(De.Fragment,{children:[(0,Ms.__)("Click the icon to view the frontend calendar.","eventkoi-lite"),(0,De.jsx)("span",{className:"block mt-1",children:(0,Ms.__)("This is your last step in the tour.","eventkoi-lite")})]})}),(0,De.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,De.jsx)("span",{className:"text-[14px] text-[#FBFBFB]",children:(0,Ms.sprintf)(/* translators: 1: current step number, 2: total steps */ /* translators: 1: current step number, 2: total steps */ 6 (0,Ms.__)("%1$s of %2$s","eventkoi-lite"),c,2)}),(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[1===c&&(0,De.jsx)(al,{size:"sm",variant:"ghost",className:"h-[26px] font-medium text-[#FBFBFB] hover:underline hover:bg-transparent hover:text-[#FBFBFB]",onClick:()=>{var e;const t=new URLSearchParams;t.set("onboarding","demo-event"),t.set("hint","1");const n=i||parseInt(null!==(e=window?.eventkoi_params?.demo_event_id)&&void 0!==e?e:0,10)||0;n?(t.set("demo_event_id",String(n)),o(`/events/${n}/main?${t.toString()}`,{replace:!1})):o(`/events?${t.toString()}`,{replace:!1})},children:(0,Ms.__)("Back","eventkoi-lite")}),1===c?(0,De.jsx)(al,{size:"sm",variant:"outline",className:"h-[26px] font-medium",onClick:()=>{const e=new URLSearchParams(n);e.set("hint","2"),o({search:e.toString()?`?${e.toString()}`:""},{replace:!1})},children:(0,Ms.__)("Next","eventkoi-lite")}):(0,De.jsx)(al,{size:"sm",variant:"ghost",className:"h-[26px] font-medium text-[#FBFBFB] hover:underline hover:bg-transparent hover:text-[#FBFBFB]",onClick:()=>{const e=new URLSearchParams(n);e.set("hint","1"),o({search:e.toString()?`?${e.toString()}`:""},{replace:!1})},children:(0,Ms.__)("Back","eventkoi-lite")})]})]})]})}):null;return(0,De.jsxs)(SD.Provider,{value:{showTourHints:v,hintStep:c,onLinkClick:A},children:[(0,De.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,De.jsxs)("div",{className:"mx-auto flex w-full gap-2 justify-between",children:[(0,De.jsx)(Bi,{className:"eventkoi-calendars-heading",children:"Calendars"}),(0,De.jsx)($N,{title:"Add calendar",url:"/calendars/add"})]}),(0,De.jsx)(jk,{data:u,columns:CD,empty:"No calendars are found.",base:"calendars",hideStatusFilters:!0,isLoading:h,fetchResults:N,hideCategories:!0,hideDateRange:!0})]}),R,M]})}const ND=[{name:"default",title:"Default settings"},{name:"integrations",title:"API & integrations"}];function DD({settings:e,setSettings:t,location:n}){var r=n.pathname?.split("/"),o=r[2];const a="font-medium px-3 py-3 rounded-lg text-foreground bg-foreground/5";return(0,De.jsx)("nav",{className:"grid gap-1 text-sm text-muted-foreground",children:ND.map((function(e,t){let n="font-medium px-3 py-3 rounded-lg";return r&&o&&o===e.name&&(n=a),r&&!o&&"default"===e.name&&(n=a),(0,De.jsx)(_e,{to:e.name,className:n,children:e.title},`setting-tab-${t}`)}))})}function TD(){const t=G(),[n,r]=(0,e.useState)(null);(0,e.useEffect)((()=>{(async()=>{try{const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"get",headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});r(e),console.log(e)}catch(e){console.error("Failed to load settings:",e)}})()}),[]);const o=(0,e.useMemo)((()=>[n,r]),[n]);return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(Li,{root:"settings"}),(0,De.jsxs)(Fi,{className:"max-w-[1180px]",children:[(0,De.jsxs)("div",{className:Ni("w-full mx-auto items-start gap-6","grid grid-cols-1 md:grid-cols-[180px_1fr]"),children:[(0,De.jsx)(DD,{settings:n,setSettings:r,location:t}),(0,De.jsx)("div",{className:"grid",children:n?(0,De.jsx)(de,{context:o}):(0,De.jsx)("div",{className:"p-8 text-muted-foreground",children:"Loading settings…"})})]}),(0,De.jsx)("div",{className:"h-10"})]})]})}function AD(){const[t,n]=(0,e.useState)(!1),[r,o]=(0,e.useState)(null);return(0,De.jsx)(Wi,{children:(0,De.jsxs)("div",{className:"grid w-full",children:[(0,De.jsx)(Kk,{variant:"header",children:(0,De.jsx)(Bi,{level:3,children:"EventKoi API"})}),(0,De.jsx)(Bl,{}),(0,De.jsxs)(Kk,{className:"gap-6",children:[(0,De.jsxs)("div",{className:"space-y-2",children:[(0,De.jsx)(Gl,{children:"Developer API key"}),(0,De.jsxs)("p",{className:"text-sm text-muted-foreground",children:["This key is kept private and is not displayed. You may regenerate it below if needed. The new key will be shown"," ",(0,De.jsx)("strong",{children:"only once"}),", so please copy it immediately."]})]}),r&&(0,De.jsx)("div",{className:"bg-muted/40 border border-muted rounded px-3 py-2",children:(0,De.jsx)("code",{className:"bg-transparent text-sm break-all",children:r})}),(0,De.jsx)("div",{className:"inline-flex",children:(0,De.jsx)(al,{variant:"default",onClick:async()=>{try{n(!0);const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"POST",data:{api_key:"refresh"},headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});e?.api_key?(o(e.api_key),ip({message:"API key regenerated successfully."})):lp("Unexpected response.")}catch(t){var e;lp(null!==(e=t?.message)&&void 0!==e?e:"Something went wrong.")}finally{n(!1)}},disabled:t,className:"w-48",children:t?"Regenerating...":"Regenerate API key"})})]})]})})}function RD({settings:t,setSettings:n}){var r;const[o,a]=(0,e.useState)(!1),[s,i]=(0,e.useState)(!1);let l;return l=t?.gmap_connection_status?s?"Testing...":"Test connection":s?"Connecting...":"Connect",(0,De.jsx)(Wi,{children:(0,De.jsxs)("div",{className:"grid w-full",children:[(0,De.jsx)(Kk,{variant:"header",children:(0,De.jsx)(Bi,{level:3,children:"Google maps"})}),(0,De.jsx)(Bl,{}),(0,De.jsxs)(Kk,{className:"gap-6",children:[(0,De.jsxs)(dC,{className:"flex gap-x-8 bg-gray-50",children:[(0,De.jsx)(uC,{children:"You need an API key from Google to integrate Google maps. Follow this doc to generate API key."}),(0,De.jsx)(al,{variant:"outline",onClick:()=>{window.open("https://developers.google.com/maps/documentation/javascript/get-api-key","_blank")},children:"View doc"})]}),(0,De.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[(0,De.jsx)(Gl,{htmlFor:"ek-gmap-api-key",children:"Google API key"}),(0,De.jsx)(nw,{type:"password",id:"ek-gmap-api-key",value:null!==(r=t?.gmap_api_key)&&void 0!==r?r:"",placeholder:"Enter your API key",disabled:t?.gmap_connection_status,className:"",onChange:e=>{n((t=>({...t,gmap_api_key:e.target.value})))}})]}),(0,De.jsxs)("div",{className:"inline-flex gap-2",children:[(0,De.jsx)(al,{variant:"default",onClick:async()=>{try{i(!0),await(async e=>{const t=`https://maps.googleapis.com/maps/api/geocode/json?address=New+York&key=${e}`,n=await fetch(t),r=await n.json();var o;if("OK"!==r.status)throw new Error(null!==(o=r?.error_message)&&void 0!==o?o:"Invalid API Key.");return r})(t?.gmap_api_key);const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"post",data:{gmap_api_key:t?.gmap_api_key,gmap_connection_status:!0},headers:{"EVENTKOI-API-KEY":t?.api_key}});n(e.settings),i(!1),ip({...e,message:"API successfully connected."})}catch(t){var e;lp(null!==(e=t?.message)&&void 0!==e?e:"Something wrong.")}finally{i(!1)}},disabled:s||!t?.gmap_api_key||o,className:"w-40",children:l}),t?.gmap_connection_status&&(0,De.jsx)(al,{variant:"link",onClick:async()=>{try{a(!0);const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"post",data:{gmap_api_key:null,gmap_connection_status:!1},headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});n(e.settings),a(!1),ip({...e,message:"API key removed."})}catch(t){var e;lp(null!==(e=t?.message)&&void 0!==e?e:"Something wrong.")}finally{a(!1)}},disabled:o||s,className:"w-40",children:o?"Removing...":"Remove API Key"})]})]})]})})}function MD(){const[e,t]=J();return(0,De.jsxs)("div",{className:"grid gap-8",children:[(0,De.jsx)(AD,{settings:e,setSettings:t}),(0,De.jsx)(RD,{settings:e,setSettings:t})]})}const ID=["Mo","Tu","We","Th","Fr","Sa","Su"],OD={0:"Monday",1:"Tuesday",2:"Wednesday",3:"Thursday",4:"Friday",5:"Saturday",6:"Sunday"};function PD(){const{settings:t,refreshSettings:n}=Re(),[r,o]=(0,e.useState)(!1),[a,s]=(0,e.useState)(t?.time_format||"12");(0,e.useEffect)((()=>{t?.time_format&&t.time_format!==a&&s(t.time_format)}),[t?.time_format]);const i=(0,e.useMemo)((()=>Array.isArray(t?.working_days)?t.working_days.map((e=>parseInt(e,10))):[0,1,2,3,4]),[t?.working_days]),l=(0,e.useMemo)((()=>void 0!==t?.week_starts_on?parseInt(t.week_starts_on,10):0),[t?.week_starts_on]),c=(0,e.useMemo)((()=>[...ID.slice(l),...ID.slice(0,l)]),[l]),d=async e=>{try{o(!0);const t=await Ne()({path:`${eventkoi_params.api}/settings`,method:"post",data:e,headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});await n(),ip({...t,message:"Settings updated."})}catch(e){var t;lp(null!==(t=e?.message)&&void 0!==t?t:"Failed to update setting.")}finally{o(!1)}};return(0,De.jsx)("div",{className:"grid gap-8",children:(0,De.jsx)(Wi,{children:(0,De.jsxs)("div",{className:"grid w-full",children:[(0,De.jsx)(Kk,{variant:"header",children:(0,De.jsx)(Bi,{level:3,children:"General Settings"})}),(0,De.jsx)(Bl,{}),(0,De.jsxs)(Kk,{className:"gap-10",children:[(0,De.jsxs)("div",{className:"grid gap-2",children:[(0,De.jsx)(Gl,{htmlFor:"week-start",children:"Week starts on"}),(0,De.jsxs)(qh,{value:String(l),onValueChange:e=>{const t=parseInt(e,10);isNaN(t)||d({week_starts_on:t})},disabled:r,children:[(0,De.jsx)(Yh,{id:"week-start",className:"w-[250px]",children:(0,De.jsx)(Gh,{placeholder:"Select a day"})}),(0,De.jsx)(Qh,{children:Object.entries(OD).map((([e,t])=>(0,De.jsx)(Jh,{value:e,children:t},`option-${e}`)))})]}),(0,De.jsx)("div",{className:"text-muted-foreground",children:"Select the day calendars use as the start of the week."})]}),(0,De.jsxs)("div",{className:"grid gap-2",children:[(0,De.jsx)(Gl,{className:"text-sm font-medium",children:"Working days"}),(0,De.jsx)("div",{className:"flex items-center gap-4 flex-wrap",children:c.map(((e,t)=>{const n=(l+t)%7;return(0,De.jsx)(al,{type:"button",size:"sm",variant:i.includes(n)?"default":"secondary",className:Ni("rounded-full w-9 h-9 p-0 transition-none text-smm font-medium",i.includes(n)?"bg-foreground text-background":"bg-secondary border border-input text-foreground/80"),onClick:()=>(e=>{const t=i.includes(e)?i.filter((t=>t!==e)):[...i,e].sort();d({working_days:t})})(n),children:e},e)}))}),(0,De.jsx)("div",{className:"text-muted-foreground",children:"Select your working days. These are used for recurring event rules."})]}),(0,De.jsxs)("div",{className:"grid gap-2",children:[(0,De.jsx)(Gl,{className:"text-sm font-medium",children:"Time format"}),(0,De.jsx)(Lm,{value:a,onValueChange:e=>{s(e),e!==t?.time_format&&d({time_format:e})},className:"w-[350px]",children:(0,De.jsxs)(Fm,{className:"border border-input rounded-lg w-full flex",children:[(0,De.jsx)(zm,{value:"12",className:"flex-1 rounded-lg text-center",children:"12-hour (AM/PM) clock"}),(0,De.jsx)(zm,{value:"24",className:"flex-1 rounded-lg text-center",children:"24-hour clock"})]})}),(0,De.jsx)("div",{className:"text-muted-foreground",children:"Select how event times are displayed (e.g. 2:00 PM or 14:00)."})]})]})]})})})}const LD=Mi("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);function FD({isEvent:t=!1,isCalendar:n=!1}){const r=G(),[o,a]=(0,e.useState)(!1),s=r.pathname.split("events/");if(s[1]&&(parseInt(s[1])>0||s[1].includes("add"))&&(t=!0),t)return null;const i=r.pathname.split("calendars/");return i[1]&&(parseInt(i[1])>0||i[1].includes("add"))&&(n=!0),n?null:(0,De.jsxs)("header",{className:Ni("relative bg-white shadow-sm md:shadow-none md:bg-transparent border-b px-4 py-4 md:py-2 text-sm",t&&"sticky top-8 z-[500] bg-muted h-20 shadow-sm border-none"),children:[(0,De.jsxs)("div",{className:"flex items-center justify-between md:justify-start gap-6",children:[(0,De.jsx)(Ai,{}),(0,De.jsx)("button",{onClick:()=>a(!o),className:"md:hidden text-muted-foreground focus:outline-none",children:o?(0,De.jsx)(Jp,{className:"w-6 h-6"}):(0,De.jsx)(LD,{className:"w-6 h-6"})}),(0,De.jsx)("div",{className:"hidden md:flex",children:(0,De.jsx)(Oi,{tabs:Pi.main})}),(0,De.jsxs)("div",{className:"hidden md:flex ml-auto items-center gap-2",children:[(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(dl,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Read docs"})]}),(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/request-support/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(ul,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Request support"})]})]})]}),o&&(0,De.jsxs)("div",{className:"md:hidden mt-4 space-y-4",children:[(0,De.jsx)(Oi,{tabs:Pi.main}),(0,De.jsxs)("div",{className:"flex flex-col gap-2 pt-4 border-t",children:[(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-0 md:px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(dl,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Read docs"})]}),(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/request-support/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-0 md:px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(ul,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Request support"})]})]})]})]})}var zD=["light","dark"],HD=e.createContext(void 0),BD={setTheme:e=>{},themes:[]};e.memo((({forcedTheme:t,storageKey:n,attribute:r,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:i,attrs:l,nonce:c})=>{let d="system"===s,u="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${l.map((e=>`'${e}'`)).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=a?zD.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(e,t=!1,n=!0)=>{let o=i?i[e]:e,s=t?e+"|| ''":`'${o}'`,l="";return a&&n&&!t&&zD.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=t?`!function(){${u}${h(t)}}()`:o?`!function(){try{${u}var e=localStorage.getItem('${n}');if('system'===e||(!e&&${d})){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${d?"":"else{"+h(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${n}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${f}}catch(t){}}();`;return e.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})}));const VD=({...t})=>{const{theme:n="system"}=null!=(r=e.useContext(HD))?r:BD;var r;return(0,De.jsx)(ap,{theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};function WD(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function UD(){const t=G(),{width:n}=function(){const[t,n]=(0,e.useState)(WD());return(0,e.useEffect)((()=>{function e(){n(WD())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),t}(),r=/^\/tickets\/orders\/[0-9a-fA-F-]{36}$/.test(t.pathname)||/^\/events\/\d+/.test(t.pathname)||/^\/calendars\/\d+/.test(t.pathname);let o=0;return n>=960&&(o=160),n<960&&n>780&&(o=32),(0,e.useEffect)((()=>{jQuery(".wp-toolbar").css({backgroundColor:"inherit"});const e=t.pathname?.split("/")?.[1];jQuery("#toplevel_page_eventkoi ul.wp-submenu-wrap li").removeClass("current"),jQuery('#toplevel_page_eventkoi ul.wp-submenu-wrap li a[href*="eventkoi#/'+e+'"]').parent().addClass("current")}),[t]),(0,De.jsxs)("div",{className:"w-full flex flex-col min-h-[calc(100vh-46px)] md:min-h-[calc(100vh-32px)]",children:[(0,De.jsx)(VD,{expand:!0,position:"bottom-right",visibleToasts:2,toastOptions:{unstyled:!0,className:"",style:{right:"1rem",bottom:"1rem"}}}),!r&&(0,De.jsx)(FD,{}),(0,De.jsxs)(he,{children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(cg,{})}),(0,De.jsxs)(ue,{path:"dashboard",element:(0,De.jsx)(zi,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(Pl,{})}),(0,De.jsx)(ue,{path:"overview",element:(0,De.jsx)(Pl,{})}),(0,De.jsx)(ue,{path:"onboarding",element:(0,De.jsx)(lg,{})}),(0,De.jsx)(ue,{path:"*",element:(0,De.jsx)(cg,{})})]}),(0,De.jsxs)(ue,{path:"events",element:(0,De.jsx)(dg,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(ZN,{})}),(0,De.jsx)(ue,{path:"",element:(0,De.jsx)(ZN,{})}),(0,De.jsx)(ue,{path:"templates",element:(0,De.jsx)(KN,{})})]}),(0,De.jsxs)(ue,{path:"events/:id",element:(0,De.jsx)(Fy,{}),children:[(0,De.jsx)(ue,{path:"main",element:(0,De.jsx)(UN,{})}),(0,De.jsx)(ue,{path:"instances",element:(0,De.jsx)(YS,{})}),(0,De.jsx)(ue,{path:"instances/edit/:timestamp",element:(0,De.jsx)(aj,{})})]}),(0,De.jsxs)(ue,{path:"calendars",element:(0,De.jsx)(QN,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(ED,{})}),(0,De.jsx)(ue,{path:"",element:(0,De.jsx)(ED,{})})]}),(0,De.jsxs)(ue,{path:"calendars/:id",element:(0,De.jsx)(oD,{}),children:[(0,De.jsx)(ue,{path:"main",element:(0,De.jsx)(kD,{})}),(0,De.jsx)(ue,{path:"details",element:(0,De.jsx)(uD,{})}),(0,De.jsx)(ue,{path:"embed",element:(0,De.jsx)(pD,{})})]}),(0,De.jsxs)(ue,{path:"settings",element:(0,De.jsx)(TD,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(PD,{})}),(0,De.jsx)(ue,{path:"default",element:(0,De.jsx)(PD,{})}),(0,De.jsx)(ue,{path:"integrations",element:(0,De.jsx)(MD,{})})]}),(0,De.jsx)(ue,{path:"*",element:(0,De.jsx)(cg,{})})]})]})}const $D=document.getElementById("eventkoi-admin");$D&&(0,a.H)($D).render((0,De.jsx)(be,{children:(0,De.jsx)(Me,{children:(0,De.jsx)(UD,{})})}));const qD=window.wp.blocks,GD=("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en").split("_")[0],YD=Array.from({length:12},((e,t)=>new Intl.DateTimeFormat(GD,{month:"short"}).format(new Date(2e3,t,1))));function ZD({calendarApi:t,currentDate:n,setCurrentDate:r}){const[o,a]=(0,e.useState)(!1),s=t?.view?.calendar?.getOption("timeZone")||"UTC";let i=n instanceof Date?n:new Date(n);isNaN(i)&&(i=new Date);const l=vs.fromJSDate(i,{zone:s}),c=l.year,d=l.month-1;return(0,De.jsxs)(Jb,{open:o,onOpenChange:a,children:[(0,De.jsx)(Xb,{asChild:!0,children:(0,De.jsxs)(al,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[`${YD[d]} ${c}`,(0,De.jsx)(Ii,{className:"h-4 w-4 min-w-4"})]})}),(0,De.jsxs)(ew,{side:"bottom",align:"start",sideOffset:20,className:"w-[240px] rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden",children:[(0,De.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,De.jsx)(al,{variant:"ghost",size:"icon",onClick:()=>{const e=l.minus({years:1}).startOf("month").toJSDate();t.gotoDate(e),r(e)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,De.jsx)(mg,{className:"w-4 h-4"})}),(0,De.jsx)("div",{className:"text-sm font-medium",children:c}),(0,De.jsx)(al,{variant:"ghost",size:"icon",onClick:()=>{const e=l.plus({years:1}).startOf("month").toJSDate();t.gotoDate(e),r(e)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,De.jsx)(hg,{className:"w-4 h-4"})})]}),(0,De.jsx)("div",{className:"grid grid-cols-4 gap-2",children:YD.map(((e,n)=>(0,De.jsx)(al,{variant:"ghost",className:Ni("text-sm font-medium bg-transparent text-foreground border-none shadow-none cursor-pointer hover:bg-muted",n===d&&"bg-muted text-foreground font-semibold"),onClick:()=>(e=>{const n=vs.fromObject({year:c,month:e+1,day:1},{zone:s}).toJSDate();t.gotoDate(n),r(n),a(!1)})(n),children:e},e)))})]})]})}function KD({calendarApi:e,currentDate:t,setCurrentDate:n}){return(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(al,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.prev(),children:(0,De.jsx)(mg,{className:"w-4 h-4"})}),(0,De.jsx)(al,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.next(),children:(0,De.jsx)(hg,{className:"w-4 h-4"})})]})}function QD({inputRef:e,search:t,setSearch:n,open:r,setOpen:o,filteredResults:a,paginatedResults:s,totalPages:i,page:l,setPage:c,timezone:d,timeFormat:u,setSearchOpen:f}){return(0,De.jsxs)("div",{className:"relative w-full lg:min-w-[350px]",children:[(0,De.jsx)(nw,{ref:e,placeholder:"Search events…",value:t,onFocus:()=>o(!0),onBlur:()=>{setTimeout((()=>{o(!1),f?.(!1)}),150)},onChange:e=>n(e.target.value),className:"pl-9 h-10 w-full shadow-none border border-solid box-border rounded",autoComplete:"off"}),(0,De.jsx)("span",{className:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none",children:(0,De.jsx)(rw,{className:"w-4 h-4"})}),r&&t&&(0,De.jsx)(qj,{className:Ni("absolute z-50 left-0 top-12 w-full rounded-md border bg-popover text-popover-foreground shadow-md border-border border-solid","max-h-[400px] h-auto"),children:(0,De.jsx)(Yj,{className:"p-2 max-h-[400px] overflow-y-auto",children:0===a.length?(0,De.jsx)(Zj,{className:"p-4 text-muted-foreground text-sm",children:"No events found."}):(0,De.jsxs)(De.Fragment,{children:[s.map((e=>(0,De.jsxs)(Jj,{value:e.title,onMouseDown:t=>{t.preventDefault(),window.open(e.url,"_blank","noopener,noreferrer"),o(!1),f?.(!1)},className:"grid gap-1 p-2 cursor-pointer text-sm text-foreground rounded-md hover:!bg-accent",children:[(0,De.jsx)("span",{className:"font-normal block",children:vs.fromISO(e.start_date||e.start,{zone:"utc"}).setZone(d).toFormat("24"===u?"d MMM yyyy, EEE • HH:mm":"d MMM yyyy, EEE • h:mma").replace("AM","am").replace("PM","pm")}),(0,De.jsx)("span",{className:"font-medium",children:e.title})]},e.id))),i>1&&(0,De.jsxs)("div",{className:"flex justify-between items-center px-2 pt-2 text-xs text-muted-foreground",children:[(0,De.jsx)(al,{variant:"ghost",size:"sm",onMouseDown:e=>{e.preventDefault(),c((e=>Math.max(0,e-1)))},disabled:0===l,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Prev"}),(0,De.jsxs)("span",{children:["Page ",l+1," of ",i]}),(0,De.jsx)(al,{variant:"ghost",size:"sm",onMouseDown:e=>{e.preventDefault(),c((e=>Math.min(i-1,e+1)))},disabled:l>=i-1,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Next"})]})]})})})]})}function JD({calendarApi:e,setCurrentDate:t,isTodayInRange:n}){return(0,De.jsx)(al,{variant:"outline",className:Ni("border-solid box-border font-normal shadow-none cursor-pointer","rounded disabled:opacity-100 disabled:bg-background disabled:text-muted-foreground/50 text-foreground"),disabled:n,onClick:()=>{e&&(e.today(),t(e.getDate()))},children:"Today"})}var XD="Toggle",eT=e.forwardRef(((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,i]=ju({prop:n,onChange:o,defaultProp:r??!1,caller:XD});return(0,De.jsx)(_l.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Zl(e.onClick,(()=>{e.disabled||i(!s)}))})}));eT.displayName=XD;var tT=eT,nT="ToggleGroup",[rT,oT]=Kl(nT,[sm]),aT=sm(),sT=e.forwardRef(((e,t)=>{const{type:n,...r}=e;if("single"===n){const e=r;return(0,De.jsx)(cT,{...e,ref:t})}if("multiple"===n){const e=r;return(0,De.jsx)(dT,{...e,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${nT}\``)}));sT.displayName=nT;var[iT,lT]=rT(nT),cT=e.forwardRef(((t,n)=>{const{value:r,defaultValue:o,onValueChange:a=()=>{},...s}=t,[i,l]=ju({prop:r,defaultProp:o??"",onChange:a,caller:nT});return(0,De.jsx)(iT,{scope:t.__scopeToggleGroup,type:"single",value:e.useMemo((()=>i?[i]:[]),[i]),onItemActivate:l,onItemDeactivate:e.useCallback((()=>l("")),[l]),children:(0,De.jsx)(hT,{...s,ref:n})})})),dT=e.forwardRef(((t,n)=>{const{value:r,defaultValue:o,onValueChange:a=()=>{},...s}=t,[i,l]=ju({prop:r,defaultProp:o??[],onChange:a,caller:nT}),c=e.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),d=e.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return(0,De.jsx)(iT,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:d,children:(0,De.jsx)(hT,{...s,ref:n})})}));sT.displayName=nT;var[uT,fT]=rT(nT),hT=e.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:i=!0,...l}=e,c=aT(n),d=ec(s),u={role:"group",dir:d,...l};return(0,De.jsx)(uT,{scope:n,rovingFocus:o,disabled:r,children:o?(0,De.jsx)(pm,{asChild:!0,...c,orientation:a,dir:d,loop:i,children:(0,De.jsx)(_l.div,{...u,ref:t})}):(0,De.jsx)(_l.div,{...u,ref:t})})})),mT="ToggleGroupItem",pT=e.forwardRef(((t,n)=>{const r=lT(mT,t.__scopeToggleGroup),o=fT(mT,t.__scopeToggleGroup),a=aT(t.__scopeToggleGroup),s=r.value.includes(t.value),i=o.disabled||t.disabled,l={...t,pressed:s,disabled:i},c=e.useRef(null);return o.rovingFocus?(0,De.jsx)(gm,{asChild:!0,...a,focusable:!i,active:s,ref:c,children:(0,De.jsx)(gT,{...l,ref:n})}):(0,De.jsx)(gT,{...l,ref:n})}));pT.displayName=mT;var gT=e.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=lT(mT,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i="single"===a.type?s:void 0;return(0,De.jsx)(eT,{...i,...o,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})})),vT=sT,yT=pT;const xT=rl("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});e.forwardRef((({className:e,variant:t,size:n,...r},o)=>(0,De.jsx)(tT,{ref:o,className:Ni(xT({variant:t,size:n,className:e})),...r}))).displayName=tT.displayName;const bT=e.createContext({size:"default",variant:"default"}),wT=e.forwardRef((({className:e,variant:t,size:n,children:r,...o},a)=>(0,De.jsx)(vT,{ref:a,className:Ni("flex items-center justify-center gap-1",e),...o,children:(0,De.jsx)(bT.Provider,{value:{variant:t,size:n},children:r})})));wT.displayName=vT.displayName;const kT=e.forwardRef((({className:t,children:n,variant:r,size:o,...a},s)=>{const i=e.useContext(bT);return(0,De.jsx)(yT,{ref:s,className:Ni(xT({variant:i.variant||r,size:i.size||o}),t),...a,children:n})}));function _T({calendarApi:e,view:t,setView:n}){return(0,De.jsxs)(wT,{type:"single",className:"bg-muted text-foreground gap-2 border border-solid border-border p-[4px] h-10 box-border rounded shadow-none",value:t,onValueChange:t=>{t&&(e?.changeView(t),n(t))},children:[(0,De.jsx)(kT,{value:"dayGridMonth",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Month"}),(0,De.jsx)(kT,{value:"timeGridWeek",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Week"})]})}kT.displayName=yT.displayName;const ST={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"};function CT({calendarApi:t,currentDate:n,setCurrentDate:r}){const{startday:o}=eventkoi_params,a=function(e,t){const n=Object.entries(e).find((([e,n])=>n===t));return n?Number(n[0]):void 0}(ST,o),[s,i]=(0,e.useState)(n?new Date(n):new Date),[l,c]=(0,e.useState)(n?new Date(n):new Date);(0,e.useEffect)((()=>{if(n){const e=new Date(n);i(e),c(e)}}),[n]);const d={from:Xe(s,{weekStartsOn:a}),to:tx(s,{weekStartsOn:a})};return(0,De.jsx)(jb,{mode:"single",selected:d,month:l,weekStartsOn:a,onSelect:e=>{e&&e.getTime()!==s.getTime()&&(i(e),c(e),t&&t.gotoDate(e),r&&r(e))},onMonthChange:e=>{const n=e>l,o=Wy(s,e.getMonth());c(e),i(o),t&&t.gotoDate(o),r&&r(o),console.log(n?"➡️ Next button clicked":"⬅️ Prev button clicked"),console.log("Selected new date:",o)},classNames:{day_range_end:"",day_range_middle:"",day_today:"",day_outside:"text-muted-foreground",day_disabled:"",row:"flex w-full mt-2 justify-between [&>*]:flex-1 [&>td:first-child>button]:rounded-l-md [&>td:last-child>button]:rounded-r-md",head_cell:"text-muted-foreground w-9 font-bold text-sm transition-colors",day_selected:"!bg-accent !text-black",cell:"h-9 w-9 p-0",day:"h-9 w-full border-0 [&:not([aria-selected='true'])]:bg-white hover:[&:not([aria-selected='true'])]:bg-accent [&:not([aria-selected='true'])]:rounded-md transition-colors",button:"cursor-pointer",nav_button:"bg-white border-0 h-8 w-10 hover:bg-accent rounded-md transition-colors",nav_icon:"w-2.5 h-2.5"}})}function jT({calendarApi:t,currentDate:n,setCurrentDate:r}){const[o,a]=(0,e.useState)(!1);return(0,De.jsxs)(Jb,{open:o,onOpenChange:a,children:[(0,De.jsx)(Xb,{asChild:!0,children:(0,De.jsxs)(al,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[t?.view?.title||"",(0,De.jsx)(Ii,{className:"h-4 w-4 min-w-4"})]})}),(0,De.jsx)(ew,{side:"bottom",align:"start",sideOffset:20,className:"w-auto rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden p-1",children:(0,De.jsx)(CT,{calendarApi:t,currentDate:n,setCurrentDate:r})})]})}function ET(e){const{calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:a,isTodayInRange:s,search:i,setSearch:l,open:c,setOpen:d,filteredResults:u,paginatedResults:f,totalPages:h,page:m,setPage:p,timezone:g,timeFormat:v,inputRef:y}=e;return(0,De.jsxs)("div",{className:"hidden lg:flex flex-wrap items-center justify-between text-sm gap-3 w-full",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(KD,{calendarApi:t,currentDate:n,setCurrentDate:r}),"timeGridWeek"===o||"week"===o?(0,De.jsx)(jT,{calendarApi:t,currentDate:n,setCurrentDate:r}):(0,De.jsx)(ZD,{calendarApi:t,currentDate:n,setCurrentDate:r}),(0,De.jsx)(JD,{calendarApi:t,setCurrentDate:r,isTodayInRange:s}),(0,De.jsx)(QD,{inputRef:y,search:i,setSearch:l,open:c,setOpen:d,filteredResults:u,paginatedResults:f,totalPages:h,page:m,setPage:p,timezone:g,timeFormat:v})]}),(0,De.jsx)(_T,{calendarApi:t,view:o,setView:a})]})}function NT(t){const{calendarApi:n,currentDate:r,setCurrentDate:o,view:a,setView:s,isTodayInRange:i,search:l,setSearch:c,open:d,setOpen:u,filteredResults:f,paginatedResults:h,totalPages:m,page:p,setPage:g,timezone:v,timeFormat:y}=t,[x,b]=(0,e.useState)(!1),w=(0,e.useRef)(null);return(0,De.jsxs)("div",{className:"flex flex-col w-full gap-4 lg:hidden",children:[(0,De.jsxs)("div",{className:"flex justify-between items-center",children:[(0,De.jsx)(JD,{calendarApi:n,setCurrentDate:o,isTodayInRange:i}),(0,De.jsx)(_T,{calendarApi:n,view:a,setView:s})]}),x?(0,De.jsx)("div",{className:"w-full",children:(0,De.jsx)(QD,{inputRef:w,search:l,setSearch:c,open:d,setOpen:u,filteredResults:f,paginatedResults:h,totalPages:m,page:p,setPage:g,timezone:v,timeFormat:y,setSearchOpen:b})}):(0,De.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(KD,{calendarApi:n,currentDate:r,setCurrentDate:o}),"timeGridWeek"===a||"week"===a?(0,De.jsx)(jT,{calendarApi:n,currentDate:r,setCurrentDate:o}):(0,De.jsx)(ZD,{calendarApi:n,currentDate:r,setCurrentDate:o})]}),(0,De.jsx)(al,{variant:"outline",size:"icon",className:"rounded shadow-sm border border-solid border-border cursor-pointer",onClick:()=>{b(!0),setTimeout((()=>w.current?.focus()),50)},children:(0,De.jsx)(rw,{className:"w-4 h-4"})})]})]})}function DT({calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:a,search:s,setSearch:i,events:l,timezone:c,timeFormat:d}){const[u,f]=(0,e.useState)(!1),[h,m]=(0,e.useState)(0),p=(0,e.useRef)(null),g=s?l.filter((e=>{const t=s.toLowerCase();return e.title?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t)||e.location?.toLowerCase().includes(t)})):[],v=Math.ceil(g.length/10),y=g.slice(10*h,10*(h+1));(0,e.useEffect)((()=>m(0)),[s]);const x=(()=>{if(!t)return!1;const e=t.view?.currentStart,n=t.view?.currentEnd,r=new Date;return e<=r&&r<=n})(),b={calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:a,isTodayInRange:x,search:s,setSearch:i,open:u,setOpen:f,filteredResults:g,paginatedResults:y,totalPages:v,page:h,setPage:m,timezone:c,timeFormat:d,inputRef:p};return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(NT,{...b}),(0,De.jsx)(ET,{...b})]})}function TT({event:e,icon:t,title:n,name:r}){return(0,De.jsxs)("a",{href:"#",className:"flex flex-col gap-1 items-center justify-center no-underline text-sm text-foreground/90 hover:text-foreground group",onClick:t=>{t.preventDefault(),(()=>{const t=encodeURIComponent(e?.url),n=encodeURIComponent(e?.title),o=`RE: ${n}`;"whatsapp"===r&&window.open(`https://api.whatsapp.com/send?text=${n} ${t}`,"_blank"),"x"===r&&window.open(`https://x.com/intent/post?url=${t}&text=${n}`,"_blank"),"facebook"===r&&window.open(`https://www.facebook.com/sharer/sharer.php?u=${t}`,"_blank"),"linkedin"===r&&window.open(`https://www.linkedin.com/shareArticle/?mini=true&url=${t}&text=${n}`,"_blank"),"instagram"===r&&window.open(`https://www.instagram.com/?url=${t}`,"_blank"),"email"===r&&window.open(`mailto:?&subject=${o}&cc=&bcc=&body=${t}`,"_self")})()},children:[(0,De.jsx)("span",{className:"rounded-full bg-accent group-hover:bg-input flex items-center justify-center w-16 h-16",children:t}),(0,De.jsx)("span",{children:n})]})}function AT({width:e=26,height:t=20,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 29.025 22.935",children:(0,De.jsxs)("g",{transform:"translate(1.741 1.25)",children:[(0,De.jsx)(Di.Path,{d:"M5.554,6H25.989a2.562,2.562,0,0,1,2.554,2.554V23.88a2.562,2.562,0,0,1-2.554,2.554H5.554A2.562,2.562,0,0,1,3,23.88V8.554A2.562,2.562,0,0,1,5.554,6Z",transform:"translate(-3 -6)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"}),(0,De.jsx)(Di.Path,{d:"M28.543,9,15.771,17.94,3,9",transform:"translate(-3 -6.446)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"})]})})}function RT({width:e=30,height:t=30,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 30.421 30.421",children:(0,De.jsx)(Di.Path,{d:"M30.419,15.3A15.211,15.211,0,1,0,12.83,30.42V19.727H8.971V15.3h3.863V11.93c0-3.835,2.272-5.952,5.745-5.952a23.263,23.263,0,0,1,3.4.3v3.764H20.066a2.206,2.206,0,0,0-2.477,2.392V15.3h4.217l-.673,4.422H17.587V30.418A15.279,15.279,0,0,0,30.419,15.3",transform:"translate(0.002 0.001)"})})}function MT({width:e=28,height:t=28,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 27.748 27.742",children:(0,De.jsx)(Di.Path,{d:"M13.872,9a7.113,7.113,0,1,0,7.113,7.113A7.1,7.1,0,0,0,13.872,9Zm0,11.737A4.624,4.624,0,1,1,18.5,16.109a4.633,4.633,0,0,1-4.624,4.624ZM22.934,8.705a1.659,1.659,0,1,1-1.659-1.659A1.655,1.655,0,0,1,22.934,8.705Zm4.711,1.684A8.21,8.21,0,0,0,25.4,4.576a8.264,8.264,0,0,0-5.813-2.241c-2.29-.13-9.155-.13-11.446,0A8.252,8.252,0,0,0,2.333,4.57,8.237,8.237,0,0,0,.092,10.383c-.13,2.29-.13,9.155,0,11.446a8.21,8.21,0,0,0,2.241,5.813,8.274,8.274,0,0,0,5.813,2.241c2.29.13,9.155.13,11.446,0A8.21,8.21,0,0,0,25.4,27.641a8.264,8.264,0,0,0,2.241-5.813c.13-2.29.13-9.149,0-11.44Zm-2.959,13.9a4.682,4.682,0,0,1-2.637,2.637c-1.826.724-6.159.557-8.177.557s-6.357.161-8.177-.557a4.682,4.682,0,0,1-2.637-2.637C2.333,22.46,2.5,18.127,2.5,16.109s-.161-6.357.557-8.177A4.682,4.682,0,0,1,5.694,5.294c1.826-.724,6.159-.557,8.177-.557s6.357-.161,8.177.557a4.682,4.682,0,0,1,2.637,2.637c.724,1.826.557,6.159.557,8.177S25.41,22.466,24.686,24.286Z",transform:"translate(0.005 -2.238)"})})}function IT({width:e=25,height:t=25,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24.627 24.627",children:(0,De.jsx)(Di.Path,{d:"M5.513,24.627H.407V8.185H5.513ZM2.957,5.943A2.971,2.971,0,1,1,5.914,2.958,2.982,2.982,0,0,1,2.957,5.943ZM24.622,24.627H19.527v-8c0-1.908-.038-4.354-2.655-4.354-2.655,0-3.061,2.072-3.061,4.216v8.141h-5.1V8.185h4.9v2.243h.071A5.365,5.365,0,0,1,18.51,7.773c5.167,0,6.117,3.4,6.117,7.822v9.032Z",transform:"translate(0 -0.001)"})})}function OT({width:e=29,height:t=29,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 28.555 28.555",children:(0,De.jsx)(Di.Path,{d:"M24.278,6.4A14.155,14.155,0,0,0,2.008,23.475L0,30.805l7.5-1.97a14.107,14.107,0,0,0,6.763,1.721h.006a14.286,14.286,0,0,0,14.284-14.15A14.206,14.206,0,0,0,24.278,6.4ZM14.271,28.173A11.74,11.74,0,0,1,8.28,26.535l-.427-.255L3.4,27.446l1.186-4.341-.28-.446a11.784,11.784,0,1,1,21.856-6.253A11.892,11.892,0,0,1,14.271,28.173Zm6.45-8.809c-.351-.178-2.091-1.033-2.416-1.147s-.561-.178-.8.178-.911,1.147-1.122,1.39-.414.268-.765.089a9.624,9.624,0,0,1-4.812-4.207c-.363-.625.363-.58,1.039-1.931a.655.655,0,0,0-.032-.618c-.089-.178-.8-1.919-1.09-2.626-.287-.688-.58-.593-.8-.606s-.44-.013-.676-.013a1.31,1.31,0,0,0-.943.44,3.973,3.973,0,0,0-1.237,2.951,6.927,6.927,0,0,0,1.44,3.659,15.8,15.8,0,0,0,6.042,5.341c2.244.969,3.123,1.052,4.245.886a3.621,3.621,0,0,0,2.384-1.683,2.957,2.957,0,0,0,.2-1.683C21.308,19.625,21.072,19.536,20.721,19.364Z",transform:"translate(0 -2.25)"})})}function PT({width:e=23,height:t=21,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 23.006 20.85",children:(0,De.jsx)(Di.Path,{d:"M18.118.75h3.529L13.939,9.582,23.006,21.6h-7.1l-5.56-7.29L3.984,21.6H.454L8.7,12.153,0,.75H7.28l5.025,6.662L18.119.75ZM16.881,19.483h1.956L6.216,2.756H4.12Z",transform:"translate(0 -0.75)"})})}const LT=Mi("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),FT=Mi("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);function zT(e,t="utc",n,r){const o=n||eventkoi_params?.locale?.replace("_","-")||"en",a=r||eventkoi_params?.time_format||"12",s=vs.fromISO(e,{zone:"utc"===t?"UTC":Ns(t)}).setLocale(o);return"24"===a?s.toFormat("HH:mm"):s.toFormat("h:mma").toLowerCase().replace(":00","")}function HT(e,t="utc",n){const r=n||eventkoi_params?.locale?.replace("_","-")||"en";return vs.fromISO(e,{zone:"utc"===t?"UTC":Ns(t)}).setLocale(r).toLocaleString(vs.DATE_MED)}const BT=(e,t)=>{const n=new Date(e);return t?n.toISOString().split("T")[0].replace(/-/g,""):n.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z"},VT=e=>window.open(e,"_blank","noopener,noreferrer");function WT({event:t,anchor:n,onClose:r,ignoreNextOutsideClick:o,timezone:a="UTC"}){const[s,i]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[d,u]=(0,e.useState)(!1),[f]=(0,e.useState)(n),h=t.location_line,m=(()=>{const e=Ns(a),n=eventkoi_params?.locale?.replace("_","-")||"en",r=eventkoi_params?.time_format||"12",o="standard"===t.date_type&&"continuous"===t.standard_type,s=t.allDay&&!o;if(o||t.start_time&&t.end_time){const o=t.start_real||t.start,a=t.end_real||t.end;return o!==a?`${HT(o,e,n)}, ${zT(o,e,n,r)} – ${HT(a,e,n)}, ${zT(a,e,n,r)}`:`${HT(o,e,n)} – ${zT(a,e,n,r)}`}return s?t.start.split("T")[0]!==t.end.split("T")[0]?`${HT(t.start,e,n)} – ${HT(t.end_real,e,n)}`:HT(t.start,e,n):vs.fromISO(t.start,{zone:e}).hasSame(vs.fromISO(t.end,{zone:e}),"day")?`${HT(t.start,e,n)}, ${zT(t.start,e,n,r)} – ${zT(t.end,e,n,r)}`:`${HT(t.start,e,n)}, ${zT(t.start,e,n,r)} – ${HT(t.end,e,n)}, ${zT(t.end,e,n,r)}`})(),p=()=>{const e=new URL("https://www.google.com/calendar/render");e.searchParams.set("action","TEMPLATE"),e.searchParams.set("text",t.title||""),e.searchParams.set("dates",`${BT(t.start,t.allDay)}/${BT(t.end,t.allDay)}`),e.searchParams.set("details",t.description||""),e.searchParams.set("location",h||""),e.searchParams.set("output","xml"),VT(e.toString())};if((0,e.useEffect)((()=>(document.body.setAttribute("data-calendar-menu-open",d?"true":"false"),()=>{document.body.removeAttribute("data-calendar-menu-open")})),[d]),(0,e.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.stopPropagation(),r())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),!t||!f)return null;const g=document.querySelector(".fc");return(0,pe.createPortal)((0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)("div",{"data-event-popover":!0,className:"absolute z-50 rounded-lg border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden w-[370px] max-w-full",style:{left:`${f.x}px`,top:`${f.y}px`},onMouseDown:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onClick:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onPointerDownCapture:e=>{s&&e.stopPropagation()},children:[(0,De.jsxs)("div",{className:"px-4 py-4 pb-0 relative",children:[(0,De.jsxs)("div",{className:"flex absolute right-1 top-1 gap-1",children:[(0,De.jsx)(al,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:()=>window.open(t.url,"_self"),children:(0,De.jsx)(LT,{className:"h-4 w-4"})}),(0,De.jsx)(al,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:r,children:(0,De.jsx)(Jp,{className:"h-4 w-4"})})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-2 pe-[58px]",children:[(0,De.jsx)("a",{href:t.url,className:"text-base font-semibold leading-snug text-foreground no-underline hover:underline line-clamp-2 block",children:t.title}),"recurring"===t.date_type&&(0,De.jsx)(ml,{variant:"secondary",className:"w-fit bg-[#eeeeee] hover:bg-[#eeeeee] font-normal",children:"Recurring"})]})]}),(0,De.jsxs)("div",{className:"p-4 flex flex-col gap-3",children:[(0,De.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,De.jsx)(Il,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,De.jsx)("div",{className:"flex-1",children:m})]}),h&&(0,De.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,De.jsx)(Tl,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,De.jsx)("div",{className:"flex-1",children:h})]}),t.thumbnail&&(0,De.jsx)("img",{src:t.thumbnail,alt:"",className:"w-full h-auto rounded-none border object-cover max-h-48"}),t.description&&(0,De.jsx)("div",{className:"text-sm text-muted-foreground leading-snug line-clamp-3",children:t.description})]}),(0,De.jsxs)("div",{className:"flex justify-between items-center px-4 pb-4 gap-2",children:[(0,De.jsxs)(xy,{open:d,onOpenChange:e=>{u(e),e||(o.current=!0)},children:[(0,De.jsx)(by,{asChild:!0,children:(0,De.jsxs)(al,{size:"sm",variant:"outline",className:"text-[13px] justify-between gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",onMouseDown:e=>e.stopPropagation(),children:["Add to calendar",(0,De.jsx)(Ii,{className:"w-3.5 h-3.5"})]})}),(0,De.jsxs)(Cy,{align:"start",className:"w-44",onMouseDown:e=>e.stopPropagation(),children:[(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame(p),children:"Google Calendar"}),(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame((()=>VT(eventkoi_params.ical))),children:"iCalendar"}),(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame((()=>VT("https://outlook.office.com/owa/"))),children:"Outlook 365"}),(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame((()=>VT("https://outlook.live.com/owa/"))),children:"Outlook Live"})]})]}),(0,De.jsxs)(al,{size:"sm",variant:"secondary",onClick:()=>i(!0),className:"text-[13px] gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",children:[(0,De.jsx)(FT,{className:"w-3.5 h-3.5"}),"Share"]})]})]}),(0,De.jsx)(Xp,{open:s,onOpenChange:e=>{i(e),document.body.dataset.shareModalOpen=e?"true":"false",e||(o.current=!0)},children:(0,De.jsxs)(ng,{"data-event-share-modal":!0,className:"w-full max-w-[685px] p-0",onOpenAutoFocus:e=>e.preventDefault(),onMouseDown:e=>e.stopPropagation(),onPointerDownOutside:e=>{e.preventDefault(),i(!1),o.current=!0},children:[(0,De.jsx)(rg,{className:"flex items-center justify-center p-4 border-0 border-solid border-b-2 border-input",children:(0,De.jsx)(og,{className:"font-sans text-xl m-0 text-foreground",children:"Share this event"})}),(0,De.jsxs)("div",{className:"flex flex-col pt-[30px] pb-[60px] px-[60px]",children:[(0,De.jsxs)("div",{className:"flex gap-4 items-center flex-wrap justify-center pb-[60px]",children:[(0,De.jsx)(TT,{event:t,name:"whatsapp",title:"Whatsapp",icon:(0,De.jsx)(OT,{})}),(0,De.jsx)(TT,{event:t,name:"instagram",title:"Instagram",icon:(0,De.jsx)(MT,{})}),(0,De.jsx)(TT,{event:t,name:"email",title:"Email",icon:(0,De.jsx)(AT,{})}),(0,De.jsx)(TT,{event:t,name:"facebook",title:"Facebook",icon:(0,De.jsx)(RT,{})}),(0,De.jsx)(TT,{event:t,name:"x",title:"X",icon:(0,De.jsx)(PT,{})}),(0,De.jsx)(TT,{event:t,name:"linkedin",title:"Linkedin",icon:(0,De.jsx)(IT,{})})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-3 pb-[10px]",children:[(0,De.jsx)(Gl,{className:"text-base",children:"Event link"}),(0,De.jsxs)("div",{className:"relative",children:[(0,De.jsx)(nw,{id:"link",defaultValue:t?.url,readOnly:!0,className:"min-h-[66px] border border-input border-solid border-primary/30 box-border text-lg text-foreground"}),(0,De.jsxs)(al,{variant:"secondary",type:"button",className:"absolute h-12 right-[9px] top-[9px] border-none cursor-pointer hover:bg-input",onMouseDown:e=>e.stopPropagation(),onClick:()=>{requestAnimationFrame((()=>{navigator.clipboard.writeText(t?.url),c(!0),setTimeout((()=>c(!1)),1200)}))},children:[l?(0,De.jsx)(GE,{className:"mr-2 h-5 w-5"}):(0,De.jsx)(YE,{className:"mr-2 h-5 w-5"}),l?"Copied!":"Copy"]})]})]})]})]})})]}),g||document.body)}function UT({timezone:t,setTimezone:n,timeFormat:r,setTimeFormat:o}){const[a,s]=(0,e.useState)(!1),i=function(){const e=eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC",t=[{value:e,label:`Site Default (${bs(e,"24",!1)})`},{value:"local",label:`Local Time (${Intl.DateTimeFormat().resolvedOptions().timeZone})`},{value:"UTC",label:"UTC"}],n=("function"==typeof Intl.supportedValuesOf?Intl.supportedValuesOf("timeZone").map((e=>({value:e,label:e}))):[]).filter((t=>"UTC"!==t.value&&"local"!==t.value&&t.value!==e)).reduce(((e,t)=>{const[n]=t.value.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});Object.keys(n).forEach((e=>{n[e].sort(((e,t)=>e.label.localeCompare(t.label)))}));const r=Object.fromEntries(Object.entries(n).sort((([e],[t])=>e.localeCompare(t))));return{Popular:t,...r}}(),l=function(t=768){const[n,r]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{function e(){r(window.innerWidth<t)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[t]),n}();return(0,De.jsxs)(Jb,{open:a,onOpenChange:s,children:[(0,De.jsx)(Xb,{asChild:!0,children:(0,De.jsx)(al,{variant:"ghost","aria-haspopup":"listbox","aria-expanded":a,"aria-controls":"timezone-listbox","aria-label":`Current timezone: ${bs(t,r)}. Press Enter or Space to change.`,className:"inline-flex bg-transparent border-none cursor-pointer w-auto h-auto p-0 font-normal text-foreground underline",children:bs(t,r)})}),(0,De.jsxs)(ew,{align:l?"start":"end",className:"p-0 w-[280px] border border-border border-solid border-[1px]",children:[(0,De.jsxs)(qj,{children:[(0,De.jsx)("div",{className:"",children:(0,De.jsx)(Lm,{value:r,onValueChange:o,"aria-label":"Time format selection",className:"w-full bg-muted",children:(0,De.jsxs)(Fm,{className:"flex bg-muted px-2 gap-2 shadow-none rounded-none",children:[(0,De.jsx)(zm,{value:"12",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"12hr (AM/PM)"}),(0,De.jsx)(zm,{value:"24",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"24hr"})]})})}),(0,De.jsx)(Gj,{placeholder:"Search timezone...",className:"h-auto border-none focus:border-none focus:border-transparent focus:border-[0px] focus:shadow-none"}),(0,De.jsxs)(Yj,{id:"timezone-listbox",role:"listbox","aria-label":"Select a timezone",className:"max-h-[300px] overflow-y-auto border-t border-border border-t-[1px] border-solid border-b-0 border-l-0 border-r-0",children:[(0,De.jsx)(Zj,{children:"No timezone found."}),Object.entries(i).map((([e,r],o,a)=>(0,De.jsxs)("div",{children:[(0,De.jsx)(Kj,{heading:(0,De.jsx)("span",{className:"py-1 text-sm font-medium text-foreground",children:e}),children:r.map((e=>(0,De.jsx)(Jj,{role:"option","aria-selected":t===e.value,onSelect:()=>{const t=As(e.value);n(t);const r=new URLSearchParams(window.location.search);r.set("tz",e.value),window.history.replaceState({},"",`?${r}`),s(!1)},className:"cursor-pointer aria-selected:bg-accent aria-selected:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded-sm",children:e.label},e.value)))}),o<a.length-1&&(0,De.jsx)(Qj,{})]},e)))]})]}),(0,De.jsxs)("span",{className:"sr-only","aria-live":"polite",children:["Selected timezone: ",bs(t,r)]})]})]})}const $T=window.wp.blockEditor;function qT(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var GT={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${qT(e)} ${e}`,next:e=>`Nächste${qT(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${qT(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function YT(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var ZT,KT,QT,JT,XT,eA,tA,nA,rA,oA={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${YT(e)} ${e}`,next:e=>`Nächste${YT(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${YT(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},aA=[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText:e=>"+ daha çox "+e,noEventsText:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:4},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText:e=>"+още "+e,noEventsText:"Няма събития за показване"},{code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText:e=>"+অন্যান্য "+e,noEventsText:"কোনো ইভেন্ট নেই"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Any",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText:e=>"+další: "+e,noEventsText:"Žádné akce k zobrazení"},{code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"},GT,oA,{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:e=>"Día"===e?"Hoy":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"de la":"del")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:e=>`Mostrar ${e} eventos más`,noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText:e=>"+ veel "+e,noEventsText:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText:e=>"بیش از "+e,noEventsText:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today:e=>"Día"===e?"Hoxe":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"da":"do")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint:e=>`Amosar ${e} eventos máis`,noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},{code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"נוספים",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText:e=>"+अधिक "+e,noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},{code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText:e=>"+ ևս "+e,noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:e=>"+altri "+e,noEventsText:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText:e=>"他 "+e+" 件",noEventsText:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText:e=>"+ კიდევ "+e,noEventsText:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText:e=>"+ тағы "+e,noEventsText:"Көрсету үшін оқиғалар жоқ"},{code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},{code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText:e=>"+vēl "+e,noEventsText:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText:e=>"+повеќе "+e,noEventsText:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText:e=>"masih ada "+e+" acara",noEventsText:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint:e=>`Vis ${e} flere hendelse${1===e?"":"r"}`},{code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Lijst"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today:e=>"Dia"===e?"Hoje":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Visualizar "+("Semana"===e?"a":"o")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText:e=>"mais +"+e,moreLinkHint:e=>`Mostrar mais ${e} eventos`,noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText:e=>"+alte "+e,noEventsText:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:e=>"+ ещё "+e,noEventsText:"Нет событий для отображения"},{code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText:e=>"+ďalšie: "+e,noEventsText:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},{code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText:e=>"+më tepër "+e,noEventsText:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText:e=>"+ још "+e,noEventsText:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev:e=>`Föregående ${e.toLocaleLowerCase()}`,next:e=>`Nästa ${e.toLocaleLowerCase()}`,today:e=>("Program"===e?"Detta":"Denna")+" "+e.toLocaleLowerCase()},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint:e=>`Visa ytterligare ${e} händelse${1===e?"":"r"}`,weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},{code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText:e=>"+ மேலும் "+e,noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText:e=>"+ще "+e+"...",noEventsText:"Немає подій для відображення"},{code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText:e=>"+ яна "+e,noEventsText:"Кўрсатиш учун воқеалар йўқ"},{code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:e=>"+ yana "+e,noEventsText:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText:e=>"+ thêm "+e,noEventsText:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:e=>"另外 "+e+" 个",noEventsText:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上個",next:"下個",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"週",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"沒有任何活動"}],sA={},iA=[],lA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function cA(e,t){for(var n in t)e[n]=t[n];return e}function dA(e){var t=e.parentNode;t&&t.removeChild(e)}function uA(e,t,n){var r,o,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?ZT.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return fA(e,s,r,o,null)}function fA(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++QT:o};return null==o&&null!=KT.vnode&&KT.vnode(a),a}function hA(e){return e.children}function mA(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||lA.test(t)?n:n+"px"}function pA(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||mA(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||mA(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?vA:gA,a):e.removeEventListener(t,a?vA:gA,a);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function gA(e){XT=!0;try{return this.l[e.type+!1](KT.event?KT.event(e):e)}finally{XT=!1}}function vA(e){XT=!0;try{return this.l[e.type+!0](KT.event?KT.event(e):e)}finally{XT=!1}}function yA(e,t){this.props=e,this.context=t}function xA(e,t){if(null==t)return e.__?xA(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?xA(e):null}function bA(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return bA(e)}}function wA(e){XT?setTimeout(e):nA(e)}function kA(e){(!e.__d&&(e.__d=!0)&&eA.push(e)&&!_A.__r++||tA!==KT.debounceRendering)&&((tA=KT.debounceRendering)||wA)(_A)}function _A(){var e,t,n,r,o,a,s,i;for(eA.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=eA.shift();)e.__d&&(t=eA.length,r=void 0,o=void 0,s=(a=(n=e).__v).__e,(i=n.__P)&&(r=[],(o=cA({},a)).__v=a.__v+1,DA(i,a,o,n.__n,void 0!==i.ownerSVGElement,null!=a.__h?[s]:null,r,null==s?xA(a):s,a.__h),TA(r,a),a.__e!=s&&bA(a)),eA.length>t&&eA.sort((function(e,t){return e.__v.__b-t.__v.__b})));_A.__r=0}function SA(e,t,n,r,o,a,s,i,l,c){var d,u,f,h,m,p,g,v=r&&r.__k||iA,y=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(h=n.__k[d]=null==(h=t[d])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?fA(null,h,null,null,h):Array.isArray(h)?fA(hA,{children:h},null,null,null):h.__b>0?fA(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=v[d])||f&&h.key==f.key&&h.type===f.type)v[d]=void 0;else for(u=0;u<y;u++){if((f=v[u])&&h.key==f.key&&h.type===f.type){v[u]=void 0;break}f=null}DA(e,h,f=f||sA,o,a,s,i,l,c),m=h.__e,(u=h.ref)&&f.ref!=u&&(g||(g=[]),f.ref&&g.push(f.ref,null,h),g.push(u,h.__c||m,h)),null!=m?(null==p&&(p=m),"function"==typeof h.type&&h.__k===f.__k?h.__d=l=CA(h,l,e):l=EA(e,h,f,v,m,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=xA(f))}for(n.__e=p,d=y;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=NA(r).nextSibling),MA(v[d],v[d]));if(g)for(d=0;d<g.length;d++)RA(g[d],g[++d],g[++d])}function CA(e,t,n){for(var r,o=e.__k,a=0;o&&a<o.length;a++)(r=o[a])&&(r.__=e,t="function"==typeof r.type?CA(r,t,n):EA(n,r,r,o,r.__e,t));return t}function jA(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){jA(e,t)})):t.push(e)),t}function EA(e,t,n,r,o,a){var s,i,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),s=null;else{for(i=a,l=0;(i=i.nextSibling)&&l<r.length;l+=1)if(i==o)break e;e.insertBefore(o,a),s=a}return void 0!==s?s:o.nextSibling}function NA(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=NA(n)))return r;return null}function DA(e,t,n,r,o,a,s,i,l){var c,d,u,f,h,m,p,g,v,y,x,b,w,k,_,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,i=t.__e=n.__e,t.__h=null,a=[i]),(c=KT.__b)&&c(t);try{e:if("function"==typeof S){if(g=t.props,v=(c=S.contextType)&&r[c.__c],y=c?v?v.props.value:c.__:r,n.__c?p=(d=t.__c=n.__c).__=d.__E:("prototype"in S&&S.prototype.render?t.__c=d=new S(g,y):(t.__c=d=new yA(g,y),d.constructor=S,d.render=IA),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=y,d.__n=r,u=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=cA({},d.__s)),cA(d.__s,S.getDerivedStateFromProps(g,d.__s))),f=d.props,h=d.state,d.__v=t,u)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,y),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,y),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,m)}))}if(d.context=y,d.props=g,d.__P=e,b=KT.__r,w=0,"prototype"in S&&S.prototype.render){for(d.state=d.__s,d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(r=cA(cA({},r),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),_=null!=c&&c.type===hA&&null==c.key?c.props.children:c,SA(e,Array.isArray(_)?_:[_],t,n,r,o,a,s,i,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),p&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=AA(n.__e,t,n,r,o,a,s,l);(c=KT.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=i,t.__h=!!l,a[a.indexOf(i)]=null),KT.__e(e,t,n)}}function TA(e,t){KT.__c&&KT.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){KT.__e(e,t.__v)}}))}function AA(e,t,n,r,o,a,s,i){var l,c,d,u=n.props,f=t.props,h=t.type,m=0;if("svg"===h&&(o=!0),null!=a)for(;m<a.length;m++)if((l=a[m])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,a[m]=null;break}if(null==e){if(null===h)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),a=null,i=!1}if(null===h)u===f||i&&e.data===f||(e.data=f);else{if(a=a&&ZT.call(e.childNodes),c=(u=n.props||sA).dangerouslySetInnerHTML,d=f.dangerouslySetInnerHTML,!i){if(null!=a)for(u={},m=0;m<e.attributes.length;m++)u[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var a;for(a in n)"children"===a||"key"===a||a in t||pA(e,a,null,n[a],r);for(a in t)o&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a]||pA(e,a,t[a],n[a],r)}(e,f,u,o,i),d)t.__k=[];else if(m=t.props.children,SA(e,Array.isArray(m)?m:[m],t,n,r,o&&"foreignObject"!==h,a,s,a?a[0]:n.__k&&xA(n,0),i),null!=a)for(m=a.length;m--;)null!=a[m]&&dA(a[m]);i||("value"in f&&void 0!==(m=f.value)&&(m!==e.value||"progress"===h&&!m||"option"===h&&m!==u.value)&&pA(e,"value",m,u.value,!1),"checked"in f&&void 0!==(m=f.checked)&&m!==e.checked&&pA(e,"checked",m,u.checked,!1))}return e}function RA(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){KT.__e(e,n)}}function MA(e,t,n){var r,o;if(KT.unmount&&KT.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||RA(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){KT.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&MA(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||dA(e.__e),e.__=e.__e=e.__d=void 0}function IA(e,t,n){return this.constructor(e,n)}function OA(e,t,n){var r,o,a;KT.__&&KT.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],DA(t,e=(!r&&n||t).__k=uA(hA,null,[e]),o||sA,sA,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?ZT.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r),TA(a,e)}ZT=iA.slice,KT={__e:function(e,t,n,r){for(var o,a,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},QT=0,JT=function(e){return null!=e&&void 0===e.constructor},XT=!1,yA.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=cA({},this.state),"function"==typeof e&&(e=e(cA({},n),this.props)),e&&cA(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),kA(this))},yA.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),kA(this))},yA.prototype.render=hA,eA=[],nA="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_A.__r=0,rA=0;var PA,LA,FA,zA=[],HA=[],BA=KT.__b,VA=KT.__r,WA=KT.diffed,UA=KT.__c,$A=KT.unmount;function qA(){for(var e;e=zA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ZA),e.__H.__h.forEach(KA),e.__H.__h=[]}catch(t){e.__H.__h=[],KT.__e(t,e.__v)}}KT.__b=function(e){PA=null,BA&&BA(e)},KT.__r=function(e){VA&&VA(e);var t=(PA=e.__c).__H;t&&(LA===PA?(t.__h=[],PA.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=HA,e.__N=e.i=void 0}))):(t.__h.forEach(ZA),t.__h.forEach(KA),t.__h=[])),LA=PA},KT.diffed=function(e){WA&&WA(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==zA.push(t)&&FA===KT.requestAnimationFrame||((FA=KT.requestAnimationFrame)||YA)(qA)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==HA&&(e.__=e.__V),e.i=void 0,e.__V=HA}))),LA=PA=null},KT.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ZA),e.__h=e.__h.filter((function(e){return!e.__||KA(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],KT.__e(n,e.__v)}})),UA&&UA(e,t)},KT.unmount=function(e){$A&&$A(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ZA(e)}catch(e){t=e}})),n.__H=void 0,t&&KT.__e(t,n.__v))};var GA="function"==typeof requestAnimationFrame;function YA(e){var t,n=function(){clearTimeout(r),GA&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);GA&&(t=requestAnimationFrame(n))}function ZA(e){var t=PA,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),PA=t}function KA(e){var t=PA;e.__c=e.__(),PA=t}function QA(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function JA(e){this.props=e}(JA.prototype=new yA).isPureReactComponent=!0,JA.prototype.shouldComponentUpdate=function(e,t){return QA(this.props,e)||QA(this.state,t)};var XA=KT.__b;KT.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),XA&&XA(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var eR=KT.__e;KT.__e=function(e,t,n,r){if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);eR(e,t,n,r)};var tR=KT.unmount;function nR(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return nR(e,t,n)}))),e}function rR(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return rR(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function oR(){this.__u=0,this.t=null,this.__b=null}function aR(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function sR(){this.u=null,this.o=null}KT.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),tR&&tR(e)},(oR.prototype=new yA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=aR(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,o?o(i):i())};n.__R=s;var i=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=rR(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},oR.prototype.componentWillUnmount=function(){this.t=[]},oR.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=nR(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&uA(hA,null,e.fallback);return o&&(o.__h=null),[uA(hA,null,t.__a?null:e.children),o]};var iR=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function lR(e){return this.getChildContext=function(){return e.context},e.children}function cR(e){var t=this,n=e.i;t.componentWillUnmount=function(){OA(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),OA(uA(lR,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(sR.prototype=new yA).__a=function(e){var t=this,n=aR(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),iR(t,e,r)):o()};n?n(a):a()}},sR.prototype.render=function(e){this.u=null,this.o=new Map;var t=jA(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},sR.prototype.componentDidUpdate=sR.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){iR(e,n,t)}))};var dR="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,uR=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,fR="undefined"!=typeof document,hR=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};yA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(yA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var mR=KT.event;function pR(){}function gR(){return this.cancelBubble}function vR(){return this.defaultPrevented}KT.event=function(e){return mR&&(e=mR(e)),e.persist=pR,e.isPropagationStopped=gR,e.isDefaultPrevented=vR,e.nativeEvent=e};var yR={configurable:!0,get:function(){return this.class}},xR=KT.vnode;KT.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var a in r={},n){var s=n[a];fR&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!hR(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&uR.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=jA(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=jA(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(yR.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",yR))}e.$$typeof=dR,xR&&xR(e)};var bR=KT.__r;KT.__r=function(e){bR&&bR(e),e.__c};const wR=[],kR=new Map;function _R(e){wR.push(e),kR.forEach((t=>{CR(t,e)}))}function SR(e){let t=kR.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=(void 0===jR&&(jR=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}()),jR);n&&(t.nonce=n);const r=e===document?document.head:e,o=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,o)}kR.set(e,t),function(e){for(const t of wR)CR(e,t)}(t)}}function CR(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach(((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)}))}let jR;"undefined"!=typeof document&&SR(document),_R(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');class ER{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function NR(e){e.parentNode&&e.parentNode.removeChild(e)}function DR(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(TR(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function TR(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}const AR=/(top|left|right|bottom|width|height)$/i;function RR(e,t,n){null==n?e.style[t]="":"number"==typeof n&&AR.test(t)?e.style[t]=`${n}px`:e.style[t]=n}let MR=0;function IR(){return MR+=1,"fc-dom-"+MR}function OR(e,t,n,r){let o=function(e,t){return n=>{let r=DR(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}function PR(e){return Object.assign({onClick:e},LR(e))}function LR(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let FR=0;function zR(){return FR+=1,String(FR)}function HR(e,t,n){return n.func?n.func(e,t):function(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}(e[n.field],t[n.field])*(n.order||1)}function BR(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function VR(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function WR(e){return e%1==0}function UR(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const $R=["years","months","days","milliseconds"],qR=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function GR(e,t){return"string"==typeof e?function(e){let t=qR.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?YR(e):"number"==typeof e?YR({[t||"milliseconds"]:e}):null}function YR(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function ZR(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function KR(e){return QR(e)/864e5}function QR(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function JR(e,t){let n=null;for(let r=0;r<$R.length;r+=1){let o=$R[r];if(t[o]){let r=e[o]/t[o];if(!WR(r)||null!==n&&n!==r)return null;n=r}else if(e[o])return null}return n}function XR(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function eM(e,t,n){if(e===t)return!0;let r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const tM=["sun","mon","tue","wed","thu","fri","sat"];function nM(e,t){let n=fM(e);return n[2]+=7*t,hM(n)}function rM(e,t){let n=fM(e);return n[2]+=t,hM(n)}function oM(e,t){let n=fM(e);return n[6]+=t,hM(n)}function aM(e,t){return(t.valueOf()-e.valueOf())/864e5}function sM(e,t){return pM(e)===pM(t)?Math.round(aM(e,t)):null}function iM(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function lM(e,t,n,r){let o=hM([t,0,1+cM(t,n,r)]),a=iM(e),s=Math.round(aM(o,a));return Math.floor(s/7)+1}function cM(e,t,n){let r=7+t-n;return-(7+hM([e,0,r]).getUTCDay()-t)%7+r-1}function dM(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function uM(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function fM(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function hM(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function mM(e){return!isNaN(e.valueOf())}function pM(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function gM(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",yM(t,!0)))),r}function vM(e){return e.toISOString().replace(/T.*$/,"")}function yM(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=Math.round(r%60);return t?`${n+BR(o,2)}:${BR(a,2)}`:`GMT${n}${o}${a?`:${BR(a,2)}`:""}`}function xM(e,t,n){let r,o;return function(...a){if(r){if(!eM(r,a)){n&&n(o);let r=e.apply(this,a);t&&t(r,o)||(o=r)}}else o=e.apply(this,a);return r=a,o}}function bM(e,t,n){let r,o;return a=>{if(r){if(!JM(r,a)){n&&n(o);let r=e.call(this,a);t&&t(r,o)||(o=r)}}else o=e.call(this,a);return r=a,o}}const wM={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},kM={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},_M=/\s*([ap])\.?m\.?/i,SM=/,/g,CM=/\s+/g,jM=/\u200e/g,EM=/UTC|GMT/;class NM{constructor(e){let t={},n={},r=9;for(let o in e)o in wM?(n[o]=e[o],wM[o]<9&&(r=Math.min(wM[o],r))):(t[o]=e[o],o in kM&&(r=Math.min(kM[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=xM(DM)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:o,extendedSettings:a}=this,s=(i=e.marker,l=t.marker,(c=n.calendarSystem).getMarkerYear(i)!==c.getMarkerYear(l)?5:c.getMarkerMonth(i)!==c.getMarkerMonth(l)?4:c.getMarkerDay(i)!==c.getMarkerDay(l)?2:pM(i)!==pM(l)?1:0);var i,l,c;if(!s)return this.format(e,n);let d=s;!(d>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(d=1);let u=this.format(e,n),f=this.format(t,n);if(u===f)return u;let h=function(e,t){let n={};for(let r in e)(!(r in kM)||kM[r]<=t)&&(n[r]=e[r]);return n}(o,d),m=DM(h,a,n),p=m(e),g=m(t),v=function(e,t,n,r){let o=0;for(;o<e.length;){let a=e.indexOf(t,o);if(-1===a)break;let s=e.substr(0,a);o=a+t.length;let i=e.substr(o),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let o=n.substr(l);if(s===t&&i===o)return{before:s,after:i}}}return null}(u,p,f,g),y=a.separator||r||n.defaultSeparator||"";return v?v.before+p+y+g+v.after:u+y+f}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function DM(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>yM(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,o){let a=[];return"long"===o?a.push(n):"short"!==o&&"narrow"!==o||a.push(t),"long"!==o&&"short"!==o||a.push(" "),a.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&a.reverse(),a.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return a=>{let s,{marker:i}=a;return s=r&&!i.getUTCMinutes()?r:o,function(e,t,n,r,o){return e=e.replace(jM,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;return e=e.replace(EM,(()=>(n=!0,t))),n||(e+=` ${t}`),e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":yM(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(SM,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(_M,"").trim():"narrow"===r.meridiem?e=e.replace(_M,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(_M,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(_M,(e=>e.toLocaleLowerCase()))),e=(e=e.replace(CM," ")).trim()}(s.format(i),a,e,t,n)}}(e,t,n)}function TM(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function AM(e,t,n,r){let o=TM(e,n.calendarSystem);return{date:o,start:o,end:t?TM(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class RM{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,AM(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,AM(e,t,n,r))}}class MM{constructor(e){this.func=e}format(e,t,n){return this.func(AM(e,null,t,n))}formatRange(e,t,n,r){return this.func(AM(e,t,n,r))}}function IM(e){return"object"==typeof e&&e?new NM(e):"string"==typeof e?new RM(e):"function"==typeof e?new MM(e):null}const OM={navLinkDayClick:$M,navLinkWeekClick:$M,duration:GR,bootstrapFontAwesome:$M,buttonIcons:$M,customButtons:$M,defaultAllDayEventDuration:GR,defaultTimedEventDuration:GR,nextDayThreshold:GR,scrollTime:GR,scrollTimeReset:Boolean,slotMinTime:GR,slotMaxTime:GR,dayPopoverFormat:IM,slotDuration:GR,snapDuration:GR,headerToolbar:$M,footerToolbar:$M,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:IM,dayHeaderClassNames:$M,dayHeaderContent:$M,dayHeaderDidMount:$M,dayHeaderWillUnmount:$M,dayCellClassNames:$M,dayCellContent:$M,dayCellDidMount:$M,dayCellWillUnmount:$M,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:$M,weekNumbers:Boolean,weekNumberClassNames:$M,weekNumberContent:$M,weekNumberDidMount:$M,weekNumberWillUnmount:$M,editable:Boolean,viewClassNames:$M,viewDidMount:$M,viewWillUnmount:$M,nowIndicator:Boolean,nowIndicatorSnap:$M,nowIndicatorClassNames:$M,nowIndicatorContent:$M,nowIndicatorDidMount:$M,nowIndicatorWillUnmount:$M,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:$M,locale:$M,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:$M,eventOrder:function(e){let t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)n=o[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:$M,contentHeight:$M,direction:String,weekNumberFormat:IM,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:$M,initialDate:$M,now:$M,eventDataTransform:$M,stickyHeaderDates:$M,stickyFooterScrollbar:$M,viewHeight:$M,defaultAllDay:Boolean,eventSourceFailure:$M,eventSourceSuccess:$M,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:$M,eventConstraint:$M,eventAllow:$M,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:$M,eventContent:$M,eventDidMount:$M,eventWillUnmount:$M,selectConstraint:$M,selectOverlap:$M,selectAllow:$M,droppable:Boolean,unselectCancel:String,slotLabelFormat:$M,slotLaneClassNames:$M,slotLaneContent:$M,slotLaneDidMount:$M,slotLaneWillUnmount:$M,slotLabelClassNames:$M,slotLabelContent:$M,slotLabelDidMount:$M,slotLabelWillUnmount:$M,dayMaxEvents:$M,dayMaxEventRows:$M,dayMinWidth:Number,slotLabelInterval:GR,allDayText:String,allDayClassNames:$M,allDayContent:$M,allDayDidMount:$M,allDayWillUnmount:$M,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:IM,rerenderDelay:Number,moreLinkText:$M,moreLinkHint:$M,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:$M,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:GR,hiddenDays:$M,fixedWeekCount:Boolean,validRange:$M,visibleRange:$M,titleFormat:$M,eventInteractive:Boolean,noEventsText:String,viewHint:$M,navLinkHint:$M,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:$M,moreLinkClassNames:$M,moreLinkContent:$M,moreLinkDidMount:$M,moreLinkWillUnmount:$M,monthStartFormat:IM,handleCustomRendering:$M,customRenderingMetaMap:$M,customRenderingReplaces:Boolean},PM={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},LM={datesSet:$M,eventsSet:$M,eventAdd:$M,eventChange:$M,eventRemove:$M,windowResize:$M,eventClick:$M,eventMouseEnter:$M,eventMouseLeave:$M,select:$M,unselect:$M,loading:$M,_unmount:$M,_beforeprint:$M,_afterprint:$M,_noEventDrop:$M,_noEventResize:$M,_resize:$M,_scrollRequest:$M},FM={buttonText:$M,buttonHints:$M,views:$M,plugins:$M,initialEvents:$M,events:$M,eventSources:$M},zM={headerToolbar:HM,footerToolbar:HM,buttonText:HM,buttonHints:HM,buttonIcons:HM,dateIncrement:HM,plugins:BM,events:BM,eventSources:BM,resources:BM};function HM(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?JM(e,t):e===t}function BM(e,t){return Array.isArray(e)&&Array.isArray(t)?eM(e,t):e===t}const VM={type:String,component:$M,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:$M,usesMinMaxTime:Boolean,classNames:$M,content:$M,didMount:$M,willUnmount:$M};function WM(e){return GM(e,zM)}function UM(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function $M(e){return e}const{hasOwnProperty:qM}=Object.prototype;function GM(e,t){let n={};if(t)for(let r in t)if(t[r]===HM){let t=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if("object"==typeof a&&a)t.unshift(a);else if(void 0!==a){n[r]=a;break}}t.length&&(n[r]=GM(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function YM(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ZM(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function KM(e){let t={};for(let n of e)t[n]=!0;return t}function QM(e){let t=[];for(let n in e)t.push(e[n]);return t}function JM(e,t){if(e===t)return!0;for(let n in e)if(qM.call(e,n)&&!(n in t))return!1;for(let n in t)if(qM.call(t,n)&&e[n]!==t[n])return!1;return!0}const XM=/^on[A-Z]/;function eI(e,t,n={}){if(e===t)return!0;for(let s in t)if(!(s in e&&(r=e[s],o=t[s],a=n[s],r===o||!0===a||a&&a(r,o))))return!1;var r,o,a;for(let n in e)if(!(n in t))return!1;return!0}let tI={};var nI;nI=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return hM(e)}markerToArray(e){return fM(e)}},tI.gregory=nI;const rI=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class oI{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new tI[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):hM(dM(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=hM(e)),null!==t&&mM(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=rI.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(mM(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return pM(e)===pM(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return pM(e)===pM(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=function(e,t){let n=sM(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=sM(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),WR(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),WR(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),WR(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(KR(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/(KR(n)/30):n.days&&(r=sM(e,t),null!==r)?r/KR(n):(t.valueOf()-e.valueOf())/QR(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?iM(e):"hour"===t?function(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),o=lM(e,r,t,n);if(o<1)return lM(e,r-1,t,n);let a=lM(e,r+1,t,n);return a>=1?Math.min(o,a):o}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=oM(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),gM(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?hM(dM(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?hM(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-uM(fM(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(fM(e)):null}toDate(e,t){return"local"===this.timeZone?uM(fM(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(fM(e))*60):new Date(e.valueOf()-(t||0))}}class aI{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function sI(e){e();let t=KT.debounceRendering,n=[];for(KT.debounceRendering=function(e){n.push(e)},OA(uA(iI,{}),document.createElement("div"));n.length;)n.shift()();KT.debounceRendering=t}aI.prototype.classes={},aI.prototype.iconClasses={},aI.prototype.baseIconClass="",aI.prototype.iconOverridePrefix="";class iI extends yA{render(){return uA("div",{})}componentDidMount(){this.setState({})}}function lI(e){let t=function(e,t){var n={__c:t="__cC"+rA++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,kA(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class cI{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const dI=lI({});function uI(e,t,n,r,o,a,s,i,l,c,d,u,f,h){return{dateEnv:o,nowManager:a,options:n,pluginHooks:i,emitter:d,dispatch:l,getCurrentData:c,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){d.on("_resize",e)},removeResizeHandler(e){d.off("_resize",e)},createScrollResponder:e=>new cI(e,d,GR(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class fI extends yA{shouldComponentUpdate(e,t){return!eI(this.props,e,this.propEquality)||!eI(this.state,t,this.stateEquality)}safeSetState(e){eI(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}fI.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},fI.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},fI.contextType=dI,fI.prototype.propEquality={},fI.prototype.stateEquality={};class hI extends fI{}function mI(e,t){"function"==typeof e?e(t):e&&(e.current=t)}hI.contextType=dI;class pI extends hI{constructor(){super(...arguments),this.id=zR(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&gI(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&mI(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:o,renderProps:a}=e,s=vI(e,[],this.handleEl);let i,l,c=!1,d=[];if(null!=r){const e="function"==typeof r?r(a,uA):r;if(!0===e)c=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?s.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?d=Array.prototype.slice.call(e.domNodes):(t?JT(e):"function"!=typeof e)?i=e:l=e}}else c=!gI(e.generatorName,n);return c&&o&&(i=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=l,uA(e.elTag,s,i)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=r.options;if(o){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==a?void 0:a[n.generatorName];r&&o(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(yI)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!eM(e,t)){t.forEach(NR);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function gI(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function vI(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function yI(e){return Boolean(e)}pI.addPropsEquality({elClasses:eM,elStyle:JM,elAttrs:function(e,t){const n=function(e,t){let n=[];for(let r in e)qM.call(e,r)&&(r in t||n.push(r));for(let r in t)qM.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}(e,t);for(let e of n)if(!XM.test(e))return!1;return!0},renderProps:JM});const xI=lI(0);class bI extends yA{constructor(){super(...arguments),this.InnerContent=wI.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(mI(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=vI(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?uA(e.elTag,n,r):r}return uA(pI,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function wI(e,t){const n=e.props;return uA(pI,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}bI.contextType=xI;class kI extends hI{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return uA(bI,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[..._I(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},(()=>e.children))}}function _I(e){return[`fc-${e.type}-view`,"fc-view"]}function SI(e,t){let n,r,o=[],{start:a}=t;for(e.sort(CI),n=0;n<e.length;n+=1)r=e[n],r.start>a&&o.push({start:a,end:r.start}),r.end>a&&(a=r.end);return a<t.end&&o.push({start:a,end:t.end}),o}function CI(e,t){return e.start.valueOf()-t.start.valueOf()}function jI(e,t){let{start:n,end:r}=e,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function EI(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function NI(e){let t=Math.floor(aM(e.start,e.end))||1,n=iM(e.start);return{start:n,end:rM(n,t)}}function DI(e,t=GR(0)){let n=null,r=null;if(e.end){r=iM(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=QR(t)&&(r=rM(r,1))}return e.start&&(n=iM(e.start),r&&r<=n&&(r=rM(n,1))),{start:n,end:r}}function TI(e,t,n,r){return"year"===r?GR(n.diffWholeYears(e,t),"year"):"month"===r?GR(n.diffWholeMonths(e,t),"month"):function(e,t){let n=iM(e),r=iM(t);return{years:0,months:0,days:Math.round(aM(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}class AI{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)}build(e,t,n=!0){let r,o,a,s,i,l,{props:c}=this;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}(e,r)),o=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(o.unit),s=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),s=this.trimHiddenDays(s),i=s,c.showNonCurrentDates||(i=jI(i,o.range)),i=this.adjustActiveRange(i),i=jI(i,r),d=o.range,u=r,l=(null===d.end||null===u.start||d.end>u.start)&&(null===d.start||null===u.end||d.start<u.end),EI(s,e)||(e=s.start),{currentDate:e,validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:i,renderRange:s,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)};var d,u}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,o=null,a=null,s=null;return r.duration?(o=r.duration,a=r.durationUnit,s=this.buildRangeFromDuration(e,t,o,a)):(n=this.props.dayCount)?(a="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?a=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(o=this.getFallbackDuration(),a=XR(o).unit,s=this.buildRangeFromDuration(e,t,o,a)),{duration:o,unit:a,range:s}}getFallbackDuration(){return GR({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:o}=this.props,{start:a,end:s}=e;return n&&(KR(r)<0&&(a=iM(a),a=t.add(a,r)),KR(o)>1&&(s=iM(s),s=rM(s,-1),s=t.add(s,o))),{start:a,end:s}}buildRangeFromDuration(e,t,n,r){let o,a,s,{dateEnv:i,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&QR(e)<QR(n)?XR(e).unit:r}function c(){o=i.startOf(e,l),a=i.add(o,n),s={start:o,end:a}}return KR(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=iM(o)),c(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),c()),s}buildRangeFromDayCount(e,t,n){let r,{dateEnv:o,dateAlignment:a}=this.props,s=0,i=e;a&&(i=o.startOf(i,a)),i=iM(i),i=this.skipHiddenDays(i,t),r=i;do{r=rM(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:i,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?GR(1,t):e||GR({days:1}))}refineRange(e){if(e){let t=function(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=DI(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=rM(e,t);return e}}function RI(e,t,n,r){return{instanceId:zR(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function MI(e,t,n){let{dateEnv:r,pluginHooks:o,options:a}=n,{defs:s,instances:i}=e;i=YM(i,(e=>!s[e.defId].recurringDef));for(let e in s){let n=s[e];if(n.recurringDef){let{duration:s}=n.recurringDef;s||(s=n.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);let l=II(n,s,t,r,o.recurringTypes);for(let t of l){let n=RI(e,{start:t,end:r.add(t,s)});i[n.instanceId]=n}}}return{defs:s,instances:i}}function II(e,t,n,r,o){let a=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(iM)),a}const OI={id:String,groupId:String,title:String,url:String,interactive:Boolean},PI={start:$M,end:$M,date:$M,allDay:Boolean},LI=Object.assign(Object.assign(Object.assign({},OI),PI),{extendedProps:$M});function FI(e,t,n,r,o=HI(n),a,s){let{refined:i,extra:l}=zI(e,n,o),c=function(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}(t,n),d=function(e,t,n,r){for(let o=0;o<r.length;o+=1){let a=r[o].parse(e,n);if(a){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=a.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(i,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=BI(i,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,a);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let u=function(e,t,n,r){let o,a,{allDay:s}=e,i=null,l=!1,c=null,d=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(d),o)i=o.marker;else if(!r)return null;return null!=e.end&&(a=n.dateEnv.createMarkerMeta(e.end)),null==s&&(s=null!=t?t:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified)),s&&i&&(i=iM(i)),a&&(c=a.marker,s&&(c=iM(c)),i&&c<=i&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(i,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:s,hasEnd:l,range:{start:i,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(i,c,n,r);if(u){let e=BI(i,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,a),r=RI(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return s&&e.publicId&&s[e.publicId]&&(r.instanceId=s[e.publicId]),{def:e,instance:r}}return null}function zI(e,t,n=HI(t)){return UM(e,n)}function HI(e){return Object.assign(Object.assign(Object.assign({},GI),LI),e.pluginHooks.eventRefiners)}function BI(e,t,n,r,o,a,s){let i={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||zR(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:ZI(e,a),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of a.pluginHooks.eventDefMemberAdders)Object.assign(i,t(e));return Object.freeze(i.ui.classNames),Object.freeze(i.extendedProps),i}function VI(e,t,n,r,o,a){let s={defs:{},instances:{}},i=HI(n);for(let l of e){let e=FI(l,t,n,r,i,o,a);e&&WI(e,s)}return s}function WI(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function UI(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function $I(e,t){let n=YM(e.defs,t),r=YM(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function qI(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const GI={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:$M,overlap:$M,allow:$M,className:qI,classNames:qI,color:String,backgroundColor:String,borderColor:String,textColor:String},YI={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ZI(e,t){let n=function(e,t){return Array.isArray(e)?VI(e,null,t,!0):"object"==typeof e&&e?VI([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function KI(e){return e.reduce(QI,YI)}function QI(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const JI={id:String,defaultAllDay:Boolean,url:String,format:String,events:$M,eventDataTransform:$M,success:$M,failure:$M};function XI(e,t,n=eO(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:o,extra:a}=UM(r,n),s=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(o,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:zR(),sourceDefId:s.sourceDefId,meta:s.meta,ui:ZI(o,t),extendedProps:a}}return null}function eO(e){return Object.assign(Object.assign(Object.assign({},GI),JI),e.pluginHooks.eventSourceRefiners)}function tO(e,t,n){let r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=nO(e,o)),r&&(e=nO(e,r)),e}function nO(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function rO(e,t,n){let{defs:r}=e,o=ZM(e.instances,(e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})));return{defs:r,instances:o}}function oO(e,t){return $I(e,(e=>e.sourceId!==t))}class aO{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],o=[].concat(r||[],n);for(let e of o)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const sO={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function iO(e,t,n){let{dateEnv:r,options:o}=n,a=t;return e?(a=iM(a),a=r.add(a,o.defaultAllDayEventDuration)):a=r.add(a,o.defaultTimedEventDuration),a}function lO(e,t,n,r){let o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},e),o),{ui:Object.assign(Object.assign({},e.ui),o.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(a,n,r);return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function cO(e,t,n,r,o){let{dateEnv:a}=o,s=r.standardProps&&!0===r.standardProps.allDay,i=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return s&&(l.range=NI(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,r.datesDelta),end:a.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,r.endDelta)}),i&&(l.range={start:l.range.start,end:iO(t.allDay,l.range.start,o)}),t.allDay&&(l.range={start:iM(l.range.start),end:iM(l.range.end)}),l.range.end<l.range.start&&(l.range.end=iO(t.allDay,l.range.start,o)),l}class dO{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class uO{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in PI)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=OI[e](t),this.mutate({standardProps:{publicId:t}});else if(e in OI)t=OI[e](t),this.mutate({standardProps:{[e]:t}});else if(e in GI){let n=GI[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=TI(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=TI(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:o}=this._context,a={allDay:n.allDay},s=o.createMarker(e);var i,l;if(s&&(null==t||(r=o.createMarker(t),r))&&this._instance){let e=this._instance.range;!0===n.allDay&&(e=NI(e));let t=TI(e.start,s,o,n.granularity);if(r){let s=TI(e.end,r,o,n.granularity);l=s,(i=t).years===l.years&&i.months===l.months&&i.days===l.days&&i.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:a}):this.mutate({startDelta:t,endDelta:s,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:t,standardProps:a})}}moveStart(e){let t=GR(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=GR(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=GR(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=IM(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:o}=r.getCurrentData(),a=function(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=$I(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}(o,t.instanceId);a=function(e,t,n,r){let o=vO(e.defs,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}),a={defs:{},instances:{}};for(let t in e.defs){let s=e.defs[t];a.defs[t]=lO(s,o[t],n,r)}for(let t in e.instances){let s=e.instances[t],i=a.defs[s.defId];a.instances[t]=cO(s,i,o[s.defId],n,r)}return a}(a,0,e,r);let s=new uO(r,n,t);this._def=a.defs[n.defId],this._instance=a.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:a}),r.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:hO(a,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let e=this._context,t=fO(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new dO(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:o}=this,a={allDay:t.allDay};return t.title&&(a.title=t.title),r&&(a.start=r),o&&(a.end=o),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}toJSON(){return this.toPlainObject()}}function fO(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function hO(e,t,n){let{defs:r,instances:o}=e,a=[],s=n?n.instanceId:"";for(let e in o){let n=o[e],i=r[n.defId];n.instanceId!==s&&a.push(new uO(t,i,n))}return a}function mO(e,t,n,r){let o={},a={},s={},i=[],l=[],c=vO(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(o[n.groupId]=[],s[n.groupId]||(s[n.groupId]=n)):a[t]=[])}for(let t in e.instances){let s=e.instances[t],d=e.defs[s.defId],u=c[d.defId],f=s.range,h=!d.allDay&&r?DI(f,r):f,m=jI(h,n);m&&("inverse-background"===u.display?d.groupId?o[d.groupId].push(m):a[s.defId].push(m):"none"!==u.display&&("background"===u.display?i:l).push({def:d,ui:u,instance:s,range:m,isStart:h.start&&h.start.valueOf()===m.start.valueOf(),isEnd:h.end&&h.end.valueOf()===m.end.valueOf()}))}for(let e in o){let t=SI(o[e],n);for(let n of t){let t=s[e],r=c[t.defId];i.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in a){let r=SI(a[t],n);for(let n of r)i.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:i,fg:l}}function pO(e,t){e.fcSeg=t}function gO(e){return e.fcSeg||e.parentNode.fcSeg||null}function vO(e,t){return ZM(e,(e=>yO(e,t)))}function yO(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),KI(n)}function xO(e,t){let n=e.map(bO);return n.sort(((e,n)=>function(e,t,n){let r,o;for(r=0;r<n.length;r+=1)if(o=HR(e,t,n[r]),o)return o;return 0}(e,n,t))),n.map((e=>e._seg))}function bO(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:e})}function wO(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:o,ui:a}=e.eventRange,s=a.startEditable;for(let e of r)s=e(s,o,a,t);return s}function kO(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function _O(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function SO(e,t,n,r,o,a,s){let{dateEnv:i,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==o);let h=f.range.start,m=f.range.end,p=a||e.start||e.eventRange.range.start,g=s||e.end||e.eventRange.range.end,v=iM(h).valueOf()===iM(p).valueOf(),y=iM(oM(m,-1)).valueOf()===iM(oM(g,-1)).valueOf();return c&&!u.allDay&&(v||y)?(p=v?h:p,g=y?m:g,d&&u.hasEnd?i.formatRange(p,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:s?null:f.forcedEndTzo}):i.format(p,t,{forcedTzo:a?null:f.forcedStartTzo})):""}function CO(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&EI(t,r.start)}}function jO(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function EO(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function NO(e,t){let{def:n,instance:r}=e.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:a,options:s}=t,{eventInteractive:i}=s;return null==i&&(i=n.interactive,null==i&&(i=Boolean(a.hasHandlers("eventClick")))),i?LR((e=>{a.trigger("eventClick",{el:e.target,event:new uO(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const DO={start:$M,end:$M,allDay:Boolean};function TO(e,t,n){return Object.assign(Object.assign({},AO(e,t,n)),{timeZone:t.timeZone})}function AO(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}class RO extends Error{constructor(e,t){super(e),this.response=t}}let MO;function IO(){return null==MO&&(MO=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),MO}class OO extends hI{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{sI((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{sI((()=>{this.setState({forPrint:!1})}))}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,a=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return IO()||a.push("fc-liquid-hack"),e.children(a,o,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class PO{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}const LO={};class FO extends yA{constructor(e,t){super(e,t),this.handleRefresh=()=>{let e=this.computeTiming();e.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(e.state),this.clearTimeout(),this.setTimeout(e.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let e,t,{props:n,context:r}=this,o=r.nowManager.getDateMarker(),{nowIndicatorSnap:a}=r.options;return"auto"===a&&(a=/year|month|week|day/.test(n.unit)||1===(n.unitValue||1)),a?(e=r.dateEnv.startOf(o,n.unit),t=r.dateEnv.add(e,GR(1,n.unit)).valueOf()-o.valueOf()):(e=o,t=6e4),t=Math.min(864e5,t),{state:{nowDate:e,todayRange:zO(e)},waitMs:t}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout((()=>{const e=this.computeTiming();this.setState(e.state,(()=>{this.setTimeout(e.waitMs)}))}),e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function zO(e){let t=iM(e);return{start:t,end:rM(t,1)}}FO.contextType=dI;class HO{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:o}=this.getCurrentData(),a=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(let e in r)a.push(e);for(t=0;t<a.length;t+=1)if(n=r[a[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=GR(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),IM(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),IM(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),o=function(e,t,n){let r=function(e,t){let{refined:n,extra:r}=UM(e,DO),o=n.start?t.createMarkerMeta(n.start):null,a=n.end?t.createMarkerMeta(n.end):null,{allDay:s}=n;return null==s&&(s=o&&o.isTimeUnspecified&&(!a||a.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:a?a.marker:null},allDay:s},r)}(e,t),{range:o}=r;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}(n,r.dateEnv,GR({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),function(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},function(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,o=t.dateEnv,Object.assign(Object.assign({},AO(r.range,o,r.allDay)),{allDay:r.allDay}))),n}(e,n)),{jsEvent:null,view:n.viewApi||n.calendarApi.view}))}(o,0,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof uO){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:WI({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof dO)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=QM(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let o=FI(e,n,r,!1);if(o){let e=new uO(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:WI(o)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:fO(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let o in n){let a=n[o];if(a.publicId===e){if(a.recurringDef)return new uO(t,a,null);for(let e in r){let n=r[e];if(n.defId===a.defId)return new uO(t,a,n)}}}return null}getEvents(){let e=this.getCurrentData();return hO(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new dO(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new dO(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof dO)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=XI(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new dO(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=GR(e);t&&this.trigger("_scrollRequest",{time:t})}}function BO(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}const VO={defs:{},instances:{}};class WO{constructor(){this.getKeysForEventDefs=xM(this._getKeysForEventDefs),this.splitDateSelection=xM(this._splitDateSpan),this.splitEventStore=xM(this._splitEventStore),this.splitIndividualUi=xM(this._splitIndividualUi),this.splitEventDrag=xM(this._splitInteraction),this.splitEventResize=xM(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),a=this.splitEventStore(e.eventStore,n),s=this.splitEventDrag(e.eventDrag),i=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=ZM(t,((e,t)=>this.eventUiBuilders[t]||xM(UO)));for(let n in t){let c=t[n],d=a[n]||VO,u=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:d,eventUiBases:u(e.eventUiBases[""],c.ui,o[n]),eventSelection:d.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[n]||null,eventResize:i[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return ZM(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,o={};for(let e in n)for(let r of t[e])o[r]||(o[r]={defs:{},instances:{}}),o[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])o[r]&&(o[r].instances[e]=n)}return o}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let o of t[r])n[o]||(n[o]={}),n[o][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),a=r=>{t[r]||(t[r]={affectedEvents:n[r]||VO,mutatedEvents:o[r]||VO,isEvent:e.isEvent})};for(let e in n)a(e);for(let e in o)a(e)}return t}}function UO(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let o={"":KI(r)};return n&&Object.assign(o,n),o}function $O(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&(!r.activeRange||!EI(r.activeRange,e))),isOther:Boolean(r&&!EI(r.currentRange,e)),isToday:Boolean(t&&EI(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function qO(e,t){let n=["fc-day",`fc-day-${tM[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const GO=IM({year:"numeric",month:"long",day:"numeric"}),YO=IM({week:"long"});function ZO(e,t,n="day",r=!0){const{dateEnv:o,options:a,calendarApi:s}=e;let i=o.format(t,"week"===n?YO:GO);if(a.navLinks){let e=o.toDate(t);const l=e=>{let r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(s,o.toDate(t),e):("string"==typeof r&&(n=r),s.zoomTo(t,n))};return Object.assign({title:VR(a.navLinkHint,[i,e],i),"data-navlink":""},r?PR(l):{onClick:l})}return{"aria-label":i}}let KO;class QO{constructor(e,t,n,r){this.els=t;let o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return JO(this.tops||[],e.tops||[])&&JO(this.bottoms||[],e.bottoms||[])&&JO(this.lefts||[],e.lefts||[])&&JO(this.rights||[],e.rights||[])}}function JO(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class XO extends hI{constructor(){super(...arguments),this.uid=zR()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!DR(e,".fc-event-mirror")}isValidDateDownEl(e){return!(DR(e,".fc-event:not(.fc-bg-event)")||DR(e,".fc-more-link")||DR(e,"a[data-navlink]")||DR(e,".fc-popover"))}}class eP{constructor(e){this.timeZoneName=e}}class tP{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const r=Object.assign(Object.assign({},t),{span:oP(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,o=t.span;r.start<o.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:o.start}},n),r.end>o.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(aP(r,t.level,t.levelCoord),aP(n,t.level,[e])):aP(n[t.level],t.lateral,e),this.stackCnts[rP(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:o}=this,a=t.length,s=0,i=-1,l=-1,c=null,d=0;for(let u=0;u<a;u+=1){const a=t[u];if(!r&&a>=s+this.getEntryThickness(e))break;let f,h=n[u],m=sP(h,e.span.start,nP),p=m[0]+m[1];for(;(f=h[p])&&f.span.start<e.span.end;){let e=a+this.getEntryThickness(f);e>s&&(s=e,c=f,i=u,l=p),e===s&&(d=Math.max(d,o[rP(f)]+1)),p+=1}}let u=0;if(c)for(u=i+1;u<a&&t[u]<s;)u+=1;let f=-1;return u<a&&t[u]===s&&(f=sP(n[u],e.span.end,nP)[0]),{touchingLevel:i,touchingLateral:l,touchingEntry:c,stackCnt:d,levelCoord:s,level:u,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let o=0;o<n;o+=1){let n=e[o],a=t[o];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:a}))}return r}}function nP(e){return e.span.end}function rP(e){return e.index+":"+e.span.start}function oP(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function aP(e,t,n){e.splice(t,0,n)}function sP(e,t,n){let r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){let a=Math.floor(r+(o-r)/2),s=n(e[a]);if(t<s)o=a;else{if(!(t>s))return[a,1];r=a+1}}return[r,0]}Boolean;const iP="fc-col-header-cell";function lP(e){return e.text}class cP extends hI{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:o}=this,{date:a,dateProfile:s}=o,i=$O(a,o.todayRange,null,s),l=[iP].concat(qO(i,n)),c=e.format(a,o.dayHeaderFormat),d=!i.isDisabled&&o.colCnt>1?ZO(this.context,a):{},u=e.toDate(a);e.namedTimeZoneImpl&&(u=oM(u,36e5));let f=Object.assign(Object.assign(Object.assign({date:u,view:r},o.extraRenderProps),{text:c}),i);return uA(bI,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":i.isDisabled?void 0:vM(a)},o.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:lP,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>uA("div",{className:"fc-scrollgrid-sync-inner"},!i.isDisabled&&uA(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]}))))}}const dP=IM({weekday:"long"});class uP extends hI{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:o}=this.context,a=rM(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},i=t.format(a,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:r}),e.extraRenderProps),{text:i});return uA(bI,{elTag:"th",elClasses:[iP,...qO(s,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:lP,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(n=>uA("div",{className:"fc-scrollgrid-sync-inner"},uA(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(a,dP)}}))))}}class fP extends hI{constructor(){super(...arguments),this.createDayHeaderFormatter=xM(hP)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return uA(FO,{unit:"day"},((e,s)=>uA("tr",{role:"row"},o&&o("day"),t.map((e=>r?uA(cP,{key:e.toISOString(),date:e,dateProfile:n,todayRange:s,colCnt:t.length,dayHeaderFormat:a}):uA(uP,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a}))))))}}function hP(e,t,n){return e||function(e,t){return IM(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}class mP{constructor(e,t){let n=e.start,{end:r}=e,o=[],a=[],s=-1;for(;n<r;)t.isHiddenDay(n)?o.push(s+.5):(s+=1,o.push(s),a.push(n)),n=rM(n,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(rM(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return r=Math.ceil(r),o=Math.floor(o),r<=o?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(aM(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class pP{constructor(e,t){let n,r,o,{dates:a}=e;if(t){for(r=a[0].getUTCDay(),n=1;n<a.length&&a[n].getUTCDay()!==r;n+=1);o=Math.ceil(a.length/n)}else o=1,n=a.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:o}=n,a=e;for(;a<=o;){let s=Math.floor(a/t),i=Math.min((s+1)*t,o+1);r.push({row:s,firstCol:a%t,lastCol:(i-1)%t,isStart:n.isStart&&a===e,isEnd:n.isEnd&&i-1===o}),a=i}}return r}}class gP{constructor(){this.sliceBusinessHours=xM(this._sliceBusinessHours),this.sliceDateSelection=xM(this._sliceDateSpan),this.sliceEventStore=xM(this._sliceEventStore),this.sliceEventDrag=xM(this._sliceInteraction),this.sliceEventResize=xM(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...o){let{eventUiBases:a}=e,s=this.sliceEventStore(e.eventStore,a,t,n,...o);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,a,r,...o),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...o),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,t,n,...o),eventResize:this.sliceEventResize(e.eventResize,a,t,n,...o),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...o){return this._sliceDateSpan({range:{start:e,end:oM(e,1)},allDay:!1},t,n,{},r,...o)}_sliceBusinessHours(e,t,n,r,...o){return e?this._sliceEventStore(MI(e,vP(t,Boolean(n)),r),{},t,n,...o).bg:[]}_sliceEventStore(e,t,n,r,...o){if(e){let a=mO(e,t,vP(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...o){if(!e)return null;let a=mO(e.mutatedEvents,t,vP(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,o,...a){if(!e)return[];let s=vP(t,Boolean(n)),i=jI(e.range,s);if(i){let t=function(e,t,n){let r=zI({editable:!1},n),o=BI(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:yO(o,t),instance:RI(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:i}),r,o),n=this.sliceRange(e.range,...a);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:rM(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function vP(e,t){let n=e.activeRange;return t?n:{start:oM(n.start,e.slotMinTime.milliseconds),end:oM(n.end,e.slotMaxTime.milliseconds-864e5)}}const yP=/^(visible|hidden)$/;class xP extends hI{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,mI(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),uA("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(yP.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(yP.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return yP.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return yP.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class bP{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,o=!1,a=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,a=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(t)),a&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return function(e,t=0,n,r=1){let o=[];null==n&&(n=Object.keys(e).length);for(let a=t;a<n;a+=r){let t=e[a];void 0!==t&&o.push(t)}return o}(this.currentMap,e,t,n)}getAll(){return QM(this.currentMap)}}function wP(e,t){return e.liquid&&t.liquid}function kP(e,t){return eM(e,t,JM)}function _P(e,t){let n=[];for(let r of e){let e=r.span||1;for(let o=0;o<e;o+=1)n.push(uA("col",{style:{width:"shrink"===r.width?SP(t):r.width||"",minWidth:r.minWidth||""}}))}return uA("colgroup",{},...n)}function SP(e){return null==e?4:e}function CP(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function jP(e){return uA("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function EP(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function NP(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class DP extends hI{constructor(){super(...arguments),this.processCols=xM((e=>e),kP),this.renderMicroColGroup=xM(_P),this.scrollerRefs=new bP,this.scrollerElRefs=new bP(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],o=this.processCols(e.cols),a=this.renderMicroColGroup(o,t.shrinkWidth),s=function(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(e.liquid,n);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let i,l=r.length,c=0,d=[],u=[],f=[];for(;c<l&&"header"===(i=r[c]).type;)d.push(this.renderSection(i,a,!0)),c+=1;for(;c<l&&"body"===(i=r[c]).type;)u.push(this.renderSection(i,a,!1)),c+=1;for(;c<l&&"footer"===(i=r[c]).type;)f.push(this.renderSection(i,a,!0)),c+=1;let h=!IO();const m={role:"rowgroup"};return uA("table",{role:"grid",className:s.join(" "),style:{height:e.height}},Boolean(!h&&d.length)&&uA("thead",m,...d),Boolean(!h&&u.length)&&uA("tbody",m,...u),Boolean(!h&&f.length)&&uA("tfoot",m,...f),h&&uA("tbody",m,...d,...u,...f))}renderSection(e,t,n){return"outerContent"in e?uA(hA,{key:e.key},e.outerContent):uA("tr",{key:e.key,role:"presentation",className:CP(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:i}=this.state,l=function(e,t){return null!=t.maxHeight||wP(e,t)}(o,e),c=wP(o,e),d=o.liquid?a?"scroll":l?"auto":"hidden":"visible",u=e.key,f=function(e,t,n,r){let{expandRows:o}=n;return"function"==typeof t.content?t.content(n):uA("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,uA(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===s[u]?null:s[u],clientHeight:void 0!==i[u]?i[u]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return uA(r?"th":"td",{ref:n.elRef,role:"presentation"},uA("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},uA(xP,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&mI(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function(e){for(let t of e)if("shrink"===t.width)return!0;return!1}(this.props.cols)?function(e){let t=function(e){let t=e instanceof HTMLElement?[e]:e,n=[];for(let e=0;e<t.length;e+=1){let r=t[e].querySelectorAll(".fc-scrollgrid-shrink");for(let e=0;e<r.length;e+=1)n.push(r[e])}return n}(e),n=0;for(let e of t)n=Math.max(n,UR(e));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=(KO||(KO=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=function(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}(e);return document.body.removeChild(e),t}()),KO),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,o={},a={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let s=t.key,i=n.currentMap[s];if(i){let t=i.parentNode;o[s]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),a[s]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:a}}}DP.addStateEquality({scrollerClientWidths:JM,scrollerClientHeights:JM});class TP extends hI{constructor(){super(...arguments),this.buildPublicEvent=xM(((e,t,n)=>new uO(e,t,n))),this.handleEl=e=>{this.el=e,mI(this.props.elRef,e),e&&pO(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:o}=r,{ui:a}=o,s={event:this.buildPublicEvent(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&wO(r,t),isStartResizable:!e.disableResizing&&kO(r,t),isEndResizable:!e.disableResizing&&_O(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return uA(bI,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...jO(s),...r.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&pO(this.el,this.props.seg)}}class AP extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:o}=r.eventRange,a=SO(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return uA(TP,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:NO(r,t),defaultGenerator:RP,timeText:a}),((e,t)=>uA(hA,null,uA(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&uA("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&uA("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function RP(e){return uA("div",{className:"fc-event-main-frame"},e.timeText&&uA("div",{className:"fc-event-time"},e.timeText),uA("div",{className:"fc-event-title-container"},uA("div",{className:"fc-event-title fc-sticky"},e.event.title||uA(hA,null," "))))}AP.addPropsEquality({seg:JM});const MP=e=>uA(dI.Consumer,null,(t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return uA(bI,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)})),IP=IM({day:"numeric"});class OP extends hI{constructor(){super(...arguments),this.refineRenderProps=bM(LP)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return uA(bI,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":vM(e.date)}),elClasses:[...qO(r,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}}function PP(e){return Boolean(e.dayCellContent||gI("dayCellContent",e))}function LP(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:o}=e,a=$O(t,e.todayRange,null,r),s=e.showDayNumber?n.format(t,o?e.monthStartFormat:IP):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},a),{isMonthStart:o,dayNumberText:s}),e.extraRenderProps)}class FP extends hI{render(){let{props:e}=this,{seg:t}=e;return uA(TP,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:zP,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function zP(e){let{title:t}=e.event;return t&&uA("div",{className:"fc-event-title"},e.event.title)}function HP(e){return uA("div",{className:`fc-${e}`})}const BP=e=>uA(dI.Consumer,null,(t=>{let{dateEnv:n,options:r}=t,{date:o}=e,a=r.weekNumberFormat||e.defaultFormat,s={num:n.computeWeekNumber(o),text:n.format(o,a),date:o};return uA(bI,{elRef:e.elRef,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:s,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:VP,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}));function VP(e){return e.text}class WP extends hI{constructor(){super(...arguments),this.state={titleId:IR()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&mI(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=function(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,o=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return function(e,t){var n=uA(cR,{__v:e,i:t});return n.containerInfo=t,n}(uA("div",Object.assign({},n.extraAttrs,{id:n.id,className:o.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),uA("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},uA("span",{className:"fc-popover-title",id:r.titleId},n.title),uA("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),uA("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,o=function(e){let t=function(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}(e),n=e.getBoundingClientRect();for(let e of t){let t=BO(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(o){let a=r.getBoundingClientRect(),s=n?DR(t,".fc-scrollgrid").getBoundingClientRect().top:o.top,i=e?o.right-a.width:o.left;s=Math.max(s,10),i=Math.min(i,document.documentElement.clientWidth-10-a.width),i=Math.max(i,10);let l=r.offsetParent.getBoundingClientRect();!function(e,t){for(let n in t)RR(e,n,t[n])}(r,{top:s-l.top,left:i-l.left})}}}class UP extends XO{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:o,dateProfile:a}=n,s=t.format(r,e.dayPopoverFormat);return uA(OP,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:o},((t,r,o)=>uA(WP,{elRef:o.ref,id:n.id,title:s,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},PP(e)&&uA(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:o,props:a}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class $P extends hI{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:IR()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&mI(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,o=GP(t).start;function a(e){let{def:t,instance:r,range:o}=e.eventRange;return{event:new uO(n,t,r),start:n.dateEnv.toDate(o.start),end:n.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:o,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(o,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return uA(dI.Consumer,null,(n=>{let{viewApi:r,options:o,calendarApi:a}=n,{moreLinkText:s}=o,{moreCnt:i}=e,l=GP(e),c="function"==typeof s?s.call(a,i):`+${i} ${s}`,d=VR(o.moreLinkHint,[i],c),u={num:i,shortText:`+${i}`,text:c,view:r};return uA(hA,null,Boolean(e.moreCnt)&&uA(bI,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),PR(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||qP,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&uA(UP,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=DR(this.linkEl,".fc-view-harness"))}}function qP(e){return e.text}function GP(e){if(e.allDayDate)return{start:e.allDayDate,end:rM(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:YP(t),end:(n=t,n.reduce(KP).eventRange.range.end)};var n}function YP(e){return e.reduce(ZP).eventRange.range.start}function ZP(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function KP(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class QP{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class JP extends QP{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}const XP=[],eL={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},tL=Object.assign(Object.assign({},eL),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function nL(e){let t=e.length>0?e[0].code:"en",n=XP.concat(e),r={en:tL};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function rL(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||tL;return oL(e,n,r)}(e,t):oL(e.code,[e.code],e)}function oL(e,t,n){let r=GM([eL,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function aL(e){return{id:zR(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}class sL extends aI{}function iL(e,t,n,r){if(t[e])return t[e];let o=function(e,t,n,r){let o=n[e],a=r[e],s=e=>o&&null!==o[e]?o[e]:a&&null!==a[e]?a[e]:null,i=s("component"),l=s("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=iL(l,t,n,r)}return!i&&c&&(i=c.component),i?{type:e,component:i,defaults:Object.assign(Object.assign({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),a?a.rawOptions:{})}:null}(e,t,n,r);return o&&(t[e]=o),o}function lL(e){return ZM(e,cL)}function cL(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=dL(t):!n||n.prototype instanceof hI||(n=dL(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function dL(e){return t=>uA(dI.Consumer,null,(n=>uA(bI,{elTag:"div",elClasses:_I(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function uL(e,t,n,r){let o=lL(e),a=lL(t.views),s=function(e,t){let n,r={};for(n in e)iL(n,r,e,t);for(n in t)iL(n,r,e,t);return r}(o,a);return ZM(s,(e=>function(e,t,n,r,o){let a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,s=null,i="",l="",c={};if(a&&(s=function(e){let t=JSON.stringify(e),n=fL[t];return void 0===n&&(n=GR(e),fL[t]=n),n}(a),s)){let e=XR(s);i=e.unit,1===e.value&&(l=i,c=t[i]?t[i].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},u=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:s,durationUnit:i,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(o)||e.defaults.buttonText||d(PM)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(o)||e.defaults.buttonHint||u(PM)}}(e,a,t,n,r)))}sL.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},sL.prototype.baseIconClass="fc-icon",sL.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},sL.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},sL.prototype.iconOverrideOption="buttonIcons",sL.prototype.iconOverrideCustomButtonOption="icon",sL.prototype.iconOverridePrefix="fc-icon-";let fL={};function hL(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function mL(e,t,n,r){let o={};for(let e of t)o[e.sourceId]=e;return n&&(o=pL(o,n,r)),Object.assign(Object.assign({},e),o)}function pL(e,t,n){return gL(e,YM(e,(e=>function(e,t,n){return xL(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,n))),t,!1,n)}function gL(e,t,n,r,o){let a={};for(let s in e){let i=e[s];t[s]?a[s]=vL(i,n,r,o):a[s]=i}return a}function vL(e,t,n,r){let{options:o,calendarApi:a}=r,s=r.pluginHooks.eventSourceDefs[e.sourceDefId],i=zR();return s.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:s}=n;o.eventSourceSuccess&&(s=o.eventSourceSuccess.call(a,s,n.response)||s),e.success&&(s=e.success.call(a,s,n.response)||s),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:s})}),(n=>{let s=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(a,n),s=!0),e.failure&&(e.failure(n),s=!0),s||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:i})}function yL(e,t){return YM(e,(e=>xL(e,t)))}function xL(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function bL(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function wL(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function kL(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function _L(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function SL(e,t,n,r,o){return{header:e.headerToolbar?CL(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?CL(e.footerToolbar,e,t,n,r,o):null}}function CL(e,t,n,r,o,a){let s={},i=[],l=!1;for(let c in e){let d=jL(e[c],t,n,r,o,a);s[c]=d.widgets,i.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:s,viewsWithButtons:i,hasTitle:l}}function jL(e,t,n,r,o,a){let s="rtl"===t.direction,i=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},u=t.buttonHints||{},f=e?e.split(" "):[],h=[],m=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return m=!0,{buttonName:e};let n,f,p,g,v,y;if(n=i[e])p=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,s))||(v=n.text),y=n.hint||n.text;else if(f=o[e]){h.push(e),p=()=>{a.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,s))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=VR(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(a[e])if(p=()=>{a[e]()},(v=l[e])||(g=r.getIconClass(e,s))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=VR(d[t]||u[t],[c.year||"year","year"],c[e])}else y=t=>VR(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:p,buttonIcon:g,buttonText:v,buttonHint:y}})))),viewsWithButtons:h,hasTitle:m}}class EL{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const NL=aL({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),DL=aL({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;!function(e,n,r){let o=!1,a=function(e){o||(o=!0,t({rawEvents:e}))},s=function(e){o||(o=!0,r(e))},i=e(a,s);i&&"function"==typeof i.then&&i.then(a,s)}(e.eventSource.meta.bind(null,TO(e.range,r)),0,n)}}]}),TL={method:String,extraParams:$M,startParam:String,endParam:String,timeZoneParam:String};let AL={parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,o=function(e,t,n){let r,o,a,s,{dateEnv:i,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),o=e.endParam,null==o&&(o=l.endParam),a=e.timeZoneParam,null==a&&(a=l.timeZoneParam),s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,s),c[r]=i.formatIso(t.start),c[o]=i.formatIso(t.end),"local"!==i.timeZone&&(c[a]=i.timeZone),c}(r,e.range,e.context);(function(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new RO("Failure parsing JSON",e)}));throw new RO("Request failed",e)}))})(r.method,r.url,o).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const RL={daysOfWeek:$M,startTime:GR,endTime:GR,duration:GR,startRecur:$M,endRecur:$M};function ML(e,t){let n=QM(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const IL=[NL,DL,aL({name:"json-event-source",eventSourceRefiners:TL,eventSourceDefs:[AL]}),aL({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let o,a={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t};return e.duration&&(o=e.duration),!o&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,o={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:o,typeData:a}}var n,r;return null},expand(e,t,n){let r=jI(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r,o){let a=e?KM(e):null,s=iM(o.start),i=o.end,l=[];for(t&&(t.milliseconds<0?i=rM(i,1):t.milliseconds>=864e5&&(s=rM(s,-1)));s<i;){let e;a&&!a[s.getUTCDay()]||(e=t?r.add(s,t):s,l.push(r.createMarker(n.toDate(e)))),s=rM(s,1)}return l}(e.daysOfWeek,e.startTime,e.dateEnv,n,r):[]}}],eventRefiners:RL}),aL({name:"change-handler",optionChangeHandlers:{events(e,t){ML([e],t)},eventSources:ML}}),aL({name:"misc",isLoadingFuncs:[e=>hL(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},TO(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",hO(e,t))}}})];class OL{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new ER(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function PL(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,IM(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=sM(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class LL{constructor(){this.resetListeners=new Set}handleInput(e,t){const n=this.dateEnv;if(e!==n&&("function"==typeof t?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(const e of this.resetListeners.values())e()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class FL{constructor(e){this.computeCurrentViewData=xM(this._computeCurrentViewData),this.organizeRawLocales=xM(nL),this.buildLocale=xM(rL),this.buildPluginHooks=function(){let e,t=[],n=[];return(r,o)=>(e&&eM(r,t)&&eM(o,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(let l of e){const e=l.name,c=n[e];void 0===c?(n[e]=l.id,o(l.deps),i=l,r={premiumReleaseDate:(t=(s=r).premiumReleaseDate,a=i.premiumReleaseDate,void 0===t?a:void 0===a?t:new Date(Math.max(t.valueOf(),a.valueOf()))),reducers:s.reducers.concat(i.reducers),isLoadingFuncs:s.isLoadingFuncs.concat(i.isLoadingFuncs),contextInit:s.contextInit.concat(i.contextInit),eventRefiners:Object.assign(Object.assign({},s.eventRefiners),i.eventRefiners),eventDefMemberAdders:s.eventDefMemberAdders.concat(i.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},s.eventSourceRefiners),i.eventSourceRefiners),isDraggableTransformers:s.isDraggableTransformers.concat(i.isDraggableTransformers),eventDragMutationMassagers:s.eventDragMutationMassagers.concat(i.eventDragMutationMassagers),eventDefMutationAppliers:s.eventDefMutationAppliers.concat(i.eventDefMutationAppliers),dateSelectionTransformers:s.dateSelectionTransformers.concat(i.dateSelectionTransformers),datePointTransforms:s.datePointTransforms.concat(i.datePointTransforms),dateSpanTransforms:s.dateSpanTransforms.concat(i.dateSpanTransforms),views:Object.assign(Object.assign({},s.views),i.views),viewPropsTransformers:s.viewPropsTransformers.concat(i.viewPropsTransformers),isPropsValid:i.isPropsValid||s.isPropsValid,externalDefTransforms:s.externalDefTransforms.concat(i.externalDefTransforms),viewContainerAppends:s.viewContainerAppends.concat(i.viewContainerAppends),eventDropTransformers:s.eventDropTransformers.concat(i.eventDropTransformers),calendarInteractions:s.calendarInteractions.concat(i.calendarInteractions),componentInteractions:s.componentInteractions.concat(i.componentInteractions),themeClasses:Object.assign(Object.assign({},s.themeClasses),i.themeClasses),eventSourceDefs:s.eventSourceDefs.concat(i.eventSourceDefs),cmdFormatter:i.cmdFormatter||s.cmdFormatter,recurringTypes:s.recurringTypes.concat(i.recurringTypes),namedTimeZonedImpl:i.namedTimeZonedImpl||s.namedTimeZonedImpl,initialView:s.initialView||i.initialView,elementDraggingImpl:s.elementDraggingImpl||i.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},s.optionChangeHandlers),i.optionChangeHandlers),scrollGridImpl:i.scrollGridImpl||s.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},s.listenerRefiners),i.listenerRefiners),optionRefiners:Object.assign(Object.assign({},s.optionRefiners),i.optionRefiners),propSetHandlers:Object.assign(Object.assign({},s.propSetHandlers),i.propSetHandlers)}):c!==l.id&&console.warn(`Duplicate plugin '${e}'`)}var t,a,s,i}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e)}(),this.buildDateEnv=xM(zL),this.buildTheme=xM(HL),this.parseToolbars=xM(SL),this.buildViewSpecs=xM(uL),this.buildDateProfileGenerator=bM(BL),this.buildViewApi=xM(VL),this.buildViewUiProps=bM($L),this.buildEventUiBySource=xM(WL,JM),this.buildEventUiBases=xM(UL),this.parseContextBusinessHours=bM(GL),this.buildTitle=xM(PL),this.nowManager=new LL,this.emitter=new aO,this.actionRunner=new OL(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause(),this.nowManager=new LL;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let a={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s=function(e,t,n){let r=e.initialDate;return null!=r?t.createMarker(r):n.getDateMarker()}(n.calendarOptions,n.dateEnv,this.nowManager),i=o.dateProfileGenerator.build(s);EI(i.activeRange,s)||(s=i.currentRange.start);for(let e of n.pluginHooks.contextInit)e(a);let l=function(e,t,n){let r=t?t.activeRange:null;return mL({},function(e,t){let n=eO(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let e of r){let r=XI(e,t,n);r&&o.push(r)}return o}(e,n),r,n)}(n.calendarOptions,i,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:i,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,d));qL(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,o=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),a=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),s=function(e,t){return"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType),e}(n.currentViewType,e),i=this.computeCurrentViewData(s,a,t.optionOverrides,o);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(i.options);let l={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==i.dateProfileGenerator&&(d=i.dateProfileGenerator.build(c)),c=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(c,e),d=function(e,t,n,r){let o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(o=r.buildPrev(e,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o}return e}(d,e,c,i.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&EI(d.currentRange,c)||(c=d.currentRange.start);let u=function(e,t,n,r){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return mL(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return a=e,s=t.sourceId,YM(a,(e=>e.sourceId!==s));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?pL(e,o,r):e;case"FETCH_EVENT_SOURCES":return gL(e,t.sourceIds?KM(t.sourceIds):yL(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let o=e[t];return o&&n===o.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})}):e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var a,s}(n.eventSources,e,d,l),f=function(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,a){if(t&&n===t.latestFetchId){let n=VI(tO(o,t,a),t,a);return r&&(n=MI(n,r,a)),UI(oO(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"RESET_RAW_EVENTS":return function(e,t,n,r,o){const{defIdMap:a,instanceIdMap:s}=function(e){const{defs:t,instances:n}=e,r={},o={};for(let e in t){const n=t[e],{publicId:o}=n;o&&(r[o]=e)}for(let e in n){const r=t[n[e].defId],{publicId:a}=r;a&&(o[a]=e)}return{defIdMap:r,instanceIdMap:o}}(e);return MI(VI(tO(n,t,o),t,o,!1,a,s),r,o)}(e,n[t.sourceId],t.rawEvents,r.activeRange,o);case"ADD_EVENTS":return function(e,t,n,r){return n&&(t=MI(t,n,r)),UI(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return UI(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?MI(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,o={},a={};for(let e in n)t.defs[e]||(o[e]=n[e]);for(let e in r)!t.instances[e]&&o[r[e].defId]&&(a[e]=r[e]);return{defs:o,instances:a}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return oO(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return $I(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}(n.eventStore,e,u,d,l),h=hL(u)&&!i.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:m,selectionConfig:p}=this.buildViewUiProps(l),g=this.buildEventUiBySource(u),v={dynamicOptionOverrides:o,currentViewType:s,currentDate:c,dateProfile:d,eventSources:u,eventStore:f,renderableEventStore:h,selectionConfig:p,eventUiBases:this.buildEventUiBases(h.defs,m,g),businessHours:this.parseContextBusinessHours(l),dateSelection:bL(n.dateSelection,e),eventSelection:wL(n.eventSelection,e),eventDrag:kL(n.eventDrag,e),eventResize:_L(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of a.pluginHooks.reducers)Object.assign(v,t(n,e,y));let x=qL(n,l),b=qL(v,l);!x&&b?r.trigger("loading",!0):x&&!b&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,o.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),o),t),s=r.pluginHooks.optionChangeHandlers,i=n&&n.calendarOptions,l=r.calendarOptions;if(i&&i!==l){i.timeZone!==l.timeZone&&(t.eventSources=a.eventSources=function(e,t,n){let r=t?t.activeRange:null;return gL(e,yL(e,n),r,!0,n)}(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=rO(a.eventStore,n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=rO(a.renderableEventStore,n.dateEnv,a.dateEnv));for(let e in s)-1===this.optionsForHandling.indexOf(e)&&i[e]===l[e]||s[e](l[e],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:o,localeDefaults:a,availableLocaleData:s,extra:i}=this.processRawCalendarOptions(e,t);YL(i);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,o,s,r.defaultRangeSeparator),c=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),d=this.buildTheme(r,o),u=this.parseToolbars(r,this.stableOptionOverrides,d,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:o,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=WM([PM,e,t]),o=this.organizeRawLocales(n),a=o.map,s=this.buildLocale(r||o.defaultCode,a).options,i=this.buildPluginHooks(e.plugins||[],IL),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OM),LM),FM),i.listenerRefiners),i.optionRefiners),c={},d=WM([PM,s,e,t]),u={},f=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,m=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===f[e]||zM[e]&&e in f&&zM[e](f[e],d[e]))?u[e]=h[e]:l[e]?(u[e]=l[e](d[e]),m=!0):c[e]=f[e];return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:i,availableLocaleData:o,localeDefaults:s,extra:c}}_computeCurrentViewData(e,t,n,r){let o=t.viewSpecs[e];if(!o)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r);return YL(s),this.nowManager.handleInput(t.dateEnv,a.now),{viewSpec:o,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,o){let a=WM([PM,e.optionDefaults,n,r,e.optionOverrides,o]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OM),LM),FM),VM),t.listenerRefiners),t.optionRefiners),i={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let e in a)a[e]===l[e]||zM[e]&&zM[e](a[e],l[e])?i[e]=c[e]:(a[e]===this.currentCalendarOptionsInput[e]||zM[e]&&zM[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(i[e]=this.currentCalendarOptionsRefined[e]):s[e]?i[e]=s[e](a[e]):u[e]=a[e],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=i),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function zL(e,t,n,r,o,a,s,i){let l=rL(t||s.defaultCode,s.map);return new oI({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:a.cmdFormatter,defaultSeparator:i})}function HL(e,t){return new(t.themeClasses[e.themeSystem]||sL)(e)}function BL(e){return new(e.dateProfileGeneratorClass||AI)(e)}function VL(e,t,n){return new EL(e,t,n)}function WL(e){return ZM(e,(e=>e.ui))}function UL(e,t,n){let r={"":t};for(let t in e){let o=e[t];o.sourceId&&n[o.sourceId]&&(r[t]=n[o.sourceId])}return r}function $L(e){let{options:t}=e;return{eventUiSingleBase:ZI({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:ZI({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function qL(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function GL(e){return t=e.options.businessHours,n=e,VI(function(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[],t=t.map((e=>Object.assign(Object.assign({},sO),e))),t}(t),null,n);var t,n}function YL(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class ZL extends hI{render(){return uA("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((e=>this.renderWidgetGroup(e))))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let a of e){let{buttonName:e,buttonClick:s,buttonText:i,buttonIcon:l,buttonHint:c}=a;if("title"===e)o=!1,r.push(uA("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,a=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];o&&d.push(n.getClass("buttonActive")),r.push(uA("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:a,"aria-pressed":o,className:d.join(" "),onClick:s},i||(l?uA("span",{className:l,role:"img"}):"")))}}return r.length>1?uA("div",{className:o&&n.getClass("buttonGroup")||""},...r):r[0]}}class KL extends hI{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,a=n.sectionWidgets,s=a.center;return a.left?(o=!0,e=a.left):e=a.start,a.right?(o=!0,t=a.right):t=a.end,uA("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return uA(ZL,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class QL extends hI{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,mI(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return n?null!==t.availableWidth?o=t.availableWidth/n:a=1/n*100+"%":o=e.height||"",uA("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class JL extends PO{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,o=gO(t);if(o&&n.isValidSegDownEl(e.target)){let a=DR(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new uO(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},this.destroy=OR(e.el,"click",".fc-event",this.handleSegClick)}}class XL extends PO{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{gO(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let o;return OR(e,"mouseover",".fc-event",((e,t)=>{if(t!==o){o=t,n(e,t);let a=e=>{o=null,r(e,t),t.removeEventListener("mouseleave",a)};t.addEventListener("mouseleave",a)}}))}(e.el,0,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:o}=r,a=gO(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new uO(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:o.viewApi})}}class eF extends fI{constructor(){super(...arguments),this.buildViewContext=xM(uI),this.buildViewPropTransformers=xM(nF),this.buildToolbarProps=xM(tF),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:IR()},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[JL,XL].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=r,LO[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete LO[e.uid]},this.resizeRunner=new ER((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,o=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=r.height?o=!0:null!=r.contentHeight?a=r.contentHeight:e=Math.max(r.aspectRatio,.5);let s=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),i=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return uA(dI.Provider,{value:s},uA(FO,{unit:"day"},(r=>{let s=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,r,t.viewTitle);return uA(hA,null,n.header&&uA(KL,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:i},s)),uA(QL,{liquid:o,height:a,aspectRatio:e,labeledById:i},this.renderView(t),this.buildAppendContent()),n.footer&&uA(KL,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},s)))})))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return uA(hA,{},...e.pluginHooks.viewContainerAppends.map((t=>t(e))))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of o)Object.assign(r,t.transform(r,e));return uA(n.component,Object.assign({},r))}}function tF(e,t,n,r,o,a){let s=n.build(o,void 0,!1),i=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!EI(t.currentRange,o),isPrevEnabled:i.isValid,isNextEnabled:l.isValid}}function nF(e){return e.map((e=>new e))}class rF extends HO{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;sI((()=>{OA(uA(OO,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,o)=>(this.setClassNames(t),this.setHeight(n),uA(xI.Provider,{value:this.customContentRenderId},uA(eF,Object.assign({isHeightAuto:r,forPrint:o},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,OA(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&SR(e.getRootNode())}(e),this.el=e,this.renderRunner=new ER(this.handleRenderRequest),new FL({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){sI((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!eM(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){RR(this.el,"height",e)}}class oF extends XO{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(e,t){let{props:n,context:r}=this,o=[],a=EP(r.options);return e&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),uA(kI,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},uA(DP,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))}renderHScrollLayout(e,t,n,r){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,i=!a.forPrint&&EP(s.options),l=!a.forPrint&&NP(s.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:i,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:jP}]}),uA(kI,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},uA(o,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function aF(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function sF(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function iF(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}const lF=IM({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function cF(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class dF extends hI{render(){let{props:e}=this;return uA(AP,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:lF,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class uF extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,o=SO(r,n.eventTimeFormat||lF,t,!0,e.defaultDisplayEventEnd);return uA(TP,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:NO(e.seg,t),defaultGenerator:fF,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function fF(e){return uA(hA,null,uA("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&uA("div",{className:"fc-event-time"},e.timeText),uA("div",{className:"fc-event-title"},e.event.title||uA(hA,null," ")))}class hF extends hI{constructor(){super(...arguments),this.compileSegs=xM(mF)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return uA($P,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return uA(hA,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return uA("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},cF(t)?uA(uF,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},CO(t,e.todayRange))):uA(dF,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},CO(t,e.todayRange))))})))}})}}function mF(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const pF=IM({week:"narrow"});class gF extends XO{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:IR()},this.handleRootEl=e=>{mI(this.rootElRef,e),mI(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:o,dateEnv:a}=e,{date:s,dateProfile:i}=t;const l=t.showDayNumber&&function(e,t,n){const{start:r,end:o}=t,a=oM(o,-1),s=n.getYear(r),i=n.getMonth(r),l=n.getYear(a),c=n.getMonth(a);return!(s===l&&i===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<o.valueOf())}(s,i.currentRange,a);return uA(OP,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:vF,date:s,dateProfile:i,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},((a,i)=>uA("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&uA(BP,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ZO(e,s,"week"),date:s,defaultFormat:pF}),!i.isDisabled&&(t.showDayNumber||PP(o)||t.forceDayTop)?uA("div",{className:"fc-daygrid-day-top"},uA(a,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ZO(e,s)),{id:n.dayNumberId})})):t.showDayNumber?uA("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},uA("a",{className:"fc-daygrid-day-number"}," ")):void 0,uA("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,uA("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},uA(hF,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),uA("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function vF(e){return e.dayNumberText||uA(hA,null," ")}function yF(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function xF(e){return yF(e)+":"+e.lastCol}function bF(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let o=e.eventRange,a=o.range,s=jI(a,{start:r[t].date,end:rM(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:e.isStart&&s.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===a.end.valueOf()})}class wF extends tP{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[rP(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:r,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:i}=e;if(this.hiddenConsumes&&a){const e=rP(a);if(!o[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},a),{span:oP(a.span,t.span)});o[rP(e)]=!0,r[s][i]=e,n.push(e),this.splitEntry(a,t,n)}else o[e]=!0,n.push(a)}super.handleInvalidInsertion(e,t,n)}}class kF extends XO{constructor(){super(...arguments),this.cellElRefs=new bP,this.frameElRefs=new bP,this.fgElRefs=new bP,this.segHarnessRefs=new bP,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=e.cells.length,a=sF(e.businessHourSegs,o),s=sF(e.bgEventSegs,o),i=sF(this.getHighlightSegs(),o),l=sF(this.getMirrorSegs(),o),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:f}=function(e,t,n,r,o,a,s){let i=new wF((t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return o[n]||1}));i.allowReslicing=!0,i.strictOrder=r,!0===t||!0===n?(i.maxCoord=a,i.hiddenConsumes=!0):"number"==typeof t?i.maxStackCnt=t:"number"==typeof n&&(i.maxStackCnt=n,i.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t],r=xF(n);null!=o[r]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let d=i.addSegs(l),u=i.toRects(),{singleColPlacements:f,multiColPlacements:h,leftoverMargins:m}=function(e,t,n){let r=function(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}(e,n.length),o=[],a=[],s=[];for(let e=0;e<n.length;e+=1){let i=r[e],l=[],c=0,d=0;for(let r of i){let o=t[r.index];l.push({seg:bF(o,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let u=[];c=0,d=0;for(let r of i){let o=t[r.index],a=r.span.end-r.span.start>1,s=r.span.start===e;d+=r.levelCoord-c,c=r.levelCoord+r.thickness,a?(d+=r.thickness,s&&u.push({seg:bF(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):s&&(u.push({seg:bF(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:d}),d=0)}o.push(l),a.push(u),s.push(d)}return{singleColPlacements:o,multiColPlacements:a,leftoverMargins:s}}(u,e,s),p=[],g=[];for(let e of c){h[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)f[t].push({seg:bF(e,t,t+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<s.length;e+=1)p.push(0);for(let t of d){let n=e[t.index],r=t.span;h[r.start].push({seg:bF(n,r.start,r.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)p[e]+=1,f[e].push({seg:bF(n,e,e+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<s.length;e+=1)g.push(m[e]);return{singleColPlacements:f,multiColPlacements:h,moreCnts:p,moreMarginTops:g}}(xO(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return uA("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:d[n],e.todayRange,h),o=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}(l[n],d),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return uA(gF,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:f[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:uA(hA,null,uA(hA,null,r),uA(hA,null,o)),bgContent:uA(hA,null,this.renderFillSegs(i[n],"highlight"),this.renderFillSegs(a[n],"non-business"),this.renderFillSegs(s[n],"bg-event")),minHeight:e.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!JM(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,o,a,s){let{context:i}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,d=1===this.props.cells.length,u=o||a||s,f=[];if(c)for(let e of t){let{seg:t}=e,{instanceId:h}=t.eventRange.instance,m=e.isVisible&&!r[h],p=e.isAbsolute,g="",v="";p&&(i.isRtl?(v=0,g=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(g=0,v=c.rights[t.firstCol]-c.rights[t.lastCol])),f.push(uA("div",{className:"fc-daygrid-event-harness"+(p?" fc-daygrid-event-harness-abs":""),key:yF(t),ref:u?null:this.segHarnessRefs.createRef(xF(t)),style:{visibility:m?"":"hidden",marginTop:p?"":e.marginTop,top:p?e.absoluteTop:"",left:g,right:v}},cF(t)?uA(uF,Object.assign({seg:t,isDragging:o,isSelected:h===l,defaultDisplayEventEnd:d},CO(t,n))):uA(dF,Object.assign({seg:t,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:h===l,defaultDisplayEventEnd:d},CO(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of e){let e=n?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(uA("div",{key:EO(s.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?uA(FP,Object.assign({seg:s},CO(s,r))):HP(t)))}return uA(hA,{},...a)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>r.currentMap[e.key]));if(e.length){let t=this.rootElRef.current,r=new QO(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(r)||this.setState({framePositions:new QO(t,e,!0,!1)})}}const o=this.state.segHeights,a=this.querySegHeights(),s=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}kF.addStateEquality({segHeights:JM});class _F extends XO{constructor(){super(...arguments),this.splitBusinessHourSegs=xM(aF),this.splitBgEventSegs=xM(aF),this.splitFgEventSegs=xM(aF),this.splitDateSelectionSegs=xM(aF),this.splitEventDrag=xM(iF),this.splitEventResize=xM(iF),this.rowRefs=new bP}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),o=this.splitBgEventSegs(e.bgEventSegs,n),a=this.splitFgEventSegs(e.fgEventSegs,n),s=this.splitDateSelectionSegs(e.dateSelectionSegs,n),i=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return uA(FO,{unit:"day"},((t,d)=>uA(hA,null,e.cells.map(((t,u)=>uA(kF,{ref:this.rowRefs.createRef(u),key:t.length?t[0].date.toISOString():u,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:d,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[u],eventSelection:e.eventSelection,bgEventSegs:o[u].filter(SF),fgEventSegs:a[u],dateSelectionSegs:s[u],eventDrag:i[u],eventResize:l[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new QO(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new QO(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,o=n.leftToIndex(e),a=r.topToIndex(t);if(null!=a&&null!=o){let e=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:rM(n,1)}}}function SF(e){return e.eventRange.def.allDay}class CF extends XO{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,o=!0===n||!0===t;o&&!r&&(o=!1,t=null,n=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return uA("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},uA("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,uA("tbody",{role:"presentation"},uA(_F,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=function(e,t){let n;var r;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${r=t.currentDate,r.toISOString().match(/^\d{4}-\d{2}/)[0]}-01"]`)),n||(n=e.querySelector(`[data-date="${vM(t.currentDate)}"]`)),n}(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}class jF extends gP{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class EF extends XO{constructor(){super(...arguments),this.slicer=new jF,this.tableRef={current:null}}render(){let{props:e,context:t}=this;return uA(CF,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}function NF(e,t){let n=new mP(e.renderRange,t);return new pP(n,/year|month|week/.test(e.currentRangeUnit))}_R(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var DF=aL({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends oF{constructor(){super(...arguments),this.buildDayTableModel=xM(NF),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),o=e.dayHeaders&&uA(fP,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),a=t=>uA(EF,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(o,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(o,a)}},dateProfileGeneratorClass:class extends AI{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:o}=this;return function(e){let t,{dateEnv:n,currentRange:r}=e,{start:o,end:a}=r;if(e.snapToWeek&&(o=n.startOfWeek(o),t=n.startOfWeek(a),t.valueOf()!==a.valueOf()&&(a=nM(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(rM(r.end,-1)));a=nM(a,6-Math.ceil(aM(e,a)/7))}return{start:o,end:a}}({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class TF extends hI{constructor(){super(...arguments),this.state={textId:IR()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:o,dayDate:a,todayRange:s}=this.props,{textId:i}=this.state,l=$O(a,s),c=n.listDayFormat?t.format(a,n.listDayFormat):"",d=n.listDaySideFormat?t.format(a,n.listDaySideFormat):"",u=Object.assign({date:t.toDate(a),view:r,textId:i,text:c,sideText:d,navLinkAttrs:ZO(this.context,a),sideNavLinkAttrs:ZO(this.context,a,"day",!1)},l);return uA(bI,{elTag:"tr",elClasses:["fc-list-day",...qO(l,e)],elAttrs:{"data-date":vM(a)},renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:AF,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(t=>uA("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":i},uA(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]}))))}}function AF(e){return uA(hA,null,e.text&&uA("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&uA("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const RF=IM({hour:"numeric",minute:"2-digit",meridiem:"short"});class MF extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:o,eventHeaderId:a,dateHeaderId:s}=e,i=n.eventTimeFormat||RF;return uA(TP,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(e,t){let n=NO(e,t);return uA("a",Object.assign({},n),e.eventRange.def.title)}(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),((e,n)=>uA(hA,null,function(e,t,n,r,o){let{options:a}=n;if(!1!==a.displayEventTime){let s,i=e.eventRange.def,l=e.eventRange.instance,c=!1;if(i.allDay?c=!0:function(e){let t=DI(e);return aM(t.start,t.end)>1}(e.eventRange.range)?e.isStart?s=SO(e,t,n,null,null,l.range.start,e.end):e.isEnd?s=SO(e,t,n,null,null,e.start,l.range.end):c=!0:s=SO(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return uA(bI,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${o}`},renderProps:e,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:IF,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return uA("td",{className:"fc-list-event-time"},s)}return null}(r,i,t,o,s),uA("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},uA("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),uA(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${s}`}}))))}}function IF(e){return e.text}function OF(e){return e.text}function PF(e){let t=iM(e.renderRange.start),n=e.renderRange.end,r=[],o=[];for(;t<n;)r.push(t),o.push({start:t,end:rM(t,1)}),t=rM(t,1);return{dayDates:r,dayRanges:o}}function LF(e){return!1===e?null:IM(e)}_R(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var FF=aL({name:"@fullcalendar/list",optionRefiners:{listDayFormat:LF,listDaySideFormat:LF,noEventsClassNames:$M,noEventsContent:$M,noEventsDidMount:$M,noEventsWillUnmount:$M},views:{list:{component:class extends XO{constructor(){super(...arguments),this.computeDateVars=xM(PF),this.eventStoreToSegs=xM(this._eventStoreToSegs),this.state={timeHeaderId:IR(),eventHeaderId:IR(),dateHeaderIdRoot:IR()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),o=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return uA(kI,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},uA(xP,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return uA(bI,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:OF,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(e=>uA(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:s}=this.state,i=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return uA(FO,{unit:"day"},((e,l)=>{let c=[];for(let n=0;n<i.length;n+=1){let d=i[n];if(d){let i=vM(t[n]),u=s+"-"+i;c.push(uA(TF,{key:i,cellId:u,dayDate:t[n],todayRange:l})),d=xO(d,r.eventOrder);for(let t of d)c.push(uA(MF,Object.assign({key:i+":"+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:u},CO(t,l,e))))}}return uA("table",{className:"fc-list-table "+n.getClass("table")},uA("thead",null,uA("tr",null,uA("th",{scope:"col",id:o},r.timeHint),uA("th",{scope:"col","aria-hidden":!0}),uA("th",{scope:"col",id:a},r.eventHint))),uA("tbody",null,c))}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(mO(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,o,{dateEnv:a}=this.context,{nextDayThreshold:s}=this.context.options,i=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if(r=jI(i,t[n]),r&&(o={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===i.end.valueOf(),dayIndex:n},c.push(o),!o.isEnd&&!l&&n+1<t.length&&i.end<a.add(t[n+1].start,s))){o.end=i.end,o.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});function zF(e,t,n){return vs.fromObject({year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]},{locale:n,zone:t})}function HF(e){let t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){let e=HF(t[2]);return{head:t[1],middle:e,tail:t[3],whole:t[1]+e.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function BF(e,t,n,r){if(e.middle){let o=t(e.head),a=BF(e.middle,t,n,r),s=t(e.tail),i=n(e.head),l=BF(e.middle,t,n,r),c=n(e.tail);if(o===i&&s===c)return o+(a===l?a:a+r+l)+s}let o=t(e.whole),a=n(e.whole);return o===a?o:o+r+a}var VF=aL({name:"@fullcalendar/luxon3",cmdFormatter:function(e,t){let n=HF(e);if(t.end){let e=zF(t.start.array,t.timeZone,t.localeCodes[0]),r=zF(t.end.array,t.timeZone,t.localeCodes[0]);return BF(n,e.toFormat.bind(e),r.toFormat.bind(r),t.defaultSeparator)}return zF(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(n.whole)},namedTimeZonedImpl:class extends eP{offsetForArray(e){return zF(e,this.timeZoneName).offset}timestampToArray(e){return[(t=vs.fromMillis(e,{zone:this.timeZoneName})).year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond];var t}}});const WF=parseInt(String(e.version).split(".")[0])<18;class UF extends e.Component{constructor(){super(...arguments),this.elRef=(0,e.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame((()=>{this.doResize()})))}}render(){const t=[];for(const n of this.state.customRenderingMap.values())t.push(e.createElement($F,{key:n.id,customRendering:n}));return e.createElement("div",{ref:this.elRef},t)}componentDidMount(){this.isUnmounting=!1;const e=new JP;let t;this.handleCustomRendering=e.handle.bind(e),this.calendar=new rF(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",(()=>{(0,pe.flushSync)((()=>{}))})),e.subscribe((e=>{const n=Date.now(),r=!t;(WF||r||this.isUpdating||this.isUnmounting||n-t<100?qF:pe.flushSync)((()=>{this.setState({customRenderingMap:e},(()=>{t=n,r?this.doResize():this.requestResize()}))}))}))}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}UF.act=qF;class $F extends e.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,pe.createPortal)(n,e.containerEl)}}function qF(e){e()}class GF extends WO{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?"background"===(t=e).ui.display||"inverse-background"===t.ui.display?["timed","allDay"]:["allDay"]:["timed"];var t}}const YF=IM({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function ZF(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return uA(dI.Consumer,null,(n=>{if(!e.isLabeled)return uA("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:o,viewApi:a}=n,s=null==o.slotLabelFormat?YF:Array.isArray(o.slotLabelFormat)?IM(o.slotLabelFormat[0]):IM(o.slotLabelFormat),i={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,s)};return uA(bI,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:i,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:KF,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(e=>uA("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},uA(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function KF(e){return e.text}class QF extends hI{render(){return this.props.slatMetas.map((e=>uA("tr",{key:e.key},uA(ZF,Object.assign({},e)))))}}const JF=IM({week:"short"});class XF extends XO{constructor(){super(...arguments),this.allDaySplitter=new GF,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,o=r.renderRange,a=1===aM(o.start,o.end)?ZO(this.context,o.start,"week"):{};return n.weekNumbers&&"day"===e?uA(BP,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:JF},(e=>uA("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},uA(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a})))):uA("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},uA("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return uA(bI,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:ez,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(t=>uA("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},uA(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:o}=this,a=[],s=EP(r.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:uA("tr",{role:"presentation",className:"fc-scrollgrid-section"},uA("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),uA(kI,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},uA(DP,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,t,n,r,o,a,s){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{context:l,props:c}=this,d=!c.forPrint&&EP(l.options),u=!c.forPrint&&NP(l.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>uA("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>uA("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:uA("tr",{role:"presentation",className:"fc-scrollgrid-section"},uA("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let h=l.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(l.options.expandRows),chunks:[{key:"axis",content:e=>uA("div",{className:"fc-timegrid-axis-chunk"},uA("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,uA("tbody",null,uA(QF,{slatMetas:a}))),uA("div",{className:"fc-timegrid-now-indicator-container"},uA(FO,{unit:h?"minute":"day"},(e=>{let t=h&&s&&s.safeComputeTop(e);return"number"==typeof t?uA(MP,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),u&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:jP},{key:"cols",content:jP}]}),uA(kI,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},uA(i,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return!0!==e&&!0!==t||(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function ez(e){return e.text}class tz{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(EI(t.currentRange,e)){let n=iM(e),r=e.valueOf()-n.valueOf();if(r>=QR(t.slotMinTime)&&r<QR(t.slotMaxTime))return this.computeTimeTop(GR(r))}return null}computeDateTop(e,t){return t||(t=iM(e)),this.computeTimeTop(GR(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:o}=this,a=r.els.length,s=(e.milliseconds-QR(o.slotMinTime))/QR(this.slotDuration);return s=Math.max(0,s),s=Math.min(a,s),t=Math.floor(s),t=Math.min(t,a-1),n=s-t,r.tops[t]+r.getHeight(t)*n}}class nz extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return uA("tbody",null,e.slatMetas.map(((o,a)=>{let s={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi};return uA("tr",{key:o.key,ref:r.createRef(o.key)},e.axis&&uA(ZF,Object.assign({},o)),uA(bI,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class rz extends hI{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new bP}render(){let{props:e,context:t}=this;return uA("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},uA("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,uA(nz,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;var n;t.onCoords&&null!==t.clientWidth&&this.rootElRef.current.offsetHeight&&t.onCoords(new tz(new QO(this.rootElRef.current,(n=this.slatElRefs.currentMap,t.slatMetas.map((e=>n[e.key]))),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function oz(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function az(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}class sz extends hI{render(){let{props:e}=this;return uA($P,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>gz(e.hiddenSegs,e),defaultGenerator:iz,forceTimed:!0},(e=>uA(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function iz(e){return e.shortText}function lz(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:o}=e,a=r,s=[];for(;a<o;)s.push(t(n,a)),a+=1;return s.sort(cz),[s.map(dz),s[0][1]]}function cz(e,t){return t[1]-e[1]}function dz(e){return e[0]}function uz(e,t){const n={};return(...r)=>{let o=e(...r);return o in n?n[o]:n[o]=t(...r)}}function fz(e,t,n=null,r=0){let o=[];if(n)for(let a=0;a<e.length;a+=1){let s=e[a],i=n.computeDateTop(s.start,t),l=Math.max(i+(r||0),n.computeDateTop(s.end,t));o.push({start:Math.round(i),end:Math.round(l)})}return o}const hz=IM({hour:"numeric",minute:"2-digit",meridiem:!1});class mz extends hI{render(){return uA(AP,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:hz}))}}class pz extends hI{constructor(){super(...arguments),this.sortEventSegs=xM(xO)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,o=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},s=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return uA(OP,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},(t=>uA("div",{className:"fc-timegrid-col-frame"},uA("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),uA("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),uA("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),uA("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),PP(n)&&uA(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(e,t,n,r,o,a){let{props:s}=this;return s.forPrint?gz(e,s):this.renderPositionedFgSegs(e,t,n,r,o,a)}renderPositionedFgSegs(e,t,n,r,o,a){let{eventMaxStack:s,eventShortHeight:i,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:u,eventSelection:f,todayRange:h,nowDate:m}=this.props,p=n||r||o,g=fz(e,d,u,c),{segPlacements:v,hiddenGroups:y}=function(e,t,n,r){let o=[],a=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?o.push({index:n,thickness:1,span:r}):a.push(e[n])}let{segRects:s,hiddenGroups:i}=function(e,t,n){let r=new tP;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);let o=function(e){let t=[];for(let o of e){let e=[],a={span:o.span,entries:[o]};for(let o of t)oP(o.span,a.span)?a={entries:o.entries.concat(a.entries),span:(n=o.span,r=a.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(o);e.push(a),t=e}var n,r;return t}(r.addSegs(e)),a=function(e){const{entriesByLevel:t}=e,n=uz(((e,t)=>e+":"+t),((r,o)=>{let a=function(e,t,n){let{levelCoords:r,entriesByLevel:o}=e,a=o[t][n],s=r[t]+a.thickness,i=r.length,l=t;for(;l<i&&r[l]<s;l+=1);for(;l<i;l+=1){let e,t=o[l],n=sP(t,a.span.start,nP),r=n[0]+n[1],s=r;for(;(e=t[s])&&e.span.start<a.span.end;)s+=1;if(r<s)return{level:l,lateralStart:r,lateralEnd:s}}return null}(e,r,o),s=lz(a,n),i=t[r][o];return[Object.assign(Object.assign({},i),{nextLevelNodes:s[0]}),i.thickness+s[1]]}));return lz(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);a=function(e){const t=uz(((e,t,n)=>rP(e)),((e,n,r)=>{let o,{nextLevelNodes:a,thickness:s}=e,i=s+r,l=s/i,c=[];if(a.length)for(let e of a)if(void 0===o){let r=t(e,n,i);o=r[0],c.push(r[1])}else{let n=t(e,o,0);c.push(n[1])}else o=1;let d=(o-n)*l;return[o-d,Object.assign(Object.assign({},e),{thickness:d,nextLevelNodes:c})]}));return e.map((e=>t(e,0,0)[1]))}(a);let s=function(e){let t=[];const n=uz(((e,t,n)=>rP(e)),((e,n,o)=>{let a=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:o,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,o+1)+1}));function r(e,t,r){let o=0;for(let a of e)o=Math.max(n(a,t,r),o);return o}return r(e,0,0),t}(a);return{segRects:s,hiddenGroups:o}}(o,n,r),l=[];for(let t of s)l.push({seg:e[t.index],rect:t});for(let e of a)l.push({seg:e,rect:null});return{segPlacements:l,hiddenGroups:i}}(e,g,l,s);return uA(hA,null,this.renderHiddenGroups(y,e),v.map((e=>{let{seg:s,rect:l}=e,c=s.eventRange.instance.instanceId,d=p||Boolean(!t[c]&&l),u=vz(l&&l.span),g=!p&&l?this.computeSegHStyle(l):{left:0,right:0},v=Boolean(l)&&l.stackForward>0,y=Boolean(l)&&l.span.end-l.span.start<i;return uA("div",{className:"fc-timegrid-event-harness"+(v?" fc-timegrid-event-harness-inset":""),key:a||c,style:Object.assign(Object.assign({visibility:d?"":"hidden"},u),g)},uA(mz,Object.assign({seg:s,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:c===f,isShort:y},CO(s,h,m))))})))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:s,eventDrag:i,eventResize:l}=this.props;return uA(hA,null,e.map((e=>{let c=vz(e.span),d=(u=e.entries,f=t,u.map((e=>f[e.index])));var u,f;return uA(sz,{key:gM(YP(d)),hiddenSegs:d,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:s,eventDrag:i,eventResize:l})})))}renderFillSegs(e,t){let{props:n,context:r}=this,o=fz(e,n.date,n.slatCoords,r.options.eventMinHeight).map(((r,o)=>{let a=e[o];return uA("div",{key:EO(a.eventRange),className:"fc-timegrid-bg-harness",style:vz(r)},"bg-event"===t?uA(FP,Object.assign({seg:a},CO(a,n.todayRange,n.nowDate))):HP(t))}));return uA(hA,null,o)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map(((e,r)=>uA(MP,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n}))):null}computeSegHStyle(e){let t,n,{isRtl:r,options:o}=this.context,a=o.slotEventOverlap,s=e.levelCoord,i=e.levelCoord+e.thickness;a&&(i=Math.min(1,s+2*(i-s))),r?(t=1-i,n=s):(t=s,n=1-i);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return a&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function gz(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:o,eventResize:a}){let s=(o?o.affectedInstances:null)||(a?a.affectedInstances:null)||{};return uA(hA,null,e.map((e=>{let o=e.eventRange.instance.instanceId;return uA("div",{key:o,style:{visibility:s[o]?"hidden":""}},uA(mz,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},CO(e,t,n))))})))}function vz(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class yz extends hI{constructor(){super(...arguments),this.splitFgEventSegs=xM(oz),this.splitBgEventSegs=xM(oz),this.splitBusinessHourSegs=xM(oz),this.splitNowIndicatorSegs=xM(oz),this.splitDateSelectionSegs=xM(oz),this.splitEventDrag=xM(az),this.splitEventResize=xM(az),this.rootElRef={current:null},this.cellElRefs=new bP}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,o=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),s=this.splitBusinessHourSegs(e.businessHourSegs,r),i=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r);return uA("div",{className:"fc-timegrid-cols",ref:this.rootElRef},uA("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,uA("tbody",{role:"presentation"},uA("tr",{role:"row"},e.axis&&uA("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},uA("div",{className:"fc-timegrid-col-frame"},uA("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&uA(MP,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map(((t,n)=>uA(pz,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:o[n],bgEventSegs:a[n],businessHourSegs:s[n],nowIndicatorSegs:i[n],dateSelectionSegs:l[n],eventDrag:c[n],eventResize:d[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;var t;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new QO(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map((e=>t[e.key]))),!0,!1))}}class xz extends XO{constructor(){super(...arguments),this.processSlotOptions=xM(bz),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return uA("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},uA(rz,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),uA(yz,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:i,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=o.leftToIndex(e),d=s.positions.topToIndex(t);if(null!=c&&null!=d){let e=this.props.cells[c],r=s.positions.tops[d],u=s.positions.getHeight(d),f=(t-r)/u,h=d*l+Math.floor(f*l),m=this.props.cells[c].date,p=ZR(a.slotMinTime,function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}(i,h)),g=n.add(m,p),v=n.add(g,i);return{dateProfile:a,dateSpan:Object.assign({range:{start:g,end:v},allDay:!1},e.extraDateSpan),dayEl:o.els[c],rect:{left:o.lefts[c],right:o.rights[c],top:r,bottom:r+u},layer:0}}return null}}function bz(e,t){let n=t||e,r=JR(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class wz extends gP{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let o=jI(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n}}class kz extends XO{constructor(){super(...arguments),this.buildDayRanges=xM(_z),this.slicer=new wz,this.timeColsRef={current:null}}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:o,nextDayThreshold:a}=t.options,s=this.buildDayRanges(r,n,t.dateEnv);return uA(FO,{unit:o?"minute":"day"},((i,l)=>uA(xz,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:i,nowIndicatorSegs:o&&this.slicer.sliceNowDate(i,n,a,t,s),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))))}}function _z(e,t,n){let r=[];for(let o of e.headerDates)r.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)});return r}const Sz=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Cz(e,t,n,r,o){let a=new Date(0),s=e,i=GR(0),l=n||function(e){let t,n,r;for(t=Sz.length-1;t>=0;t-=1)if(n=GR(Sz[t]),r=JR(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;QR(s)<QR(t);){let e=o.add(a,s),t=null!==JR(i,l);c.push({date:e,time:s,key:e.toISOString(),isoTimeStr:(d=e,BR(d.getUTCHours(),2)+":"+BR(d.getUTCMinutes(),2)+":"+BR(d.getUTCSeconds(),2)),isLabeled:t}),s=ZR(s,r),i=ZR(i,r)}var d;return c}function jz(e,t){let n=new mP(e.renderRange,t);return new pP(n,!1)}_R('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var Ez=aL({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends XF{constructor(){super(...arguments),this.buildTimeColsModel=xM(jz),this.buildSlatMetas=xM(Cz)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:o}=r,a=this.buildTimeColsModel(o,n),s=this.allDaySplitter.splitProps(r),i=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:l}=e,c=!l,d=l,u=e.dayHeaders&&uA(fP,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),f=!1!==e.allDaySlot&&(t=>uA(EF,Object.assign({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),h=t=>uA(kz,Object.assign({},s.timed,{dayTableModel:a,dateProfile:o,axis:c,slotDuration:e.slotDuration,slatMetas:i,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(u,f,h,a.colCnt,l,i,this.state.slatCoords):this.renderSimpleLayout(u,f,h)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const Nz=e=>{const{colors:t,attributes:n,setAttributes:r}=e;return(0,De.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:t.map((function(e,t){var o=e.default?e.default:void 0;return e.label?(0,De.jsx)(gD.__experimentalToolsPanelItem,{hasValue:()=>n[e.value]!=o,label:e.label,onDeselect:()=>r({[e.value]:o}),isShownByDefault:!0,className:`block-editor-tools-panel-color-gradient-settings__item ${0==t&&"first"}`,children:(0,De.jsx)(gD.Dropdown,{className:"block-editor-tools-panel-color-gradient-settings__dropdown",contentClassName:"my-popover-content-classname",popoverProps:{placement:"left-start",offset:36},renderToggle:({isOpen:t,onToggle:r})=>(0,De.jsx)(gD.Button,{onClick:r,"aria-expanded":t,className:t?"block-editor-panel-color-gradient-settings__dropdown is-open":"block-editor-panel-color-gradient-settings__dropdown",children:(0,De.jsxs)(gD.__experimentalHStack,{justify:"flex-start",children:[(0,De.jsx)(gD.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:n[e.value]}),(0,De.jsx)(gD.FlexItem,{children:e.label})]})}),renderContent:()=>(0,De.jsx)("div",{className:"components-dropdown-content-wrapper",children:(0,De.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[(0,De.jsx)(gD.ColorPicker,{color:n[e.value]?n[e.value]:"",onChange:t=>r({[e.value]:t})}),n[e.value]&&(0,De.jsx)(gD.Button,{variant:"link",className:"ng-clear-color",onClick:()=>{e.required?r({[e.value]:""}):r({[e.value]:void 0})},children:(0,Ms.__)("Clear","newsletter-glue")})]})})})},`panelItem-${t}`):null}))})};var Dz=o(106);const Tz=t=>{const[n,r]=(0,e.useState)([]),{attributes:o,setAttributes:a,calendar:s,setView:i}=t,l=o?.startday?o.startday:s?.startday,c=o?.timeframe?o.timeframe:s?.timeframe,d=[{value:"color",label:(0,Ms.__)("Accent","eventkoi")}];return(0,e.useEffect)((()=>{(async()=>{await Ne()({path:`${eventkoi_params.api}/calendars`,method:"get"}).then((e=>{if(e){let t=[];e.map(((e,n)=>{t.push({label:e.name,value:e.id})})),r(t)}})).catch((e=>{}))})()}),[]),(0,e.useEffect)((()=>{n.length>0&&(!o.calendars||0===o.calendars.length)&&a({calendars:[Number(eventkoi_params.default_cal)]})}),[n,o.calendars]),(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(gD.PanelBody,{title:(0,Ms.__)("Display options","eventkoi"),initialOpen:!0,children:[n&&n.length>0&&(0,De.jsx)(Dz.MultiSelectControl,{label:(0,Ms.__)("Select calendar(s)","eventkoi"),value:o.calendars||[],options:n,onChange:e=>{a({calendars:e})},__nextHasNoMarginBottom:!0}),(0,De.jsxs)(gD.__experimentalToggleGroupControl,{label:(0,Ms.__)("Timeframe defaults to","eventkoi"),value:c,isBlock:!0,onChange:e=>{a({timeframe:e}),i("week"===e?"timeGridWeek":"dayGridMonth")},__nextHasNoMarginBottom:!0,children:[(0,De.jsx)(gD.__experimentalToggleGroupControlOption,{value:"month",label:"Month"}),(0,De.jsx)(gD.__experimentalToggleGroupControlOption,{value:"week",label:"Week"})]}),(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Default month to display","eventkoi"),value:o.default_month||"",options:[{label:(0,Ms.__)("Current month","eventkoi"),value:""},{label:(0,Ms.__)("January","eventkoi"),value:"january"},{label:(0,Ms.__)("February","eventkoi"),value:"february"},{label:(0,Ms.__)("March","eventkoi"),value:"march"},{label:(0,Ms.__)("April","eventkoi"),value:"april"},{label:(0,Ms.__)("May","eventkoi"),value:"may"},{label:(0,Ms.__)("June","eventkoi"),value:"june"},{label:(0,Ms.__)("July","eventkoi"),value:"july"},{label:(0,Ms.__)("August","eventkoi"),value:"august"},{label:(0,Ms.__)("September","eventkoi"),value:"september"},{label:(0,Ms.__)("October","eventkoi"),value:"october"},{label:(0,Ms.__)("November","eventkoi"),value:"november"},{label:(0,Ms.__)("December","eventkoi"),value:"december"}],onChange:e=>a({default_month:e}),__nextHasNoMarginBottom:!0}),(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Default year to display","eventkoi"),value:o.default_year||"",options:[{label:(0,Ms.__)("Current year","eventkoi"),value:""},...Array.from({length:10},((e,t)=>{const n=(new Date).getFullYear()+t+1;return{label:String(n),value:String(n)}}))],onChange:e=>a({default_year:e}),__nextHasNoMarginBottom:!0}),(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Week starts on","eventkoi"),value:l,options:[{label:"Monday",value:"monday"},{label:"Tuesday",value:"tuesday"},{label:"Wednesday",value:"wednesday"},{label:"Thursday",value:"thursday"},{label:"Friday",value:"friday"},{label:"Saturday",value:"saturday"},{label:"Sunday",value:"sunday"}],onChange:e=>a({startday:e}),__nextHasNoMarginBottom:!0})]}),(0,De.jsx)(gD.__experimentalToolsPanel,{label:(0,Ms.__)("Colors"),resetAll:()=>{a({color:void 0})},hasInnerWrapper:!0,className:"color-block-support-panel",children:(0,De.jsx)(Nz,{attributes:o,setAttributes:a,colors:d})})]})},Az={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},Rz=(("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en")||"").split("_")[0]||"en",Mz=aA.some((e=>e.code===Rz));let Iz=Mz?Rz:"en";try{new Intl.DateTimeFormat(Iz)}catch{Iz="en"}(0,qD.registerBlockType)("eventkoi/calendar",{apiVersion:2,title:(0,Ms.__)("EK Events Calendar","eventkoi"),category:"eventkoi-blocks",icon:function({width:e="16.918",height:t="21.89"}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 16.918 21.89",children:(0,De.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,De.jsx)("g",{transform:"translate(0 13.696)",children:(0,De.jsx)(Di.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)"})}),(0,De.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,De.jsx)(Di.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)"})})]})})},example:{attributes:{}},description:(0,Ms.__)("Add an EventKoi calendar.","newsletter-glue"),keywords:["eventkoi","events"],attributes:{calendars:{type:"array"},startday:{type:"string"},timeframe:{type:"string"},default_month:{type:"string",default:""},default_year:{type:"string",default:""},color:{type:"string"}},supports:{layout:{type:"constrained",allowJustification:!1,allowWide:!1}},edit:function({attributes:t,setAttributes:n,className:r,isSelected:o,clientId:a}){(0,e.useEffect)((()=>{o?document.body.classList.add("eventkoi-active"):document.body.classList.remove("eventkoi-active")}),[o]);const s="calendar",i=t?.timeframe||"month",[l,c]=(0,e.useState)(null),[d,u]=(0,e.useState)(Rs(t)),[f,h]=(0,e.useState)(""),[m,p]=(0,e.useState)(null),[g,v]=(0,e.useState)(null),[y,x]=(0,e.useState)(!1),[b,w]=(0,e.useState)(Rs(t)),k=(0,e.useRef)(null),_=new URLSearchParams(window.location.search).get("tz"),[S,C]=(0,e.useState)("24"===eventkoi_params?.time_format?"24":"12"),j=_||eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC",[E,N]=(0,e.useState)(As(j)),D=(0,e.useRef)(null),T=(0,e.useRef)(!1),A=(0,e.useRef)(null),R=(0,e.useRef)(null),{layout:M}=t,I=(0,$T.useBlockProps)({className:"eventkoi-admin",style:{marginLeft:"auto",marginRight:"auto"}}),[O,P]=(0,e.useState)({}),[L,F]=(0,e.useState)([]),[z,H]=(0,e.useState)([]),[B,V]=(0,e.useState)(),W=t.calendars&&t.calendars.length>0?t.calendars.map(String).join(","):null;let U=t.calendar_id;U||(U=eventkoi_params.default_cal),W&&(U=W);const $=async(e,t,n=U)=>{try{x(!0);const r=new URLSearchParams({id:n,display:s});e&&r.set("start",e.toISOString()),t&&r.set("end",t.toISOString());const o=`${eventkoi_params.api}/calendar_events?${r.toString()}`,a=await Ne()({path:o,method:"get"});F(a.events),P(a.calendar)}catch(e){console.error("Failed to load events",e)}finally{x(!1)}};(0,e.useEffect)((()=>{const e=Rs(t);l?(l.gotoDate(e),u(new Date(e))):w(e)}),[t.default_year,t.default_month]),(0,e.useEffect)((()=>{(async()=>{W&&(U=W);try{const e=await Ne()({path:`${eventkoi_params.api}/calendar_events?id=${U}&display=${s}&initial=true`,method:"get"});P(e.calendar);const t="week"===i||"week"===e.calendar.timeframe?"timeGridWeek":"dayGridMonth";V(t)}catch(e){console.error("Failed to load calendar info",e)}})(),(async()=>{try{const e=new URLSearchParams({id:U,display:s}),t=await Ne()({path:`${eventkoi_params.api}/calendar_events?${e.toString()}`,method:"get"});H(t.events)}catch(e){console.error("Failed to load all events",e)}})()}),[U]),(0,e.useEffect)((()=>{if(!l)return;const{activeStart:e,activeEnd:t}=l.view;k.current=null,$(e,t,U)}),[U,l]),(0,e.useEffect)((()=>{if(D.current&&B){const e=D.current.getApi();e.changeView(B),c(e);const{activeStart:t,activeEnd:n}=e.view,r=`${t.toISOString()}_${n.toISOString()}`;k.current||(k.current=r,$(t,n))}}),[B]),(0,e.useEffect)((()=>{document.body.style.position="relative"}),[]),(0,e.useEffect)((()=>{function e(e){if(T.current)return void(T.current=!1);const t=e.target.closest("[data-event-popover]"),n=e.target.closest("[data-radix-popper-content-wrapper]"),r="true"===document.body.getAttribute("data-calendar-menu-open"),o="true"===document.body.getAttribute("data-share-modal-open");t||n||o||r||(p(null),v(null))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,e.useEffect)((()=>{if(!l||!d)return;const e=setInterval((()=>{const t=document.querySelector(".fc-today-button");if(t&&!document.getElementById("eventkoi-month-portal")){const n=document.createElement("div");n.id="eventkoi-month-portal",n.className="flex m-0",t.parentNode.insertBefore(n,t),R.current=n,A.current=createRoot(n),A.current.render((0,De.jsx)(CalendarHeaderPopover,{calendarApi:l,currentDate:d,setCurrentDate:u})),clearInterval(e)}}),100);return()=>clearInterval(e)}),[l]);const q=t?.startday?t.startday:O?.startday,G=t?.color?t.color:eventkoi_params.default_color,Y={hour:"24"===S?"2-digit":"numeric",minute:"2-digit",hour12:"24"!==S,..."24"!==S&&{omitZeroMinute:!0,meridiem:"short"}} ;return(0,De.jsxs)("div",{...I,children:[(0,De.jsx)($T.InspectorControls,{children:(0,De.jsx)(Tz,{calendar:O,attributes:t,setAttributes:n,className:r,isSelected:o,clientId:a,setView:V})}),(0,De.jsx)("div",{id:"dayGridMonth"===B?"month":"timeGridWeek"===B?"week":"day",children:(0,De.jsxs)("div",{className:"relative",children:[(0,De.jsx)(DT,{calendarApi:l,currentDate:d,setCurrentDate:u,view:B,setView:V,search:f,setSearch:h,events:z,timezone:E||void 0,timeFormat:S}),(0,De.jsx)("div",{className:"flex justify-start md:justify-end py-4 text-sm text-foreground",children:(0,De.jsx)(UT,{timezone:E,setTimezone:N,timeFormat:S,setTimeFormat:C})}),(0,De.jsx)(UF,{ref:D,locales:aA,locale:Iz,plugins:[DF,Ez,FF,VF],events:L,initialView:B,initialDate:b,weekends:!0,timeZone:E,firstDay:Az[q],eventColor:G,headerToolbar:!1,contentHeight:"auto",expandRows:!0,height:"auto",eventTimeFormat:Y,dayHeaderContent:e=>{const{date:t,view:n}=e,r=t.toLocaleDateString(Iz,{weekday:"short"});if(n.type.startsWith("timeGrid")){const e=t.getDate();return(0,De.jsxs)("div",{className:"flex flex-col items-center leading-tight",children:[(0,De.jsx)("span",{children:r}),(0,De.jsx)("span",{className:"font-semibold text-base",children:e})]})}return(0,De.jsx)("span",{children:r})},datesSet:({start:e,end:t,view:n})=>{const r=`${e.toISOString()}_${t.toISOString()}`;k.current!==r&&(k.current=r,$(e,t,U),u(n.currentStart),A.current&&R.current&&A.current.render((0,De.jsx)(CalendarHeaderPopover,{calendarApi:l,currentDate:n.currentStart,setCurrentDate:u})))},eventClick:e=>{e.jsEvent.preventDefault(),e.jsEvent.stopPropagation();const t={...e.event.extendedProps,title:e.event.title,start:e.event.startStr,end:e.event.endStr,allDay:e.event.allDay,url:e.event.url},n=e.el;n&&(requestAnimationFrame((()=>{setTimeout((()=>{const e=document.querySelector(".fc").getBoundingClientRect(),t=n.getBoundingClientRect(),r=t.bottom-e.top+6;let o;o=t.right-e.left+370>e.width?t.right-e.left-370:t.left-e.left,window.innerWidth<768?v({x:0,y:r}):v({x:Math.max(0,o),y:r})}),0)})),p(t))}}),m&&g&&(0,De.jsx)(WT,{event:m,anchor:g,onClose:()=>{p(null),v(null)},ignoreNextOutsideClick:T,timezone:E||void 0})]})})]})},save:function(){return null}});const Oz=window.wp.element,Pz=(0,Oz.createContext)({event:null,isActive:!1}),Lz=(0,Oz.createContext)(null),Fz=window.wp.data,zz=window.wp.htmlEntities;function Hz(e="",t=0){const[n,r]=(0,Oz.useState)([]),[o,a]=(0,Oz.useState)(!1);return(0,Oz.useEffect)((()=>{let n=!0;return a(!0),Ne()({path:`/wp/v2/eventkoi_event?per_page=20&status=publish&search=${encodeURIComponent(e)}`}).then((async e=>{let o=e.map((e=>({value:String(e.id),label:(0,zz.decodeEntities)(e.title?.rendered||"")||`#${e.id}`})));if(t>0&&!o.some((e=>parseInt(e.value,10)===t)))try{const e=await Ne()({path:`/wp/v2/eventkoi_event/${t}`});e&&e.id&&(o=[{value:String(e.id),label:(0,zz.decodeEntities)(e.title?.rendered||"")||`#${e.id}`},...o])}catch{}n&&r(o)})).catch((()=>{n&&r([])})).finally((()=>{n&&a(!1)})),()=>{n=!1}}),[e,t]),{options:n,isLoading:o}}function Bz({attributes:e,setAttributes:t,isLoadingEvent:n,disableEventSource:r=!1}){const{field:o,eventId:a}=e,[s,i]=(0,Oz.useState)(""),{options:l,isLoading:c}=Hz(s,a);return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(gD.PanelBody,{title:(0,Ms.__)("Event Data Field","eventkoi"),initialOpen:!0,children:(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Field","eventkoi"),value:o,options:[{label:(0,Ms.__)("Title","eventkoi"),value:"title"},{label:(0,Ms.__)("Excerpt / Description","eventkoi"),value:"excerpt"},{label:(0,Ms.__)("Date and Time","eventkoi"),value:"timeline"},{label:(0,Ms.__)("Location","eventkoi"),value:"location"},{label:(0,Ms.__)("Image","eventkoi"),value:"image"}],onChange:e=>t({field:e})})}),!r&&(0,De.jsxs)(gD.PanelBody,{title:(0,Ms.__)("Event Source","eventkoi"),initialOpen:!0,children:[(0,De.jsx)(gD.ComboboxControl,{label:(0,Ms.__)("Select Event","eventkoi"),help:(0,Ms.__)("Choose which event to display. If no event is selected, this block will remain empty when used outside a query.","eventkoi"),value:a>0?String(a):"",options:l,onChange:e=>t({eventId:parseInt(e,10)||0}),onFilterValueChange:i,placeholder:(0,Ms.__)("Search events…","eventkoi"),isLoading:c||n}),n&&(0,De.jsxs)("div",{className:"flex items-center gap-2 text-xs opacity-70 mt-1",children:[(0,De.jsx)(gD.Spinner,{}),(0,Ms.__)("Loading selected event…","eventkoi")]}),a>0&&!n&&(0,De.jsx)("p",{className:"text-xs opacity-60 mt-1",children:(0,Ms.__)("Displaying data for the selected event.","eventkoi")}),0===a&&(0,De.jsx)("p",{className:"text-xs opacity-60 mt-1",children:(0,Ms.__)("No specific event selected — will use context if available, or remain empty if used outside an Event Query.","eventkoi")})]})]})}(0,qD.registerBlockType)("eventkoi/event-data",{apiVersion:2,title:(0,Ms.__)("EK Event Data","eventkoi"),description:(0,Ms.__)("Display specific details (title, location, time, etc.) from an event. Can be used alone or inside an Event Query.","eventkoi"),category:"eventkoi-blocks",icon:function({width:e="16.918",height:t="21.89"}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 16.918 21.89",children:(0,De.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,De.jsx)("g",{transform:"translate(0 13.696)",children:(0,De.jsx)(Di.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)"})}),(0,De.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,De.jsx)(Di.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)"})})]})})},attributes:{field:{type:"string",default:"title"},tagName:{type:"string",default:"div"},className:{type:"string"},eventId:{type:"integer",default:0}},supports:{reusable:!1,inserter:!0,multiple:!0,lock:!1,__experimentalMovable:!0,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,fontStyle:!0,__experimentalFontStyle:!0},spacing:{margin:!0,padding:!0},align:["left","center","right"]},__experimentalLabel:e=>`Event data: ${{title:(0,Ms.__)("Title","eventkoi"),excerpt:(0,Ms.__)("Excerpt / Description","eventkoi"),timeline:(0,Ms.__)("Date and Time","eventkoi"),location:(0,Ms.__)("Location","eventkoi"),image:(0,Ms.__)("Image","eventkoi")}[e.field]||(0,Ms.__)("Unknown","eventkoi")}`,edit:function({attributes:e,setAttributes:t,clientId:n}){var r;const{field:o,tagName:a="div",eventId:s=0}=e,i=(0,$T.useBlockProps)({className:"eventkoi-event-data","data-event-field":o}),{event:l}=(0,Oz.useContext)(Pz)||{event:null,isActive:!1},{event:c,isLoading:d}=function(e){const[t,n]=(0,Oz.useState)(null),[r,o]=(0,Oz.useState)(!1);return(0,Oz.useEffect)((()=>{e>0?(o(!0),Ne()({path:`/eventkoi/v1/get_event?id=${e}`}).then((t=>{t&&(t.event_id||t.id)?n(t):(console.warn("EventKoi: no event found for ID",e),n(null))})).catch((e=>{console.error("EventKoi fetch error:",e),n(null)})).finally((()=>o(!1)))):n(null)}),[e]),{event:t,isLoading:r}}(s),u=c||l,f=a,h=!!l,m=(0,Oz.useRef)(!1),{isInsideEventQueryLoop:p,hasEventQueryItemParent:g,postTemplateId:v,firstEventQueryItemId:y,groupChildId:x,targetChildCount:b,blockRecord:w}=(0,Fz.useSelect)((e=>{const t=e($T.store);if(!n)return{isInsideEventQueryLoop:!1,hasEventQueryItemParent:!1,postTemplateId:null,firstEventQueryItemId:null,targetChildCount:0,blockRecord:null};const r=t.getBlockParents(n)||[],o=r.map(t.getBlock).some((e=>"eventkoi/event-query-item"===e?.name)),a=r.some((e=>{const n=t.getBlock(e);return"core/query"===n?.name&&"eventkoi/event-query-loop"===n?.attributes?.namespace})),s=r.find((e=>"core/post-template"===t.getBlock(e)?.name))||null;let i=null,l=null,c=0;if(s&&(i=(t.getBlockOrder(s)||[]).find((e=>"eventkoi/event-query-item"===t.getBlock(e)?.name))||null,i)){const e=t.getBlockOrder(i)||[];l=e.find((e=>"core/group"===t.getBlock(e)?.name))||null,c=l?(t.getBlockOrder(l)||[]).length:e.length}return{isInsideEventQueryLoop:a,hasEventQueryItemParent:o,postTemplateId:s,firstEventQueryItemId:i,groupChildId:l,targetChildCount:c,blockRecord:t.getBlock(n)}}),[n]),{insertBlocks:k,removeBlocks:_}=(0,Fz.useDispatch)($T.store);(0,Oz.useEffect)((()=>{l&&s>0&&t({eventId:0})}),[l]),(0,Oz.useEffect)((()=>{if(m.current||!n||!p||g||!v||!w)return;const e=(0,qD.cloneBlock)(w);if(x)k(e,b,x);else if(y)k(e,b,y);else{const t=(0,qD.createBlock)("eventkoi/event-query-item",{},[e]);k(t,void 0,v)}m.current=!0,_([n],!1)}),[w,n,y,x,g,k,p,v,_,b]);const S=(0,De.jsx)($T.InspectorControls,{children:(0,De.jsx)(Bz,{attributes:e,setAttributes:t,isLoadingEvent:d,disableEventSource:h})});if(!u)return(0,De.jsxs)(De.Fragment,{children:[S,!h&&!p&&(0,De.jsx)("div",{...i,children:(0,De.jsx)("span",{className:"italic opacity-60",children:(0,Ms.__)("No event available. Choose an event or place this block inside Event Query.","eventkoi")})})]});const C=u.title?.rendered||u.title||"",j=u.excerpt?.rendered||u.description?.rendered||u.description||"",E=(u.location_line,u.datetime),N=u.thumbnail?(0,De.jsx)("img",{src:u.thumbnail,alt:C,className:"rounded-xl w-full h-auto object-cover"}):null;let D=null;switch(o){case"title":D=(0,De.jsx)(f,{...i,className:Ni(i.className,h&&"ek-event-title-default"),dangerouslySetInnerHTML:{__html:C}});break;case"excerpt":D=(0,De.jsx)(f,{...i,dangerouslySetInnerHTML:{__html:j||`<span class="opacity-60 italic">${(0,Ms.__)("No description","eventkoi")}</span>`}});break;case"timeline":D=(0,De.jsx)(f,{...i,className:Ni(i.className,h&&"ek-event-timeline-default"),children:E?(0,De.jsx)("span",{children:E}):(0,De.jsx)("span",{className:"opacity-60 italic",children:(0,Ms.__)("No time","eventkoi")})});break;case"location":const e=null!==(r=u.locations?.[0])&&void 0!==r?r:{},t="virtual"===e.type||"online"===e.type,n=u.location_line;let o=null;if(t&&e.virtual_url){const t=e.link_text||e.virtual_url;o=(0,De.jsx)("a",{href:e.virtual_url,className:"underline underline-offset-4 truncate",title:t,target:"_blank",rel:"noopener noreferrer",children:t})}else o=n?(0,De.jsx)("span",{children:n}):(0,De.jsx)("span",{className:"opacity-60 italic",children:(0,Ms.__)("No location","eventkoi")});D=(0,De.jsx)(f,{...i,className:Ni(i.className,h&&"ek-event-location-default"),children:o});break;case"image":D=(0,De.jsx)("div",{...i,className:Ni(i.className,"ek-event-image"),children:N?(0,De.jsx)("div",{className:"pointer-events-none select-none",children:N}):(0,De.jsx)("div",{className:"border border-input bg-border flex items-center justify-center rounded-xl h-[120px]",children:(0,De.jsx)(Al,{className:"w-6 h-6 opacity-40"})})});break;default:D=(0,De.jsx)(f,{...i,children:(0,De.jsx)("span",{className:"italic opacity-60",children:(0,Ms.__)("No event data","eventkoi")})})}return(0,De.jsxs)(De.Fragment,{children:[S,D]})},save:function(){return null}});const Vz="eventkoi/event-query-loop",Wz=e=>e?e.split("T")[0]:"";let Uz=0,$z=null;const qz=new Map;let Gz=0;Ne().use(((e,t)=>{if(e&&e.__eventkoiProxy)return t(e);if(e?.path&&"string"==typeof e.path){const n=e.path;if(n.match(/\/wp\/v2\/eventkoi_event\/\d+/)||n.includes("search="))return t(e)}if(!$z)return t(e);const n="string"==typeof e?e:e.path;if(!n)return t(e);if(n.includes("/wp/v2/media")){try{const e=new URL(n,"https://example.com"),t=parseInt(e.pathname.split("/").pop(),10);if(t&&qz.has(t))return Promise.resolve(qz.get(t));const r=e.searchParams.getAll("include[]"),o=e.searchParams.get("include"),a=[...r.map((e=>parseInt(e,10))),o?parseInt(o,10):null].filter((e=>Number.isFinite(e)));if(a.length){const e=a.filter((e=>e&&qz.has(e))).map((e=>qz.get(e)));if(e.length)return Promise.resolve(e)}}catch(e){}return t(e)}if(!n.includes("/wp/v2/eventkoi_event"))return t(e);try{const t=new URL(n,"https://example.com").searchParams,r=parseInt(t.get("per_page"),10)||$z.perPage||6,o=parseInt(t.get("page"),10)||$z.page||1,a=t.get("order")||$z.order||"desc",s=t.get("orderby")||$z.orderBy||"modified",i=(window?.eventkoi_params?.api||"/eventkoi/v1").replace(/\/$/,""),l=new URLSearchParams({per_page:r,page:o,order:a,orderby:s,include_instances:$z.includeInstances?1:0});$z.startDate&&l.set("start_date",Wz($z.startDate)),$z.endDate&&l.set("end_date",Wz($z.endDate)),$z.includeInstances&&$z.showInstancesForEvent?$z.instanceParentId&&l.set("parent_event",$z.instanceParentId):$z.calendars?.length&&l.set("id",$z.calendars.join(","));const c=`${i}/query_events${(window?.wpApiSettings?.root||"").includes("rest_route=")?"&":"?"}${l.toString()}`,d=(window?.wpApiSettings?.root||"/wp-json/").replace(/\/$/,""),u=c.replace(/^\//,""),f=c.startsWith("http")?c:`${d}/${u}`,h={credentials:"same-origin",headers:{"Content-Type":"application/json"}};return window?.wpApiSettings?.nonce&&(h.headers["X-WP-Nonce"]=window.wpApiSettings.nonce),fetch(f,h).then((e=>e.json())).then((t=>{qz.clear(),Gz+=1;const n=t?.events||[],o=t?.total||n.length||0,a={},s=n.map(((e,t)=>{const n=1e5*Gz+(t+1),r=String(e?.id||e?.event_id||n),o=e?.title?.rendered||e?.title||"",s=`${d}/wp/v2/media/${n}`;let i=null;if(e?.thumbnail){const t={id:n,source_url:e.thumbnail,alt_text:o,title:{rendered:o},caption:{rendered:""},media_type:"image",mime_type:"image/jpeg",media_details:{width:e?.thumbnail_width||null,height:e?.thumbnail_height||null,sizes:{full:{source_url:e.thumbnail,width:e?.thumbnail_width||null,height:e?.thumbnail_height||null}}}};qz.set(n,t),i=t}return a[String(r)]=e,{id:r,date:e?.start||e?.datetime||"",type:"eventkoi_event",link:e?.url||"",title:{rendered:o},excerpt:{rendered:e?.excerpt?.rendered||e?.description||""},content:{rendered:""},featured_media:e?.thumbnail?n:0,_eventkoi:e,_links:{"wp:featuredmedia":e?.thumbnail?[{href:s}]:[]},_embedded:i?{"wp:featuredmedia":[i]}:void 0}}));"undefined"!=typeof window&&(window.__eventkoiEventMap=a,window.__eventkoiEventMapVersion=Gz,window.dispatchEvent(new CustomEvent("eventkoiEventMapUpdated",{detail:{version:Gz}})),window.console);const i=Math.max(1,Math.ceil(o/r));return e&&"object"==typeof e&&!1===e.parse?new Response(JSON.stringify(s),{status:200,headers:{"Content-Type":"application/json","X-WP-Total":String(o),"X-WP-TotalPages":String(i)}}):(s._paging={total:o,totalPages:i},s)}))}catch(n){return t(e)}}));const Yz=window.wp.hooks;(0,Yz.addFilter)("editor.BlockEdit","eventkoi/event-query-loop/autofill-image",(e=>function(t){if("core/image"!==t.name)return(0,De.jsx)(e,{...t});const n=(0,Fz.useSelect)((()=>(e=>{const t=wp.data.select("core/block-editor").getBlockParents(e||"");if(!t||!t.length)return!1;const{getBlock:n}=wp.data.select("core/block-editor");return t.some((e=>{const t=n(e);return"core/query"===t?.name&&"eventkoi/event-query-loop"===t?.attributes?.namespace}))})(t.clientId)),[t.clientId]),{event:r}=(0,Oz.useContext)(Pz);if(!n||!r)return(0,De.jsx)(e,{...t});const o=r.title?.rendered||r.title||t.attributes?.alt||"",a={...t.attributes?.style||{}};return a.width||(a.width="100%"),a.height||(a.height="auto"),(0,De.jsx)(e,{...t,attributes:{...t.attributes,url:r.thumbnail||t.attributes?.url||"",alt:o,style:a}})}));const Zz={calendars:{type:"array",default:[]},startDate:{type:"string",default:""},endDate:{type:"string",default:""},includeInstances:{type:"boolean",default:!1},instanceParentId:{type:"integer",default:0},showInstancesForEvent:{type:"boolean",default:!1},eventkoiSig:{type:"string",default:""}};(0,Yz.addFilter)("blocks.registerBlockType","eventkoi/event-query-loop/extend-query-attributes",((e,t)=>"core/query"!==t?e:{...e,attributes:{...e.attributes,...Zz}}));const Kz="eventkoi/event-query-loop",Qz=[["core/post-template",{layout:{type:"constrained"}},[["eventkoi/event-query-item",{},[["core/group",{layout:{type:"default"},className:"eventkoi-event-loop-card"},[["core/image",{className:"eventkoi-event-image-default"}],["eventkoi/event-data",{field:"title",className:"ek-event-title-default"}],["eventkoi/event-data",{field:"timeline",className:"ek-event-timeline-default"}],["eventkoi/event-data",{field:"excerpt"}],["eventkoi/event-data",{field:"location",className:"ek-event-location-default"}]]]]]]],["core/query-pagination",{layout:{type:"flex",justifyContent:"space-between"}},[["core/query-pagination-previous",{label:(0,Ms.__)("Previous","eventkoi")}],["core/query-pagination-numbers",{}],["core/query-pagination-next",{label:(0,Ms.__)("Next","eventkoi")}]]],["core/query-no-results",{},[["core/paragraph",{placeholder:(0,Ms.__)("No events found.","eventkoi")}]]]];qD.registerBlockVariation&&(0,qD.registerBlockVariation)("core/query",{name:Kz,title:(0,Ms.__)("EK Event Query Loop","eventkoi"),description:(0,Ms.__)("Display EventKoi events using Query Loop controls.","eventkoi"),icon:function({width:e="16.918",height:t="21.89"}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 16.918 21.89",children:(0,De.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,De.jsx)("g",{transform:"translate(0 13.696)",children:(0,De.jsx)(Di.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)"})}),(0,De.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,De.jsx)(Di.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)"})})]})})},attributes:{namespace:Kz,className:"eventkoi-query-loop",query:{perPage:6,pages:0,offset:0,postType:"eventkoi_event",order:"desc",orderBy:"modified",author:"",search:"",sticky:"",inherit:!1},displayLayout:{type:"list",columns:1}},category:"eventkoi-blocks",innerBlocks:Qz,allowedControls:[],scope:["block","inserter"],isActive:e=>!!e&&(e?.namespace===Kz||"eventkoi_event"===e?.query?.postType)}),(0,Yz.addFilter)("editor.BlockEdit","eventkoi/event-query-loop/data",(e=>t=>("core/query"!==t.name||t.attributes?.namespace!==Vz||((e=>{(0,Oz.useEffect)((()=>{const t=!!e?.showInstancesForEvent&&!!e?.instanceParentId,n=[e?.calendars?.join(",")||"",e?.startDate||"",e?.endDate||"",e?.includeInstances?"1":"0",t?"1":"0",e?.instanceParentId||"",e?.query?.order||"desc",e?.query?.orderBy||"modified",e?.query?.perPage||"6",e?.query?.pages||"1"].join("|");return Uz+=1,$z={perPage:e?.query?.perPage||6,page:e?.query?.pages||1,order:e?.query?.order||"desc",orderBy:e?.query?.orderBy||"modified",calendars:e?.calendars||[],startDate:e?.startDate||"",endDate:e?.endDate||"",includeInstances:!!e?.includeInstances,showInstancesForEvent:t,instanceParentId:e?.instanceParentId||0,sig:n},()=>{Uz-=1,Uz<=0&&($z=null,Uz=0)}}),[e?.query?.perPage,e?.query?.pages,e?.query?.order,e?.query?.orderBy,e?.calendars?.join(","),e?.startDate,e?.endDate,e?.includeInstances,e?.showInstancesForEvent,e?.instanceParentId,e?.query?.order,e?.query?.orderBy,e?.query?.perPage,e?.query?.pages])})(t.attributes),(0,Oz.useEffect)((()=>{const{attributes:e,setAttributes:n}=t,{query:r={}}=e,o=!!e?.showInstancesForEvent&&!!e?.instanceParentId,a=[e?.calendars?.join(",")||"",e?.startDate||"",e?.endDate||"",e?.includeInstances?"1":"0",o?"1":"0",e?.instanceParentId||"",e?.query?.order||"desc",e?.query?.orderBy||"modified",e?.query?.perPage||"6",e?.query?.pages||"1"].join("|");r.eventkoiSig!==a&&n({query:{...r,eventkoiSig:a}})}),[t.attributes?.calendars?.join(","),t.attributes?.startDate,t.attributes?.endDate,t.attributes?.includeInstances,t.attributes?.showInstancesForEvent,t.attributes?.instanceParentId,t.attributes?.query?.eventkoiSig,t.attributes?.query?.order,t.attributes?.query?.orderBy,t.attributes?.query?.perPage,t.attributes?.query?.pages]),(0,Oz.useEffect)((()=>{if("core/query"!==t.name||t.attributes?.namespace!==Vz||!t.isSelected)return()=>{};const e=new Set,n=new Set,r=(0,Ms.__)("Change design","eventkoi").toLowerCase(),o=t=>{t&&t.querySelectorAll("button, .components-button").forEach((t=>{const o=t.getAttribute("aria-label")||t.textContent?.trim()||t.innerText?.trim()||"";if(o&&o.toLowerCase().includes(r)){t.style.display="none",e.add(t);const r=t.closest(".block-editor-block-toolbar__slot");r&&(r.style.display="none",n.add(r))}}))};o(document);const a=new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{e instanceof HTMLElement&&o(e)}))}))}));return a.observe(document.body,{childList:!0,subtree:!0}),()=>{a.disconnect(),e.forEach((e=>e.style.display="")),n.forEach((e=>e.style.display=""))}}),[t.isSelected,t.attributes?.namespace,t.name]),(0,Oz.useEffect)((()=>{if("core/query"!==t.name||t.attributes?.namespace!==Vz||!t.isSelected)return()=>{};const e=new Set,n=t=>{if(!t)return;let n=t.previousElementSibling;for(;n&&n.classList.contains("components-panel__body");)n.style.display="none",e.add(n),n=n.previousElementSibling};document.querySelectorAll(".eventkoi-inspector-tabs").forEach((e=>n(e)));const r=new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{e instanceof HTMLElement&&(e.classList.contains("eventkoi-inspector-tabs")?n(e):e.querySelectorAll?.(".eventkoi-inspector-tabs")?.forEach((e=>n(e))))}))}))}));return r.observe(document.body,{childList:!0,subtree:!0}),()=>{r.disconnect(),e.forEach((e=>{e.style.display=""}))}}),[t.isSelected,t.attributes?.namespace,t.name])),(0,De.jsx)(e,{...t}))));const Jz=[["core/group",{layout:{type:"default"}}]];(0,qD.registerBlockType)("eventkoi/event-query-item",{apiVersion:2,title:(0,Ms.__)("EK Event Query Item","eventkoi"),description:(0,Ms.__)("Provides EventKoi event context inside Query Loop rows.","eventkoi"),category:"eventkoi-blocks",parent:["core/post-template"],usesContext:["postId","postType"],supports:{html:!1,inserter:!1},edit({context:e}){const{postId:t,postType:n}=e||{},r=(0,Oz.useContext)(Lz),{event:o,isLoading:a}=((e,t,n=null)=>{const[r,o]=(0,Oz.useState)(n),[a,s]=(0,Oz.useState)(!1),[i,l]=(0,Oz.useState)("undefined"!=typeof window&&window.__eventkoiEventMapVersion?window.__eventkoiEventMapVersion:0),c=(0,Oz.useRef)(!1);return(0,Oz.useEffect)((()=>{c.current=!1}),[e]),(0,Oz.useEffect)((()=>{n&&o(n)}),[n]),(0,Oz.useEffect)((()=>{const e=e=>{var t;const n=null!==(t=e?.detail?.version)&&void 0!==t?t:window.__eventkoiEventMapVersion||i+1;l(n)};return"undefined"!=typeof window&&window.addEventListener("eventkoiEventMapUpdated",e),()=>{"undefined"!=typeof window&&window.removeEventListener("eventkoiEventMapUpdated",e)}}),[]),(0,Oz.useEffect)((()=>{let n=!0,r=null;const a=null!=e?String(e):"",i="undefined"!=typeof window&&window.__eventkoiEventMap||{},l=a?i[a]||i[e]:null;if(l)return c.current=!0,o(l),s(!1),()=>{n=!1};if("eventkoi_event"===t){s(!0);const i=()=>{if(!n)return;const t="undefined"!=typeof window&&window.__eventkoiEventMap||{},l=a?t[a]||t[e]:null;if(l)return c.current=!0,o(l),void s(!1);r=setTimeout(i,120)};i();const l=setTimeout((()=>{n&&!c.current&&e&&"eventkoi_event"===t&&(c.current=!0,"undefined"!=typeof window&&window.console&&window.console.log("[EventKoi] fallback fetch",{postId:e}),Ne()({path:`${window?.eventkoi_params?.api||"/eventkoi/v1"}/query_events?include=${encodeURIComponent(e)}`,__eventkoiProxy:!0}).then((e=>{if(!n)return;const t=e?.events?.[0]||null;t&&o(t)})).finally((()=>{n&&s(!1)})))}),600);return()=>{n=!1,r&&clearTimeout(r),clearTimeout(l)}}return s(!1),()=>{n=!1}}),[e,t,n,i]),(0,Oz.useMemo)((()=>({event:r,isLoading:a})),[r,a])})(t,n,r),s=(0,$T.useBlockProps)({className:"eventkoi-event-query-item"});return t?(0,De.jsx)("div",{...s,children:(0,De.jsx)(Pz.Provider,{value:{event:o,isActive:!1,isLoading:a},children:(0,De.jsx)($T.InnerBlocks,{template:Jz,templateLock:!1})})}):(0,De.jsx)("div",{...s,children:(0,De.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,Ms.__)("This block must be placed inside a Query Loop.","eventkoi")})})},save:()=>(0,De.jsx)($T.InnerBlocks.Content,{})});var Xz=function(){return Xz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xz.apply(this,arguments)};function eH(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var tH=o(833),nH=o.n(tH),rH="-ms-",oH="-moz-",aH="-webkit-",sH="comm",iH="rule",lH="decl",cH="@keyframes",dH=Math.abs,uH=String.fromCharCode,fH=Object.assign;function hH(e){return e.trim()}function mH(e,t){return(e=t.exec(e))?e[0]:e}function pH(e,t,n){return e.replace(t,n)}function gH(e,t,n){return e.indexOf(t,n)}function vH(e,t){return 0|e.charCodeAt(t)}function yH(e,t,n){return e.slice(t,n)}function xH(e){return e.length}function bH(e){return e.length}function wH(e,t){return t.push(e),e}function kH(e,t){return e.filter((function(e){return!mH(e,t)}))}var _H=1,SH=1,CH=0,jH=0,EH=0,NH="";function DH(e,t,n,r,o,a,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:_H,column:SH,length:s,return:"",siblings:i}}function TH(e,t){return fH(DH("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function AH(e){for(;e.root;)e=TH(e.root,{children:[e]});wH(e,e.siblings)}function RH(){return EH=jH>0?vH(NH,--jH):0,SH--,10===EH&&(SH=1,_H--),EH}function MH(){return EH=jH<CH?vH(NH,jH++):0,SH++,10===EH&&(SH=1,_H++),EH}function IH(){return vH(NH,jH)}function OH(){return jH}function PH(e,t){return yH(NH,e,t)}function LH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function FH(e){return hH(PH(jH-1,BH(91===e?e+2:40===e?e+1:e)))}function zH(e){for(;(EH=IH())&&EH<33;)MH();return LH(e)>2||LH(EH)>3?"":" "}function HH(e,t){for(;--t&&MH()&&!(EH<48||EH>102||EH>57&&EH<65||EH>70&&EH<97););return PH(e,OH()+(t<6&&32==IH()&&32==MH()))}function BH(e){for(;MH();)switch(EH){case e:return jH;case 34:case 39:34!==e&&39!==e&&BH(EH);break;case 40:41===e&&BH(e);break;case 92:MH()}return jH}function VH(e,t){for(;MH()&&e+EH!==57&&(e+EH!==84||47!==IH()););return"/*"+PH(t,jH-1)+"*"+uH(47===e?e:MH())}function WH(e){for(;!LH(IH());)MH();return PH(e,jH)}function UH(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case lH:return e.return=e.return||e.value;case sH:return"";case cH:return e.return=e.value+"{"+UH(e.children,r)+"}";case iH:if(!xH(e.value=e.props.join(",")))return""}return xH(n=UH(e.children,r))?e.return=e.value+"{"+n+"}":""}function qH(e,t,n){switch(function(e,t){return 45^vH(e,0)?(((t<<2^vH(e,0))<<2^vH(e,1))<<2^vH(e,2))<<2^vH(e,3):0}(e,t)){case 5103:return aH+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return aH+e+e;case 4789:return oH+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return aH+e+oH+e+rH+e+e;case 5936:switch(vH(e,t+11)){case 114:return aH+e+rH+pH(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return aH+e+rH+pH(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return aH+e+rH+pH(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return aH+e+rH+e+e;case 6165:return aH+e+rH+"flex-"+e+e;case 5187:return aH+e+pH(e,/(\w+).+(:[^]+)/,aH+"box-$1$2"+rH+"flex-$1$2")+e;case 5443:return aH+e+rH+"flex-item-"+pH(e,/flex-|-self/g,"")+(mH(e,/flex-|baseline/)?"":rH+"grid-row-"+pH(e,/flex-|-self/g,""))+e;case 4675:return aH+e+rH+"flex-line-pack"+pH(e,/align-content|flex-|-self/g,"")+e;case 5548:return aH+e+rH+pH(e,"shrink","negative")+e;case 5292:return aH+e+rH+pH(e,"basis","preferred-size")+e;case 6060:return aH+"box-"+pH(e,"-grow","")+aH+e+rH+pH(e,"grow","positive")+e;case 4554:return aH+pH(e,/([^-])(transform)/g,"$1"+aH+"$2")+e;case 6187:return pH(pH(pH(e,/(zoom-|grab)/,aH+"$1"),/(image-set)/,aH+"$1"),e,"")+e;case 5495:case 3959:return pH(e,/(image-set\([^]*)/,aH+"$1$`$1");case 4968:return pH(pH(e,/(.+:)(flex-)?(.*)/,aH+"box-pack:$3"+rH+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+aH+e+e;case 4200:if(!mH(e,/flex-|baseline/))return rH+"grid-column-align"+yH(e,t)+e;break;case 2592:case 3360:return rH+pH(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,mH(e.props,/grid-\w+-end/)}))?~gH(e+(n=n[t].value),"span",0)?e:rH+pH(e,"-start","")+e+rH+"grid-row-span:"+(~gH(n,"span",0)?mH(n,/\d+/):+mH(n,/\d+/)-+mH(e,/\d+/))+";":rH+pH(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return mH(e.props,/grid-\w+-start/)}))?e:rH+pH(pH(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return pH(e,/(.+)-inline(.+)/,aH+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xH(e)-1-t>6)switch(vH(e,t+1)){case 109:if(45!==vH(e,t+4))break;case 102:return pH(e,/(.+:)(.+)-([^]+)/,"$1"+aH+"$2-$3$1"+oH+(108==vH(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gH(e,"stretch",0)?qH(pH(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return pH(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,s,i){return rH+n+":"+r+i+(o?rH+n+"-span:"+(a?s:+s-+r)+i:"")+e}));case 4949:if(121===vH(e,t+6))return pH(e,":",":"+aH)+e;break;case 6444:switch(vH(e,45===vH(e,14)?18:11)){case 120:return pH(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+aH+(45===vH(e,14)?"inline-":"")+"box$3$1"+aH+"$2$3$1"+rH+"$2box$3")+e;case 100:return pH(e,":",":"+rH)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return pH(e,"scroll-","scroll-snap-")+e}return e}function GH(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case lH:return void(e.return=qH(e.value,e.length,n));case cH:return UH([TH(e,{value:pH(e.value,"@","@"+aH)})],r);case iH:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(mH(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":AH(TH(e,{props:[pH(t,/:(read-\w+)/,":-moz-$1")]})),AH(TH(e,{props:[t]})),fH(e,{props:kH(n,r)});break;case"::placeholder":AH(TH(e,{props:[pH(t,/:(plac\w+)/,":"+aH+"input-$1")]})),AH(TH(e,{props:[pH(t,/:(plac\w+)/,":-moz-$1")]})),AH(TH(e,{props:[pH(t,/:(plac\w+)/,rH+"input-$1")]})),AH(TH(e,{props:[t]})),fH(e,{props:kH(n,r)})}return""}))}}function YH(e){return function(e){return NH="",e}(ZH("",null,null,null,[""],e=function(e){return _H=SH=1,CH=xH(NH=e),jH=0,[]}(e),0,[0],e))}function ZH(e,t,n,r,o,a,s,i,l){for(var c=0,d=0,u=s,f=0,h=0,m=0,p=1,g=1,v=1,y=0,x="",b=o,w=a,k=r,_=x;g;)switch(m=y,y=MH()){case 40:if(108!=m&&58==vH(_,u-1)){-1!=gH(_+=pH(FH(y),"&","&\f"),"&\f",dH(c?i[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=FH(y);break;case 9:case 10:case 13:case 32:_+=zH(m);break;case 92:_+=HH(OH()-1,7);continue;case 47:switch(IH()){case 42:case 47:wH(QH(VH(MH(),OH()),t,n,l),l);break;default:_+="/"}break;case 123*p:i[c++]=xH(_)*v;case 125*p:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:-1==v&&(_=pH(_,/\f/g,"")),h>0&&xH(_)-u&&wH(h>32?JH(_+";",r,n,u-1,l):JH(pH(_," ","")+";",r,n,u-2,l),l);break;case 59:_+=";";default:if(wH(k=KH(_,t,n,c,d,o,i,x,b=[],w=[],u,a),a),123===y)if(0===d)ZH(_,t,k,k,b,a,u,i,w);else switch(99===f&&110===vH(_,3)?100:f){case 100:case 108:case 109:case 115:ZH(e,k,k,r&&wH(KH(e,k,k,0,0,o,i,x,o,b=[],u,w),w),o,w,u,i,r?b:w);break;default:ZH(_,k,k,k,[""],w,0,i,w)}}c=d=h=0,p=v=1,x=_="",u=s;break;case 58:u=1+xH(_),h=m;default:if(p<1)if(123==y)--p;else if(125==y&&0==p++&&125==RH())continue;switch(_+=uH(y),y*p){case 38:v=d>0?1:(_+="\f",-1);break;case 44:i[c++]=(xH(_)-1)*v,v=1;break;case 64:45===IH()&&(_+=FH(MH())),f=IH(),d=u=xH(x=_+=WH(OH())),y++;break;case 45:45===m&&2==xH(_)&&(p=0)}}return a}function KH(e,t,n,r,o,a,s,i,l,c,d,u){for(var f=o-1,h=0===o?a:[""],m=bH(h),p=0,g=0,v=0;p<r;++p)for(var y=0,x=yH(e,f+1,f=dH(g=s[p])),b=e;y<m;++y)(b=hH(g>0?h[y]+" "+x:pH(x,/&\f/g,h[y])))&&(l[v++]=b);return DH(e,t,n,0===o?iH:i,l,c,d,u)}function QH(e,t,n,r){return DH(e,t,n,sH,uH(EH),yH(e,2,-2),0,r)}function JH(e,t,n,r,o){return DH(e,t,n,lH,yH(e,0,r),yH(e,r+1,-1),r,o)}var XH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eB="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",tB="active",nB="data-styled-version",rB="6.1.18",oB="/*!sc*/\n",aB="undefined"!=typeof window&&"undefined"!=typeof document,sB=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),iB=(new Set,Object.freeze([])),lB=Object.freeze({});var cB=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),dB=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,uB=/(^-|-$)/g;function fB(e){return e.replace(dB,"-").replace(uB,"")}var hB=/(a)(d)/gi,mB=function(e){return String.fromCharCode(e+(e>25?39:97))};function pB(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=mB(t%52)+n;return(mB(t%52)+n).replace(hB,"$1-$2")}var gB,vB=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},yB=function(e){return vB(5381,e)};function xB(e){return"string"==typeof e&&!0}var bB="function"==typeof Symbol&&Symbol.for,wB=bB?Symbol.for("react.memo"):60115,kB=bB?Symbol.for("react.forward_ref"):60112,_B={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},SB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},CB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jB=((gB={})[kB]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gB[wB]=CB,gB);function EB(e){return("type"in(t=e)&&t.type.$$typeof)===wB?CB:"$$typeof"in e?jB[e.$$typeof]:_B;var t}var NB=Object.defineProperty,DB=Object.getOwnPropertyNames,TB=Object.getOwnPropertySymbols,AB=Object.getOwnPropertyDescriptor,RB=Object.getPrototypeOf,MB=Object.prototype;function IB(e,t,n){if("string"!=typeof t){if(MB){var r=RB(t);r&&r!==MB&&IB(e,r,n)}var o=DB(t);TB&&(o=o.concat(TB(t)));for(var a=EB(e),s=EB(t),i=0;i<o.length;++i){var l=o[i];if(!(l in SB||n&&n[l]||s&&l in s||a&&l in a)){var c=AB(t,l);try{NB(e,l,c)}catch(e){}}}}return e}function OB(e){return"function"==typeof e}function PB(e){return"object"==typeof e&&"styledComponentId"in e}function LB(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function FB(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function zB(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function HB(e,t,n){if(void 0===n&&(n=!1),!n&&!zB(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=HB(e[r],t[r]);else if(zB(t))for(var r in t)e[r]=HB(e[r],t[r]);return e}function BB(e,t){Object.defineProperty(e,"toString",{value:t})}function VB(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var WB=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw VB(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),i=(a=0,t.length);a<i;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(oB);return t},e}(),UB=new Map,$B=new Map,qB=1,GB=function(e){if(UB.has(e))return UB.get(e);for(;$B.has(qB);)qB++;var t=qB++;return UB.set(e,t),$B.set(t,e),t},YB=function(e,t){qB=t+1,UB.set(e,t),$B.set(t,e)},ZB="style[".concat(eB,"][").concat(nB,'="').concat(rB,'"]'),KB=new RegExp("^".concat(eB,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),QB=function(e,t,n){for(var r,o=n.split(","),a=0,s=o.length;a<s;a++)(r=o[a])&&e.registerName(t,r)},JB=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(oB),o=[],a=0,s=r.length;a<s;a++){var i=r[a].trim();if(i){var l=i.match(KB);if(l){var c=0|parseInt(l[1],10),d=l[2];0!==c&&(YB(d,c),QB(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(i)}}},XB=function(e){for(var t=document.querySelectorAll(ZB),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(eB)!==tB&&(JB(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function eV(){return o.nc}var tV=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(eB,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(eB,tB),r.setAttribute(nB,rB);var s=eV();return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},nV=function(){function e(e){this.element=tV(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw VB(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),rV=function(){function e(e){this.element=tV(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),oV=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),aV=aB,sV={isServer:!aB,useCSSOMInjection:!sB},iV=function(){function e(e,t,n){void 0===e&&(e=lB),void 0===t&&(t={});var r=this;this.options=Xz(Xz({},sV),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&aB&&aV&&(aV=!1,XB(this)),BB(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return $B.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),s=t.getGroup(n);if(void 0===a||!a.size||0===s.length)return"continue";var i="".concat(eB,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(s).concat(i,'{content:"').concat(l,'"}').concat(oB)},a=0;a<n;a++)o(a);return r}(r)}))}return e.registerId=function(e){return GB(e)},e.prototype.rehydrate=function(){!this.server&&aB&&XB(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Xz(Xz({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new oV(n):t?new nV(n):new rV(n)}(this.options),new WB(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(GB(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(GB(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(GB(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),lV=/&/g,cV=/^\s*\/\/.*$/gm;function dV(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=dV(e.children,t)),e}))}function uV(e){var t,n,r,o=void 0===e?lB:e,a=o.options,s=void 0===a?lB:a,i=o.plugins,l=void 0===i?iB:i,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=l.slice();d.push((function(e){e.type===iH&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(lV,n).replace(r,c))})),s.prefix&&d.push(GH),d.push($H);var u=function(e,o,a,i){void 0===o&&(o=""),void 0===a&&(a=""),void 0===i&&(i="&"),t=i,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(cV,""),c=YH(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l);s.namespace&&(c=dV(c,s.namespace));var u,f,h,m=[];return UH(c,(u=d.concat((h=function(e){return m.push(e)},function(e){e.root||(e=e.return)&&h(e)})),f=bH(u),function(e,t,n,r){for(var o="",a=0;a<f;a++)o+=u[a](e,t,n,r)||"";return o})),m};return u.hash=l.length?l.reduce((function(e,t){return t.name||VB(15),vB(e,t.name)}),5381).toString():"",u}var fV=new iV,hV=uV(),mV=r().createContext({shouldForwardProp:void 0,styleSheet:fV,stylis:hV}),pV=(mV.Consumer,r().createContext(void 0));function gV(){return(0,e.useContext)(mV)}function vV(t){var n=(0,e.useState)(t.stylisPlugins),o=n[0],a=n[1],s=gV().styleSheet,i=(0,e.useMemo)((function(){var e=s;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,s]),l=(0,e.useMemo)((function(){return uV({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:o})}),[t.enableVendorPrefixes,t.namespace,o]);(0,e.useEffect)((function(){nH()(o,t.stylisPlugins)||a(t.stylisPlugins)}),[t.stylisPlugins]);var c=(0,e.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:i,stylis:l}}),[t.shouldForwardProp,i,l]);return r().createElement(mV.Provider,{value:c},r().createElement(pV.Provider,{value:l},t.children))}var yV=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=hV);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,BB(this,(function(){throw VB(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=hV),this.name+e.hash},e}(),xV=function(e){return e>="A"&&e<="Z"};function bV(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;xV(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var wV=function(e){return null==e||!1===e||""===e},kV=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!wV(a)&&(Array.isArray(a)&&a.isCss||OB(a)?r.push("".concat(bV(o),":"),a,";"):zB(a)?r.push.apply(r,eH(eH(["".concat(o," {")],kV(a),!1),["}"],!1)):r.push("".concat(bV(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in XH||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function _V(e,t,n,r){return wV(e)?[]:PB(e)?[".".concat(e.styledComponentId)]:OB(e)?!OB(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:_V(e(t),t,n,r):e instanceof yV?n?(e.inject(n,r),[e.getName(r)]):[e]:zB(e)?kV(e):Array.isArray(e)?Array.prototype.concat.apply(iB,e.map((function(e){return _V(e,t,n,r)}))):[e.toString()];var o}function SV(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(OB(n)&&!PB(n))return!1}return!0}var CV=yB(rB),jV=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&SV(e),this.componentId=t,this.baseHash=vB(CV,t),this.baseStyle=n,iV.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=LB(r,this.staticRulesId);else{var o=FB(_V(this.rules,e,t,n)),a=pB(vB(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}r=LB(r,a),this.staticRulesId=a}else{for(var i=vB(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var d=this.rules[c];if("string"==typeof d)l+=d;else if(d){var u=FB(_V(d,e,t,n));i=vB(i,u+c),l+=u}}if(l){var f=pB(i>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=LB(r,f)}}return r},e}(),EV=r().createContext(void 0);EV.Consumer;var NV={};function DV(t,n,o){var a=PB(t),s=t,i=!xB(t),l=n.attrs,c=void 0===l?iB:l,d=n.componentId,u=void 0===d?function(e,t){var n="string"!=typeof e?"sc":fB(e);NV[n]=(NV[n]||0)+1;var r="".concat(n,"-").concat(function(e){return pB(yB(e)>>>0)}(rB+n+NV[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):d,f=n.displayName,h=void 0===f?function(e){return xB(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(t):f,m=n.displayName&&n.componentId?"".concat(fB(n.displayName),"-").concat(n.componentId):n.componentId||u,p=a&&s.attrs?s.attrs.concat(c).filter(Boolean):c,g=n.shouldForwardProp;if(a&&s.shouldForwardProp){var v=s.shouldForwardProp;if(n.shouldForwardProp){var y=n.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var x=new jV(o,m,a?s.componentStyle:void 0);function b(t,n){return function(t,n,o){var a=t.attrs,s=t.componentStyle,i=t.defaultProps,l=t.foldedComponentIds,c=t.styledComponentId,d=t.target,u=r().useContext(EV),f=gV(),h=t.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){return void 0===n&&(n=lB),e.theme!==n.theme&&e.theme||t||n.theme}(n,u,i)||lB,p=function(e,t,n){for(var r,o=Xz(Xz({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=OB(r=e[a])?r(o):r;for(var i in s)o[i]="className"===i?LB(o[i],s[i]):"style"===i?Xz(Xz({},o[i]),s[i]):s[i]}return t.className&&(o.className=LB(o.className,t.className)),o}(a,n,m),g=p.as||d,v={};for(var y in p)void 0===p[y]||"$"===y[0]||"as"===y||"theme"===y&&p.theme===m||("forwardedAs"===y?v.as=p.forwardedAs:h&&!h(y,g)||(v[y]=p[y]));var x=function(e,t){var n=gV();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,p),b=LB(l,c);return x&&(b+=" "+x),p.className&&(b+=" "+p.className),v[xB(g)&&!cB.has(g)?"class":"className"]=b,o&&(v.ref=o),(0,e.createElement)(g,v)}(w,t,n)}b.displayName=h;var w=r().forwardRef(b);return w.attrs=p,w.componentStyle=x,w.displayName=h,w.shouldForwardProp=g,w.foldedComponentIds=a?LB(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=m,w.target=a?s.target:t,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)HB(e,o[r],!0);return e}({},s.defaultProps,e):e}}),BB(w,(function(){return".".concat(w.styledComponentId)})),i&&IB(w,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function TV(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var AV=function(e){return Object.assign(e,{isCss:!0})};function RV(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(OB(e)||zB(e))return AV(_V(TV(iB,eH([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?_V(r):AV(_V(TV(r,t)))}function MV(e,t,n){if(void 0===n&&(n=lB),!t)throw VB(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,RV.apply(void 0,eH([r],o,!1)))};return r.attrs=function(r){return MV(e,t,Xz(Xz({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return MV(e,t,Xz(Xz({},n),r))},r}var IV=function(e){return MV(DV,e)},OV=IV;function PV({children:e}){const t=OV.div`6 (0,Ms.__)("%1$s of %2$s","eventkoi-lite"),c,2)}),(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[1===c&&(0,De.jsx)(al,{size:"sm",variant:"ghost",className:"h-[26px] font-medium text-[#FBFBFB] hover:underline hover:bg-transparent hover:text-[#FBFBFB]",onClick:()=>{var e;const t=new URLSearchParams;t.set("onboarding","demo-event"),t.set("hint","1");const n=i||parseInt(null!==(e=window?.eventkoi_params?.demo_event_id)&&void 0!==e?e:0,10)||0;n?(t.set("demo_event_id",String(n)),o(`/events/${n}/main?${t.toString()}`,{replace:!1})):o(`/events?${t.toString()}`,{replace:!1})},children:(0,Ms.__)("Back","eventkoi-lite")}),1===c?(0,De.jsx)(al,{size:"sm",variant:"outline",className:"h-[26px] font-medium",onClick:()=>{const e=new URLSearchParams(n);e.set("hint","2"),o({search:e.toString()?`?${e.toString()}`:""},{replace:!1})},children:(0,Ms.__)("Next","eventkoi-lite")}):(0,De.jsx)(al,{size:"sm",variant:"ghost",className:"h-[26px] font-medium text-[#FBFBFB] hover:underline hover:bg-transparent hover:text-[#FBFBFB]",onClick:()=>{const e=new URLSearchParams(n);e.set("hint","1"),o({search:e.toString()?`?${e.toString()}`:""},{replace:!1})},children:(0,Ms.__)("Back","eventkoi-lite")})]})]})]})}):null;return(0,De.jsxs)(SD.Provider,{value:{showTourHints:v,hintStep:c,onLinkClick:A},children:[(0,De.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,De.jsxs)("div",{className:"mx-auto flex w-full gap-2 justify-between",children:[(0,De.jsx)(Bi,{className:"eventkoi-calendars-heading",children:"Calendars"}),(0,De.jsx)($N,{title:"Add calendar",url:"/calendars/add"})]}),(0,De.jsx)(jk,{data:u,columns:CD,empty:"No calendars are found.",base:"calendars",hideStatusFilters:!0,isLoading:h,fetchResults:N,hideCategories:!0,hideDateRange:!0})]}),R,M]})}const ND=[{name:"default",title:"Default settings"},{name:"integrations",title:"API & integrations"}];function DD({settings:e,setSettings:t,location:n}){var r=n.pathname?.split("/"),o=r[2];const a="font-medium px-3 py-3 rounded-lg text-foreground bg-foreground/5";return(0,De.jsx)("nav",{className:"grid gap-1 text-sm text-muted-foreground",children:ND.map((function(e,t){let n="font-medium px-3 py-3 rounded-lg";return r&&o&&o===e.name&&(n=a),r&&!o&&"default"===e.name&&(n=a),(0,De.jsx)(_e,{to:e.name,className:n,children:e.title},`setting-tab-${t}`)}))})}function TD(){const t=G(),[n,r]=(0,e.useState)(null);(0,e.useEffect)((()=>{(async()=>{try{const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"get",headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});r(e),console.log(e)}catch(e){console.error("Failed to load settings:",e)}})()}),[]);const o=(0,e.useMemo)((()=>[n,r]),[n]);return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(Li,{root:"settings"}),(0,De.jsxs)(Fi,{className:"max-w-[1180px]",children:[(0,De.jsxs)("div",{className:Ni("w-full mx-auto items-start gap-6","grid grid-cols-1 md:grid-cols-[180px_1fr]"),children:[(0,De.jsx)(DD,{settings:n,setSettings:r,location:t}),(0,De.jsx)("div",{className:"grid",children:n?(0,De.jsx)(de,{context:o}):(0,De.jsx)("div",{className:"p-8 text-muted-foreground",children:"Loading settings…"})})]}),(0,De.jsx)("div",{className:"h-10"})]})]})}function AD(){const[t,n]=(0,e.useState)(!1),[r,o]=(0,e.useState)(null);return(0,De.jsx)(Wi,{children:(0,De.jsxs)("div",{className:"grid w-full",children:[(0,De.jsx)(Kk,{variant:"header",children:(0,De.jsx)(Bi,{level:3,children:"EventKoi API"})}),(0,De.jsx)(Bl,{}),(0,De.jsxs)(Kk,{className:"gap-6",children:[(0,De.jsxs)("div",{className:"space-y-2",children:[(0,De.jsx)(Gl,{children:"Developer API key"}),(0,De.jsxs)("p",{className:"text-sm text-muted-foreground",children:["This key is kept private and is not displayed. You may regenerate it below if needed. The new key will be shown"," ",(0,De.jsx)("strong",{children:"only once"}),", so please copy it immediately."]})]}),r&&(0,De.jsx)("div",{className:"bg-muted/40 border border-muted rounded px-3 py-2",children:(0,De.jsx)("code",{className:"bg-transparent text-sm break-all",children:r})}),(0,De.jsx)("div",{className:"inline-flex",children:(0,De.jsx)(al,{variant:"default",onClick:async()=>{try{n(!0);const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"POST",data:{api_key:"refresh"},headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});e?.api_key?(o(e.api_key),ip({message:"API key regenerated successfully."})):lp("Unexpected response.")}catch(t){var e;lp(null!==(e=t?.message)&&void 0!==e?e:"Something went wrong.")}finally{n(!1)}},disabled:t,className:"w-48",children:t?"Regenerating...":"Regenerate API key"})})]})]})})}function RD({settings:t,setSettings:n}){var r;const[o,a]=(0,e.useState)(!1),[s,i]=(0,e.useState)(!1);let l;return l=t?.gmap_connection_status?s?"Testing...":"Test connection":s?"Connecting...":"Connect",(0,De.jsx)(Wi,{children:(0,De.jsxs)("div",{className:"grid w-full",children:[(0,De.jsx)(Kk,{variant:"header",children:(0,De.jsx)(Bi,{level:3,children:"Google maps"})}),(0,De.jsx)(Bl,{}),(0,De.jsxs)(Kk,{className:"gap-6",children:[(0,De.jsxs)(dC,{className:"flex gap-x-8 bg-gray-50",children:[(0,De.jsx)(uC,{children:"You need an API key from Google to integrate Google maps. Follow this doc to generate API key."}),(0,De.jsx)(al,{variant:"outline",onClick:()=>{window.open("https://developers.google.com/maps/documentation/javascript/get-api-key","_blank")},children:"View doc"})]}),(0,De.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[(0,De.jsx)(Gl,{htmlFor:"ek-gmap-api-key",children:"Google API key"}),(0,De.jsx)(nw,{type:"password",id:"ek-gmap-api-key",value:null!==(r=t?.gmap_api_key)&&void 0!==r?r:"",placeholder:"Enter your API key",disabled:t?.gmap_connection_status,className:"",onChange:e=>{n((t=>({...t,gmap_api_key:e.target.value})))}})]}),(0,De.jsxs)("div",{className:"inline-flex gap-2",children:[(0,De.jsx)(al,{variant:"default",onClick:async()=>{try{i(!0),await(async e=>{const t=`https://maps.googleapis.com/maps/api/geocode/json?address=New+York&key=${e}`,n=await fetch(t),r=await n.json();var o;if("OK"!==r.status)throw new Error(null!==(o=r?.error_message)&&void 0!==o?o:"Invalid API Key.");return r})(t?.gmap_api_key);const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"post",data:{gmap_api_key:t?.gmap_api_key,gmap_connection_status:!0},headers:{"EVENTKOI-API-KEY":t?.api_key}});n(e.settings),i(!1),ip({...e,message:"API successfully connected."})}catch(t){var e;lp(null!==(e=t?.message)&&void 0!==e?e:"Something wrong.")}finally{i(!1)}},disabled:s||!t?.gmap_api_key||o,className:"w-40",children:l}),t?.gmap_connection_status&&(0,De.jsx)(al,{variant:"link",onClick:async()=>{try{a(!0);const e=await Ne()({path:`${eventkoi_params.api}/settings`,method:"post",data:{gmap_api_key:null,gmap_connection_status:!1},headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});n(e.settings),a(!1),ip({...e,message:"API key removed."})}catch(t){var e;lp(null!==(e=t?.message)&&void 0!==e?e:"Something wrong.")}finally{a(!1)}},disabled:o||s,className:"w-40",children:o?"Removing...":"Remove API Key"})]})]})]})})}function MD(){const[e,t]=J();return(0,De.jsxs)("div",{className:"grid gap-8",children:[(0,De.jsx)(AD,{settings:e,setSettings:t}),(0,De.jsx)(RD,{settings:e,setSettings:t})]})}const ID=["Mo","Tu","We","Th","Fr","Sa","Su"],OD={0:"Monday",1:"Tuesday",2:"Wednesday",3:"Thursday",4:"Friday",5:"Saturday",6:"Sunday"};function PD(){const{settings:t,refreshSettings:n}=Re(),[r,o]=(0,e.useState)(!1),[a,s]=(0,e.useState)(t?.time_format||"12");(0,e.useEffect)((()=>{t?.time_format&&t.time_format!==a&&s(t.time_format)}),[t?.time_format]);const i=(0,e.useMemo)((()=>Array.isArray(t?.working_days)?t.working_days.map((e=>parseInt(e,10))):[0,1,2,3,4]),[t?.working_days]),l=(0,e.useMemo)((()=>void 0!==t?.week_starts_on?parseInt(t.week_starts_on,10):0),[t?.week_starts_on]),c=(0,e.useMemo)((()=>[...ID.slice(l),...ID.slice(0,l)]),[l]),d=async e=>{try{o(!0);const t=await Ne()({path:`${eventkoi_params.api}/settings`,method:"post",data:e,headers:{"EVENTKOI-API-KEY":eventkoi_params.api_key}});await n(),ip({...t,message:"Settings updated."})}catch(e){var t;lp(null!==(t=e?.message)&&void 0!==t?t:"Failed to update setting.")}finally{o(!1)}};return(0,De.jsx)("div",{className:"grid gap-8",children:(0,De.jsx)(Wi,{children:(0,De.jsxs)("div",{className:"grid w-full",children:[(0,De.jsx)(Kk,{variant:"header",children:(0,De.jsx)(Bi,{level:3,children:"General Settings"})}),(0,De.jsx)(Bl,{}),(0,De.jsxs)(Kk,{className:"gap-10",children:[(0,De.jsxs)("div",{className:"grid gap-2",children:[(0,De.jsx)(Gl,{htmlFor:"week-start",children:"Week starts on"}),(0,De.jsxs)(qh,{value:String(l),onValueChange:e=>{const t=parseInt(e,10);isNaN(t)||d({week_starts_on:t})},disabled:r,children:[(0,De.jsx)(Yh,{id:"week-start",className:"w-[250px]",children:(0,De.jsx)(Gh,{placeholder:"Select a day"})}),(0,De.jsx)(Qh,{children:Object.entries(OD).map((([e,t])=>(0,De.jsx)(Jh,{value:e,children:t},`option-${e}`)))})]}),(0,De.jsx)("div",{className:"text-muted-foreground",children:"Select the day calendars use as the start of the week."})]}),(0,De.jsxs)("div",{className:"grid gap-2",children:[(0,De.jsx)(Gl,{className:"text-sm font-medium",children:"Working days"}),(0,De.jsx)("div",{className:"flex items-center gap-4 flex-wrap",children:c.map(((e,t)=>{const n=(l+t)%7;return(0,De.jsx)(al,{type:"button",size:"sm",variant:i.includes(n)?"default":"secondary",className:Ni("rounded-full w-9 h-9 p-0 transition-none text-smm font-medium",i.includes(n)?"bg-foreground text-background":"bg-secondary border border-input text-foreground/80"),onClick:()=>(e=>{const t=i.includes(e)?i.filter((t=>t!==e)):[...i,e].sort();d({working_days:t})})(n),children:e},e)}))}),(0,De.jsx)("div",{className:"text-muted-foreground",children:"Select your working days. These are used for recurring event rules."})]}),(0,De.jsxs)("div",{className:"grid gap-2",children:[(0,De.jsx)(Gl,{className:"text-sm font-medium",children:"Time format"}),(0,De.jsx)(Lm,{value:a,onValueChange:e=>{s(e),e!==t?.time_format&&d({time_format:e})},className:"w-[350px]",children:(0,De.jsxs)(Fm,{className:"border border-input rounded-lg w-full flex",children:[(0,De.jsx)(zm,{value:"12",className:"flex-1 rounded-lg text-center",children:"12-hour (AM/PM) clock"}),(0,De.jsx)(zm,{value:"24",className:"flex-1 rounded-lg text-center",children:"24-hour clock"})]})}),(0,De.jsx)("div",{className:"text-muted-foreground",children:"Select how event times are displayed (e.g. 2:00 PM or 14:00)."})]})]})]})})})}const LD=Mi("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);function FD({isEvent:t=!1,isCalendar:n=!1}){const r=G(),[o,a]=(0,e.useState)(!1),s=r.pathname.split("events/");if(s[1]&&(parseInt(s[1])>0||s[1].includes("add"))&&(t=!0),t)return null;const i=r.pathname.split("calendars/");return i[1]&&(parseInt(i[1])>0||i[1].includes("add"))&&(n=!0),n?null:(0,De.jsxs)("header",{className:Ni("relative bg-white shadow-sm md:shadow-none md:bg-transparent border-b px-4 py-4 md:py-2 text-sm",t&&"sticky top-8 z-[500] bg-muted h-20 shadow-sm border-none"),children:[(0,De.jsxs)("div",{className:"flex items-center justify-between md:justify-start gap-6",children:[(0,De.jsx)(Ai,{}),(0,De.jsx)("button",{onClick:()=>a(!o),className:"md:hidden text-muted-foreground focus:outline-none",children:o?(0,De.jsx)(Jp,{className:"w-6 h-6"}):(0,De.jsx)(LD,{className:"w-6 h-6"})}),(0,De.jsx)("div",{className:"hidden md:flex",children:(0,De.jsx)(Oi,{tabs:Pi.main})}),(0,De.jsxs)("div",{className:"hidden md:flex ml-auto items-center gap-2",children:[(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(dl,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Read docs"})]}),(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/request-support/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(ul,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Request support"})]})]})]}),o&&(0,De.jsxs)("div",{className:"md:hidden mt-4 space-y-4",children:[(0,De.jsx)(Oi,{tabs:Pi.main}),(0,De.jsxs)("div",{className:"flex flex-col gap-2 pt-4 border-t",children:[(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-0 md:px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(dl,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Read docs"})]}),(0,De.jsxs)("a",{href:"https://eventkoi.com/docs/request-support/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-0 md:px-3 py-1.5 text-muted-foreground hover:text-foreground transition-colors",children:[(0,De.jsx)(ul,{className:"w-4 h-4"}),(0,De.jsx)("span",{children:"Request support"})]})]})]})]})}var zD=["light","dark"],HD=e.createContext(void 0),BD={setTheme:e=>{},themes:[]};e.memo((({forcedTheme:t,storageKey:n,attribute:r,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:i,attrs:l,nonce:c})=>{let d="system"===s,u="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${l.map((e=>`'${e}'`)).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=a?zD.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(e,t=!1,n=!0)=>{let o=i?i[e]:e,s=t?e+"|| ''":`'${o}'`,l="";return a&&n&&!t&&zD.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=t?`!function(){${u}${h(t)}}()`:o?`!function(){try{${u}var e=localStorage.getItem('${n}');if('system'===e||(!e&&${d})){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${d?"":"else{"+h(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${n}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(s,!1,!1)};}${f}}catch(t){}}();`;return e.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})}));const VD=({...t})=>{const{theme:n="system"}=null!=(r=e.useContext(HD))?r:BD;var r;return(0,De.jsx)(ap,{theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};function WD(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function UD(){const t=G(),{width:n}=function(){const[t,n]=(0,e.useState)(WD());return(0,e.useEffect)((()=>{function e(){n(WD())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),t}(),r=/^\/tickets\/orders\/[0-9a-fA-F-]{36}$/.test(t.pathname)||/^\/events\/\d+/.test(t.pathname)||/^\/calendars\/\d+/.test(t.pathname);let o=0;return n>=960&&(o=160),n<960&&n>780&&(o=32),(0,e.useEffect)((()=>{jQuery(".wp-toolbar").css({backgroundColor:"inherit"});const e=t.pathname?.split("/")?.[1];jQuery("#toplevel_page_eventkoi ul.wp-submenu-wrap li").removeClass("current"),jQuery('#toplevel_page_eventkoi ul.wp-submenu-wrap li a[href*="eventkoi#/'+e+'"]').parent().addClass("current")}),[t]),(0,De.jsxs)("div",{className:"w-full flex flex-col min-h-[calc(100vh-46px)] md:min-h-[calc(100vh-32px)]",children:[(0,De.jsx)(VD,{expand:!0,position:"bottom-right",visibleToasts:2,toastOptions:{unstyled:!0,className:"",style:{right:"1rem",bottom:"1rem"}}}),!r&&(0,De.jsx)(FD,{}),(0,De.jsxs)(he,{children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(cg,{})}),(0,De.jsxs)(ue,{path:"dashboard",element:(0,De.jsx)(zi,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(Pl,{})}),(0,De.jsx)(ue,{path:"overview",element:(0,De.jsx)(Pl,{})}),(0,De.jsx)(ue,{path:"onboarding",element:(0,De.jsx)(lg,{})}),(0,De.jsx)(ue,{path:"*",element:(0,De.jsx)(cg,{})})]}),(0,De.jsxs)(ue,{path:"events",element:(0,De.jsx)(dg,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(ZN,{})}),(0,De.jsx)(ue,{path:"",element:(0,De.jsx)(ZN,{})}),(0,De.jsx)(ue,{path:"templates",element:(0,De.jsx)(KN,{})})]}),(0,De.jsxs)(ue,{path:"events/:id",element:(0,De.jsx)(Fy,{}),children:[(0,De.jsx)(ue,{path:"main",element:(0,De.jsx)(UN,{})}),(0,De.jsx)(ue,{path:"instances",element:(0,De.jsx)(YS,{})}),(0,De.jsx)(ue,{path:"instances/edit/:timestamp",element:(0,De.jsx)(aj,{})})]}),(0,De.jsxs)(ue,{path:"calendars",element:(0,De.jsx)(QN,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(ED,{})}),(0,De.jsx)(ue,{path:"",element:(0,De.jsx)(ED,{})})]}),(0,De.jsxs)(ue,{path:"calendars/:id",element:(0,De.jsx)(oD,{}),children:[(0,De.jsx)(ue,{path:"main",element:(0,De.jsx)(kD,{})}),(0,De.jsx)(ue,{path:"details",element:(0,De.jsx)(uD,{})}),(0,De.jsx)(ue,{path:"embed",element:(0,De.jsx)(pD,{})})]}),(0,De.jsxs)(ue,{path:"settings",element:(0,De.jsx)(TD,{}),children:[(0,De.jsx)(ue,{index:!0,element:(0,De.jsx)(PD,{})}),(0,De.jsx)(ue,{path:"default",element:(0,De.jsx)(PD,{})}),(0,De.jsx)(ue,{path:"integrations",element:(0,De.jsx)(MD,{})})]}),(0,De.jsx)(ue,{path:"*",element:(0,De.jsx)(cg,{})})]})]})}const $D=document.getElementById("eventkoi-admin");$D&&(0,a.H)($D).render((0,De.jsx)(be,{children:(0,De.jsx)(Me,{children:(0,De.jsx)(UD,{})})}));const qD=window.wp.blocks,GD=("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en").split("_")[0],YD=Array.from({length:12},((e,t)=>new Intl.DateTimeFormat(GD,{month:"short"}).format(new Date(2e3,t,1))));function ZD({calendarApi:t,currentDate:n,setCurrentDate:r}){const[o,a]=(0,e.useState)(!1),s=t?.view?.calendar?.getOption("timeZone")||"UTC";let i=n instanceof Date?n:new Date(n);isNaN(i)&&(i=new Date);const l=vs.fromJSDate(i,{zone:s}),c=l.year,d=l.month-1;return(0,De.jsxs)(Jb,{open:o,onOpenChange:a,children:[(0,De.jsx)(Xb,{asChild:!0,children:(0,De.jsxs)(al,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[`${YD[d]} ${c}`,(0,De.jsx)(Ii,{className:"h-4 w-4 min-w-4"})]})}),(0,De.jsxs)(ew,{side:"bottom",align:"start",sideOffset:20,className:"w-[240px] rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden",children:[(0,De.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,De.jsx)(al,{variant:"ghost",size:"icon",onClick:()=>{const e=l.minus({years:1}).startOf("month").toJSDate();t.gotoDate(e),r(e)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,De.jsx)(mg,{className:"w-4 h-4"})}),(0,De.jsx)("div",{className:"text-sm font-medium",children:c}),(0,De.jsx)(al,{variant:"ghost",size:"icon",onClick:()=>{const e=l.plus({years:1}).startOf("month").toJSDate();t.gotoDate(e),r(e)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,De.jsx)(hg,{className:"w-4 h-4"})})]}),(0,De.jsx)("div",{className:"grid grid-cols-4 gap-2",children:YD.map(((e,n)=>(0,De.jsx)(al,{variant:"ghost",className:Ni("text-sm font-medium bg-transparent text-foreground border-none shadow-none cursor-pointer hover:bg-muted",n===d&&"bg-muted text-foreground font-semibold"),onClick:()=>(e=>{const n=vs.fromObject({year:c,month:e+1,day:1},{zone:s}).toJSDate();t.gotoDate(n),r(n),a(!1)})(n),children:e},e)))})]})]})}function KD({calendarApi:e,currentDate:t,setCurrentDate:n}){return(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(al,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.prev(),children:(0,De.jsx)(mg,{className:"w-4 h-4"})}),(0,De.jsx)(al,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.next(),children:(0,De.jsx)(hg,{className:"w-4 h-4"})})]})}function QD({inputRef:e,search:t,setSearch:n,open:r,setOpen:o,filteredResults:a,paginatedResults:s,totalPages:i,page:l,setPage:c,timezone:d,timeFormat:u,setSearchOpen:f}){return(0,De.jsxs)("div",{className:"relative w-full lg:min-w-[350px]",children:[(0,De.jsx)(nw,{ref:e,placeholder:"Search events…",value:t,onFocus:()=>o(!0),onBlur:()=>{setTimeout((()=>{o(!1),f?.(!1)}),150)},onChange:e=>n(e.target.value),className:"pl-9 h-10 w-full shadow-none border border-solid box-border rounded",autoComplete:"off"}),(0,De.jsx)("span",{className:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none",children:(0,De.jsx)(rw,{className:"w-4 h-4"})}),r&&t&&(0,De.jsx)(qj,{className:Ni("absolute z-50 left-0 top-12 w-full rounded-md border bg-popover text-popover-foreground shadow-md border-border border-solid","max-h-[400px] h-auto"),children:(0,De.jsx)(Yj,{className:"p-2 max-h-[400px] overflow-y-auto",children:0===a.length?(0,De.jsx)(Zj,{className:"p-4 text-muted-foreground text-sm",children:"No events found."}):(0,De.jsxs)(De.Fragment,{children:[s.map((e=>(0,De.jsxs)(Jj,{value:e.title,onMouseDown:t=>{t.preventDefault(),window.open(e.url,"_blank","noopener,noreferrer"),o(!1),f?.(!1)},className:"grid gap-1 p-2 cursor-pointer text-sm text-foreground rounded-md hover:!bg-accent",children:[(0,De.jsx)("span",{className:"font-normal block",children:vs.fromISO(e.start_date||e.start,{zone:"utc"}).setZone(d).toFormat("24"===u?"d MMM yyyy, EEE • HH:mm":"d MMM yyyy, EEE • h:mma").replace("AM","am").replace("PM","pm")}),(0,De.jsx)("span",{className:"font-medium",children:e.title})]},e.id))),i>1&&(0,De.jsxs)("div",{className:"flex justify-between items-center px-2 pt-2 text-xs text-muted-foreground",children:[(0,De.jsx)(al,{variant:"ghost",size:"sm",onMouseDown:e=>{e.preventDefault(),c((e=>Math.max(0,e-1)))},disabled:0===l,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Prev"}),(0,De.jsxs)("span",{children:["Page ",l+1," of ",i]}),(0,De.jsx)(al,{variant:"ghost",size:"sm",onMouseDown:e=>{e.preventDefault(),c((e=>Math.min(i-1,e+1)))},disabled:l>=i-1,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Next"})]})]})})})]})}function JD({calendarApi:e,setCurrentDate:t,isTodayInRange:n}){return(0,De.jsx)(al,{variant:"outline",className:Ni("border-solid box-border font-normal shadow-none cursor-pointer","rounded disabled:opacity-100 disabled:bg-background disabled:text-muted-foreground/50 text-foreground"),disabled:n,onClick:()=>{e&&(e.today(),t(e.getDate()))},children:"Today"})}var XD="Toggle",eT=e.forwardRef(((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,i]=ju({prop:n,onChange:o,defaultProp:r??!1,caller:XD});return(0,De.jsx)(_l.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Zl(e.onClick,(()=>{e.disabled||i(!s)}))})}));eT.displayName=XD;var tT=eT,nT="ToggleGroup",[rT,oT]=Kl(nT,[sm]),aT=sm(),sT=e.forwardRef(((e,t)=>{const{type:n,...r}=e;if("single"===n){const e=r;return(0,De.jsx)(cT,{...e,ref:t})}if("multiple"===n){const e=r;return(0,De.jsx)(dT,{...e,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${nT}\``)}));sT.displayName=nT;var[iT,lT]=rT(nT),cT=e.forwardRef(((t,n)=>{const{value:r,defaultValue:o,onValueChange:a=()=>{},...s}=t,[i,l]=ju({prop:r,defaultProp:o??"",onChange:a,caller:nT});return(0,De.jsx)(iT,{scope:t.__scopeToggleGroup,type:"single",value:e.useMemo((()=>i?[i]:[]),[i]),onItemActivate:l,onItemDeactivate:e.useCallback((()=>l("")),[l]),children:(0,De.jsx)(hT,{...s,ref:n})})})),dT=e.forwardRef(((t,n)=>{const{value:r,defaultValue:o,onValueChange:a=()=>{},...s}=t,[i,l]=ju({prop:r,defaultProp:o??[],onChange:a,caller:nT}),c=e.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),d=e.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return(0,De.jsx)(iT,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:d,children:(0,De.jsx)(hT,{...s,ref:n})})}));sT.displayName=nT;var[uT,fT]=rT(nT),hT=e.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:i=!0,...l}=e,c=aT(n),d=ec(s),u={role:"group",dir:d,...l};return(0,De.jsx)(uT,{scope:n,rovingFocus:o,disabled:r,children:o?(0,De.jsx)(pm,{asChild:!0,...c,orientation:a,dir:d,loop:i,children:(0,De.jsx)(_l.div,{...u,ref:t})}):(0,De.jsx)(_l.div,{...u,ref:t})})})),mT="ToggleGroupItem",pT=e.forwardRef(((t,n)=>{const r=lT(mT,t.__scopeToggleGroup),o=fT(mT,t.__scopeToggleGroup),a=aT(t.__scopeToggleGroup),s=r.value.includes(t.value),i=o.disabled||t.disabled,l={...t,pressed:s,disabled:i},c=e.useRef(null);return o.rovingFocus?(0,De.jsx)(gm,{asChild:!0,...a,focusable:!i,active:s,ref:c,children:(0,De.jsx)(gT,{...l,ref:n})}):(0,De.jsx)(gT,{...l,ref:n})}));pT.displayName=mT;var gT=e.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=lT(mT,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i="single"===a.type?s:void 0;return(0,De.jsx)(eT,{...i,...o,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})})),vT=sT,yT=pT;const xT=rl("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});e.forwardRef((({className:e,variant:t,size:n,...r},o)=>(0,De.jsx)(tT,{ref:o,className:Ni(xT({variant:t,size:n,className:e})),...r}))).displayName=tT.displayName;const bT=e.createContext({size:"default",variant:"default"}),wT=e.forwardRef((({className:e,variant:t,size:n,children:r,...o},a)=>(0,De.jsx)(vT,{ref:a,className:Ni("flex items-center justify-center gap-1",e),...o,children:(0,De.jsx)(bT.Provider,{value:{variant:t,size:n},children:r})})));wT.displayName=vT.displayName;const kT=e.forwardRef((({className:t,children:n,variant:r,size:o,...a},s)=>{const i=e.useContext(bT);return(0,De.jsx)(yT,{ref:s,className:Ni(xT({variant:i.variant||r,size:i.size||o}),t),...a,children:n})}));function _T({calendarApi:e,view:t,setView:n}){return(0,De.jsxs)(wT,{type:"single",className:"bg-muted text-foreground gap-2 border border-solid border-border p-[4px] h-10 box-border rounded shadow-none",value:t,onValueChange:t=>{t&&(e?.changeView(t),n(t))},children:[(0,De.jsx)(kT,{value:"dayGridMonth",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Month"}),(0,De.jsx)(kT,{value:"timeGridWeek",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Week"})]})}kT.displayName=yT.displayName;const ST={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"};function CT({calendarApi:t,currentDate:n,setCurrentDate:r}){const{startday:o}=eventkoi_params,a=function(e,t){const n=Object.entries(e).find((([e,n])=>n===t));return n?Number(n[0]):void 0}(ST,o),[s,i]=(0,e.useState)(n?new Date(n):new Date),[l,c]=(0,e.useState)(n?new Date(n):new Date);(0,e.useEffect)((()=>{if(n){const e=new Date(n);i(e),c(e)}}),[n]);const d={from:Xe(s,{weekStartsOn:a}),to:tx(s,{weekStartsOn:a})};return(0,De.jsx)(jb,{mode:"single",selected:d,month:l,weekStartsOn:a,onSelect:e=>{e&&e.getTime()!==s.getTime()&&(i(e),c(e),t&&t.gotoDate(e),r&&r(e))},onMonthChange:e=>{const n=e>l,o=Wy(s,e.getMonth());c(e),i(o),t&&t.gotoDate(o),r&&r(o),console.log(n?"➡️ Next button clicked":"⬅️ Prev button clicked"),console.log("Selected new date:",o)},classNames:{day_range_end:"",day_range_middle:"",day_today:"",day_outside:"text-muted-foreground",day_disabled:"",row:"flex w-full mt-2 justify-between [&>*]:flex-1 [&>td:first-child>button]:rounded-l-md [&>td:last-child>button]:rounded-r-md",head_cell:"text-muted-foreground w-9 font-bold text-sm transition-colors",day_selected:"!bg-accent !text-black",cell:"h-9 w-9 p-0",day:"h-9 w-full border-0 [&:not([aria-selected='true'])]:bg-white hover:[&:not([aria-selected='true'])]:bg-accent [&:not([aria-selected='true'])]:rounded-md transition-colors",button:"cursor-pointer",nav_button:"bg-white border-0 h-8 w-10 hover:bg-accent rounded-md transition-colors",nav_icon:"w-2.5 h-2.5"}})}function jT({calendarApi:t,currentDate:n,setCurrentDate:r}){const[o,a]=(0,e.useState)(!1);return(0,De.jsxs)(Jb,{open:o,onOpenChange:a,children:[(0,De.jsx)(Xb,{asChild:!0,children:(0,De.jsxs)(al,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[t?.view?.title||"",(0,De.jsx)(Ii,{className:"h-4 w-4 min-w-4"})]})}),(0,De.jsx)(ew,{side:"bottom",align:"start",sideOffset:20,className:"w-auto rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden p-1",children:(0,De.jsx)(CT,{calendarApi:t,currentDate:n,setCurrentDate:r})})]})}function ET(e){const{calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:a,isTodayInRange:s,search:i,setSearch:l,open:c,setOpen:d,filteredResults:u,paginatedResults:f,totalPages:h,page:m,setPage:p,timezone:g,timeFormat:v,inputRef:y}=e;return(0,De.jsxs)("div",{className:"hidden lg:flex flex-wrap items-center justify-between text-sm gap-3 w-full",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(KD,{calendarApi:t,currentDate:n,setCurrentDate:r}),"timeGridWeek"===o||"week"===o?(0,De.jsx)(jT,{calendarApi:t,currentDate:n,setCurrentDate:r}):(0,De.jsx)(ZD,{calendarApi:t,currentDate:n,setCurrentDate:r}),(0,De.jsx)(JD,{calendarApi:t,setCurrentDate:r,isTodayInRange:s}),(0,De.jsx)(QD,{inputRef:y,search:i,setSearch:l,open:c,setOpen:d,filteredResults:u,paginatedResults:f,totalPages:h,page:m,setPage:p,timezone:g,timeFormat:v})]}),(0,De.jsx)(_T,{calendarApi:t,view:o,setView:a})]})}function NT(t){const{calendarApi:n,currentDate:r,setCurrentDate:o,view:a,setView:s,isTodayInRange:i,search:l,setSearch:c,open:d,setOpen:u,filteredResults:f,paginatedResults:h,totalPages:m,page:p,setPage:g,timezone:v,timeFormat:y}=t,[x,b]=(0,e.useState)(!1),w=(0,e.useRef)(null);return(0,De.jsxs)("div",{className:"flex flex-col w-full gap-4 lg:hidden",children:[(0,De.jsxs)("div",{className:"flex justify-between items-center",children:[(0,De.jsx)(JD,{calendarApi:n,setCurrentDate:o,isTodayInRange:i}),(0,De.jsx)(_T,{calendarApi:n,view:a,setView:s})]}),x?(0,De.jsx)("div",{className:"w-full",children:(0,De.jsx)(QD,{inputRef:w,search:l,setSearch:c,open:d,setOpen:u,filteredResults:f,paginatedResults:h,totalPages:m,page:p,setPage:g,timezone:v,timeFormat:y,setSearchOpen:b})}):(0,De.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)(KD,{calendarApi:n,currentDate:r,setCurrentDate:o}),"timeGridWeek"===a||"week"===a?(0,De.jsx)(jT,{calendarApi:n,currentDate:r,setCurrentDate:o}):(0,De.jsx)(ZD,{calendarApi:n,currentDate:r,setCurrentDate:o})]}),(0,De.jsx)(al,{variant:"outline",size:"icon",className:"rounded shadow-sm border border-solid border-border cursor-pointer",onClick:()=>{b(!0),setTimeout((()=>w.current?.focus()),50)},children:(0,De.jsx)(rw,{className:"w-4 h-4"})})]})]})}function DT({calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:a,search:s,setSearch:i,events:l,timezone:c,timeFormat:d}){const[u,f]=(0,e.useState)(!1),[h,m]=(0,e.useState)(0),p=(0,e.useRef)(null),g=s?l.filter((e=>{const t=s.toLowerCase();return e.title?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t)||e.location?.toLowerCase().includes(t)})):[],v=Math.ceil(g.length/10),y=g.slice(10*h,10*(h+1));(0,e.useEffect)((()=>m(0)),[s]);const x=(()=>{if(!t)return!1;const e=t.view?.currentStart,n=t.view?.currentEnd,r=new Date;return e<=r&&r<=n})(),b={calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:a,isTodayInRange:x,search:s,setSearch:i,open:u,setOpen:f,filteredResults:g,paginatedResults:y,totalPages:v,page:h,setPage:m,timezone:c,timeFormat:d,inputRef:p};return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(NT,{...b}),(0,De.jsx)(ET,{...b})]})}function TT({event:e,icon:t,title:n,name:r}){return(0,De.jsxs)("a",{href:"#",className:"flex flex-col gap-1 items-center justify-center no-underline text-sm text-foreground/90 hover:text-foreground group",onClick:t=>{t.preventDefault(),(()=>{const t=encodeURIComponent(e?.url),n=encodeURIComponent(e?.title),o=`RE: ${n}`;"whatsapp"===r&&window.open(`https://api.whatsapp.com/send?text=${n} ${t}`,"_blank"),"x"===r&&window.open(`https://x.com/intent/post?url=${t}&text=${n}`,"_blank"),"facebook"===r&&window.open(`https://www.facebook.com/sharer/sharer.php?u=${t}`,"_blank"),"linkedin"===r&&window.open(`https://www.linkedin.com/shareArticle/?mini=true&url=${t}&text=${n}`,"_blank"),"instagram"===r&&window.open(`https://www.instagram.com/?url=${t}`,"_blank"),"email"===r&&window.open(`mailto:?&subject=${o}&cc=&bcc=&body=${t}`,"_self")})()},children:[(0,De.jsx)("span",{className:"rounded-full bg-accent group-hover:bg-input flex items-center justify-center w-16 h-16",children:t}),(0,De.jsx)("span",{children:n})]})}function AT({width:e=26,height:t=20,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 29.025 22.935",children:(0,De.jsxs)("g",{transform:"translate(1.741 1.25)",children:[(0,De.jsx)(Di.Path,{d:"M5.554,6H25.989a2.562,2.562,0,0,1,2.554,2.554V23.88a2.562,2.562,0,0,1-2.554,2.554H5.554A2.562,2.562,0,0,1,3,23.88V8.554A2.562,2.562,0,0,1,5.554,6Z",transform:"translate(-3 -6)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"}),(0,De.jsx)(Di.Path,{d:"M28.543,9,15.771,17.94,3,9",transform:"translate(-3 -6.446)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"})]})})}function RT({width:e=30,height:t=30,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 30.421 30.421",children:(0,De.jsx)(Di.Path,{d:"M30.419,15.3A15.211,15.211,0,1,0,12.83,30.42V19.727H8.971V15.3h3.863V11.93c0-3.835,2.272-5.952,5.745-5.952a23.263,23.263,0,0,1,3.4.3v3.764H20.066a2.206,2.206,0,0,0-2.477,2.392V15.3h4.217l-.673,4.422H17.587V30.418A15.279,15.279,0,0,0,30.419,15.3",transform:"translate(0.002 0.001)"})})}function MT({width:e=28,height:t=28,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 27.748 27.742",children:(0,De.jsx)(Di.Path,{d:"M13.872,9a7.113,7.113,0,1,0,7.113,7.113A7.1,7.1,0,0,0,13.872,9Zm0,11.737A4.624,4.624,0,1,1,18.5,16.109a4.633,4.633,0,0,1-4.624,4.624ZM22.934,8.705a1.659,1.659,0,1,1-1.659-1.659A1.655,1.655,0,0,1,22.934,8.705Zm4.711,1.684A8.21,8.21,0,0,0,25.4,4.576a8.264,8.264,0,0,0-5.813-2.241c-2.29-.13-9.155-.13-11.446,0A8.252,8.252,0,0,0,2.333,4.57,8.237,8.237,0,0,0,.092,10.383c-.13,2.29-.13,9.155,0,11.446a8.21,8.21,0,0,0,2.241,5.813,8.274,8.274,0,0,0,5.813,2.241c2.29.13,9.155.13,11.446,0A8.21,8.21,0,0,0,25.4,27.641a8.264,8.264,0,0,0,2.241-5.813c.13-2.29.13-9.149,0-11.44Zm-2.959,13.9a4.682,4.682,0,0,1-2.637,2.637c-1.826.724-6.159.557-8.177.557s-6.357.161-8.177-.557a4.682,4.682,0,0,1-2.637-2.637C2.333,22.46,2.5,18.127,2.5,16.109s-.161-6.357.557-8.177A4.682,4.682,0,0,1,5.694,5.294c1.826-.724,6.159-.557,8.177-.557s6.357-.161,8.177.557a4.682,4.682,0,0,1,2.637,2.637c.724,1.826.557,6.159.557,8.177S25.41,22.466,24.686,24.286Z",transform:"translate(0.005 -2.238)"})})}function IT({width:e=25,height:t=25,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24.627 24.627",children:(0,De.jsx)(Di.Path,{d:"M5.513,24.627H.407V8.185H5.513ZM2.957,5.943A2.971,2.971,0,1,1,5.914,2.958,2.982,2.982,0,0,1,2.957,5.943ZM24.622,24.627H19.527v-8c0-1.908-.038-4.354-2.655-4.354-2.655,0-3.061,2.072-3.061,4.216v8.141h-5.1V8.185h4.9v2.243h.071A5.365,5.365,0,0,1,18.51,7.773c5.167,0,6.117,3.4,6.117,7.822v9.032Z",transform:"translate(0 -0.001)"})})}function OT({width:e=29,height:t=29,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 28.555 28.555",children:(0,De.jsx)(Di.Path,{d:"M24.278,6.4A14.155,14.155,0,0,0,2.008,23.475L0,30.805l7.5-1.97a14.107,14.107,0,0,0,6.763,1.721h.006a14.286,14.286,0,0,0,14.284-14.15A14.206,14.206,0,0,0,24.278,6.4ZM14.271,28.173A11.74,11.74,0,0,1,8.28,26.535l-.427-.255L3.4,27.446l1.186-4.341-.28-.446a11.784,11.784,0,1,1,21.856-6.253A11.892,11.892,0,0,1,14.271,28.173Zm6.45-8.809c-.351-.178-2.091-1.033-2.416-1.147s-.561-.178-.8.178-.911,1.147-1.122,1.39-.414.268-.765.089a9.624,9.624,0,0,1-4.812-4.207c-.363-.625.363-.58,1.039-1.931a.655.655,0,0,0-.032-.618c-.089-.178-.8-1.919-1.09-2.626-.287-.688-.58-.593-.8-.606s-.44-.013-.676-.013a1.31,1.31,0,0,0-.943.44,3.973,3.973,0,0,0-1.237,2.951,6.927,6.927,0,0,0,1.44,3.659,15.8,15.8,0,0,0,6.042,5.341c2.244.969,3.123,1.052,4.245.886a3.621,3.621,0,0,0,2.384-1.683,2.957,2.957,0,0,0,.2-1.683C21.308,19.625,21.072,19.536,20.721,19.364Z",transform:"translate(0 -2.25)"})})}function PT({width:e=23,height:t=21,className:n,...r}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 23.006 20.85",children:(0,De.jsx)(Di.Path,{d:"M18.118.75h3.529L13.939,9.582,23.006,21.6h-7.1l-5.56-7.29L3.984,21.6H.454L8.7,12.153,0,.75H7.28l5.025,6.662L18.119.75ZM16.881,19.483h1.956L6.216,2.756H4.12Z",transform:"translate(0 -0.75)"})})}const LT=Mi("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),FT=Mi("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);function zT(e,t="utc",n,r){const o=n||eventkoi_params?.locale?.replace("_","-")||"en",a=r||eventkoi_params?.time_format||"12",s=vs.fromISO(e,{zone:"utc"===t?"UTC":Ns(t)}).setLocale(o);return"24"===a?s.toFormat("HH:mm"):s.toFormat("h:mma").toLowerCase().replace(":00","")}function HT(e,t="utc",n){const r=n||eventkoi_params?.locale?.replace("_","-")||"en";return vs.fromISO(e,{zone:"utc"===t?"UTC":Ns(t)}).setLocale(r).toLocaleString(vs.DATE_MED)}const BT=(e,t)=>{const n=new Date(e);return t?n.toISOString().split("T")[0].replace(/-/g,""):n.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z"},VT=e=>window.open(e,"_blank","noopener,noreferrer");function WT({event:t,anchor:n,onClose:r,ignoreNextOutsideClick:o,timezone:a="UTC"}){const[s,i]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[d,u]=(0,e.useState)(!1),[f]=(0,e.useState)(n),h=t.location_line,m=(()=>{const e=Ns(a),n=eventkoi_params?.locale?.replace("_","-")||"en",r=eventkoi_params?.time_format||"12",o="standard"===t.date_type&&"continuous"===t.standard_type,s=t.allDay&&!o;if(o||t.start_time&&t.end_time){const o=t.start_real||t.start,a=t.end_real||t.end;return o!==a?`${HT(o,e,n)}, ${zT(o,e,n,r)} – ${HT(a,e,n)}, ${zT(a,e,n,r)}`:`${HT(o,e,n)} – ${zT(a,e,n,r)}`}return s?t.start.split("T")[0]!==t.end.split("T")[0]?`${HT(t.start,e,n)} – ${HT(t.end_real,e,n)}`:HT(t.start,e,n):vs.fromISO(t.start,{zone:e}).hasSame(vs.fromISO(t.end,{zone:e}),"day")?`${HT(t.start,e,n)}, ${zT(t.start,e,n,r)} – ${zT(t.end,e,n,r)}`:`${HT(t.start,e,n)}, ${zT(t.start,e,n,r)} – ${HT(t.end,e,n)}, ${zT(t.end,e,n,r)}`})(),p=()=>{const e=new URL("https://www.google.com/calendar/render");e.searchParams.set("action","TEMPLATE"),e.searchParams.set("text",t.title||""),e.searchParams.set("dates",`${BT(t.start,t.allDay)}/${BT(t.end,t.allDay)}`),e.searchParams.set("details",t.description||""),e.searchParams.set("location",h||""),e.searchParams.set("output","xml"),VT(e.toString())};if((0,e.useEffect)((()=>(document.body.setAttribute("data-calendar-menu-open",d?"true":"false"),()=>{document.body.removeAttribute("data-calendar-menu-open")})),[d]),(0,e.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.stopPropagation(),r())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),!t||!f)return null;const g=document.querySelector(".fc");return(0,pe.createPortal)((0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)("div",{"data-event-popover":!0,className:"absolute z-50 rounded-lg border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden w-[370px] max-w-full",style:{left:`${f.x}px`,top:`${f.y}px`},onMouseDown:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onClick:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onPointerDownCapture:e=>{s&&e.stopPropagation()},children:[(0,De.jsxs)("div",{className:"px-4 py-4 pb-0 relative",children:[(0,De.jsxs)("div",{className:"flex absolute right-1 top-1 gap-1",children:[(0,De.jsx)(al,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:()=>window.open(t.url,"_self"),children:(0,De.jsx)(LT,{className:"h-4 w-4"})}),(0,De.jsx)(al,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:r,children:(0,De.jsx)(Jp,{className:"h-4 w-4"})})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-2 pe-[58px]",children:[(0,De.jsx)("a",{href:t.url,className:"text-base font-semibold leading-snug text-foreground no-underline hover:underline line-clamp-2 block",children:t.title}),"recurring"===t.date_type&&(0,De.jsx)(ml,{variant:"secondary",className:"w-fit bg-[#eeeeee] hover:bg-[#eeeeee] font-normal",children:"Recurring"})]})]}),(0,De.jsxs)("div",{className:"p-4 flex flex-col gap-3",children:[(0,De.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,De.jsx)(Il,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,De.jsx)("div",{className:"flex-1",children:m})]}),h&&(0,De.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,De.jsx)(Tl,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,De.jsx)("div",{className:"flex-1",children:h})]}),t.thumbnail&&(0,De.jsx)("img",{src:t.thumbnail,alt:"",className:"w-full h-auto rounded-none border object-cover max-h-48"}),t.description&&(0,De.jsx)("div",{className:"text-sm text-muted-foreground leading-snug line-clamp-3",children:t.description})]}),(0,De.jsxs)("div",{className:"flex justify-between items-center px-4 pb-4 gap-2",children:[(0,De.jsxs)(xy,{open:d,onOpenChange:e=>{u(e),e||(o.current=!0)},children:[(0,De.jsx)(by,{asChild:!0,children:(0,De.jsxs)(al,{size:"sm",variant:"outline",className:"text-[13px] justify-between gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",onMouseDown:e=>e.stopPropagation(),children:["Add to calendar",(0,De.jsx)(Ii,{className:"w-3.5 h-3.5"})]})}),(0,De.jsxs)(Cy,{align:"start",className:"w-44",onMouseDown:e=>e.stopPropagation(),children:[(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame(p),children:"Google Calendar"}),(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame((()=>VT(eventkoi_params.ical))),children:"iCalendar"}),(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame((()=>VT("https://outlook.office.com/owa/"))),children:"Outlook 365"}),(0,De.jsx)(jy,{onClick:()=>requestAnimationFrame((()=>VT("https://outlook.live.com/owa/"))),children:"Outlook Live"})]})]}),(0,De.jsxs)(al,{size:"sm",variant:"secondary",onClick:()=>i(!0),className:"text-[13px] gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",children:[(0,De.jsx)(FT,{className:"w-3.5 h-3.5"}),"Share"]})]})]}),(0,De.jsx)(Xp,{open:s,onOpenChange:e=>{i(e),document.body.dataset.shareModalOpen=e?"true":"false",e||(o.current=!0)},children:(0,De.jsxs)(ng,{"data-event-share-modal":!0,className:"w-full max-w-[685px] p-0",onOpenAutoFocus:e=>e.preventDefault(),onMouseDown:e=>e.stopPropagation(),onPointerDownOutside:e=>{e.preventDefault(),i(!1),o.current=!0},children:[(0,De.jsx)(rg,{className:"flex items-center justify-center p-4 border-0 border-solid border-b-2 border-input",children:(0,De.jsx)(og,{className:"font-sans text-xl m-0 text-foreground",children:"Share this event"})}),(0,De.jsxs)("div",{className:"flex flex-col pt-[30px] pb-[60px] px-[60px]",children:[(0,De.jsxs)("div",{className:"flex gap-4 items-center flex-wrap justify-center pb-[60px]",children:[(0,De.jsx)(TT,{event:t,name:"whatsapp",title:"Whatsapp",icon:(0,De.jsx)(OT,{})}),(0,De.jsx)(TT,{event:t,name:"instagram",title:"Instagram",icon:(0,De.jsx)(MT,{})}),(0,De.jsx)(TT,{event:t,name:"email",title:"Email",icon:(0,De.jsx)(AT,{})}),(0,De.jsx)(TT,{event:t,name:"facebook",title:"Facebook",icon:(0,De.jsx)(RT,{})}),(0,De.jsx)(TT,{event:t,name:"x",title:"X",icon:(0,De.jsx)(PT,{})}),(0,De.jsx)(TT,{event:t,name:"linkedin",title:"Linkedin",icon:(0,De.jsx)(IT,{})})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-3 pb-[10px]",children:[(0,De.jsx)(Gl,{className:"text-base",children:"Event link"}),(0,De.jsxs)("div",{className:"relative",children:[(0,De.jsx)(nw,{id:"link",defaultValue:t?.url,readOnly:!0,className:"min-h-[66px] border border-input border-solid border-primary/30 box-border text-lg text-foreground"}),(0,De.jsxs)(al,{variant:"secondary",type:"button",className:"absolute h-12 right-[9px] top-[9px] border-none cursor-pointer hover:bg-input",onMouseDown:e=>e.stopPropagation(),onClick:()=>{requestAnimationFrame((()=>{navigator.clipboard.writeText(t?.url),c(!0),setTimeout((()=>c(!1)),1200)}))},children:[l?(0,De.jsx)(GE,{className:"mr-2 h-5 w-5"}):(0,De.jsx)(YE,{className:"mr-2 h-5 w-5"}),l?"Copied!":"Copy"]})]})]})]})]})})]}),g||document.body)}function UT({timezone:t,setTimezone:n,timeFormat:r,setTimeFormat:o}){const[a,s]=(0,e.useState)(!1),i=function(){const e=eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC",t=[{value:e,label:`Site Default (${bs(e,"24",!1)})`},{value:"local",label:`Local Time (${Intl.DateTimeFormat().resolvedOptions().timeZone})`},{value:"UTC",label:"UTC"}],n=("function"==typeof Intl.supportedValuesOf?Intl.supportedValuesOf("timeZone").map((e=>({value:e,label:e}))):[]).filter((t=>"UTC"!==t.value&&"local"!==t.value&&t.value!==e)).reduce(((e,t)=>{const[n]=t.value.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});Object.keys(n).forEach((e=>{n[e].sort(((e,t)=>e.label.localeCompare(t.label)))}));const r=Object.fromEntries(Object.entries(n).sort((([e],[t])=>e.localeCompare(t))));return{Popular:t,...r}}(),l=function(t=768){const[n,r]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{function e(){r(window.innerWidth<t)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[t]),n}();return(0,De.jsxs)(Jb,{open:a,onOpenChange:s,children:[(0,De.jsx)(Xb,{asChild:!0,children:(0,De.jsx)(al,{variant:"ghost","aria-haspopup":"listbox","aria-expanded":a,"aria-controls":"timezone-listbox","aria-label":`Current timezone: ${bs(t,r)}. Press Enter or Space to change.`,className:"inline-flex bg-transparent border-none cursor-pointer w-auto h-auto p-0 font-normal text-foreground underline",children:bs(t,r)})}),(0,De.jsxs)(ew,{align:l?"start":"end",className:"p-0 w-[280px] border border-border border-solid border-[1px]",children:[(0,De.jsxs)(qj,{children:[(0,De.jsx)("div",{className:"",children:(0,De.jsx)(Lm,{value:r,onValueChange:o,"aria-label":"Time format selection",className:"w-full bg-muted",children:(0,De.jsxs)(Fm,{className:"flex bg-muted px-2 gap-2 shadow-none rounded-none",children:[(0,De.jsx)(zm,{value:"12",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"12hr (AM/PM)"}),(0,De.jsx)(zm,{value:"24",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"24hr"})]})})}),(0,De.jsx)(Gj,{placeholder:"Search timezone...",className:"h-auto border-none focus:border-none focus:border-transparent focus:border-[0px] focus:shadow-none"}),(0,De.jsxs)(Yj,{id:"timezone-listbox",role:"listbox","aria-label":"Select a timezone",className:"max-h-[300px] overflow-y-auto border-t border-border border-t-[1px] border-solid border-b-0 border-l-0 border-r-0",children:[(0,De.jsx)(Zj,{children:"No timezone found."}),Object.entries(i).map((([e,r],o,a)=>(0,De.jsxs)("div",{children:[(0,De.jsx)(Kj,{heading:(0,De.jsx)("span",{className:"py-1 text-sm font-medium text-foreground",children:e}),children:r.map((e=>(0,De.jsx)(Jj,{role:"option","aria-selected":t===e.value,onSelect:()=>{const t=As(e.value);n(t);const r=new URLSearchParams(window.location.search);r.set("tz",e.value),window.history.replaceState({},"",`?${r}`),s(!1)},className:"cursor-pointer aria-selected:bg-accent aria-selected:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded-sm",children:e.label},e.value)))}),o<a.length-1&&(0,De.jsx)(Qj,{})]},e)))]})]}),(0,De.jsxs)("span",{className:"sr-only","aria-live":"polite",children:["Selected timezone: ",bs(t,r)]})]})]})}const $T=window.wp.blockEditor;function qT(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var GT={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${qT(e)} ${e}`,next:e=>`Nächste${qT(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${qT(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function YT(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var ZT,KT,QT,JT,XT,eA,tA,nA,rA,oA={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${YT(e)} ${e}`,next:e=>`Nächste${YT(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${YT(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},aA=[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText:e=>"+ daha çox "+e,noEventsText:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:4},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText:e=>"+още "+e,noEventsText:"Няма събития за показване"},{code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText:e=>"+অন্যান্য "+e,noEventsText:"কোনো ইভেন্ট নেই"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Any",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText:e=>"+další: "+e,noEventsText:"Žádné akce k zobrazení"},{code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"},GT,oA,{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:e=>"Día"===e?"Hoy":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"de la":"del")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:e=>`Mostrar ${e} eventos más`,noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText:e=>"+ veel "+e,noEventsText:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText:e=>"بیش از "+e,noEventsText:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today:e=>"Día"===e?"Hoxe":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"da":"do")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint:e=>`Amosar ${e} eventos máis`,noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},{code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"נוספים",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText:e=>"+अधिक "+e,noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},{code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText:e=>"+ ևս "+e,noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:e=>"+altri "+e,noEventsText:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText:e=>"他 "+e+" 件",noEventsText:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText:e=>"+ კიდევ "+e,noEventsText:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText:e=>"+ тағы "+e,noEventsText:"Көрсету үшін оқиғалар жоқ"},{code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},{code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText:e=>"+vēl "+e,noEventsText:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText:e=>"+повеќе "+e,noEventsText:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText:e=>"masih ada "+e+" acara",noEventsText:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint:e=>`Vis ${e} flere hendelse${1===e?"":"r"}`},{code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Lijst"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today:e=>"Dia"===e?"Hoje":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Visualizar "+("Semana"===e?"a":"o")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText:e=>"mais +"+e,moreLinkHint:e=>`Mostrar mais ${e} eventos`,noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText:e=>"+alte "+e,noEventsText:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:e=>"+ ещё "+e,noEventsText:"Нет событий для отображения"},{code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText:e=>"+ďalšie: "+e,noEventsText:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},{code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText:e=>"+më tepër "+e,noEventsText:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText:e=>"+ још "+e,noEventsText:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev:e=>`Föregående ${e.toLocaleLowerCase()}`,next:e=>`Nästa ${e.toLocaleLowerCase()}`,today:e=>("Program"===e?"Detta":"Denna")+" "+e.toLocaleLowerCase()},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint:e=>`Visa ytterligare ${e} händelse${1===e?"":"r"}`,weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},{code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText:e=>"+ மேலும் "+e,noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText:e=>"+ще "+e+"...",noEventsText:"Немає подій для відображення"},{code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText:e=>"+ яна "+e,noEventsText:"Кўрсатиш учун воқеалар йўқ"},{code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:e=>"+ yana "+e,noEventsText:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText:e=>"+ thêm "+e,noEventsText:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:e=>"另外 "+e+" 个",noEventsText:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上個",next:"下個",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"週",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"沒有任何活動"}],sA={},iA=[],lA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function cA(e,t){for(var n in t)e[n]=t[n];return e}function dA(e){var t=e.parentNode;t&&t.removeChild(e)}function uA(e,t,n){var r,o,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?ZT.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return fA(e,s,r,o,null)}function fA(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++QT:o};return null==o&&null!=KT.vnode&&KT.vnode(a),a}function hA(e){return e.children}function mA(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||lA.test(t)?n:n+"px"}function pA(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||mA(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||mA(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?vA:gA,a):e.removeEventListener(t,a?vA:gA,a);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function gA(e){XT=!0;try{return this.l[e.type+!1](KT.event?KT.event(e):e)}finally{XT=!1}}function vA(e){XT=!0;try{return this.l[e.type+!0](KT.event?KT.event(e):e)}finally{XT=!1}}function yA(e,t){this.props=e,this.context=t}function xA(e,t){if(null==t)return e.__?xA(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?xA(e):null}function bA(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return bA(e)}}function wA(e){XT?setTimeout(e):nA(e)}function kA(e){(!e.__d&&(e.__d=!0)&&eA.push(e)&&!_A.__r++||tA!==KT.debounceRendering)&&((tA=KT.debounceRendering)||wA)(_A)}function _A(){var e,t,n,r,o,a,s,i;for(eA.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=eA.shift();)e.__d&&(t=eA.length,r=void 0,o=void 0,s=(a=(n=e).__v).__e,(i=n.__P)&&(r=[],(o=cA({},a)).__v=a.__v+1,DA(i,a,o,n.__n,void 0!==i.ownerSVGElement,null!=a.__h?[s]:null,r,null==s?xA(a):s,a.__h),TA(r,a),a.__e!=s&&bA(a)),eA.length>t&&eA.sort((function(e,t){return e.__v.__b-t.__v.__b})));_A.__r=0}function SA(e,t,n,r,o,a,s,i,l,c){var d,u,f,h,m,p,g,v=r&&r.__k||iA,y=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(h=n.__k[d]=null==(h=t[d])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?fA(null,h,null,null,h):Array.isArray(h)?fA(hA,{children:h},null,null,null):h.__b>0?fA(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=v[d])||f&&h.key==f.key&&h.type===f.type)v[d]=void 0;else for(u=0;u<y;u++){if((f=v[u])&&h.key==f.key&&h.type===f.type){v[u]=void 0;break}f=null}DA(e,h,f=f||sA,o,a,s,i,l,c),m=h.__e,(u=h.ref)&&f.ref!=u&&(g||(g=[]),f.ref&&g.push(f.ref,null,h),g.push(u,h.__c||m,h)),null!=m?(null==p&&(p=m),"function"==typeof h.type&&h.__k===f.__k?h.__d=l=CA(h,l,e):l=EA(e,h,f,v,m,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=xA(f))}for(n.__e=p,d=y;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=NA(r).nextSibling),MA(v[d],v[d]));if(g)for(d=0;d<g.length;d++)RA(g[d],g[++d],g[++d])}function CA(e,t,n){for(var r,o=e.__k,a=0;o&&a<o.length;a++)(r=o[a])&&(r.__=e,t="function"==typeof r.type?CA(r,t,n):EA(n,r,r,o,r.__e,t));return t}function jA(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){jA(e,t)})):t.push(e)),t}function EA(e,t,n,r,o,a){var s,i,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),s=null;else{for(i=a,l=0;(i=i.nextSibling)&&l<r.length;l+=1)if(i==o)break e;e.insertBefore(o,a),s=a}return void 0!==s?s:o.nextSibling}function NA(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=NA(n)))return r;return null}function DA(e,t,n,r,o,a,s,i,l){var c,d,u,f,h,m,p,g,v,y,x,b,w,k,_,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,i=t.__e=n.__e,t.__h=null,a=[i]),(c=KT.__b)&&c(t);try{e:if("function"==typeof S){if(g=t.props,v=(c=S.contextType)&&r[c.__c],y=c?v?v.props.value:c.__:r,n.__c?p=(d=t.__c=n.__c).__=d.__E:("prototype"in S&&S.prototype.render?t.__c=d=new S(g,y):(t.__c=d=new yA(g,y),d.constructor=S,d.render=IA),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=y,d.__n=r,u=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=cA({},d.__s)),cA(d.__s,S.getDerivedStateFromProps(g,d.__s))),f=d.props,h=d.state,d.__v=t,u)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,y),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,y),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,m)}))}if(d.context=y,d.props=g,d.__P=e,b=KT.__r,w=0,"prototype"in S&&S.prototype.render){for(d.state=d.__s,d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(r=cA(cA({},r),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),_=null!=c&&c.type===hA&&null==c.key?c.props.children:c,SA(e,Array.isArray(_)?_:[_],t,n,r,o,a,s,i,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),p&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=AA(n.__e,t,n,r,o,a,s,l);(c=KT.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=i,t.__h=!!l,a[a.indexOf(i)]=null),KT.__e(e,t,n)}}function TA(e,t){KT.__c&&KT.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){KT.__e(e,t.__v)}}))}function AA(e,t,n,r,o,a,s,i){var l,c,d,u=n.props,f=t.props,h=t.type,m=0;if("svg"===h&&(o=!0),null!=a)for(;m<a.length;m++)if((l=a[m])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,a[m]=null;break}if(null==e){if(null===h)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),a=null,i=!1}if(null===h)u===f||i&&e.data===f||(e.data=f);else{if(a=a&&ZT.call(e.childNodes),c=(u=n.props||sA).dangerouslySetInnerHTML,d=f.dangerouslySetInnerHTML,!i){if(null!=a)for(u={},m=0;m<e.attributes.length;m++)u[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var a;for(a in n)"children"===a||"key"===a||a in t||pA(e,a,null,n[a],r);for(a in t)o&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a]||pA(e,a,t[a],n[a],r)}(e,f,u,o,i),d)t.__k=[];else if(m=t.props.children,SA(e,Array.isArray(m)?m:[m],t,n,r,o&&"foreignObject"!==h,a,s,a?a[0]:n.__k&&xA(n,0),i),null!=a)for(m=a.length;m--;)null!=a[m]&&dA(a[m]);i||("value"in f&&void 0!==(m=f.value)&&(m!==e.value||"progress"===h&&!m||"option"===h&&m!==u.value)&&pA(e,"value",m,u.value,!1),"checked"in f&&void 0!==(m=f.checked)&&m!==e.checked&&pA(e,"checked",m,u.checked,!1))}return e}function RA(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){KT.__e(e,n)}}function MA(e,t,n){var r,o;if(KT.unmount&&KT.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||RA(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){KT.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&MA(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||dA(e.__e),e.__=e.__e=e.__d=void 0}function IA(e,t,n){return this.constructor(e,n)}function OA(e,t,n){var r,o,a;KT.__&&KT.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],DA(t,e=(!r&&n||t).__k=uA(hA,null,[e]),o||sA,sA,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?ZT.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r),TA(a,e)}ZT=iA.slice,KT={__e:function(e,t,n,r){for(var o,a,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},QT=0,JT=function(e){return null!=e&&void 0===e.constructor},XT=!1,yA.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=cA({},this.state),"function"==typeof e&&(e=e(cA({},n),this.props)),e&&cA(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),kA(this))},yA.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),kA(this))},yA.prototype.render=hA,eA=[],nA="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_A.__r=0,rA=0;var PA,LA,FA,zA=[],HA=[],BA=KT.__b,VA=KT.__r,WA=KT.diffed,UA=KT.__c,$A=KT.unmount;function qA(){for(var e;e=zA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ZA),e.__H.__h.forEach(KA),e.__H.__h=[]}catch(t){e.__H.__h=[],KT.__e(t,e.__v)}}KT.__b=function(e){PA=null,BA&&BA(e)},KT.__r=function(e){VA&&VA(e);var t=(PA=e.__c).__H;t&&(LA===PA?(t.__h=[],PA.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=HA,e.__N=e.i=void 0}))):(t.__h.forEach(ZA),t.__h.forEach(KA),t.__h=[])),LA=PA},KT.diffed=function(e){WA&&WA(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==zA.push(t)&&FA===KT.requestAnimationFrame||((FA=KT.requestAnimationFrame)||YA)(qA)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==HA&&(e.__=e.__V),e.i=void 0,e.__V=HA}))),LA=PA=null},KT.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ZA),e.__h=e.__h.filter((function(e){return!e.__||KA(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],KT.__e(n,e.__v)}})),UA&&UA(e,t)},KT.unmount=function(e){$A&&$A(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ZA(e)}catch(e){t=e}})),n.__H=void 0,t&&KT.__e(t,n.__v))};var GA="function"==typeof requestAnimationFrame;function YA(e){var t,n=function(){clearTimeout(r),GA&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);GA&&(t=requestAnimationFrame(n))}function ZA(e){var t=PA,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),PA=t}function KA(e){var t=PA;e.__c=e.__(),PA=t}function QA(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function JA(e){this.props=e}(JA.prototype=new yA).isPureReactComponent=!0,JA.prototype.shouldComponentUpdate=function(e,t){return QA(this.props,e)||QA(this.state,t)};var XA=KT.__b;KT.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),XA&&XA(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var eR=KT.__e;KT.__e=function(e,t,n,r){if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);eR(e,t,n,r)};var tR=KT.unmount;function nR(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return nR(e,t,n)}))),e}function rR(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return rR(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function oR(){this.__u=0,this.t=null,this.__b=null}function aR(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function sR(){this.u=null,this.o=null}KT.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),tR&&tR(e)},(oR.prototype=new yA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=aR(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,o?o(i):i())};n.__R=s;var i=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=rR(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},oR.prototype.componentWillUnmount=function(){this.t=[]},oR.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=nR(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&uA(hA,null,e.fallback);return o&&(o.__h=null),[uA(hA,null,t.__a?null:e.children),o]};var iR=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function lR(e){return this.getChildContext=function(){return e.context},e.children}function cR(e){var t=this,n=e.i;t.componentWillUnmount=function(){OA(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),OA(uA(lR,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(sR.prototype=new yA).__a=function(e){var t=this,n=aR(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),iR(t,e,r)):o()};n?n(a):a()}},sR.prototype.render=function(e){this.u=null,this.o=new Map;var t=jA(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},sR.prototype.componentDidUpdate=sR.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){iR(e,n,t)}))};var dR="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,uR=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,fR="undefined"!=typeof document,hR=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};yA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(yA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var mR=KT.event;function pR(){}function gR(){return this.cancelBubble}function vR(){return this.defaultPrevented}KT.event=function(e){return mR&&(e=mR(e)),e.persist=pR,e.isPropagationStopped=gR,e.isDefaultPrevented=vR,e.nativeEvent=e};var yR={configurable:!0,get:function(){return this.class}},xR=KT.vnode;KT.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var a in r={},n){var s=n[a];fR&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!hR(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&uR.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=jA(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=jA(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(yR.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",yR))}e.$$typeof=dR,xR&&xR(e)};var bR=KT.__r;KT.__r=function(e){bR&&bR(e),e.__c};const wR=[],kR=new Map;function _R(e){wR.push(e),kR.forEach((t=>{CR(t,e)}))}function SR(e){let t=kR.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=(void 0===jR&&(jR=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}()),jR);n&&(t.nonce=n);const r=e===document?document.head:e,o=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,o)}kR.set(e,t),function(e){for(const t of wR)CR(e,t)}(t)}}function CR(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach(((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)}))}let jR;"undefined"!=typeof document&&SR(document),_R(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');class ER{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function NR(e){e.parentNode&&e.parentNode.removeChild(e)}function DR(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(TR(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function TR(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}const AR=/(top|left|right|bottom|width|height)$/i;function RR(e,t,n){null==n?e.style[t]="":"number"==typeof n&&AR.test(t)?e.style[t]=`${n}px`:e.style[t]=n}let MR=0;function IR(){return MR+=1,"fc-dom-"+MR}function OR(e,t,n,r){let o=function(e,t){return n=>{let r=DR(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}function PR(e){return Object.assign({onClick:e},LR(e))}function LR(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let FR=0;function zR(){return FR+=1,String(FR)}function HR(e,t,n){return n.func?n.func(e,t):function(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}(e[n.field],t[n.field])*(n.order||1)}function BR(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function VR(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function WR(e){return e%1==0}function UR(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const $R=["years","months","days","milliseconds"],qR=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function GR(e,t){return"string"==typeof e?function(e){let t=qR.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?YR(e):"number"==typeof e?YR({[t||"milliseconds"]:e}):null}function YR(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function ZR(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function KR(e){return QR(e)/864e5}function QR(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function JR(e,t){let n=null;for(let r=0;r<$R.length;r+=1){let o=$R[r];if(t[o]){let r=e[o]/t[o];if(!WR(r)||null!==n&&n!==r)return null;n=r}else if(e[o])return null}return n}function XR(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function eM(e,t,n){if(e===t)return!0;let r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const tM=["sun","mon","tue","wed","thu","fri","sat"];function nM(e,t){let n=fM(e);return n[2]+=7*t,hM(n)}function rM(e,t){let n=fM(e);return n[2]+=t,hM(n)}function oM(e,t){let n=fM(e);return n[6]+=t,hM(n)}function aM(e,t){return(t.valueOf()-e.valueOf())/864e5}function sM(e,t){return pM(e)===pM(t)?Math.round(aM(e,t)):null}function iM(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function lM(e,t,n,r){let o=hM([t,0,1+cM(t,n,r)]),a=iM(e),s=Math.round(aM(o,a));return Math.floor(s/7)+1}function cM(e,t,n){let r=7+t-n;return-(7+hM([e,0,r]).getUTCDay()-t)%7+r-1}function dM(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function uM(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function fM(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function hM(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function mM(e){return!isNaN(e.valueOf())}function pM(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function gM(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",yM(t,!0)))),r}function vM(e){return e.toISOString().replace(/T.*$/,"")}function yM(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=Math.round(r%60);return t?`${n+BR(o,2)}:${BR(a,2)}`:`GMT${n}${o}${a?`:${BR(a,2)}`:""}`}function xM(e,t,n){let r,o;return function(...a){if(r){if(!eM(r,a)){n&&n(o);let r=e.apply(this,a);t&&t(r,o)||(o=r)}}else o=e.apply(this,a);return r=a,o}}function bM(e,t,n){let r,o;return a=>{if(r){if(!JM(r,a)){n&&n(o);let r=e.call(this,a);t&&t(r,o)||(o=r)}}else o=e.call(this,a);return r=a,o}}const wM={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},kM={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},_M=/\s*([ap])\.?m\.?/i,SM=/,/g,CM=/\s+/g,jM=/\u200e/g,EM=/UTC|GMT/;class NM{constructor(e){let t={},n={},r=9;for(let o in e)o in wM?(n[o]=e[o],wM[o]<9&&(r=Math.min(wM[o],r))):(t[o]=e[o],o in kM&&(r=Math.min(kM[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=xM(DM)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:o,extendedSettings:a}=this,s=(i=e.marker,l=t.marker,(c=n.calendarSystem).getMarkerYear(i)!==c.getMarkerYear(l)?5:c.getMarkerMonth(i)!==c.getMarkerMonth(l)?4:c.getMarkerDay(i)!==c.getMarkerDay(l)?2:pM(i)!==pM(l)?1:0);var i,l,c;if(!s)return this.format(e,n);let d=s;!(d>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(d=1);let u=this.format(e,n),f=this.format(t,n);if(u===f)return u;let h=function(e,t){let n={};for(let r in e)(!(r in kM)||kM[r]<=t)&&(n[r]=e[r]);return n}(o,d),m=DM(h,a,n),p=m(e),g=m(t),v=function(e,t,n,r){let o=0;for(;o<e.length;){let a=e.indexOf(t,o);if(-1===a)break;let s=e.substr(0,a);o=a+t.length;let i=e.substr(o),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let o=n.substr(l);if(s===t&&i===o)return{before:s,after:i}}}return null}(u,p,f,g),y=a.separator||r||n.defaultSeparator||"";return v?v.before+p+y+g+v.after:u+y+f}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function DM(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>yM(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,o){let a=[];return"long"===o?a.push(n):"short"!==o&&"narrow"!==o||a.push(t),"long"!==o&&"short"!==o||a.push(" "),a.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&a.reverse(),a.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return a=>{let s,{marker:i}=a;return s=r&&!i.getUTCMinutes()?r:o,function(e,t,n,r,o){return e=e.replace(jM,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;return e=e.replace(EM,(()=>(n=!0,t))),n||(e+=` ${t}`),e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":yM(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(SM,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(_M,"").trim():"narrow"===r.meridiem?e=e.replace(_M,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(_M,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(_M,(e=>e.toLocaleLowerCase()))),e=(e=e.replace(CM," ")).trim()}(s.format(i),a,e,t,n)}}(e,t,n)}function TM(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function AM(e,t,n,r){let o=TM(e,n.calendarSystem);return{date:o,start:o,end:t?TM(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class RM{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,AM(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,AM(e,t,n,r))}}class MM{constructor(e){this.func=e}format(e,t,n){return this.func(AM(e,null,t,n))}formatRange(e,t,n,r){return this.func(AM(e,t,n,r))}}function IM(e){return"object"==typeof e&&e?new NM(e):"string"==typeof e?new RM(e):"function"==typeof e?new MM(e):null}const OM={navLinkDayClick:$M,navLinkWeekClick:$M,duration:GR,bootstrapFontAwesome:$M,buttonIcons:$M,customButtons:$M,defaultAllDayEventDuration:GR,defaultTimedEventDuration:GR,nextDayThreshold:GR,scrollTime:GR,scrollTimeReset:Boolean,slotMinTime:GR,slotMaxTime:GR,dayPopoverFormat:IM,slotDuration:GR,snapDuration:GR,headerToolbar:$M,footerToolbar:$M,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:IM,dayHeaderClassNames:$M,dayHeaderContent:$M,dayHeaderDidMount:$M,dayHeaderWillUnmount:$M,dayCellClassNames:$M,dayCellContent:$M,dayCellDidMount:$M,dayCellWillUnmount:$M,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:$M,weekNumbers:Boolean,weekNumberClassNames:$M,weekNumberContent:$M,weekNumberDidMount:$M,weekNumberWillUnmount:$M,editable:Boolean,viewClassNames:$M,viewDidMount:$M,viewWillUnmount:$M,nowIndicator:Boolean,nowIndicatorSnap:$M,nowIndicatorClassNames:$M,nowIndicatorContent:$M,nowIndicatorDidMount:$M,nowIndicatorWillUnmount:$M,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:$M,locale:$M,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:$M,eventOrder:function(e){let t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)n=o[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:$M,contentHeight:$M,direction:String,weekNumberFormat:IM,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:$M,initialDate:$M,now:$M,eventDataTransform:$M,stickyHeaderDates:$M,stickyFooterScrollbar:$M,viewHeight:$M,defaultAllDay:Boolean,eventSourceFailure:$M,eventSourceSuccess:$M,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:$M,eventConstraint:$M,eventAllow:$M,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:$M,eventContent:$M,eventDidMount:$M,eventWillUnmount:$M,selectConstraint:$M,selectOverlap:$M,selectAllow:$M,droppable:Boolean,unselectCancel:String,slotLabelFormat:$M,slotLaneClassNames:$M,slotLaneContent:$M,slotLaneDidMount:$M,slotLaneWillUnmount:$M,slotLabelClassNames:$M,slotLabelContent:$M,slotLabelDidMount:$M,slotLabelWillUnmount:$M,dayMaxEvents:$M,dayMaxEventRows:$M,dayMinWidth:Number,slotLabelInterval:GR,allDayText:String,allDayClassNames:$M,allDayContent:$M,allDayDidMount:$M,allDayWillUnmount:$M,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:IM,rerenderDelay:Number,moreLinkText:$M,moreLinkHint:$M,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:$M,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:GR,hiddenDays:$M,fixedWeekCount:Boolean,validRange:$M,visibleRange:$M,titleFormat:$M,eventInteractive:Boolean,noEventsText:String,viewHint:$M,navLinkHint:$M,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:$M,moreLinkClassNames:$M,moreLinkContent:$M,moreLinkDidMount:$M,moreLinkWillUnmount:$M,monthStartFormat:IM,handleCustomRendering:$M,customRenderingMetaMap:$M,customRenderingReplaces:Boolean},PM={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},LM={datesSet:$M,eventsSet:$M,eventAdd:$M,eventChange:$M,eventRemove:$M,windowResize:$M,eventClick:$M,eventMouseEnter:$M,eventMouseLeave:$M,select:$M,unselect:$M,loading:$M,_unmount:$M,_beforeprint:$M,_afterprint:$M,_noEventDrop:$M,_noEventResize:$M,_resize:$M,_scrollRequest:$M},FM={buttonText:$M,buttonHints:$M,views:$M,plugins:$M,initialEvents:$M,events:$M,eventSources:$M},zM={headerToolbar:HM,footerToolbar:HM,buttonText:HM,buttonHints:HM,buttonIcons:HM,dateIncrement:HM,plugins:BM,events:BM,eventSources:BM,resources:BM};function HM(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?JM(e,t):e===t}function BM(e,t){return Array.isArray(e)&&Array.isArray(t)?eM(e,t):e===t}const VM={type:String,component:$M,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:$M,usesMinMaxTime:Boolean,classNames:$M,content:$M,didMount:$M,willUnmount:$M};function WM(e){return GM(e,zM)}function UM(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function $M(e){return e}const{hasOwnProperty:qM}=Object.prototype;function GM(e,t){let n={};if(t)for(let r in t)if(t[r]===HM){let t=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if("object"==typeof a&&a)t.unshift(a);else if(void 0!==a){n[r]=a;break}}t.length&&(n[r]=GM(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function YM(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ZM(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function KM(e){let t={};for(let n of e)t[n]=!0;return t}function QM(e){let t=[];for(let n in e)t.push(e[n]);return t}function JM(e,t){if(e===t)return!0;for(let n in e)if(qM.call(e,n)&&!(n in t))return!1;for(let n in t)if(qM.call(t,n)&&e[n]!==t[n])return!1;return!0}const XM=/^on[A-Z]/;function eI(e,t,n={}){if(e===t)return!0;for(let s in t)if(!(s in e&&(r=e[s],o=t[s],a=n[s],r===o||!0===a||a&&a(r,o))))return!1;var r,o,a;for(let n in e)if(!(n in t))return!1;return!0}let tI={};var nI;nI=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return hM(e)}markerToArray(e){return fM(e)}},tI.gregory=nI;const rI=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class oI{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new tI[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):hM(dM(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=hM(e)),null!==t&&mM(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=rI.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(mM(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return pM(e)===pM(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return pM(e)===pM(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=function(e,t){let n=sM(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=sM(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),WR(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),WR(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),WR(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(KR(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/(KR(n)/30):n.days&&(r=sM(e,t),null!==r)?r/KR(n):(t.valueOf()-e.valueOf())/QR(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?iM(e):"hour"===t?function(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return hM([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),o=lM(e,r,t,n);if(o<1)return lM(e,r-1,t,n);let a=lM(e,r+1,t,n);return a>=1?Math.min(o,a):o}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=oM(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),gM(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?hM(dM(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?hM(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-uM(fM(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(fM(e)):null}toDate(e,t){return"local"===this.timeZone?uM(fM(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(fM(e))*60):new Date(e.valueOf()-(t||0))}}class aI{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function sI(e){e();let t=KT.debounceRendering,n=[];for(KT.debounceRendering=function(e){n.push(e)},OA(uA(iI,{}),document.createElement("div"));n.length;)n.shift()();KT.debounceRendering=t}aI.prototype.classes={},aI.prototype.iconClasses={},aI.prototype.baseIconClass="",aI.prototype.iconOverridePrefix="";class iI extends yA{render(){return uA("div",{})}componentDidMount(){this.setState({})}}function lI(e){let t=function(e,t){var n={__c:t="__cC"+rA++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,kA(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class cI{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const dI=lI({});function uI(e,t,n,r,o,a,s,i,l,c,d,u,f,h){return{dateEnv:o,nowManager:a,options:n,pluginHooks:i,emitter:d,dispatch:l,getCurrentData:c,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){d.on("_resize",e)},removeResizeHandler(e){d.off("_resize",e)},createScrollResponder:e=>new cI(e,d,GR(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class fI extends yA{shouldComponentUpdate(e,t){return!eI(this.props,e,this.propEquality)||!eI(this.state,t,this.stateEquality)}safeSetState(e){eI(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}fI.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},fI.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},fI.contextType=dI,fI.prototype.propEquality={},fI.prototype.stateEquality={};class hI extends fI{}function mI(e,t){"function"==typeof e?e(t):e&&(e.current=t)}hI.contextType=dI;class pI extends hI{constructor(){super(...arguments),this.id=zR(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&gI(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&mI(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:o,renderProps:a}=e,s=vI(e,[],this.handleEl);let i,l,c=!1,d=[];if(null!=r){const e="function"==typeof r?r(a,uA):r;if(!0===e)c=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?s.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?d=Array.prototype.slice.call(e.domNodes):(t?JT(e):"function"!=typeof e)?i=e:l=e}}else c=!gI(e.generatorName,n);return c&&o&&(i=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=l,uA(e.elTag,s,i)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=r.options;if(o){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==a?void 0:a[n.generatorName];r&&o(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(yI)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!eM(e,t)){t.forEach(NR);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function gI(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function vI(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function yI(e){return Boolean(e)}pI.addPropsEquality({elClasses:eM,elStyle:JM,elAttrs:function(e,t){const n=function(e,t){let n=[];for(let r in e)qM.call(e,r)&&(r in t||n.push(r));for(let r in t)qM.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}(e,t);for(let e of n)if(!XM.test(e))return!1;return!0},renderProps:JM});const xI=lI(0);class bI extends yA{constructor(){super(...arguments),this.InnerContent=wI.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(mI(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=vI(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?uA(e.elTag,n,r):r}return uA(pI,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function wI(e,t){const n=e.props;return uA(pI,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}bI.contextType=xI;class kI extends hI{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return uA(bI,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[..._I(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},(()=>e.children))}}function _I(e){return[`fc-${e.type}-view`,"fc-view"]}function SI(e,t){let n,r,o=[],{start:a}=t;for(e.sort(CI),n=0;n<e.length;n+=1)r=e[n],r.start>a&&o.push({start:a,end:r.start}),r.end>a&&(a=r.end);return a<t.end&&o.push({start:a,end:t.end}),o}function CI(e,t){return e.start.valueOf()-t.start.valueOf()}function jI(e,t){let{start:n,end:r}=e,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function EI(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function NI(e){let t=Math.floor(aM(e.start,e.end))||1,n=iM(e.start);return{start:n,end:rM(n,t)}}function DI(e,t=GR(0)){let n=null,r=null;if(e.end){r=iM(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=QR(t)&&(r=rM(r,1))}return e.start&&(n=iM(e.start),r&&r<=n&&(r=rM(n,1))),{start:n,end:r}}function TI(e,t,n,r){return"year"===r?GR(n.diffWholeYears(e,t),"year"):"month"===r?GR(n.diffWholeMonths(e,t),"month"):function(e,t){let n=iM(e),r=iM(t);return{years:0,months:0,days:Math.round(aM(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}class AI{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)}build(e,t,n=!0){let r,o,a,s,i,l,{props:c}=this;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}(e,r)),o=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(o.unit),s=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),s=this.trimHiddenDays(s),i=s,c.showNonCurrentDates||(i=jI(i,o.range)),i=this.adjustActiveRange(i),i=jI(i,r),d=o.range,u=r,l=(null===d.end||null===u.start||d.end>u.start)&&(null===d.start||null===u.end||d.start<u.end),EI(s,e)||(e=s.start),{currentDate:e,validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:i,renderRange:s,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)};var d,u}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,o=null,a=null,s=null;return r.duration?(o=r.duration,a=r.durationUnit,s=this.buildRangeFromDuration(e,t,o,a)):(n=this.props.dayCount)?(a="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?a=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(o=this.getFallbackDuration(),a=XR(o).unit,s=this.buildRangeFromDuration(e,t,o,a)),{duration:o,unit:a,range:s}}getFallbackDuration(){return GR({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:o}=this.props,{start:a,end:s}=e;return n&&(KR(r)<0&&(a=iM(a),a=t.add(a,r)),KR(o)>1&&(s=iM(s),s=rM(s,-1),s=t.add(s,o))),{start:a,end:s}}buildRangeFromDuration(e,t,n,r){let o,a,s,{dateEnv:i,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&QR(e)<QR(n)?XR(e).unit:r}function c(){o=i.startOf(e,l),a=i.add(o,n),s={start:o,end:a}}return KR(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=iM(o)),c(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),c()),s}buildRangeFromDayCount(e,t,n){let r,{dateEnv:o,dateAlignment:a}=this.props,s=0,i=e;a&&(i=o.startOf(i,a)),i=iM(i),i=this.skipHiddenDays(i,t),r=i;do{r=rM(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:i,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?GR(1,t):e||GR({days:1}))}refineRange(e){if(e){let t=function(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=DI(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=rM(e,t);return e}}function RI(e,t,n,r){return{instanceId:zR(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function MI(e,t,n){let{dateEnv:r,pluginHooks:o,options:a}=n,{defs:s,instances:i}=e;i=YM(i,(e=>!s[e.defId].recurringDef));for(let e in s){let n=s[e];if(n.recurringDef){let{duration:s}=n.recurringDef;s||(s=n.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);let l=II(n,s,t,r,o.recurringTypes);for(let t of l){let n=RI(e,{start:t,end:r.add(t,s)});i[n.instanceId]=n}}}return{defs:s,instances:i}}function II(e,t,n,r,o){let a=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(iM)),a}const OI={id:String,groupId:String,title:String,url:String,interactive:Boolean},PI={start:$M,end:$M,date:$M,allDay:Boolean},LI=Object.assign(Object.assign(Object.assign({},OI),PI),{extendedProps:$M});function FI(e,t,n,r,o=HI(n),a,s){let{refined:i,extra:l}=zI(e,n,o),c=function(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}(t,n),d=function(e,t,n,r){for(let o=0;o<r.length;o+=1){let a=r[o].parse(e,n);if(a){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=a.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(i,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=BI(i,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,a);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let u=function(e,t,n,r){let o,a,{allDay:s}=e,i=null,l=!1,c=null,d=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(d),o)i=o.marker;else if(!r)return null;return null!=e.end&&(a=n.dateEnv.createMarkerMeta(e.end)),null==s&&(s=null!=t?t:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified)),s&&i&&(i=iM(i)),a&&(c=a.marker,s&&(c=iM(c)),i&&c<=i&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(i,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:s,hasEnd:l,range:{start:i,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(i,c,n,r);if(u){let e=BI(i,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,a),r=RI(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return s&&e.publicId&&s[e.publicId]&&(r.instanceId=s[e.publicId]),{def:e,instance:r}}return null}function zI(e,t,n=HI(t)){return UM(e,n)}function HI(e){return Object.assign(Object.assign(Object.assign({},GI),LI),e.pluginHooks.eventRefiners)}function BI(e,t,n,r,o,a,s){let i={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||zR(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:ZI(e,a),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of a.pluginHooks.eventDefMemberAdders)Object.assign(i,t(e));return Object.freeze(i.ui.classNames),Object.freeze(i.extendedProps),i}function VI(e,t,n,r,o,a){let s={defs:{},instances:{}},i=HI(n);for(let l of e){let e=FI(l,t,n,r,i,o,a);e&&WI(e,s)}return s}function WI(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function UI(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function $I(e,t){let n=YM(e.defs,t),r=YM(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function qI(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const GI={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:$M,overlap:$M,allow:$M,className:qI,classNames:qI,color:String,backgroundColor:String,borderColor:String,textColor:String},YI={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ZI(e,t){let n=function(e,t){return Array.isArray(e)?VI(e,null,t,!0):"object"==typeof e&&e?VI([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function KI(e){return e.reduce(QI,YI)}function QI(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const JI={id:String,defaultAllDay:Boolean,url:String,format:String,events:$M,eventDataTransform:$M,success:$M,failure:$M};function XI(e,t,n=eO(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:o,extra:a}=UM(r,n),s=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(o,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:zR(),sourceDefId:s.sourceDefId,meta:s.meta,ui:ZI(o,t),extendedProps:a}}return null}function eO(e){return Object.assign(Object.assign(Object.assign({},GI),JI),e.pluginHooks.eventSourceRefiners)}function tO(e,t,n){let r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=nO(e,o)),r&&(e=nO(e,r)),e}function nO(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function rO(e,t,n){let{defs:r}=e,o=ZM(e.instances,(e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})));return{defs:r,instances:o}}function oO(e,t){return $I(e,(e=>e.sourceId!==t))}class aO{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],o=[].concat(r||[],n);for(let e of o)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const sO={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function iO(e,t,n){let{dateEnv:r,options:o}=n,a=t;return e?(a=iM(a),a=r.add(a,o.defaultAllDayEventDuration)):a=r.add(a,o.defaultTimedEventDuration),a}function lO(e,t,n,r){let o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},e),o),{ui:Object.assign(Object.assign({},e.ui),o.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(a,n,r);return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function cO(e,t,n,r,o){let{dateEnv:a}=o,s=r.standardProps&&!0===r.standardProps.allDay,i=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return s&&(l.range=NI(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,r.datesDelta),end:a.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,r.endDelta)}),i&&(l.range={start:l.range.start,end:iO(t.allDay,l.range.start,o)}),t.allDay&&(l.range={start:iM(l.range.start),end:iM(l.range.end)}),l.range.end<l.range.start&&(l.range.end=iO(t.allDay,l.range.start,o)),l}class dO{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class uO{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in PI)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=OI[e](t),this.mutate({standardProps:{publicId:t}});else if(e in OI)t=OI[e](t),this.mutate({standardProps:{[e]:t}});else if(e in GI){let n=GI[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=TI(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=TI(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:o}=this._context,a={allDay:n.allDay},s=o.createMarker(e);var i,l;if(s&&(null==t||(r=o.createMarker(t),r))&&this._instance){let e=this._instance.range;!0===n.allDay&&(e=NI(e));let t=TI(e.start,s,o,n.granularity);if(r){let s=TI(e.end,r,o,n.granularity);l=s,(i=t).years===l.years&&i.months===l.months&&i.days===l.days&&i.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:a}):this.mutate({startDelta:t,endDelta:s,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:t,standardProps:a})}}moveStart(e){let t=GR(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=GR(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=GR(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=IM(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:o}=r.getCurrentData(),a=function(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=$I(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}(o,t.instanceId);a=function(e,t,n,r){let o=vO(e.defs,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}),a={defs:{},instances:{}};for(let t in e.defs){let s=e.defs[t];a.defs[t]=lO(s,o[t],n,r)}for(let t in e.instances){let s=e.instances[t],i=a.defs[s.defId];a.instances[t]=cO(s,i,o[s.defId],n,r)}return a}(a,0,e,r);let s=new uO(r,n,t);this._def=a.defs[n.defId],this._instance=a.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:a}),r.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:hO(a,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let e=this._context,t=fO(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new dO(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:o}=this,a={allDay:t.allDay};return t.title&&(a.title=t.title),r&&(a.start=r),o&&(a.end=o),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}toJSON(){return this.toPlainObject()}}function fO(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function hO(e,t,n){let{defs:r,instances:o}=e,a=[],s=n?n.instanceId:"";for(let e in o){let n=o[e],i=r[n.defId];n.instanceId!==s&&a.push(new uO(t,i,n))}return a}function mO(e,t,n,r){let o={},a={},s={},i=[],l=[],c=vO(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(o[n.groupId]=[],s[n.groupId]||(s[n.groupId]=n)):a[t]=[])}for(let t in e.instances){let s=e.instances[t],d=e.defs[s.defId],u=c[d.defId],f=s.range,h=!d.allDay&&r?DI(f,r):f,m=jI(h,n);m&&("inverse-background"===u.display?d.groupId?o[d.groupId].push(m):a[s.defId].push(m):"none"!==u.display&&("background"===u.display?i:l).push({def:d,ui:u,instance:s,range:m,isStart:h.start&&h.start.valueOf()===m.start.valueOf(),isEnd:h.end&&h.end.valueOf()===m.end.valueOf()}))}for(let e in o){let t=SI(o[e],n);for(let n of t){let t=s[e],r=c[t.defId];i.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in a){let r=SI(a[t],n);for(let n of r)i.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:i,fg:l}}function pO(e,t){e.fcSeg=t}function gO(e){return e.fcSeg||e.parentNode.fcSeg||null}function vO(e,t){return ZM(e,(e=>yO(e,t)))}function yO(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),KI(n)}function xO(e,t){let n=e.map(bO);return n.sort(((e,n)=>function(e,t,n){let r,o;for(r=0;r<n.length;r+=1)if(o=HR(e,t,n[r]),o)return o;return 0}(e,n,t))),n.map((e=>e._seg))}function bO(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:e})}function wO(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:o,ui:a}=e.eventRange,s=a.startEditable;for(let e of r)s=e(s,o,a,t);return s}function kO(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function _O(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function SO(e,t,n,r,o,a,s){let{dateEnv:i,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==o);let h=f.range.start,m=f.range.end,p=a||e.start||e.eventRange.range.start,g=s||e.end||e.eventRange.range.end,v=iM(h).valueOf()===iM(p).valueOf(),y=iM(oM(m,-1)).valueOf()===iM(oM(g,-1)).valueOf();return c&&!u.allDay&&(v||y)?(p=v?h:p,g=y?m:g,d&&u.hasEnd?i.formatRange(p,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:s?null:f.forcedEndTzo}):i.format(p,t,{forcedTzo:a?null:f.forcedStartTzo})):""}function CO(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&EI(t,r.start)}}function jO(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function EO(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function NO(e,t){let{def:n,instance:r}=e.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:a,options:s}=t,{eventInteractive:i}=s;return null==i&&(i=n.interactive,null==i&&(i=Boolean(a.hasHandlers("eventClick")))),i?LR((e=>{a.trigger("eventClick",{el:e.target,event:new uO(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const DO={start:$M,end:$M,allDay:Boolean};function TO(e,t,n){return Object.assign(Object.assign({},AO(e,t,n)),{timeZone:t.timeZone})}function AO(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}class RO extends Error{constructor(e,t){super(e),this.response=t}}let MO;function IO(){return null==MO&&(MO=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),MO}class OO extends hI{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{sI((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{sI((()=>{this.setState({forPrint:!1})}))}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,a=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return IO()||a.push("fc-liquid-hack"),e.children(a,o,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class PO{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}const LO={};class FO extends yA{constructor(e,t){super(e,t),this.handleRefresh=()=>{let e=this.computeTiming();e.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(e.state),this.clearTimeout(),this.setTimeout(e.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let e,t,{props:n,context:r}=this,o=r.nowManager.getDateMarker(),{nowIndicatorSnap:a}=r.options;return"auto"===a&&(a=/year|month|week|day/.test(n.unit)||1===(n.unitValue||1)),a?(e=r.dateEnv.startOf(o,n.unit),t=r.dateEnv.add(e,GR(1,n.unit)).valueOf()-o.valueOf()):(e=o,t=6e4),t=Math.min(864e5,t),{state:{nowDate:e,todayRange:zO(e)},waitMs:t}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout((()=>{const e=this.computeTiming();this.setState(e.state,(()=>{this.setTimeout(e.waitMs)}))}),e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function zO(e){let t=iM(e);return{start:t,end:rM(t,1)}}FO.contextType=dI;class HO{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:o}=this.getCurrentData(),a=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(let e in r)a.push(e);for(t=0;t<a.length;t+=1)if(n=r[a[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=GR(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),IM(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),IM(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),o=function(e,t,n){let r=function(e,t){let{refined:n,extra:r}=UM(e,DO),o=n.start?t.createMarkerMeta(n.start):null,a=n.end?t.createMarkerMeta(n.end):null,{allDay:s}=n;return null==s&&(s=o&&o.isTimeUnspecified&&(!a||a.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:a?a.marker:null},allDay:s},r)}(e,t),{range:o}=r;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}(n,r.dateEnv,GR({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),function(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},function(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,o=t.dateEnv,Object.assign(Object.assign({},AO(r.range,o,r.allDay)),{allDay:r.allDay}))),n}(e,n)),{jsEvent:null,view:n.viewApi||n.calendarApi.view}))}(o,0,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof uO){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:WI({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof dO)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=QM(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let o=FI(e,n,r,!1);if(o){let e=new uO(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:WI(o)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:fO(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let o in n){let a=n[o];if(a.publicId===e){if(a.recurringDef)return new uO(t,a,null);for(let e in r){let n=r[e];if(n.defId===a.defId)return new uO(t,a,n)}}}return null}getEvents(){let e=this.getCurrentData();return hO(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new dO(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new dO(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof dO)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=XI(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new dO(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=GR(e);t&&this.trigger("_scrollRequest",{time:t})}}function BO(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}const VO={defs:{},instances:{}};class WO{constructor(){this.getKeysForEventDefs=xM(this._getKeysForEventDefs),this.splitDateSelection=xM(this._splitDateSpan),this.splitEventStore=xM(this._splitEventStore),this.splitIndividualUi=xM(this._splitIndividualUi),this.splitEventDrag=xM(this._splitInteraction),this.splitEventResize=xM(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),a=this.splitEventStore(e.eventStore,n),s=this.splitEventDrag(e.eventDrag),i=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=ZM(t,((e,t)=>this.eventUiBuilders[t]||xM(UO)));for(let n in t){let c=t[n],d=a[n]||VO,u=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:d,eventUiBases:u(e.eventUiBases[""],c.ui,o[n]),eventSelection:d.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[n]||null,eventResize:i[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return ZM(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,o={};for(let e in n)for(let r of t[e])o[r]||(o[r]={defs:{},instances:{}}),o[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])o[r]&&(o[r].instances[e]=n)}return o}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let o of t[r])n[o]||(n[o]={}),n[o][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),a=r=>{t[r]||(t[r]={affectedEvents:n[r]||VO,mutatedEvents:o[r]||VO,isEvent:e.isEvent})};for(let e in n)a(e);for(let e in o)a(e)}return t}}function UO(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let o={"":KI(r)};return n&&Object.assign(o,n),o}function $O(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&(!r.activeRange||!EI(r.activeRange,e))),isOther:Boolean(r&&!EI(r.currentRange,e)),isToday:Boolean(t&&EI(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function qO(e,t){let n=["fc-day",`fc-day-${tM[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const GO=IM({year:"numeric",month:"long",day:"numeric"}),YO=IM({week:"long"});function ZO(e,t,n="day",r=!0){const{dateEnv:o,options:a,calendarApi:s}=e;let i=o.format(t,"week"===n?YO:GO);if(a.navLinks){let e=o.toDate(t);const l=e=>{let r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(s,o.toDate(t),e):("string"==typeof r&&(n=r),s.zoomTo(t,n))};return Object.assign({title:VR(a.navLinkHint,[i,e],i),"data-navlink":""},r?PR(l):{onClick:l})}return{"aria-label":i}}let KO;class QO{constructor(e,t,n,r){this.els=t;let o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return JO(this.tops||[],e.tops||[])&&JO(this.bottoms||[],e.bottoms||[])&&JO(this.lefts||[],e.lefts||[])&&JO(this.rights||[],e.rights||[])}}function JO(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class XO extends hI{constructor(){super(...arguments),this.uid=zR()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!DR(e,".fc-event-mirror")}isValidDateDownEl(e){return!(DR(e,".fc-event:not(.fc-bg-event)")||DR(e,".fc-more-link")||DR(e,"a[data-navlink]")||DR(e,".fc-popover"))}}class eP{constructor(e){this.timeZoneName=e}}class tP{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const r=Object.assign(Object.assign({},t),{span:oP(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,o=t.span;r.start<o.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:o.start}},n),r.end>o.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(aP(r,t.level,t.levelCoord),aP(n,t.level,[e])):aP(n[t.level],t.lateral,e),this.stackCnts[rP(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:o}=this,a=t.length,s=0,i=-1,l=-1,c=null,d=0;for(let u=0;u<a;u+=1){const a=t[u];if(!r&&a>=s+this.getEntryThickness(e))break;let f,h=n[u],m=sP(h,e.span.start,nP),p=m[0]+m[1];for(;(f=h[p])&&f.span.start<e.span.end;){let e=a+this.getEntryThickness(f);e>s&&(s=e,c=f,i=u,l=p),e===s&&(d=Math.max(d,o[rP(f)]+1)),p+=1}}let u=0;if(c)for(u=i+1;u<a&&t[u]<s;)u+=1;let f=-1;return u<a&&t[u]===s&&(f=sP(n[u],e.span.end,nP)[0]),{touchingLevel:i,touchingLateral:l,touchingEntry:c,stackCnt:d,levelCoord:s,level:u,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let o=0;o<n;o+=1){let n=e[o],a=t[o];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:a}))}return r}}function nP(e){return e.span.end}function rP(e){return e.index+":"+e.span.start}function oP(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function aP(e,t,n){e.splice(t,0,n)}function sP(e,t,n){let r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){let a=Math.floor(r+(o-r)/2),s=n(e[a]);if(t<s)o=a;else{if(!(t>s))return[a,1];r=a+1}}return[r,0]}Boolean;const iP="fc-col-header-cell";function lP(e){return e.text}class cP extends hI{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:o}=this,{date:a,dateProfile:s}=o,i=$O(a,o.todayRange,null,s),l=[iP].concat(qO(i,n)),c=e.format(a,o.dayHeaderFormat),d=!i.isDisabled&&o.colCnt>1?ZO(this.context,a):{},u=e.toDate(a);e.namedTimeZoneImpl&&(u=oM(u,36e5));let f=Object.assign(Object.assign(Object.assign({date:u,view:r},o.extraRenderProps),{text:c}),i);return uA(bI,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":i.isDisabled?void 0:vM(a)},o.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:lP,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>uA("div",{className:"fc-scrollgrid-sync-inner"},!i.isDisabled&&uA(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]}))))}}const dP=IM({weekday:"long"});class uP extends hI{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:o}=this.context,a=rM(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},i=t.format(a,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:r}),e.extraRenderProps),{text:i});return uA(bI,{elTag:"th",elClasses:[iP,...qO(s,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:lP,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(n=>uA("div",{className:"fc-scrollgrid-sync-inner"},uA(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(a,dP)}}))))}}class fP extends hI{constructor(){super(...arguments),this.createDayHeaderFormatter=xM(hP)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return uA(FO,{unit:"day"},((e,s)=>uA("tr",{role:"row"},o&&o("day"),t.map((e=>r?uA(cP,{key:e.toISOString(),date:e,dateProfile:n,todayRange:s,colCnt:t.length,dayHeaderFormat:a}):uA(uP,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a}))))))}}function hP(e,t,n){return e||function(e,t){return IM(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}class mP{constructor(e,t){let n=e.start,{end:r}=e,o=[],a=[],s=-1;for(;n<r;)t.isHiddenDay(n)?o.push(s+.5):(s+=1,o.push(s),a.push(n)),n=rM(n,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(rM(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return r=Math.ceil(r),o=Math.floor(o),r<=o?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(aM(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class pP{constructor(e,t){let n,r,o,{dates:a}=e;if(t){for(r=a[0].getUTCDay(),n=1;n<a.length&&a[n].getUTCDay()!==r;n+=1);o=Math.ceil(a.length/n)}else o=1,n=a.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:o}=n,a=e;for(;a<=o;){let s=Math.floor(a/t),i=Math.min((s+1)*t,o+1);r.push({row:s,firstCol:a%t,lastCol:(i-1)%t,isStart:n.isStart&&a===e,isEnd:n.isEnd&&i-1===o}),a=i}}return r}}class gP{constructor(){this.sliceBusinessHours=xM(this._sliceBusinessHours),this.sliceDateSelection=xM(this._sliceDateSpan),this.sliceEventStore=xM(this._sliceEventStore),this.sliceEventDrag=xM(this._sliceInteraction),this.sliceEventResize=xM(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...o){let{eventUiBases:a}=e,s=this.sliceEventStore(e.eventStore,a,t,n,...o);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,a,r,...o),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...o),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,t,n,...o),eventResize:this.sliceEventResize(e.eventResize,a,t,n,...o),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...o){return this._sliceDateSpan({range:{start:e,end:oM(e,1)},allDay:!1},t,n,{},r,...o)}_sliceBusinessHours(e,t,n,r,...o){return e?this._sliceEventStore(MI(e,vP(t,Boolean(n)),r),{},t,n,...o).bg:[]}_sliceEventStore(e,t,n,r,...o){if(e){let a=mO(e,t,vP(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...o){if(!e)return null;let a=mO(e.mutatedEvents,t,vP(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,o,...a){if(!e)return[];let s=vP(t,Boolean(n)),i=jI(e.range,s);if(i){let t=function(e,t,n){let r=zI({editable:!1},n),o=BI(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:yO(o,t),instance:RI(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:i}),r,o),n=this.sliceRange(e.range,...a);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:rM(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function vP(e,t){let n=e.activeRange;return t?n:{start:oM(n.start,e.slotMinTime.milliseconds),end:oM(n.end,e.slotMaxTime.milliseconds-864e5)}}const yP=/^(visible|hidden)$/;class xP extends hI{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,mI(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),uA("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(yP.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(yP.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return yP.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return yP.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class bP{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,o=!1,a=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,a=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(t)),a&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return function(e,t=0,n,r=1){let o=[];null==n&&(n=Object.keys(e).length);for(let a=t;a<n;a+=r){let t=e[a];void 0!==t&&o.push(t)}return o}(this.currentMap,e,t,n)}getAll(){return QM(this.currentMap)}}function wP(e,t){return e.liquid&&t.liquid}function kP(e,t){return eM(e,t,JM)}function _P(e,t){let n=[];for(let r of e){let e=r.span||1;for(let o=0;o<e;o+=1)n.push(uA("col",{style:{width:"shrink"===r.width?SP(t):r.width||"",minWidth:r.minWidth||""}}))}return uA("colgroup",{},...n)}function SP(e){return null==e?4:e}function CP(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function jP(e){return uA("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function EP(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function NP(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class DP extends hI{constructor(){super(...arguments),this.processCols=xM((e=>e),kP),this.renderMicroColGroup=xM(_P),this.scrollerRefs=new bP,this.scrollerElRefs=new bP(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],o=this.processCols(e.cols),a=this.renderMicroColGroup(o,t.shrinkWidth),s=function(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(e.liquid,n);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let i,l=r.length,c=0,d=[],u=[],f=[];for(;c<l&&"header"===(i=r[c]).type;)d.push(this.renderSection(i,a,!0)),c+=1;for(;c<l&&"body"===(i=r[c]).type;)u.push(this.renderSection(i,a,!1)),c+=1;for(;c<l&&"footer"===(i=r[c]).type;)f.push(this.renderSection(i,a,!0)),c+=1;let h=!IO();const m={role:"rowgroup"};return uA("table",{role:"grid",className:s.join(" "),style:{height:e.height}},Boolean(!h&&d.length)&&uA("thead",m,...d),Boolean(!h&&u.length)&&uA("tbody",m,...u),Boolean(!h&&f.length)&&uA("tfoot",m,...f),h&&uA("tbody",m,...d,...u,...f))}renderSection(e,t,n){return"outerContent"in e?uA(hA,{key:e.key},e.outerContent):uA("tr",{key:e.key,role:"presentation",className:CP(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:i}=this.state,l=function(e,t){return null!=t.maxHeight||wP(e,t)}(o,e),c=wP(o,e),d=o.liquid?a?"scroll":l?"auto":"hidden":"visible",u=e.key,f=function(e,t,n,r){let{expandRows:o}=n;return"function"==typeof t.content?t.content(n):uA("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,uA(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===s[u]?null:s[u],clientHeight:void 0!==i[u]?i[u]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return uA(r?"th":"td",{ref:n.elRef,role:"presentation"},uA("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},uA(xP,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&mI(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function(e){for(let t of e)if("shrink"===t.width)return!0;return!1}(this.props.cols)?function(e){let t=function(e){let t=e instanceof HTMLElement?[e]:e,n=[];for(let e=0;e<t.length;e+=1){let r=t[e].querySelectorAll(".fc-scrollgrid-shrink");for(let e=0;e<r.length;e+=1)n.push(r[e])}return n}(e),n=0;for(let e of t)n=Math.max(n,UR(e));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=(KO||(KO=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=function(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}(e);return document.body.removeChild(e),t}()),KO),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,o={},a={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let s=t.key,i=n.currentMap[s];if(i){let t=i.parentNode;o[s]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),a[s]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:a}}}DP.addStateEquality({scrollerClientWidths:JM,scrollerClientHeights:JM});class TP extends hI{constructor(){super(...arguments),this.buildPublicEvent=xM(((e,t,n)=>new uO(e,t,n))),this.handleEl=e=>{this.el=e,mI(this.props.elRef,e),e&&pO(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:o}=r,{ui:a}=o,s={event:this.buildPublicEvent(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&wO(r,t),isStartResizable:!e.disableResizing&&kO(r,t),isEndResizable:!e.disableResizing&&_O(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return uA(bI,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...jO(s),...r.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&pO(this.el,this.props.seg)}}class AP extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:o}=r.eventRange,a=SO(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return uA(TP,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:NO(r,t),defaultGenerator:RP,timeText:a}),((e,t)=>uA(hA,null,uA(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&uA("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&uA("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function RP(e){return uA("div",{className:"fc-event-main-frame"},e.timeText&&uA("div",{className:"fc-event-time"},e.timeText),uA("div",{className:"fc-event-title-container"},uA("div",{className:"fc-event-title fc-sticky"},e.event.title||uA(hA,null," "))))}AP.addPropsEquality({seg:JM});const MP=e=>uA(dI.Consumer,null,(t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return uA(bI,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)})),IP=IM({day:"numeric"});class OP extends hI{constructor(){super(...arguments),this.refineRenderProps=bM(LP)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return uA(bI,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":vM(e.date)}),elClasses:[...qO(r,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}}function PP(e){return Boolean(e.dayCellContent||gI("dayCellContent",e))}function LP(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:o}=e,a=$O(t,e.todayRange,null,r),s=e.showDayNumber?n.format(t,o?e.monthStartFormat:IP):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},a),{isMonthStart:o,dayNumberText:s}),e.extraRenderProps)}class FP extends hI{render(){let{props:e}=this,{seg:t}=e;return uA(TP,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:zP,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function zP(e){let{title:t}=e.event;return t&&uA("div",{className:"fc-event-title"},e.event.title)}function HP(e){return uA("div",{className:`fc-${e}`})}const BP=e=>uA(dI.Consumer,null,(t=>{let{dateEnv:n,options:r}=t,{date:o}=e,a=r.weekNumberFormat||e.defaultFormat,s={num:n.computeWeekNumber(o),text:n.format(o,a),date:o};return uA(bI,{elRef:e.elRef,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:s,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:VP,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}));function VP(e){return e.text}class WP extends hI{constructor(){super(...arguments),this.state={titleId:IR()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&mI(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=function(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,o=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return function(e,t){var n=uA(cR,{__v:e,i:t});return n.containerInfo=t,n}(uA("div",Object.assign({},n.extraAttrs,{id:n.id,className:o.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),uA("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},uA("span",{className:"fc-popover-title",id:r.titleId},n.title),uA("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),uA("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,o=function(e){let t=function(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}(e),n=e.getBoundingClientRect();for(let e of t){let t=BO(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(o){let a=r.getBoundingClientRect(),s=n?DR(t,".fc-scrollgrid").getBoundingClientRect().top:o.top,i=e?o.right-a.width:o.left;s=Math.max(s,10),i=Math.min(i,document.documentElement.clientWidth-10-a.width),i=Math.max(i,10);let l=r.offsetParent.getBoundingClientRect();!function(e,t){for(let n in t)RR(e,n,t[n])}(r,{top:s-l.top,left:i-l.left})}}}class UP extends XO{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:o,dateProfile:a}=n,s=t.format(r,e.dayPopoverFormat);return uA(OP,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:o},((t,r,o)=>uA(WP,{elRef:o.ref,id:n.id,title:s,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},PP(e)&&uA(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:o,props:a}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class $P extends hI{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:IR()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&mI(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,o=GP(t).start;function a(e){let{def:t,instance:r,range:o}=e.eventRange;return{event:new uO(n,t,r),start:n.dateEnv.toDate(o.start),end:n.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:o,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(o,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return uA(dI.Consumer,null,(n=>{let{viewApi:r,options:o,calendarApi:a}=n,{moreLinkText:s}=o,{moreCnt:i}=e,l=GP(e),c="function"==typeof s?s.call(a,i):`+${i} ${s}`,d=VR(o.moreLinkHint,[i],c),u={num:i,shortText:`+${i}`,text:c,view:r};return uA(hA,null,Boolean(e.moreCnt)&&uA(bI,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),PR(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||qP,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&uA(UP,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=DR(this.linkEl,".fc-view-harness"))}}function qP(e){return e.text}function GP(e){if(e.allDayDate)return{start:e.allDayDate,end:rM(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:YP(t),end:(n=t,n.reduce(KP).eventRange.range.end)};var n}function YP(e){return e.reduce(ZP).eventRange.range.start}function ZP(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function KP(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class QP{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class JP extends QP{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}const XP=[],eL={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},tL=Object.assign(Object.assign({},eL),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function nL(e){let t=e.length>0?e[0].code:"en",n=XP.concat(e),r={en:tL};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function rL(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||tL;return oL(e,n,r)}(e,t):oL(e.code,[e.code],e)}function oL(e,t,n){let r=GM([eL,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function aL(e){return{id:zR(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}class sL extends aI{}function iL(e,t,n,r){if(t[e])return t[e];let o=function(e,t,n,r){let o=n[e],a=r[e],s=e=>o&&null!==o[e]?o[e]:a&&null!==a[e]?a[e]:null,i=s("component"),l=s("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=iL(l,t,n,r)}return!i&&c&&(i=c.component),i?{type:e,component:i,defaults:Object.assign(Object.assign({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),a?a.rawOptions:{})}:null}(e,t,n,r);return o&&(t[e]=o),o}function lL(e){return ZM(e,cL)}function cL(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=dL(t):!n||n.prototype instanceof hI||(n=dL(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function dL(e){return t=>uA(dI.Consumer,null,(n=>uA(bI,{elTag:"div",elClasses:_I(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function uL(e,t,n,r){let o=lL(e),a=lL(t.views),s=function(e,t){let n,r={};for(n in e)iL(n,r,e,t);for(n in t)iL(n,r,e,t);return r}(o,a);return ZM(s,(e=>function(e,t,n,r,o){let a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,s=null,i="",l="",c={};if(a&&(s=function(e){let t=JSON.stringify(e),n=fL[t];return void 0===n&&(n=GR(e),fL[t]=n),n}(a),s)){let e=XR(s);i=e.unit,1===e.value&&(l=i,c=t[i]?t[i].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},u=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:s,durationUnit:i,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(o)||e.defaults.buttonText||d(PM)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(o)||e.defaults.buttonHint||u(PM)}}(e,a,t,n,r)))}sL.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},sL.prototype.baseIconClass="fc-icon",sL.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},sL.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},sL.prototype.iconOverrideOption="buttonIcons",sL.prototype.iconOverrideCustomButtonOption="icon",sL.prototype.iconOverridePrefix="fc-icon-";let fL={};function hL(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function mL(e,t,n,r){let o={};for(let e of t)o[e.sourceId]=e;return n&&(o=pL(o,n,r)),Object.assign(Object.assign({},e),o)}function pL(e,t,n){return gL(e,YM(e,(e=>function(e,t,n){return xL(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,n))),t,!1,n)}function gL(e,t,n,r,o){let a={};for(let s in e){let i=e[s];t[s]?a[s]=vL(i,n,r,o):a[s]=i}return a}function vL(e,t,n,r){let{options:o,calendarApi:a}=r,s=r.pluginHooks.eventSourceDefs[e.sourceDefId],i=zR();return s.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:s}=n;o.eventSourceSuccess&&(s=o.eventSourceSuccess.call(a,s,n.response)||s),e.success&&(s=e.success.call(a,s,n.response)||s),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:s})}),(n=>{let s=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(a,n),s=!0),e.failure&&(e.failure(n),s=!0),s||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:i})}function yL(e,t){return YM(e,(e=>xL(e,t)))}function xL(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function bL(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function wL(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function kL(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function _L(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function SL(e,t,n,r,o){return{header:e.headerToolbar?CL(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?CL(e.footerToolbar,e,t,n,r,o):null}}function CL(e,t,n,r,o,a){let s={},i=[],l=!1;for(let c in e){let d=jL(e[c],t,n,r,o,a);s[c]=d.widgets,i.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:s,viewsWithButtons:i,hasTitle:l}}function jL(e,t,n,r,o,a){let s="rtl"===t.direction,i=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},u=t.buttonHints||{},f=e?e.split(" "):[],h=[],m=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return m=!0,{buttonName:e};let n,f,p,g,v,y;if(n=i[e])p=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,s))||(v=n.text),y=n.hint||n.text;else if(f=o[e]){h.push(e),p=()=>{a.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,s))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=VR(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(a[e])if(p=()=>{a[e]()},(v=l[e])||(g=r.getIconClass(e,s))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=VR(d[t]||u[t],[c.year||"year","year"],c[e])}else y=t=>VR(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:p,buttonIcon:g,buttonText:v,buttonHint:y}})))),viewsWithButtons:h,hasTitle:m}}class EL{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const NL=aL({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),DL=aL({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;!function(e,n,r){let o=!1,a=function(e){o||(o=!0,t({rawEvents:e}))},s=function(e){o||(o=!0,r(e))},i=e(a,s);i&&"function"==typeof i.then&&i.then(a,s)}(e.eventSource.meta.bind(null,TO(e.range,r)),0,n)}}]}),TL={method:String,extraParams:$M,startParam:String,endParam:String,timeZoneParam:String};let AL={parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,o=function(e,t,n){let r,o,a,s,{dateEnv:i,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),o=e.endParam,null==o&&(o=l.endParam),a=e.timeZoneParam,null==a&&(a=l.timeZoneParam),s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,s),c[r]=i.formatIso(t.start),c[o]=i.formatIso(t.end),"local"!==i.timeZone&&(c[a]=i.timeZone),c}(r,e.range,e.context);(function(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new RO("Failure parsing JSON",e)}));throw new RO("Request failed",e)}))})(r.method,r.url,o).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const RL={daysOfWeek:$M,startTime:GR,endTime:GR,duration:GR,startRecur:$M,endRecur:$M};function ML(e,t){let n=QM(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const IL=[NL,DL,aL({name:"json-event-source",eventSourceRefiners:TL,eventSourceDefs:[AL]}),aL({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let o,a={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t};return e.duration&&(o=e.duration),!o&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,o={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:o,typeData:a}}var n,r;return null},expand(e,t,n){let r=jI(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r,o){let a=e?KM(e):null,s=iM(o.start),i=o.end,l=[];for(t&&(t.milliseconds<0?i=rM(i,1):t.milliseconds>=864e5&&(s=rM(s,-1)));s<i;){let e;a&&!a[s.getUTCDay()]||(e=t?r.add(s,t):s,l.push(r.createMarker(n.toDate(e)))),s=rM(s,1)}return l}(e.daysOfWeek,e.startTime,e.dateEnv,n,r):[]}}],eventRefiners:RL}),aL({name:"change-handler",optionChangeHandlers:{events(e,t){ML([e],t)},eventSources:ML}}),aL({name:"misc",isLoadingFuncs:[e=>hL(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},TO(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",hO(e,t))}}})];class OL{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new ER(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function PL(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,IM(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=sM(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class LL{constructor(){this.resetListeners=new Set}handleInput(e,t){const n=this.dateEnv;if(e!==n&&("function"==typeof t?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(const e of this.resetListeners.values())e()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class FL{constructor(e){this.computeCurrentViewData=xM(this._computeCurrentViewData),this.organizeRawLocales=xM(nL),this.buildLocale=xM(rL),this.buildPluginHooks=function(){let e,t=[],n=[];return(r,o)=>(e&&eM(r,t)&&eM(o,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(let l of e){const e=l.name,c=n[e];void 0===c?(n[e]=l.id,o(l.deps),i=l,r={premiumReleaseDate:(t=(s=r).premiumReleaseDate,a=i.premiumReleaseDate,void 0===t?a:void 0===a?t:new Date(Math.max(t.valueOf(),a.valueOf()))),reducers:s.reducers.concat(i.reducers),isLoadingFuncs:s.isLoadingFuncs.concat(i.isLoadingFuncs),contextInit:s.contextInit.concat(i.contextInit),eventRefiners:Object.assign(Object.assign({},s.eventRefiners),i.eventRefiners),eventDefMemberAdders:s.eventDefMemberAdders.concat(i.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},s.eventSourceRefiners),i.eventSourceRefiners),isDraggableTransformers:s.isDraggableTransformers.concat(i.isDraggableTransformers),eventDragMutationMassagers:s.eventDragMutationMassagers.concat(i.eventDragMutationMassagers),eventDefMutationAppliers:s.eventDefMutationAppliers.concat(i.eventDefMutationAppliers),dateSelectionTransformers:s.dateSelectionTransformers.concat(i.dateSelectionTransformers),datePointTransforms:s.datePointTransforms.concat(i.datePointTransforms),dateSpanTransforms:s.dateSpanTransforms.concat(i.dateSpanTransforms),views:Object.assign(Object.assign({},s.views),i.views),viewPropsTransformers:s.viewPropsTransformers.concat(i.viewPropsTransformers),isPropsValid:i.isPropsValid||s.isPropsValid,externalDefTransforms:s.externalDefTransforms.concat(i.externalDefTransforms),viewContainerAppends:s.viewContainerAppends.concat(i.viewContainerAppends),eventDropTransformers:s.eventDropTransformers.concat(i.eventDropTransformers),calendarInteractions:s.calendarInteractions.concat(i.calendarInteractions),componentInteractions:s.componentInteractions.concat(i.componentInteractions),themeClasses:Object.assign(Object.assign({},s.themeClasses),i.themeClasses),eventSourceDefs:s.eventSourceDefs.concat(i.eventSourceDefs),cmdFormatter:i.cmdFormatter||s.cmdFormatter,recurringTypes:s.recurringTypes.concat(i.recurringTypes),namedTimeZonedImpl:i.namedTimeZonedImpl||s.namedTimeZonedImpl,initialView:s.initialView||i.initialView,elementDraggingImpl:s.elementDraggingImpl||i.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},s.optionChangeHandlers),i.optionChangeHandlers),scrollGridImpl:i.scrollGridImpl||s.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},s.listenerRefiners),i.listenerRefiners),optionRefiners:Object.assign(Object.assign({},s.optionRefiners),i.optionRefiners),propSetHandlers:Object.assign(Object.assign({},s.propSetHandlers),i.propSetHandlers)}):c!==l.id&&console.warn(`Duplicate plugin '${e}'`)}var t,a,s,i}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e)}(),this.buildDateEnv=xM(zL),this.buildTheme=xM(HL),this.parseToolbars=xM(SL),this.buildViewSpecs=xM(uL),this.buildDateProfileGenerator=bM(BL),this.buildViewApi=xM(VL),this.buildViewUiProps=bM($L),this.buildEventUiBySource=xM(WL,JM),this.buildEventUiBases=xM(UL),this.parseContextBusinessHours=bM(GL),this.buildTitle=xM(PL),this.nowManager=new LL,this.emitter=new aO,this.actionRunner=new OL(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause(),this.nowManager=new LL;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let a={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s=function(e,t,n){let r=e.initialDate;return null!=r?t.createMarker(r):n.getDateMarker()}(n.calendarOptions,n.dateEnv,this.nowManager),i=o.dateProfileGenerator.build(s);EI(i.activeRange,s)||(s=i.currentRange.start);for(let e of n.pluginHooks.contextInit)e(a);let l=function(e,t,n){let r=t?t.activeRange:null;return mL({},function(e,t){let n=eO(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let e of r){let r=XI(e,t,n);r&&o.push(r)}return o}(e,n),r,n)}(n.calendarOptions,i,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:i,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,d));qL(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,o=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),a=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),s=function(e,t){return"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType),e}(n.currentViewType,e),i=this.computeCurrentViewData(s,a,t.optionOverrides,o);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(i.options);let l={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==i.dateProfileGenerator&&(d=i.dateProfileGenerator.build(c)),c=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(c,e),d=function(e,t,n,r){let o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(o=r.buildPrev(e,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o}return e}(d,e,c,i.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&EI(d.currentRange,c)||(c=d.currentRange.start);let u=function(e,t,n,r){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return mL(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return a=e,s=t.sourceId,YM(a,(e=>e.sourceId!==s));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?pL(e,o,r):e;case"FETCH_EVENT_SOURCES":return gL(e,t.sourceIds?KM(t.sourceIds):yL(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let o=e[t];return o&&n===o.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})}):e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var a,s}(n.eventSources,e,d,l),f=function(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,a){if(t&&n===t.latestFetchId){let n=VI(tO(o,t,a),t,a);return r&&(n=MI(n,r,a)),UI(oO(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"RESET_RAW_EVENTS":return function(e,t,n,r,o){const{defIdMap:a,instanceIdMap:s}=function(e){const{defs:t,instances:n}=e,r={},o={};for(let e in t){const n=t[e],{publicId:o}=n;o&&(r[o]=e)}for(let e in n){const r=t[n[e].defId],{publicId:a}=r;a&&(o[a]=e)}return{defIdMap:r,instanceIdMap:o}}(e);return MI(VI(tO(n,t,o),t,o,!1,a,s),r,o)}(e,n[t.sourceId],t.rawEvents,r.activeRange,o);case"ADD_EVENTS":return function(e,t,n,r){return n&&(t=MI(t,n,r)),UI(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return UI(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?MI(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,o={},a={};for(let e in n)t.defs[e]||(o[e]=n[e]);for(let e in r)!t.instances[e]&&o[r[e].defId]&&(a[e]=r[e]);return{defs:o,instances:a}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return oO(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return $I(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}(n.eventStore,e,u,d,l),h=hL(u)&&!i.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:m,selectionConfig:p}=this.buildViewUiProps(l),g=this.buildEventUiBySource(u),v={dynamicOptionOverrides:o,currentViewType:s,currentDate:c,dateProfile:d,eventSources:u,eventStore:f,renderableEventStore:h,selectionConfig:p,eventUiBases:this.buildEventUiBases(h.defs,m,g),businessHours:this.parseContextBusinessHours(l),dateSelection:bL(n.dateSelection,e),eventSelection:wL(n.eventSelection,e),eventDrag:kL(n.eventDrag,e),eventResize:_L(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of a.pluginHooks.reducers)Object.assign(v,t(n,e,y));let x=qL(n,l),b=qL(v,l);!x&&b?r.trigger("loading",!0):x&&!b&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,o.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),o),t),s=r.pluginHooks.optionChangeHandlers,i=n&&n.calendarOptions,l=r.calendarOptions;if(i&&i!==l){i.timeZone!==l.timeZone&&(t.eventSources=a.eventSources=function(e,t,n){let r=t?t.activeRange:null;return gL(e,yL(e,n),r,!0,n)}(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=rO(a.eventStore,n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=rO(a.renderableEventStore,n.dateEnv,a.dateEnv));for(let e in s)-1===this.optionsForHandling.indexOf(e)&&i[e]===l[e]||s[e](l[e],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:o,localeDefaults:a,availableLocaleData:s,extra:i}=this.processRawCalendarOptions(e,t);YL(i);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,o,s,r.defaultRangeSeparator),c=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),d=this.buildTheme(r,o),u=this.parseToolbars(r,this.stableOptionOverrides,d,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:o,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=WM([PM,e,t]),o=this.organizeRawLocales(n),a=o.map,s=this.buildLocale(r||o.defaultCode,a).options,i=this.buildPluginHooks(e.plugins||[],IL),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OM),LM),FM),i.listenerRefiners),i.optionRefiners),c={},d=WM([PM,s,e,t]),u={},f=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,m=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===f[e]||zM[e]&&e in f&&zM[e](f[e],d[e]))?u[e]=h[e]:l[e]?(u[e]=l[e](d[e]),m=!0):c[e]=f[e];return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:i,availableLocaleData:o,localeDefaults:s,extra:c}}_computeCurrentViewData(e,t,n,r){let o=t.viewSpecs[e];if(!o)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r);return YL(s),this.nowManager.handleInput(t.dateEnv,a.now),{viewSpec:o,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,o){let a=WM([PM,e.optionDefaults,n,r,e.optionOverrides,o]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OM),LM),FM),VM),t.listenerRefiners),t.optionRefiners),i={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let e in a)a[e]===l[e]||zM[e]&&zM[e](a[e],l[e])?i[e]=c[e]:(a[e]===this.currentCalendarOptionsInput[e]||zM[e]&&zM[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(i[e]=this.currentCalendarOptionsRefined[e]):s[e]?i[e]=s[e](a[e]):u[e]=a[e],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=i),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function zL(e,t,n,r,o,a,s,i){let l=rL(t||s.defaultCode,s.map);return new oI({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:a.cmdFormatter,defaultSeparator:i})}function HL(e,t){return new(t.themeClasses[e.themeSystem]||sL)(e)}function BL(e){return new(e.dateProfileGeneratorClass||AI)(e)}function VL(e,t,n){return new EL(e,t,n)}function WL(e){return ZM(e,(e=>e.ui))}function UL(e,t,n){let r={"":t};for(let t in e){let o=e[t];o.sourceId&&n[o.sourceId]&&(r[t]=n[o.sourceId])}return r}function $L(e){let{options:t}=e;return{eventUiSingleBase:ZI({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:ZI({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function qL(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function GL(e){return t=e.options.businessHours,n=e,VI(function(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[],t=t.map((e=>Object.assign(Object.assign({},sO),e))),t}(t),null,n);var t,n}function YL(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class ZL extends hI{render(){return uA("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((e=>this.renderWidgetGroup(e))))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let a of e){let{buttonName:e,buttonClick:s,buttonText:i,buttonIcon:l,buttonHint:c}=a;if("title"===e)o=!1,r.push(uA("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,a=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];o&&d.push(n.getClass("buttonActive")),r.push(uA("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:a,"aria-pressed":o,className:d.join(" "),onClick:s},i||(l?uA("span",{className:l,role:"img"}):"")))}}return r.length>1?uA("div",{className:o&&n.getClass("buttonGroup")||""},...r):r[0]}}class KL extends hI{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,a=n.sectionWidgets,s=a.center;return a.left?(o=!0,e=a.left):e=a.start,a.right?(o=!0,t=a.right):t=a.end,uA("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return uA(ZL,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class QL extends hI{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,mI(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return n?null!==t.availableWidth?o=t.availableWidth/n:a=1/n*100+"%":o=e.height||"",uA("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class JL extends PO{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,o=gO(t);if(o&&n.isValidSegDownEl(e.target)){let a=DR(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new uO(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},this.destroy=OR(e.el,"click",".fc-event",this.handleSegClick)}}class XL extends PO{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{gO(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let o;return OR(e,"mouseover",".fc-event",((e,t)=>{if(t!==o){o=t,n(e,t);let a=e=>{o=null,r(e,t),t.removeEventListener("mouseleave",a)};t.addEventListener("mouseleave",a)}}))}(e.el,0,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:o}=r,a=gO(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new uO(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:o.viewApi})}}class eF extends fI{constructor(){super(...arguments),this.buildViewContext=xM(uI),this.buildViewPropTransformers=xM(nF),this.buildToolbarProps=xM(tF),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:IR()},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[JL,XL].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=r,LO[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete LO[e.uid]},this.resizeRunner=new ER((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,o=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=r.height?o=!0:null!=r.contentHeight?a=r.contentHeight:e=Math.max(r.aspectRatio,.5);let s=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),i=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return uA(dI.Provider,{value:s},uA(FO,{unit:"day"},(r=>{let s=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,r,t.viewTitle);return uA(hA,null,n.header&&uA(KL,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:i},s)),uA(QL,{liquid:o,height:a,aspectRatio:e,labeledById:i},this.renderView(t),this.buildAppendContent()),n.footer&&uA(KL,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},s)))})))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return uA(hA,{},...e.pluginHooks.viewContainerAppends.map((t=>t(e))))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of o)Object.assign(r,t.transform(r,e));return uA(n.component,Object.assign({},r))}}function tF(e,t,n,r,o,a){let s=n.build(o,void 0,!1),i=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!EI(t.currentRange,o),isPrevEnabled:i.isValid,isNextEnabled:l.isValid}}function nF(e){return e.map((e=>new e))}class rF extends HO{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;sI((()=>{OA(uA(OO,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,o)=>(this.setClassNames(t),this.setHeight(n),uA(xI.Provider,{value:this.customContentRenderId},uA(eF,Object.assign({isHeightAuto:r,forPrint:o},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,OA(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&SR(e.getRootNode())}(e),this.el=e,this.renderRunner=new ER(this.handleRenderRequest),new FL({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){sI((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!eM(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){RR(this.el,"height",e)}}class oF extends XO{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(e,t){let{props:n,context:r}=this,o=[],a=EP(r.options);return e&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),uA(kI,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},uA(DP,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))}renderHScrollLayout(e,t,n,r){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,i=!a.forPrint&&EP(s.options),l=!a.forPrint&&NP(s.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:i,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:jP}]}),uA(kI,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},uA(o,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function aF(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function sF(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function iF(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}const lF=IM({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function cF(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class dF extends hI{render(){let{props:e}=this;return uA(AP,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:lF,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class uF extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,o=SO(r,n.eventTimeFormat||lF,t,!0,e.defaultDisplayEventEnd);return uA(TP,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:NO(e.seg,t),defaultGenerator:fF,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function fF(e){return uA(hA,null,uA("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&uA("div",{className:"fc-event-time"},e.timeText),uA("div",{className:"fc-event-title"},e.event.title||uA(hA,null," ")))}class hF extends hI{constructor(){super(...arguments),this.compileSegs=xM(mF)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return uA($P,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return uA(hA,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return uA("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},cF(t)?uA(uF,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},CO(t,e.todayRange))):uA(dF,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},CO(t,e.todayRange))))})))}})}}function mF(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const pF=IM({week:"narrow"});class gF extends XO{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:IR()},this.handleRootEl=e=>{mI(this.rootElRef,e),mI(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:o,dateEnv:a}=e,{date:s,dateProfile:i}=t;const l=t.showDayNumber&&function(e,t,n){const{start:r,end:o}=t,a=oM(o,-1),s=n.getYear(r),i=n.getMonth(r),l=n.getYear(a),c=n.getMonth(a);return!(s===l&&i===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<o.valueOf())}(s,i.currentRange,a);return uA(OP,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:vF,date:s,dateProfile:i,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},((a,i)=>uA("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&uA(BP,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ZO(e,s,"week"),date:s,defaultFormat:pF}),!i.isDisabled&&(t.showDayNumber||PP(o)||t.forceDayTop)?uA("div",{className:"fc-daygrid-day-top"},uA(a,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ZO(e,s)),{id:n.dayNumberId})})):t.showDayNumber?uA("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},uA("a",{className:"fc-daygrid-day-number"}," ")):void 0,uA("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,uA("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},uA(hF,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),uA("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function vF(e){return e.dayNumberText||uA(hA,null," ")}function yF(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function xF(e){return yF(e)+":"+e.lastCol}function bF(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let o=e.eventRange,a=o.range,s=jI(a,{start:r[t].date,end:rM(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:e.isStart&&s.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===a.end.valueOf()})}class wF extends tP{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[rP(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:r,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:i}=e;if(this.hiddenConsumes&&a){const e=rP(a);if(!o[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},a),{span:oP(a.span,t.span)});o[rP(e)]=!0,r[s][i]=e,n.push(e),this.splitEntry(a,t,n)}else o[e]=!0,n.push(a)}super.handleInvalidInsertion(e,t,n)}}class kF extends XO{constructor(){super(...arguments),this.cellElRefs=new bP,this.frameElRefs=new bP,this.fgElRefs=new bP,this.segHarnessRefs=new bP,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=e.cells.length,a=sF(e.businessHourSegs,o),s=sF(e.bgEventSegs,o),i=sF(this.getHighlightSegs(),o),l=sF(this.getMirrorSegs(),o),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:f}=function(e,t,n,r,o,a,s){let i=new wF((t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return o[n]||1}));i.allowReslicing=!0,i.strictOrder=r,!0===t||!0===n?(i.maxCoord=a,i.hiddenConsumes=!0):"number"==typeof t?i.maxStackCnt=t:"number"==typeof n&&(i.maxStackCnt=n,i.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t],r=xF(n);null!=o[r]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let d=i.addSegs(l),u=i.toRects(),{singleColPlacements:f,multiColPlacements:h,leftoverMargins:m}=function(e,t,n){let r=function(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}(e,n.length),o=[],a=[],s=[];for(let e=0;e<n.length;e+=1){let i=r[e],l=[],c=0,d=0;for(let r of i){let o=t[r.index];l.push({seg:bF(o,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let u=[];c=0,d=0;for(let r of i){let o=t[r.index],a=r.span.end-r.span.start>1,s=r.span.start===e;d+=r.levelCoord-c,c=r.levelCoord+r.thickness,a?(d+=r.thickness,s&&u.push({seg:bF(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):s&&(u.push({seg:bF(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:d}),d=0)}o.push(l),a.push(u),s.push(d)}return{singleColPlacements:o,multiColPlacements:a,leftoverMargins:s}}(u,e,s),p=[],g=[];for(let e of c){h[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)f[t].push({seg:bF(e,t,t+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<s.length;e+=1)p.push(0);for(let t of d){let n=e[t.index],r=t.span;h[r.start].push({seg:bF(n,r.start,r.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)p[e]+=1,f[e].push({seg:bF(n,e,e+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<s.length;e+=1)g.push(m[e]);return{singleColPlacements:f,multiColPlacements:h,moreCnts:p,moreMarginTops:g}}(xO(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return uA("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:d[n],e.todayRange,h),o=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}(l[n],d),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return uA(gF,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:f[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:uA(hA,null,uA(hA,null,r),uA(hA,null,o)),bgContent:uA(hA,null,this.renderFillSegs(i[n],"highlight"),this.renderFillSegs(a[n],"non-business"),this.renderFillSegs(s[n],"bg-event")),minHeight:e.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!JM(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,o,a,s){let{context:i}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,d=1===this.props.cells.length,u=o||a||s,f=[];if(c)for(let e of t){let{seg:t}=e,{instanceId:h}=t.eventRange.instance,m=e.isVisible&&!r[h],p=e.isAbsolute,g="",v="";p&&(i.isRtl?(v=0,g=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(g=0,v=c.rights[t.firstCol]-c.rights[t.lastCol])),f.push(uA("div",{className:"fc-daygrid-event-harness"+(p?" fc-daygrid-event-harness-abs":""),key:yF(t),ref:u?null:this.segHarnessRefs.createRef(xF(t)),style:{visibility:m?"":"hidden",marginTop:p?"":e.marginTop,top:p?e.absoluteTop:"",left:g,right:v}},cF(t)?uA(uF,Object.assign({seg:t,isDragging:o,isSelected:h===l,defaultDisplayEventEnd:d},CO(t,n))):uA(dF,Object.assign({seg:t,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:h===l,defaultDisplayEventEnd:d},CO(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of e){let e=n?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(uA("div",{key:EO(s.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?uA(FP,Object.assign({seg:s},CO(s,r))):HP(t)))}return uA(hA,{},...a)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>r.currentMap[e.key]));if(e.length){let t=this.rootElRef.current,r=new QO(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(r)||this.setState({framePositions:new QO(t,e,!0,!1)})}}const o=this.state.segHeights,a=this.querySegHeights(),s=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}kF.addStateEquality({segHeights:JM});class _F extends XO{constructor(){super(...arguments),this.splitBusinessHourSegs=xM(aF),this.splitBgEventSegs=xM(aF),this.splitFgEventSegs=xM(aF),this.splitDateSelectionSegs=xM(aF),this.splitEventDrag=xM(iF),this.splitEventResize=xM(iF),this.rowRefs=new bP}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),o=this.splitBgEventSegs(e.bgEventSegs,n),a=this.splitFgEventSegs(e.fgEventSegs,n),s=this.splitDateSelectionSegs(e.dateSelectionSegs,n),i=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return uA(FO,{unit:"day"},((t,d)=>uA(hA,null,e.cells.map(((t,u)=>uA(kF,{ref:this.rowRefs.createRef(u),key:t.length?t[0].date.toISOString():u,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:d,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[u],eventSelection:e.eventSelection,bgEventSegs:o[u].filter(SF),fgEventSegs:a[u],dateSelectionSegs:s[u],eventDrag:i[u],eventResize:l[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new QO(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new QO(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,o=n.leftToIndex(e),a=r.topToIndex(t);if(null!=a&&null!=o){let e=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:rM(n,1)}}}function SF(e){return e.eventRange.def.allDay}class CF extends XO{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,o=!0===n||!0===t;o&&!r&&(o=!1,t=null,n=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return uA("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},uA("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,uA("tbody",{role:"presentation"},uA(_F,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=function(e,t){let n;var r;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${r=t.currentDate,r.toISOString().match(/^\d{4}-\d{2}/)[0]}-01"]`)),n||(n=e.querySelector(`[data-date="${vM(t.currentDate)}"]`)),n}(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}class jF extends gP{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class EF extends XO{constructor(){super(...arguments),this.slicer=new jF,this.tableRef={current:null}}render(){let{props:e,context:t}=this;return uA(CF,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}function NF(e,t){let n=new mP(e.renderRange,t);return new pP(n,/year|month|week/.test(e.currentRangeUnit))}_R(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var DF=aL({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends oF{constructor(){super(...arguments),this.buildDayTableModel=xM(NF),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),o=e.dayHeaders&&uA(fP,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),a=t=>uA(EF,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(o,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(o,a)}},dateProfileGeneratorClass:class extends AI{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:o}=this;return function(e){let t,{dateEnv:n,currentRange:r}=e,{start:o,end:a}=r;if(e.snapToWeek&&(o=n.startOfWeek(o),t=n.startOfWeek(a),t.valueOf()!==a.valueOf()&&(a=nM(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(rM(r.end,-1)));a=nM(a,6-Math.ceil(aM(e,a)/7))}return{start:o,end:a}}({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class TF extends hI{constructor(){super(...arguments),this.state={textId:IR()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:o,dayDate:a,todayRange:s}=this.props,{textId:i}=this.state,l=$O(a,s),c=n.listDayFormat?t.format(a,n.listDayFormat):"",d=n.listDaySideFormat?t.format(a,n.listDaySideFormat):"",u=Object.assign({date:t.toDate(a),view:r,textId:i,text:c,sideText:d,navLinkAttrs:ZO(this.context,a),sideNavLinkAttrs:ZO(this.context,a,"day",!1)},l);return uA(bI,{elTag:"tr",elClasses:["fc-list-day",...qO(l,e)],elAttrs:{"data-date":vM(a)},renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:AF,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(t=>uA("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":i},uA(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]}))))}}function AF(e){return uA(hA,null,e.text&&uA("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&uA("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const RF=IM({hour:"numeric",minute:"2-digit",meridiem:"short"});class MF extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:o,eventHeaderId:a,dateHeaderId:s}=e,i=n.eventTimeFormat||RF;return uA(TP,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(e,t){let n=NO(e,t);return uA("a",Object.assign({},n),e.eventRange.def.title)}(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),((e,n)=>uA(hA,null,function(e,t,n,r,o){let{options:a}=n;if(!1!==a.displayEventTime){let s,i=e.eventRange.def,l=e.eventRange.instance,c=!1;if(i.allDay?c=!0:function(e){let t=DI(e);return aM(t.start,t.end)>1}(e.eventRange.range)?e.isStart?s=SO(e,t,n,null,null,l.range.start,e.end):e.isEnd?s=SO(e,t,n,null,null,e.start,l.range.end):c=!0:s=SO(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return uA(bI,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${o}`},renderProps:e,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:IF,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return uA("td",{className:"fc-list-event-time"},s)}return null}(r,i,t,o,s),uA("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},uA("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),uA(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${s}`}}))))}}function IF(e){return e.text}function OF(e){return e.text}function PF(e){let t=iM(e.renderRange.start),n=e.renderRange.end,r=[],o=[];for(;t<n;)r.push(t),o.push({start:t,end:rM(t,1)}),t=rM(t,1);return{dayDates:r,dayRanges:o}}function LF(e){return!1===e?null:IM(e)}_R(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var FF=aL({name:"@fullcalendar/list",optionRefiners:{listDayFormat:LF,listDaySideFormat:LF,noEventsClassNames:$M,noEventsContent:$M,noEventsDidMount:$M,noEventsWillUnmount:$M},views:{list:{component:class extends XO{constructor(){super(...arguments),this.computeDateVars=xM(PF),this.eventStoreToSegs=xM(this._eventStoreToSegs),this.state={timeHeaderId:IR(),eventHeaderId:IR(),dateHeaderIdRoot:IR()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),o=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return uA(kI,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},uA(xP,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return uA(bI,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:OF,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(e=>uA(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:s}=this.state,i=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return uA(FO,{unit:"day"},((e,l)=>{let c=[];for(let n=0;n<i.length;n+=1){let d=i[n];if(d){let i=vM(t[n]),u=s+"-"+i;c.push(uA(TF,{key:i,cellId:u,dayDate:t[n],todayRange:l})),d=xO(d,r.eventOrder);for(let t of d)c.push(uA(MF,Object.assign({key:i+":"+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:u},CO(t,l,e))))}}return uA("table",{className:"fc-list-table "+n.getClass("table")},uA("thead",null,uA("tr",null,uA("th",{scope:"col",id:o},r.timeHint),uA("th",{scope:"col","aria-hidden":!0}),uA("th",{scope:"col",id:a},r.eventHint))),uA("tbody",null,c))}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(mO(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,o,{dateEnv:a}=this.context,{nextDayThreshold:s}=this.context.options,i=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if(r=jI(i,t[n]),r&&(o={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===i.end.valueOf(),dayIndex:n},c.push(o),!o.isEnd&&!l&&n+1<t.length&&i.end<a.add(t[n+1].start,s))){o.end=i.end,o.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});function zF(e,t,n){return vs.fromObject({year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]},{locale:n,zone:t})}function HF(e){let t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){let e=HF(t[2]);return{head:t[1],middle:e,tail:t[3],whole:t[1]+e.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function BF(e,t,n,r){if(e.middle){let o=t(e.head),a=BF(e.middle,t,n,r),s=t(e.tail),i=n(e.head),l=BF(e.middle,t,n,r),c=n(e.tail);if(o===i&&s===c)return o+(a===l?a:a+r+l)+s}let o=t(e.whole),a=n(e.whole);return o===a?o:o+r+a}var VF=aL({name:"@fullcalendar/luxon3",cmdFormatter:function(e,t){let n=HF(e);if(t.end){let e=zF(t.start.array,t.timeZone,t.localeCodes[0]),r=zF(t.end.array,t.timeZone,t.localeCodes[0]);return BF(n,e.toFormat.bind(e),r.toFormat.bind(r),t.defaultSeparator)}return zF(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(n.whole)},namedTimeZonedImpl:class extends eP{offsetForArray(e){return zF(e,this.timeZoneName).offset}timestampToArray(e){return[(t=vs.fromMillis(e,{zone:this.timeZoneName})).year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond];var t}}});const WF=parseInt(String(e.version).split(".")[0])<18;class UF extends e.Component{constructor(){super(...arguments),this.elRef=(0,e.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame((()=>{this.doResize()})))}}render(){const t=[];for(const n of this.state.customRenderingMap.values())t.push(e.createElement($F,{key:n.id,customRendering:n}));return e.createElement("div",{ref:this.elRef},t)}componentDidMount(){this.isUnmounting=!1;const e=new JP;let t;this.handleCustomRendering=e.handle.bind(e),this.calendar=new rF(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",(()=>{(0,pe.flushSync)((()=>{}))})),e.subscribe((e=>{const n=Date.now(),r=!t;(WF||r||this.isUpdating||this.isUnmounting||n-t<100?qF:pe.flushSync)((()=>{this.setState({customRenderingMap:e},(()=>{t=n,r?this.doResize():this.requestResize()}))}))}))}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}UF.act=qF;class $F extends e.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,pe.createPortal)(n,e.containerEl)}}function qF(e){e()}class GF extends WO{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?"background"===(t=e).ui.display||"inverse-background"===t.ui.display?["timed","allDay"]:["allDay"]:["timed"];var t}}const YF=IM({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function ZF(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return uA(dI.Consumer,null,(n=>{if(!e.isLabeled)return uA("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:o,viewApi:a}=n,s=null==o.slotLabelFormat?YF:Array.isArray(o.slotLabelFormat)?IM(o.slotLabelFormat[0]):IM(o.slotLabelFormat),i={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,s)};return uA(bI,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:i,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:KF,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(e=>uA("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},uA(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function KF(e){return e.text}class QF extends hI{render(){return this.props.slatMetas.map((e=>uA("tr",{key:e.key},uA(ZF,Object.assign({},e)))))}}const JF=IM({week:"short"});class XF extends XO{constructor(){super(...arguments),this.allDaySplitter=new GF,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,o=r.renderRange,a=1===aM(o.start,o.end)?ZO(this.context,o.start,"week"):{};return n.weekNumbers&&"day"===e?uA(BP,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:JF},(e=>uA("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},uA(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a})))):uA("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},uA("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return uA(bI,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:ez,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(t=>uA("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},uA(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:o}=this,a=[],s=EP(r.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:uA("tr",{role:"presentation",className:"fc-scrollgrid-section"},uA("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),uA(kI,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},uA(DP,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,t,n,r,o,a,s){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{context:l,props:c}=this,d=!c.forPrint&&EP(l.options),u=!c.forPrint&&NP(l.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>uA("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>uA("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:uA("tr",{role:"presentation",className:"fc-scrollgrid-section"},uA("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let h=l.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(l.options.expandRows),chunks:[{key:"axis",content:e=>uA("div",{className:"fc-timegrid-axis-chunk"},uA("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,uA("tbody",null,uA(QF,{slatMetas:a}))),uA("div",{className:"fc-timegrid-now-indicator-container"},uA(FO,{unit:h?"minute":"day"},(e=>{let t=h&&s&&s.safeComputeTop(e);return"number"==typeof t?uA(MP,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),u&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:jP},{key:"cols",content:jP}]}),uA(kI,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},uA(i,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return!0!==e&&!0!==t||(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function ez(e){return e.text}class tz{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(EI(t.currentRange,e)){let n=iM(e),r=e.valueOf()-n.valueOf();if(r>=QR(t.slotMinTime)&&r<QR(t.slotMaxTime))return this.computeTimeTop(GR(r))}return null}computeDateTop(e,t){return t||(t=iM(e)),this.computeTimeTop(GR(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:o}=this,a=r.els.length,s=(e.milliseconds-QR(o.slotMinTime))/QR(this.slotDuration);return s=Math.max(0,s),s=Math.min(a,s),t=Math.floor(s),t=Math.min(t,a-1),n=s-t,r.tops[t]+r.getHeight(t)*n}}class nz extends hI{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return uA("tbody",null,e.slatMetas.map(((o,a)=>{let s={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi};return uA("tr",{key:o.key,ref:r.createRef(o.key)},e.axis&&uA(ZF,Object.assign({},o)),uA(bI,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class rz extends hI{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new bP}render(){let{props:e,context:t}=this;return uA("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},uA("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,uA(nz,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;var n;t.onCoords&&null!==t.clientWidth&&this.rootElRef.current.offsetHeight&&t.onCoords(new tz(new QO(this.rootElRef.current,(n=this.slatElRefs.currentMap,t.slatMetas.map((e=>n[e.key]))),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function oz(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function az(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}class sz extends hI{render(){let{props:e}=this;return uA($P,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>gz(e.hiddenSegs,e),defaultGenerator:iz,forceTimed:!0},(e=>uA(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function iz(e){return e.shortText}function lz(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:o}=e,a=r,s=[];for(;a<o;)s.push(t(n,a)),a+=1;return s.sort(cz),[s.map(dz),s[0][1]]}function cz(e,t){return t[1]-e[1]}function dz(e){return e[0]}function uz(e,t){const n={};return(...r)=>{let o=e(...r);return o in n?n[o]:n[o]=t(...r)}}function fz(e,t,n=null,r=0){let o=[];if(n)for(let a=0;a<e.length;a+=1){let s=e[a],i=n.computeDateTop(s.start,t),l=Math.max(i+(r||0),n.computeDateTop(s.end,t));o.push({start:Math.round(i),end:Math.round(l)})}return o}const hz=IM({hour:"numeric",minute:"2-digit",meridiem:!1});class mz extends hI{render(){return uA(AP,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:hz}))}}class pz extends hI{constructor(){super(...arguments),this.sortEventSegs=xM(xO)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,o=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},s=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return uA(OP,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},(t=>uA("div",{className:"fc-timegrid-col-frame"},uA("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),uA("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),uA("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),uA("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),PP(n)&&uA(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(e,t,n,r,o,a){let{props:s}=this;return s.forPrint?gz(e,s):this.renderPositionedFgSegs(e,t,n,r,o,a)}renderPositionedFgSegs(e,t,n,r,o,a){let{eventMaxStack:s,eventShortHeight:i,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:u,eventSelection:f,todayRange:h,nowDate:m}=this.props,p=n||r||o,g=fz(e,d,u,c),{segPlacements:v,hiddenGroups:y}=function(e,t,n,r){let o=[],a=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?o.push({index:n,thickness:1,span:r}):a.push(e[n])}let{segRects:s,hiddenGroups:i}=function(e,t,n){let r=new tP;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);let o=function(e){let t=[];for(let o of e){let e=[],a={span:o.span,entries:[o]};for(let o of t)oP(o.span,a.span)?a={entries:o.entries.concat(a.entries),span:(n=o.span,r=a.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(o);e.push(a),t=e}var n,r;return t}(r.addSegs(e)),a=function(e){const{entriesByLevel:t}=e,n=uz(((e,t)=>e+":"+t),((r,o)=>{let a=function(e,t,n){let{levelCoords:r,entriesByLevel:o}=e,a=o[t][n],s=r[t]+a.thickness,i=r.length,l=t;for(;l<i&&r[l]<s;l+=1);for(;l<i;l+=1){let e,t=o[l],n=sP(t,a.span.start,nP),r=n[0]+n[1],s=r;for(;(e=t[s])&&e.span.start<a.span.end;)s+=1;if(r<s)return{level:l,lateralStart:r,lateralEnd:s}}return null}(e,r,o),s=lz(a,n),i=t[r][o];return[Object.assign(Object.assign({},i),{nextLevelNodes:s[0]}),i.thickness+s[1]]}));return lz(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);a=function(e){const t=uz(((e,t,n)=>rP(e)),((e,n,r)=>{let o,{nextLevelNodes:a,thickness:s}=e,i=s+r,l=s/i,c=[];if(a.length)for(let e of a)if(void 0===o){let r=t(e,n,i);o=r[0],c.push(r[1])}else{let n=t(e,o,0);c.push(n[1])}else o=1;let d=(o-n)*l;return[o-d,Object.assign(Object.assign({},e),{thickness:d,nextLevelNodes:c})]}));return e.map((e=>t(e,0,0)[1]))}(a);let s=function(e){let t=[];const n=uz(((e,t,n)=>rP(e)),((e,n,o)=>{let a=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:o,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,o+1)+1}));function r(e,t,r){let o=0;for(let a of e)o=Math.max(n(a,t,r),o);return o}return r(e,0,0),t}(a);return{segRects:s,hiddenGroups:o}}(o,n,r),l=[];for(let t of s)l.push({seg:e[t.index],rect:t});for(let e of a)l.push({seg:e,rect:null});return{segPlacements:l,hiddenGroups:i}}(e,g,l,s);return uA(hA,null,this.renderHiddenGroups(y,e),v.map((e=>{let{seg:s,rect:l}=e,c=s.eventRange.instance.instanceId,d=p||Boolean(!t[c]&&l),u=vz(l&&l.span),g=!p&&l?this.computeSegHStyle(l):{left:0,right:0},v=Boolean(l)&&l.stackForward>0,y=Boolean(l)&&l.span.end-l.span.start<i;return uA("div",{className:"fc-timegrid-event-harness"+(v?" fc-timegrid-event-harness-inset":""),key:a||c,style:Object.assign(Object.assign({visibility:d?"":"hidden"},u),g)},uA(mz,Object.assign({seg:s,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:c===f,isShort:y},CO(s,h,m))))})))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:s,eventDrag:i,eventResize:l}=this.props;return uA(hA,null,e.map((e=>{let c=vz(e.span),d=(u=e.entries,f=t,u.map((e=>f[e.index])));var u,f;return uA(sz,{key:gM(YP(d)),hiddenSegs:d,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:s,eventDrag:i,eventResize:l})})))}renderFillSegs(e,t){let{props:n,context:r}=this,o=fz(e,n.date,n.slatCoords,r.options.eventMinHeight).map(((r,o)=>{let a=e[o];return uA("div",{key:EO(a.eventRange),className:"fc-timegrid-bg-harness",style:vz(r)},"bg-event"===t?uA(FP,Object.assign({seg:a},CO(a,n.todayRange,n.nowDate))):HP(t))}));return uA(hA,null,o)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map(((e,r)=>uA(MP,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n}))):null}computeSegHStyle(e){let t,n,{isRtl:r,options:o}=this.context,a=o.slotEventOverlap,s=e.levelCoord,i=e.levelCoord+e.thickness;a&&(i=Math.min(1,s+2*(i-s))),r?(t=1-i,n=s):(t=s,n=1-i);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return a&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function gz(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:o,eventResize:a}){let s=(o?o.affectedInstances:null)||(a?a.affectedInstances:null)||{};return uA(hA,null,e.map((e=>{let o=e.eventRange.instance.instanceId;return uA("div",{key:o,style:{visibility:s[o]?"hidden":""}},uA(mz,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},CO(e,t,n))))})))}function vz(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class yz extends hI{constructor(){super(...arguments),this.splitFgEventSegs=xM(oz),this.splitBgEventSegs=xM(oz),this.splitBusinessHourSegs=xM(oz),this.splitNowIndicatorSegs=xM(oz),this.splitDateSelectionSegs=xM(oz),this.splitEventDrag=xM(az),this.splitEventResize=xM(az),this.rootElRef={current:null},this.cellElRefs=new bP}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,o=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),s=this.splitBusinessHourSegs(e.businessHourSegs,r),i=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r);return uA("div",{className:"fc-timegrid-cols",ref:this.rootElRef},uA("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,uA("tbody",{role:"presentation"},uA("tr",{role:"row"},e.axis&&uA("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},uA("div",{className:"fc-timegrid-col-frame"},uA("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&uA(MP,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map(((t,n)=>uA(pz,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:o[n],bgEventSegs:a[n],businessHourSegs:s[n],nowIndicatorSegs:i[n],dateSelectionSegs:l[n],eventDrag:c[n],eventResize:d[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;var t;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new QO(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map((e=>t[e.key]))),!0,!1))}}class xz extends XO{constructor(){super(...arguments),this.processSlotOptions=xM(bz),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return uA("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},uA(rz,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),uA(yz,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:i,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=o.leftToIndex(e),d=s.positions.topToIndex(t);if(null!=c&&null!=d){let e=this.props.cells[c],r=s.positions.tops[d],u=s.positions.getHeight(d),f=(t-r)/u,h=d*l+Math.floor(f*l),m=this.props.cells[c].date,p=ZR(a.slotMinTime,function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}(i,h)),g=n.add(m,p),v=n.add(g,i);return{dateProfile:a,dateSpan:Object.assign({range:{start:g,end:v},allDay:!1},e.extraDateSpan),dayEl:o.els[c],rect:{left:o.lefts[c],right:o.rights[c],top:r,bottom:r+u},layer:0}}return null}}function bz(e,t){let n=t||e,r=JR(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class wz extends gP{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let o=jI(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n}}class kz extends XO{constructor(){super(...arguments),this.buildDayRanges=xM(_z),this.slicer=new wz,this.timeColsRef={current:null}}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:o,nextDayThreshold:a}=t.options,s=this.buildDayRanges(r,n,t.dateEnv);return uA(FO,{unit:o?"minute":"day"},((i,l)=>uA(xz,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:i,nowIndicatorSegs:o&&this.slicer.sliceNowDate(i,n,a,t,s),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))))}}function _z(e,t,n){let r=[];for(let o of e.headerDates)r.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)});return r}const Sz=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Cz(e,t,n,r,o){let a=new Date(0),s=e,i=GR(0),l=n||function(e){let t,n,r;for(t=Sz.length-1;t>=0;t-=1)if(n=GR(Sz[t]),r=JR(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;QR(s)<QR(t);){let e=o.add(a,s),t=null!==JR(i,l);c.push({date:e,time:s,key:e.toISOString(),isoTimeStr:(d=e,BR(d.getUTCHours(),2)+":"+BR(d.getUTCMinutes(),2)+":"+BR(d.getUTCSeconds(),2)),isLabeled:t}),s=ZR(s,r),i=ZR(i,r)}var d;return c}function jz(e,t){let n=new mP(e.renderRange,t);return new pP(n,!1)}_R('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var Ez=aL({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends XF{constructor(){super(...arguments),this.buildTimeColsModel=xM(jz),this.buildSlatMetas=xM(Cz)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:o}=r,a=this.buildTimeColsModel(o,n),s=this.allDaySplitter.splitProps(r),i=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:l}=e,c=!l,d=l,u=e.dayHeaders&&uA(fP,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),f=!1!==e.allDaySlot&&(t=>uA(EF,Object.assign({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),h=t=>uA(kz,Object.assign({},s.timed,{dayTableModel:a,dateProfile:o,axis:c,slotDuration:e.slotDuration,slatMetas:i,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(u,f,h,a.colCnt,l,i,this.state.slatCoords):this.renderSimpleLayout(u,f,h)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const Nz=e=>{const{colors:t,attributes:n,setAttributes:r}=e;return(0,De.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:t.map((function(e,t){var o=e.default?e.default:void 0;return e.label?(0,De.jsx)(gD.__experimentalToolsPanelItem,{hasValue:()=>n[e.value]!=o,label:e.label,onDeselect:()=>r({[e.value]:o}),isShownByDefault:!0,className:`block-editor-tools-panel-color-gradient-settings__item ${0==t&&"first"}`,children:(0,De.jsx)(gD.Dropdown,{className:"block-editor-tools-panel-color-gradient-settings__dropdown",contentClassName:"my-popover-content-classname",popoverProps:{placement:"left-start",offset:36},renderToggle:({isOpen:t,onToggle:r})=>(0,De.jsx)(gD.Button,{onClick:r,"aria-expanded":t,className:t?"block-editor-panel-color-gradient-settings__dropdown is-open":"block-editor-panel-color-gradient-settings__dropdown",children:(0,De.jsxs)(gD.__experimentalHStack,{justify:"flex-start",children:[(0,De.jsx)(gD.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:n[e.value]}),(0,De.jsx)(gD.FlexItem,{children:e.label})]})}),renderContent:()=>(0,De.jsx)("div",{className:"components-dropdown-content-wrapper",children:(0,De.jsxs)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:[(0,De.jsx)(gD.ColorPicker,{color:n[e.value]?n[e.value]:"",onChange:t=>r({[e.value]:t})}),n[e.value]&&(0,De.jsx)(gD.Button,{variant:"link",className:"ng-clear-color",onClick:()=>{e.required?r({[e.value]:""}):r({[e.value]:void 0})},children:(0,Ms.__)("Clear","newsletter-glue")})]})})})},`panelItem-${t}`):null}))})};var Dz=o(106);const Tz=t=>{const[n,r]=(0,e.useState)([]),{attributes:o,setAttributes:a,calendar:s,setView:i}=t,l=o?.startday?o.startday:s?.startday,c=o?.timeframe?o.timeframe:s?.timeframe,d=[{value:"color",label:(0,Ms.__)("Accent","eventkoi")}];return(0,e.useEffect)((()=>{(async()=>{await Ne()({path:`${eventkoi_params.api}/calendars`,method:"get"}).then((e=>{if(e){let t=[];e.map(((e,n)=>{t.push({label:e.name,value:e.id})})),r(t)}})).catch((e=>{}))})()}),[]),(0,e.useEffect)((()=>{n.length>0&&(!o.calendars||0===o.calendars.length)&&a({calendars:[Number(eventkoi_params.default_cal)]})}),[n,o.calendars]),(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(gD.PanelBody,{title:(0,Ms.__)("Display options","eventkoi"),initialOpen:!0,children:[n&&n.length>0&&(0,De.jsx)(Dz.MultiSelectControl,{label:(0,Ms.__)("Select calendar(s)","eventkoi"),value:o.calendars||[],options:n,onChange:e=>{a({calendars:e})},__nextHasNoMarginBottom:!0}),(0,De.jsxs)(gD.__experimentalToggleGroupControl,{label:(0,Ms.__)("Timeframe defaults to","eventkoi"),value:c,isBlock:!0,onChange:e=>{a({timeframe:e}),i("week"===e?"timeGridWeek":"dayGridMonth")},__nextHasNoMarginBottom:!0,children:[(0,De.jsx)(gD.__experimentalToggleGroupControlOption,{value:"month",label:"Month"}),(0,De.jsx)(gD.__experimentalToggleGroupControlOption,{value:"week",label:"Week"})]}),(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Default month to display","eventkoi"),value:o.default_month||"",options:[{label:(0,Ms.__)("Current month","eventkoi"),value:""},{label:(0,Ms.__)("January","eventkoi"),value:"january"},{label:(0,Ms.__)("February","eventkoi"),value:"february"},{label:(0,Ms.__)("March","eventkoi"),value:"march"},{label:(0,Ms.__)("April","eventkoi"),value:"april"},{label:(0,Ms.__)("May","eventkoi"),value:"may"},{label:(0,Ms.__)("June","eventkoi"),value:"june"},{label:(0,Ms.__)("July","eventkoi"),value:"july"},{label:(0,Ms.__)("August","eventkoi"),value:"august"},{label:(0,Ms.__)("September","eventkoi"),value:"september"},{label:(0,Ms.__)("October","eventkoi"),value:"october"},{label:(0,Ms.__)("November","eventkoi"),value:"november"},{label:(0,Ms.__)("December","eventkoi"),value:"december"}],onChange:e=>a({default_month:e}),__nextHasNoMarginBottom:!0}),(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Default year to display","eventkoi"),value:o.default_year||"",options:[{label:(0,Ms.__)("Current year","eventkoi"),value:""},...Array.from({length:10},((e,t)=>{const n=(new Date).getFullYear()+t+1;return{label:String(n),value:String(n)}}))],onChange:e=>a({default_year:e}),__nextHasNoMarginBottom:!0}),(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Week starts on","eventkoi"),value:l,options:[{label:"Monday",value:"monday"},{label:"Tuesday",value:"tuesday"},{label:"Wednesday",value:"wednesday"},{label:"Thursday",value:"thursday"},{label:"Friday",value:"friday"},{label:"Saturday",value:"saturday"},{label:"Sunday",value:"sunday"}],onChange:e=>a({startday:e}),__nextHasNoMarginBottom:!0})]}),(0,De.jsx)(gD.__experimentalToolsPanel,{label:(0,Ms.__)("Colors"),resetAll:()=>{a({color:void 0})},hasInnerWrapper:!0,className:"color-block-support-panel",children:(0,De.jsx)(Nz,{attributes:o,setAttributes:a,colors:d})})]})},Az={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},Rz=(("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en")||"").split("_")[0]||"en",Mz=aA.some((e=>e.code===Rz));let Iz=Mz?Rz:"en";try{new Intl.DateTimeFormat(Iz)}catch{Iz="en"}(0,qD.registerBlockType)("eventkoi/calendar",{apiVersion:2,title:(0,Ms.__)("EK Events Calendar","eventkoi"),category:"eventkoi-blocks",icon:function({width:e="16.918",height:t="21.89"}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 16.918 21.89",children:(0,De.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,De.jsx)("g",{transform:"translate(0 13.696)",children:(0,De.jsx)(Di.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)"})}),(0,De.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,De.jsx)(Di.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)"})})]})})},example:{attributes:{}},description:(0,Ms.__)("Add an EventKoi calendar.","newsletter-glue"),keywords:["eventkoi","events"],attributes:{calendars:{type:"array"},startday:{type:"string"},timeframe:{type:"string"},default_month:{type:"string",default:""},default_year:{type:"string",default:""},color:{type:"string"}},supports:{layout:{type:"constrained",allowJustification:!1,allowWide:!1}},edit:function({attributes:t,setAttributes:n,className:r,isSelected:o,clientId:a}){(0,e.useEffect)((()=>{o?document.body.classList.add("eventkoi-active"):document.body.classList.remove("eventkoi-active")}),[o]);const s="calendar",i=t?.timeframe||"month",[l,c]=(0,e.useState)(null),[d,u]=(0,e.useState)(Rs(t)),[f,h]=(0,e.useState)(""),[m,p]=(0,e.useState)(null),[g,v]=(0,e.useState)(null),[y,x]=(0,e.useState)(!1),[b,w]=(0,e.useState)(Rs(t)),k=(0,e.useRef)(null),_=new URLSearchParams(window.location.search).get("tz"),[S,C]=(0,e.useState)("24"===eventkoi_params?.time_format?"24":"12"),j=_||eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC",[E,N]=(0,e.useState)(As(j)),D=(0,e.useRef)(null),T=(0,e.useRef)(!1),A=(0,e.useRef)(null),R=(0,e.useRef)(null),{layout:M}=t,I=(0,$T.useBlockProps)({className:"eventkoi-admin",style:{marginLeft:"auto",marginRight:"auto"}}),[O,P]=(0,e.useState)({}),[L,F]=(0,e.useState)([]),[z,H]=(0,e.useState)([]),[B,V]=(0,e.useState)(),W=t.calendars&&t.calendars.length>0?t.calendars.map(String).join(","):null;let U=t.calendar_id;U||(U=eventkoi_params.default_cal),W&&(U=W);const $=async(e,t,n=U)=>{try{x(!0);const r=new URLSearchParams({id:n,display:s});e&&r.set("start",e.toISOString()),t&&r.set("end",t.toISOString());const o=`${eventkoi_params.api}/calendar_events?${r.toString()}`,a=await Ne()({path:o,method:"get"});F(a.events),P(a.calendar)}catch(e){console.error("Failed to load events",e)}finally{x(!1)}};(0,e.useEffect)((()=>{const e=Rs(t);l?(l.gotoDate(e),u(new Date(e))):w(e)}),[t.default_year,t.default_month]),(0,e.useEffect)((()=>{(async()=>{W&&(U=W);try{const e=await Ne()({path:`${eventkoi_params.api}/calendar_events?id=${U}&display=${s}&initial=true`,method:"get"});P(e.calendar);const t="week"===i||"week"===e.calendar.timeframe?"timeGridWeek":"dayGridMonth";V(t)}catch(e){console.error("Failed to load calendar info",e)}})(),(async()=>{try{const e=new URLSearchParams({id:U,display:s}),t=await Ne()({path:`${eventkoi_params.api}/calendar_events?${e.toString()}`,method:"get"});H(t.events)}catch(e){console.error("Failed to load all events",e)}})()}),[U]),(0,e.useEffect)((()=>{if(!l)return;const{activeStart:e,activeEnd:t}=l.view;k.current=null,$(e,t,U)}),[U,l]),(0,e.useEffect)((()=>{if(D.current&&B){const e=D.current.getApi();e.changeView(B),c(e);const{activeStart:t,activeEnd:n}=e.view,r=`${t.toISOString()}_${n.toISOString()}`;k.current||(k.current=r,$(t,n))}}),[B]),(0,e.useEffect)((()=>{document.body.style.position="relative"}),[]),(0,e.useEffect)((()=>{function e(e){if(T.current)return void(T.current=!1);const t=e.target.closest("[data-event-popover]"),n=e.target.closest("[data-radix-popper-content-wrapper]"),r="true"===document.body.getAttribute("data-calendar-menu-open"),o="true"===document.body.getAttribute("data-share-modal-open");t||n||o||r||(p(null),v(null))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,e.useEffect)((()=>{if(!l||!d)return;const e=setInterval((()=>{const t=document.querySelector(".fc-today-button");if(t&&!document.getElementById("eventkoi-month-portal")){const n=document.createElement("div");n.id="eventkoi-month-portal",n.className="flex m-0",t.parentNode.insertBefore(n,t),R.current=n,A.current=createRoot(n),A.current.render((0,De.jsx)(CalendarHeaderPopover,{calendarApi:l,currentDate:d,setCurrentDate:u})),clearInterval(e)}}),100);return()=>clearInterval(e)}),[l]);const q=t?.startday?t.startday:O?.startday,G=t?.color?t.color:eventkoi_params.default_color,Y={hour:"24"===S?"2-digit":"numeric",minute:"2-digit",hour12:"24"!==S,..."24"!==S&&{omitZeroMinute:!0,meridiem:"short"}},Z=E&&"local"!==E?E:null,K=(e,t)=>{const n=Z?{...t,timeZone:Z}:t;try{return new Intl.DateTimeFormat(Iz,n).format(e)}catch{return new Intl.DateTimeFormat(Iz,t).format(e)}};return(0,De.jsxs)("div",{...I,children:[(0,De.jsx)($T.InspectorControls,{children:(0,De.jsx)(Tz,{calendar:O,attributes:t,setAttributes:n,className:r,isSelected:o,clientId:a,setView:V})}),(0,De.jsx)("div",{id:"dayGridMonth"===B?"month":"timeGridWeek"===B?"week":"day",children:(0,De.jsxs)("div",{className:"relative",children:[(0,De.jsx)(DT,{calendarApi:l,currentDate:d,setCurrentDate:u,view:B,setView:V,search:f,setSearch:h,events:z,timezone:E||void 0,timeFormat:S}),(0,De.jsx)("div",{className:"flex justify-start md:justify-end py-4 text-sm text-foreground",children:(0,De.jsx)(UT,{timezone:E,setTimezone:N,timeFormat:S,setTimeFormat:C})}),(0,De.jsx)(UF,{ref:D,locales:aA,locale:Iz,plugins:[DF,Ez,FF,VF],events:L,initialView:B,initialDate:b,weekends:!0,timeZone:E,firstDay:Az[q],eventColor:G,headerToolbar:!1,contentHeight:"auto",expandRows:!0,height:"auto",eventTimeFormat:Y,dayHeaderContent:e=>{const{date:t,view:n}=e,r=K(t,{weekday:"short"});if(n.type.startsWith("timeGrid")){const e=K(t,{day:"numeric"});return(0,De.jsxs)("div",{className:"flex flex-col items-center leading-tight",children:[(0,De.jsx)("span",{children:r}),(0,De.jsx)("span",{className:"font-semibold text-base",children:e})]})}return(0,De.jsx)("span",{children:r})},datesSet:({start:e,end:t,view:n})=>{const r=`${e.toISOString()}_${t.toISOString()}`;k.current!==r&&(k.current=r,$(e,t,U),u(n.currentStart),A.current&&R.current&&A.current.render((0,De.jsx)(CalendarHeaderPopover,{calendarApi:l,currentDate:n.currentStart,setCurrentDate:u})))},eventClick:e=>{e.jsEvent.preventDefault(),e.jsEvent.stopPropagation();const t={...e.event.extendedProps,title:e.event.title,start:e.event.startStr,end:e.event.endStr,allDay:e.event.allDay,url:e.event.url},n=e.el;n&&(requestAnimationFrame((()=>{setTimeout((()=>{const e=document.querySelector(".fc").getBoundingClientRect(),t=n.getBoundingClientRect(),r=t.bottom-e.top+6;let o;o=t.right-e.left+370>e.width?t.right-e.left-370:t.left-e.left,window.innerWidth<768?v({x:0,y:r}):v({x:Math.max(0,o),y:r})}),0)})),p(t))}}),m&&g&&(0,De.jsx)(WT,{event:m,anchor:g,onClose:()=>{p(null),v(null)},ignoreNextOutsideClick:T,timezone:E||void 0})]})})]})},save:function(){return null}});const Oz=window.wp.element,Pz=(0,Oz.createContext)({event:null,isActive:!1}),Lz=(0,Oz.createContext)(null),Fz=window.wp.data,zz=window.wp.htmlEntities;function Hz(e="",t=0){const[n,r]=(0,Oz.useState)([]),[o,a]=(0,Oz.useState)(!1);return(0,Oz.useEffect)((()=>{let n=!0;return a(!0),Ne()({path:`/wp/v2/eventkoi_event?per_page=20&status=publish&search=${encodeURIComponent(e)}`}).then((async e=>{let o=e.map((e=>({value:String(e.id),label:(0,zz.decodeEntities)(e.title?.rendered||"")||`#${e.id}`})));if(t>0&&!o.some((e=>parseInt(e.value,10)===t)))try{const e=await Ne()({path:`/wp/v2/eventkoi_event/${t}`});e&&e.id&&(o=[{value:String(e.id),label:(0,zz.decodeEntities)(e.title?.rendered||"")||`#${e.id}`},...o])}catch{}n&&r(o)})).catch((()=>{n&&r([])})).finally((()=>{n&&a(!1)})),()=>{n=!1}}),[e,t]),{options:n,isLoading:o}}function Bz({attributes:e,setAttributes:t,isLoadingEvent:n,disableEventSource:r=!1}){const{field:o,eventId:a}=e,[s,i]=(0,Oz.useState)(""),{options:l,isLoading:c}=Hz(s,a);return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(gD.PanelBody,{title:(0,Ms.__)("Event Data Field","eventkoi"),initialOpen:!0,children:(0,De.jsx)(gD.SelectControl,{label:(0,Ms.__)("Field","eventkoi"),value:o,options:[{label:(0,Ms.__)("Title","eventkoi"),value:"title"},{label:(0,Ms.__)("Excerpt / Description","eventkoi"),value:"excerpt"},{label:(0,Ms.__)("Date and Time","eventkoi"),value:"timeline"},{label:(0,Ms.__)("Location","eventkoi"),value:"location"},{label:(0,Ms.__)("Image","eventkoi"),value:"image"}],onChange:e=>t({field:e})})}),!r&&(0,De.jsxs)(gD.PanelBody,{title:(0,Ms.__)("Event Source","eventkoi"),initialOpen:!0,children:[(0,De.jsx)(gD.ComboboxControl,{label:(0,Ms.__)("Select Event","eventkoi"),help:(0,Ms.__)("Choose which event to display. If no event is selected, this block will remain empty when used outside a query.","eventkoi"),value:a>0?String(a):"",options:l,onChange:e=>t({eventId:parseInt(e,10)||0}),onFilterValueChange:i,placeholder:(0,Ms.__)("Search events…","eventkoi"),isLoading:c||n}),n&&(0,De.jsxs)("div",{className:"flex items-center gap-2 text-xs opacity-70 mt-1",children:[(0,De.jsx)(gD.Spinner,{}),(0,Ms.__)("Loading selected event…","eventkoi")]}),a>0&&!n&&(0,De.jsx)("p",{className:"text-xs opacity-60 mt-1",children:(0,Ms.__)("Displaying data for the selected event.","eventkoi")}),0===a&&(0,De.jsx)("p",{className:"text-xs opacity-60 mt-1",children:(0,Ms.__)("No specific event selected — will use context if available, or remain empty if used outside an Event Query.","eventkoi")})]})]})}(0,qD.registerBlockType)("eventkoi/event-data",{apiVersion:2,title:(0,Ms.__)("EK Event Data","eventkoi"),description:(0,Ms.__)("Display specific details (title, location, time, etc.) from an event. Can be used alone or inside an Event Query.","eventkoi"),category:"eventkoi-blocks",icon:function({width:e="16.918",height:t="21.89"}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 16.918 21.89",children:(0,De.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,De.jsx)("g",{transform:"translate(0 13.696)",children:(0,De.jsx)(Di.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)"})}),(0,De.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,De.jsx)(Di.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)"})})]})})},attributes:{field:{type:"string",default:"title"},tagName:{type:"string",default:"div"},className:{type:"string"},eventId:{type:"integer",default:0}},supports:{reusable:!1,inserter:!0,multiple:!0,lock:!1,__experimentalMovable:!0,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,fontStyle:!0,__experimentalFontStyle:!0},spacing:{margin:!0,padding:!0},align:["left","center","right"]},__experimentalLabel:e=>`Event data: ${{title:(0,Ms.__)("Title","eventkoi"),excerpt:(0,Ms.__)("Excerpt / Description","eventkoi"),timeline:(0,Ms.__)("Date and Time","eventkoi"),location:(0,Ms.__)("Location","eventkoi"),image:(0,Ms.__)("Image","eventkoi")}[e.field]||(0,Ms.__)("Unknown","eventkoi")}`,edit:function({attributes:e,setAttributes:t,clientId:n}){var r;const{field:o,tagName:a="div",eventId:s=0}=e,i=(0,$T.useBlockProps)({className:"eventkoi-event-data","data-event-field":o}),{event:l}=(0,Oz.useContext)(Pz)||{event:null,isActive:!1},{event:c,isLoading:d}=function(e){const[t,n]=(0,Oz.useState)(null),[r,o]=(0,Oz.useState)(!1);return(0,Oz.useEffect)((()=>{e>0?(o(!0),Ne()({path:`/eventkoi/v1/get_event?id=${e}`}).then((t=>{t&&(t.event_id||t.id)?n(t):(console.warn("EventKoi: no event found for ID",e),n(null))})).catch((e=>{console.error("EventKoi fetch error:",e),n(null)})).finally((()=>o(!1)))):n(null)}),[e]),{event:t,isLoading:r}}(s),u=c||l,f=a,h=!!l,m=(0,Oz.useRef)(!1),{isInsideEventQueryLoop:p,hasEventQueryItemParent:g,postTemplateId:v,firstEventQueryItemId:y,groupChildId:x,targetChildCount:b,blockRecord:w}=(0,Fz.useSelect)((e=>{const t=e($T.store);if(!n)return{isInsideEventQueryLoop:!1,hasEventQueryItemParent:!1,postTemplateId:null,firstEventQueryItemId:null,targetChildCount:0,blockRecord:null};const r=t.getBlockParents(n)||[],o=r.map(t.getBlock).some((e=>"eventkoi/event-query-item"===e?.name)),a=r.some((e=>{const n=t.getBlock(e);return"core/query"===n?.name&&"eventkoi/event-query-loop"===n?.attributes?.namespace})),s=r.find((e=>"core/post-template"===t.getBlock(e)?.name))||null;let i=null,l=null,c=0;if(s&&(i=(t.getBlockOrder(s)||[]).find((e=>"eventkoi/event-query-item"===t.getBlock(e)?.name))||null,i)){const e=t.getBlockOrder(i)||[];l=e.find((e=>"core/group"===t.getBlock(e)?.name))||null,c=l?(t.getBlockOrder(l)||[]).length:e.length}return{isInsideEventQueryLoop:a,hasEventQueryItemParent:o,postTemplateId:s,firstEventQueryItemId:i,groupChildId:l,targetChildCount:c,blockRecord:t.getBlock(n)}}),[n]),{insertBlocks:k,removeBlocks:_}=(0,Fz.useDispatch)($T.store);(0,Oz.useEffect)((()=>{l&&s>0&&t({eventId:0})}),[l]),(0,Oz.useEffect)((()=>{if(m.current||!n||!p||g||!v||!w)return;const e=(0,qD.cloneBlock)(w);if(x)k(e,b,x);else if(y)k(e,b,y);else{const t=(0,qD.createBlock)("eventkoi/event-query-item",{},[e]);k(t,void 0,v)}m.current=!0,_([n],!1)}),[w,n,y,x,g,k,p,v,_,b]);const S=(0,De.jsx)($T.InspectorControls,{children:(0,De.jsx)(Bz,{attributes:e,setAttributes:t,isLoadingEvent:d,disableEventSource:h})});if(!u)return(0,De.jsxs)(De.Fragment,{children:[S,!h&&!p&&(0,De.jsx)("div",{...i,children:(0,De.jsx)("span",{className:"italic opacity-60",children:(0,Ms.__)("No event available. Choose an event or place this block inside Event Query.","eventkoi")})})]});const C=u.title?.rendered||u.title||"",j=u.excerpt?.rendered||u.description?.rendered||u.description||"",E=(u.location_line,u.datetime),N=u.thumbnail?(0,De.jsx)("img",{src:u.thumbnail,alt:C,className:"rounded-xl w-full h-auto object-cover"}):null;let D=null;switch(o){case"title":D=(0,De.jsx)(f,{...i,className:Ni(i.className,h&&"ek-event-title-default"),dangerouslySetInnerHTML:{__html:C}});break;case"excerpt":D=(0,De.jsx)(f,{...i,dangerouslySetInnerHTML:{__html:j||`<span class="opacity-60 italic">${(0,Ms.__)("No description","eventkoi")}</span>`}});break;case"timeline":D=(0,De.jsx)(f,{...i,className:Ni(i.className,h&&"ek-event-timeline-default"),children:E?(0,De.jsx)("span",{children:E}):(0,De.jsx)("span",{className:"opacity-60 italic",children:(0,Ms.__)("No time","eventkoi")})});break;case"location":const e=null!==(r=u.locations?.[0])&&void 0!==r?r:{},t="virtual"===e.type||"online"===e.type,n=u.location_line;let o=null;if(t&&e.virtual_url){const t=e.link_text||e.virtual_url;o=(0,De.jsx)("a",{href:e.virtual_url,className:"underline underline-offset-4 truncate",title:t,target:"_blank",rel:"noopener noreferrer",children:t})}else o=n?(0,De.jsx)("span",{children:n}):(0,De.jsx)("span",{className:"opacity-60 italic",children:(0,Ms.__)("No location","eventkoi")});D=(0,De.jsx)(f,{...i,className:Ni(i.className,h&&"ek-event-location-default"),children:o});break;case"image":D=(0,De.jsx)("div",{...i,className:Ni(i.className,"ek-event-image"),children:N?(0,De.jsx)("div",{className:"pointer-events-none select-none",children:N}):(0,De.jsx)("div",{className:"border border-input bg-border flex items-center justify-center rounded-xl h-[120px]",children:(0,De.jsx)(Al,{className:"w-6 h-6 opacity-40"})})});break;default:D=(0,De.jsx)(f,{...i,children:(0,De.jsx)("span",{className:"italic opacity-60",children:(0,Ms.__)("No event data","eventkoi")})})}return(0,De.jsxs)(De.Fragment,{children:[S,D]})},save:function(){return null}});const Vz="eventkoi/event-query-loop",Wz=e=>e?e.split("T")[0]:"";let Uz=0,$z=null;const qz=new Map;let Gz=0;Ne().use(((e,t)=>{if(e&&e.__eventkoiProxy)return t(e);if(e?.path&&"string"==typeof e.path){const n=e.path;if(n.match(/\/wp\/v2\/eventkoi_event\/\d+/)||n.includes("search="))return t(e)}if(!$z)return t(e);const n="string"==typeof e?e:e.path;if(!n)return t(e);if(n.includes("/wp/v2/media")){try{const e=new URL(n,"https://example.com"),t=parseInt(e.pathname.split("/").pop(),10);if(t&&qz.has(t))return Promise.resolve(qz.get(t));const r=e.searchParams.getAll("include[]"),o=e.searchParams.get("include"),a=[...r.map((e=>parseInt(e,10))),o?parseInt(o,10):null].filter((e=>Number.isFinite(e)));if(a.length){const e=a.filter((e=>e&&qz.has(e))).map((e=>qz.get(e)));if(e.length)return Promise.resolve(e)}}catch(e){}return t(e)}if(!n.includes("/wp/v2/eventkoi_event"))return t(e);try{const t=new URL(n,"https://example.com").searchParams,r=parseInt(t.get("per_page"),10)||$z.perPage||6,o=parseInt(t.get("page"),10)||$z.page||1,a=t.get("order")||$z.order||"desc",s=t.get("orderby")||$z.orderBy||"modified",i=(window?.eventkoi_params?.api||"/eventkoi/v1").replace(/\/$/,""),l=new URLSearchParams({per_page:r,page:o,order:a,orderby:s,include_instances:$z.includeInstances?1:0});$z.startDate&&l.set("start_date",Wz($z.startDate)),$z.endDate&&l.set("end_date",Wz($z.endDate)),$z.includeInstances&&$z.showInstancesForEvent?$z.instanceParentId&&l.set("parent_event",$z.instanceParentId):$z.calendars?.length&&l.set("id",$z.calendars.join(","));const c=`${i}/query_events${(window?.wpApiSettings?.root||"").includes("rest_route=")?"&":"?"}${l.toString()}`,d=(window?.wpApiSettings?.root||"/wp-json/").replace(/\/$/,""),u=c.replace(/^\//,""),f=c.startsWith("http")?c:`${d}/${u}`,h={credentials:"same-origin",headers:{"Content-Type":"application/json"}};return window?.wpApiSettings?.nonce&&(h.headers["X-WP-Nonce"]=window.wpApiSettings.nonce),fetch(f,h).then((e=>e.json())).then((t=>{qz.clear(),Gz+=1;const n=t?.events||[],o=t?.total||n.length||0,a={},s=n.map(((e,t)=>{const n=1e5*Gz+(t+1),r=String(e?.id||e?.event_id||n),o=e?.title?.rendered||e?.title||"",s=`${d}/wp/v2/media/${n}`;let i=null;if(e?.thumbnail){const t={id:n,source_url:e.thumbnail,alt_text:o,title:{rendered:o},caption:{rendered:""},media_type:"image",mime_type:"image/jpeg",media_details:{width:e?.thumbnail_width||null,height:e?.thumbnail_height||null,sizes:{full:{source_url:e.thumbnail,width:e?.thumbnail_width||null,height:e?.thumbnail_height||null}}}};qz.set(n,t),i=t}return a[String(r)]=e,{id:r,date:e?.start||e?.datetime||"",type:"eventkoi_event",link:e?.url||"",title:{rendered:o},excerpt:{rendered:e?.excerpt?.rendered||e?.description||""},content:{rendered:""},featured_media:e?.thumbnail?n:0,_eventkoi:e,_links:{"wp:featuredmedia":e?.thumbnail?[{href:s}]:[]},_embedded:i?{"wp:featuredmedia":[i]}:void 0}}));"undefined"!=typeof window&&(window.__eventkoiEventMap=a,window.__eventkoiEventMapVersion=Gz,window.dispatchEvent(new CustomEvent("eventkoiEventMapUpdated",{detail:{version:Gz}})),window.console);const i=Math.max(1,Math.ceil(o/r));return e&&"object"==typeof e&&!1===e.parse?new Response(JSON.stringify(s),{status:200,headers:{"Content-Type":"application/json","X-WP-Total":String(o),"X-WP-TotalPages":String(i)}}):(s._paging={total:o,totalPages:i},s)}))}catch(n){return t(e)}}));const Yz=window.wp.hooks;(0,Yz.addFilter)("editor.BlockEdit","eventkoi/event-query-loop/autofill-image",(e=>function(t){if("core/image"!==t.name)return(0,De.jsx)(e,{...t});const n=(0,Fz.useSelect)((()=>(e=>{const t=wp.data.select("core/block-editor").getBlockParents(e||"");if(!t||!t.length)return!1;const{getBlock:n}=wp.data.select("core/block-editor");return t.some((e=>{const t=n(e);return"core/query"===t?.name&&"eventkoi/event-query-loop"===t?.attributes?.namespace}))})(t.clientId)),[t.clientId]),{event:r}=(0,Oz.useContext)(Pz);if(!n||!r)return(0,De.jsx)(e,{...t});const o=r.title?.rendered||r.title||t.attributes?.alt||"",a={...t.attributes?.style||{}};return a.width||(a.width="100%"),a.height||(a.height="auto"),(0,De.jsx)(e,{...t,attributes:{...t.attributes,url:r.thumbnail||t.attributes?.url||"",alt:o,style:a}})}));const Zz={calendars:{type:"array",default:[]},startDate:{type:"string",default:""},endDate:{type:"string",default:""},includeInstances:{type:"boolean",default:!1},instanceParentId:{type:"integer",default:0},showInstancesForEvent:{type:"boolean",default:!1},eventkoiSig:{type:"string",default:""}};(0,Yz.addFilter)("blocks.registerBlockType","eventkoi/event-query-loop/extend-query-attributes",((e,t)=>"core/query"!==t?e:{...e,attributes:{...e.attributes,...Zz}}));const Kz="eventkoi/event-query-loop",Qz=[["core/post-template",{layout:{type:"constrained"}},[["eventkoi/event-query-item",{},[["core/group",{layout:{type:"default"},className:"eventkoi-event-loop-card"},[["core/image",{className:"eventkoi-event-image-default"}],["eventkoi/event-data",{field:"title",className:"ek-event-title-default"}],["eventkoi/event-data",{field:"timeline",className:"ek-event-timeline-default"}],["eventkoi/event-data",{field:"excerpt"}],["eventkoi/event-data",{field:"location",className:"ek-event-location-default"}]]]]]]],["core/query-pagination",{layout:{type:"flex",justifyContent:"space-between"}},[["core/query-pagination-previous",{label:(0,Ms.__)("Previous","eventkoi")}],["core/query-pagination-numbers",{}],["core/query-pagination-next",{label:(0,Ms.__)("Next","eventkoi")}]]],["core/query-no-results",{},[["core/paragraph",{placeholder:(0,Ms.__)("No events found.","eventkoi")}]]]];qD.registerBlockVariation&&(0,qD.registerBlockVariation)("core/query",{name:Kz,title:(0,Ms.__)("EK Event Query Loop","eventkoi"),description:(0,Ms.__)("Display EventKoi events using Query Loop controls.","eventkoi"),icon:function({width:e="16.918",height:t="21.89"}){return(0,De.jsx)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 16.918 21.89",children:(0,De.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,De.jsx)("g",{transform:"translate(0 13.696)",children:(0,De.jsx)(Di.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)"})}),(0,De.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,De.jsx)(Di.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)"})})]})})},attributes:{namespace:Kz,className:"eventkoi-query-loop",query:{perPage:6,pages:0,offset:0,postType:"eventkoi_event",order:"desc",orderBy:"modified",author:"",search:"",sticky:"",inherit:!1},displayLayout:{type:"list",columns:1}},category:"eventkoi-blocks",innerBlocks:Qz,allowedControls:[],scope:["block","inserter"],isActive:e=>!!e&&(e?.namespace===Kz||"eventkoi_event"===e?.query?.postType)}),(0,Yz.addFilter)("editor.BlockEdit","eventkoi/event-query-loop/data",(e=>t=>("core/query"!==t.name||t.attributes?.namespace!==Vz||((e=>{(0,Oz.useEffect)((()=>{const t=!!e?.showInstancesForEvent&&!!e?.instanceParentId,n=[e?.calendars?.join(",")||"",e?.startDate||"",e?.endDate||"",e?.includeInstances?"1":"0",t?"1":"0",e?.instanceParentId||"",e?.query?.order||"desc",e?.query?.orderBy||"modified",e?.query?.perPage||"6",e?.query?.pages||"1"].join("|");return Uz+=1,$z={perPage:e?.query?.perPage||6,page:e?.query?.pages||1,order:e?.query?.order||"desc",orderBy:e?.query?.orderBy||"modified",calendars:e?.calendars||[],startDate:e?.startDate||"",endDate:e?.endDate||"",includeInstances:!!e?.includeInstances,showInstancesForEvent:t,instanceParentId:e?.instanceParentId||0,sig:n},()=>{Uz-=1,Uz<=0&&($z=null,Uz=0)}}),[e?.query?.perPage,e?.query?.pages,e?.query?.order,e?.query?.orderBy,e?.calendars?.join(","),e?.startDate,e?.endDate,e?.includeInstances,e?.showInstancesForEvent,e?.instanceParentId,e?.query?.order,e?.query?.orderBy,e?.query?.perPage,e?.query?.pages])})(t.attributes),(0,Oz.useEffect)((()=>{const{attributes:e,setAttributes:n}=t,{query:r={}}=e,o=!!e?.showInstancesForEvent&&!!e?.instanceParentId,a=[e?.calendars?.join(",")||"",e?.startDate||"",e?.endDate||"",e?.includeInstances?"1":"0",o?"1":"0",e?.instanceParentId||"",e?.query?.order||"desc",e?.query?.orderBy||"modified",e?.query?.perPage||"6",e?.query?.pages||"1"].join("|");r.eventkoiSig!==a&&n({query:{...r,eventkoiSig:a}})}),[t.attributes?.calendars?.join(","),t.attributes?.startDate,t.attributes?.endDate,t.attributes?.includeInstances,t.attributes?.showInstancesForEvent,t.attributes?.instanceParentId,t.attributes?.query?.eventkoiSig,t.attributes?.query?.order,t.attributes?.query?.orderBy,t.attributes?.query?.perPage,t.attributes?.query?.pages]),(0,Oz.useEffect)((()=>{if("core/query"!==t.name||t.attributes?.namespace!==Vz||!t.isSelected)return()=>{};const e=new Set,n=new Set,r=(0,Ms.__)("Change design","eventkoi").toLowerCase(),o=t=>{t&&t.querySelectorAll("button, .components-button").forEach((t=>{const o=t.getAttribute("aria-label")||t.textContent?.trim()||t.innerText?.trim()||"";if(o&&o.toLowerCase().includes(r)){t.style.display="none",e.add(t);const r=t.closest(".block-editor-block-toolbar__slot");r&&(r.style.display="none",n.add(r))}}))};o(document);const a=new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{e instanceof HTMLElement&&o(e)}))}))}));return a.observe(document.body,{childList:!0,subtree:!0}),()=>{a.disconnect(),e.forEach((e=>e.style.display="")),n.forEach((e=>e.style.display=""))}}),[t.isSelected,t.attributes?.namespace,t.name]),(0,Oz.useEffect)((()=>{if("core/query"!==t.name||t.attributes?.namespace!==Vz||!t.isSelected)return()=>{};const e=new Set,n=t=>{if(!t)return;let n=t.previousElementSibling;for(;n&&n.classList.contains("components-panel__body");)n.style.display="none",e.add(n),n=n.previousElementSibling};document.querySelectorAll(".eventkoi-inspector-tabs").forEach((e=>n(e)));const r=new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{e instanceof HTMLElement&&(e.classList.contains("eventkoi-inspector-tabs")?n(e):e.querySelectorAll?.(".eventkoi-inspector-tabs")?.forEach((e=>n(e))))}))}))}));return r.observe(document.body,{childList:!0,subtree:!0}),()=>{r.disconnect(),e.forEach((e=>{e.style.display=""}))}}),[t.isSelected,t.attributes?.namespace,t.name])),(0,De.jsx)(e,{...t}))));const Jz=[["core/group",{layout:{type:"default"}}]];(0,qD.registerBlockType)("eventkoi/event-query-item",{apiVersion:2,title:(0,Ms.__)("EK Event Query Item","eventkoi"),description:(0,Ms.__)("Provides EventKoi event context inside Query Loop rows.","eventkoi"),category:"eventkoi-blocks",parent:["core/post-template"],usesContext:["postId","postType"],supports:{html:!1,inserter:!1},edit({context:e}){const{postId:t,postType:n}=e||{},r=(0,Oz.useContext)(Lz),{event:o,isLoading:a}=((e,t,n=null)=>{const[r,o]=(0,Oz.useState)(n),[a,s]=(0,Oz.useState)(!1),[i,l]=(0,Oz.useState)("undefined"!=typeof window&&window.__eventkoiEventMapVersion?window.__eventkoiEventMapVersion:0),c=(0,Oz.useRef)(!1);return(0,Oz.useEffect)((()=>{c.current=!1}),[e]),(0,Oz.useEffect)((()=>{n&&o(n)}),[n]),(0,Oz.useEffect)((()=>{const e=e=>{var t;const n=null!==(t=e?.detail?.version)&&void 0!==t?t:window.__eventkoiEventMapVersion||i+1;l(n)};return"undefined"!=typeof window&&window.addEventListener("eventkoiEventMapUpdated",e),()=>{"undefined"!=typeof window&&window.removeEventListener("eventkoiEventMapUpdated",e)}}),[]),(0,Oz.useEffect)((()=>{let n=!0,r=null;const a=null!=e?String(e):"",i="undefined"!=typeof window&&window.__eventkoiEventMap||{},l=a?i[a]||i[e]:null;if(l)return c.current=!0,o(l),s(!1),()=>{n=!1};if("eventkoi_event"===t){s(!0);const i=()=>{if(!n)return;const t="undefined"!=typeof window&&window.__eventkoiEventMap||{},l=a?t[a]||t[e]:null;if(l)return c.current=!0,o(l),void s(!1);r=setTimeout(i,120)};i();const l=setTimeout((()=>{n&&!c.current&&e&&"eventkoi_event"===t&&(c.current=!0,"undefined"!=typeof window&&window.console&&window.console.log("[EventKoi] fallback fetch",{postId:e}),Ne()({path:`${window?.eventkoi_params?.api||"/eventkoi/v1"}/query_events?include=${encodeURIComponent(e)}`,__eventkoiProxy:!0}).then((e=>{if(!n)return;const t=e?.events?.[0]||null;t&&o(t)})).finally((()=>{n&&s(!1)})))}),600);return()=>{n=!1,r&&clearTimeout(r),clearTimeout(l)}}return s(!1),()=>{n=!1}}),[e,t,n,i]),(0,Oz.useMemo)((()=>({event:r,isLoading:a})),[r,a])})(t,n,r),s=(0,$T.useBlockProps)({className:"eventkoi-event-query-item"});return t?(0,De.jsx)("div",{...s,children:(0,De.jsx)(Pz.Provider,{value:{event:o,isActive:!1,isLoading:a},children:(0,De.jsx)($T.InnerBlocks,{template:Jz,templateLock:!1})})}):(0,De.jsx)("div",{...s,children:(0,De.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,Ms.__)("This block must be placed inside a Query Loop.","eventkoi")})})},save:()=>(0,De.jsx)($T.InnerBlocks.Content,{})});var Xz=function(){return Xz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xz.apply(this,arguments)};function eH(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var tH=o(833),nH=o.n(tH),rH="-ms-",oH="-moz-",aH="-webkit-",sH="comm",iH="rule",lH="decl",cH="@keyframes",dH=Math.abs,uH=String.fromCharCode,fH=Object.assign;function hH(e){return e.trim()}function mH(e,t){return(e=t.exec(e))?e[0]:e}function pH(e,t,n){return e.replace(t,n)}function gH(e,t,n){return e.indexOf(t,n)}function vH(e,t){return 0|e.charCodeAt(t)}function yH(e,t,n){return e.slice(t,n)}function xH(e){return e.length}function bH(e){return e.length}function wH(e,t){return t.push(e),e}function kH(e,t){return e.filter((function(e){return!mH(e,t)}))}var _H=1,SH=1,CH=0,jH=0,EH=0,NH="";function DH(e,t,n,r,o,a,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:_H,column:SH,length:s,return:"",siblings:i}}function TH(e,t){return fH(DH("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function AH(e){for(;e.root;)e=TH(e.root,{children:[e]});wH(e,e.siblings)}function RH(){return EH=jH>0?vH(NH,--jH):0,SH--,10===EH&&(SH=1,_H--),EH}function MH(){return EH=jH<CH?vH(NH,jH++):0,SH++,10===EH&&(SH=1,_H++),EH}function IH(){return vH(NH,jH)}function OH(){return jH}function PH(e,t){return yH(NH,e,t)}function LH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function FH(e){return hH(PH(jH-1,BH(91===e?e+2:40===e?e+1:e)))}function zH(e){for(;(EH=IH())&&EH<33;)MH();return LH(e)>2||LH(EH)>3?"":" "}function HH(e,t){for(;--t&&MH()&&!(EH<48||EH>102||EH>57&&EH<65||EH>70&&EH<97););return PH(e,OH()+(t<6&&32==IH()&&32==MH()))}function BH(e){for(;MH();)switch(EH){case e:return jH;case 34:case 39:34!==e&&39!==e&&BH(EH);break;case 40:41===e&&BH(e);break;case 92:MH()}return jH}function VH(e,t){for(;MH()&&e+EH!==57&&(e+EH!==84||47!==IH()););return"/*"+PH(t,jH-1)+"*"+uH(47===e?e:MH())}function WH(e){for(;!LH(IH());)MH();return PH(e,jH)}function UH(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case lH:return e.return=e.return||e.value;case sH:return"";case cH:return e.return=e.value+"{"+UH(e.children,r)+"}";case iH:if(!xH(e.value=e.props.join(",")))return""}return xH(n=UH(e.children,r))?e.return=e.value+"{"+n+"}":""}function qH(e,t,n){switch(function(e,t){return 45^vH(e,0)?(((t<<2^vH(e,0))<<2^vH(e,1))<<2^vH(e,2))<<2^vH(e,3):0}(e,t)){case 5103:return aH+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return aH+e+e;case 4789:return oH+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return aH+e+oH+e+rH+e+e;case 5936:switch(vH(e,t+11)){case 114:return aH+e+rH+pH(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return aH+e+rH+pH(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return aH+e+rH+pH(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return aH+e+rH+e+e;case 6165:return aH+e+rH+"flex-"+e+e;case 5187:return aH+e+pH(e,/(\w+).+(:[^]+)/,aH+"box-$1$2"+rH+"flex-$1$2")+e;case 5443:return aH+e+rH+"flex-item-"+pH(e,/flex-|-self/g,"")+(mH(e,/flex-|baseline/)?"":rH+"grid-row-"+pH(e,/flex-|-self/g,""))+e;case 4675:return aH+e+rH+"flex-line-pack"+pH(e,/align-content|flex-|-self/g,"")+e;case 5548:return aH+e+rH+pH(e,"shrink","negative")+e;case 5292:return aH+e+rH+pH(e,"basis","preferred-size")+e;case 6060:return aH+"box-"+pH(e,"-grow","")+aH+e+rH+pH(e,"grow","positive")+e;case 4554:return aH+pH(e,/([^-])(transform)/g,"$1"+aH+"$2")+e;case 6187:return pH(pH(pH(e,/(zoom-|grab)/,aH+"$1"),/(image-set)/,aH+"$1"),e,"")+e;case 5495:case 3959:return pH(e,/(image-set\([^]*)/,aH+"$1$`$1");case 4968:return pH(pH(e,/(.+:)(flex-)?(.*)/,aH+"box-pack:$3"+rH+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+aH+e+e;case 4200:if(!mH(e,/flex-|baseline/))return rH+"grid-column-align"+yH(e,t)+e;break;case 2592:case 3360:return rH+pH(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,mH(e.props,/grid-\w+-end/)}))?~gH(e+(n=n[t].value),"span",0)?e:rH+pH(e,"-start","")+e+rH+"grid-row-span:"+(~gH(n,"span",0)?mH(n,/\d+/):+mH(n,/\d+/)-+mH(e,/\d+/))+";":rH+pH(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return mH(e.props,/grid-\w+-start/)}))?e:rH+pH(pH(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return pH(e,/(.+)-inline(.+)/,aH+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xH(e)-1-t>6)switch(vH(e,t+1)){case 109:if(45!==vH(e,t+4))break;case 102:return pH(e,/(.+:)(.+)-([^]+)/,"$1"+aH+"$2-$3$1"+oH+(108==vH(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gH(e,"stretch",0)?qH(pH(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return pH(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,s,i){return rH+n+":"+r+i+(o?rH+n+"-span:"+(a?s:+s-+r)+i:"")+e}));case 4949:if(121===vH(e,t+6))return pH(e,":",":"+aH)+e;break;case 6444:switch(vH(e,45===vH(e,14)?18:11)){case 120:return pH(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+aH+(45===vH(e,14)?"inline-":"")+"box$3$1"+aH+"$2$3$1"+rH+"$2box$3")+e;case 100:return pH(e,":",":"+rH)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return pH(e,"scroll-","scroll-snap-")+e}return e}function GH(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case lH:return void(e.return=qH(e.value,e.length,n));case cH:return UH([TH(e,{value:pH(e.value,"@","@"+aH)})],r);case iH:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(mH(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":AH(TH(e,{props:[pH(t,/:(read-\w+)/,":-moz-$1")]})),AH(TH(e,{props:[t]})),fH(e,{props:kH(n,r)});break;case"::placeholder":AH(TH(e,{props:[pH(t,/:(plac\w+)/,":"+aH+"input-$1")]})),AH(TH(e,{props:[pH(t,/:(plac\w+)/,":-moz-$1")]})),AH(TH(e,{props:[pH(t,/:(plac\w+)/,rH+"input-$1")]})),AH(TH(e,{props:[t]})),fH(e,{props:kH(n,r)})}return""}))}}function YH(e){return function(e){return NH="",e}(ZH("",null,null,null,[""],e=function(e){return _H=SH=1,CH=xH(NH=e),jH=0,[]}(e),0,[0],e))}function ZH(e,t,n,r,o,a,s,i,l){for(var c=0,d=0,u=s,f=0,h=0,m=0,p=1,g=1,v=1,y=0,x="",b=o,w=a,k=r,_=x;g;)switch(m=y,y=MH()){case 40:if(108!=m&&58==vH(_,u-1)){-1!=gH(_+=pH(FH(y),"&","&\f"),"&\f",dH(c?i[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=FH(y);break;case 9:case 10:case 13:case 32:_+=zH(m);break;case 92:_+=HH(OH()-1,7);continue;case 47:switch(IH()){case 42:case 47:wH(QH(VH(MH(),OH()),t,n,l),l);break;default:_+="/"}break;case 123*p:i[c++]=xH(_)*v;case 125*p:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:-1==v&&(_=pH(_,/\f/g,"")),h>0&&xH(_)-u&&wH(h>32?JH(_+";",r,n,u-1,l):JH(pH(_," ","")+";",r,n,u-2,l),l);break;case 59:_+=";";default:if(wH(k=KH(_,t,n,c,d,o,i,x,b=[],w=[],u,a),a),123===y)if(0===d)ZH(_,t,k,k,b,a,u,i,w);else switch(99===f&&110===vH(_,3)?100:f){case 100:case 108:case 109:case 115:ZH(e,k,k,r&&wH(KH(e,k,k,0,0,o,i,x,o,b=[],u,w),w),o,w,u,i,r?b:w);break;default:ZH(_,k,k,k,[""],w,0,i,w)}}c=d=h=0,p=v=1,x=_="",u=s;break;case 58:u=1+xH(_),h=m;default:if(p<1)if(123==y)--p;else if(125==y&&0==p++&&125==RH())continue;switch(_+=uH(y),y*p){case 38:v=d>0?1:(_+="\f",-1);break;case 44:i[c++]=(xH(_)-1)*v,v=1;break;case 64:45===IH()&&(_+=FH(MH())),f=IH(),d=u=xH(x=_+=WH(OH())),y++;break;case 45:45===m&&2==xH(_)&&(p=0)}}return a}function KH(e,t,n,r,o,a,s,i,l,c,d,u){for(var f=o-1,h=0===o?a:[""],m=bH(h),p=0,g=0,v=0;p<r;++p)for(var y=0,x=yH(e,f+1,f=dH(g=s[p])),b=e;y<m;++y)(b=hH(g>0?h[y]+" "+x:pH(x,/&\f/g,h[y])))&&(l[v++]=b);return DH(e,t,n,0===o?iH:i,l,c,d,u)}function QH(e,t,n,r){return DH(e,t,n,sH,uH(EH),yH(e,2,-2),0,r)}function JH(e,t,n,r,o){return DH(e,t,n,lH,yH(e,0,r),yH(e,r+1,-1),r,o)}var XH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eB="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",tB="active",nB="data-styled-version",rB="6.1.18",oB="/*!sc*/\n",aB="undefined"!=typeof window&&"undefined"!=typeof document,sB=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),iB=(new Set,Object.freeze([])),lB=Object.freeze({});var cB=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),dB=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,uB=/(^-|-$)/g;function fB(e){return e.replace(dB,"-").replace(uB,"")}var hB=/(a)(d)/gi,mB=function(e){return String.fromCharCode(e+(e>25?39:97))};function pB(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=mB(t%52)+n;return(mB(t%52)+n).replace(hB,"$1-$2")}var gB,vB=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},yB=function(e){return vB(5381,e)};function xB(e){return"string"==typeof e&&!0}var bB="function"==typeof Symbol&&Symbol.for,wB=bB?Symbol.for("react.memo"):60115,kB=bB?Symbol.for("react.forward_ref"):60112,_B={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},SB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},CB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jB=((gB={})[kB]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gB[wB]=CB,gB);function EB(e){return("type"in(t=e)&&t.type.$$typeof)===wB?CB:"$$typeof"in e?jB[e.$$typeof]:_B;var t}var NB=Object.defineProperty,DB=Object.getOwnPropertyNames,TB=Object.getOwnPropertySymbols,AB=Object.getOwnPropertyDescriptor,RB=Object.getPrototypeOf,MB=Object.prototype;function IB(e,t,n){if("string"!=typeof t){if(MB){var r=RB(t);r&&r!==MB&&IB(e,r,n)}var o=DB(t);TB&&(o=o.concat(TB(t)));for(var a=EB(e),s=EB(t),i=0;i<o.length;++i){var l=o[i];if(!(l in SB||n&&n[l]||s&&l in s||a&&l in a)){var c=AB(t,l);try{NB(e,l,c)}catch(e){}}}}return e}function OB(e){return"function"==typeof e}function PB(e){return"object"==typeof e&&"styledComponentId"in e}function LB(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function FB(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function zB(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function HB(e,t,n){if(void 0===n&&(n=!1),!n&&!zB(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=HB(e[r],t[r]);else if(zB(t))for(var r in t)e[r]=HB(e[r],t[r]);return e}function BB(e,t){Object.defineProperty(e,"toString",{value:t})}function VB(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var WB=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw VB(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),i=(a=0,t.length);a<i;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(oB);return t},e}(),UB=new Map,$B=new Map,qB=1,GB=function(e){if(UB.has(e))return UB.get(e);for(;$B.has(qB);)qB++;var t=qB++;return UB.set(e,t),$B.set(t,e),t},YB=function(e,t){qB=t+1,UB.set(e,t),$B.set(t,e)},ZB="style[".concat(eB,"][").concat(nB,'="').concat(rB,'"]'),KB=new RegExp("^".concat(eB,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),QB=function(e,t,n){for(var r,o=n.split(","),a=0,s=o.length;a<s;a++)(r=o[a])&&e.registerName(t,r)},JB=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(oB),o=[],a=0,s=r.length;a<s;a++){var i=r[a].trim();if(i){var l=i.match(KB);if(l){var c=0|parseInt(l[1],10),d=l[2];0!==c&&(YB(d,c),QB(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(i)}}},XB=function(e){for(var t=document.querySelectorAll(ZB),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(eB)!==tB&&(JB(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function eV(){return o.nc}var tV=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(eB,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(eB,tB),r.setAttribute(nB,rB);var s=eV();return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},nV=function(){function e(e){this.element=tV(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw VB(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),rV=function(){function e(e){this.element=tV(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),oV=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),aV=aB,sV={isServer:!aB,useCSSOMInjection:!sB},iV=function(){function e(e,t,n){void 0===e&&(e=lB),void 0===t&&(t={});var r=this;this.options=Xz(Xz({},sV),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&aB&&aV&&(aV=!1,XB(this)),BB(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return $B.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),s=t.getGroup(n);if(void 0===a||!a.size||0===s.length)return"continue";var i="".concat(eB,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(s).concat(i,'{content:"').concat(l,'"}').concat(oB)},a=0;a<n;a++)o(a);return r}(r)}))}return e.registerId=function(e){return GB(e)},e.prototype.rehydrate=function(){!this.server&&aB&&XB(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Xz(Xz({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new oV(n):t?new nV(n):new rV(n)}(this.options),new WB(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(GB(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(GB(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(GB(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),lV=/&/g,cV=/^\s*\/\/.*$/gm;function dV(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=dV(e.children,t)),e}))}function uV(e){var t,n,r,o=void 0===e?lB:e,a=o.options,s=void 0===a?lB:a,i=o.plugins,l=void 0===i?iB:i,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=l.slice();d.push((function(e){e.type===iH&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(lV,n).replace(r,c))})),s.prefix&&d.push(GH),d.push($H);var u=function(e,o,a,i){void 0===o&&(o=""),void 0===a&&(a=""),void 0===i&&(i="&"),t=i,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(cV,""),c=YH(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l);s.namespace&&(c=dV(c,s.namespace));var u,f,h,m=[];return UH(c,(u=d.concat((h=function(e){return m.push(e)},function(e){e.root||(e=e.return)&&h(e)})),f=bH(u),function(e,t,n,r){for(var o="",a=0;a<f;a++)o+=u[a](e,t,n,r)||"";return o})),m};return u.hash=l.length?l.reduce((function(e,t){return t.name||VB(15),vB(e,t.name)}),5381).toString():"",u}var fV=new iV,hV=uV(),mV=r().createContext({shouldForwardProp:void 0,styleSheet:fV,stylis:hV}),pV=(mV.Consumer,r().createContext(void 0));function gV(){return(0,e.useContext)(mV)}function vV(t){var n=(0,e.useState)(t.stylisPlugins),o=n[0],a=n[1],s=gV().styleSheet,i=(0,e.useMemo)((function(){var e=s;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,s]),l=(0,e.useMemo)((function(){return uV({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:o})}),[t.enableVendorPrefixes,t.namespace,o]);(0,e.useEffect)((function(){nH()(o,t.stylisPlugins)||a(t.stylisPlugins)}),[t.stylisPlugins]);var c=(0,e.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:i,stylis:l}}),[t.shouldForwardProp,i,l]);return r().createElement(mV.Provider,{value:c},r().createElement(pV.Provider,{value:l},t.children))}var yV=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=hV);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,BB(this,(function(){throw VB(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=hV),this.name+e.hash},e}(),xV=function(e){return e>="A"&&e<="Z"};function bV(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;xV(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var wV=function(e){return null==e||!1===e||""===e},kV=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!wV(a)&&(Array.isArray(a)&&a.isCss||OB(a)?r.push("".concat(bV(o),":"),a,";"):zB(a)?r.push.apply(r,eH(eH(["".concat(o," {")],kV(a),!1),["}"],!1)):r.push("".concat(bV(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in XH||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function _V(e,t,n,r){return wV(e)?[]:PB(e)?[".".concat(e.styledComponentId)]:OB(e)?!OB(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:_V(e(t),t,n,r):e instanceof yV?n?(e.inject(n,r),[e.getName(r)]):[e]:zB(e)?kV(e):Array.isArray(e)?Array.prototype.concat.apply(iB,e.map((function(e){return _V(e,t,n,r)}))):[e.toString()];var o}function SV(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(OB(n)&&!PB(n))return!1}return!0}var CV=yB(rB),jV=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&SV(e),this.componentId=t,this.baseHash=vB(CV,t),this.baseStyle=n,iV.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=LB(r,this.staticRulesId);else{var o=FB(_V(this.rules,e,t,n)),a=pB(vB(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}r=LB(r,a),this.staticRulesId=a}else{for(var i=vB(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var d=this.rules[c];if("string"==typeof d)l+=d;else if(d){var u=FB(_V(d,e,t,n));i=vB(i,u+c),l+=u}}if(l){var f=pB(i>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=LB(r,f)}}return r},e}(),EV=r().createContext(void 0);EV.Consumer;var NV={};function DV(t,n,o){var a=PB(t),s=t,i=!xB(t),l=n.attrs,c=void 0===l?iB:l,d=n.componentId,u=void 0===d?function(e,t){var n="string"!=typeof e?"sc":fB(e);NV[n]=(NV[n]||0)+1;var r="".concat(n,"-").concat(function(e){return pB(yB(e)>>>0)}(rB+n+NV[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):d,f=n.displayName,h=void 0===f?function(e){return xB(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(t):f,m=n.displayName&&n.componentId?"".concat(fB(n.displayName),"-").concat(n.componentId):n.componentId||u,p=a&&s.attrs?s.attrs.concat(c).filter(Boolean):c,g=n.shouldForwardProp;if(a&&s.shouldForwardProp){var v=s.shouldForwardProp;if(n.shouldForwardProp){var y=n.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var x=new jV(o,m,a?s.componentStyle:void 0);function b(t,n){return function(t,n,o){var a=t.attrs,s=t.componentStyle,i=t.defaultProps,l=t.foldedComponentIds,c=t.styledComponentId,d=t.target,u=r().useContext(EV),f=gV(),h=t.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){return void 0===n&&(n=lB),e.theme!==n.theme&&e.theme||t||n.theme}(n,u,i)||lB,p=function(e,t,n){for(var r,o=Xz(Xz({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=OB(r=e[a])?r(o):r;for(var i in s)o[i]="className"===i?LB(o[i],s[i]):"style"===i?Xz(Xz({},o[i]),s[i]):s[i]}return t.className&&(o.className=LB(o.className,t.className)),o}(a,n,m),g=p.as||d,v={};for(var y in p)void 0===p[y]||"$"===y[0]||"as"===y||"theme"===y&&p.theme===m||("forwardedAs"===y?v.as=p.forwardedAs:h&&!h(y,g)||(v[y]=p[y]));var x=function(e,t){var n=gV();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,p),b=LB(l,c);return x&&(b+=" "+x),p.className&&(b+=" "+p.className),v[xB(g)&&!cB.has(g)?"class":"className"]=b,o&&(v.ref=o),(0,e.createElement)(g,v)}(w,t,n)}b.displayName=h;var w=r().forwardRef(b);return w.attrs=p,w.componentStyle=x,w.displayName=h,w.shouldForwardProp=g,w.foldedComponentIds=a?LB(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=m,w.target=a?s.target:t,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)HB(e,o[r],!0);return e}({},s.defaultProps,e):e}}),BB(w,(function(){return".".concat(w.styledComponentId)})),i&&IB(w,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function TV(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var AV=function(e){return Object.assign(e,{isCss:!0})};function RV(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(OB(e)||zB(e))return AV(_V(TV(iB,eH([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?_V(r):AV(_V(TV(r,t)))}function MV(e,t,n){if(void 0===n&&(n=lB),!t)throw VB(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,RV.apply(void 0,eH([r],o,!1)))};return r.attrs=function(r){return MV(e,t,Xz(Xz({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return MV(e,t,Xz(Xz({},n),r))},r}var IV=function(e){return MV(DV,e)},OV=IV;function PV({children:e}){const t=OV.div` 7 7 display: grid; 8 8 gap: calc(16px); -
eventkoi-lite/trunk/scripts/backend/src/blocks/calendar/edit.js
r3381596 r3430556 327 327 meridiem: "short", 328 328 }), 329 }; 330 const calendarTimeZone = timezone && timezone !== "local" ? timezone : null; 331 const formatInCalendarTz = (date, options) => { 332 const opts = calendarTimeZone 333 ? { ...options, timeZone: calendarTimeZone } 334 : options; 335 336 try { 337 return new Intl.DateTimeFormat(localeToUse, opts).format(date); 338 } catch { 339 return new Intl.DateTimeFormat(localeToUse, options).format(date); 340 } 329 341 }; 330 342 … … 395 407 dayHeaderContent={(args) => { 396 408 const { date, view } = args; 397 const dayName = date.toLocaleDateString(localeToUse, { 398 weekday: "short", 399 }); 409 const dayName = formatInCalendarTz(date, { weekday: "short" }); 400 410 401 411 // For week/day views → two lines: weekday + bold number 402 412 if (view.type.startsWith("timeGrid")) { 403 const dayNum = date.getDate();413 const dayNum = formatInCalendarTz(date, { day: "numeric" }); 404 414 return ( 405 415 <div className="flex flex-col items-center leading-tight"> -
eventkoi-lite/trunk/scripts/frontend/build/index.asset.php
r3420803 r3430556 1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-primitives'), 'version' => '4 d335461a20ff5b46c1d');1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-primitives'), 'version' => '460f3627e0cf2f1934d1'); -
eventkoi-lite/trunk/scripts/frontend/build/index.js
r3420803 r3430556 1 (()=>{"use strict";var e,t,n={17:e=>{e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!=o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},338:(e,t,n)=>{var r=n(795);t.H=r.createRoot,r.hydrateRoot},609:e=>{e.exports=window.React},633:(e,t,n)=>{var r=n(609);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},l={};function c(e){return!!a.call(l,e)||!a.call(s,e)&&(i.test(e)?l[e]=!0:(s[e]=!0,!1))}function u(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var f=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(f,h);d[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(f,h);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(f,h);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(p).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),p[t]=p[e]}))}));var g=/["'&<>]/;function v(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var y=/([A-Z])/g,b=/^ms-/,w=Array.isArray;function x(e,t){return{insertionMode:e,selectedValue:t}}var k=new Map;function S(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(a.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var s=v(r);i=v((""+i).trim())}else{s=r;var l=k.get(s);void 0!==l||(l=v(s.replace(y,"-$1").toLowerCase().replace(b,"-ms-")),k.set(s,l)),s=l,i="number"==typeof i?0===i||a.call(p,r)?""+i:i+"px":v((""+i).trim())}t?(t=!1,e.push(' style="',s,":",i)):e.push(";",s,":",i)}}t||e.push('"')}function E(e,t,n,r){switch(n){case"style":return void S(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',v(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',v(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',v(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',v(r),'"')}}else if(c(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(r),'"')}}function C(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function D(e,t,n,r){e.push(_(n));var o,i=n=null;for(o in t)if(a.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:E(e,r,o,s)}}return e.push(">"),C(e,i,n),"string"==typeof n?(e.push(v(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,A=new Map;function _(e){var t=A.get(e);if(void 0===t){if(!T.test(e))throw Error(o(65,e));t="<"+e,A.set(e,t)}return t}function N(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var M=/[<\u2028\u2029]/g;function R(e){return JSON.stringify(e).replace(M,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function O(e,t,n,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var j=Object.assign,I=Symbol.for("react.element"),P=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),W=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),q=Symbol.for("react.scope"),Z=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),K=Symbol.iterator;function J(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case L:return"Fragment";case P:return"Portal";case z:return"Profiler";case F:return"StrictMode";case V:return"Suspense";case U:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case H:return(e._context.displayName||"Context")+".Provider";case B:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $:return null!==(t=e.displayName||null)?t:J(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return J(e(t))}catch(e){}}return null}var X={};function ee(e,t){if(!(e=e.contextTypes))return X;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?ne(e,t):ae(e,t)}function ie(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?ne(e,n):ie(e,n),t.context._currentValue2=t.value}function se(e){var t=te;t!==e&&(null===t?oe(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ae(t,e):ie(t,e),te=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue2:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:j({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var s=t[i];null!=(s="function"==typeof s?s.call(e,a,n,r):s)&&(o?(o=!1,a=j({},a,s)):j(a,s))}e.state=a}else a.queue=null}var ue={id:1,overflow:""};function de(e,t,n){var r=e.id;e=e.overflow;var o=32-fe(r)-1;r&=~(1<<o),n+=1;var a=32-fe(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-fe(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var fe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(he(e)/pe|0)|0},he=Math.log,pe=Math.LN2,me="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ge=null,ve=null,ye=null,be=null,we=!1,xe=!1,ke=0,Se=null,Ee=0;function Ce(){if(null===ge)throw Error(o(321));return ge}function De(){if(0<Ee)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Te(){return null===be?null===ye?(we=!1,ye=be=De()):(we=!0,be=ye):null===be.next?(we=!1,be=be.next=De()):(we=!0,be=be.next),be}function Ae(){ve=ge=null,xe=!1,ye=null,Ee=0,be=Se=null}function _e(e,t){return"function"==typeof t?t(e):t}function Ne(e,t,n){if(ge=Ce(),be=Te(),we){var r=be.queue;if(t=r.dispatch,null!==Se&&void 0!==(n=Se.get(r))){Se.delete(r),r=be.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return be.memoizedState=r,[r,t]}return[be.memoizedState,t]}return e=e===_e?"function"==typeof t?t():t:void 0!==n?n(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Re.bind(null,ge,e),[be.memoizedState,e]}function Me(e,t){if(ge=Ce(),t=void 0===t?null:t,null!==(be=Te())){var n=be.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!me(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),be.memoizedState=[e,t],e}function Re(e,t,n){if(25<=Ee)throw Error(o(301));if(e===ge)if(xe=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Oe(){throw Error(o(394))}function je(){}var Ie={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Me,useReducer:Ne,useRef:function(e){ge=Ce();var t=(be=Te()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return Ne(_e,e)},useInsertionEffect:je,useLayoutEffect:function(){},useCallback:function(e,t){return Me((function(){return e}),t)},useImperativeHandle:je,useEffect:je,useDebugValue:je,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,Oe]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-fe(e)-1)).toString(32)+t;var n=Pe;if(null===n)throw Error(o(404));return t=ke++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Pe=null,Le=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function ze(){}function He(e,t,n,r,o,a,i,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:s};return o.add(l),l}function We(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function Be(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ve(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ue(e,t,n,r,o){for(ge={},ve=t,ke=0,e=n(r,o);xe;)xe=!1,ke=0,Ee+=1,be=null,e=n(r,o);return Ae(),e}function $e(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in i))throw Error(o(108,J(r)||"Unknown",l));r=j({},s,n)}t.legacyContext=r,Ze(e,t,a),t.legacyContext=s}else Ze(e,t,a)}function Ge(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function qe(e,t,n,i,s){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){s=ee(n,t.legacyContext);var l=n.contextType;ce(l=new n(i,"object"==typeof l&&null!==l?l._currentValue2:s),n,i,s),$e(e,t,l,n)}else{s=Ue(e,t,n,i,l=ee(n,t.legacyContext));var u=0!==ke;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)ce(s,n,i,l),$e(e,t,s,n);else if(u){i=t.treeContext,t.treeContext=de(i,1,0);try{Ze(e,t,s)}finally{t.treeContext=i}}else Ze(e,t,s)}else{if("string"!=typeof n){switch(n){case Y:case Z:case F:case z:case L:case U:return void Ze(e,t,i.children);case q:throw Error(o(343));case V:e:{n=t.blockedBoundary,s=t.blockedSegment,l=i.fallback,i=i.children;var d={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:u=new Set,errorDigest:null},f=We(0,s.chunks.length,d,s.formatContext,!1,!1);s.children.push(f),s.lastPushedText=!1;var h=We(0,0,null,s.formatContext,!1,!1);h.parentFlushed=!0,t.blockedBoundary=d,t.blockedSegment=h;try{if(Qe(e,t,i),e.responseState.generateStaticMarkup||h.lastPushedText&&h.textEmbedded&&h.chunks.push("\x3c!-- --\x3e"),h.status=1,Xe(d,h),0===d.pendingTasks)break e}catch(t){h.status=4,d.forceClientRender=!0,d.errorDigest=Be(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=s}t=He(e,l,n,f,u,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case B:if(i=Ue(e,t,n.render,i,s),0!==ke){n=t.treeContext,t.treeContext=de(n,1,0);try{Ze(e,t,i)}finally{t.treeContext=n}}else Ze(e,t,i);return;case $:return void qe(e,t,n=n.type,i=Ge(n,i),s);case H:if(s=i.children,n=n._context,i=i.value,l=n._currentValue2,n._currentValue2=i,te=i={parent:u=te,depth:null===u?0:u.depth+1,context:n,parentValue:l,value:i},t.context=i,Ze(e,t,s),null===(e=te))throw Error(o(403));return i=e.parentValue,e.context._currentValue2=i===Q?e.context._defaultValue:i,e=te=e.parent,void(t.context=e);case W:return void Ze(e,t,i=(i=i.children)(n._currentValue2));case G:return void qe(e,t,n=(s=n._init)(n._payload),i=Ge(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(l=function(e,t,n,i,s){switch(t){case"select":e.push(_("select"));var l=null,u=null;for(p in n)if(a.call(n,p)){var d=n[p];if(null!=d)switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:E(e,i,p,d)}}return e.push(">"),C(e,u,l),l;case"option":u=s.selectedValue,e.push(_("option"));var f=d=null,h=null,p=null;for(l in n)if(a.call(n,l)){var m=n[l];if(null!=m)switch(l){case"children":d=m;break;case"selected":h=m;break;case"dangerouslySetInnerHTML":p=m;break;case"value":f=m;default:E(e,i,l,m)}}if(null!=u)if(n=null!==f?""+f:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),w(u)){for(i=0;i<u.length;i++)if(""+u[i]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),C(e,p,d),d;case"textarea":for(d in e.push(_("textarea")),p=u=l=null,n)if(a.call(n,d)&&null!=(f=n[d]))switch(d){case"children":p=f;break;case"value":l=f;break;case"defaultValue":u=f;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:E(e,i,d,f)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=p){if(null!=l)throw Error(o(92));if(w(p)&&1<p.length)throw Error(o(93));l=""+p}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(u in e.push(_("input")),f=p=d=l=null,n)if(a.call(n,u)&&null!=(h=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":f=h;break;case"defaultValue":d=h;break;case"checked":p=h;break;case"value":l=h;break;default:E(e,i,u,h)}return null!==p?E(e,i,"checked",p):null!==f&&E(e,i,"checked",f),null!==l?E(e,i,"value",l):null!==d&&E(e,i,"value",d),e.push("/>"),null;case"menuitem":for(var g in e.push(_("menuitem")),n)if(a.call(n,g)&&null!=(l=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:E(e,i,g,l)}return e.push(">"),null;case"title":for(m in e.push(_("title")),l=null,n)if(a.call(n,m)&&null!=(u=n[m]))switch(m){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:E(e,i,m,u)}return e.push(">"),l;case"listing":case"pre":for(f in e.push(_(t)),u=l=null,n)if(a.call(n,f)&&null!=(d=n[f]))switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;default:E(e,i,f,d)}if(e.push(">"),null!=u){if(null!=l)throw Error(o(60));if("object"!=typeof u||!("__html"in u))throw Error(o(61));null!=(n=u.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(_(t)),n)if(a.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:E(e,i,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return D(e,n,t,i);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),D(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return D(e,n,t,i);for(h in e.push(_(t)),u=l=null,n)if(a.call(n,h)&&null!=(d=n[h]))switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":S(e,i,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(h)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",h,'="',v(d),'"')}return e.push(">"),C(e,u,l),l}}((s=t.blockedSegment).chunks,n,i,e.responseState,s.formatContext),s.lastPushedText=!1,u=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return x(1,null!=n.value?n.value:n.defaultValue);case"svg":return x(2,null);case"math":return x(3,null);case"foreignObject":return x(1,null);case"table":return x(4,null);case"thead":case"tbody":case"tfoot":return x(5,null);case"colgroup":return x(7,null);case"tr":return x(6,null)}return 4<=e.insertionMode||0===e.insertionMode?x(1,null):e}(u,n,i),Qe(e,t,l),s.formatContext=u,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.chunks.push("</",n,">")}s.lastPushedText=!1}}function Ze(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case I:return void qe(e,t,n.type,n.props,n.ref);case P:throw Error(o(257));case G:var r=n._init;return void Ze(e,t,n=r(n._payload))}if(w(n))return void Ye(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=K&&n[K]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);Ye(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=O(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=O(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ye(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=de(a,r,o);try{Qe(e,t,n[o])}finally{t.treeContext=a}}}function Qe(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return Ze(e,t,n)}catch(l){if(Ae(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,se(a),l;n=l;var i=t.blockedSegment,s=We(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(s),i.lastPushedText=!1,e=He(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,se(a)}}function Ke(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Je(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Je(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Xe(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Xe(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ze,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Xe(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ke,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Xe(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Le.current;Le.current=Ie;var r=Pe;Pe=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],s=e,l=i.blockedSegment;if(0===l.status){se(i.context);try{Ze(s,i,i.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),i.abortSet.delete(i),l.status=1,et(s,i.blockedBoundary,l)}catch(e){if(Ae(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),l.status=4;var u=i.blockedBoundary,d=e,f=Be(s,d);null===u?Ve(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=f,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&st(e,e.destination)}catch(t){Be(e,t),Ve(e,t)}finally{Pe=r,Le.current=n,n===Ie&&se(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)t.push(r[i]);a=rt(e,t,a)}for(;i<r.length-1;i++)t.push(r[i]);return i<r.length&&(a=t.push(r[i])),a;default:throw Error(o(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=v(r),t.push(r),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;return a=a.boundaryPrefix+i.toString(16),r=r.id=a,N(t,e.responseState,r),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),N(t,e.responseState,r.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.formatContext)}function at(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)it(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function it(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t.push('")<\/script>')}function st(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var a,i=e.clientRenderedBoundaries;for(a=0;a<i.length;a++){var s=i[a];r=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,f=s.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(o(395));if(r.push(c),r.push('"'),u||d||f){r.push(",");var h=R(u||"");r.push(h)}if(d||f){r.push(",");var p=R(d||"");r.push(p)}if(f){r.push(",");var m=R(f);r.push(m)}if(!r.push(")<\/script>"))return e.destination=null,a++,void i.splice(0,a)}i.splice(0,a);var g=e.completedBoundaries;for(a=0;a<g.length;a++)if(!at(e,t,g[a]))return e.destination=null,a++,void g.splice(0,a);g.splice(0,a);var v=e.partialBoundaries;for(a=0;a<v.length;a++){var y=v[a];e:{i=e,s=t;var b=y.completedSegments;for(l=0;l<b.length;l++)if(!it(i,s,y,b[l])){l++,b.splice(0,l);var w=!1;break e}b.splice(0,l),w=!0}if(!w)return e.destination=null,a++,void v.splice(0,a)}v.splice(0,a);var x=e.completedBoundaries;for(a=0;a<x.length;a++)if(!at(e,t,x[a]))return e.destination=null,a++,void x.splice(0,a);x.splice(0,a)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Je(n,e,t)})),n.clear(),null!==e.destination&&st(e,e.destination)}catch(t){Be(e,t),Ve(e,t)}}function ct(){}function ut(e,t,n,r){var a=!1,i=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){a=!0,i=e}},c=!1;if(e=function(e,t,n,r,o,a,i){var s=[],l=new Set;return(n=We(t={destination:null,responseState:t,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:l,pingedTasks:s,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Fe:o,onAllReady:ze,onShellReady:void 0===i?ze:i,onShellError:ze,onFatalError:ze},0,null,n,!1,!1)).parentFlushed=!0,e=He(t,e,null,n,l,X,null,ue),s.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,0,(function(){c=!0})),tt(e),lt(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{st(e,l)}catch(t){Be(e,t),Ve(e,t)}}if(a)throw i;if(!c)throw Error(o(426));return s}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return ut(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return ut(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},795:e=>{e.exports=window.ReactDOM},848:(e,t,n)=>{var r,o;r=n(633),o=n(911),r.version,r.renderToString,t.qV=r.renderToStaticMarkup,r.renderToNodeStream,r.renderToStaticNodeStream,o.renderToReadableStream},911:(e,t,n)=>{var r=n(609);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=null,i=0;function s(e,t){if(0!==t.length)if(512<t.length)0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=new Uint8Array(512),i=0),e.enqueue(t);else{var n=a.length-i;n<t.length&&(0===n?e.enqueue(a):(a.set(t.subarray(0,n),i),e.enqueue(a),t=t.subarray(n)),a=new Uint8Array(512),i=0),a.set(t,i),i+=t.length}}function l(e,t){return s(e,t),!0}function c(e){a&&0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=null,i=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function f(e){return u.encode(e)}function h(e,t){"function"==typeof e.error?e.error(t):e.close()}var p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function y(e){return!!p.call(v,e)||!p.call(g,e)&&(m.test(e)?v[e]=!0:(g[e]=!0,!1))}function b(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){w[e]=new b(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];w[t]=new b(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){w[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){w[e]=new b(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){w[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){w[e]=new b(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){w[e]=new b(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){w[e]=new b(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){w[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var x=/[\-:]([a-z])/g;function k(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(x,k);w[t]=new b(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(x,k);w[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(x,k);w[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E=["Webkit","ms","Moz","O"];Object.keys(S).forEach((function(e){E.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),S[t]=S[e]}))}));var C=/["'&<>]/;function D(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=C.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var T=/([A-Z])/g,A=/^ms-/,_=Array.isArray,N=f("<script>"),M=f("<\/script>"),R=f('<script src="'),O=f('<script type="module" src="'),j=f('" async=""><\/script>'),I=/(<\/|<)(s)(cript)/gi;function P(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function L(e,t){return{insertionMode:e,selectedValue:t}}var F=f("\x3c!-- --\x3e");function z(e,t,n,r){return""===t?r:(r&&e.push(F),e.push(d(D(t))),!0)}var H=new Map,W=f(' style="'),B=f(":"),V=f(";");function U(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(p.call(n,r)){var a=n[r];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===r.indexOf("--")){var i=d(D(r));a=d(D((""+a).trim()))}else{i=r;var s=H.get(i);void 0!==s||(s=f(D(i.replace(T,"-$1").toLowerCase().replace(A,"-ms-"))),H.set(i,s)),i=s,a="number"==typeof a?0===a||p.call(S,r)?d(""+a):d(a+"px"):d(D((""+a).trim()))}t?(t=!1,e.push(W,i,B,a)):e.push(V,i,B,a)}}t||e.push(q)}var $=f(" "),G=f('="'),q=f('"'),Z=f('=""');function Y(e,t,n,r){switch(n){case"style":return void U(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push($,n,Z);break;case 4:!0===r?e.push($,n,Z):!1!==r&&e.push($,n,G,d(D(r)),q);break;case 5:isNaN(r)||e.push($,n,G,d(D(r)),q);break;case 6:!isNaN(r)&&1<=r&&e.push($,n,G,d(D(r)),q);break;default:t.sanitizeURL&&(r=""+r),e.push($,n,G,d(D(r)),q)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push($,d(n),G,d(D(r)),q)}}var Q=f(">"),K=f("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(d(""+t))}}var X=f(' selected=""');function ee(e,t,n,r){e.push(oe(n));var o,a=n=null;for(o in t)if(p.call(t,o)){var i=t[o];if(null!=i)switch(o){case"children":n=i;break;case"dangerouslySetInnerHTML":a=i;break;default:Y(e,r,o,i)}}return e.push(Q),J(e,a,n),"string"==typeof n?(e.push(d(D(n))),null):n}var te=f("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=f("<"+e),re.set(e,t)}return t}var ae=f("<!DOCTYPE html>");var ie=f("</"),se=f(">"),le=f('<template id="'),ce=f('"></template>'),ue=f("\x3c!--$--\x3e"),de=f('\x3c!--$?--\x3e<template id="'),fe=f('"></template>'),he=f("\x3c!--$!--\x3e"),pe=f("\x3c!--/$--\x3e"),me=f("<template"),ge=f('"'),ve=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var ye=f("></template>");function be(e,t,n){if(s(e,de),null===n)throw Error(o(395));return s(e,n),l(e,fe)}var we=f('<div hidden id="'),xe=f('">'),ke=f("</div>"),Se=f('<svg aria-hidden="true" style="display:none" id="'),Ee=f('">'),Ce=f("</svg>"),De=f('<math aria-hidden="true" style="display:none" id="'),Te=f('">'),Ae=f("</math>"),_e=f('<table hidden id="'),Ne=f('">'),Me=f("</table>"),Re=f('<table hidden><tbody id="'),Oe=f('">'),je=f("</tbody></table>"),Ie=f('<table hidden><tr id="'),Pe=f('">'),Le=f("</tr></table>"),Fe=f('<table hidden><colgroup id="'),ze=f('">'),He=f("</colgroup></table>"),We=f('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Be=f('$RS("'),Ve=f('","'),Ue=f('")<\/script>'),$e=f('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ge=f('$RC("'),qe=f('","'),Ze=f('")<\/script>'),Ye=f('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Qe=f('$RX("'),Ke=f('"'),Je=f(")<\/script>"),Xe=f(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var nt=Object.assign,rt=Symbol.for("react.element"),ot=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),it=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),ht=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),gt=Symbol.for("react.debug_trace_mode"),vt=Symbol.for("react.legacy_hidden"),yt=Symbol.for("react.default_value"),bt=Symbol.iterator;function wt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case at:return"Fragment";case ot:return"Portal";case st:return"Profiler";case it:return"StrictMode";case dt:return"Suspense";case ft:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case ut:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ht:return null!==(t=e.displayName||null)?t:wt(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return wt(e(t))}catch(e){}}return null}var xt={};function kt(e,t){if(!(e=e.contextTypes))return xt;var n,r={};for(n in e)r[n]=t[n];return r}var St=null;function Et(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));Et(e,n)}t.context._currentValue=t.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function Dt(e){var t=e.parent;null!==t&&Dt(t),e.context._currentValue=e.value}function Tt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?Et(e,t):Tt(e,t)}function At(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?Et(e,n):At(e,n),t.context._currentValue=t.value}function _t(e){var t=St;t!==e&&(null===t?Dt(e):null===e?Ct(t):t.depth===e.depth?Et(t,e):t.depth>e.depth?Tt(t,e):At(t,e),St=e)}var Nt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Mt(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=Nt,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:nt({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Nt.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var s=t[i];null!=(s="function"==typeof s?s.call(e,a,n,r):s)&&(o?(o=!1,a=nt({},a,s)):nt(a,s))}e.state=a}else a.queue=null}var Rt={id:1,overflow:""};function Ot(e,t,n){var r=e.id;e=e.overflow;var o=32-jt(r)-1;r&=~(1<<o),n+=1;var a=32-jt(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-jt(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var jt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(It(e)/Pt|0)|0},It=Math.log,Pt=Math.LN2,Lt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ft=null,zt=null,Ht=null,Wt=null,Bt=!1,Vt=!1,Ut=0,$t=null,Gt=0;function qt(){if(null===Ft)throw Error(o(321));return Ft}function Zt(){if(0<Gt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Yt(){return null===Wt?null===Ht?(Bt=!1,Ht=Wt=Zt()):(Bt=!0,Wt=Ht):null===Wt.next?(Bt=!1,Wt=Wt.next=Zt()):(Bt=!0,Wt=Wt.next),Wt}function Qt(){zt=Ft=null,Vt=!1,Ht=null,Gt=0,Wt=$t=null}function Kt(e,t){return"function"==typeof t?t(e):t}function Jt(e,t,n){if(Ft=qt(),Wt=Yt(),Bt){var r=Wt.queue;if(t=r.dispatch,null!==$t&&void 0!==(n=$t.get(r))){$t.delete(r),r=Wt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Wt.memoizedState=r,[r,t]}return[Wt.memoizedState,t]}return e=e===Kt?"function"==typeof t?t():t:void 0!==n?n(t):t,Wt.memoizedState=e,e=(e=Wt.queue={last:null,dispatch:null}).dispatch=en.bind(null,Ft,e),[Wt.memoizedState,e]}function Xt(e,t){if(Ft=qt(),t=void 0===t?null:t,null!==(Wt=Yt())){var n=Wt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Lt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Wt.memoizedState=[e,t],e}function en(e,t,n){if(25<=Gt)throw Error(o(301));if(e===Ft)if(Vt=!0,e={action:n,next:null},null===$t&&($t=new Map),void 0===(n=$t.get(t)))$t.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(o(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return qt(),e._currentValue},useMemo:Xt,useReducer:Jt,useRef:function(e){Ft=qt();var t=(Wt=Yt()).memoizedState;return null===t?(e={current:e},Wt.memoizedState=e):t},useState:function(e){return Jt(Kt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Xt((function(){return e}),t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return qt(),e},useTransition:function(){return qt(),[!1,tn]},useId:function(){var e=zt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-jt(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(o(404));return t=Ut++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return qt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},on=null,an=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function sn(e){return console.error(e),null}function ln(){}function cn(e,t,n,r,o,a,i,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&En(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:s};return o.add(l),l}function un(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function fn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function hn(e,t,n,r,o){for(Ft={},zt=t,Ut=0,e=n(r,o);Vt;)Vt=!1,Ut=0,Gt+=1,Wt=null,e=n(r,o);return Qt(),e}function pn(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in i))throw Error(o(108,wt(r)||"Unknown",l));r=nt({},s,n)}t.legacyContext=r,vn(e,t,a),t.legacyContext=s}else vn(e,t,a)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function gn(e,t,n,a,i){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){i=kt(n,t.legacyContext);var s=n.contextType;Mt(s=new n(a,"object"==typeof s&&null!==s?s._currentValue:i),n,a,i),pn(e,t,s,n)}else{i=hn(e,t,n,a,s=kt(n,t.legacyContext));var l=0!==Ut;if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof)Mt(i,n,a,s),pn(e,t,i,n);else if(l){a=t.treeContext,t.treeContext=Ot(a,1,0);try{vn(e,t,i)}finally{t.treeContext=a}}else vn(e,t,i)}else{if("string"!=typeof n){switch(n){case vt:case gt:case it:case st:case at:case ft:return void vn(e,t,a.children);case mt:throw Error(o(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,s=a.fallback,a=a.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},u=un(0,i.chunks.length,c,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var f=un(0,0,null,i.formatContext,!1,!1);f.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=f;try{if(bn(e,t,a),f.lastPushedText&&f.textEmbedded&&f.chunks.push(F),f.status=1,kn(c,f),0===c.pendingTasks)break e}catch(t){f.status=4,c.forceClientRender=!0,c.errorDigest=dn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=cn(e,s,n,u,l,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ut:if(a=hn(e,t,n.render,a,i),0!==Ut){n=t.treeContext,t.treeContext=Ot(n,1,0);try{vn(e,t,a)}finally{t.treeContext=n}}else vn(e,t,a);return;case ht:return void gn(e,t,n=n.type,a=mn(n,a),i);case lt:if(i=a.children,n=n._context,a=a.value,s=n._currentValue,n._currentValue=a,St=a={parent:l=St,depth:null===l?0:l.depth+1,context:n,parentValue:s,value:a},t.context=a,vn(e,t,i),null===(e=St))throw Error(o(403));return a=e.parentValue,e.context._currentValue=a===yt?e.context._defaultValue:a,e=St=e.parent,void(t.context=e);case ct:return void vn(e,t,a=(a=a.children)(n._currentValue));case pt:return void gn(e,t,n=(i=n._init)(n._payload),a=mn(n,a),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(s=function(e,t,n,a,i){switch(t){case"select":e.push(oe("select"));var s=null,l=null;for(h in n)if(p.call(n,h)){var c=n[h];if(null!=c)switch(h){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:Y(e,a,h,c)}}return e.push(Q),J(e,l,s),s;case"option":l=i.selectedValue,e.push(oe("option"));var u=c=null,f=null,h=null;for(s in n)if(p.call(n,s)){var m=n[s];if(null!=m)switch(s){case"children":c=m;break;case"selected":f=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":u=m;default:Y(e,a,s,m)}}if(null!=l)if(n=null!==u?""+u:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),_(l)){for(a=0;a<l.length;a++)if(""+l[a]===n){e.push(X);break}}else""+l===n&&e.push(X);else f&&e.push(X);return e.push(Q),J(e,h,c),c;case"textarea":for(c in e.push(oe("textarea")),h=l=s=null,n)if(p.call(n,c)&&null!=(u=n[c]))switch(c){case"children":h=u;break;case"value":s=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:Y(e,a,c,u)}if(null===s&&null!==l&&(s=l),e.push(Q),null!=h){if(null!=s)throw Error(o(92));if(_(h)&&1<h.length)throw Error(o(93));s=""+h}return"string"==typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(D(""+s))),null;case"input":for(l in e.push(oe("input")),u=h=c=s=null,n)if(p.call(n,l)&&null!=(f=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":u=f;break;case"defaultValue":c=f;break;case"checked":h=f;break;case"value":s=f;break;default:Y(e,a,l,f)}return null!==h?Y(e,a,"checked",h):null!==u&&Y(e,a,"checked",u),null!==s?Y(e,a,"value",s):null!==c&&Y(e,a,"value",c),e.push(K),null;case"menuitem":for(var g in e.push(oe("menuitem")),n)if(p.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:Y(e,a,g,s)}return e.push(Q),null;case"title":for(m in e.push(oe("title")),s=null,n)if(p.call(n,m)&&null!=(l=n[m]))switch(m){case"children":s=l;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:Y(e,a,m,l)}return e.push(Q),s;case"listing":case"pre":for(u in e.push(oe(t)),l=s=null,n)if(p.call(n,u)&&null!=(c=n[u]))switch(u){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;default:Y(e,a,u,c)}if(e.push(Q),null!=l){if(null!=s)throw Error(o(60));if("object"!=typeof l||!("__html"in l))throw Error(o(61));null!=(n=l.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"==typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(oe(t)),n)if(p.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:Y(e,a,v,s)}return e.push(K),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,a);case"html":return 0===i.insertionMode&&e.push(ae),ee(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,a);for(f in e.push(oe(t)),l=s=null,n)if(p.call(n,f)&&null!=(c=n[f]))switch(f){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":U(e,a,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(f)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push($,d(f),G,d(D(c)),q)}return e.push(Q),J(e,l,s),s}}((i=t.blockedSegment).chunks,n,a,e.responseState,i.formatContext),i.lastPushedText=!1,l=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return L(1,null!=n.value?n.value:n.defaultValue);case"svg":return L(2,null);case"math":return L(3,null);case"foreignObject":return L(1,null);case"table":return L(4,null);case"thead":case"tbody":case"tfoot":return L(5,null);case"colgroup":return L(7,null);case"tr":return L(6,null)}return 4<=e.insertionMode||0===e.insertionMode?L(1,null):e}(l,n,a),bn(e,t,s),i.formatContext=l,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(ie,d(n),se)}i.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void gn(e,t,n.type,n.props,n.ref);case ot:throw Error(o(257));case pt:var r=n._init;return void vn(e,t,n=r(n._payload))}if(_(n))return void yn(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=bt&&n[bt]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);yn(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=z(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=z(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function yn(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=Ot(a,r,o);try{bn(e,t,n[o])}finally{t.treeContext=a}}}function bn(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return vn(e,t,n)}catch(l){if(Qt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,_t(a),l;n=l;var i=t.blockedSegment,s=un(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(s),i.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,_t(a)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function xn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return xn(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function kn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&kn(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&kn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(kn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function En(e){if(2!==e.status){var t=St,n=an.current;an.current=rn;var r=on;on=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],s=e,l=i.blockedSegment;if(0===l.status){_t(i.context);try{vn(s,i,i.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(F),i.abortSet.delete(i),l.status=1,Sn(s,i.blockedBoundary,l)}catch(e){if(Qt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),l.status=4;var u=i.blockedBoundary,d=e,f=dn(s,d);null===u?fn(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=f,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&Mn(e,e.destination)}catch(t){dn(e,t),fn(e,t)}finally{on=r,an.current=n,n===rn&&_t(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,le),s(t,e.placeholderPrefix),s(t,e=d(r.toString(16))),l(t,ce);case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];i<a.index;i++)s(t,r[i]);a=Dn(e,t,a)}for(;i<r.length-1;i++)s(t,r[i]);return i<r.length&&(a=l(t,r[i])),a;default:throw Error(o(390))}}function Dn(e,t,n){var r=n.boundary;if(null===r)return Cn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,he),s(t,me),r&&(s(t,ve),s(t,d(D(r))),s(t,ge)),l(t,ye),Cn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;a=f(a.boundaryPrefix+i.toString(16)),r=r.id=a,be(t,e.responseState,r),Cn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),be(t,e.responseState,r.id),Cn(e,t,n);else{if(l(t,ue),1!==(n=r.completedSegments).length)throw Error(o(391));Dn(e,t,n[0])}return l(t,pe)}function Tn(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,we),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,xe);case 2:return s(e,Se),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ee);case 3:return s(e,De),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Te);case 4:return s(e,_e),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ne);case 5:return s(e,Re),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Oe);case 6:return s(e,Ie),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Pe);case 7:return s(e,Fe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,ze);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Dn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,ke);case 2:return l(e,Ce);case 3:return l(e,Ae);case 4:return l(e,Me);case 5:return l(e,je);case 6:return l(e,Le);case 7:return l(e,He);default:throw Error(o(397))}}(t,n.formatContext)}function An(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)Nn(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,Ge):(e.sentCompleteBoundaryFunction=!0,s(t,$e)),null===r)throw Error(o(395));return n=d(n.toString(16)),s(t,r),s(t,qe),s(t,e.segmentPrefix),s(t,n),l(t,Ze)}function Nn(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return Tn(e,t,r)}return Tn(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,Be):(e.sentCompleteSegmentFunction=!0,s(t,We)),s(t,e.segmentPrefix),s(t,a=d(a.toString(16))),s(t,Ve),s(t,e.placeholderPrefix),s(t,a),l(t,Ue)}function Mn(e,t){a=new Uint8Array(512),i=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Dn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&l(t,r[n])}var u,f=e.clientRenderedBoundaries;for(u=0;u<f.length;u++){var h=f[u];r=t;var p=e.responseState,m=h.id,g=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(s(r,p.startInlineScript),p.sentClientRenderFunction?s(r,Qe):(p.sentClientRenderFunction=!0,s(r,Ye)),null===m)throw Error(o(395));if(s(r,m),s(r,Ke),(g||v||y)&&(s(r,Xe),s(r,d(tt(g||"")))),(v||y)&&(s(r,Xe),s(r,d(tt(v||"")))),y&&(s(r,Xe),s(r,d(tt(y)))),!l(r,Je))return e.destination=null,u++,void f.splice(0,u)}f.splice(0,u);var b=e.completedBoundaries;for(u=0;u<b.length;u++)if(!An(e,t,b[u]))return e.destination=null,u++,void b.splice(0,u);b.splice(0,u),c(t),a=new Uint8Array(512),i=0;var w=e.partialBoundaries;for(u=0;u<w.length;u++){var x=w[u];e:{f=e,h=t;var k=x.completedSegments;for(p=0;p<k.length;p++)if(!Nn(f,h,x,k[p])){p++,k.splice(0,p);var S=!1;break e}k.splice(0,p),S=!0}if(!S)return e.destination=null,u++,void w.splice(0,u)}w.splice(0,u);var E=e.completedBoundaries;for(u=0;u<E.length;u++)if(!An(e,t,E[u]))return e.destination=null,u++,void E.splice(0,u);E.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Rn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return xn(n,e,t)})),n.clear(),null!==e.destination&&Mn(e,e.destination)}catch(t){dn(e,t),fn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,r){var o,a,i=new Promise((function(e,t){a=e,o=t})),s=function(e,t,n,r,o,a,i,s,l){var c=[],u=new Set;return(n=un(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?sn:o,onAllReady:void 0===a?ln:a,onShellReady:void 0===i?ln:i,onShellError:void 0===s?ln:s,onFatalError:void 0===l?ln:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,u,xt,null,Rt),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?N:f('<script nonce="'+D(t)+'">');var a=[];if(void 0!==n&&a.push(t,d((""+n).replace(I,P)),M),void 0!==r)for(n=0;n<r.length;n++)a.push(R,d(D(r[n])),j);if(void 0!==o)for(r=0;r<o.length;r++)a.push(O,d(D(o[r])),j);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:f(e+"P:"),segmentPrefix:f(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return L("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,h(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{Mn(s,e)}catch(e){dn(s,e),fn(s,e)}}},cancel:function(){Rn(s)}},{highWaterMark:0});e.allReady=i,n(e)}),(function(e){i.catch((function(){})),r(e)}),o);if(t&&t.signal){var l=t.signal,c=function(){Rn(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}En(s)}))},t.version="18.3.1"}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a=o(609),i=o.t(a,2);function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let n=!1;const r=e.map((e=>{const r=l(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function u(...e){return a.useCallback(c(...e),e)}const d=window.ReactJSXRuntime;function f(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>a.createContext(e)));return function(n){const r=n?.[e]||t;return a.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=a.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[i]||o,c=a.useMemo((()=>s),Object.values(s));return(0,d.jsx)(l.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const l=s?.[e]?.[i]||o,c=a.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},h(r,...t)]}function h(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function p(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}function m({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=p(t);return a.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,s=i?e:r,l=p(n);return[s,a.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}var g=o(795),v=a.forwardRef(((e,t)=>{const{children:n,...r}=e,o=a.Children.toArray(n),i=o.find(w);if(i){const e=i.props.children,n=o.map((t=>t===i?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t));return(0,d.jsx)(y,{...r,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,d.jsx)(y,{...r,ref:t,children:n})}));v.displayName="Slot";var y=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?c(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));y.displayName="SlotClone";var b=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});function w(e){return a.isValidElement(e)&&e.type===b}var x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=a.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?v:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function k(e,t){e&&g.flushSync((()=>e.dispatchEvent(t)))}function S(e){const t=e+"CollectionProvider",[n,r]=f(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=a.useRef(null),i=a.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;const l=e+"CollectionSlot",c=a.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=u(t,i(l,n).collectionRef);return(0,d.jsx)(v,{ref:o,children:r})}));c.displayName=l;const h=e+"CollectionItemSlot",p="data-radix-collection-item",m=a.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,s=a.useRef(null),l=u(t,s),c=i(h,n);return a.useEffect((()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)}))),(0,d.jsx)(v,{[p]:"",ref:l,children:r})}));return m.displayName=h,[{Provider:s,Slot:c,ItemSlot:m},function(t){const n=i(e+"CollectionConsumer",t),r=a.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}var E=a.createContext(void 0);function C(e){const t=a.useContext(E);return e||t||"ltr"}var D,T="dismissableLayer.update",A=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=a.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...f}=e,h=a.useContext(A),[m,g]=a.useState(null),v=m?.ownerDocument??globalThis?.document,[,y]=a.useState({}),b=u(t,(e=>g(e))),w=Array.from(h.layers),[k]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=w.indexOf(k),E=m?w.indexOf(m):-1,C=h.layersWithOutsidePointerEventsDisabled.size>0,_=E>=S,R=function(e,t=globalThis?.document){const n=p(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){M("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...h.branches].some((e=>e.contains(t)));_&&!n&&(o?.(e),l?.(e),e.defaultPrevented||c?.())}),v),O=function(e,t=globalThis?.document){const n=p(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{e.target&&!r.current&&M("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...h.branches].some((e=>e.contains(t)))||(i?.(e),l?.(e),e.defaultPrevented||c?.())}),v);return function(e,t=globalThis?.document){const n=p(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{E===h.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),v),a.useEffect((()=>{if(m)return n&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(D=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),N(),()=>{n&&1===h.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=D)}}),[m,v,n,h]),a.useEffect((()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),N())}),[m,h]),a.useEffect((()=>{const e=()=>y({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)}),[]),(0,d.jsx)(x.div,{...f,ref:b,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,O.onFocusCapture),onBlurCapture:s(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,R.onPointerDownCapture)})}));function N(){const e=new CustomEvent(T);document.dispatchEvent(e)}function M(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?k(o,a):o.dispatchEvent(a)}_.displayName="DismissableLayer",a.forwardRef(((e,t)=>{const n=a.useContext(A),r=a.useRef(null),o=u(t,r);return a.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,d.jsx)(x.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var R=0;function O(){a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??j()),document.body.insertAdjacentElement("beforeend",e[1]??j()),R++,()=>{1===R&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),R--}}),[])}function j(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var I="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",L={bubbles:!1,cancelable:!0},F=a.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=a.useState(null),f=p(o),h=p(i),m=a.useRef(null),g=u(t,(e=>c(e))),v=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(r){let e=function(e){if(v.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:B(m.current,{select:!0})},t=function(e){if(v.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||B(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&B(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,v.paused]),a.useEffect((()=>{if(l){V.add(v);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(I,L);l.addEventListener(I,f),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(B(r,{select:t}),document.activeElement!==n)return}(z(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&B(l))}return()=>{l.removeEventListener(I,f),setTimeout((()=>{const t=new CustomEvent(P,L);l.addEventListener(P,h),l.dispatchEvent(t),t.defaultPrevented||B(e??document.body,{select:!0}),l.removeEventListener(P,h),V.remove(v)}),0)}}}),[l,f,h,v]);const y=a.useCallback((e=>{if(!n&&!r)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=z(e);return[H(t,e),H(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&B(a,{select:!0})):(e.preventDefault(),n&&B(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,v.paused]);return(0,d.jsx)(x.div,{tabIndex:-1,...s,ref:g,onKeyDown:y})}));function z(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function H(e,t){for(const n of e)if(!W(n,{upTo:t}))return n}function W(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function B(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}F.displayName="FocusScope";var V=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=U(e,t),e.unshift(t)},remove(t){e=U(e,t),e[0]?.resume()}}}();function U(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var $=Boolean(globalThis?.document)?a.useLayoutEffect:()=>{},G=i["useId".toString()]||(()=>{}),q=0;function Z(e){const[t,n]=a.useState(G());return $((()=>{e||n((e=>e??String(q++)))}),[e]),e||(t?`radix-${t}`:"")}const Y=["top","right","bottom","left"],Q=Math.min,K=Math.max,J=Math.round,X=Math.floor,ee=e=>({x:e,y:e}),te={left:"right",right:"left",bottom:"top",top:"bottom"},ne={start:"end",end:"start"};function re(e,t,n){return K(e,Q(t,n))}function oe(e,t){return"function"==typeof e?e(t):e}function ae(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function se(e){return"x"===e?"y":"x"}function le(e){return"y"===e?"height":"width"}function ce(e){return["top","bottom"].includes(ae(e))?"y":"x"}function ue(e){return se(ce(e))}function de(e){return e.replace(/start|end/g,(e=>ne[e]))}function fe(e){return e.replace(/left|right|bottom|top/g,(e=>te[e]))}function he(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function pe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function me(e,t,n){let{reference:r,floating:o}=e;const a=ce(t),i=ue(t),s=le(i),l=ae(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ie(t)){case"start":h[i]-=f*(n&&c?-1:1);break;case"end":h[i]+=f*(n&&c?-1:1)}return h}async function ge(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=oe(t,e),p=he(h),m=s[f?"floating"===d?"reference":"floating":d],g=pe(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=pe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function ve(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ye(e){return Y.some((t=>e[t]>=0))}function be(){return"undefined"!=typeof window}function we(e){return Se(e)?(e.nodeName||"").toLowerCase():"#document"}function xe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ke(e){var t;return null==(t=(Se(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Se(e){return!!be()&&(e instanceof Node||e instanceof xe(e).Node)}function Ee(e){return!!be()&&(e instanceof Element||e instanceof xe(e).Element)}function Ce(e){return!!be()&&(e instanceof HTMLElement||e instanceof xe(e).HTMLElement)}function De(e){return!(!be()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof xe(e).ShadowRoot)}function Te(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ae(e){return["table","td","th"].includes(we(e))}function _e(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ne(e){const t=Me(),n=Ee(e)?Oe(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Me(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Re(e){return["html","body","#document"].includes(we(e))}function Oe(e){return xe(e).getComputedStyle(e)}function je(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if("html"===we(e))return e;const t=e.assignedSlot||e.parentNode||De(e)&&e.host||ke(e);return De(t)?t.host:t}function Pe(e){const t=Ie(e);return Re(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&Te(t)?t:Pe(t)}function Le(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Pe(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=xe(o);if(a){const e=Fe(i);return t.concat(i,i.visualViewport||[],Te(o)?o:[],e&&n?Le(e):[])}return t.concat(o,Le(o,[],n))}function Fe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ze(e){const t=Oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=J(n)!==a||J(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function He(e){return Ee(e)?e:e.contextElement}function We(e){const t=He(e);if(!Ce(t))return ee(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ze(t);let i=(a?J(n.width):n.width)/r,s=(a?J(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Be=ee(0);function Ve(e){const t=xe(e);return Me()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Be}function Ue(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=He(e);let i=ee(1);t&&(r?Ee(r)&&(i=We(r)):i=We(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==xe(e))&&t}(a,n,r)?Ve(a):ee(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=xe(a),t=r&&Ee(r)?xe(r):r;let n=e,o=Fe(n);for(;o&&r&&t!==n;){const e=We(o),t=o.getBoundingClientRect(),r=Oe(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=xe(o),o=Fe(n)}}return pe({width:u,height:d,x:l,y:c})}function $e(e,t){const n=je(e).scrollLeft;return t?t.left+n:Ue(ke(e)).left+n}function Ge(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:$e(e,r)),y:r.top+t.scrollTop}}function qe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=xe(e),r=ke(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Me();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=ke(e),n=je(e),r=e.ownerDocument.body,o=K(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=K(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+$e(e);const s=-n.scrollTop;return"rtl"===Oe(r).direction&&(i+=K(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(ke(e));else if(Ee(t))r=function(e,t){const n=Ue(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ce(e)?We(e):ee(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Ve(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return pe(r)}function Ze(e,t){const n=Ie(e);return!(n===t||!Ee(n)||Re(n))&&("fixed"===Oe(n).position||Ze(n,t))}function Ye(e,t,n){const r=Ce(t),o=ke(t),a="fixed"===n,i=Ue(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=ee(0);if(r||!r&&!a)if(("body"!==we(t)||Te(o))&&(s=je(t)),r){const e=Ue(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=$e(o));const c=!o||r||a?ee(0):Ge(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Qe(e){return"static"===Oe(e).position}function Ke(e,t){if(!Ce(e)||"fixed"===Oe(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ke(e)===n&&(n=n.ownerDocument.body),n}function Je(e,t){const n=xe(e);if(_e(e))return n;if(!Ce(e)){let t=Ie(e);for(;t&&!Re(t);){if(Ee(t)&&!Qe(t))return t;t=Ie(t)}return n}let r=Ke(e,t);for(;r&&Ae(r)&&Qe(r);)r=Ke(r,t);return r&&Re(r)&&Qe(r)&&!Ne(r)?n:r||function(e){let t=Ie(e);for(;Ce(t)&&!Re(t);){if(Ne(t))return t;if(_e(t))return null;t=Ie(t)}return null}(e)||n}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=ke(r),s=!!t&&_e(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=ee(1);const u=ee(0),d=Ce(r);if((d||!d&&!a)&&(("body"!==we(r)||Te(i))&&(l=je(r)),Ce(r))){const e=Ue(r);c=We(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?ee(0):Ge(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:ke,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?_e(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Le(e,[],!1).filter((e=>Ee(e)&&"body"!==we(e))),o=null;const a="fixed"===Oe(e).position;let i=a?Ie(e):e;for(;Ee(i)&&!Re(i);){const t=Oe(i),n=Ne(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Te(i)&&!n&&Ze(e,i))?r=r.filter((e=>e!==i)):o=t,i=Ie(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=qe(t,n,o);return e.top=K(r.top,e.top),e.right=Q(r.right,e.right),e.bottom=Q(r.bottom,e.bottom),e.left=K(r.left,e.left),e}),qe(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Je,getElementRects:async function(e){const t=this.getOffsetParent||Je,n=this.getDimensions,r=await n(e.floating);return{reference:Ye(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ze(e);return{width:t,height:n}},getScale:We,isElement:Ee,isRTL:function(e){return"rtl"===Oe(e).direction}};function et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const tt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=ae(n),s=ie(n),l="y"===ce(n),c=["left","top"].includes(i)?-1:1,u=a&&l?-1:1,d=oe(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},nt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=oe(e,t),c={x:n,y:r},u=await ge(t,l),d=ce(ae(o)),f=se(d);let h=c[f],p=c[d];if(a){const e="y"===f?"bottom":"right";h=re(h+u["y"===f?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";p=re(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},rt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=oe(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=ae(o),y=ce(s),b=ae(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[fe(s)]:function(e){const t=fe(e);return[de(e),t,de(t)]}(s)),k="none"!==p;!f&&k&&x.push(...function(e,t,n,r){const o=ie(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(ae(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(de)))),a}(s,m,p,w));const S=[s,...x],E=await ge(t,g),C=[];let D=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&C.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ie(e),o=ue(e),a=le(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=fe(i)),[i,fe(i)]}(o,i,w);C.push(E[e[0]],E[e[1]])}if(D=[...D,{placement:o,overflows:C}],!C.every((e=>e<=0))){var T,A;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(A=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var _;const e=null==(_=D.filter((e=>{if(k){const t=ce(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ot=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=oe(e,t),u=await ge(t,c),d=ae(o),f=ie(o),h="y"===ce(o),{width:p,height:m}=a.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-u.top-u.bottom,b=p-u.left-u.right,w=Q(m-u[g],y),x=Q(p-u[v],b),k=!t.middlewareData.shift;let S=w,E=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),k&&!f){const e=K(u.left,0),t=K(u.right,0),n=K(u.top,0),r=K(u.bottom,0);h?E=p-2*(0!==e||0!==t?e+t:K(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:K(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:S});const C=await i.getDimensions(s.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}},at=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=oe(e,t);switch(r){case"referenceHidden":{const e=ve(await ge(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ye(e)}}}case"escaped":{const e=ve(await ge(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ye(e)}}}default:return{}}}}},it=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=oe(e,t)||{};if(null==c)return{};const d=he(u),f={x:n,y:r},h=ue(o),p=le(h),m=await i.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[h]-f[h]-a.floating[p],x=f[h]-a.reference[h],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=k?k[b]:0;S&&await(null==i.isElement?void 0:i.isElement(k))||(S=s.floating[b]||a.floating[p]);const E=w/2-x/2,C=S/2-m[p]/2-1,D=Q(d[v],C),T=Q(d[y],C),A=D,_=S-m[p]-T,N=S/2-m[p]/2+E,M=re(A,N,_),R=!l.arrow&&null!=ie(o)&&N!==M&&a.reference[p]/2-(N<A?D:T)-m[p]/2<0,O=R?N<A?N-A:N-_:0;return{[h]:f[h]+O,data:{[h]:M,centerOffset:N-M-O,...R&&{alignmentOffset:O}},reset:R}}}),st=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=oe(e,t),u={x:n,y:r},d=ce(o),f=se(d);let h=u[f],p=u[d];const m=oe(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(ae(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:h,[d]:p}}}},lt=(e,t,n)=>{const r=new Map,o={platform:Xe,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=me(c,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[a]:{...h[a],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=me(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:a})};var ct="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ut(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function dt(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){const n=dt(e);return Math.round(t*n)/n}function ht(e){const t=a.useRef(e);return ct((()=>{t.current=e})),t}const pt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?it({element:n.current,padding:r}).fn(t):{}:n?it({element:n,padding:r}).fn(t):{};var o}}),mt=(e,t)=>({...tt(e),options:[e,t]}),gt=(e,t)=>({...nt(e),options:[e,t]}),vt=(e,t)=>({...st(e),options:[e,t]}),yt=(e,t)=>({...rt(e),options:[e,t]}),bt=(e,t)=>({...ot(e),options:[e,t]}),wt=(e,t)=>({...at(e),options:[e,t]}),xt=(e,t)=>({...pt(e),options:[e,t]});var kt=a.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,d.jsx)(x.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));kt.displayName="Arrow";var St=kt,Et="Popper",[Ct,Dt]=f(Et),[Tt,At]=Ct(Et),_t=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return(0,d.jsx)(Tt,{scope:t,anchor:r,onAnchorChange:o,children:n})};_t.displayName=Et;var Nt="PopperAnchor",Mt=a.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=At(Nt,n),s=a.useRef(null),l=u(t,s);return a.useEffect((()=>{i.onAnchorChange(r?.current||s.current)})),r?null:(0,d.jsx)(x.div,{...o,ref:l})}));Mt.displayName=Nt;var Rt="PopperContent",[Ot,jt]=Ct(Rt),It=a.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:b,...w}=e,k=At(Rt,n),[S,E]=a.useState(null),C=u(t,(e=>E(e))),[D,T]=a.useState(null),A=function(e){const[t,n]=a.useState(void 0);return $((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(D),_=A?.width??0,N=A?.height??0,M=r+("center"!==i?"-"+i:""),R="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},O=Array.isArray(f)?f:[f],j=O.length>0,I={padding:R,boundary:O.filter(zt),altBoundary:j},{refs:P,floatingStyles:L,placement:F,isPositioned:z,middlewareData:H}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=a.useState(r);ut(h,r)||p(r);const[m,v]=a.useState(null),[y,b]=a.useState(null),w=a.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),x=a.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[]),k=i||m,S=s||y,E=a.useRef(null),C=a.useRef(null),D=a.useRef(d),T=null!=c,A=ht(c),_=ht(o),N=ht(u),M=a.useCallback((()=>{if(!E.current||!C.current)return;const e={placement:t,strategy:n,middleware:h};_.current&&(e.platform=_.current),lt(E.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!ut(D.current,t)&&(D.current=t,g.flushSync((()=>{f(t)})))}))}),[h,t,n,_,N]);ct((()=>{!1===u&&D.current.isPositioned&&(D.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const R=a.useRef(!1);ct((()=>(R.current=!0,()=>{R.current=!1})),[]),ct((()=>{if(k&&(E.current=k),S&&(C.current=S),k&&S){if(A.current)return A.current(k,S,M);M()}}),[k,S,M,A,T]);const O=a.useMemo((()=>({reference:E,floating:C,setReference:w,setFloating:x})),[w,x]),j=a.useMemo((()=>({reference:k,floating:S})),[k,S]),I=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=ft(j.floating,d.x),r=ft(j.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...dt(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,j.floating,d.x,d.y]);return a.useMemo((()=>({...d,update:M,refs:O,elements:j,floatingStyles:I})),[d,M,O,j,I])}({strategy:"fixed",placement:M,whileElementsMounted:(...e)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=He(e),u=o||a?[...c?Le(c):[],...Le(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=ke(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(s||t(),!f||!h)return;const p={rootMargin:-X(d)+"px "+-X(o.clientWidth-(u+f))+"px "+-X(o.clientHeight-(d+h))+"px "+-X(u)+"px",threshold:K(0,Q(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||et(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),a}(c,n):null;let f,h=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let m=l?Ue(e):null;return l&&function t(){const r=Ue(e);m&&!et(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}(...e,{animationFrame:"always"===y}),elements:{reference:k.anchor},middleware:[mt({mainAxis:o+N,alignmentAxis:s}),c&>({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?vt():void 0,...I}),c&&yt({...I}),bt({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),D&&xt({element:D,padding:l}),Ht({arrowWidth:_,arrowHeight:N}),v&&wt({strategy:"referenceHidden",...I})]}),[W,B]=Wt(F),V=p(b);$((()=>{z&&V?.()}),[z,V]);const U=H.arrow?.x,G=H.arrow?.y,q=0!==H.arrow?.centerOffset,[Z,Y]=a.useState();return $((()=>{S&&Y(window.getComputedStyle(S).zIndex)}),[S]),(0,d.jsx)("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:z?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(Ot,{scope:n,placedSide:W,onArrowChange:T,arrowX:U,arrowY:G,shouldHideArrow:q,children:(0,d.jsx)(x.div,{"data-side":W,"data-align":B,...w,ref:C,style:{...w.style,animation:z?void 0:"none"}})})})}));It.displayName=Rt;var Pt="PopperArrow",Lt={top:"bottom",right:"left",bottom:"top",left:"right"},Ft=a.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=jt(Pt,n),a=Lt[o.placedSide];return(0,d.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(St,{...r,ref:t,style:{...r.style,display:"block"}})})}));function zt(e){return null!==e}Ft.displayName=Pt;var Ht=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=Wt(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let h="",p="";return"bottom"===l?(h=a?u:`${d}px`,p=-s+"px"):"top"===l?(h=a?u:`${d}px`,p=`${r.floating.height+s}px`):"right"===l?(h=-s+"px",p=a?u:`${f}px`):"left"===l&&(h=`${r.floating.width+s}px`,p=a?u:`${f}px`),{data:{x:h,y:p}}}});function Wt(e){const[t,n="center"]=e.split("-");return[t,n]}var Bt=_t,Vt=Mt,Ut=It,$t=Ft,Gt=a.forwardRef(((e,t)=>{const{container:n,...r}=e,[o,i]=a.useState(!1);$((()=>i(!0)),[]);const s=n||o&&globalThis?.document?.body;return s?g.createPortal((0,d.jsx)(x.div,{...r,ref:t}),s):null}));Gt.displayName="Portal";var qt=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=Zt(r.current);i.current="mounted"===l?e:"none"}),[l]),$((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Zt(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,c]),$((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=a=>{const i=Zt(r.current).includes(a.animationName);if(a.target===t&&i&&(c("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=Zt(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=u(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function Zt(e){return e?.animationName||"none"}qt.displayName="Presence";var Yt="rovingFocusGroup.onEntryFocus",Qt={bubbles:!1,cancelable:!0},Kt="RovingFocusGroup",[Jt,Xt,en]=S(Kt),[tn,nn]=f(Kt,[en]),[rn,on]=tn(Kt),an=a.forwardRef(((e,t)=>(0,d.jsx)(Jt.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(Jt.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(sn,{...e,ref:t})})})));an.displayName=Kt;var sn=a.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...v}=e,y=a.useRef(null),b=u(t,y),w=C(i),[k=null,S]=m({prop:l,defaultProp:c,onChange:f}),[E,D]=a.useState(!1),T=p(h),A=Xt(n),_=a.useRef(!1),[N,M]=a.useState(0);return a.useEffect((()=>{const e=y.current;if(e)return e.addEventListener(Yt,T),()=>e.removeEventListener(Yt,T)}),[T]),(0,d.jsx)(rn,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:k,onItemFocus:a.useCallback((e=>S(e)),[S]),onItemShiftTab:a.useCallback((()=>D(!0)),[]),onFocusableItemAdd:a.useCallback((()=>M((e=>e+1))),[]),onFocusableItemRemove:a.useCallback((()=>M((e=>e-1))),[]),children:(0,d.jsx)(x.div,{tabIndex:E||0===N?-1:0,"data-orientation":r,...v,ref:b,style:{outline:"none",...e.style},onMouseDown:s(e.onMouseDown,(()=>{_.current=!0})),onFocus:s(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!E){const t=new CustomEvent(Yt,Qt);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=A().filter((e=>e.focusable));dn([e.find((e=>e.active)),e.find((e=>e.id===k)),...e].filter(Boolean).map((e=>e.ref.current)),g)}}_.current=!1})),onBlur:s(e.onBlur,(()=>D(!1)))})})})),ln="RovingFocusGroupItem",cn=a.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...l}=e,c=Z(),u=i||c,f=on(ln,n),h=f.currentTabStopId===u,p=Xt(n),{onFocusableItemAdd:m,onFocusableItemRemove:g}=f;return a.useEffect((()=>{if(r)return m(),()=>g()}),[r,m,g]),(0,d.jsx)(Jt.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:(0,d.jsx)(x.span,{tabIndex:h?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:s(e.onMouseDown,(e=>{r?f.onItemFocus(u):e.preventDefault()})),onFocus:s(e.onFocus,(()=>f.onItemFocus(u))),onKeyDown:s(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:un[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=f.loop?(r=a+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(a+1)}setTimeout((()=>dn(o)))}var n,r}))})})}));cn.displayName=ln;var un={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dn(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var fn=an,hn=cn,pn=new WeakMap,mn=new WeakMap,gn={},vn=0,yn=function(e){return e&&(e.host||yn(e.parentNode))},bn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=yn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);gn[n]||(gn[n]=new WeakMap);var a=gn[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(pn.get(e)||0)+1,c=(a.get(e)||0)+1;pn.set(e,l),a.set(e,c),i.push(e),1===l&&o&&mn.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),vn++,function(){i.forEach((function(e){var t=pn.get(e)-1,o=a.get(e)-1;pn.set(e,t),a.set(e,o),t||(mn.has(e)||e.removeAttribute(r),mn.delete(e)),o||e.removeAttribute(n)})),--vn||(pn=new WeakMap,pn=new WeakMap,mn=new WeakMap,gn={})}}(r,o,n,"aria-hidden")):function(){return null}},wn=function(){return wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wn.apply(this,arguments)};function xn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var kn="right-scroll-bar-position",Sn="width-before-scroll-bar";function En(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Cn="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,Dn=new WeakMap;function Tn(e){return e}var An=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Tn);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=wn({async:!0,ssr:!1},e),t}(),Nn=function(){},Mn=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Nn,onWheelCapture:Nn,onTouchMoveCapture:Nn}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=xn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=h,k=function(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach((function(e){return En(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return Cn((function(){var t=Dn.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||En(e,null)})),r.forEach((function(e){n.has(e)||En(e,o)}))}Dn.set(i,e)}),[e]),i}([n,t]),S=wn(wn({},w),o);return a.createElement(a.Fragment,null,d&&a.createElement(x,{sideCar:An,removeScrollBar:u,shards:f,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),s?a.cloneElement(a.Children.only(l),wn(wn({},S),{ref:k})):a.createElement(y,wn({},S,{className:c,ref:k}),l))}));Mn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mn.classNames={fullWidth:Sn,zeroRight:kn};var Rn=function(e){var t=e.sideCar,n=xn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,wn({},n))};Rn.isSideCarExport=!0;var On=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o.nc;return t&&e.setAttribute("nonce",t),e}())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jn=function(){var e,t=(e=On(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},In={left:0,top:0,right:0,gap:0},Pn=function(e){return parseInt(e||"",10)||0},Ln=jn(),Fn="data-scroll-locked",zn=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Fn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(kn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Sn," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(kn," .").concat(kn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Sn," .").concat(Sn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Fn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Hn=function(){var e=parseInt(document.body.getAttribute(Fn)||"0",10);return isFinite(e)?e:0},Wn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(Fn,(Hn()+1).toString()),function(){var e=Hn()-1;e<=0?document.body.removeAttribute(Fn):document.body.setAttribute(Fn,e.toString())}}),[]);var i=a.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return In;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Pn(n),Pn(r),Pn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)}),[o]);return a.createElement(Ln,{styles:zn(i,!t,o,n?"":"!important")})},Bn=!1;if("undefined"!=typeof window)try{var Vn=Object.defineProperty({},"passive",{get:function(){return Bn=!0,!0}});window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch(e){Bn=!1}var Un=!!Bn&&{passive:!1},$n=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Gn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),qn(e,r)){var o=Zn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qn=function(e,t){return"v"===e?function(e){return $n(e,"overflowY")}(t):function(e){return $n(e,"overflowX")}(t)},Zn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qn=function(e){return[e.deltaX,e.deltaY]},Kn=function(e){return e&&"current"in e?e.current:e},Jn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Xn=0,er=[];function tr(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nr=(rr=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Xn++)[0],i=a.useState(jn)[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Kn),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,a=Yn(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Gn(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Gn(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,c=a>0,u=0,d=0;do{var f=Zn(e,i),h=f[0],p=f[1]-f[2]-o*h;(h||p)&&qn(e,i)&&(u+=p,d+=h),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(l=!0),l}(h,t,e,"h"===h?l:c)}),[]),c=a.useCallback((function(e){var n=e;if(er.length&&er[er.length-1]===i){var r="deltaY"in n?Qn(n):Yn(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(Kn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=a.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:tr(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=a.useCallback((function(e){n.current=Yn(e),r.current=void 0}),[]),f=a.useCallback((function(t){u(t.type,Qn(t),t.target,l(t,e.lockRef.current))}),[]),h=a.useCallback((function(t){u(t.type,Yn(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return er.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Un),document.addEventListener("touchmove",c,Un),document.addEventListener("touchstart",d,Un),function(){er=er.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Un),document.removeEventListener("touchmove",c,Un),document.removeEventListener("touchstart",d,Un)}}),[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(i,{styles:Jn(o)}):null,p?a.createElement(Wn,{gapMode:e.gapMode}):null)},An.useMedium(rr),Rn);var rr,or=a.forwardRef((function(e,t){return a.createElement(Mn,wn({},e,{ref:t,sideCar:nr}))}));or.classNames=Mn.classNames;const ar=or;var ir=["Enter"," "],sr=["ArrowUp","PageDown","End"],lr=["ArrowDown","PageUp","Home",...sr],cr={ltr:[...ir,"ArrowRight"],rtl:[...ir,"ArrowLeft"]},ur={ltr:["ArrowLeft"],rtl:["ArrowRight"]},dr="Menu",[fr,hr,pr]=S(dr),[mr,gr]=f(dr,[pr,Dt,nn]),vr=Dt(),yr=nn(),[br,wr]=mr(dr),[xr,kr]=mr(dr),Sr=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,l=vr(t),[c,u]=a.useState(null),f=a.useRef(!1),h=p(i),m=C(o);return a.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,d.jsx)(Bt,{...l,children:(0,d.jsx)(br,{scope:t,open:n,onOpenChange:h,content:c,onContentChange:u,children:(0,d.jsx)(xr,{scope:t,onClose:a.useCallback((()=>h(!1)),[h]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})};Sr.displayName=dr;var Er=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=vr(n);return(0,d.jsx)(Vt,{...o,...r,ref:t})}));Er.displayName="MenuAnchor";var Cr="MenuPortal",[Dr,Tr]=mr(Cr,{forceMount:void 0}),Ar=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=wr(Cr,t);return(0,d.jsx)(Dr,{scope:t,forceMount:n,children:(0,d.jsx)(qt,{present:n||a.open,children:(0,d.jsx)(Gt,{asChild:!0,container:o,children:r})})})};Ar.displayName=Cr;var _r="MenuContent",[Nr,Mr]=mr(_r),Rr=a.forwardRef(((e,t)=>{const n=Tr(_r,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wr(_r,e.__scopeMenu),i=kr(_r,e.__scopeMenu);return(0,d.jsx)(fr.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(qt,{present:r||a.open,children:(0,d.jsx)(fr.Slot,{scope:e.__scopeMenu,children:i.modal?(0,d.jsx)(Or,{...o,ref:t}):(0,d.jsx)(jr,{...o,ref:t})})})})})),Or=a.forwardRef(((e,t)=>{const n=wr(_r,e.__scopeMenu),r=a.useRef(null),o=u(t,r);return a.useEffect((()=>{const e=r.current;if(e)return bn(e)}),[]),(0,d.jsx)(Ir,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:s(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),jr=a.forwardRef(((e,t)=>{const n=wr(_r,e.__scopeMenu);return(0,d.jsx)(Ir,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Ir=a.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:y,disableOutsideScroll:b,...w}=e,x=wr(_r,n),k=kr(_r,n),S=vr(n),E=yr(n),C=hr(n),[D,T]=a.useState(null),A=a.useRef(null),N=u(t,A,x.onContentChange),M=a.useRef(0),R=a.useRef(""),j=a.useRef(0),I=a.useRef(null),P=a.useRef("right"),L=a.useRef(0),z=b?ar:a.Fragment,H=b?{as:v,allowPinchZoom:!0}:void 0;a.useEffect((()=>()=>window.clearTimeout(M.current)),[]),O();const W=a.useCallback((e=>P.current===I.current?.side&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,s=t[e].y,l=t[a].x,c=t[a].y;s>r!=c>r&&n<(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,I.current?.area)),[]);return(0,d.jsx)(Nr,{scope:n,searchRef:R,onItemEnter:a.useCallback((e=>{W(e)&&e.preventDefault()}),[W]),onItemLeave:a.useCallback((e=>{W(e)||(A.current?.focus(),T(null))}),[W]),onTriggerLeave:a.useCallback((e=>{W(e)&&e.preventDefault()}),[W]),pointerGraceTimerRef:j,onPointerGraceIntentChange:a.useCallback((e=>{I.current=e}),[]),children:(0,d.jsx)(z,{...H,children:(0,d.jsx)(F,{asChild:!0,trapped:o,onMountAutoFocus:s(i,(e=>{e.preventDefault(),A.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:l,children:(0,d.jsx)(_,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:y,children:(0,d.jsx)(fn,{asChild:!0,...E,dir:k.dir,orientation:"vertical",loop:r,currentTabStopId:D,onCurrentTabStopIdChange:T,onEntryFocus:s(f,(e=>{k.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(Ut,{role:"menu","aria-orientation":"vertical","data-state":lo(x.open),"data-radix-menu-content":"",dir:k.dir,...S,...w,ref:N,style:{outline:"none",...w.style},onKeyDown:s(w.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{const t=R.current+e,n=C().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(a=a.filter((e=>e!==n)));const l=a.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}(n.map((e=>e.textValue)),t,o),i=n.find((e=>e.textValue===a))?.ref.current;!function e(t){R.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout((()=>e("")),1e3))}(t),i&&setTimeout((()=>i.focus()))})(e.key));const o=A.current;if(e.target!==o)return;if(!lr.includes(e.key))return;e.preventDefault();const a=C().filter((e=>!e.disabled)).map((e=>e.ref.current));sr.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:s(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),R.current="")})),onPointerMove:s(e.onPointerMove,fo((e=>{const t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>L.current?"right":"left";P.current=t,L.current=e.clientX}})))})})})})})})}));Rr.displayName=_r;var Pr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,d.jsx)(x.div,{role:"group",...r,ref:t})}));Pr.displayName="MenuGroup";var Lr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,d.jsx)(x.div,{...r,ref:t})}));Lr.displayName="MenuLabel";var Fr="MenuItem",zr="menu.itemSelect",Hr=a.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=a.useRef(null),l=kr(Fr,e.__scopeMenu),c=Mr(Fr,e.__scopeMenu),f=u(t,i),h=a.useRef(!1);return(0,d.jsx)(Wr,{...o,ref:f,disabled:n,onClick:s(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(zr,{bubbles:!0,cancelable:!0});e.addEventListener(zr,(e=>r?.(e)),{once:!0}),k(e,t),t.defaultPrevented?h.current=!1:l.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),h.current=!0},onPointerUp:s(e.onPointerUp,(e=>{h.current||e.currentTarget?.click()})),onKeyDown:s(e.onKeyDown,(e=>{const t=""!==c.searchRef.current;n||t&&" "===e.key||ir.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Hr.displayName=Fr;var Wr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,l=Mr(Fr,n),c=yr(n),f=a.useRef(null),h=u(t,f),[p,m]=a.useState(!1),[g,v]=a.useState("");return a.useEffect((()=>{const e=f.current;e&&v((e.textContent??"").trim())}),[i.children]),(0,d.jsx)(fr.ItemSlot,{scope:n,disabled:r,textValue:o??g,children:(0,d.jsx)(hn,{asChild:!0,...c,focusable:!r,children:(0,d.jsx)(x.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:h,onPointerMove:s(e.onPointerMove,fo((e=>{r?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))}))),onPointerLeave:s(e.onPointerLeave,fo((e=>l.onItemLeave(e)))),onFocus:s(e.onFocus,(()=>m(!0))),onBlur:s(e.onBlur,(()=>m(!1)))})})})})),Br=a.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,d.jsx)(Qr,{scope:e.__scopeMenu,checked:n,children:(0,d.jsx)(Hr,{role:"menuitemcheckbox","aria-checked":co(n)?"mixed":n,...o,ref:t,"data-state":uo(n),onSelect:s(o.onSelect,(()=>r?.(!!co(n)||!n)),{checkForDefaultPrevented:!1})})})}));Br.displayName="MenuCheckboxItem";var Vr="MenuRadioGroup",[Ur,$r]=mr(Vr,{value:void 0,onValueChange:()=>{}}),Gr=a.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=p(r);return(0,d.jsx)(Ur,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,d.jsx)(Pr,{...o,ref:t})})}));Gr.displayName=Vr;var qr="MenuRadioItem",Zr=a.forwardRef(((e,t)=>{const{value:n,...r}=e,o=$r(qr,e.__scopeMenu),a=n===o.value;return(0,d.jsx)(Qr,{scope:e.__scopeMenu,checked:a,children:(0,d.jsx)(Hr,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":uo(a),onSelect:s(r.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));Zr.displayName=qr;var Yr="MenuItemIndicator",[Qr,Kr]=mr(Yr,{checked:!1}),Jr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Kr(Yr,n);return(0,d.jsx)(qt,{present:r||co(a.checked)||!0===a.checked,children:(0,d.jsx)(x.span,{...o,ref:t,"data-state":uo(a.checked)})})}));Jr.displayName=Yr;var Xr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,d.jsx)(x.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));Xr.displayName="MenuSeparator";var eo=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=vr(n);return(0,d.jsx)($t,{...o,...r,ref:t})}));eo.displayName="MenuArrow";var to="MenuSub",[no,ro]=mr(to),oo="MenuSubTrigger",ao=a.forwardRef(((e,t)=>{const n=wr(oo,e.__scopeMenu),r=kr(oo,e.__scopeMenu),o=ro(oo,e.__scopeMenu),i=Mr(oo,e.__scopeMenu),l=a.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=i,h={__scopeMenu:e.__scopeMenu},p=a.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return a.useEffect((()=>p),[p]),a.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),f(null)}}),[u,f]),(0,d.jsx)(Er,{asChild:!0,...h,children:(0,d.jsx)(Wr,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":lo(n.open),...e,ref:c(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:s(e.onPointerMove,fo((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||l.current||(i.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{n.onOpenChange(!0),p()}),100))}))),onPointerLeave:s(e.onPointerLeave,fo((e=>{p();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,a=o?-5:5,s=t[o?"left":"right"],l=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:s(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;e.disabled||o&&" "===t.key||cr[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));ao.displayName=oo;var io="MenuSubContent",so=a.forwardRef(((e,t)=>{const n=Tr(_r,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=wr(_r,e.__scopeMenu),l=kr(_r,e.__scopeMenu),c=ro(io,e.__scopeMenu),f=a.useRef(null),h=u(t,f);return(0,d.jsx)(fr.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(qt,{present:r||i.open,children:(0,d.jsx)(fr.Slot,{scope:e.__scopeMenu,children:(0,d.jsx)(Ir,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:h,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:s(e.onFocusOutside,(e=>{e.target!==c.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:s(e.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:s(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=ur[l.dir].includes(e.key);t&&n&&(i.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())}))})})})})}));function lo(e){return e?"open":"closed"}function co(e){return"indeterminate"===e}function uo(e){return co(e)?"indeterminate":e?"checked":"unchecked"}function fo(e){return t=>"mouse"===t.pointerType?e(t):void 0}so.displayName=io;var ho=Sr,po=Er,mo=Ar,go=Rr,vo=Pr,yo=Lr,bo=Hr,wo=Br,xo=Gr,ko=Zr,So=Jr,Eo=Xr,Co=eo,Do=ao,To=so,Ao="DropdownMenu",[_o,No]=f(Ao,[gr]),Mo=gr(),[Ro,Oo]=_o(Ao),jo=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=Mo(t),u=a.useRef(null),[f=!1,h]=m({prop:o,defaultProp:i,onChange:s});return(0,d.jsx)(Ro,{scope:t,triggerId:Z(),triggerRef:u,contentId:Z(),open:f,onOpenChange:h,onOpenToggle:a.useCallback((()=>h((e=>!e))),[h]),modal:l,children:(0,d.jsx)(ho,{...c,open:f,onOpenChange:h,dir:r,modal:l,children:n})})};jo.displayName=Ao;var Io="DropdownMenuTrigger",Po=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Oo(Io,n),i=Mo(n);return(0,d.jsx)(po,{asChild:!0,...i,children:(0,d.jsx)(x.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:c(t,a.triggerRef),onPointerDown:s(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:s(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Po.displayName=Io;var Lo=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Mo(t);return(0,d.jsx)(mo,{...r,...n})};Lo.displayName="DropdownMenuPortal";var Fo="DropdownMenuContent",zo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oo(Fo,n),i=Mo(n),l=a.useRef(!1);return(0,d.jsx)(go,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:s(e.onCloseAutoFocus,(e=>{l.current||o.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:s(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(l.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));zo.displayName=Fo,a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(vo,{...o,...r,ref:t})})).displayName="DropdownMenuGroup";var Ho=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(yo,{...o,...r,ref:t})}));Ho.displayName="DropdownMenuLabel";var Wo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(bo,{...o,...r,ref:t})}));Wo.displayName="DropdownMenuItem";var Bo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(wo,{...o,...r,ref:t})}));Bo.displayName="DropdownMenuCheckboxItem",a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(xo,{...o,...r,ref:t})})).displayName="DropdownMenuRadioGroup";var Vo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(ko,{...o,...r,ref:t})}));Vo.displayName="DropdownMenuRadioItem";var Uo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(So,{...o,...r,ref:t})}));Uo.displayName="DropdownMenuItemIndicator";var $o=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(Eo,{...o,...r,ref:t})}));$o.displayName="DropdownMenuSeparator",a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(Co,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var Go=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(Do,{...o,...r,ref:t})}));Go.displayName="DropdownMenuSubTrigger";var qo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(To,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));qo.displayName="DropdownMenuSubContent";var Zo=jo,Yo=Po,Qo=Lo,Ko=zo,Jo=Ho,Xo=Wo,ea=Bo,ta=Vo,na=Uo,ra=$o,oa=Go,aa=qo,ia={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const sa=(e,t)=>{const n=(0,a.forwardRef)((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:l,...c},u)=>{return(0,a.createElement)("svg",{ref:u,...ia,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:["lucide",`lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,s].join(" "),...c},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(l)?l:[l]]);var d}));return n.displayName=`${e}`,n},la=sa("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),ca=sa("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ua=sa("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);class da extends Error{}class fa extends da{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class ha extends da{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class pa extends da{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ma extends da{}class ga extends da{constructor(e){super(`Invalid unit ${e}`)}}class va extends da{}class ya extends da{constructor(){super("Zone is an abstract class")}}const ba="numeric",wa="short",xa="long",ka={year:ba,month:ba,day:ba},Sa={year:ba,month:wa,day:ba},Ea={year:ba,month:wa,day:ba,weekday:wa},Ca={year:ba,month:xa,day:ba},Da={year:ba,month:xa,day:ba,weekday:xa},Ta={hour:ba,minute:ba},Aa={hour:ba,minute:ba,second:ba},_a={hour:ba,minute:ba,second:ba,timeZoneName:wa},Na={hour:ba,minute:ba,second:ba,timeZoneName:xa},Ma={hour:ba,minute:ba,hourCycle:"h23"},Ra={hour:ba,minute:ba,second:ba,hourCycle:"h23"},Oa={hour:ba,minute:ba,second:ba,hourCycle:"h23",timeZoneName:wa},ja={hour:ba,minute:ba,second:ba,hourCycle:"h23",timeZoneName:xa},Ia={year:ba,month:ba,day:ba,hour:ba,minute:ba},Pa={year:ba,month:ba,day:ba,hour:ba,minute:ba,second:ba},La={year:ba,month:wa,day:ba,hour:ba,minute:ba},Fa={year:ba,month:wa,day:ba,hour:ba,minute:ba,second:ba},za={year:ba,month:wa,day:ba,weekday:wa,hour:ba,minute:ba},Ha={year:ba,month:xa,day:ba,hour:ba,minute:ba,timeZoneName:wa},Wa={year:ba,month:xa,day:ba,hour:ba,minute:ba,second:ba,timeZoneName:wa},Ba={year:ba,month:xa,day:ba,weekday:xa,hour:ba,minute:ba,timeZoneName:xa},Va={year:ba,month:xa,day:ba,weekday:xa,hour:ba,minute:ba,second:ba,timeZoneName:xa};class Ua{get type(){throw new ya}get name(){throw new ya}get ianaName(){return this.name}get isUniversal(){throw new ya}offsetName(e,t){throw new ya}formatOffset(e,t){throw new ya}offset(e){throw new ya}equals(e){throw new ya}get isValid(){throw new ya}}let $a=null;class Ga extends Ua{static get instance(){return null===$a&&($a=new Ga),$a}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return fs(e,t,n)}formatOffset(e,t){return gs(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}const qa=new Map,Za={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},Ya=new Map;class Qa extends Ua{static create(e){let t=Ya.get(e);return void 0===t&&Ya.set(e,t=new Qa(e)),t}static resetCache(){Ya.clear(),qa.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Qa.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return fs(e,t,n,this.name)}formatOffset(e,t){return gs(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=qa.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),qa.set(e,t)),t}(this.name);let[r,o,a,i,s,l,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:o}=n[e],a=Za[t];"era"===t?r[a]=o:$i(a)||(r[a]=parseInt(o,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,a,i,s,l,c,u]=r;return[i,o,a,s,l,c,u]}(n,t);"BC"===i&&(r=1-Math.abs(r));let u=+t;const d=u%1e3;return u-=d>=0?d:1e3+d,(ls({year:r,month:o,day:a,hour:24===s?0:s,minute:l,second:c,millisecond:0})-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Ka={};const Ja=new Map;function Xa(e,t={}){const n=JSON.stringify([e,t]);let r=Ja.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),Ja.set(n,r)),r}const ei=new Map,ti=new Map;let ni=null;const ri=new Map;function oi(e){let t=ri.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),ri.set(e,t)),t}const ai=new Map;function ii(e,t,n,r){const o=e.listingMode();return"error"===o?null:"en"===o?n(t):r(t)}class si{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:o,...a}=n;if(!t||Object.keys(a).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=ei.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),ei.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return es(this.floor?Math.floor(e):os(e,3),this.padTo)}}class li{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Qa.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||r,this.dtf=Xa(t,o)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ci{constructor(e,t,n){this.opts={style:"long",...n},!t&&Zi()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let a=ti.get(o);return void 0===a&&(a=new Intl.RelativeTimeFormat(e,t),ti.set(o,a)),a}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${o[e][0]}`;case-1:return n?"yesterday":`last ${o[e][0]}`;case 0:return n?"today":`this ${o[e][0]}`}}const i=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return i?`${s} ${u} ago`:`in ${s} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const ui={firstDay:1,minimalDays:4,weekend:[6,7]};class di{static fromOpts(e){return di.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,o=!1){const a=e||_i.defaultLocale,i=a||(o?"en-US":ni||(ni=(new Intl.DateTimeFormat).resolvedOptions().locale,ni)),s=t||_i.defaultNumberingSystem,l=n||_i.defaultOutputCalendar,c=Ji(r)||_i.defaultWeekSettings;return new di(i,s,l,c,a)}static resetCache(){ni=null,Ja.clear(),ei.clear(),ti.clear(),ri.clear(),ai.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return di.create(e,t,n,r)}constructor(e,t,n,r,o){const[a,i,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=Xa(e).resolvedOptions(),r=e}catch(o){const a=e.substring(0,n);t=Xa(a).resolvedOptions(),r=a}const{numberingSystem:o,calendar:a}=t;return[r,o,a]}}(e);this.locale=a,this.numberingSystem=t||i||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===oi(e.locale).numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?di.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Ji(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ii(this,e,xs,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";if(!this.monthsCache[o][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[o][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=Sc.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[o][e]}))}weekdays(e,t=!1){return ii(this,e,Cs,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=Sc.utc(2016,11,13+n);t.push(e(r))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(){return ii(this,void 0,(()=>Ds),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Sc.utc(2016,11,13,9),Sc.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return ii(this,e,Ns,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Sc.utc(-40,1,1),Sc.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return r?r.value:null}numberFormatter(e={}){return new si(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new li(e,this.intl,t)}relFormatter(e={}){return new ci(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=Ka[n];return r||(r=new Intl.ListFormat(e,t),Ka[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||oi(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Yi()?function(e){let t=ai.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...ui,...t}),ai.set(e,t)}return t}(this.locale):ui}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let fi=null;class hi extends Ua{static get utcInstance(){return null===fi&&(fi=new hi(0)),fi}static instance(e){return 0===e?hi.utcInstance:new hi(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new hi(hs(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${gs(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${gs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return gs(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class pi extends Ua{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function mi(e,t){if($i(e)||null===e)return t;if(e instanceof Ua)return e;if(function(e){return"string"==typeof e}(e)){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?Ga.instance:"utc"===n||"gmt"===n?hi.utcInstance:hi.parseSpecifier(n)||Qa.create(e)}return Gi(e)?hi.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new pi(e)}const gi={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yi=gi.hanidec.replace(/[\[|\]]/g,"").split(""),bi=new Map;function wi({numberingSystem:e},t=""){const n=e||"latn";let r=bi.get(n);void 0===r&&(r=new Map,bi.set(n,r));let o=r.get(t);return void 0===o&&(o=new RegExp(`${gi[n]}${t}`),r.set(t,o)),o}let xi,ki=()=>Date.now(),Si="system",Ei=null,Ci=null,Di=null,Ti=60,Ai=null;class _i{static get now(){return ki}static set now(e){ki=e}static set defaultZone(e){Si=e}static get defaultZone(){return mi(Si,Ga.instance)}static get defaultLocale(){return Ei}static set defaultLocale(e){Ei=e}static get defaultNumberingSystem(){return Ci}static set defaultNumberingSystem(e){Ci=e}static get defaultOutputCalendar(){return Di}static set defaultOutputCalendar(e){Di=e}static get defaultWeekSettings(){return Ai}static set defaultWeekSettings(e){Ai=Ji(e)}static get twoDigitCutoffYear(){return Ti}static set twoDigitCutoffYear(e){Ti=e%100}static get throwOnInvalid(){return xi}static set throwOnInvalid(e){xi=e}static resetCaches(){di.resetCache(),Qa.resetCache(),Sc.resetCache(),bi.clear()}}class Ni{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Mi=[0,31,59,90,120,151,181,212,243,273,304,334],Ri=[0,31,60,91,121,152,182,213,244,274,305,335];function Oi(e,t){return new Ni("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ji(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return 0===o?7:o}function Ii(e,t,n){return n+(as(e)?Ri:Mi)[t-1]}function Pi(e,t){const n=as(e)?Ri:Mi,r=n.findIndex((e=>e<t));return{month:r+1,day:t-n[r]}}function Li(e,t){return(e-t+7)%7+1}function Fi(e,t=4,n=1){const{year:r,month:o,day:a}=e,i=Ii(r,o,a),s=Li(ji(r,o,a),n);let l,c=Math.floor((i-s+14-t)/7);return c<1?(l=r-1,c=us(l,t,n)):c>us(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...vs(e)}}function zi(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:a}=e,i=Li(ji(r,1,t),n),s=is(r);let l,c=7*o+a-i-7+t;c<1?(l=r-1,c+=is(l)):c>s?(l=r+1,c-=is(r)):l=r;const{month:u,day:d}=Pi(l,c);return{year:l,month:u,day:d,...vs(e)}}function Hi(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Ii(t,n,r),...vs(e)}}function Wi(e){const{year:t,ordinal:n}=e,{month:r,day:o}=Pi(t,n);return{year:t,month:r,day:o,...vs(e)}}function Bi(e,t){if(!$i(e.localWeekday)||!$i(e.localWeekNumber)||!$i(e.localWeekYear)){if(!$i(e.weekday)||!$i(e.weekNumber)||!$i(e.weekYear))throw new ma("Cannot mix locale-based week fields with ISO-based week fields");return $i(e.localWeekday)||(e.weekday=e.localWeekday),$i(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),$i(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Vi(e){const t=qi(e.year),n=Xi(e.month,1,12),r=Xi(e.day,1,ss(e.year,e.month));return t?n?!r&&Oi("day",e.day):Oi("month",e.month):Oi("year",e.year)}function Ui(e){const{hour:t,minute:n,second:r,millisecond:o}=e,a=Xi(t,0,23)||24===t&&0===n&&0===r&&0===o,i=Xi(n,0,59),s=Xi(r,0,59),l=Xi(o,0,999);return a?i?s?!l&&Oi("millisecond",o):Oi("second",r):Oi("minute",n):Oi("hour",t)}function $i(e){return void 0===e}function Gi(e){return"number"==typeof e}function qi(e){return"number"==typeof e&&e%1==0}function Zi(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Yi(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Qi(e,t,n){if(0!==e.length)return e.reduce(((e,r)=>{const o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o}),null)[1]}function Ki(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ji(e){if(null==e)return null;if("object"!=typeof e)throw new va("Week settings must be an object");if(!Xi(e.firstDay,1,7)||!Xi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Xi(e,1,7))))throw new va("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Xi(e,t,n){return qi(e)&&e>=t&&e<=n}function es(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function ts(e){return $i(e)||null===e||""===e?void 0:parseInt(e,10)}function ns(e){return $i(e)||null===e||""===e?void 0:parseFloat(e)}function rs(e){if(!$i(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function os(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function as(e){return e%4==0&&(e%100!=0||e%400==0)}function is(e){return as(e)?366:365}function ss(e,t){const n=function(e){return e-12*Math.floor(e/12)}(t-1)+1;return 2===n?as(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ls(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function cs(e,t,n){return-Li(ji(e,1,t),n)+t-1}function us(e,t=4,n=1){const r=cs(e,t,n),o=cs(e+1,t,n);return(is(e)-r+o)/7}function ds(e){return e>99?e:e>_i.twoDigitCutoffYear?1900+e:2e3+e}function fs(e,t,n,r=null){const o=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const i={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,i).formatToParts(o).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function hs(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ps(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new va(`Invalid unit value ${e}`);return t}function ms(e,t){const n={};for(const r in e)if(Ki(e,r)){const o=e[r];if(null==o)continue;n[t(r)]=ps(o)}return n}function gs(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${es(n,2)}:${es(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${es(n,2)}${es(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function vs(e){return function(e){return["hour","minute","second","millisecond"].reduce(((t,n)=>(t[n]=e[n],t)),{})}(e)}const ys=["January","February","March","April","May","June","July","August","September","October","November","December"],bs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ws=["J","F","M","A","M","J","J","A","S","O","N","D"];function xs(e){switch(e){case"narrow":return[...ws];case"short":return[...bs];case"long":return[...ys];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ks=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ss=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Es=["M","T","W","T","F","S","S"];function Cs(e){switch(e){case"narrow":return[...Es];case"short":return[...Ss];case"long":return[...ks];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ds=["AM","PM"],Ts=["Before Christ","Anno Domini"],As=["BC","AD"],_s=["B","A"];function Ns(e){switch(e){case"narrow":return[..._s];case"short":return[...As];case"long":return[...Ts];default:return null}}function Ms(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Rs={D:ka,DD:Sa,DDD:Ca,DDDD:Da,t:Ta,tt:Aa,ttt:_a,tttt:Na,T:Ma,TT:Ra,TTT:Oa,TTTT:ja,f:Ia,ff:La,fff:Ha,ffff:Ba,F:Pa,FF:Fa,FFF:Wa,FFFF:Va};class Os{static create(e,t={}){return new Os(e,t)}static parseFormat(e){let t=null,n="",r=!1;const o=[];for(let a=0;a<e.length;a++){const i=e.charAt(a);"'"===i?((n.length>0||r)&&o.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||i===t?n+=i:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=i,t=i)}return n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Rs[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return es(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(t,n)=>this.loc.extract(e,t,n),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",i=(t,r)=>n?function(e,t){return xs(t)[e.month-1]}(e,t):o(r?{month:t}:{month:t,day:"numeric"},"month"),s=(t,r)=>n?function(e,t){return Cs(t)[e.weekday-1]}(e,t):o(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=Os.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Ns(t)[e.year<0?0:1]}(e,t):o({era:t},"era");return Ms(Os.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return Ds[e.hour<12?0:1]}(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?o({day:"numeric"},"day"):this.num(e.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return i("short",!0);case"LLLL":return i("long",!0);case"LLLLL":return i("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(e.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return i("short",!1);case"MMMM":return i("long",!1);case"MMMMM":return i("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(e.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=Os.parseFormat(t),a=o.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]),i=e.shiftTo(...a.map(r).filter((e=>e)));return Ms(o,((e,t)=>o=>{const a=r(o);if(a){const r=t.isNegativeDuration&&a!==t.largestUnit?n:1;let i;return i="negativeLargestOnly"===this.opts.signMode&&a!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(a)*r,o.length,i)}return o})(i,{isNegativeDuration:i<0,largestUnit:Object.keys(i.values)[0]}))}}const js=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Is(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Ps(...e){return t=>e.reduce((([e,n,r],o)=>{const[a,i,s]=o(t,r);return[{...e,...a},i||n,s]}),[{},null,1]).slice(0,2)}function Ls(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function Fs(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=ts(t[n+o]);return[r,null,n+o]}}const zs=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Hs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ws=RegExp(`${Hs.source}(?:${zs.source}?(?:\\[(${js.source})\\])?)?`),Bs=RegExp(`(?:[Tt]${Ws.source})?`),Vs=Fs("weekYear","weekNumber","weekDay"),Us=Fs("year","ordinal"),$s=RegExp(`${Hs.source} ?(?:${zs.source}|(${js.source}))?`),Gs=RegExp(`(?: ${$s.source})?`);function qs(e,t,n){const r=e[t];return $i(r)?n:ts(r)}function Zs(e,t){return[{hours:qs(e,t,0),minutes:qs(e,t+1,0),seconds:qs(e,t+2,0),milliseconds:rs(e[t+3])},null,t+4]}function Ys(e,t){const n=!e[t]&&!e[t+1],r=hs(e[t+1],e[t+2]);return[{},n?null:hi.instance(r),t+3]}function Qs(e,t){return[{},e[t]?Qa.create(e[t]):null,t+1]}const Ks=RegExp(`^T?${Hs.source}$`),Js=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Xs(e){const[t,n,r,o,a,i,s,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],f=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:f(ns(n)),months:f(ns(r)),weeks:f(ns(o)),days:f(ns(a)),hours:f(ns(i)),minutes:f(ns(s)),seconds:f(ns(l),"-0"===l),milliseconds:f(rs(c),d)}]}const el={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tl(e,t,n,r,o,a,i){const s={year:2===t.length?ds(ts(t)):ts(t),month:bs.indexOf(n)+1,day:ts(r),hour:ts(o),minute:ts(a)};return i&&(s.second=ts(i)),e&&(s.weekday=e.length>3?ks.indexOf(e)+1:Ss.indexOf(e)+1),s}const nl=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function rl(e){const[,t,n,r,o,a,i,s,l,c,u,d]=e,f=tl(t,o,r,n,a,i,s);let h;return h=l?el[l]:c?0:hs(u,d),[f,new hi(h)]}const ol=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,al=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,il=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function sl(e){const[,t,n,r,o,a,i,s]=e;return[tl(t,o,r,n,a,i,s),hi.utcInstance]}function ll(e){const[,t,n,r,o,a,i,s]=e;return[tl(t,s,n,r,o,a,i),hi.utcInstance]}const cl=Is(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bs),ul=Is(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Bs),dl=Is(/(\d{4})-?(\d{3})/,Bs),fl=Is(Ws),hl=Ps((function(e,t){return[{year:qs(e,t),month:qs(e,t+1,1),day:qs(e,t+2,1)},null,t+3]}),Zs,Ys,Qs),pl=Ps(Vs,Zs,Ys,Qs),ml=Ps(Us,Zs,Ys,Qs),gl=Ps(Zs,Ys,Qs),vl=Ps(Zs),yl=Is(/(\d{4})-(\d\d)-(\d\d)/,Gs),bl=Is($s),wl=Ps(Zs,Ys,Qs),xl="Invalid Duration",kl={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Sl={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...kl},El={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...kl},Cl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Dl=Cl.slice(0).reverse();function Tl(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ml(r)}function Al(e,t){let n=t.milliseconds??0;for(const r of Dl.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function _l(e,t){const n=Al(e,t)<0?-1:1;Cl.reduceRight(((r,o)=>{if($i(t[o]))return r;if(r){const a=t[r]*n,i=e[o][r],s=Math.floor(a/i);t[o]+=s*n,t[r]-=s*i*n}return o}),null),Cl.reduce(((n,r)=>{if($i(t[r]))return n;if(n){const o=t[n]%1;t[n]-=o,t[r]+=o*e[n][r]}return r}),null)}function Nl(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}class Ml{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?El:Sl;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||di.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Ml.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new va("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ml({values:ms(e,Ml.normalizeUnit),loc:di.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Gi(e))return Ml.fromMillis(e);if(Ml.isDuration(e))return e;if("object"==typeof e)return Ml.fromObject(e);throw new va(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Ls(e,[Js,Xs])}(e);return n?Ml.fromObject(n,t):Ml.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Ls(e,[Ks,vl])}(e);return n?Ml.fromObject(n,t):Ml.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new va("need to specify a reason the Duration is invalid");const n=e instanceof Ni?e:new Ni(e,t);if(_i.throwOnInvalid)throw new pa(n);return new Ml({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new ga(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Os.create(this.loc,n).formatDurationFromString(this,e):xl}toHuman(e={}){if(!this.isValid)return xl;const t=!1!==e.showZeros,n=Cl.map((n=>{const r=this.values[n];return $i(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=os(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Sc.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Al(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ml.fromDurationLike(e),n={};for(const e of Cl)(Ki(t.values,e)||Ki(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Tl(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Ml.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=ps(e(this.values[n],n));return Tl(this,{values:t},!0)}get(e){return this[Ml.normalizeUnit(e)]}set(e){return this.isValid?Tl(this,{values:{...this.values,...ms(e,Ml.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Tl(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return _l(this.matrix,e),Tl(this,{values:e},!0)}rescale(){return this.isValid?Tl(this,{values:Nl(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Ml.normalizeUnit(e)));const t={},n={},r=this.toObject();let o;for(const a of Cl)if(e.indexOf(a)>=0){o=a;let e=0;for(const t in n)e+=this.matrix[t][a]*n[t],n[t]=0;Gi(r[a])&&(e+=r[a]);const i=Math.trunc(e);t[a]=i,n[a]=(1e3*e-1e3*i)/1e3}else Gi(r[a])&&(n[a]=r[a]);for(const e in n)0!==n[e]&&(t[o]+=e===o?n[e]:n[e]/this.matrix[o][e]);return _l(this.matrix,t),Tl(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Tl(this,{values:e},!0)}removeZeros(){return this.isValid?Tl(this,{values:Nl(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const r of Cl)if(t=this.values[r],n=e.values[r],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Rl="Invalid Interval";class Ol{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new va("need to specify a reason the Interval is invalid");const n=e instanceof Ni?e:new Ni(e,t);if(_i.throwOnInvalid)throw new ha(n);return new Ol({invalid:n})}static fromDateTimes(e,t){const n=Ec(e),r=Ec(t),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Ol.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Ol.invalid("missing or invalid end"):Ol.invalid("missing or invalid start")}(n,r);return null==o?new Ol({start:n,end:r}):o}static after(e,t){const n=Ml.fromDurationLike(t),r=Ec(e);return Ol.fromDateTimes(r,r.plus(n))}static before(e,t){const n=Ml.fromDurationLike(t),r=Ec(e);return Ol.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,o,a,i;try{e=Sc.fromISO(n,t),o=e.isValid}catch(r){o=!1}try{a=Sc.fromISO(r,t),i=a.isValid}catch(r){i=!1}if(o&&i)return Ol.fromDateTimes(e,a);if(o){const n=Ml.fromISO(r,t);if(n.isValid)return Ol.after(e,n)}else if(i){const e=Ml.fromISO(n,t);if(e.isValid)return Ol.before(a,e)}}return Ol.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Ol.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ec).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:r}=this,o=0;for(;r<this.e;){const e=t[o]||this.e,a=+e>+this.e?this.e:e;n.push(Ol.fromDateTimes(r,a)),r=a,o+=1}return n}splitBy(e){const t=Ml.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,o=1;const a=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits((e=>e*o)));n=+e>+this.e?this.e:e,a.push(Ol.fromDateTimes(r,n)),r=n,o+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Ol.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Ol.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],o=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),a=Array.prototype.concat(...o).sort(((e,t)=>e.time-t.time));for(const e of a)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&r.push(Ol.fromDateTimes(t,e.time)),t=null);return Ol.merge(r)}difference(...e){return Ol.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Rl}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ka,t={}){return this.isValid?Os.create(this.s.loc.clone(t),e).formatInterval(this):Rl}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Rl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Rl}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Rl}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Rl}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ml.invalid(this.invalidReason)}mapEndpoints(e){return Ol.fromDateTimes(e(this.s),e(this.e))}}class jl{static hasDST(e=_i.defaultZone){const t=Sc.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Qa.isValidZone(e)}static normalizeZone(e){return mi(e,_i.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||di.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||di.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||di.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||di.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||di.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||di.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||di.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return di.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return di.create(t,null,"gregory").eras(e)}static features(){return{relative:Zi(),localeWeek:Yi()}}}function Il(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Ml.fromMillis(r).as("days"))}function Pl(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(gi.hanidec))t+=yi.indexOf(e[n]);else for(const e in vi){const[n,o]=vi[e];r>=n&&r<=o&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Ll=`[ ${String.fromCharCode(160)}]`,Fl=new RegExp(Ll,"g");function zl(e){return e.replace(/\./g,"\\.?").replace(Fl,Ll)}function Hl(e){return e.replace(/\./g,"").replace(Fl," ").toLowerCase()}function Wl(e,t){return null===e?null:{regex:RegExp(e.map(zl).join("|")),deser:([n])=>e.findIndex((e=>Hl(n)===Hl(e)))+t}}function Bl(e,t){return{regex:e,deser:([,e,t])=>hs(e,t),groups:t}}function Vl(e){return{regex:e,deser:([e])=>e}}const Ul={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let $l=null;function Gl(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=Yl(Os.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}class ql{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Gl(Os.parseFormat(t),e),this.units=this.tokens.map((t=>function(e,t){const n=wi(t),r=wi(t,"{2}"),o=wi(t,"{3}"),a=wi(t,"{4}"),i=wi(t,"{6}"),s=wi(t,"{1,2}"),l=wi(t,"{1,3}"),c=wi(t,"{1,6}"),u=wi(t,"{1,9}"),d=wi(t,"{2,4}"),f=wi(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return h(p);switch(p.val){case"G":return Wl(t.eras("short"),0);case"GG":return Wl(t.eras("long"),0);case"y":return Pl(c);case"yy":case"kk":return Pl(d,ds);case"yyyy":case"kkkk":return Pl(a);case"yyyyy":return Pl(f);case"yyyyyy":return Pl(i);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Pl(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Pl(r);case"MMM":return Wl(t.months("short",!0),1);case"MMMM":return Wl(t.months("long",!0),1);case"LLL":return Wl(t.months("short",!1),1);case"LLLL":return Wl(t.months("long",!1),1);case"o":case"S":return Pl(l);case"ooo":case"SSS":return Pl(o);case"u":return Vl(u);case"uu":return Vl(s);case"uuu":case"E":case"c":return Pl(n);case"a":return Wl(t.meridiems(),0);case"EEE":return Wl(t.weekdays("short",!1),1);case"EEEE":return Wl(t.weekdays("long",!1),1);case"ccc":return Wl(t.weekdays("short",!0),1);case"cccc":return Wl(t.weekdays("long",!0),1);case"Z":case"ZZ":return Bl(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Bl(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return Vl(/[a-z_+-/]{1,256}?/i);case" ":return Vl(/[^\S\n\r]/);default:return h(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),this.disqualifyingUnit=this.units.find((e=>e.invalidReason)),!this.disqualifyingUnit){const[e,t]=function(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const o in n)if(Ki(n,o)){const a=n[o],i=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+i))),t+=i}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,o,a]=n?function(e){let t,n=null;$i(e.z)||(n=Qa.create(e.z)),$i(e.Z)||(n||(n=new hi(e.Z)),t=e.Z),$i(e.q)||(e.M=3*(e.q-1)+1),$i(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),$i(e.u)||(e.S=rs(e.u));const r=Object.keys(e).reduce(((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t}),{});return[r,n,t]}(n):[null,null,void 0];if(Ki(n,"a")&&Ki(n,"H"))throw new ma("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:o,specificOffset:a}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Zl(e,t,n){return new ql(e,n).explainFromTokens(t)}function Yl(e,t){if(!e)return null;const n=Os.create(t,e).dtFormatter(($l||($l=Sc.fromMillis(1555555555555)),$l)),r=n.formatToParts(),o=n.resolvedOptions();return r.map((t=>function(e,t,n){const{type:r,value:o}=e;if("literal"===r){const e=/^\s+$/.test(o);return{literal:!e,val:e?" ":o}}const a=t[r];let i=r;"hour"===r&&(i=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=Ul[i];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(t,e,o)))}const Ql="Invalid DateTime",Kl=864e13;function Jl(e){return new Ni("unsupported zone",`the zone "${e.name}" is not supported`)}function Xl(e){return null===e.weekData&&(e.weekData=Fi(e.c)),e.weekData}function ec(e){return null===e.localWeekData&&(e.localWeekData=Fi(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function tc(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Sc({...n,...t,old:n})}function nc(e,t,n){let r=e-60*t*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;const a=n.offset(r);return o===a?[r,o]:[e-60*Math.min(o,a)*1e3,Math.max(o,a)]}function rc(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function oc(e,t,n){return nc(ls(e),t,n)}function ac(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:r,month:o,day:Math.min(e.c.day,ss(r,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},i=Ml.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=ls(a);let[l,c]=nc(s,n,e.zone);return 0!==i&&(l+=i,c=e.zone.offset(l)),{ts:l,o:c}}function ic(e,t,n,r,o,a){const{setZone:i,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,o=Sc.fromObject(e,{...n,zone:r,specificOffset:a});return i?o:o.setZone(s)}return Sc.invalid(new Ni("unparsable",`the input "${o}" can't be parsed as ${r}`))}function sc(e,t,n=!0){return e.isValid?Os.create(di.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function lc(e,t,n){const r=e.c.year>9999||e.c.year<0;let o="";if(r&&e.c.year>=0&&(o+="+"),o+=es(e.c.year,r?6:4),"year"===n)return o;if(t){if(o+="-",o+=es(e.c.month),"month"===n)return o;o+="-"}else if(o+=es(e.c.month),"month"===n)return o;return o+=es(e.c.day),o}function cc(e,t,n,r,o,a,i){let s=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(i){case"day":case"month":case"year":break;default:if(l+=es(e.c.hour),"hour"===i)break;if(t){if(l+=":",l+=es(e.c.minute),"minute"===i)break;s&&(l+=":",l+=es(e.c.second))}else{if(l+=es(e.c.minute),"minute"===i)break;s&&(l+=es(e.c.second))}if("second"===i)break;!s||r&&0===e.c.millisecond||(l+=".",l+=es(e.c.millisecond,3))}return o&&(e.isOffsetFixed&&0===e.offset&&!a?l+="Z":e.o<0?(l+="-",l+=es(Math.trunc(-e.o/60)),l+=":",l+=es(Math.trunc(-e.o%60))):(l+="+",l+=es(Math.trunc(e.o/60)),l+=":",l+=es(Math.trunc(e.o%60)))),a&&(l+="["+e.zone.ianaName+"]"),l}const uc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},fc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},hc=["year","month","day","hour","minute","second","millisecond"],pc=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mc=["year","ordinal","hour","minute","second","millisecond"];function gc(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ga(e);return t}function vc(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return gc(e)}}function yc(e,t){const n=mi(t.zone,_i.defaultZone);if(!n.isValid)return Sc.invalid(Jl(n));const r=di.fromObject(t);let o,a;if($i(e.year))o=_i.now();else{for(const t of hc)$i(e[t])&&(e[t]=uc[t]);const t=Vi(e)||Ui(e);if(t)return Sc.invalid(t);const r=function(e){if(void 0===xc&&(xc=_i.now()),"iana"!==e.type)return e.offset(xc);const t=e.name;let n=kc.get(t);return void 0===n&&(n=e.offset(xc),kc.set(t,n)),n}(n);[o,a]=oc(e,r,n)}return new Sc({ts:o,zone:n,loc:r,o:a})}function bc(e,t,n){const r=!!$i(n.round)||n.round,o=$i(n.rounding)?"trunc":n.rounding,a=(e,a)=>(e=os(e,r||n.calendary?0:2,n.calendary?"round":o),t.loc.clone(n).relFormatter(n).format(e,a)),i=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return a(i(n.unit),n.unit);for(const e of n.units){const t=i(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,n.units[n.units.length-1])}function wc(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let xc;const kc=new Map;class Sc{constructor(e){const t=e.zone||_i.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Ni("invalid input"):null)||(t.isValid?null:Jl(t));this.ts=$i(e.ts)?_i.now():e.ts;let r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,o]=[e.old.c,e.old.o];else{const a=Gi(e.o)&&!e.old?e.o:t.offset(this.ts);r=rc(this.ts,a),n=Number.isNaN(r.year)?new Ni("invalid input"):null,r=n?null:r,o=n?null:a}this._zone=t,this.loc=e.loc||di.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new Sc({})}static local(){const[e,t]=wc(arguments),[n,r,o,a,i,s,l]=t;return yc({year:n,month:r,day:o,hour:a,minute:i,second:s,millisecond:l},e)}static utc(){const[e,t]=wc(arguments),[n,r,o,a,i,s,l]=t;return e.zone=hi.utcInstance,yc({year:n,month:r,day:o,hour:a,minute:i,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const n=function(e){return"[object Date]"===Object.prototype.toString.call(e)}(e)?e.valueOf():NaN;if(Number.isNaN(n))return Sc.invalid("invalid input");const r=mi(t.zone,_i.defaultZone);return r.isValid?new Sc({ts:n,zone:r,loc:di.fromObject(t)}):Sc.invalid(Jl(r))}static fromMillis(e,t={}){if(Gi(e))return e<-Kl||e>Kl?Sc.invalid("Timestamp out of range"):new Sc({ts:e,zone:mi(t.zone,_i.defaultZone),loc:di.fromObject(t)});throw new va(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Gi(e))return new Sc({ts:1e3*e,zone:mi(t.zone,_i.defaultZone),loc:di.fromObject(t)});throw new va("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=mi(t.zone,_i.defaultZone);if(!n.isValid)return Sc.invalid(Jl(n));const r=di.fromObject(t),o=ms(e,vc),{minDaysInFirstWeek:a,startOfWeek:i}=Bi(o,r),s=_i.now(),l=$i(t.specificOffset)?n.offset(s):t.specificOffset,c=!$i(o.ordinal),u=!$i(o.year),d=!$i(o.month)||!$i(o.day),f=u||d,h=o.weekYear||o.weekNumber;if((f||c)&&h)throw new ma("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new ma("Can't mix ordinal dates with month/day");const p=h||o.weekday&&!f;let m,g,v=rc(s,l);p?(m=pc,g=dc,v=Fi(v,a,i)):c?(m=mc,g=fc,v=Hi(v)):(m=hc,g=uc);let y=!1;for(const e of m)$i(o[e])?o[e]=y?g[e]:v[e]:y=!0;const b=p?function(e,t=4,n=1){const r=qi(e.weekYear),o=Xi(e.weekNumber,1,us(e.weekYear,t,n)),a=Xi(e.weekday,1,7);return r?o?!a&&Oi("weekday",e.weekday):Oi("week",e.weekNumber):Oi("weekYear",e.weekYear)}(o,a,i):c?function(e){const t=qi(e.year),n=Xi(e.ordinal,1,is(e.year));return t?!n&&Oi("ordinal",e.ordinal):Oi("year",e.year)}(o):Vi(o),w=b||Ui(o);if(w)return Sc.invalid(w);const x=p?zi(o,a,i):c?Wi(o):o,[k,S]=oc(x,l,n),E=new Sc({ts:k,zone:n,o:S,loc:r});return o.weekday&&f&&e.weekday!==E.weekday?Sc.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${E.toISO()}`):E.isValid?E:Sc.invalid(E.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return Ls(e,[cl,hl],[ul,pl],[dl,ml],[fl,gl])}(e);return ic(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Ls(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[nl,rl])}(e);return ic(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Ls(e,[ol,sl],[al,sl],[il,ll])}(e);return ic(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if($i(e)||$i(t))throw new va("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,a=di.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[i,s,l,c]=function(e,t,n){const{result:r,zone:o,specificOffset:a,invalidReason:i}=Zl(e,t,n);return[r,o,a,i]}(a,e,t);return c?Sc.invalid(c):ic(i,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return Sc.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return Ls(e,[yl,hl],[bl,wl])}(e);return ic(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new va("need to specify a reason the DateTime is invalid");const n=e instanceof Ni?e:new Ni(e,t);if(_i.throwOnInvalid)throw new fa(n);return new Sc({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Yl(e,di.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Gl(Os.parseFormat(e),di.fromObject(t)).map((e=>e.val)).join("")}static resetCache(){xc=void 0,kc.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Xl(this).weekYear:NaN}get weekNumber(){return this.isValid?Xl(this).weekNumber:NaN}get weekday(){return this.isValid?Xl(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ec(this).weekday:NaN}get localWeekNumber(){return this.isValid?ec(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ec(this).weekYear:NaN}get ordinal(){return this.isValid?Hi(this.c).ordinal:NaN}get monthShort(){return this.isValid?jl.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?jl.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?jl.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?jl.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=ls(this.c),r=this.zone.offset(n-e),o=this.zone.offset(n+e),a=this.zone.offset(n-r*t),i=this.zone.offset(n-o*t);if(a===i)return[this];const s=n-a*t,l=n-i*t,c=rc(s,a),u=rc(l,i);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[tc(this,{ts:s}),tc(this,{ts:l})]:[this]}get isInLeapYear(){return as(this.year)}get daysInMonth(){return ss(this.year,this.month)}get daysInYear(){return this.isValid?is(this.year):NaN}get weeksInWeekYear(){return this.isValid?us(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?us(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Os.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(hi.instance(e),t)}toLocal(){return this.setZone(_i.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=mi(e,_i.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=oc(n,t,e)}return tc(this,{ts:r,zone:e})}return Sc.invalid(Jl(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return tc(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ms(e,vc),{minDaysInFirstWeek:n,startOfWeek:r}=Bi(t,this.loc),o=!$i(t.weekYear)||!$i(t.weekNumber)||!$i(t.weekday),a=!$i(t.ordinal),i=!$i(t.year),s=!$i(t.month)||!$i(t.day),l=i||s,c=t.weekYear||t.weekNumber;if((l||a)&&c)throw new ma("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new ma("Can't mix ordinal dates with month/day");let u;o?u=zi({...Fi(this.c,n,r),...t},n,r):$i(t.ordinal)?(u={...this.toObject(),...t},$i(t.day)&&(u.day=Math.min(ss(u.year,u.month),u.day))):u=Wi({...Hi(this.c),...t});const[d,f]=oc(u,this.o,this.zone);return tc(this,{ts:d,o:f})}plus(e){return this.isValid?tc(this,ac(this,Ml.fromDurationLike(e))):this}minus(e){return this.isValid?tc(this,ac(this,Ml.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=Ml.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Os.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ql}toLocaleString(e=ka,t={}){return this.isValid?Os.create(this.loc.clone(t),e).formatDateTime(this):Ql}toLocaleParts(e={}){return this.isValid?Os.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:o=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;const i="extended"===e;let s=lc(this,i,a=gc(a));return hc.indexOf(a)>=3&&(s+="T"),s+=cc(this,i,t,n,r,o,a),s}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?lc(this,"extended"===e,gc(t)):null}toISOWeekDate(){return sc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:o=!1,format:a="extended",precision:i="milliseconds"}={}){return this.isValid?(i=gc(i),(r&&hc.indexOf(i)>=3?"T":"")+cc(this,"extended"===a,t,e,n,o,i)):null}toRFC2822(){return sc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return sc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?lc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),sc(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ql}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ml.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=(s=t,Array.isArray(s)?s:[s]).map(Ml.normalizeUnit),a=e.valueOf()>this.valueOf(),i=function(e,t,n,r){let[o,a,i,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Il(e,t);return(n-n%7)/7}],["days",Il]],o={},a=e;let i,s;for(const[l,c]of r)n.indexOf(l)>=0&&(i=l,o[l]=c(e,t),s=a.plus(o),s>t?(o[l]--,(e=a.plus(o))>t&&(s=e,o[l]--,e=a.plus(o))):e=s);return[e,o,s,i]}(e,t,n);const l=t-o,c=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===c.length&&(i<t&&(i=o.plus({[s]:1})),i!==o&&(a[s]=(a[s]||0)+l/(i-o)));const u=Ml.fromObject(a,r);return c.length>0?Ml.fromMillis(l,r).shiftTo(...c).plus(u):u}(a?this:e,a?e:this,o,r);var s;return a?i.negate():i}diffNow(e="milliseconds",t={}){return this.diff(Sc.now(),e,t)}until(e){return this.isValid?Ol.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,n)<=r&&r<=o.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Sc.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(r=e.unit,o=void 0),bc(t,this.plus(n),{...e,numeric:"always",units:r,unit:o})}toRelativeCalendar(e={}){return this.isValid?bc(e.base||Sc.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Sc.isDateTime))throw new va("min requires all arguments be DateTimes");return Qi(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(Sc.isDateTime))throw new va("max requires all arguments be DateTimes");return Qi(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:o=null}=n;return Zl(di.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Sc.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,o=di.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new ql(o,e)}static fromFormatParser(e,t,n={}){if($i(e)||$i(t))throw new va("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:o=null}=n,a=di.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});if(!a.equals(t.locale))throw new va(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);const{result:i,zone:s,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?Sc.invalid(c):ic(i,s,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return ka}static get DATE_MED(){return Sa}static get DATE_MED_WITH_WEEKDAY(){return Ea}static get DATE_FULL(){return Ca}static get DATE_HUGE(){return Da}static get TIME_SIMPLE(){return Ta}static get TIME_WITH_SECONDS(){return Aa}static get TIME_WITH_SHORT_OFFSET(){return _a}static get TIME_WITH_LONG_OFFSET(){return Na}static get TIME_24_SIMPLE(){return Ma}static get TIME_24_WITH_SECONDS(){return Ra}static get TIME_24_WITH_SHORT_OFFSET(){return Oa}static get TIME_24_WITH_LONG_OFFSET(){return ja}static get DATETIME_SHORT(){return Ia}static get DATETIME_SHORT_WITH_SECONDS(){return Pa}static get DATETIME_MED(){return La}static get DATETIME_MED_WITH_SECONDS(){return Fa}static get DATETIME_MED_WITH_WEEKDAY(){return za}static get DATETIME_FULL(){return Ha}static get DATETIME_FULL_WITH_SECONDS(){return Wa}static get DATETIME_HUGE(){return Ba}static get DATETIME_HUGE_WITH_SECONDS(){return Va}}function Ec(e){if(Sc.isDateTime(e))return e;if(e&&e.valueOf&&Gi(e.valueOf()))return Sc.fromJSDate(e);if(e&&"object"==typeof e)return Sc.fromObject(e);throw new va(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function Cc(e,t,n="12"){if(e.tbc)return e.tbc_note||"Date and time to be confirmed";const r=Tc(t||"UTC"),o="undefined"!=typeof eventkoi_params&&eventkoi_params.locale&&(a=eventkoi_params.locale)?a.replace("_","-"):"en";var a;const i=e=>e?.isValid?"24"===n?e.setLocale(o).toFormat("HH:mm"):e.setLocale(o).toFormat(0===e.minute?"ha":"h:mma").toLowerCase().replace(":00",""):"",s=e=>{if(!e)return null;const t=Sc.fromISO(e,{zone:"utc"}).setZone(r).setLocale(o);return t.isValid?t:null};if("recurring"===e.date_type&&e.timeline){const t=s(e.start),n=s(e.end_real)||s(e.end);if(!t)return null;const r=!!e.allDay,o=n&&t.hasSame(n,"day");return o&&!r?`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)} – ${i(n)}`:!n||o?t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY):`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)} – ${n.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}`}if("standard"===e.date_type||"multi"===e.date_type){const t=s(e.start),n=s(e.end_real)||s(e.end);if(!t)return null;const r=!!e.allDay;return n&&t.hasSame(n,"day")&&!r?`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)} – ${i(n)}`:n?`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)} – ${n.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(n)}`:r?t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY):`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)}`}return null}function Dc(e,t="24",n=!0){if(!e)return"12"===t?"UTC, AM/PM":"UTC, 24hr";const r=e=>n?"12"===t?`${e}, AM/PM`:`${e}, 24hr`:e,o=e.match(/^([+-])(\d{2}):?(\d{2})$/);if(o){const e=o[1],t=parseInt(o[2],10),n=parseInt(o[3],10);return r(0===n?`UTC${e}${t}`:`UTC${e}${t}:${n.toString().padStart(2,"0")}`)}if(e.startsWith("Etc/GMT")){const t=e.replace("Etc/GMT",""),n=parseInt(t,10);return r(0===n?"UTC":`UTC${n>=0?"+":"-"}${Math.abs(n)}`)}if(!isNaN(parseFloat(e))&&isFinite(e)){const t=parseFloat(e);return r(0===t?"UTC":`UTC${t>=0?"+":""}${t}`)}if("local"===e.toLowerCase()){const e=Intl.DateTimeFormat().resolvedOptions().timeZone;let t=Sc.now().setZone(e).toFormat("ZZ");return t=t.replace(":00","").replace(/^(\+|-)0/,"$1"),r(`${e} (UTC${t})`)}if("UTC"===e.toUpperCase())return r("UTC");const a=Sc.now().setZone(e);if(a.isValid){let t=a.toFormat("ZZ");return t=t.replace(":00","").replace(/^(\+|-)0/,"$1"),r(`${e} (UTC${t})`)}return r(e)}function Tc(e){if("local"===e)return Intl.DateTimeFormat().resolvedOptions().timeZone;if("utc"===e)return"UTC";if(!isNaN(parseFloat(e))&&isFinite(e)){const t=parseFloat(e);return`Etc/GMT${t>=0?"-":"+"}${Math.abs(t)}`}return e}function Ac(e){if(!e)return"UTC";const t=Tc(e);return Sc.now().setZone(t).isValid?t:"UTC"}function _c(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_c(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_c(e))&&(r&&(r+=" "),r+=t);return r}const Mc=e=>{const t=Ic(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Rc(n,t)||jc(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Rc=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rc(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find((({validator:e})=>e(a)))?.classGroupId},Oc=/^\[(.+)\]$/,jc=e=>{if(Oc.test(e)){const t=Oc.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ic=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return zc(Object.entries(e.classGroups),n).forEach((([e,n])=>{Pc(n,r,e,t)})),r},Pc=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Fc(e)?void Pc(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Pc(o,Lc(t,e),n,r)}))}else(""===e?t:Lc(t,e)).classGroupId=n}))},Lc=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},Fc=e=>e.isThemeGetter,zc=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,Hc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Wc=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},Bc=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},Vc=/\s+/;function Uc(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=$c(e))&&(r&&(r+=" "),r+=t);return r}const $c=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$c(e[r]))&&(n&&(n+=" "),n+=t);return n};function Gc(e,...t){let n,r,o,a=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:Hc(e.cacheSize),parseClassName:Wc(e),...Mc(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(Vc);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){s=t+(s.length>0?" "+s:s);continue}if(h=r(u),!h){s=t+(s.length>0?" "+s:s);continue}f=!1}const p=Bc(l).join(":"),m=c?p+"!":p,g=m+h;if(a.includes(g))continue;a.push(g);const v=o(h,f);for(let e=0;e<v.length;++e){const t=v[e];a.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(Uc.apply(null,arguments))}}const qc=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Zc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yc=/^\d+\/\d+$/,Qc=new Set(["px","full","screen"]),Kc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nu=e=>ou(e)||Qc.has(e)||Yc.test(e),ru=e=>vu(e,"length",yu),ou=e=>Boolean(e)&&!Number.isNaN(Number(e)),au=e=>vu(e,"number",ou),iu=e=>Boolean(e)&&Number.isInteger(Number(e)),su=e=>e.endsWith("%")&&ou(e.slice(0,-1)),lu=e=>Zc.test(e),cu=e=>Kc.test(e),uu=new Set(["length","size","percentage"]),du=e=>vu(e,uu,bu),fu=e=>vu(e,"position",bu),hu=new Set(["image","url"]),pu=e=>vu(e,hu,xu),mu=e=>vu(e,"",wu),gu=()=>!0,vu=(e,t,n)=>{const r=Zc.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},yu=e=>Jc.test(e)&&!Xc.test(e),bu=()=>!1,wu=e=>eu.test(e),xu=e=>tu.test(e),ku=Gc((Symbol.toStringTag,()=>{const e=qc("colors"),t=qc("spacing"),n=qc("blur"),r=qc("brightness"),o=qc("borderColor"),a=qc("borderRadius"),i=qc("borderSpacing"),s=qc("borderWidth"),l=qc("contrast"),c=qc("grayscale"),u=qc("hueRotate"),d=qc("invert"),f=qc("gap"),h=qc("gradientColorStops"),p=qc("gradientColorStopPositions"),m=qc("inset"),g=qc("margin"),v=qc("opacity"),y=qc("padding"),b=qc("saturate"),w=qc("scale"),x=qc("sepia"),k=qc("skew"),S=qc("space"),E=qc("translate"),C=()=>["auto",lu,t],D=()=>[lu,t],T=()=>["",nu,ru],A=()=>["auto",ou,lu],_=()=>["","0",lu],N=()=>[ou,lu];return{cacheSize:500,separator:":",theme:{colors:[gu],spacing:[nu,ru],blur:["none","",cu,lu],brightness:N(),borderColor:[e],borderRadius:["none","","full",cu,lu],borderSpacing:D(),borderWidth:T(),contrast:N(),grayscale:_(),hueRotate:N(),invert:_(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[su,ru],inset:C(),margin:C(),opacity:N(),padding:D(),saturate:N(),scale:N(),sepia:_(),skew:N(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",lu]}],container:["container"],columns:[{columns:[cu]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lu]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",iu,lu]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",lu]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",iu,lu]}],"grid-cols":[{"grid-cols":[gu]}],"col-start-end":[{col:["auto",{span:["full",iu,lu]},lu]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[gu]}],"row-start-end":[{row:["auto",{span:[iu,lu]},lu]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",lu]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",lu]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",lu,t]}],"min-w":[{"min-w":[lu,t,"min","max","fit"]}],"max-w":[{"max-w":[lu,t,"none","full","min","max","fit","prose",{screen:[cu]},cu]}],h:[{h:[lu,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[lu,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[lu,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[lu,t,"auto","min","max","fit"]}],"font-size":[{text:["base",cu,ru]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",au]}],"font-family":[{font:[gu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",lu]}],"line-clamp":[{"line-clamp":["none",ou,au]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",nu,lu]}],"list-image":[{"list-image":["none",lu]}],"list-style-type":[{list:["none","disc","decimal",lu]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",nu,ru]}],"underline-offset":[{"underline-offset":["auto",nu,lu]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lu]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lu]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",fu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",du]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[nu,lu]}],"outline-w":[{outline:[nu,ru]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[nu,ru]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",cu,mu]}],"shadow-color":[{shadow:[gu]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",cu,lu]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",lu]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",lu]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",lu]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[iu,lu]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",lu]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lu]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lu]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[nu,ru,au]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function Su(...e){return ku(Nc(e))}const Eu=Zo,Cu=Yo;a.forwardRef((({className:e,inset:t,children:n,...r},o)=>(0,d.jsxs)(oa,{ref:o,className:Su("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,(0,d.jsx)(la,{className:"ml-auto h-4 w-4"})]}))).displayName=oa.displayName,a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(aa,{ref:n,className:Su("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}))).displayName=aa.displayName;const Du=a.forwardRef((({className:e,sideOffset:t=4,...n},r)=>(0,d.jsx)(Qo,{children:(0,d.jsx)(Ko,{ref:r,sideOffset:t,className:Su("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})));Du.displayName=Ko.displayName;const Tu=a.forwardRef((({className:e,inset:t,...n},r)=>(0,d.jsx)(Xo,{ref:r,className:Su("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));Tu.displayName=Xo.displayName,a.forwardRef((({className:e,children:t,checked:n,...r},o)=>(0,d.jsxs)(ea,{ref:o,className:Su("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(na,{children:(0,d.jsx)(ca,{className:"h-4 w-4"})})}),t]}))).displayName=ea.displayName,a.forwardRef((({className:e,children:t,...n},r)=>(0,d.jsxs)(ta,{ref:r,className:Su("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(na,{children:(0,d.jsx)(ua,{className:"h-2 w-2 fill-current"})})}),t]}))).displayName=ta.displayName,a.forwardRef((({className:e,inset:t,...n},r)=>(0,d.jsx)(Jo,{ref:r,className:Su("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}))).displayName=Jo.displayName,a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(ra,{ref:n,className:Su("-mx-1 my-1 h-px bg-muted",e),...t}))).displayName=ra.displayName;var Au=o(338);function _u(e,t=!1){if(!e)return"";const n=new Date(e);return isNaN(n)?"":t?n.toISOString().slice(0,10).replace(/-/g,""):n.toISOString().replace(/[-:]/g,"").replace(".000Z","Z").slice(0,16)+"00Z"}const Nu=(e,t=!1)=>e?t?e.slice(0,10):e:"";function Mu({base:e,html:t}){const{event:n}=eventkoi_params;(0,a.useEffect)((()=>{e&&(e.style.padding="0",e.style.border="none")}),[e]);const r=function(e){let t=new URLSearchParams(window.location.search).get("instance");if(!t){const e=window.location.pathname.match(/\/(\d+)\/?$/);e&&(t=e[1])}if("recurring"===e.date_type&&t&&!isNaN(Number(t))){var n;const r=e.recurrence_rules?.[0],o=new Date(1e3*Number(t));let a;if(r?.start_date&&r?.end_date){const e=new Date(r.end_date).getTime()-new Date(r.start_date).getTime();a=new Date(o.getTime()+e)}return{start_date:o.toISOString(),end_date:a?.toISOString(),all_day:null!==(n=r?.all_day)&&void 0!==n&&n}}return function(e){return"standard"===e.date_type&&Array.isArray(e.event_days)&&e.event_days.length?e.event_days[0]:"recurring"===e.date_type&&Array.isArray(e.recurrence_rules)&&e.recurrence_rules.length?e.recurrence_rules[0]:{start_date:e.start_date,end_date:e.end_date,all_day:e.all_day}}(e)}(n),o=r?.start_date,i=r?.end_date,s=_u(o,r?.all_day),l=_u(i,r?.all_day),c="virtual"===n.locations?.[0]?.type?n.locations[0]?.virtual_url||n.location_line||"":[n.locations?.[0]?.name,n.locations?.[0]?.address1,n.locations?.[0]?.address2,n.locations?.[0]?.city,n.locations?.[0]?.state,n.locations?.[0]?.zip,n.locations?.[0]?.country].filter(Boolean).join(", ")||n.location_line||"",u=e=>{window.open(e,"_blank","noopener,noreferrer")},f=e=>{const t=new URL(e);t.searchParams.set("path","/calendar/action/compose"),t.searchParams.set("rrv","addevent"),t.searchParams.set("startdt",Nu(o,r?.all_day)),t.searchParams.set("enddt",Nu(i,r?.all_day)),t.searchParams.set("location",c),t.searchParams.set("subject",n.title||""),t.searchParams.set("body",n.summary||""),u(t)};return(0,d.jsxs)(Eu,{children:[(0,d.jsx)(Cu,{asChild:!0,className:"border-none p-0 bg-transparent",children:(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})}),(0,d.jsxs)(Du,{align:"start",className:"w-[180px] px-3 py-2 shadow-2xl border border-border bg-popover rounded-md",children:[(0,d.jsx)(Tu,{onClick:()=>{const e=new URL("https://www.google.com/calendar/render");e.searchParams.set("action","TEMPLATE"),e.searchParams.set("text",n.title||""),e.searchParams.set("dates",`${s}/${l}`),e.searchParams.set("details",n.summary||""),e.searchParams.set("location",c),e.searchParams.set("output","xml"),u(e)},children:"Google Calendar"}),(0,d.jsx)(Tu,{onClick:()=>u(eventkoi_params.ical),children:"iCalendar"}),(0,d.jsx)(Tu,{onClick:()=>f("https://outlook.office.com/owa/"),children:"Outlook 365"}),(0,d.jsx)(Tu,{onClick:()=>f("https://outlook.live.com/owa/"),children:"Outlook Live"})]})]})}document.querySelectorAll("a[href='#add-to-cal']").forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(Mu,{base:e,html:e.outerHTML}))}));const Ru=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Ou=Nc,ju=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Ou(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=Ru(t)||Ru(r);return o[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n}))?[...e,n,r]:e}),[]);return Ou(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},Iu=ju("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent text-foreground hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-input hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pu=a.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?v:"button";return(0,d.jsx)(i,{className:Su(Iu({variant:t,size:n,className:e})),ref:a,...o})}));Pu.displayName="Button";var Lu="Popover",[Fu,zu]=f(Lu,[Dt]),Hu=Dt(),[Wu,Bu]=Fu(Lu),Vu=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,l=Hu(t),c=a.useRef(null),[u,f]=a.useState(!1),[h=!1,p]=m({prop:r,defaultProp:o,onChange:i});return(0,d.jsx)(Bt,{...l,children:(0,d.jsx)(Wu,{scope:t,contentId:Z(),triggerRef:c,open:h,onOpenChange:p,onOpenToggle:a.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:a.useCallback((()=>f(!0)),[]),onCustomAnchorRemove:a.useCallback((()=>f(!1)),[]),modal:s,children:n})})};Vu.displayName=Lu;var Uu="PopoverAnchor";a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Bu(Uu,n),i=Hu(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return a.useEffect((()=>(s(),()=>l())),[s,l]),(0,d.jsx)(Vt,{...i,...r,ref:t})})).displayName=Uu;var $u="PopoverTrigger",Gu=a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Bu($u,n),a=Hu(n),i=u(t,o.triggerRef),l=(0,d.jsx)(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":rd(o.open),...r,ref:i,onClick:s(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:(0,d.jsx)(Vt,{asChild:!0,...a,children:l})}));Gu.displayName=$u;var qu="PopoverPortal",[Zu,Yu]=Fu(qu,{forceMount:void 0}),Qu=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Bu(qu,t);return(0,d.jsx)(Zu,{scope:t,forceMount:n,children:(0,d.jsx)(qt,{present:n||a.open,children:(0,d.jsx)(Gt,{asChild:!0,container:o,children:r})})})};Qu.displayName=qu;var Ku="PopoverContent",Ju=a.forwardRef(((e,t)=>{const n=Yu(Ku,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Bu(Ku,e.__scopePopover);return(0,d.jsx)(qt,{present:r||a.open,children:a.modal?(0,d.jsx)(Xu,{...o,ref:t}):(0,d.jsx)(ed,{...o,ref:t})})}));Ju.displayName=Ku;var Xu=a.forwardRef(((e,t)=>{const n=Bu(Ku,e.__scopePopover),r=a.useRef(null),o=u(t,r),i=a.useRef(!1);return a.useEffect((()=>{const e=r.current;if(e)return bn(e)}),[]),(0,d.jsx)(ar,{as:v,allowPinchZoom:!0,children:(0,d.jsx)(td,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:s(e.onCloseAutoFocus,(e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()})),onPointerDownOutside:s(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:s(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),ed=a.forwardRef(((e,t)=>{const n=Bu(Ku,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return(0,d.jsx)(td,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),td=a.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...f}=e,h=Bu(Ku,n),p=Hu(n);return O(),(0,d.jsx)(F,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,d.jsx)(_,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,d.jsx)(Ut,{"data-state":rd(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),nd="PopoverClose";function rd(e){return e?"open":"closed"}a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Bu(nd,n);return(0,d.jsx)(x.button,{type:"button",...r,ref:t,onClick:s(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=nd,a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Hu(n);return(0,d.jsx)($t,{...o,...r,ref:t})})).displayName="PopoverArrow";var od=Qu,ad=Ju;const id=Vu,sd=Gu,ld=a.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>(0,d.jsx)(od,{children:(0,d.jsx)(ad,{ref:o,align:t,sideOffset:n,className:Su("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})})));ld.displayName=ad.displayName;const cd=sa("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ud=sa("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),dd=("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en").split("_")[0],fd=Array.from({length:12},((e,t)=>new Intl.DateTimeFormat(dd,{month:"short"}).format(new Date(2e3,t,1))));function hd({calendarApi:e,currentDate:t,setCurrentDate:n}){const[r,o]=(0,a.useState)(!1),i=e?.view?.calendar?.getOption("timeZone")||"UTC";let s=t instanceof Date?t:new Date(t);isNaN(s)&&(s=new Date);const l=Sc.fromJSDate(s,{zone:i}),c=l.year,u=l.month-1;return(0,d.jsxs)(id,{open:r,onOpenChange:o,children:[(0,d.jsx)(sd,{asChild:!0,children:(0,d.jsxs)(Pu,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[`${fd[u]} ${c}`,(0,d.jsx)(cd,{className:"h-4 w-4 min-w-4"})]})}),(0,d.jsxs)(ld,{side:"bottom",align:"start",sideOffset:20,className:"w-[240px] rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)(Pu,{variant:"ghost",size:"icon",onClick:()=>{const t=l.minus({years:1}).startOf("month").toJSDate();e.gotoDate(t),n(t)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,d.jsx)(ud,{className:"w-4 h-4"})}),(0,d.jsx)("div",{className:"text-sm font-medium",children:c}),(0,d.jsx)(Pu,{variant:"ghost",size:"icon",onClick:()=>{const t=l.plus({years:1}).startOf("month").toJSDate();e.gotoDate(t),n(t)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,d.jsx)(la,{className:"w-4 h-4"})})]}),(0,d.jsx)("div",{className:"grid grid-cols-4 gap-2",children:fd.map(((t,r)=>(0,d.jsx)(Pu,{variant:"ghost",className:Su("text-sm font-medium bg-transparent text-foreground border-none shadow-none cursor-pointer hover:bg-muted",r===u&&"bg-muted text-foreground font-semibold"),onClick:()=>(t=>{const r=Sc.fromObject({year:c,month:t+1,day:1},{zone:i}).toJSDate();e.gotoDate(r),n(r),o(!1)})(r),children:t},t)))})]})]})}function pd({calendarApi:e,currentDate:t,setCurrentDate:n}){return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(Pu,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.prev(),"aria-label":"Go to previous period",children:(0,d.jsx)(ud,{className:"w-4 h-4","aria-hidden":"true"})}),(0,d.jsx)(Pu,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.next(),"aria-label":"Go to next period",children:(0,d.jsx)(la,{className:"w-4 h-4","aria-hidden":"true"})})]})}var md=.999,gd=/[\\\/_+.#"@\[\(\{&]/,vd=/[\\\/_+.#"@\[\(\{&]/g,yd=/[\s-]/,bd=/[\s-]/g;function wd(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,f=r.charAt(a),h=n.indexOf(f,o),p=0;h>=0;)(l=wd(e,t,n,r,h+1,a+1,i))>p&&(h===o?l*=1:gd.test(e.charAt(h-1))?(l*=.8,(u=e.slice(o,h-1).match(vd))&&o>0&&(l*=Math.pow(md,u.length))):yd.test(e.charAt(h-1))?(l*=.9,(d=e.slice(o,h-1).match(bd))&&o>0&&(l*=Math.pow(md,d.length))):(l*=.17,o>0&&(l*=Math.pow(md,h-o))),e.charAt(h)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(h-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(h-1)!==r.charAt(a))&&.1*(c=wd(e,t,n,r,h+1,a+2,i))>l&&(l=.1*c),l>p&&(p=l),h=n.indexOf(f,h+1);return i[s]=p,p}function xd(e){return e.toLowerCase().replace(bd," ")}function kd(e,t,n){return wd(e=n&&n.length>0?e+" "+n.join(" "):e,t,xd(e),xd(t),0,0,{})}function Sd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Ed(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Cd(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Ed(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Ed(e[t],null)}}}}function Dd(...e){return a.useCallback(Cd(...e),e)}function Td(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var Ad=globalThis?.document?a.useLayoutEffect:()=>{},_d=i[" useId ".trim().toString()]||(()=>{}),Nd=0;function Md(e){const[t,n]=a.useState(_d());return Ad((()=>{e||n((e=>e??String(Nd++)))}),[e]),e||(t?`radix-${t}`:"")}var Rd=i[" useInsertionEffect ".trim().toString()]||Ad;function Od(e){const t=jd(e),n=a.forwardRef(((e,n)=>{const{children:r,...o}=e,i=a.Children.toArray(r),s=i.find(Pd);if(s){const e=s.props.children,r=i.map((t=>t===s?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t));return(0,d.jsx)(t,{...o,ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function jd(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?Cd(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}Symbol("RADIX:SYNC_STATE");var Id=Symbol("radix.slottable");function Pd(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Id}var Ld=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=Od(`Primitive.${t}`),r=a.forwardRef(((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i,{...a,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function Fd(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}var zd,Hd="dismissableLayer.update",Wd=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bd=a.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=a.useContext(Wd),[f,h]=a.useState(null),p=f?.ownerDocument??globalThis?.document,[,m]=a.useState({}),g=Dd(t,(e=>h(e))),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,k=w>=b,S=function(e,t=globalThis?.document){const n=Fd(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Ud("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));k&&!n&&(o?.(e),s?.(e),e.defaultPrevented||l?.())}),p),E=function(e,t=globalThis?.document){const n=Fd(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{e.target&&!r.current&&Ud("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||l?.())}),p);return function(e,t=globalThis?.document){const n=Fd(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{w===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),a.useEffect((()=>{if(f)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(zd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Vd(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=zd)}}),[f,p,n,u]),a.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Vd())}),[f,u]),a.useEffect((()=>{const e=()=>m({});return document.addEventListener(Hd,e),()=>document.removeEventListener(Hd,e)}),[]),(0,d.jsx)(Ld.div,{...c,ref:g,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:Sd(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Sd(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Sd(e.onPointerDownCapture,S.onPointerDownCapture)})}));function Vd(){const e=new CustomEvent(Hd);document.dispatchEvent(e)}function Ud(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&g.flushSync((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}Bd.displayName="DismissableLayer",a.forwardRef(((e,t)=>{const n=a.useContext(Wd),r=a.useRef(null),o=Dd(t,r);return a.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,d.jsx)(Ld.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var $d="focusScope.autoFocusOnMount",Gd="focusScope.autoFocusOnUnmount",qd={bubbles:!1,cancelable:!0},Zd=a.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=a.useState(null),u=Fd(o),f=Fd(i),h=a.useRef(null),p=Dd(t,(e=>c(e))),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(r){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?h.current=t:Jd(h.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Jd(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Jd(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,m.paused]),a.useEffect((()=>{if(l){Xd.add(m);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent($d,qd);l.addEventListener($d,u),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Jd(r,{select:t}),document.activeElement!==n)return}(Yd(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Jd(l))}return()=>{l.removeEventListener($d,u),setTimeout((()=>{const t=new CustomEvent(Gd,qd);l.addEventListener(Gd,f),l.dispatchEvent(t),t.defaultPrevented||Jd(e??document.body,{select:!0}),l.removeEventListener(Gd,f),Xd.remove(m)}),0)}}}),[l,u,f,m]);const g=a.useCallback((e=>{if(!n&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=Yd(e);return[Qd(t,e),Qd(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&Jd(a,{select:!0})):(e.preventDefault(),n&&Jd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,m.paused]);return(0,d.jsx)(Ld.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})}));function Yd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qd(e,t){for(const n of e)if(!Kd(n,{upTo:t}))return n}function Kd(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Jd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Zd.displayName="FocusScope";var Xd=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ef(e,t),e.unshift(t)},remove(t){e=ef(e,t),e[0]?.resume()}}}();function ef(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var tf=a.forwardRef(((e,t)=>{const{container:n,...r}=e,[o,i]=a.useState(!1);Ad((()=>i(!0)),[]);const s=n||o&&globalThis?.document?.body;return s?g.createPortal((0,d.jsx)(Ld.div,{...r,ref:t}),s):null}));tf.displayName="Portal";var nf=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=rf(r.current);i.current="mounted"===l?e:"none"}),[l]),Ad((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=rf(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,c]),Ad((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=a=>{const i=rf(r.current).includes(a.animationName);if(a.target===t&&i&&(c("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=rf(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback((e=>{r.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=Dd(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function rf(e){return e?.animationName||"none"}nf.displayName="Presence";var of=0;function af(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var sf="Dialog",[lf,cf]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>a.createContext(e)));return function(n){const r=n?.[e]||t;return a.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=a.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[i]||o,c=a.useMemo((()=>s),Object.values(s));return(0,d.jsx)(l.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const l=s?.[e]?.[i]||o,c=a.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Td(r,...t)]}(sf),[uf,df]=lf(sf),ff=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=a.useRef(null),c=a.useRef(null),[u,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Rd((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,r])}const u=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[c,u]}({prop:r,defaultProp:o??!1,onChange:i,caller:sf});return(0,d.jsx)(uf,{scope:t,triggerRef:l,contentRef:c,contentId:Md(),titleId:Md(),descriptionId:Md(),open:u,onOpenChange:f,onOpenToggle:a.useCallback((()=>f((e=>!e))),[f]),modal:s,children:n})};ff.displayName=sf;var hf="DialogTrigger";a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(hf,n),a=Dd(t,o.triggerRef);return(0,d.jsx)(Ld.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Of(o.open),...r,ref:a,onClick:Sd(e.onClick,o.onOpenToggle)})})).displayName=hf;var pf="DialogPortal",[mf,gf]=lf(pf,{forceMount:void 0}),vf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=df(pf,t);return(0,d.jsx)(mf,{scope:t,forceMount:n,children:a.Children.map(r,(e=>(0,d.jsx)(nf,{present:n||i.open,children:(0,d.jsx)(tf,{asChild:!0,container:o,children:e})})))})};vf.displayName=pf;var yf="DialogOverlay",bf=a.forwardRef(((e,t)=>{const n=gf(yf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=df(yf,e.__scopeDialog);return a.modal?(0,d.jsx)(nf,{present:r||a.open,children:(0,d.jsx)(xf,{...o,ref:t})}):null}));bf.displayName=yf;var wf=Od("DialogOverlay.RemoveScroll"),xf=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(yf,n);return(0,d.jsx)(ar,{as:wf,allowPinchZoom:!0,shards:[o.contentRef],children:(0,d.jsx)(Ld.div,{"data-state":Of(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),kf="DialogContent",Sf=a.forwardRef(((e,t)=>{const n=gf(kf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=df(kf,e.__scopeDialog);return(0,d.jsx)(nf,{present:r||a.open,children:a.modal?(0,d.jsx)(Ef,{...o,ref:t}):(0,d.jsx)(Cf,{...o,ref:t})})}));Sf.displayName=kf;var Ef=a.forwardRef(((e,t)=>{const n=df(kf,e.__scopeDialog),r=a.useRef(null),o=Dd(t,n.contentRef,r);return a.useEffect((()=>{const e=r.current;if(e)return bn(e)}),[]),(0,d.jsx)(Df,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sd(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:Sd(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Sd(e.onFocusOutside,(e=>e.preventDefault()))})})),Cf=a.forwardRef(((e,t)=>{const n=df(kf,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return(0,d.jsx)(Df,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),Df=a.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=df(kf,n),c=a.useRef(null),u=Dd(t,c);return a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??af()),document.body.insertAdjacentElement("beforeend",e[1]??af()),of++,()=>{1===of&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),of--}}),[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Zd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,d.jsx)(Bd,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Of(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Lf,{titleId:l.titleId}),(0,d.jsx)(Ff,{contentRef:c,descriptionId:l.descriptionId})]})]})})),Tf="DialogTitle",Af=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(Tf,n);return(0,d.jsx)(Ld.h2,{id:o.titleId,...r,ref:t})}));Af.displayName=Tf;var _f="DialogDescription",Nf=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(_f,n);return(0,d.jsx)(Ld.p,{id:o.descriptionId,...r,ref:t})}));Nf.displayName=_f;var Mf="DialogClose",Rf=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(Mf,n);return(0,d.jsx)(Ld.button,{type:"button",...r,ref:t,onClick:Sd(e.onClick,(()=>o.onOpenChange(!1)))})}));function Of(e){return e?"open":"closed"}Rf.displayName=Mf;var jf="DialogTitleWarning",[If,Pf]=function(e,t){const n=a.createContext(t),r=e=>{const{children:t,...r}=e,o=a.useMemo((()=>r),Object.values(r));return(0,d.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=a.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(jf,{contentName:kf,titleName:Tf,docsSlug:"dialog"}),Lf=({titleId:e})=>{const t=Pf(jf),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},Ff=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pf("DialogDescriptionWarning").contentName}}.`;return a.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},zf=ff,Hf=vf,Wf=bf,Bf=Sf,Vf=Af,Uf=Nf,$f=Rf,Gf='[cmdk-group=""]',qf='[cmdk-group-items=""]',Zf='[cmdk-item=""]',Yf=`${Zf}:not([aria-disabled="true"])`,Qf="cmdk-item-select",Kf="data-value",Jf=(e,t,n)=>kd(e,t,n),Xf=a.createContext(void 0),eh=()=>a.useContext(Xf),th=a.createContext(void 0),nh=()=>a.useContext(th),rh=a.createContext(void 0),oh=a.forwardRef(((e,t)=>{let n=yh((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}})),r=yh((()=>new Set)),o=yh((()=>new Map)),i=yh((()=>new Map)),s=yh((()=>new Set)),l=gh(e),{label:c,children:u,value:d,onValueChange:f,filter:h,shouldFilter:p,loop:m,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,b=Z(),w=Z(),k=Z(),S=a.useRef(null),E=xh();vh((()=>{if(void 0!==d){let e=d.trim();n.current.value=e,C.emit()}}),[d]),vh((()=>{E(6,M)}),[]);let C=a.useMemo((()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),A(),E(1,_);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(k);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(E(7,(()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,C.emit()})),r||E(5,M),void 0!==(null==(a=l.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(s=(i=l.current).onValueChange)||s.call(i,e))}}C.emit()}},emit:()=>{s.current.forEach((e=>e()))}})),[]),D=a.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,T(t,r)),E(2,(()=>{A(),C.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),E(3,(()=>{N(),A(),n.current.value||_(),C.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();E(4,(()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&_(),C.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:k,labelId:w,listInnerRef:S})),[]);function T(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:Jf;return e?a(e,n.current.search,t):0}function A(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),a=0;r.forEach((t=>{let n=e.get(t);a=Math.max(n,a)})),t.push([n,a])}));let r=S.current;O().sort(((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)})).forEach((e=>{let t=e.closest(qf);t?t.appendChild(e.parentElement===t?e:e.closest(`${qf} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${qf} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{var t;let n=null==(t=S.current)?void 0:t.querySelector(`${Gf}[${Kf}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)}))}function _(){let e=O().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(Kf);C.setState("value",t||void 0)}function N(){var e,t,a,s;if(!n.current.search||!1===l.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=T(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function M(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Gf))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=S.current)?void 0:e.querySelector(`${Zf}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=S.current)?void 0:e.querySelectorAll(Yf))||[])}function j(e){let t=O()[e];t&&C.setState("value",t.getAttribute(Kf))}function I(e){var t;let n=R(),r=O(),o=r.findIndex((e=>e===n)),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&C.setState("value",a.getAttribute(Kf))}function P(e){let t,n=R(),r=null==n?void 0:n.closest(Gf);for(;r&&!t;)r=e>0?ph(r,Gf):mh(r,Gf),t=null==r?void 0:r.querySelector(Yf);t?C.setState("value",t.getAttribute(Kf)):I(e)}let L=()=>j(O().length-1),F=e=>{e.preventDefault(),e.metaKey?L():e.altKey?P(1):I(1)},z=e=>{e.preventDefault(),e.metaKey?j(0):e.altKey?P(-1):I(-1)};return a.createElement(x.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":v&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":v&&e.ctrlKey&&z(e);break;case"ArrowUp":z(e);break;case"Home":e.preventDefault(),j(0);break;case"End":e.preventDefault(),L();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(Qf);t.dispatchEvent(e)}}}}},a.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:Sh},c),kh(e,(e=>a.createElement(th.Provider,{value:C},a.createElement(Xf.Provider,{value:D},e)))))})),ah=a.forwardRef(((e,t)=>{var n,r;let o=Z(),i=a.useRef(null),s=a.useContext(rh),l=eh(),u=gh(e),d=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==s?void 0:s.forceMount;vh((()=>{if(!d)return l.item(o,null==s?void 0:s.id)}),[d]);let f=wh(o,i,[e.value,e.children,i],e.keywords),h=nh(),p=bh((e=>e.value&&e.value===f.current)),m=bh((e=>!(!d&&!1!==l.filter())||!e.search||e.filtered.items.get(o)>0));function g(){var e,t;v(),null==(t=(e=u.current).onSelect)||t.call(e,f.current)}function v(){h.setState("value",f.current,!0)}if(a.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(Qf,g),()=>t.removeEventListener(Qf,g)}),[m,e.onSelect,e.disabled]),!m)return null;let{disabled:y,value:b,onSelect:w,forceMount:k,keywords:S,...E}=e;return a.createElement(x.div,{ref:c(i,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||l.getDisablePointerSelection()?void 0:v,onClick:y?void 0:g},e.children)})),ih=a.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,s=Z(),l=a.useRef(null),u=a.useRef(null),d=Z(),f=eh(),h=bh((e=>!(!o&&!1!==f.filter())||!e.search||e.filtered.groups.has(s)));vh((()=>f.group(s)),[]),wh(s,l,[e.value,e.heading,u]);let p=a.useMemo((()=>({id:s,forceMount:o})),[o]);return a.createElement(x.div,{ref:c(l,t),...i,"cmdk-group":"",role:"presentation",hidden:!h||void 0},n&&a.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),kh(e,(e=>a.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},a.createElement(rh.Provider,{value:p},e)))))})),sh=a.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=a.useRef(null),i=bh((e=>!e.search));return n||i?a.createElement(x.div,{ref:c(o,t),...r,"cmdk-separator":"",role:"separator"}):null})),lh=a.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=nh(),s=bh((e=>e.search)),l=bh((e=>e.selectedItemId)),c=eh();return a.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),a.createElement(x.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),ch=a.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=a.useRef(null),s=a.useRef(null),l=bh((e=>e.selectedItemId)),u=eh();return a.useEffect((()=>{if(s.current&&i.current){let e,t=s.current,n=i.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),a.createElement(x.div,{ref:c(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:u.listId},kh(e,(e=>a.createElement("div",{ref:c(s,u.listInnerRef),"cmdk-list-sizer":""},e))))})),uh=a.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:s,...l}=e;return a.createElement(zf,{open:n,onOpenChange:r},a.createElement(Hf,{container:s},a.createElement(Wf,{"cmdk-overlay":"",className:o}),a.createElement(Bf,{"aria-label":e.label,"cmdk-dialog":"",className:i},a.createElement(oh,{ref:t,...l}))))})),dh=a.forwardRef(((e,t)=>bh((e=>0===e.filtered.count))?a.createElement(x.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),fh=a.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return a.createElement(x.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},kh(e,(e=>a.createElement("div",{"aria-hidden":!0},e))))})),hh=Object.assign(oh,{List:ch,Item:ah,Input:lh,Group:ih,Separator:sh,Dialog:uh,Empty:dh,Loading:fh});function ph(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function mh(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function gh(e){let t=a.useRef(e);return vh((()=>{t.current=e})),t}var vh="undefined"==typeof window?a.useEffect:a.useLayoutEffect;function yh(e){let t=a.useRef();return void 0===t.current&&(t.current=e()),t}function bh(e){let t=nh(),n=()=>e(t.snapshot());return a.useSyncExternalStore(t.subscribe,n,n)}function wh(e,t,n,r=[]){let o=a.useRef(),i=eh();return vh((()=>{var a;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map((e=>e.trim()));i.value(e,s,l),null==(a=t.current)||a.setAttribute(Kf,s),o.current=s})),o}var xh=()=>{let[e,t]=a.useState(),n=yh((()=>new Map));return vh((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function kh({asChild:e,children:t},n){return e&&a.isValidElement(t)?a.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var Sh={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Eh=sa("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ch=sa("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Dh=zf,Th=Hf,Ah=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Wf,{ref:n,className:Su("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})));Ah.displayName=Wf.displayName;const _h=a.forwardRef((({className:e,children:t,...n},r)=>(0,d.jsxs)(Th,{children:[(0,d.jsx)(Ah,{}),(0,d.jsxs)(Bf,{ref:r,className:Su("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,(0,d.jsxs)($f,{className:Su("absolute right-4 top-3 inline-flex items-center justify-center","rounded-full p-2 cursor-pointer bg-transparent shadow-none border-0","text-muted-foreground opacity-70 transition-opacity","hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-0","disabled:pointer-events-none"),children:[(0,d.jsx)(Ch,{className:"h-5 w-5"}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})));_h.displayName=Bf.displayName;const Nh=({className:e,...t})=>(0,d.jsx)("div",{className:Su("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Nh.displayName="DialogHeader";const Mh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Vf,{ref:n,className:Su("text-lg font-semibold leading-none tracking-tight",e),...t})));Mh.displayName=Vf.displayName;const Rh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Uf,{ref:n,className:Su("text-sm text-muted-foreground",e),...t})));Rh.displayName=Uf.displayName;const Oh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh,{ref:n,className:Su("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));Oh.displayName=hh.displayName;const jh=a.forwardRef((({className:e,...t},n)=>(0,d.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,d.jsx)(Eh,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,d.jsx)(hh.Input,{ref:n,className:Su("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})));jh.displayName=hh.Input.displayName;const Ih=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.List,{ref:n,className:Su("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));Ih.displayName=hh.List.displayName;const Ph=a.forwardRef(((e,t)=>(0,d.jsx)(hh.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));Ph.displayName=hh.Empty.displayName;const Lh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.Group,{ref:n,className:Su("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));Lh.displayName=hh.Group.displayName;const Fh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.Separator,{ref:n,className:Su("-mx-1 h-px bg-border",e),...t})));Fh.displayName=hh.Separator.displayName;const zh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.Item,{ref:n,className:Su("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","aria-selected:bg-transparent aria-selected:text-accent-foreground","aria-[selected=false]:hover:bg-accent aria-[selected=true]:hover:bg-accent aria-[selected=false]:hover:text-accent-foreground",e),...t})));zh.displayName=hh.Item.displayName;const Hh=a.forwardRef((({className:e,type:t,...n},r)=>(0,d.jsx)("input",{type:t,className:Su("flex h-10 w-full rounded-md border border-input bg-background shadow-none px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-secondary",e),ref:r,...n})));Hh.displayName="Input";const Wh=sa("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function Bh({inputRef:e,search:t,setSearch:n,open:r,setOpen:o,events:a,filteredResults:i,paginatedResults:s,totalPages:l,page:c,setPage:u,timezone:f,timeFormat:h,setSearchOpen:p}){const m=null==a,g=!m&&0===a.length;return(0,d.jsxs)("div",{className:"relative w-full lg:min-w-[350px]","aria-busy":m,"aria-live":"polite",children:[(0,d.jsx)("label",{htmlFor:"event-search",className:"sr-only",children:"Search events"}),(0,d.jsx)(Hh,{id:"event-search",ref:e,type:"search",placeholder:"Search events…","aria-label":"Search events",role:"combobox","aria-expanded":r,"aria-controls":"event-search-listbox","aria-autocomplete":"list",value:t,onFocus:()=>o(!0),onBlur:e=>{const t=e.relatedTarget;t&&e.currentTarget.parentNode?.contains(t)||setTimeout((()=>{o(!1),p?.(!1)}),150)},onKeyDown:e=>{"Escape"===e.key&&(o(!1),p?.(!1),e.currentTarget.blur())},onChange:e=>n(e.target.value),className:"pl-9 h-10 w-full shadow-none border border-solid box-border rounded disabled:bg-background",autoComplete:"off",disabled:m||g}),(0,d.jsx)("span",{"aria-hidden":"true",className:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none",children:m?(0,d.jsx)(Wh,{className:"w-4 h-4 animate-spin"}):(0,d.jsx)(Eh,{className:"w-4 h-4"})}),(0,d.jsx)("div",{className:"sr-only",role:"status",children:m?"Loading events...":g?"No events found.":`${i.length} events found.`}),r&&t&&(0,d.jsx)(Oh,{className:Su("absolute z-50 left-0 top-12 w-full rounded-md border bg-popover text-popover-foreground shadow-md border-border border-solid","max-h-[400px] h-auto"),children:(0,d.jsx)(Ih,{id:"event-search-listbox",role:"listbox",className:"p-2 max-h-[400px] overflow-y-auto",children:0===i.length?(0,d.jsx)(Ph,{className:"p-4 text-muted-foreground text-sm",children:"No events found."}):(0,d.jsxs)(d.Fragment,{children:[s.map((e=>{const t=Sc.fromISO(e.start_date||e.start,{zone:"utc"}).setZone(f).toFormat("24"===h?"d MMM yyyy, EEE • HH:mm":"d MMM yyyy, EEE • h:mma").replace("AM","am").replace("PM","pm");return(0,d.jsxs)(zh,{role:"option","aria-selected":"false",value:e.title,onClick:()=>{window.open(e.url,"_blank","noopener,noreferrer"),o(!1),p?.(!1)},className:"grid gap-1 p-2 cursor-pointer text-sm text-foreground rounded-md hover:!bg-accent",children:[(0,d.jsx)("span",{className:"font-normal block",children:t}),(0,d.jsx)("span",{className:"font-medium",children:e.title}),(0,d.jsx)("span",{className:"sr-only",children:Sc.fromISO(e.start_date||e.start,{zone:f}).toLocaleString(Sc.DATETIME_FULL)})]},e.id)})),l>1&&(0,d.jsxs)("div",{className:"flex justify-between items-center px-2 pt-2 text-xs text-muted-foreground",children:[(0,d.jsx)(Pu,{variant:"ghost",size:"sm",onClick:()=>u((e=>Math.max(0,e-1))),disabled:0===c,"aria-label":"Previous page","aria-disabled":0===c,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Prev"}),(0,d.jsxs)("span",{"aria-live":"polite",children:["Page ",c+1," of ",l]}),(0,d.jsx)(Pu,{variant:"ghost",size:"sm",onClick:()=>u((e=>Math.min(l-1,e+1))),disabled:c>=l-1,"aria-label":"Next page","aria-disabled":c>=l-1,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Next"})]})]})})})]})}function Vh({calendarApi:e,setCurrentDate:t,isTodayInRange:n}){return(0,d.jsx)(Pu,{variant:"outline",className:Su("border-solid box-border font-normal shadow-none cursor-pointer","rounded disabled:opacity-100 disabled:bg-background disabled:text-muted-foreground/50 text-foreground"),disabled:n,onClick:()=>{e&&(e.today(),t(e.getDate()))},"aria-label":"Jump to today","aria-pressed":n,title:"Jump to today",children:"Today"})}var Uh=a.forwardRef(((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,l]=m({prop:n,onChange:o,defaultProp:r});return(0,d.jsx)(x.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:s(e.onClick,(()=>{e.disabled||l(!i)}))})}));Uh.displayName="Toggle";var $h=Uh,Gh="ToggleGroup",[qh,Zh]=f(Gh,[nn]),Yh=nn(),Qh=a.forwardRef(((e,t)=>{const{type:n,...r}=e;if("single"===n){const e=r;return(0,d.jsx)(Xh,{...e,ref:t})}if("multiple"===n){const e=r;return(0,d.jsx)(ep,{...e,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Gh}\``)}));Qh.displayName=Gh;var[Kh,Jh]=qh(Gh),Xh=a.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s,l]=m({prop:n,defaultProp:r,onChange:o});return(0,d.jsx)(Kh,{scope:e.__scopeToggleGroup,type:"single",value:s?[s]:[],onItemActivate:l,onItemDeactivate:a.useCallback((()=>l("")),[l]),children:(0,d.jsx)(rp,{...i,ref:t})})})),ep=a.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s=[],l]=m({prop:n,defaultProp:r,onChange:o}),c=a.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),u=a.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return(0,d.jsx)(Kh,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:u,children:(0,d.jsx)(rp,{...i,ref:t})})}));Qh.displayName=Gh;var[tp,np]=qh(Gh),rp=a.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=Yh(n),u=C(i),f={role:"group",dir:u,...l};return(0,d.jsx)(tp,{scope:n,rovingFocus:o,disabled:r,children:o?(0,d.jsx)(fn,{asChild:!0,...c,orientation:a,dir:u,loop:s,children:(0,d.jsx)(x.div,{...f,ref:t})}):(0,d.jsx)(x.div,{...f,ref:t})})})),op="ToggleGroupItem",ap=a.forwardRef(((e,t)=>{const n=Jh(op,e.__scopeToggleGroup),r=np(op,e.__scopeToggleGroup),o=Yh(e.__scopeToggleGroup),i=n.value.includes(e.value),s=r.disabled||e.disabled,l={...e,pressed:i,disabled:s},c=a.useRef(null);return r.rovingFocus?(0,d.jsx)(hn,{asChild:!0,...o,focusable:!s,active:i,ref:c,children:(0,d.jsx)(ip,{...l,ref:t})}):(0,d.jsx)(ip,{...l,ref:t})}));ap.displayName=op;var ip=a.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Jh(op,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===a.type?i:void 0;return(0,d.jsx)(Uh,{...s,...o,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})})),sp=Qh,lp=ap;const cp=ju("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});a.forwardRef((({className:e,variant:t,size:n,...r},o)=>(0,d.jsx)($h,{ref:o,className:Su(cp({variant:t,size:n,className:e})),...r}))).displayName=$h.displayName;const up=a.createContext({size:"default",variant:"default"}),dp=a.forwardRef((({className:e,variant:t,size:n,children:r,...o},a)=>(0,d.jsx)(sp,{ref:a,className:Su("flex items-center justify-center gap-1",e),...o,children:(0,d.jsx)(up.Provider,{value:{variant:t,size:n},children:r})})));dp.displayName=sp.displayName;const fp=a.forwardRef((({className:e,children:t,variant:n,size:r,...o},i)=>{const s=a.useContext(up);return(0,d.jsx)(lp,{ref:i,className:Su(cp({variant:s.variant||n,size:s.size||r}),e),...o,children:t})}));function hp({calendarApi:e,view:t,setView:n}){return(0,d.jsxs)(dp,{type:"single",className:"bg-muted text-foreground gap-2 border border-solid border-border p-[4px] h-10 box-border rounded shadow-none",value:t,onValueChange:t=>{t&&(e?.changeView(t),n(t))},"aria-label":"Calendar view mode",role:"radiogroup",children:[(0,d.jsx)(fp,{value:"dayGridMonth",role:"radio","aria-checked":"dayGridMonth"===t,"aria-label":"Month view",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Month"}),(0,d.jsx)(fp,{value:"timeGridWeek",role:"radio","aria-checked":"timeGridWeek"===t,"aria-label":"Week view",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Week"})]})}function pp({className:e,...t}){return(0,d.jsx)("div",{className:Su("animate-pulse rounded-md bg-muted",e),...t})}function mp(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}fp.displayName=lp.displayName;let gp={};function vp(){return gp}function yp(e,t){const n=vp(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=mp(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function bp(e,t){const n=vp(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=mp(e),a=o.getDay(),i=6+(a<r?-7:0)-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function wp(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function xp(e,t){const n=mp(e),r=n.getFullYear(),o=n.getDate(),a=wp(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const i=function(e){const t=mp(e),n=t.getFullYear(),r=t.getMonth(),o=wp(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(t,Math.min(o,i)),n}const kp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Sp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ep={date:Sp({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Sp({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Sp({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Cp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Dp(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Tp={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Dp({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Dp({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Dp({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Dp({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Dp({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ap(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(i))return t}(s):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(i))return t}(s);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(i.length)}}}const _p={ordinalNumber:(Np={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Np.matchPattern);if(!n)return null;const r=n[0],o=e.match(Np.parsePattern);if(!o)return null;let a=Np.valueCallback?Np.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:Ap({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ap({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ap({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ap({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ap({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Np;const Mp={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=kp[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Ep,formatRelative:(e,t,n,r)=>Cp[e],localize:Tp,match:_p,options:{weekStartsOn:0,firstWeekContainsDate:1}},Rp=(Math.pow(10,8),6048e5);function Op(e){const t=mp(e);return t.setHours(0,0,0,0),t}function jp(e){const t=mp(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ip(e,t){const n=Op(e),r=Op(t),o=+n-jp(n),a=+r-jp(r);return Math.round((o-a)/864e5)}function Pp(e){const t=mp(e),n=wp(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Lp(e){return yp(e,{weekStartsOn:1})}function Fp(e){const t=mp(e),n=t.getFullYear(),r=wp(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Lp(r),a=wp(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=Lp(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function zp(e){const t=mp(e),n=+Lp(t)-+function(e){const t=Fp(e),n=wp(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Lp(n)}(t);return Math.round(n/Rp)+1}function Hp(e,t){const n=mp(e),r=n.getFullYear(),o=vp(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=wp(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=yp(i,t),l=wp(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=yp(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Wp(e,t){const n=mp(e),r=+yp(n,t)-+function(e,t){const n=vp(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Hp(e,t),a=wp(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),yp(a,t)}(n,t);return Math.round(r/Rp)+1}function Bp(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Vp={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bp("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Bp(n+1,2)},d:(e,t)=>Bp(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Bp(e.getHours()%12||12,t.length),H:(e,t)=>Bp(e.getHours(),t.length),m:(e,t)=>Bp(e.getMinutes(),t.length),s:(e,t)=>Bp(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Bp(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Up={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Vp.y(e,t)},Y:function(e,t,n,r){const o=Hp(e,r),a=o>0?o:1-o;return"YY"===t?Bp(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Bp(a,t.length)},R:function(e,t){return Bp(Fp(e),t.length)},u:function(e,t){return Bp(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bp(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bp(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Vp.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Bp(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Wp(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Bp(o,t.length)},I:function(e,t,n){const r=zp(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Bp(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Vp.d(e,t)},D:function(e,t,n){const r=function(e){const t=mp(e);return Ip(t,Pp(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Bp(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bp(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bp(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Bp(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Vp.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Vp.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bp(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bp(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Vp.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Vp.s(e,t)},S:function(e,t){return Vp.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Gp(r);case"XXXX":case"XX":return qp(r);default:return qp(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Gp(r);case"xxxx":case"xx":return qp(r);default:return qp(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$p(r,":");default:return"GMT"+qp(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$p(r,":");default:return"GMT"+qp(r,":")}},t:function(e,t,n){return Bp(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Bp(e.getTime(),t.length)}};function $p(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+Bp(a,2)}function Gp(e,t){return e%60==0?(e>0?"-":"+")+Bp(Math.abs(e)/60,2):qp(e,t)}function qp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Bp(Math.trunc(r/60),2)+t+Bp(r%60,2)}const Zp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Yp=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Qp={p:Yp,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Zp(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Zp(r,t)).replace("{{time}}",Yp(o,t))}},Kp=/^D+$/,Jp=/^Y+$/,Xp=["D","DD","YY","YYYY"];function em(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const tm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rm=/^'([^]*?)'?$/,om=/''/g,am=/[a-zA-Z]/;function im(e,t,n){const r=vp(),o=n?.locale??r.locale??Mp,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=mp(e);if(!function(e){if(!em(e)&&"number"!=typeof e)return!1;const t=mp(e);return!isNaN(Number(t))}(s))throw new RangeError("Invalid time value");let l=t.match(nm).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,Qp[t])(e,o.formatLong):e})).join("").match(tm).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:sm(e)};if(Up[t])return{isToken:!0,value:e};if(t.match(am))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return Jp.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return Kp.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Xp.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,Up[a[0]])(s,a,o.localize,c)})).join("")}function sm(e){const t=e.match(rm);return t?t[1].replace(om,"'"):e}function lm(e){const t=mp(e);return t.setDate(1),t.setHours(0,0,0,0),t}function cm(e){const t=mp(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function um(e,t){const n=mp(e),r=mp(t);return n.getFullYear()===r.getFullYear()}function dm(e,t){const n=mp(e);return isNaN(+n)?wp(e,NaN):(n.setFullYear(t),n)}function fm(e,t){const n=mp(e),r=mp(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function hm(e,t){const n=mp(e);if(isNaN(t))return wp(e,NaN);if(!t)return n;const r=n.getDate(),o=wp(e,n.getTime());return o.setMonth(n.getMonth()+t+1,0),r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function pm(e,t){const n=mp(e),r=mp(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function mm(e,t){return+mp(e)<+mp(t)}function gm(e,t){const n=mp(e);return isNaN(t)?wp(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function vm(e,t){return+Op(e)==+Op(t)}function ym(e,t){const n=mp(e),r=mp(t);return n.getTime()>r.getTime()}function bm(e,t){return gm(e,-t)}function wm(e,t){return gm(e,7*t)}function xm(e,t){return hm(e,12*t)}function km(e){return bp(e,{weekStartsOn:1})}function Sm(e){let t;return e.forEach((function(e){const n=mp(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Em(e){let t;return e.forEach((e=>{const n=mp(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}function Cm(e,t){return function(e,t,n){const r=yp(e,n),o=yp(t,n),a=+r-jp(r),i=+o-jp(o);return Math.round((a-i)/Rp)}(function(e){const t=mp(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),lm(e),t)+1}var Dm=function(){return Dm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dm.apply(this,arguments)};function Tm(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Am(e){return"multiple"===e.mode}function _m(e){return"range"===e.mode}function Nm(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var Mm={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"},Rm=Object.freeze({__proto__:null,formatCaption:function(e,t){return im(e,"LLLL y",t)},formatDay:function(e,t){return im(e,"d",t)},formatMonthCaption:function(e,t){return im(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return im(e,"cccccc",t)},formatYearCaption:function(e,t){return im(e,"yyyy",t)}}),Om=Object.freeze({__proto__:null,labelDay:function(e,t,n){return im(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return im(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var jm=(0,a.createContext)(void 0);function Im(e){var t,n,r,o,a,i=e.initialProps,s=(n=Mm,r=Mp,o=new Date,{captionLayout:"buttons",classNames:n,formatters:Rm,labels:Om,locale:r,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:o,mode:"default"}),l=function(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=lm(r):t&&(a=new Date(t,0,1)),o?i=cm(o):n&&(i=new Date(n,11,31)),{fromDate:a?Op(a):void 0,toDate:i?Op(i):void 0}}(i),c=l.fromDate,u=l.toDate,f=null!==(t=i.captionLayout)&&void 0!==t?t:s.captionLayout;"buttons"===f||c&&u||(f="buttons"),(Nm(i)||Am(i)||_m(i))&&(a=i.onSelect);var h=Dm(Dm(Dm({},s),i),{captionLayout:f,classNames:Dm(Dm({},s.classNames),i.classNames),components:Dm({},i.components),formatters:Dm(Dm({},s.formatters),i.formatters),fromDate:c,labels:Dm(Dm({},s.labels),i.labels),mode:i.mode||s.mode,modifiers:Dm(Dm({},s.modifiers),i.modifiers),modifiersClassNames:Dm(Dm({},s.modifiersClassNames),i.modifiersClassNames),onSelect:a,styles:Dm(Dm({},s.styles),i.styles),toDate:u});return(0,d.jsx)(jm.Provider,{value:h,children:e.children})}function Pm(){var e=(0,a.useContext)(jm);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Lm(e){var t=Pm(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return(0,d.jsx)("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function Fm(e){return(0,d.jsx)("svg",Dm({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:(0,d.jsx)("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function zm(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,s=e.className,l=e.style,c=Pm(),u=null!==(n=null===(t=c.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==n?n:Fm;return(0,d.jsxs)("div",{className:s,style:l,children:[(0,d.jsx)("span",{className:c.classNames.vhidden,children:e["aria-label"]}),(0,d.jsx)("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:r,children:a}),(0,d.jsxs)("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[i,(0,d.jsx)(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function Hm(e){var t,n=Pm(),r=n.fromDate,o=n.toDate,a=n.styles,i=n.locale,s=n.formatters.formatMonthCaption,l=n.classNames,c=n.components,u=n.labels.labelMonthDropdown;if(!r)return(0,d.jsx)(d.Fragment,{});if(!o)return(0,d.jsx)(d.Fragment,{});var f=[];if(um(r,o))for(var h=lm(r),p=r.getMonth();p<=o.getMonth();p++)f.push(xp(h,p));else for(h=lm(new Date),p=0;p<=11;p++)f.push(xp(h,p));var m=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:zm;return(0,d.jsx)(m,{name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),r=xp(lm(e.displayMonth),n);e.onChange(r)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:f.map((function(e){return(0,d.jsx)("option",{value:e.getMonth(),children:s(e,{locale:i})},e.getMonth())}))})}function Wm(e){var t,n=e.displayMonth,r=Pm(),o=r.fromDate,a=r.toDate,i=r.locale,s=r.styles,l=r.classNames,c=r.components,u=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,h=[];if(!o)return(0,d.jsx)(d.Fragment,{});if(!a)return(0,d.jsx)(d.Fragment,{});for(var p=o.getFullYear(),m=a.getFullYear(),g=p;g<=m;g++)h.push(dm(Pp(new Date),g));var v=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:zm;return(0,d.jsx)(v,{name:"years","aria-label":f(),className:l.dropdown_year,style:s.dropdown_year,onChange:function(t){var r=dm(lm(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:u(n,{locale:i}),children:h.map((function(e){return(0,d.jsx)("option",{value:e.getFullYear(),children:u(e,{locale:i})},e.getFullYear())}))})}var Bm=(0,a.createContext)(void 0);function Vm(e){var t=Pm(),n=function(){var e=Pm(),t=function(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return a&&fm(a,o)<0&&(o=hm(a,-1*(l-1))),i&&fm(o,i)<0&&(o=i),lm(o)}(e),n=function(e,t){var n=(0,a.useState)(e),r=n[0];return[void 0===t?r:t,n[1]]}(t,e.month),r=n[0],o=n[1];return[r,function(t){var n;if(!e.disableNavigation){var r=lm(t);o(r),null===(n=e.onMonthChange)||void 0===n||n.call(e,r)}}]}(),r=n[0],o=n[1],i=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=lm(e),a=fm(lm(hm(o,r)),o),i=[],s=0;s<a;s++){var l=hm(o,s);i.push(l)}return n&&(i=i.reverse()),i}(r,t),s=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=void 0===o?1:o,i=r?a:1,s=lm(e);if(!n)return hm(s,i);if(!(fm(n,e)<a))return hm(s,i)}}(r,t),l=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=r?void 0===o?1:o:1,i=lm(e);if(!n)return hm(i,-a);if(!(fm(i,n)<=0))return hm(i,-a)}}(r,t),c=function(e){return i.some((function(t){return pm(e,t)}))},u={currentMonth:r,displayMonths:i,goToMonth:o,goToDate:function(e,n){c(e)||(n&&mm(e,n)?o(hm(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:l,nextMonth:s,isDateDisplayed:c};return(0,d.jsx)(Bm.Provider,{value:u,children:e.children})}function Um(){var e=(0,a.useContext)(Bm);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function $m(e){var t,n=Pm(),r=n.classNames,o=n.styles,a=n.components,i=Um().goToMonth,s=function(t){i(hm(t,e.displayIndex?-e.displayIndex:0))},l=null!==(t=null==a?void 0:a.CaptionLabel)&&void 0!==t?t:Lm,c=(0,d.jsx)(l,{id:e.id,displayMonth:e.displayMonth});return(0,d.jsxs)("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[(0,d.jsx)("div",{className:r.vhidden,children:c}),(0,d.jsx)(Hm,{onChange:s,displayMonth:e.displayMonth}),(0,d.jsx)(Wm,{onChange:s,displayMonth:e.displayMonth})]})}function Gm(e){return(0,d.jsx)("svg",Dm({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,d.jsx)("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function qm(e){return(0,d.jsx)("svg",Dm({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,d.jsx)("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Zm=(0,a.forwardRef)((function(e,t){var n=Pm(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),s=Dm(Dm({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),(0,d.jsx)("button",Dm({},e,{ref:t,type:"button",className:i,style:s}))}));function Ym(e){var t,n,r=Pm(),o=r.dir,a=r.locale,i=r.classNames,s=r.styles,l=r.labels,c=l.labelPrevious,u=l.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return(0,d.jsx)(d.Fragment,{});var h=c(e.previousMonth,{locale:a}),p=[i.nav_button,i.nav_button_previous].join(" "),m=u(e.nextMonth,{locale:a}),g=[i.nav_button,i.nav_button_next].join(" "),v=null!==(t=null==f?void 0:f.IconRight)&&void 0!==t?t:qm,y=null!==(n=null==f?void 0:f.IconLeft)&&void 0!==n?n:Gm;return(0,d.jsxs)("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&(0,d.jsx)(Zm,{name:"previous-month","aria-label":h,className:p,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===o?(0,d.jsx)(v,{className:i.nav_icon,style:s.nav_icon}):(0,d.jsx)(y,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&(0,d.jsx)(Zm,{name:"next-month","aria-label":m,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===o?(0,d.jsx)(y,{className:i.nav_icon,style:s.nav_icon}):(0,d.jsx)(v,{className:i.nav_icon,style:s.nav_icon})})]})}function Qm(e){var t=Pm().numberOfMonths,n=Um(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,s=i.findIndex((function(t){return pm(e.displayMonth,t)})),l=0===s,c=s===i.length-1,u=t>1&&(l||!c),f=t>1&&(c||!l);return(0,d.jsx)(Ym,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){o&&a(o)}})}function Km(e){var t,n,r=Pm(),o=r.classNames,a=r.disableNavigation,i=r.styles,s=r.captionLayout,l=r.components,c=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:Lm;return n=a?(0,d.jsx)(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?(0,d.jsx)($m,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)($m,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),(0,d.jsx)(Qm,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,d.jsx)(Qm,{displayMonth:e.displayMonth,id:e.id})]}),(0,d.jsx)("div",{className:o.caption,style:i.caption,children:n})}function Jm(e){var t=Pm(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?(0,d.jsx)("tfoot",{className:o,style:r.tfoot,children:(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:8,children:n})})}):(0,d.jsx)(d.Fragment,{})}function Xm(){var e=Pm(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=function(e,t,n){for(var r=n?Lp(new Date):yp(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=gm(r,a);o.push(i)}return o}(o,a,i);return(0,d.jsxs)("tr",{style:n.head_row,className:t.head_row,children:[r&&(0,d.jsx)("td",{style:n.head_cell,className:t.head_cell}),c.map((function(e,r){return(0,d.jsx)("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(e,{locale:o}),children:s(e,{locale:o})},r)}))]})}function eg(){var e,t=Pm(),n=t.classNames,r=t.styles,o=t.components,a=null!==(e=null==o?void 0:o.HeadRow)&&void 0!==e?e:Xm;return(0,d.jsx)("thead",{style:r.head,className:n.head,children:(0,d.jsx)(a,{})})}function tg(e){var t=Pm(),n=t.locale,r=t.formatters.formatDay;return(0,d.jsx)(d.Fragment,{children:r(e.date,{locale:n})})}var ng=(0,a.createContext)(void 0);function rg(e){if(!Am(e.initialProps)){return(0,d.jsx)(ng.Provider,{value:{selected:void 0,modifiers:{disabled:[]}},children:e.children})}return(0,d.jsx)(og,{initialProps:e.initialProps,children:e.children})}function og(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,i={disabled:[]};r&&i.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return vm(t,e)}));return Boolean(t&&!n)}));var s={selected:r,onDayClick:function(e,n,i){var s,l;if(!(null===(s=t.onDayClick)||void 0===s||s.call(t,e,n,i),Boolean(n.selected&&o&&(null==r?void 0:r.length)===o)||Boolean(!n.selected&&a&&(null==r?void 0:r.length)===a))){var c=r?Tm([],r,!0):[];if(n.selected){var u=c.findIndex((function(t){return vm(e,t)}));c.splice(u,1)}else c.push(e);null===(l=t.onSelect)||void 0===l||l.call(t,c,e,n,i)}},modifiers:i};return(0,d.jsx)(ng.Provider,{value:s,children:n})}function ag(){var e=(0,a.useContext)(ng);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var ig,sg=(0,a.createContext)(void 0);function lg(e){if(!_m(e.initialProps)){return(0,d.jsx)(sg.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}},children:e.children})}return(0,d.jsx)(cg,{initialProps:e.initialProps,children:e.children})}function cg(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,i=o.to,s=t.min,l=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],i?(c.range_end=[i],vm(a,i)||(c.range_middle=[{after:a,before:i}])):c.range_end=[a]):i&&(c.range_start=[i],c.range_end=[i]),s&&(a&&!i&&c.disabled.push({after:bm(a,s-1),before:gm(a,s-1)}),a&&i&&c.disabled.push({after:a,before:gm(a,s-1)}),!a&&i&&c.disabled.push({after:bm(i,s-1),before:gm(i,s-1)})),l){if(a&&!i&&(c.disabled.push({before:gm(a,1-l)}),c.disabled.push({after:gm(a,l-1)})),a&&i){var u=l-(Ip(i,a)+1);c.disabled.push({before:bm(a,u)}),c.disabled.push({after:gm(i,u)})}!a&&i&&(c.disabled.push({before:gm(i,1-l)}),c.disabled.push({after:gm(i,l-1)}))}return(0,d.jsx)(sg.Provider,{value:{selected:r,onDayClick:function(e,n,o){var a,i;null===(a=t.onDayClick)||void 0===a||a.call(t,e,n,o);var s=function(e,t){var n=t||{},r=n.from,o=n.to;if(r&&o){if(vm(o,e)&&vm(r,e))return;if(vm(o,e))return{from:o,to:void 0};if(vm(r,e))return;return ym(r,e)?{from:e,to:o}:{from:r,to:e}}return o?ym(e,o)?{from:o,to:e}:{from:e,to:o}:r?mm(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}(e,r);null===(i=t.onSelect)||void 0===i||i.call(t,s,e,n,o)},modifiers:c},children:n})}function ug(){var e=(0,a.useContext)(sg);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function dg(e){return Array.isArray(e)?Tm([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(ig||(ig={}));var fg=ig.Selected,hg=ig.Disabled,pg=ig.Hidden,mg=ig.Today,gg=ig.RangeEnd,vg=ig.RangeMiddle,yg=ig.RangeStart,bg=ig.Outside,wg=(0,a.createContext)(void 0);function xg(e){var t=Pm(),n=function(e,t,n){var r,o=((r={})[fg]=dg(e.selected),r[hg]=dg(e.disabled),r[pg]=dg(e.hidden),r[mg]=[e.today],r[gg]=[],r[vg]=[],r[yg]=[],r[bg]=[],r);return e.fromDate&&o[hg].push({before:e.fromDate}),e.toDate&&o[hg].push({after:e.toDate}),Am(e)?o[hg]=o[hg].concat(t.modifiers[hg]):_m(e)&&(o[hg]=o[hg].concat(n.modifiers[hg]),o[yg]=n.modifiers[yg],o[vg]=n.modifiers[vg],o[gg]=n.modifiers[gg]),o}(t,ag(),ug()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];t[n]=dg(r)})),t}(t.modifiers),o=Dm(Dm({},n),r);return(0,d.jsx)(wg.Provider,{value:o,children:e.children})}function kg(){var e=(0,a.useContext)(wg);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Sg(e,t,n){var r=Object.keys(t).reduce((function(n,r){var o=t[r];return function(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(em(t))return vm(e,t);var n,r,o,a,i,s;if(s=t,Array.isArray(s)&&s.every(em))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return n=e,a=(r=t).from,i=r.to,a&&i?(Ip(i,a)<0&&(a=(o=[i,a])[0],i=o[1]),Ip(n,a)>=0&&Ip(i,n)>=0):i?vm(i,n):!!a&&vm(a,n);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var l=Ip(t.before,e)>0,c=Ip(t.after,e)<0;return ym(t.before,t.after)?c&&l:l||c}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?Ip(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?Ip(t.before,e)>0:"function"==typeof t&&t(e)}))}(e,o)&&n.push(r),n}),[]),o={};return r.forEach((function(e){return o[e]=!0})),n&&!pm(e,n)&&(o.outside=!0),o}function Eg(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,s=void 0===i?{count:0,lastFocused:e}:i,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,f={day:gm,week:wm,month:hm,year:xm,startOfWeek:function(e){return o.ISOWeek?Lp(e):yp(e,{locale:d,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?km(e):bp(e,{locale:d,weekStartsOn:l})}}[n](e,"after"===r?1:-1);"before"===r&&c?f=Sm([c,f]):"after"===r&&u&&(f=Em([u,f]));var h=!0;if(a){var p=Sg(f,a);h=!p.disabled&&!p.hidden}return h?f:s.count>365?s.lastFocused:Eg(f,{moveBy:n,direction:r,context:o,modifiers:a,retry:Dm(Dm({},s),{count:s.count+1})})}var Cg=(0,a.createContext)(void 0);function Dg(e){var t=Um(),n=kg(),r=(0,a.useState)(),o=r[0],i=r[1],s=(0,a.useState)(),l=s[0],c=s[1],u=function(e,t){for(var n,r,o=lm(e[0]),a=cm(e[e.length-1]),i=o;i<=a;){var s=Sg(i,t);if(s.disabled||s.hidden)i=gm(i,1);else{if(s.selected)return i;s.today&&!r&&(r=i),n||(n=i),i=gm(i,1)}}return r||n}(t.displayMonths,n),f=(null!=o?o:l&&t.isDateDisplayed(l))?l:u,h=function(e){i(e)},p=Pm(),m=function(e,r){if(o){var a=Eg(o,{moveBy:e,direction:r,context:p,modifiers:n});vm(o,a)||(t.goToDate(a,o),h(a))}},g={focusedDay:o,focusTarget:f,blur:function(){c(o),i(void 0)},focus:h,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return(0,d.jsx)(Cg.Provider,{value:g,children:e.children})}function Tg(){var e=(0,a.useContext)(Cg);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Ag=(0,a.createContext)(void 0);function _g(e){if(!Nm(e.initialProps)){return(0,d.jsx)(Ag.Provider,{value:{selected:void 0},children:e.children})}return(0,d.jsx)(Ng,{initialProps:e.initialProps,children:e.children})}function Ng(e){var t=e.initialProps,n=e.children,r={selected:t.selected,onDayClick:function(e,n,r){var o,a,i;null===(o=t.onDayClick)||void 0===o||o.call(t,e,n,r),!n.selected||t.required?null===(i=t.onSelect)||void 0===i||i.call(t,e,e,n,r):null===(a=t.onSelect)||void 0===a||a.call(t,void 0,e,n,r)}};return(0,d.jsx)(Ag.Provider,{value:r,children:n})}function Mg(){var e=(0,a.useContext)(Ag);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Rg(e,t,n){var r,o,i,s=Pm(),l=Tg(),c=function(e,t){return Sg(e,kg(),t)}(e,t),u=function(e,t){var n=Pm(),r=Mg(),o=ag(),a=ug(),i=Tg(),s=i.focusDayAfter,l=i.focusDayBefore,c=i.focusWeekAfter,u=i.focusWeekBefore,d=i.blur,f=i.focus,h=i.focusMonthBefore,p=i.focusMonthAfter,m=i.focusYearBefore,g=i.focusYearAfter,v=i.focusStartOfWeek,y=i.focusEndOfWeek,b={onClick:function(i){var s,l,c,u;Nm(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,i):Am(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,i):_m(n)?null===(c=a.onDayClick)||void 0===c||c.call(a,e,t,i):null===(u=n.onDayClick)||void 0===u||u.call(n,e,t,i)},onFocus:function(r){var o;f(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,r)},onBlur:function(r){var o;d(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,r)},onKeyDown:function(r){var o;switch(r.key){case"ArrowLeft":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":r.preventDefault(),r.stopPropagation(),c();break;case"ArrowUp":r.preventDefault(),r.stopPropagation(),u();break;case"PageUp":r.preventDefault(),r.stopPropagation(),r.shiftKey?m():h();break;case"PageDown":r.preventDefault(),r.stopPropagation(),r.shiftKey?g():p();break;case"Home":r.preventDefault(),r.stopPropagation(),v();break;case"End":r.preventDefault(),r.stopPropagation(),y()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,r)},onKeyUp:function(r){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,r)},onMouseEnter:function(r){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,r)},onMouseLeave:function(r){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,r)},onPointerEnter:function(r){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,r)},onPointerLeave:function(r){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,r)},onTouchCancel:function(r){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,r)},onTouchEnd:function(r){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,r)},onTouchMove:function(r){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,r)},onTouchStart:function(r){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,r)}};return b}(e,c),f=function(){var e=Pm(),t=Mg(),n=ag(),r=ug();return Nm(e)?t.selected:Am(e)?n.selected:_m(e)?r.selected:void 0}(),h=Boolean(s.onDayClick||"default"!==s.mode);(0,a.useEffect)((function(){var t;c.outside||l.focusedDay&&h&&vm(l.focusedDay,e)&&(null===(t=n.current)||void 0===t||t.focus())}),[l.focusedDay,e,n,h,c.outside]);var p=function(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(function(e){return Object.values(ig).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}})),n}(s,c).join(" "),m=function(e,t){var n=Dm({},e.styles.day);return Object.keys(t).forEach((function(t){var r;n=Dm(Dm({},n),null===(r=e.modifiersStyles)||void 0===r?void 0:r[t])})),n}(s,c),g=Boolean(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(i=null===(o=s.components)||void 0===o?void 0:o.DayContent)&&void 0!==i?i:tg,y={style:m,className:p,children:(0,d.jsx)(v,{date:e,displayMonth:t,activeModifiers:c}),role:"gridcell"},b=l.focusTarget&&vm(l.focusTarget,e)&&!c.outside,w=l.focusedDay&&vm(l.focusedDay,e),x=Dm(Dm(Dm({},y),((r={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,r.tabIndex=w||b?0:-1,r)),u);return{isButton:h,isHidden:g,activeModifiers:c,selectedDays:f,buttonProps:x,divProps:y}}function Og(e){var t=(0,a.useRef)(null),n=Rg(e.date,e.displayMonth,t);return n.isHidden?(0,d.jsx)("div",{role:"gridcell"}):n.isButton?(0,d.jsx)(Zm,Dm({name:"day",ref:t},n.buttonProps)):(0,d.jsx)("div",Dm({},n.divProps))}function jg(e){var t=e.number,n=e.dates,r=Pm(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,s=r.locale,l=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return(0,d.jsx)("span",{className:i.weeknumber,style:a.weeknumber,children:c});var u=l(Number(t),{locale:s});return(0,d.jsx)(Zm,{name:"week-number","aria-label":u,className:i.weeknumber,style:a.weeknumber,onClick:function(e){o(t,n,e)},children:c})}function Ig(e){var t,n,r,o=Pm(),a=o.styles,i=o.classNames,s=o.showWeekNumber,l=o.components,c=null!==(t=null==l?void 0:l.Day)&&void 0!==t?t:Og,u=null!==(n=null==l?void 0:l.WeekNumber)&&void 0!==n?n:jg;return s&&(r=(0,d.jsx)("td",{className:i.cell,style:a.cell,children:(0,d.jsx)(u,{number:e.weekNumber,dates:e.dates})})),(0,d.jsxs)("tr",{className:i.row,style:a.row,children:[r,e.dates.map((function(t){return(0,d.jsx)("td",{className:i.cell,style:a.cell,role:"presentation",children:(0,d.jsx)(c,{displayMonth:e.displayMonth,date:t})},function(e){return Math.trunc(+mp(e)/1e3)}(t))}))]})}function Pg(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?km(t):bp(t,n),o=(null==n?void 0:n.ISOWeek)?Lp(e):yp(e,n),a=Ip(r,o),i=[],s=0;s<=a;s++)i.push(gm(o,s));return i.reduce((function(e,t){var r=(null==n?void 0:n.ISOWeek)?zp(t):Wp(t,n),o=e.find((function(e){return e.weekNumber===r}));return o?(o.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)}),[])}function Lg(e){var t,n,r,o=Pm(),a=o.locale,i=o.classNames,s=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,f=o.weekStartsOn,h=o.firstWeekContainsDate,p=o.ISOWeek,m=function(e,t){var n=Pg(lm(e),cm(e),t);if(null==t?void 0:t.useFixedWeeks){var r=Cm(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=wm(a,6-r),s=Pg(wm(a,1),i,t);n.push.apply(n,s)}}return n}(e.displayMonth,{useFixedWeeks:Boolean(c),ISOWeek:p,locale:a,weekStartsOn:f,firstWeekContainsDate:h}),g=null!==(t=null==u?void 0:u.Head)&&void 0!==t?t:eg,v=null!==(n=null==u?void 0:u.Row)&&void 0!==n?n:Ig,y=null!==(r=null==u?void 0:u.Footer)&&void 0!==r?r:Jm;return(0,d.jsxs)("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&(0,d.jsx)(g,{}),(0,d.jsx)("tbody",{className:i.tbody,style:s.tbody,children:m.map((function(t){return(0,d.jsx)(v,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)}))}),(0,d.jsx)(y,{displayMonth:e.displayMonth})]})}var Fg="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,zg=!1,Hg=0;function Wg(){return"react-day-picker-".concat(++Hg)}function Bg(e){var t,n,r=Pm(),o=r.dir,i=r.classNames,s=r.styles,l=r.components,c=Um().displayMonths,u=function(e){var t,n=null!=e?e:zg?Wg():null,r=(0,a.useState)(n),o=r[0],i=r[1];return Fg((function(){null===o&&i(Wg())}),[]),(0,a.useEffect)((function(){!1===zg&&(zg=!0)}),[]),null!==(t=null!=e?e:o)&&void 0!==t?t:void 0}(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),f=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,h=[i.month],p=s.month,m=0===e.displayIndex,g=e.displayIndex===c.length-1,v=!m&&!g;"rtl"===o&&(g=(t=[m,g])[0],m=t[1]),m&&(h.push(i.caption_start),p=Dm(Dm({},p),s.caption_start)),g&&(h.push(i.caption_end),p=Dm(Dm({},p),s.caption_end)),v&&(h.push(i.caption_between),p=Dm(Dm({},p),s.caption_between));var y=null!==(n=null==l?void 0:l.Caption)&&void 0!==n?n:Km;return(0,d.jsxs)("div",{className:h.join(" "),style:p,children:[(0,d.jsx)(y,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,d.jsx)(Lg,{id:f,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function Vg(e){var t=Pm(),n=t.classNames,r=t.styles;return(0,d.jsx)("div",{className:n.months,style:r.months,children:e.children})}function Ug(e){var t,n,r=e.initialProps,o=Pm(),i=Tg(),s=Um(),l=(0,a.useState)(!1),c=l[0],u=l[1];(0,a.useEffect)((function(){o.initialFocus&&i.focusTarget&&(c||(i.focus(i.focusTarget),u(!0)))}),[o.initialFocus,c,i.focus,i.focusTarget,i]);var f=[o.classNames.root,o.className];o.numberOfMonths>1&&f.push(o.classNames.multiple_months),o.showWeekNumber&&f.push(o.classNames.with_weeknumber);var h=Dm(Dm({},o.styles.root),o.style),p=Object.keys(r).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var n;return Dm(Dm({},e),((n={})[t]=r[t],n))}),{}),m=null!==(n=null===(t=r.components)||void 0===t?void 0:t.Months)&&void 0!==n?n:Vg;return(0,d.jsx)("div",Dm({className:f.join(" "),style:h,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},p,{children:(0,d.jsx)(m,{children:s.displayMonths.map((function(e,t){return(0,d.jsx)(Bg,{displayIndex:t,displayMonth:e},t)}))})}))}function $g(e){var t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return(0,d.jsx)(Im,{initialProps:n,children:(0,d.jsx)(Vm,{children:(0,d.jsx)(_g,{initialProps:n,children:(0,d.jsx)(rg,{initialProps:n,children:(0,d.jsx)(lg,{initialProps:n,children:(0,d.jsx)(xg,{children:(0,d.jsx)(Dg,{children:t})})})})})})})}function Gg(e){return(0,d.jsx)($g,Dm({},e,{children:(0,d.jsx)(Ug,{initialProps:e})}))}function qg({className:e,classNames:t,showOutsideDays:n=!0,...r}){return(0,d.jsx)(Gg,{showOutsideDays:n,className:Su("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Su(Iu({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Su(Iu({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...e})=>(0,d.jsx)(ud,{className:"h-4 w-4"}),IconRight:({...e})=>(0,d.jsx)(la,{className:"h-4 w-4"})},...r})}qg.displayName="Calendar";const Zg={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"};function Yg({calendarApi:e,currentDate:t,setCurrentDate:n}){const{startday:r}=eventkoi_params,o=function(e,t){const n=Object.entries(e).find((([e,n])=>n===t));return n?Number(n[0]):void 0}(Zg,r),[i,s]=(0,a.useState)(t?new Date(t):new Date),[l,c]=(0,a.useState)(t?new Date(t):new Date);(0,a.useEffect)((()=>{if(t){const e=new Date(t);s(e),c(e)}}),[t]);const u={from:yp(i,{weekStartsOn:o}),to:bp(i,{weekStartsOn:o})};return(0,d.jsx)(qg,{mode:"single",selected:u,month:l,weekStartsOn:o,onSelect:t=>{t&&t.getTime()!==i.getTime()&&(s(t),c(t),e&&e.gotoDate(t),n&&n(t))},onMonthChange:t=>{const r=t>l,o=xp(i,t.getMonth());c(t),s(o),e&&e.gotoDate(o),n&&n(o),console.log(r?"➡️ Next button clicked":"⬅️ Prev button clicked"),console.log("Selected new date:",o)},classNames:{day_range_end:"",day_range_middle:"",day_today:"",day_outside:"text-muted-foreground",day_disabled:"",row:"flex w-full mt-2 justify-between [&>*]:flex-1 [&>td:first-child>button]:rounded-l-md [&>td:last-child>button]:rounded-r-md",head_cell:"text-muted-foreground w-9 font-bold text-sm transition-colors",day_selected:"!bg-accent !text-black",cell:"h-9 w-9 p-0",day:"h-9 w-full border-0 [&:not([aria-selected='true'])]:bg-white hover:[&:not([aria-selected='true'])]:bg-accent [&:not([aria-selected='true'])]:rounded-md transition-colors",button:"cursor-pointer",nav_button:"bg-white border-0 h-8 w-10 hover:bg-accent rounded-md transition-colors",nav_icon:"w-2.5 h-2.5"}})}function Qg({calendarApi:e,currentDate:t,setCurrentDate:n}){const[r,o]=(0,a.useState)(!1);return(0,d.jsxs)(id,{open:r,onOpenChange:o,children:[(0,d.jsx)(sd,{asChild:!0,children:(0,d.jsxs)(Pu,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[e?.view?.title||"",(0,d.jsx)(cd,{className:"h-4 w-4 min-w-4"})]})}),(0,d.jsx)(ld,{side:"bottom",align:"start",sideOffset:20,className:"w-auto rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden p-1",children:(0,d.jsx)(Yg,{calendarApi:e,currentDate:t,setCurrentDate:n})})]})}function Kg(e){const{calendar:t,calendarApi:n,currentDate:r,setCurrentDate:o,view:a,setView:i,isTodayInRange:s,search:l,setSearch:c,open:u,setOpen:f,events:h,filteredResults:p,paginatedResults:m,totalPages:g,page:v,setPage:y,timezone:b,timeFormat:w,inputRef:x}=e;return!t||Array.isArray(t)&&0===t.length||!Array.isArray(t)&&0===Object.keys(t).length?(0,d.jsxs)("div",{className:"hidden lg:flex flex-wrap items-center justify-between gap-3 w-full",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pp,{className:"h-10 w-24 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-32 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-20 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-64 rounded-md"})," "]}),(0,d.jsx)(pp,{className:"h-10 w-28 rounded-md"})]}):(0,d.jsxs)("div",{className:"hidden lg:flex flex-wrap items-center justify-between text-sm gap-3 w-full",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pd,{calendarApi:n,currentDate:r,setCurrentDate:o}),"timeGridWeek"===a||"week"===a?(0,d.jsx)(Qg,{calendarApi:n,currentDate:r,setCurrentDate:o}):(0,d.jsx)(hd,{calendarApi:n,currentDate:r,setCurrentDate:o}),(0,d.jsx)(Vh,{calendarApi:n,setCurrentDate:o,isTodayInRange:s}),(0,d.jsx)(Bh,{inputRef:x,search:l,setSearch:c,open:u,setOpen:f,events:h,filteredResults:p,paginatedResults:m,totalPages:g,page:v,setPage:y,timezone:b,timeFormat:w})]}),(0,d.jsx)(hp,{calendarApi:n,view:a,setView:i})]})}function Jg(e){const{calendar:t,calendarApi:n,currentDate:r,setCurrentDate:o,view:i,setView:s,isTodayInRange:l,search:c,setSearch:u,open:f,setOpen:h,events:p,filteredResults:m,paginatedResults:g,totalPages:v,page:y,setPage:b,timezone:w,timeFormat:x}=e,[k,S]=(0,a.useState)(!1),E=(0,a.useRef)(null);return!t||Array.isArray(t)&&0===t.length||!Array.isArray(t)&&0===Object.keys(t).length?(0,d.jsxs)("div",{className:"flex flex-col w-full gap-4 lg:hidden",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(pp,{className:"h-10 w-20 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-28 rounded-md"})," "]}),(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pp,{className:"h-10 w-20 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-32 rounded-md"})," "]}),(0,d.jsx)(pp,{className:"h-10 w-10 rounded-md"})," "]})]}):(0,d.jsxs)("div",{className:"flex flex-col w-full gap-4 lg:hidden",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(Vh,{calendarApi:n,setCurrentDate:o,isTodayInRange:l}),(0,d.jsx)(hp,{calendarApi:n,view:i,setView:s})]}),k?(0,d.jsx)("div",{className:"w-full",children:(0,d.jsx)(Bh,{inputRef:E,search:c,setSearch:u,open:f,setOpen:h,events:p,filteredResults:m,paginatedResults:g,totalPages:v,page:y,setPage:b,timezone:w,timeFormat:x,setSearchOpen:S})}):(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pd,{calendarApi:n,currentDate:r,setCurrentDate:o}),"timeGridWeek"===i||"week"===i?(0,d.jsx)(Qg,{calendarApi:n,currentDate:r,setCurrentDate:o}):(0,d.jsx)(hd,{calendarApi:n,currentDate:r,setCurrentDate:o})]}),(0,d.jsx)(Pu,{variant:"outline",size:"icon",className:"rounded shadow-sm border border-solid border-border cursor-pointer",onClick:()=>{S(!0),setTimeout((()=>E.current?.focus()),50)},children:(0,d.jsx)(Eh,{className:"w-4 h-4"})})]})]})}function Xg({calendar:e,calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:i,search:s,setSearch:l,events:c,timezone:u,timeFormat:f}){const[h,p]=(0,a.useState)(!1),[m,g]=(0,a.useState)(0),v=(0,a.useRef)(null),y=s?c.filter((e=>{const t=s.toLowerCase();return e.title?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t)||e.location?.toLowerCase().includes(t)})):[],b=Math.ceil(y.length/10),w=y.slice(10*m,10*(m+1));(0,a.useEffect)((()=>g(0)),[s]);const x=(()=>{if(!t)return!1;const e=t.view?.currentStart,n=t.view?.currentEnd,r=new Date;return e<=r&&r<=n})(),k={calendar:e,calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:i,isTodayInRange:x,search:s,setSearch:l,open:h,setOpen:p,events:c,filteredResults:y,paginatedResults:w,totalPages:b,page:m,setPage:g,timezone:u,timeFormat:f,inputRef:v};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Jg,{...k}),(0,d.jsx)(Kg,{...k})]})}var ev="Tabs",[tv,nv]=f(ev,[nn]),rv=nn(),[ov,av]=tv(ev),iv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=C(s),[f,h]=m({prop:r,onChange:o,defaultProp:a});return(0,d.jsx)(ov,{scope:n,baseId:Z(),value:f,onValueChange:h,orientation:i,dir:u,activationMode:l,children:(0,d.jsx)(x.div,{dir:u,"data-orientation":i,...c,ref:t})})}));iv.displayName=ev;var sv="TabsList",lv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=av(sv,n),i=rv(n);return(0,d.jsx)(fn,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:(0,d.jsx)(x.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})}));lv.displayName=sv;var cv="TabsTrigger",uv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=av(cv,n),l=rv(n),c=hv(i.baseId,r),u=pv(i.baseId,r),f=r===i.value;return(0,d.jsx)(hn,{asChild:!0,...l,focusable:!o,active:f,children:(0,d.jsx)(x.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:s(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:s(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:s(e.onFocus,(()=>{const e="manual"!==i.activationMode;f||o||!e||i.onValueChange(r)}))})})}));uv.displayName=cv;var dv="TabsContent",fv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,l=av(dv,n),c=hv(l.baseId,r),u=pv(l.baseId,r),f=r===l.value,h=a.useRef(f);return a.useEffect((()=>{const e=requestAnimationFrame((()=>h.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,d.jsx)(qt,{present:o||f,children:({present:n})=>(0,d.jsx)(x.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:n&&i})})}));function hv(e,t){return`${e}-trigger-${t}`}function pv(e,t){return`${e}-content-${t}`}fv.displayName=dv;var mv=lv,gv=uv,vv=fv;const yv=iv,bv=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(mv,{ref:n,className:Su("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t})));bv.displayName=mv.displayName;const wv=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(gv,{ref:n,className:Su("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t})));function xv({timezone:e,setTimezone:t,timeFormat:n,setTimeFormat:r}){const[o,i]=(0,a.useState)(!1),s=function(){const e=eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC",t=[{value:e,label:`Site Default (${Dc(e,"24",!1)})`},{value:"local",label:`Local Time (${Intl.DateTimeFormat().resolvedOptions().timeZone})`},{value:"UTC",label:"UTC"}],n=("function"==typeof Intl.supportedValuesOf?Intl.supportedValuesOf("timeZone").map((e=>({value:e,label:e}))):[]).filter((t=>"UTC"!==t.value&&"local"!==t.value&&t.value!==e)).reduce(((e,t)=>{const[n]=t.value.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});Object.keys(n).forEach((e=>{n[e].sort(((e,t)=>e.label.localeCompare(t.label)))}));const r=Object.fromEntries(Object.entries(n).sort((([e],[t])=>e.localeCompare(t))));return{Popular:t,...r}}(),l=function(e=768){const[t,n]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{function t(){n(window.innerWidth<e)}return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t}();return(0,d.jsxs)(id,{open:o,onOpenChange:i,children:[(0,d.jsx)(sd,{asChild:!0,children:(0,d.jsx)(Pu,{variant:"ghost","aria-haspopup":"listbox","aria-expanded":o,"aria-controls":"timezone-listbox","aria-label":`Current timezone: ${Dc(e,n)}. Press Enter or Space to change.`,className:"inline-flex bg-transparent border-none cursor-pointer w-auto h-auto p-0 font-normal text-foreground underline",children:Dc(e,n)})}),(0,d.jsxs)(ld,{align:l?"start":"end",className:"p-0 w-[280px] border border-border border-solid border-[1px]",children:[(0,d.jsxs)(Oh,{children:[(0,d.jsx)("div",{className:"",children:(0,d.jsx)(yv,{value:n,onValueChange:r,"aria-label":"Time format selection",className:"w-full bg-muted",children:(0,d.jsxs)(bv,{className:"flex bg-muted px-2 gap-2 shadow-none rounded-none",children:[(0,d.jsx)(wv,{value:"12",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"12hr (AM/PM)"}),(0,d.jsx)(wv,{value:"24",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"24hr"})]})})}),(0,d.jsx)(jh,{placeholder:"Search timezone...",className:"h-auto border-none focus:border-none focus:border-transparent focus:border-[0px] focus:shadow-none"}),(0,d.jsxs)(Ih,{id:"timezone-listbox",role:"listbox","aria-label":"Select a timezone",className:"max-h-[300px] overflow-y-auto border-t border-border border-t-[1px] border-solid border-b-0 border-l-0 border-r-0",children:[(0,d.jsx)(Ph,{children:"No timezone found."}),Object.entries(s).map((([n,r],o,a)=>(0,d.jsxs)("div",{children:[(0,d.jsx)(Lh,{heading:(0,d.jsx)("span",{className:"py-1 text-sm font-medium text-foreground",children:n}),children:r.map((n=>(0,d.jsx)(zh,{role:"option","aria-selected":e===n.value,onSelect:()=>{const e=Ac(n.value);t(e);const r=new URLSearchParams(window.location.search);r.set("tz",n.value),window.history.replaceState({},"",`?${r}`),i(!1)},className:"cursor-pointer aria-selected:bg-accent aria-selected:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded-sm",children:n.label},n.value)))}),o<a.length-1&&(0,d.jsx)(Fh,{})]},n)))]})]}),(0,d.jsxs)("span",{className:"sr-only","aria-live":"polite",children:["Selected timezone: ",Dc(e,n)]})]})]})}function kv({event:e,icon:t,title:n,name:r}){return(0,d.jsxs)("a",{href:"#",className:"flex flex-col gap-1 items-center justify-center no-underline text-sm text-foreground/90 hover:text-foreground group",onClick:t=>{t.preventDefault(),(()=>{const t=encodeURIComponent(e?.url),n=encodeURIComponent(e?.title),o=`RE: ${n}`;"whatsapp"===r&&window.open(`https://api.whatsapp.com/send?text=${n} ${t}`,"_blank"),"x"===r&&window.open(`https://x.com/intent/post?url=${t}&text=${n}`,"_blank"),"facebook"===r&&window.open(`https://www.facebook.com/sharer/sharer.php?u=${t}`,"_blank"),"linkedin"===r&&window.open(`https://www.linkedin.com/shareArticle/?mini=true&url=${t}&text=${n}`,"_blank"),"instagram"===r&&window.open(`https://www.instagram.com/?url=${t}`,"_blank"),"email"===r&&window.open(`mailto:?&subject=${o}&cc=&bcc=&body=${t}`,"_self")})()},children:[(0,d.jsx)("span",{className:"rounded-full bg-accent group-hover:bg-input flex items-center justify-center w-16 h-16",children:t}),(0,d.jsx)("span",{children:n})]})}wv.displayName=gv.displayName,a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(vv,{ref:n,className:Su("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}))).displayName=vv.displayName;const Sv=ju("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ev({className:e,variant:t,...n}){return(0,d.jsx)("div",{className:Su(Sv({variant:t}),e),...n})}var Cv=a.forwardRef(((e,t)=>(0,d.jsx)(x.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Cv.displayName="Label";var Dv=Cv;const Tv=ju("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Av=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Dv,{ref:n,className:Su(Tv(),e),...t})));Av.displayName=Dv.displayName;const _v=window.wp.primitives;function Nv({width:e=26,height:t=20,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 29.025 22.935",children:(0,d.jsxs)("g",{transform:"translate(1.741 1.25)",children:[(0,d.jsx)(_v.Path,{d:"M5.554,6H25.989a2.562,2.562,0,0,1,2.554,2.554V23.88a2.562,2.562,0,0,1-2.554,2.554H5.554A2.562,2.562,0,0,1,3,23.88V8.554A2.562,2.562,0,0,1,5.554,6Z",transform:"translate(-3 -6)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"}),(0,d.jsx)(_v.Path,{d:"M28.543,9,15.771,17.94,3,9",transform:"translate(-3 -6.446)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"})]})})}function Mv({width:e=30,height:t=30,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 30.421 30.421",children:(0,d.jsx)(_v.Path,{d:"M30.419,15.3A15.211,15.211,0,1,0,12.83,30.42V19.727H8.971V15.3h3.863V11.93c0-3.835,2.272-5.952,5.745-5.952a23.263,23.263,0,0,1,3.4.3v3.764H20.066a2.206,2.206,0,0,0-2.477,2.392V15.3h4.217l-.673,4.422H17.587V30.418A15.279,15.279,0,0,0,30.419,15.3",transform:"translate(0.002 0.001)"})})}function Rv({width:e=28,height:t=28,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 27.748 27.742",children:(0,d.jsx)(_v.Path,{d:"M13.872,9a7.113,7.113,0,1,0,7.113,7.113A7.1,7.1,0,0,0,13.872,9Zm0,11.737A4.624,4.624,0,1,1,18.5,16.109a4.633,4.633,0,0,1-4.624,4.624ZM22.934,8.705a1.659,1.659,0,1,1-1.659-1.659A1.655,1.655,0,0,1,22.934,8.705Zm4.711,1.684A8.21,8.21,0,0,0,25.4,4.576a8.264,8.264,0,0,0-5.813-2.241c-2.29-.13-9.155-.13-11.446,0A8.252,8.252,0,0,0,2.333,4.57,8.237,8.237,0,0,0,.092,10.383c-.13,2.29-.13,9.155,0,11.446a8.21,8.21,0,0,0,2.241,5.813,8.274,8.274,0,0,0,5.813,2.241c2.29.13,9.155.13,11.446,0A8.21,8.21,0,0,0,25.4,27.641a8.264,8.264,0,0,0,2.241-5.813c.13-2.29.13-9.149,0-11.44Zm-2.959,13.9a4.682,4.682,0,0,1-2.637,2.637c-1.826.724-6.159.557-8.177.557s-6.357.161-8.177-.557a4.682,4.682,0,0,1-2.637-2.637C2.333,22.46,2.5,18.127,2.5,16.109s-.161-6.357.557-8.177A4.682,4.682,0,0,1,5.694,5.294c1.826-.724,6.159-.557,8.177-.557s6.357-.161,8.177.557a4.682,4.682,0,0,1,2.637,2.637c.724,1.826.557,6.159.557,8.177S25.41,22.466,24.686,24.286Z",transform:"translate(0.005 -2.238)"})})}function Ov({width:e=25,height:t=25,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24.627 24.627",children:(0,d.jsx)(_v.Path,{d:"M5.513,24.627H.407V8.185H5.513ZM2.957,5.943A2.971,2.971,0,1,1,5.914,2.958,2.982,2.982,0,0,1,2.957,5.943ZM24.622,24.627H19.527v-8c0-1.908-.038-4.354-2.655-4.354-2.655,0-3.061,2.072-3.061,4.216v8.141h-5.1V8.185h4.9v2.243h.071A5.365,5.365,0,0,1,18.51,7.773c5.167,0,6.117,3.4,6.117,7.822v9.032Z",transform:"translate(0 -0.001)"})})}function jv({width:e=29,height:t=29,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 28.555 28.555",children:(0,d.jsx)(_v.Path,{d:"M24.278,6.4A14.155,14.155,0,0,0,2.008,23.475L0,30.805l7.5-1.97a14.107,14.107,0,0,0,6.763,1.721h.006a14.286,14.286,0,0,0,14.284-14.15A14.206,14.206,0,0,0,24.278,6.4ZM14.271,28.173A11.74,11.74,0,0,1,8.28,26.535l-.427-.255L3.4,27.446l1.186-4.341-.28-.446a11.784,11.784,0,1,1,21.856-6.253A11.892,11.892,0,0,1,14.271,28.173Zm6.45-8.809c-.351-.178-2.091-1.033-2.416-1.147s-.561-.178-.8.178-.911,1.147-1.122,1.39-.414.268-.765.089a9.624,9.624,0,0,1-4.812-4.207c-.363-.625.363-.58,1.039-1.931a.655.655,0,0,0-.032-.618c-.089-.178-.8-1.919-1.09-2.626-.287-.688-.58-.593-.8-.606s-.44-.013-.676-.013a1.31,1.31,0,0,0-.943.44,3.973,3.973,0,0,0-1.237,2.951,6.927,6.927,0,0,0,1.44,3.659,15.8,15.8,0,0,0,6.042,5.341c2.244.969,3.123,1.052,4.245.886a3.621,3.621,0,0,0,2.384-1.683,2.957,2.957,0,0,0,.2-1.683C21.308,19.625,21.072,19.536,20.721,19.364Z",transform:"translate(0 -2.25)"})})}function Iv({width:e=23,height:t=21,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 23.006 20.85",children:(0,d.jsx)(_v.Path,{d:"M18.118.75h3.529L13.939,9.582,23.006,21.6h-7.1l-5.56-7.29L3.984,21.6H.454L8.7,12.153,0,.75H7.28l5.025,6.662L18.119.75ZM16.881,19.483h1.956L6.216,2.756H4.12Z",transform:"translate(0 -0.75)"})})}const Pv=sa("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),Lv=sa("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Fv=sa("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),zv=sa("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Hv=sa("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),Wv=sa("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function Bv(e,t="utc",n,r){const o=n||eventkoi_params?.locale?.replace("_","-")||"en",a=r||eventkoi_params?.time_format||"12",i=Sc.fromISO(e,{zone:"utc"===t?"UTC":Tc(t)}).setLocale(o);return"24"===a?i.toFormat("HH:mm"):i.toFormat("h:mma").toLowerCase().replace(":00","")}function Vv(e,t="utc",n){const r=n||eventkoi_params?.locale?.replace("_","-")||"en";return Sc.fromISO(e,{zone:"utc"===t?"UTC":Tc(t)}).setLocale(r).toLocaleString(Sc.DATE_MED)}const Uv=(e,t)=>{const n=new Date(e);return t?n.toISOString().split("T")[0].replace(/-/g,""):n.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z"},$v=e=>window.open(e,"_blank","noopener,noreferrer");function Gv({event:e,anchor:t,onClose:n,ignoreNextOutsideClick:r,timezone:o="UTC"}){const[i,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1),[u,f]=(0,a.useState)(!1),[h]=(0,a.useState)(t),p=e.location_line,m=(()=>{const t=Tc(o),n=eventkoi_params?.locale?.replace("_","-")||"en",r=eventkoi_params?.time_format||"12",a="standard"===e.date_type&&"continuous"===e.standard_type,i=e.allDay&&!a;if(a||e.start_time&&e.end_time){const o=e.start_real||e.start,a=e.end_real||e.end;return o!==a?`${Vv(o,t,n)}, ${Bv(o,t,n,r)} – ${Vv(a,t,n)}, ${Bv(a,t,n,r)}`:`${Vv(o,t,n)} – ${Bv(a,t,n,r)}`}return i?e.start.split("T")[0]!==e.end.split("T")[0]?`${Vv(e.start,t,n)} – ${Vv(e.end_real,t,n)}`:Vv(e.start,t,n):Sc.fromISO(e.start,{zone:t}).hasSame(Sc.fromISO(e.end,{zone:t}),"day")?`${Vv(e.start,t,n)}, ${Bv(e.start,t,n,r)} – ${Bv(e.end,t,n,r)}`:`${Vv(e.start,t,n)}, ${Bv(e.start,t,n,r)} – ${Vv(e.end,t,n)}, ${Bv(e.end,t,n,r)}`})(),v=()=>{const t=new URL("https://www.google.com/calendar/render");t.searchParams.set("action","TEMPLATE"),t.searchParams.set("text",e.title||""),t.searchParams.set("dates",`${Uv(e.start,e.allDay)}/${Uv(e.end,e.allDay)}`),t.searchParams.set("details",e.description||""),t.searchParams.set("location",p||""),t.searchParams.set("output","xml"),$v(t.toString())};if((0,a.useEffect)((()=>(document.body.setAttribute("data-calendar-menu-open",u?"true":"false"),()=>{document.body.removeAttribute("data-calendar-menu-open")})),[u]),(0,a.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.stopPropagation(),n())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[n]),!e||!h)return null;const y=document.querySelector(".fc");return(0,g.createPortal)((0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{"data-event-popover":!0,className:"absolute z-50 rounded-lg border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden w-[370px] max-w-full",style:{left:`${h.x}px`,top:`${h.y}px`},onMouseDown:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onClick:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onPointerDownCapture:e=>{i&&e.stopPropagation()},children:[(0,d.jsxs)("div",{className:"px-4 py-4 pb-0 relative",children:[(0,d.jsxs)("div",{className:"flex absolute right-1 top-1 gap-1",children:[(0,d.jsx)(Pu,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:()=>window.open(e.url,"_self"),children:(0,d.jsx)(Pv,{className:"h-4 w-4"})}),(0,d.jsx)(Pu,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:n,children:(0,d.jsx)(Ch,{className:"h-4 w-4"})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 pe-[58px]",children:[(0,d.jsx)("a",{href:e.url,className:"text-base font-semibold leading-snug text-foreground no-underline hover:underline line-clamp-2 block",children:e.title}),"recurring"===e.date_type&&(0,d.jsx)(Ev,{variant:"secondary",className:"w-fit bg-[#eeeeee] hover:bg-[#eeeeee] font-normal",children:"Recurring"})]})]}),(0,d.jsxs)("div",{className:"p-4 flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,d.jsx)(Lv,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,d.jsx)("div",{className:"flex-1",children:m})]}),p&&(0,d.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,d.jsx)(Fv,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,d.jsx)("div",{className:"flex-1",children:p})]}),e.thumbnail&&(0,d.jsx)("img",{src:e.thumbnail,alt:"",className:"w-full h-auto rounded-none border object-cover max-h-48"}),e.description&&(0,d.jsx)("div",{className:"text-sm text-muted-foreground leading-snug line-clamp-3",children:e.description})]}),(0,d.jsxs)("div",{className:"flex justify-between items-center px-4 pb-4 gap-2",children:[(0,d.jsxs)(Eu,{open:u,onOpenChange:e=>{f(e),e||(r.current=!0)},children:[(0,d.jsx)(Cu,{asChild:!0,children:(0,d.jsxs)(Pu,{size:"sm",variant:"outline",className:"text-[13px] justify-between gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",onMouseDown:e=>e.stopPropagation(),children:["Add to calendar",(0,d.jsx)(cd,{className:"w-3.5 h-3.5"})]})}),(0,d.jsxs)(Du,{align:"start",className:"w-44",onMouseDown:e=>e.stopPropagation(),children:[(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame(v),children:"Google Calendar"}),(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame((()=>$v(eventkoi_params.ical))),children:"iCalendar"}),(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame((()=>$v("https://outlook.office.com/owa/"))),children:"Outlook 365"}),(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame((()=>$v("https://outlook.live.com/owa/"))),children:"Outlook Live"})]})]}),(0,d.jsxs)(Pu,{size:"sm",variant:"secondary",onClick:()=>s(!0),className:"text-[13px] gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",children:[(0,d.jsx)(zv,{className:"w-3.5 h-3.5"}),"Share"]})]})]}),(0,d.jsx)(Dh,{open:i,onOpenChange:e=>{s(e),document.body.dataset.shareModalOpen=e?"true":"false",e||(r.current=!0)},children:(0,d.jsxs)(_h,{"data-event-share-modal":!0,className:"w-full max-w-[685px] p-0",onOpenAutoFocus:e=>e.preventDefault(),onMouseDown:e=>e.stopPropagation(),onPointerDownOutside:e=>{e.preventDefault(),s(!1),r.current=!0},children:[(0,d.jsx)(Nh,{className:"flex items-center justify-center p-4 border-0 border-solid border-b-2 border-input",children:(0,d.jsx)(Mh,{className:"font-sans text-xl m-0 text-foreground",children:"Share this event"})}),(0,d.jsxs)("div",{className:"flex flex-col pt-[30px] pb-[60px] px-[60px]",children:[(0,d.jsxs)("div",{className:"flex gap-4 items-center flex-wrap justify-center pb-[60px]",children:[(0,d.jsx)(kv,{event:e,name:"whatsapp",title:"Whatsapp",icon:(0,d.jsx)(jv,{})}),(0,d.jsx)(kv,{event:e,name:"instagram",title:"Instagram",icon:(0,d.jsx)(Rv,{})}),(0,d.jsx)(kv,{event:e,name:"email",title:"Email",icon:(0,d.jsx)(Nv,{})}),(0,d.jsx)(kv,{event:e,name:"facebook",title:"Facebook",icon:(0,d.jsx)(Mv,{})}),(0,d.jsx)(kv,{event:e,name:"x",title:"X",icon:(0,d.jsx)(Iv,{})}),(0,d.jsx)(kv,{event:e,name:"linkedin",title:"Linkedin",icon:(0,d.jsx)(Ov,{})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 pb-[10px]",children:[(0,d.jsx)(Av,{className:"text-base",children:"Event link"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(Hh,{id:"link",defaultValue:e?.url,readOnly:!0,className:"min-h-[66px] border border-input border-solid border-primary/30 box-border text-lg text-foreground"}),(0,d.jsxs)(Pu,{variant:"secondary",type:"button",className:"absolute h-12 right-[9px] top-[9px] border-none cursor-pointer hover:bg-input",onMouseDown:e=>e.stopPropagation(),onClick:()=>{requestAnimationFrame((()=>{navigator.clipboard.writeText(e?.url),c(!0),setTimeout((()=>c(!1)),1200)}))},children:[l?(0,d.jsx)(Hv,{className:"mr-2 h-5 w-5"}):(0,d.jsx)(Wv,{className:"mr-2 h-5 w-5"}),l?"Copied!":"Copy"]})]})]})]})]})})]}),y||document.body)}function qv(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var Zv={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${qv(e)} ${e}`,next:e=>`Nächste${qv(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${qv(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function Yv(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var Qv,Kv,Jv,Xv,ey,ty,ny,ry,oy,ay={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${Yv(e)} ${e}`,next:e=>`Nächste${Yv(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${Yv(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},iy=[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText:e=>"+ daha çox "+e,noEventsText:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:4},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText:e=>"+още "+e,noEventsText:"Няма събития за показване"},{code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText:e=>"+অন্যান্য "+e,noEventsText:"কোনো ইভেন্ট নেই"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Any",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText:e=>"+další: "+e,noEventsText:"Žádné akce k zobrazení"},{code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"},Zv,ay,{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:e=>"Día"===e?"Hoy":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"de la":"del")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:e=>`Mostrar ${e} eventos más`,noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText:e=>"+ veel "+e,noEventsText:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText:e=>"بیش از "+e,noEventsText:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today:e=>"Día"===e?"Hoxe":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"da":"do")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint:e=>`Amosar ${e} eventos máis`,noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},{code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"נוספים",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText:e=>"+अधिक "+e,noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},{code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText:e=>"+ ևս "+e,noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:e=>"+altri "+e,noEventsText:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText:e=>"他 "+e+" 件",noEventsText:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText:e=>"+ კიდევ "+e,noEventsText:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText:e=>"+ тағы "+e,noEventsText:"Көрсету үшін оқиғалар жоқ"},{code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},{code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText:e=>"+vēl "+e,noEventsText:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText:e=>"+повеќе "+e,noEventsText:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText:e=>"masih ada "+e+" acara",noEventsText:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint:e=>`Vis ${e} flere hendelse${1===e?"":"r"}`},{code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Lijst"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today:e=>"Dia"===e?"Hoje":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Visualizar "+("Semana"===e?"a":"o")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText:e=>"mais +"+e,moreLinkHint:e=>`Mostrar mais ${e} eventos`,noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText:e=>"+alte "+e,noEventsText:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:e=>"+ ещё "+e,noEventsText:"Нет событий для отображения"},{code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText:e=>"+ďalšie: "+e,noEventsText:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},{code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText:e=>"+më tepër "+e,noEventsText:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText:e=>"+ још "+e,noEventsText:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev:e=>`Föregående ${e.toLocaleLowerCase()}`,next:e=>`Nästa ${e.toLocaleLowerCase()}`,today:e=>("Program"===e?"Detta":"Denna")+" "+e.toLocaleLowerCase()},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint:e=>`Visa ytterligare ${e} händelse${1===e?"":"r"}`,weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},{code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText:e=>"+ மேலும் "+e,noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText:e=>"+ще "+e+"...",noEventsText:"Немає подій для відображення"},{code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText:e=>"+ яна "+e,noEventsText:"Кўрсатиш учун воқеалар йўқ"},{code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:e=>"+ yana "+e,noEventsText:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText:e=>"+ thêm "+e,noEventsText:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:e=>"另外 "+e+" 个",noEventsText:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上個",next:"下個",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"週",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"沒有任何活動"}],sy={},ly=[],cy=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function uy(e,t){for(var n in t)e[n]=t[n];return e}function dy(e){var t=e.parentNode;t&&t.removeChild(e)}function fy(e,t,n){var r,o,a,i={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?Qv.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return hy(e,i,r,o,null)}function hy(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Jv:o};return null==o&&null!=Kv.vnode&&Kv.vnode(a),a}function py(e){return e.children}function my(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||cy.test(t)?n:n+"px"}function gy(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||my(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||my(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?yy:vy,a):e.removeEventListener(t,a?yy:vy,a);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function vy(e){ey=!0;try{return this.l[e.type+!1](Kv.event?Kv.event(e):e)}finally{ey=!1}}function yy(e){ey=!0;try{return this.l[e.type+!0](Kv.event?Kv.event(e):e)}finally{ey=!1}}function by(e,t){this.props=e,this.context=t}function wy(e,t){if(null==t)return e.__?wy(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?wy(e):null}function xy(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return xy(e)}}function ky(e){ey?setTimeout(e):ry(e)}function Sy(e){(!e.__d&&(e.__d=!0)&&ty.push(e)&&!Ey.__r++||ny!==Kv.debounceRendering)&&((ny=Kv.debounceRendering)||ky)(Ey)}function Ey(){var e,t,n,r,o,a,i,s;for(ty.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=ty.shift();)e.__d&&(t=ty.length,r=void 0,o=void 0,i=(a=(n=e).__v).__e,(s=n.__P)&&(r=[],(o=uy({},a)).__v=a.__v+1,Ny(s,a,o,n.__n,void 0!==s.ownerSVGElement,null!=a.__h?[i]:null,r,null==i?wy(a):i,a.__h),My(r,a),a.__e!=i&&xy(a)),ty.length>t&&ty.sort((function(e,t){return e.__v.__b-t.__v.__b})));Ey.__r=0}function Cy(e,t,n,r,o,a,i,s,l,c){var u,d,f,h,p,m,g,v=r&&r.__k||ly,y=v.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?hy(null,h,null,null,h):Array.isArray(h)?hy(py,{children:h},null,null,null):h.__b>0?hy(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=v[u])||f&&h.key==f.key&&h.type===f.type)v[u]=void 0;else for(d=0;d<y;d++){if((f=v[d])&&h.key==f.key&&h.type===f.type){v[d]=void 0;break}f=null}Ny(e,h,f=f||sy,o,a,i,s,l,c),p=h.__e,(d=h.ref)&&f.ref!=d&&(g||(g=[]),f.ref&&g.push(f.ref,null,h),g.push(d,h.__c||p,h)),null!=p?(null==m&&(m=p),"function"==typeof h.type&&h.__k===f.__k?h.__d=l=Dy(h,l,e):l=Ay(e,h,f,v,p,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=wy(f))}for(n.__e=m,u=y;u--;)null!=v[u]&&("function"==typeof n.type&&null!=v[u].__e&&v[u].__e==n.__d&&(n.__d=_y(r).nextSibling),jy(v[u],v[u]));if(g)for(u=0;u<g.length;u++)Oy(g[u],g[++u],g[++u])}function Dy(e,t,n){for(var r,o=e.__k,a=0;o&&a<o.length;a++)(r=o[a])&&(r.__=e,t="function"==typeof r.type?Dy(r,t,n):Ay(n,r,r,o,r.__e,t));return t}function Ty(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Ty(e,t)})):t.push(e)),t}function Ay(e,t,n,r,o,a){var i,s,l;if(void 0!==t.__d)i=t.__d,t.__d=void 0;else if(null==n||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),i=null;else{for(s=a,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,a),i=a}return void 0!==i?i:o.nextSibling}function _y(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=_y(n)))return r;return null}function Ny(e,t,n,r,o,a,i,s,l){var c,u,d,f,h,p,m,g,v,y,b,w,x,k,S,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=Kv.__b)&&c(t);try{e:if("function"==typeof E){if(g=t.props,v=(c=E.contextType)&&r[c.__c],y=c?v?v.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in E&&E.prototype.render?t.__c=u=new E(g,y):(t.__c=u=new by(g,y),u.constructor=E,u.render=Iy),v&&v.sub(u),u.props=g,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=E.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=uy({},u.__s)),uy(u.__s,E.getDerivedStateFromProps(g,u.__s))),f=u.props,h=u.state,u.__v=t,d)null==E.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[],u.__h.length&&i.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,y),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,h,p)}))}if(u.context=y,u.props=g,u.__P=e,w=Kv.__r,x=0,"prototype"in E&&E.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(t),c=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do{u.__d=!1,w&&w(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(r=uy(uy({},r),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(p=u.getSnapshotBeforeUpdate(f,h)),S=null!=c&&c.type===py&&null==c.key?c.props.children:c,Cy(e,Array.isArray(S)?S:[S],t,n,r,o,a,i,s,l),u.base=t.__e,t.__h=null,u.__h.length&&i.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ry(n.__e,t,n,r,o,a,i,l);(c=Kv.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),Kv.__e(e,t,n)}}function My(e,t){Kv.__c&&Kv.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Kv.__e(e,t.__v)}}))}function Ry(e,t,n,r,o,a,i,s){var l,c,u,d=n.props,f=t.props,h=t.type,p=0;if("svg"===h&&(o=!0),null!=a)for(;p<a.length;p++)if((l=a[p])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,a[p]=null;break}if(null==e){if(null===h)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),a=null,s=!1}if(null===h)d===f||s&&e.data===f||(e.data=f);else{if(a=a&&Qv.call(e.childNodes),c=(d=n.props||sy).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(null!=a)for(d={},p=0;p<e.attributes.length;p++)d[e.attributes[p].name]=e.attributes[p].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,o){var a;for(a in n)"children"===a||"key"===a||a in t||gy(e,a,null,n[a],r);for(a in t)o&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a]||gy(e,a,t[a],n[a],r)}(e,f,d,o,s),u)t.__k=[];else if(p=t.props.children,Cy(e,Array.isArray(p)?p:[p],t,n,r,o&&"foreignObject"!==h,a,i,a?a[0]:n.__k&&wy(n,0),s),null!=a)for(p=a.length;p--;)null!=a[p]&&dy(a[p]);s||("value"in f&&void 0!==(p=f.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==d.value)&&gy(e,"value",p,d.value,!1),"checked"in f&&void 0!==(p=f.checked)&&p!==e.checked&&gy(e,"checked",p,d.checked,!1))}return e}function Oy(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Kv.__e(e,n)}}function jy(e,t,n){var r,o;if(Kv.unmount&&Kv.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Oy(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Kv.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&jy(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||dy(e.__e),e.__=e.__e=e.__d=void 0}function Iy(e,t,n){return this.constructor(e,n)}function Py(e,t,n){var r,o,a;Kv.__&&Kv.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],Ny(t,e=(!r&&n||t).__k=fy(py,null,[e]),o||sy,sy,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?Qv.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r),My(a,e)}Qv=ly.slice,Kv={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},Jv=0,Xv=function(e){return null!=e&&void 0===e.constructor},ey=!1,by.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=uy({},this.state),"function"==typeof e&&(e=e(uy({},n),this.props)),e&&uy(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Sy(this))},by.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Sy(this))},by.prototype.render=py,ty=[],ry="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ey.__r=0,oy=0;var Ly,Fy,zy,Hy=[],Wy=[],By=Kv.__b,Vy=Kv.__r,Uy=Kv.diffed,$y=Kv.__c,Gy=Kv.unmount;function qy(){for(var e;e=Hy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qy),e.__H.__h.forEach(Ky),e.__H.__h=[]}catch(t){e.__H.__h=[],Kv.__e(t,e.__v)}}Kv.__b=function(e){Ly=null,By&&By(e)},Kv.__r=function(e){Vy&&Vy(e);var t=(Ly=e.__c).__H;t&&(Fy===Ly?(t.__h=[],Ly.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Wy,e.__N=e.i=void 0}))):(t.__h.forEach(Qy),t.__h.forEach(Ky),t.__h=[])),Fy=Ly},Kv.diffed=function(e){Uy&&Uy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Hy.push(t)&&zy===Kv.requestAnimationFrame||((zy=Kv.requestAnimationFrame)||Yy)(qy)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Wy&&(e.__=e.__V),e.i=void 0,e.__V=Wy}))),Fy=Ly=null},Kv.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Qy),e.__h=e.__h.filter((function(e){return!e.__||Ky(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Kv.__e(n,e.__v)}})),$y&&$y(e,t)},Kv.unmount=function(e){Gy&&Gy(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Qy(e)}catch(e){t=e}})),n.__H=void 0,t&&Kv.__e(t,n.__v))};var Zy="function"==typeof requestAnimationFrame;function Yy(e){var t,n=function(){clearTimeout(r),Zy&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Zy&&(t=requestAnimationFrame(n))}function Qy(e){var t=Ly,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Ly=t}function Ky(e){var t=Ly;e.__c=e.__(),Ly=t}function Jy(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Xy(e){this.props=e}(Xy.prototype=new by).isPureReactComponent=!0,Xy.prototype.shouldComponentUpdate=function(e,t){return Jy(this.props,e)||Jy(this.state,t)};var eb=Kv.__b;Kv.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),eb&&eb(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var tb=Kv.__e;Kv.__e=function(e,t,n,r){if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);tb(e,t,n,r)};var nb=Kv.unmount;function rb(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return rb(e,t,n)}))),e}function ob(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return ob(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function ab(){this.__u=0,this.t=null,this.__b=null}function ib(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function sb(){this.u=null,this.o=null}Kv.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),nb&&nb(e)},(ab.prototype=new by).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=ib(r.__v),a=!1,i=function(){a||(a=!0,n.__R=null,o?o(s):s())};n.__R=i;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=ob(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},ab.prototype.componentWillUnmount=function(){this.t=[]},ab.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=rb(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&fy(py,null,e.fallback);return o&&(o.__h=null),[fy(py,null,t.__a?null:e.children),o]};var lb=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function cb(e){return this.getChildContext=function(){return e.context},e.children}function ub(e){var t=this,n=e.i;t.componentWillUnmount=function(){Py(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Py(fy(cb,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(sb.prototype=new by).__a=function(e){var t=this,n=ib(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),lb(t,e,r)):o()};n?n(a):a()}},sb.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ty(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},sb.prototype.componentDidUpdate=sb.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){lb(e,n,t)}))};var db="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,fb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,hb="undefined"!=typeof document,pb=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};by.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(by.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var mb=Kv.event;function gb(){}function vb(){return this.cancelBubble}function yb(){return this.defaultPrevented}Kv.event=function(e){return mb&&(e=mb(e)),e.persist=gb,e.isPropagationStopped=vb,e.isDefaultPrevented=yb,e.nativeEvent=e};var bb={configurable:!0,get:function(){return this.class}},wb=Kv.vnode;Kv.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var a in r={},n){var i=n[a];hb&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==i||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===i?i="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!pb(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&fb.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===i&&(i=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Ty(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Ty(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(bb.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",bb))}e.$$typeof=db,wb&&wb(e)};var xb=Kv.__r;Kv.__r=function(e){xb&&xb(e),e.__c};const kb=[],Sb=new Map;function Eb(e){kb.push(e),Sb.forEach((t=>{Db(t,e)}))}function Cb(e){let t=Sb.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=(void 0===Tb&&(Tb=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}()),Tb);n&&(t.nonce=n);const r=e===document?document.head:e,o=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,o)}Sb.set(e,t),function(e){for(const t of kb)Db(e,t)}(t)}}function Db(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach(((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)}))}let Tb;"undefined"!=typeof document&&Cb(document),Eb(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');class Ab{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function _b(e){e.parentNode&&e.parentNode.removeChild(e)}function Nb(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Mb(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Mb(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}const Rb=/(top|left|right|bottom|width|height)$/i;function Ob(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Rb.test(t)?e.style[t]=`${n}px`:e.style[t]=n}let jb=0;function Ib(){return jb+=1,"fc-dom-"+jb}function Pb(e,t,n,r){let o=function(e,t){return n=>{let r=Nb(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}function Lb(e){return Object.assign({onClick:e},Fb(e))}function Fb(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let zb=0;function Hb(){return zb+=1,String(zb)}function Wb(e,t,n){return n.func?n.func(e,t):function(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}(e[n.field],t[n.field])*(n.order||1)}function Bb(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Vb(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function Ub(e){return e%1==0}function $b(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Gb=["years","months","days","milliseconds"],qb=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Zb(e,t){return"string"==typeof e?function(e){let t=qb.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Yb(e):"number"==typeof e?Yb({[t||"milliseconds"]:e}):null}function Yb(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Qb(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Kb(e){return Jb(e)/864e5}function Jb(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Xb(e,t){let n=null;for(let r=0;r<Gb.length;r+=1){let o=Gb[r];if(t[o]){let r=e[o]/t[o];if(!Ub(r)||null!==n&&n!==r)return null;n=r}else if(e[o])return null}return n}function ew(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function tw(e,t,n){if(e===t)return!0;let r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const nw=["sun","mon","tue","wed","thu","fri","sat"];function rw(e,t){let n=hw(e);return n[2]+=7*t,pw(n)}function ow(e,t){let n=hw(e);return n[2]+=t,pw(n)}function aw(e,t){let n=hw(e);return n[6]+=t,pw(n)}function iw(e,t){return(t.valueOf()-e.valueOf())/864e5}function sw(e,t){return gw(e)===gw(t)?Math.round(iw(e,t)):null}function lw(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function cw(e,t,n,r){let o=pw([t,0,1+uw(t,n,r)]),a=lw(e),i=Math.round(iw(o,a));return Math.floor(i/7)+1}function uw(e,t,n){let r=7+t-n;return-(7+pw([e,0,r]).getUTCDay()-t)%7+r-1}function dw(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function fw(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function hw(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function pw(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function mw(e){return!isNaN(e.valueOf())}function gw(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function vw(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",bw(t,!0)))),r}function yw(e){return e.toISOString().replace(/T.*$/,"")}function bw(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=Math.round(r%60);return t?`${n+Bb(o,2)}:${Bb(a,2)}`:`GMT${n}${o}${a?`:${Bb(a,2)}`:""}`}function ww(e,t,n){let r,o;return function(...a){if(r){if(!tw(r,a)){n&&n(o);let r=e.apply(this,a);t&&t(r,o)||(o=r)}}else o=e.apply(this,a);return r=a,o}}function xw(e,t,n){let r,o;return a=>{if(r){if(!Xw(r,a)){n&&n(o);let r=e.call(this,a);t&&t(r,o)||(o=r)}}else o=e.call(this,a);return r=a,o}}const kw={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Sw={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ew=/\s*([ap])\.?m\.?/i,Cw=/,/g,Dw=/\s+/g,Tw=/\u200e/g,Aw=/UTC|GMT/;class _w{constructor(e){let t={},n={},r=9;for(let o in e)o in kw?(n[o]=e[o],kw[o]<9&&(r=Math.min(kw[o],r))):(t[o]=e[o],o in Sw&&(r=Math.min(Sw[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=ww(Nw)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:o,extendedSettings:a}=this,i=(s=e.marker,l=t.marker,(c=n.calendarSystem).getMarkerYear(s)!==c.getMarkerYear(l)?5:c.getMarkerMonth(s)!==c.getMarkerMonth(l)?4:c.getMarkerDay(s)!==c.getMarkerDay(l)?2:gw(s)!==gw(l)?1:0);var s,l,c;if(!i)return this.format(e,n);let u=i;!(u>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(u=1);let d=this.format(e,n),f=this.format(t,n);if(d===f)return d;let h=function(e,t){let n={};for(let r in e)(!(r in Sw)||Sw[r]<=t)&&(n[r]=e[r]);return n}(o,u),p=Nw(h,a,n),m=p(e),g=p(t),v=function(e,t,n,r){let o=0;for(;o<e.length;){let a=e.indexOf(t,o);if(-1===a)break;let i=e.substr(0,a);o=a+t.length;let s=e.substr(o),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let o=n.substr(l);if(i===t&&s===o)return{before:i,after:s}}}return null}(d,m,f,g),y=a.separator||r||n.defaultSeparator||"";return v?v.before+m+y+g+v.after:d+y+f}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Nw(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>bw(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,o){let a=[];return"long"===o?a.push(n):"short"!==o&&"narrow"!==o||a.push(t),"long"!==o&&"short"!==o||a.push(" "),a.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&a.reverse(),a.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return a=>{let i,{marker:s}=a;return i=r&&!s.getUTCMinutes()?r:o,function(e,t,n,r,o){return e=e.replace(Tw,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;return e=e.replace(Aw,(()=>(n=!0,t))),n||(e+=` ${t}`),e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":bw(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(Cw,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(Ew,"").trim():"narrow"===r.meridiem?e=e.replace(Ew,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(Ew,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(Ew,(e=>e.toLocaleLowerCase()))),e=(e=e.replace(Dw," ")).trim()}(i.format(s),a,e,t,n)}}(e,t,n)}function Mw(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Rw(e,t,n,r){let o=Mw(e,n.calendarSystem);return{date:o,start:o,end:t?Mw(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Ow{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Rw(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,Rw(e,t,n,r))}}class jw{constructor(e){this.func=e}format(e,t,n){return this.func(Rw(e,null,t,n))}formatRange(e,t,n,r){return this.func(Rw(e,t,n,r))}}function Iw(e){return"object"==typeof e&&e?new _w(e):"string"==typeof e?new Ow(e):"function"==typeof e?new jw(e):null}const Pw={navLinkDayClick:Gw,navLinkWeekClick:Gw,duration:Zb,bootstrapFontAwesome:Gw,buttonIcons:Gw,customButtons:Gw,defaultAllDayEventDuration:Zb,defaultTimedEventDuration:Zb,nextDayThreshold:Zb,scrollTime:Zb,scrollTimeReset:Boolean,slotMinTime:Zb,slotMaxTime:Zb,dayPopoverFormat:Iw,slotDuration:Zb,snapDuration:Zb,headerToolbar:Gw,footerToolbar:Gw,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Iw,dayHeaderClassNames:Gw,dayHeaderContent:Gw,dayHeaderDidMount:Gw,dayHeaderWillUnmount:Gw,dayCellClassNames:Gw,dayCellContent:Gw,dayCellDidMount:Gw,dayCellWillUnmount:Gw,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Gw,weekNumbers:Boolean,weekNumberClassNames:Gw,weekNumberContent:Gw,weekNumberDidMount:Gw,weekNumberWillUnmount:Gw,editable:Boolean,viewClassNames:Gw,viewDidMount:Gw,viewWillUnmount:Gw,nowIndicator:Boolean,nowIndicatorSnap:Gw,nowIndicatorClassNames:Gw,nowIndicatorContent:Gw,nowIndicatorDidMount:Gw,nowIndicatorWillUnmount:Gw,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Gw,locale:Gw,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Gw,eventOrder:function(e){let t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)n=o[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Gw,contentHeight:Gw,direction:String,weekNumberFormat:Iw,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Gw,initialDate:Gw,now:Gw,eventDataTransform:Gw,stickyHeaderDates:Gw,stickyFooterScrollbar:Gw,viewHeight:Gw,defaultAllDay:Boolean,eventSourceFailure:Gw,eventSourceSuccess:Gw,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Gw,eventConstraint:Gw,eventAllow:Gw,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Gw,eventContent:Gw,eventDidMount:Gw,eventWillUnmount:Gw,selectConstraint:Gw,selectOverlap:Gw,selectAllow:Gw,droppable:Boolean,unselectCancel:String,slotLabelFormat:Gw,slotLaneClassNames:Gw,slotLaneContent:Gw,slotLaneDidMount:Gw,slotLaneWillUnmount:Gw,slotLabelClassNames:Gw,slotLabelContent:Gw,slotLabelDidMount:Gw,slotLabelWillUnmount:Gw,dayMaxEvents:Gw,dayMaxEventRows:Gw,dayMinWidth:Number,slotLabelInterval:Zb,allDayText:String,allDayClassNames:Gw,allDayContent:Gw,allDayDidMount:Gw,allDayWillUnmount:Gw,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Iw,rerenderDelay:Number,moreLinkText:Gw,moreLinkHint:Gw,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Gw,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Zb,hiddenDays:Gw,fixedWeekCount:Boolean,validRange:Gw,visibleRange:Gw,titleFormat:Gw,eventInteractive:Boolean,noEventsText:String,viewHint:Gw,navLinkHint:Gw,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Gw,moreLinkClassNames:Gw,moreLinkContent:Gw,moreLinkDidMount:Gw,moreLinkWillUnmount:Gw,monthStartFormat:Iw,handleCustomRendering:Gw,customRenderingMetaMap:Gw,customRenderingReplaces:Boolean},Lw={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},Fw={datesSet:Gw,eventsSet:Gw,eventAdd:Gw,eventChange:Gw,eventRemove:Gw,windowResize:Gw,eventClick:Gw,eventMouseEnter:Gw,eventMouseLeave:Gw,select:Gw,unselect:Gw,loading:Gw,_unmount:Gw,_beforeprint:Gw,_afterprint:Gw,_noEventDrop:Gw,_noEventResize:Gw,_resize:Gw,_scrollRequest:Gw},zw={buttonText:Gw,buttonHints:Gw,views:Gw,plugins:Gw,initialEvents:Gw,events:Gw,eventSources:Gw},Hw={headerToolbar:Ww,footerToolbar:Ww,buttonText:Ww,buttonHints:Ww,buttonIcons:Ww,dateIncrement:Ww,plugins:Bw,events:Bw,eventSources:Bw,resources:Bw};function Ww(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Xw(e,t):e===t}function Bw(e,t){return Array.isArray(e)&&Array.isArray(t)?tw(e,t):e===t}const Vw={type:String,component:Gw,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Gw,usesMinMaxTime:Boolean,classNames:Gw,content:Gw,didMount:Gw,willUnmount:Gw};function Uw(e){return Zw(e,Hw)}function $w(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function Gw(e){return e}const{hasOwnProperty:qw}=Object.prototype;function Zw(e,t){let n={};if(t)for(let r in t)if(t[r]===Ww){let t=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if("object"==typeof a&&a)t.unshift(a);else if(void 0!==a){n[r]=a;break}}t.length&&(n[r]=Zw(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function Yw(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Qw(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function Kw(e){let t={};for(let n of e)t[n]=!0;return t}function Jw(e){let t=[];for(let n in e)t.push(e[n]);return t}function Xw(e,t){if(e===t)return!0;for(let n in e)if(qw.call(e,n)&&!(n in t))return!1;for(let n in t)if(qw.call(t,n)&&e[n]!==t[n])return!1;return!0}const ex=/^on[A-Z]/;function tx(e,t,n={}){if(e===t)return!0;for(let i in t)if(!(i in e&&(r=e[i],o=t[i],a=n[i],r===o||!0===a||a&&a(r,o))))return!1;var r,o,a;for(let n in e)if(!(n in t))return!1;return!0}let nx={};var rx;rx=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return pw(e)}markerToArray(e){return hw(e)}},nx.gregory=rx;const ox=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class ax{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new nx[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):pw(dw(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=pw(e)),null!==t&&mw(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=ox.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(mw(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return gw(e)===gw(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return gw(e)===gw(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=function(e,t){let n=sw(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=sw(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),Ub(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),Ub(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),Ub(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(Kb(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/(Kb(n)/30):n.days&&(r=sw(e,t),null!==r)?r/Kb(n):(t.valueOf()-e.valueOf())/Jb(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?lw(e):"hour"===t?function(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),o=cw(e,r,t,n);if(o<1)return cw(e,r-1,t,n);let a=cw(e,r+1,t,n);return a>=1?Math.min(o,a):o}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=aw(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),vw(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?pw(dw(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?pw(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-fw(hw(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(hw(e)):null}toDate(e,t){return"local"===this.timeZone?fw(hw(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(hw(e))*60):new Date(e.valueOf()-(t||0))}}class ix{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function sx(e){e();let t=Kv.debounceRendering,n=[];for(Kv.debounceRendering=function(e){n.push(e)},Py(fy(lx,{}),document.createElement("div"));n.length;)n.shift()();Kv.debounceRendering=t}ix.prototype.classes={},ix.prototype.iconClasses={},ix.prototype.baseIconClass="",ix.prototype.iconOverridePrefix="";class lx extends by{render(){return fy("div",{})}componentDidMount(){this.setState({})}}function cx(e){let t=function(e,t){var n={__c:t="__cC"+oy++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,Sy(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class ux{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const dx=cx({});function fx(e,t,n,r,o,a,i,s,l,c,u,d,f,h){return{dateEnv:o,nowManager:a,options:n,pluginHooks:s,emitter:u,dispatch:l,getCurrentData:c,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler(e){u.on("_resize",e)},removeResizeHandler(e){u.off("_resize",e)},createScrollResponder:e=>new ux(e,u,Zb(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class hx extends by{shouldComponentUpdate(e,t){return!tx(this.props,e,this.propEquality)||!tx(this.state,t,this.stateEquality)}safeSetState(e){tx(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}hx.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},hx.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},hx.contextType=dx,hx.prototype.propEquality={},hx.prototype.stateEquality={};class px extends hx{}function mx(e,t){"function"==typeof e?e(t):e&&(e.current=t)}px.contextType=dx;class gx extends px{constructor(){super(...arguments),this.id=Hb(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&vx(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&mx(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:o,renderProps:a}=e,i=yx(e,[],this.handleEl);let s,l,c=!1,u=[];if(null!=r){const e="function"==typeof r?r(a,fy):r;if(!0===e)c=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?i.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?u=Array.prototype.slice.call(e.domNodes):(t?Xv(e):"function"!=typeof e)?s=e:l=e}}else c=!vx(e.generatorName,n);return c&&o&&(s=o(a)),this.queuedDomNodes=u,this.currentGeneratorMeta=l,fy(e.elTag,i,s)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=r.options;if(o){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==a?void 0:a[n.generatorName];r&&o(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(bx)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!tw(e,t)){t.forEach(_b);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function vx(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function yx(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function bx(e){return Boolean(e)}gx.addPropsEquality({elClasses:tw,elStyle:Xw,elAttrs:function(e,t){const n=function(e,t){let n=[];for(let r in e)qw.call(e,r)&&(r in t||n.push(r));for(let r in t)qw.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}(e,t);for(let e of n)if(!ex.test(e))return!1;return!0},renderProps:Xw});const wx=cx(0);class xx extends by{constructor(){super(...arguments),this.InnerContent=kx.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(mx(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=yx(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?fy(e.elTag,n,r):r}return fy(gx,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function kx(e,t){const n=e.props;return fy(gx,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}xx.contextType=wx;class Sx extends px{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return fy(xx,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Ex(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},(()=>e.children))}}function Ex(e){return[`fc-${e.type}-view`,"fc-view"]}function Cx(e,t){let n,r,o=[],{start:a}=t;for(e.sort(Dx),n=0;n<e.length;n+=1)r=e[n],r.start>a&&o.push({start:a,end:r.start}),r.end>a&&(a=r.end);return a<t.end&&o.push({start:a,end:t.end}),o}function Dx(e,t){return e.start.valueOf()-t.start.valueOf()}function Tx(e,t){let{start:n,end:r}=e,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function Ax(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Nx(e){let t=Math.floor(iw(e.start,e.end))||1,n=lw(e.start);return{start:n,end:ow(n,t)}}function Mx(e,t=Zb(0)){let n=null,r=null;if(e.end){r=lw(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=Jb(t)&&(r=ow(r,1))}return e.start&&(n=lw(e.start),r&&r<=n&&(r=ow(n,1))),{start:n,end:r}}function Rx(e,t,n,r){return"year"===r?Zb(n.diffWholeYears(e,t),"year"):"month"===r?Zb(n.diffWholeMonths(e,t),"month"):function(e,t){let n=lw(e),r=lw(t);return{years:0,months:0,days:Math.round(iw(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}class Ox{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)}build(e,t,n=!0){let r,o,a,i,s,l,{props:c}=this;var u,d,f,h;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(u=e,e=null!=(d=r).start&&u<d.start?d.start:null!=d.end&&u>=d.end?new Date(d.end.valueOf()-1):u),o=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(o.unit),i=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),i=this.trimHiddenDays(i),s=i,c.showNonCurrentDates||(s=Tx(s,o.range)),s=this.adjustActiveRange(s),s=Tx(s,r),f=o.range,h=r,l=(null===f.end||null===h.start||f.end>h.start)&&(null===f.start||null===h.end||f.start<h.end),Ax(i,e)||(e=i.start),{currentDate:e,validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:s,renderRange:i,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,o=null,a=null,i=null;return r.duration?(o=r.duration,a=r.durationUnit,i=this.buildRangeFromDuration(e,t,o,a)):(n=this.props.dayCount)?(a="day",i=this.buildRangeFromDayCount(e,t,n)):(i=this.buildCustomVisibleRange(e))?a=r.dateEnv.greatestWholeUnit(i.start,i.end).unit:(o=this.getFallbackDuration(),a=ew(o).unit,i=this.buildRangeFromDuration(e,t,o,a)),{duration:o,unit:a,range:i}}getFallbackDuration(){return Zb({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:o}=this.props,{start:a,end:i}=e;return n&&(Kb(r)<0&&(a=lw(a),a=t.add(a,r)),Kb(o)>1&&(i=lw(i),i=ow(i,-1),i=t.add(i,o))),{start:a,end:i}}buildRangeFromDuration(e,t,n,r){let o,a,i,{dateEnv:s,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&Jb(e)<Jb(n)?ew(e).unit:r}function c(){o=s.startOf(e,l),a=s.add(o,n),i={start:o,end:a}}return Kb(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=lw(o)),c(),this.trimHiddenDays(i)||(e=this.skipHiddenDays(e,t),c()),i}buildRangeFromDayCount(e,t,n){let r,{dateEnv:o,dateAlignment:a}=this.props,i=0,s=e;a&&(s=o.startOf(s,a)),s=lw(s),s=this.skipHiddenDays(s,t),r=s;do{r=ow(r,1),this.isHiddenDay(r)||(i+=1)}while(i<n);return{start:s,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?Zb(1,t):e||Zb({days:1}))}refineRange(e){if(e){let t=function(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=Mx(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=ow(e,t);return e}}function jx(e,t,n,r){return{instanceId:Hb(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Ix(e,t,n){let{dateEnv:r,pluginHooks:o,options:a}=n,{defs:i,instances:s}=e;s=Yw(s,(e=>!i[e.defId].recurringDef));for(let e in i){let n=i[e];if(n.recurringDef){let{duration:i}=n.recurringDef;i||(i=n.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);let l=Px(n,i,t,r,o.recurringTypes);for(let t of l){let n=jx(e,{start:t,end:r.add(t,i)});s[n.instanceId]=n}}}return{defs:i,instances:s}}function Px(e,t,n,r,o){let a=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(lw)),a}const Lx={id:String,groupId:String,title:String,url:String,interactive:Boolean},Fx={start:Gw,end:Gw,date:Gw,allDay:Boolean},zx=Object.assign(Object.assign(Object.assign({},Lx),Fx),{extendedProps:Gw});function Hx(e,t,n,r,o=Bx(n),a,i){let{refined:s,extra:l}=Wx(e,n,o),c=function(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}(t,n),u=function(e,t,n,r){for(let o=0;o<r.length;o+=1){let a=r[o].parse(e,n);if(a){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=a.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(s,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let e=Vx(s,l,t?t.sourceId:"",u.allDay,Boolean(u.duration),n,a);return e.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:e,instance:null}}let d=function(e,t,n,r){let o,a,{allDay:i}=e,s=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(u),o)s=o.marker;else if(!r)return null;return null!=e.end&&(a=n.dateEnv.createMarkerMeta(e.end)),null==i&&(i=null!=t?t:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified)),i&&s&&(s=lw(s)),a&&(c=a.marker,i&&(c=lw(c)),s&&c<=s&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:l,range:{start:s,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(s,c,n,r);if(d){let e=Vx(s,l,t?t.sourceId:"",d.allDay,d.hasEnd,n,a),r=jx(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return i&&e.publicId&&i[e.publicId]&&(r.instanceId=i[e.publicId]),{def:e,instance:r}}return null}function Wx(e,t,n=Bx(t)){return $w(e,n)}function Bx(e){return Object.assign(Object.assign(Object.assign({},Yx),zx),e.pluginHooks.eventRefiners)}function Vx(e,t,n,r,o,a,i){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(i&&e.id?i[e.id]:"")||Hb(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:Kx(e,a),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of a.pluginHooks.eventDefMemberAdders)Object.assign(s,t(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Ux(e,t,n,r,o,a){let i={defs:{},instances:{}},s=Bx(n);for(let l of e){let e=Hx(l,t,n,r,s,o,a);e&&$x(e,i)}return i}function $x(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Gx(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qx(e,t){let n=Yw(e.defs,t),r=Yw(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function Zx(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const Yx={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Gw,overlap:Gw,allow:Gw,className:Zx,classNames:Zx,color:String,backgroundColor:String,borderColor:String,textColor:String},Qx={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Kx(e,t){let n=function(e,t){return Array.isArray(e)?Ux(e,null,t,!0):"object"==typeof e&&e?Ux([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Jx(e){return e.reduce(Xx,Qx)}function Xx(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const ek={id:String,defaultAllDay:Boolean,url:String,format:String,events:Gw,eventDataTransform:Gw,success:Gw,failure:Gw};function tk(e,t,n=nk(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:o,extra:a}=$w(r,n),i=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(o,t);if(i)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:Hb(),sourceDefId:i.sourceDefId,meta:i.meta,ui:Kx(o,t),extendedProps:a}}return null}function nk(e){return Object.assign(Object.assign(Object.assign({},Yx),ek),e.pluginHooks.eventSourceRefiners)}function rk(e,t,n){let r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=ok(e,o)),r&&(e=ok(e,r)),e}function ok(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function ak(e,t,n){let{defs:r}=e,o=Qw(e.instances,(e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})));return{defs:r,instances:o}}function ik(e,t){return qx(e,(e=>e.sourceId!==t))}class sk{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],o=[].concat(r||[],n);for(let e of o)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const lk={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ck(e,t,n){let{dateEnv:r,options:o}=n,a=t;return e?(a=lw(a),a=r.add(a,o.defaultAllDayEventDuration)):a=r.add(a,o.defaultTimedEventDuration),a}function uk(e,t,n,r){let o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},e),o),{ui:Object.assign(Object.assign({},e.ui),o.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(a,n,r);return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function dk(e,t,n,r,o){let{dateEnv:a}=o,i=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return i&&(l.range=Nx(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,r.datesDelta),end:a.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:ck(t.allDay,l.range.start,o)}),t.allDay&&(l.range={start:lw(l.range.start),end:lw(l.range.end)}),l.range.end<l.range.start&&(l.range.end=ck(t.allDay,l.range.start,o)),l}class fk{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class hk{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Fx)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Lx[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Lx)t=Lx[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Yx){let n=Yx[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=Rx(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=Rx(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:o}=this._context,a={allDay:n.allDay},i=o.createMarker(e);var s,l;if(i&&(null==t||(r=o.createMarker(t),r))&&this._instance){let e=this._instance.range;!0===n.allDay&&(e=Nx(e));let t=Rx(e.start,i,o,n.granularity);if(r){let i=Rx(e.end,r,o,n.granularity);l=i,(s=t).years===l.years&&s.months===l.months&&s.days===l.days&&s.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:a}):this.mutate({startDelta:t,endDelta:i,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:t,standardProps:a})}}moveStart(e){let t=Zb(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=Zb(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=Zb(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=Iw(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:o}=r.getCurrentData(),a=function(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qx(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}(o,t.instanceId);a=function(e,t,n,r){let o=bk(e.defs,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}),a={defs:{},instances:{}};for(let t in e.defs){let i=e.defs[t];a.defs[t]=uk(i,o[t],n,r)}for(let t in e.instances){let i=e.instances[t],s=a.defs[i.defId];a.instances[t]=dk(i,s,o[i.defId],n,r)}return a}(a,0,e,r);let i=new hk(r,n,t);this._def=a.defs[n.defId],this._instance=a.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:a}),r.emitter.trigger("eventChange",{oldEvent:i,event:this,relatedEvents:mk(a,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let e=this._context,t=pk(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new fk(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:o}=this,a={allDay:t.allDay};return t.title&&(a.title=t.title),r&&(a.start=r),o&&(a.end=o),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}toJSON(){return this.toPlainObject()}}function pk(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function mk(e,t,n){let{defs:r,instances:o}=e,a=[],i=n?n.instanceId:"";for(let e in o){let n=o[e],s=r[n.defId];n.instanceId!==i&&a.push(new hk(t,s,n))}return a}function gk(e,t,n,r){let o={},a={},i={},s=[],l=[],c=bk(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(o[n.groupId]=[],i[n.groupId]||(i[n.groupId]=n)):a[t]=[])}for(let t in e.instances){let i=e.instances[t],u=e.defs[i.defId],d=c[u.defId],f=i.range,h=!u.allDay&&r?Mx(f,r):f,p=Tx(h,n);p&&("inverse-background"===d.display?u.groupId?o[u.groupId].push(p):a[i.defId].push(p):"none"!==d.display&&("background"===d.display?s:l).push({def:u,ui:d,instance:i,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()}))}for(let e in o){let t=Cx(o[e],n);for(let n of t){let t=i[e],r=c[t.defId];s.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in a){let r=Cx(a[t],n);for(let n of r)s.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function vk(e,t){e.fcSeg=t}function yk(e){return e.fcSeg||e.parentNode.fcSeg||null}function bk(e,t){return Qw(e,(e=>wk(e,t)))}function wk(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Jx(n)}function xk(e,t){let n=e.map(kk);return n.sort(((e,n)=>function(e,t,n){let r,o;for(r=0;r<n.length;r+=1)if(o=Wb(e,t,n[r]),o)return o;return 0}(e,n,t))),n.map((e=>e._seg))}function kk(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:e})}function Sk(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:o,ui:a}=e.eventRange,i=a.startEditable;for(let e of r)i=e(i,o,a,t);return i}function Ek(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Ck(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Dk(e,t,n,r,o,a,i){let{dateEnv:s,options:l}=n,{displayEventTime:c,displayEventEnd:u}=l,d=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==u&&(u=!1!==o);let h=f.range.start,p=f.range.end,m=a||e.start||e.eventRange.range.start,g=i||e.end||e.eventRange.range.end,v=lw(h).valueOf()===lw(m).valueOf(),y=lw(aw(p,-1)).valueOf()===lw(aw(g,-1)).valueOf();return c&&!d.allDay&&(v||y)?(m=v?h:m,g=y?p:g,u&&d.hasEnd?s.formatRange(m,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:i?null:f.forcedEndTzo}):s.format(m,t,{forcedTzo:a?null:f.forcedStartTzo})):""}function Tk(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ax(t,r.start)}}function Ak(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function _k(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Nk(e,t){let{def:n,instance:r}=e.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:a,options:i}=t,{eventInteractive:s}=i;return null==s&&(s=n.interactive,null==s&&(s=Boolean(a.hasHandlers("eventClick")))),s?Fb((e=>{a.trigger("eventClick",{el:e.target,event:new hk(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const Mk={start:Gw,end:Gw,allDay:Boolean};function Rk(e,t,n){return Object.assign(Object.assign({},Ok(e,t,n)),{timeZone:t.timeZone})}function Ok(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}class jk extends Error{constructor(e,t){super(e),this.response=t}}let Ik;function Pk(){return null==Ik&&(Ik=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Ik}class Lk extends px{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{sx((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{sx((()=>{this.setState({forPrint:!1})}))}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,a=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return Pk()||a.push("fc-liquid-hack"),e.children(a,o,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Fk{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}const zk={};class Hk extends by{constructor(e,t){super(e,t),this.handleRefresh=()=>{let e=this.computeTiming();e.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(e.state),this.clearTimeout(),this.setTimeout(e.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let e,t,{props:n,context:r}=this,o=r.nowManager.getDateMarker(),{nowIndicatorSnap:a}=r.options;return"auto"===a&&(a=/year|month|week|day/.test(n.unit)||1===(n.unitValue||1)),a?(e=r.dateEnv.startOf(o,n.unit),t=r.dateEnv.add(e,Zb(1,n.unit)).valueOf()-o.valueOf()):(e=o,t=6e4),t=Math.min(864e5,t),{state:{nowDate:e,todayRange:Wk(e)},waitMs:t}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout((()=>{const e=this.computeTiming();this.setState(e.state,(()=>{this.setTimeout(e.waitMs)}))}),e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Wk(e){let t=lw(e);return{start:t,end:ow(t,1)}}Hk.contextType=dx;class Bk{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:o}=this.getCurrentData(),a=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(let e in r)a.push(e);for(t=0;t<a.length;t+=1)if(n=r[a[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=Zb(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),Iw(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),Iw(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),o=function(e,t,n){let r=function(e,t){let{refined:n,extra:r}=$w(e,Mk),o=n.start?t.createMarkerMeta(n.start):null,a=n.end?t.createMarkerMeta(n.end):null,{allDay:i}=n;return null==i&&(i=o&&o.isTimeUnspecified&&(!a||a.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:a?a.marker:null},allDay:i},r)}(e,t),{range:o}=r;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}(n,r.dateEnv,Zb({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),function(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},function(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,o=t.dateEnv,Object.assign(Object.assign({},Ok(r.range,o,r.allDay)),{allDay:r.allDay}))),n}(e,n)),{jsEvent:null,view:n.viewApi||n.calendarApi.view}))}(o,0,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof hk){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:$x({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof fk)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=Jw(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let o=Hx(e,n,r,!1);if(o){let e=new hk(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:$x(o)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:pk(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let o in n){let a=n[o];if(a.publicId===e){if(a.recurringDef)return new hk(t,a,null);for(let e in r){let n=r[e];if(n.defId===a.defId)return new hk(t,a,n)}}}return null}getEvents(){let e=this.getCurrentData();return mk(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new fk(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new fk(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof fk)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=tk(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new fk(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Zb(e);t&&this.trigger("_scrollRequest",{time:t})}}function Vk(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}const Uk={defs:{},instances:{}};class $k{constructor(){this.getKeysForEventDefs=ww(this._getKeysForEventDefs),this.splitDateSelection=ww(this._splitDateSpan),this.splitEventStore=ww(this._splitEventStore),this.splitIndividualUi=ww(this._splitIndividualUi),this.splitEventDrag=ww(this._splitInteraction),this.splitEventResize=ww(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),a=this.splitEventStore(e.eventStore,n),i=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=Qw(t,((e,t)=>this.eventUiBuilders[t]||ww(Gk)));for(let n in t){let c=t[n],u=a[n]||Uk,d=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:u,eventUiBases:d(e.eventUiBases[""],c.ui,o[n]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:i[n]||null,eventResize:s[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return Qw(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,o={};for(let e in n)for(let r of t[e])o[r]||(o[r]={defs:{},instances:{}}),o[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])o[r]&&(o[r].instances[e]=n)}return o}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let o of t[r])n[o]||(n[o]={}),n[o][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),a=r=>{t[r]||(t[r]={affectedEvents:n[r]||Uk,mutatedEvents:o[r]||Uk,isEvent:e.isEvent})};for(let e in n)a(e);for(let e in o)a(e)}return t}}function Gk(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let o={"":Jx(r)};return n&&Object.assign(o,n),o}function qk(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&(!r.activeRange||!Ax(r.activeRange,e))),isOther:Boolean(r&&!Ax(r.currentRange,e)),isToday:Boolean(t&&Ax(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Zk(e,t){let n=["fc-day",`fc-day-${nw[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const Yk=Iw({year:"numeric",month:"long",day:"numeric"}),Qk=Iw({week:"long"});function Kk(e,t,n="day",r=!0){const{dateEnv:o,options:a,calendarApi:i}=e;let s=o.format(t,"week"===n?Qk:Yk);if(a.navLinks){let e=o.toDate(t);const l=e=>{let r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(i,o.toDate(t),e):("string"==typeof r&&(n=r),i.zoomTo(t,n))};return Object.assign({title:Vb(a.navLinkHint,[s,e],s),"data-navlink":""},r?Lb(l):{onClick:l})}return{"aria-label":s}}let Jk;class Xk{constructor(e,t,n,r){this.els=t;let o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return eS(this.tops||[],e.tops||[])&&eS(this.bottoms||[],e.bottoms||[])&&eS(this.lefts||[],e.lefts||[])&&eS(this.rights||[],e.rights||[])}}function eS(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class tS extends px{constructor(){super(...arguments),this.uid=Hb()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Nb(e,".fc-event-mirror")}isValidDateDownEl(e){return!(Nb(e,".fc-event:not(.fc-bg-event)")||Nb(e,".fc-more-link")||Nb(e,"a[data-navlink]")||Nb(e,".fc-popover"))}}class nS{constructor(e){this.timeZoneName=e}}class rS{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const r=Object.assign(Object.assign({},t),{span:iS(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,o=t.span;r.start<o.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:o.start}},n),r.end>o.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(sS(r,t.level,t.levelCoord),sS(n,t.level,[e])):sS(n[t.level],t.lateral,e),this.stackCnts[aS(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:o}=this,a=t.length,i=0,s=-1,l=-1,c=null,u=0;for(let d=0;d<a;d+=1){const a=t[d];if(!r&&a>=i+this.getEntryThickness(e))break;let f,h=n[d],p=lS(h,e.span.start,oS),m=p[0]+p[1];for(;(f=h[m])&&f.span.start<e.span.end;){let e=a+this.getEntryThickness(f);e>i&&(i=e,c=f,s=d,l=m),e===i&&(u=Math.max(u,o[aS(f)]+1)),m+=1}}let d=0;if(c)for(d=s+1;d<a&&t[d]<i;)d+=1;let f=-1;return d<a&&t[d]===i&&(f=lS(n[d],e.span.end,oS)[0]),{touchingLevel:s,touchingLateral:l,touchingEntry:c,stackCnt:u,levelCoord:i,level:d,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let o=0;o<n;o+=1){let n=e[o],a=t[o];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:a}))}return r}}function oS(e){return e.span.end}function aS(e){return e.index+":"+e.span.start}function iS(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function sS(e,t,n){e.splice(t,0,n)}function lS(e,t,n){let r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){let a=Math.floor(r+(o-r)/2),i=n(e[a]);if(t<i)o=a;else{if(!(t>i))return[a,1];r=a+1}}return[r,0]}Boolean;const cS="fc-col-header-cell";function uS(e){return e.text}class dS extends px{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:o}=this,{date:a,dateProfile:i}=o,s=qk(a,o.todayRange,null,i),l=[cS].concat(Zk(s,n)),c=e.format(a,o.dayHeaderFormat),u=!s.isDisabled&&o.colCnt>1?Kk(this.context,a):{},d=e.toDate(a);e.namedTimeZoneImpl&&(d=aw(d,36e5));let f=Object.assign(Object.assign(Object.assign({date:d,view:r},o.extraRenderProps),{text:c}),s);return fy(xx,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":s.isDisabled?void 0:yw(a)},o.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:uS,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>fy("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&fy(e,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]}))))}}const fS=Iw({weekday:"long"});class hS extends px{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:o}=this.context,a=ow(new Date(2592e5),e.dow),i={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=t.format(a,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:a},i),{view:r}),e.extraRenderProps),{text:s});return fy(xx,{elTag:"th",elClasses:[cS,...Zk(i,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:uS,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(n=>fy("div",{className:"fc-scrollgrid-sync-inner"},fy(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(a,fS)}}))))}}class pS extends px{constructor(){super(...arguments),this.createDayHeaderFormatter=ww(mS)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return fy(Hk,{unit:"day"},((e,i)=>fy("tr",{role:"row"},o&&o("day"),t.map((e=>r?fy(dS,{key:e.toISOString(),date:e,dateProfile:n,todayRange:i,colCnt:t.length,dayHeaderFormat:a}):fy(hS,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a}))))))}}function mS(e,t,n){return e||function(e,t){return Iw(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}class gS{constructor(e,t){let n=e.start,{end:r}=e,o=[],a=[],i=-1;for(;n<r;)t.isHiddenDay(n)?o.push(i+.5):(i+=1,o.push(i),a.push(n)),n=ow(n,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(ow(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return r=Math.ceil(r),o=Math.floor(o),r<=o?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(iw(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class vS{constructor(e,t){let n,r,o,{dates:a}=e;if(t){for(r=a[0].getUTCDay(),n=1;n<a.length&&a[n].getUTCDay()!==r;n+=1);o=Math.ceil(a.length/n)}else o=1,n=a.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:o}=n,a=e;for(;a<=o;){let i=Math.floor(a/t),s=Math.min((i+1)*t,o+1);r.push({row:i,firstCol:a%t,lastCol:(s-1)%t,isStart:n.isStart&&a===e,isEnd:n.isEnd&&s-1===o}),a=s}}return r}}class yS{constructor(){this.sliceBusinessHours=ww(this._sliceBusinessHours),this.sliceDateSelection=ww(this._sliceDateSpan),this.sliceEventStore=ww(this._sliceEventStore),this.sliceEventDrag=ww(this._sliceInteraction),this.sliceEventResize=ww(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...o){let{eventUiBases:a}=e,i=this.sliceEventStore(e.eventStore,a,t,n,...o);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,a,r,...o),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...o),fgEventSegs:i.fg,bgEventSegs:i.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,t,n,...o),eventResize:this.sliceEventResize(e.eventResize,a,t,n,...o),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...o){return this._sliceDateSpan({range:{start:e,end:aw(e,1)},allDay:!1},t,n,{},r,...o)}_sliceBusinessHours(e,t,n,r,...o){return e?this._sliceEventStore(Ix(e,bS(t,Boolean(n)),r),{},t,n,...o).bg:[]}_sliceEventStore(e,t,n,r,...o){if(e){let a=gk(e,t,bS(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...o){if(!e)return null;let a=gk(e.mutatedEvents,t,bS(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,o,...a){if(!e)return[];let i=bS(t,Boolean(n)),s=Tx(e.range,i);if(s){let t=function(e,t,n){let r=Wx({editable:!1},n),o=Vx(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:wk(o,t),instance:jx(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:s}),r,o),n=this.sliceRange(e.range,...a);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:ow(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function bS(e,t){let n=e.activeRange;return t?n:{start:aw(n.start,e.slotMinTime.milliseconds),end:aw(n.end,e.slotMaxTime.milliseconds-864e5)}}const wS=/^(visible|hidden)$/;class xS extends px{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,mx(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),fy("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(wS.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(wS.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return wS.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return wS.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class kS{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,o=!1,a=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,a=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(t)),a&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return function(e,t=0,n,r=1){let o=[];null==n&&(n=Object.keys(e).length);for(let a=t;a<n;a+=r){let t=e[a];void 0!==t&&o.push(t)}return o}(this.currentMap,e,t,n)}getAll(){return Jw(this.currentMap)}}function SS(e,t){return e.liquid&&t.liquid}function ES(e,t){return tw(e,t,Xw)}function CS(e,t){let n=[];for(let r of e){let e=r.span||1;for(let o=0;o<e;o+=1)n.push(fy("col",{style:{width:"shrink"===r.width?DS(t):r.width||"",minWidth:r.minWidth||""}}))}return fy("colgroup",{},...n)}function DS(e){return null==e?4:e}function TS(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function AS(e){return fy("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function _S(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function NS(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class MS extends px{constructor(){super(...arguments),this.processCols=ww((e=>e),ES),this.renderMicroColGroup=ww(CS),this.scrollerRefs=new kS,this.scrollerElRefs=new kS(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],o=this.processCols(e.cols),a=this.renderMicroColGroup(o,t.shrinkWidth),i=function(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(e.liquid,n);e.collapsibleWidth&&i.push("fc-scrollgrid-collapsible");let s,l=r.length,c=0,u=[],d=[],f=[];for(;c<l&&"header"===(s=r[c]).type;)u.push(this.renderSection(s,a,!0)),c+=1;for(;c<l&&"body"===(s=r[c]).type;)d.push(this.renderSection(s,a,!1)),c+=1;for(;c<l&&"footer"===(s=r[c]).type;)f.push(this.renderSection(s,a,!0)),c+=1;let h=!Pk();const p={role:"rowgroup"};return fy("table",{role:"grid",className:i.join(" "),style:{height:e.height}},Boolean(!h&&u.length)&&fy("thead",p,...u),Boolean(!h&&d.length)&&fy("tbody",p,...d),Boolean(!h&&f.length)&&fy("tfoot",p,...f),h&&fy("tbody",p,...u,...d,...f))}renderSection(e,t,n){return"outerContent"in e?fy(py,{key:e.key},e.outerContent):fy("tr",{key:e.key,role:"presentation",className:TS(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:i,scrollerClientHeights:s}=this.state,l=function(e,t){return null!=t.maxHeight||SS(e,t)}(o,e),c=SS(o,e),u=o.liquid?a?"scroll":l?"auto":"hidden":"visible",d=e.key,f=function(e,t,n,r){let{expandRows:o}=n;return"function"==typeof t.content?t.content(n):fy("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,fy(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===i[d]?null:i[d],clientHeight:void 0!==s[d]?s[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return fy(r?"th":"td",{ref:n.elRef,role:"presentation"},fy("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},fy(xS,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:u,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&mx(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function(e){for(let t of e)if("shrink"===t.width)return!0;return!1}(this.props.cols)?function(e){let t=function(e){let t=e instanceof HTMLElement?[e]:e,n=[];for(let e=0;e<t.length;e+=1){let r=t[e].querySelectorAll(".fc-scrollgrid-shrink");for(let e=0;e<r.length;e+=1)n.push(r[e])}return n}(e),n=0;for(let e of t)n=Math.max(n,$b(e));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=(Jk||(Jk=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=function(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}(e);return document.body.removeChild(e),t}()),Jk),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,o={},a={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let i=t.key,s=n.currentMap[i];if(s){let t=s.parentNode;o[i]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),a[i]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:a}}}MS.addStateEquality({scrollerClientWidths:Xw,scrollerClientHeights:Xw});class RS extends px{constructor(){super(...arguments),this.buildPublicEvent=ww(((e,t,n)=>new hk(e,t,n))),this.handleEl=e=>{this.el=e,mx(this.props.elRef,e),e&&vk(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:o}=r,{ui:a}=o,i={event:this.buildPublicEvent(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Sk(r,t),isStartResizable:!e.disableResizing&&Ek(r,t),isEndResizable:!e.disableResizing&&Ck(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return fy(xx,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...Ak(i),...r.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&vk(this.el,this.props.seg)}}class OS extends px{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:o}=r.eventRange,a=Dk(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return fy(RS,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Nk(r,t),defaultGenerator:jS,timeText:a}),((e,t)=>fy(py,null,fy(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&fy("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&fy("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function jS(e){return fy("div",{className:"fc-event-main-frame"},e.timeText&&fy("div",{className:"fc-event-time"},e.timeText),fy("div",{className:"fc-event-title-container"},fy("div",{className:"fc-event-title fc-sticky"},e.event.title||fy(py,null," "))))}OS.addPropsEquality({seg:Xw});const IS=e=>fy(dx.Consumer,null,(t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return fy(xx,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)})),PS=Iw({day:"numeric"});class LS extends px{constructor(){super(...arguments),this.refineRenderProps=xw(zS)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return fy(xx,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":yw(e.date)}),elClasses:[...Zk(r,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}}function FS(e){return Boolean(e.dayCellContent||vx("dayCellContent",e))}function zS(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:o}=e,a=qk(t,e.todayRange,null,r),i=e.showDayNumber?n.format(t,o?e.monthStartFormat:PS):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},a),{isMonthStart:o,dayNumberText:i}),e.extraRenderProps)}class HS extends px{render(){let{props:e}=this,{seg:t}=e;return fy(RS,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:WS,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function WS(e){let{title:t}=e.event;return t&&fy("div",{className:"fc-event-title"},e.event.title)}function BS(e){return fy("div",{className:`fc-${e}`})}const VS=e=>fy(dx.Consumer,null,(t=>{let{dateEnv:n,options:r}=t,{date:o}=e,a=r.weekNumberFormat||e.defaultFormat,i={num:n.computeWeekNumber(o),text:n.format(o,a),date:o};return fy(xx,{elRef:e.elRef,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:i,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:US,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}));function US(e){return e.text}class $S extends px{constructor(){super(...arguments),this.state={titleId:Ib()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&mx(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=function(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,o=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return function(e,t){var n=fy(ub,{__v:e,i:t});return n.containerInfo=t,n}(fy("div",Object.assign({},n.extraAttrs,{id:n.id,className:o.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),fy("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},fy("span",{className:"fc-popover-title",id:r.titleId},n.title),fy("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),fy("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,o=function(e){let t=function(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}(e),n=e.getBoundingClientRect();for(let e of t){let t=Vk(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(o){let a=r.getBoundingClientRect(),i=n?Nb(t,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=e?o.right-a.width:o.left;i=Math.max(i,10),s=Math.min(s,document.documentElement.clientWidth-10-a.width),s=Math.max(s,10);let l=r.offsetParent.getBoundingClientRect();!function(e,t){for(let n in t)Ob(e,n,t[n])}(r,{top:i-l.top,left:s-l.left})}}}class GS extends tS{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:o,dateProfile:a}=n,i=t.format(r,e.dayPopoverFormat);return fy(LS,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:o},((t,r,o)=>fy($S,{elRef:o.ref,id:n.id,title:i,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},FS(e)&&fy(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:o,props:a}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class qS extends px{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ib()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&mx(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,o=YS(t).start;function a(e){let{def:t,instance:r,range:o}=e.eventRange;return{event:new hk(n,t,r),start:n.dateEnv.toDate(o.start),end:n.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:o,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(o,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return fy(dx.Consumer,null,(n=>{let{viewApi:r,options:o,calendarApi:a}=n,{moreLinkText:i}=o,{moreCnt:s}=e,l=YS(e),c="function"==typeof i?i.call(a,s):`+${s} ${i}`,u=Vb(o.moreLinkHint,[s],c),d={num:s,shortText:`+${s}`,text:c,view:r};return fy(py,null,Boolean(e.moreCnt)&&fy(xx,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Lb(this.handleClick)),{title:u,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||ZS,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&fy(GS,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Nb(this.linkEl,".fc-view-harness"))}}function ZS(e){return e.text}function YS(e){if(e.allDayDate)return{start:e.allDayDate,end:ow(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:QS(t),end:(n=t,n.reduce(JS).eventRange.range.end)};var n}function QS(e){return e.reduce(KS).eventRange.range.start}function KS(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function JS(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class XS{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class eE extends XS{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}const tE=[],nE={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},rE=Object.assign(Object.assign({},nE),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function oE(e){let t=e.length>0?e[0].code:"en",n=tE.concat(e),r={en:rE};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function aE(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||rE;return iE(e,n,r)}(e,t):iE(e.code,[e.code],e)}function iE(e,t,n){let r=Zw([nE,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function sE(e){return{id:Hb(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}class lE extends ix{}function cE(e,t,n,r){if(t[e])return t[e];let o=function(e,t,n,r){let o=n[e],a=r[e],i=e=>o&&null!==o[e]?o[e]:a&&null!==a[e]?a[e]:null,s=i("component"),l=i("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=cE(l,t,n,r)}return!s&&c&&(s=c.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),a?a.rawOptions:{})}:null}(e,t,n,r);return o&&(t[e]=o),o}function uE(e){return Qw(e,dE)}function dE(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=fE(t):!n||n.prototype instanceof px||(n=fE(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function fE(e){return t=>fy(dx.Consumer,null,(n=>fy(xx,{elTag:"div",elClasses:Ex(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function hE(e,t,n,r){let o=uE(e),a=uE(t.views),i=function(e,t){let n,r={};for(n in e)cE(n,r,e,t);for(n in t)cE(n,r,e,t);return r}(o,a);return Qw(i,(e=>function(e,t,n,r,o){let a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,i=null,s="",l="",c={};if(a&&(i=function(e){let t=JSON.stringify(e),n=pE[t];return void 0===n&&(n=Zb(e),pE[t]=n),n}(a),i)){let e=ew(i);s=e.unit,1===e.value&&(l=s,c=t[s]?t[s].rawOptions:{})}let u=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},d=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:i,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:u(r)||u(n)||e.overrides.buttonText,buttonTextDefault:u(o)||e.defaults.buttonText||u(Lw)||e.type,buttonTitleOverride:d(r)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(o)||e.defaults.buttonHint||d(Lw)}}(e,a,t,n,r)))}lE.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},lE.prototype.baseIconClass="fc-icon",lE.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},lE.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},lE.prototype.iconOverrideOption="buttonIcons",lE.prototype.iconOverrideCustomButtonOption="icon",lE.prototype.iconOverridePrefix="fc-icon-";let pE={};function mE(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function gE(e,t,n,r){let o={};for(let e of t)o[e.sourceId]=e;return n&&(o=vE(o,n,r)),Object.assign(Object.assign({},e),o)}function vE(e,t,n){return yE(e,Yw(e,(e=>function(e,t,n){return xE(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,n))),t,!1,n)}function yE(e,t,n,r,o){let a={};for(let i in e){let s=e[i];t[i]?a[i]=bE(s,n,r,o):a[i]=s}return a}function bE(e,t,n,r){let{options:o,calendarApi:a}=r,i=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Hb();return i.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:i}=n;o.eventSourceSuccess&&(i=o.eventSourceSuccess.call(a,i,n.response)||i),e.success&&(i=e.success.call(a,i,n.response)||i),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:i})}),(n=>{let i=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(a,n),i=!0),e.failure&&(e.failure(n),i=!0),i||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function wE(e,t){return Yw(e,(e=>xE(e,t)))}function xE(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function kE(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function SE(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function EE(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function CE(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function DE(e,t,n,r,o){return{header:e.headerToolbar?TE(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?TE(e.footerToolbar,e,t,n,r,o):null}}function TE(e,t,n,r,o,a){let i={},s=[],l=!1;for(let c in e){let u=AE(e[c],t,n,r,o,a);i[c]=u.widgets,s.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:i,viewsWithButtons:s,hasTitle:l}}function AE(e,t,n,r,o,a){let i="rtl"===t.direction,s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],h=[],p=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return p=!0,{buttonName:e};let n,f,m,g,v,y;if(n=s[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,i))||(v=n.text),y=n.hint||n.text;else if(f=o[e]){h.push(e),m=()=>{a.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,i))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=Vb(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(a[e])if(m=()=>{a[e]()},(v=l[e])||(g=r.getIconClass(e,i))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=Vb(u[t]||d[t],[c.year||"year","year"],c[e])}else y=t=>Vb(u[e]||d[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:m,buttonIcon:g,buttonText:v,buttonHint:y}})))),viewsWithButtons:h,hasTitle:p}}class _E{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const NE=sE({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),ME=sE({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;!function(e,n,r){let o=!1,a=function(e){o||(o=!0,t({rawEvents:e}))},i=function(e){o||(o=!0,r(e))},s=e(a,i);s&&"function"==typeof s.then&&s.then(a,i)}(e.eventSource.meta.bind(null,Rk(e.range,r)),0,n)}}]}),RE={method:String,extraParams:Gw,startParam:String,endParam:String,timeZoneParam:String};let OE={parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,o=function(e,t,n){let r,o,a,i,{dateEnv:s,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),o=e.endParam,null==o&&(o=l.endParam),a=e.timeZoneParam,null==a&&(a=l.timeZoneParam),i="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,i),c[r]=s.formatIso(t.start),c[o]=s.formatIso(t.end),"local"!==s.timeZone&&(c[a]=s.timeZone),c}(r,e.range,e.context);(function(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new jk("Failure parsing JSON",e)}));throw new jk("Request failed",e)}))})(r.method,r.url,o).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const jE={daysOfWeek:Gw,startTime:Zb,endTime:Zb,duration:Zb,startRecur:Gw,endRecur:Gw};function IE(e,t){let n=Jw(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const PE=[NE,ME,sE({name:"json-event-source",eventSourceRefiners:RE,eventSourceDefs:[OE]}),sE({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let o,a={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t};return e.duration&&(o=e.duration),!o&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,o={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:o,typeData:a}}var n,r;return null},expand(e,t,n){let r=Tx(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r,o){let a=e?Kw(e):null,i=lw(o.start),s=o.end,l=[];for(t&&(t.milliseconds<0?s=ow(s,1):t.milliseconds>=864e5&&(i=ow(i,-1)));i<s;){let e;a&&!a[i.getUTCDay()]||(e=t?r.add(i,t):i,l.push(r.createMarker(n.toDate(e)))),i=ow(i,1)}return l}(e.daysOfWeek,e.startTime,e.dateEnv,n,r):[]}}],eventRefiners:jE}),sE({name:"change-handler",optionChangeHandlers:{events(e,t){IE([e],t)},eventSources:IE}}),sE({name:"misc",isLoadingFuncs:[e=>mE(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Rk(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",mk(e,t))}}})];class LE{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Ab(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function FE(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,Iw(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=sw(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class zE{constructor(){this.resetListeners=new Set}handleInput(e,t){const n=this.dateEnv;if(e!==n&&("function"==typeof t?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(const e of this.resetListeners.values())e()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class HE{constructor(e){this.computeCurrentViewData=ww(this._computeCurrentViewData),this.organizeRawLocales=ww(oE),this.buildLocale=ww(aE),this.buildPluginHooks=function(){let e,t=[],n=[];return(r,o)=>(e&&tw(r,t)&&tw(o,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(let l of e){const e=l.name,c=n[e];void 0===c?(n[e]=l.id,o(l.deps),s=l,r={premiumReleaseDate:(t=(i=r).premiumReleaseDate,a=s.premiumReleaseDate,void 0===t?a:void 0===a?t:new Date(Math.max(t.valueOf(),a.valueOf()))),reducers:i.reducers.concat(s.reducers),isLoadingFuncs:i.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:i.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},i.eventRefiners),s.eventRefiners),eventDefMemberAdders:i.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},i.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:i.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(s.dateSpanTransforms),views:Object.assign(Object.assign({},i.views),s.views),viewPropsTransformers:i.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:i.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:i.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(s.calendarInteractions),componentInteractions:i.componentInteractions.concat(s.componentInteractions),themeClasses:Object.assign(Object.assign({},i.themeClasses),s.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||i.namedTimeZonedImpl,initialView:i.initialView||s.initialView,elementDraggingImpl:i.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},i.optionChangeHandlers),s.optionChangeHandlers),scrollGridImpl:s.scrollGridImpl||i.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},i.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},i.optionRefiners),s.optionRefiners),propSetHandlers:Object.assign(Object.assign({},i.propSetHandlers),s.propSetHandlers)}):c!==l.id&&console.warn(`Duplicate plugin '${e}'`)}var t,a,i,s}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e)}(),this.buildDateEnv=ww(WE),this.buildTheme=ww(BE),this.parseToolbars=ww(DE),this.buildViewSpecs=ww(hE),this.buildDateProfileGenerator=xw(VE),this.buildViewApi=ww(UE),this.buildViewUiProps=xw(qE),this.buildEventUiBySource=ww($E,Xw),this.buildEventUiBases=ww(GE),this.parseContextBusinessHours=xw(YE),this.buildTitle=ww(FE),this.nowManager=new zE,this.emitter=new sk,this.actionRunner=new LE(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause(),this.nowManager=new zE;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let a={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i=function(e,t,n){let r=e.initialDate;return null!=r?t.createMarker(r):n.getDateMarker()}(n.calendarOptions,n.dateEnv,this.nowManager),s=o.dateProfileGenerator.build(i);Ax(s.activeRange,i)||(i=s.currentRange.start);for(let e of n.pluginHooks.contextInit)e(a);let l=function(e,t,n){let r=t?t.activeRange:null;return gE({},function(e,t){let n=nk(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let e of r){let r=tk(e,t,n);r&&o.push(r)}return o}(e,n),r,n)}(n.calendarOptions,s,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:i,dateProfile:s,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},u=Object.assign(Object.assign({},a),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,u));ZE(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,o=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),a=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),i=function(e,t){return"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType),e}(n.currentViewType,e),s=this.computeCurrentViewData(i,a,t.optionOverrides,o);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);let l={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(u=s.dateProfileGenerator.build(c)),c=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(c,e),u=function(e,t,n,r){let o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(o=r.buildPrev(e,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o}return e}(u,e,c,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ax(u.currentRange,c)||(c=u.currentRange.start);let d=function(e,t,n,r){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return gE(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return a=e,i=t.sourceId,Yw(a,(e=>e.sourceId!==i));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?vE(e,o,r):e;case"FETCH_EVENT_SOURCES":return yE(e,t.sourceIds?Kw(t.sourceIds):wE(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let o=e[t];return o&&n===o.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})}):e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var a,i}(n.eventSources,e,u,l),f=function(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,a){if(t&&n===t.latestFetchId){let n=Ux(rk(o,t,a),t,a);return r&&(n=Ix(n,r,a)),Gx(ik(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"RESET_RAW_EVENTS":return function(e,t,n,r,o){const{defIdMap:a,instanceIdMap:i}=function(e){const{defs:t,instances:n}=e,r={},o={};for(let e in t){const n=t[e],{publicId:o}=n;o&&(r[o]=e)}for(let e in n){const r=t[n[e].defId],{publicId:a}=r;a&&(o[a]=e)}return{defIdMap:r,instanceIdMap:o}}(e);return Ix(Ux(rk(n,t,o),t,o,!1,a,i),r,o)}(e,n[t.sourceId],t.rawEvents,r.activeRange,o);case"ADD_EVENTS":return function(e,t,n,r){return n&&(t=Ix(t,n,r)),Gx(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Gx(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ix(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,o={},a={};for(let e in n)t.defs[e]||(o[e]=n[e]);for(let e in r)!t.instances[e]&&o[r[e].defId]&&(a[e]=r[e]);return{defs:o,instances:a}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return ik(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return qx(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}(n.eventStore,e,d,u,l),h=mE(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:p,selectionConfig:m}=this.buildViewUiProps(l),g=this.buildEventUiBySource(d),v={dynamicOptionOverrides:o,currentViewType:i,currentDate:c,dateProfile:u,eventSources:d,eventStore:f,renderableEventStore:h,selectionConfig:m,eventUiBases:this.buildEventUiBases(h.defs,p,g),businessHours:this.parseContextBusinessHours(l),dateSelection:kE(n.dateSelection,e),eventSelection:SE(n.eventSelection,e),eventDrag:EE(n.eventDrag,e),eventResize:CE(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of a.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=ZE(n,l),w=ZE(v,l);!b&&w?r.trigger("loading",!0):b&&!w&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,o.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),o),t),i=r.pluginHooks.optionChangeHandlers,s=n&&n.calendarOptions,l=r.calendarOptions;if(s&&s!==l){s.timeZone!==l.timeZone&&(t.eventSources=a.eventSources=function(e,t,n){let r=t?t.activeRange:null;return yE(e,wE(e,n),r,!0,n)}(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=ak(a.eventStore,n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=ak(a.renderableEventStore,n.dateEnv,a.dateEnv));for(let e in i)-1===this.optionsForHandling.indexOf(e)&&s[e]===l[e]||i[e](l[e],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:o,localeDefaults:a,availableLocaleData:i,extra:s}=this.processRawCalendarOptions(e,t);QE(s);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,o,i,r.defaultRangeSeparator),c=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),u=this.buildTheme(r,o),d=this.parseToolbars(r,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:o,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:a,availableRawLocales:i.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Uw([Lw,e,t]),o=this.organizeRawLocales(n),a=o.map,i=this.buildLocale(r||o.defaultCode,a).options,s=this.buildPluginHooks(e.plugins||[],PE),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pw),Fw),zw),s.listenerRefiners),s.optionRefiners),c={},u=Uw([Lw,i,e,t]),d={},f=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,p=!1;for(let e in u)-1===this.optionsForRefining.indexOf(e)&&(u[e]===f[e]||Hw[e]&&e in f&&Hw[e](f[e],u[e]))?d[e]=h[e]:l[e]?(d[e]=l[e](u[e]),p=!0):c[e]=f[e];return p&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:o,localeDefaults:i,extra:c}}_computeCurrentViewData(e,t,n,r){let o=t.viewSpecs[e];if(!o)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:i}=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r);return QE(i),this.nowManager.handleInput(t.dateEnv,a.now),{viewSpec:o,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,o){let a=Uw([Lw,e.optionDefaults,n,r,e.optionOverrides,o]),i=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pw),Fw),zw),Vw),t.listenerRefiners),t.optionRefiners),s={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,d={};for(let e in a)a[e]===l[e]||Hw[e]&&Hw[e](a[e],l[e])?s[e]=c[e]:(a[e]===this.currentCalendarOptionsInput[e]||Hw[e]&&Hw[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):i[e]?s[e]=i[e](a[e]):d[e]=a[e],u=!0);return u&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function WE(e,t,n,r,o,a,i,s){let l=aE(t||i.defaultCode,i.map);return new ax({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function BE(e,t){return new(t.themeClasses[e.themeSystem]||lE)(e)}function VE(e){return new(e.dateProfileGeneratorClass||Ox)(e)}function UE(e,t,n){return new _E(e,t,n)}function $E(e){return Qw(e,(e=>e.ui))}function GE(e,t,n){let r={"":t};for(let t in e){let o=e[t];o.sourceId&&n[o.sourceId]&&(r[t]=n[o.sourceId])}return r}function qE(e){let{options:t}=e;return{eventUiSingleBase:Kx({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Kx({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ZE(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function YE(e){return t=e.options.businessHours,n=e,Ux(function(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[],t=t.map((e=>Object.assign(Object.assign({},lk),e))),t}(t),null,n);var t,n}function QE(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class KE extends px{render(){return fy("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((e=>this.renderWidgetGroup(e))))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let a of e){let{buttonName:e,buttonClick:i,buttonText:s,buttonIcon:l,buttonHint:c}=a;if("title"===e)o=!1,r.push(fy("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,a=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,u=[`fc-${e}-button`,n.getClass("button")];o&&u.push(n.getClass("buttonActive")),r.push(fy("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:a,"aria-pressed":o,className:u.join(" "),onClick:i},s||(l?fy("span",{className:l,role:"img"}):"")))}}return r.length>1?fy("div",{className:o&&n.getClass("buttonGroup")||""},...r):r[0]}}class JE extends px{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,a=n.sectionWidgets,i=a.center;return a.left?(o=!0,e=a.left):e=a.start,a.right?(o=!0,t=a.right):t=a.end,fy("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",i||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return fy(KE,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class XE extends px{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,mx(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return n?null!==t.availableWidth?o=t.availableWidth/n:a=1/n*100+"%":o=e.height||"",fy("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class eC extends Fk{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,o=yk(t);if(o&&n.isValidSegDownEl(e.target)){let a=Nb(e.target,".fc-event-forced-url"),i=a?a.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new hk(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi}),i&&!e.defaultPrevented&&(window.location.href=i)}},this.destroy=Pb(e.el,"click",".fc-event",this.handleSegClick)}}class tC extends Fk{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{yk(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let o;return Pb(e,"mouseover",".fc-event",((e,t)=>{if(t!==o){o=t,n(e,t);let a=e=>{o=null,r(e,t),t.removeEventListener("mouseleave",a)};t.addEventListener("mouseleave",a)}}))}(e.el,0,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:o}=r,a=yk(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new hk(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:o.viewApi})}}class nC extends hx{constructor(){super(...arguments),this.buildViewContext=ww(fx),this.buildViewPropTransformers=ww(oC),this.buildToolbarProps=ww(rC),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:Ib()},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[eC,tC].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=r,zk[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete zk[e.uid]},this.resizeRunner=new Ab((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,o=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=r.height?o=!0:null!=r.contentHeight?a=r.contentHeight:e=Math.max(r.aspectRatio,.5);let i=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),s=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return fy(dx.Provider,{value:i},fy(Hk,{unit:"day"},(r=>{let i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,r,t.viewTitle);return fy(py,null,n.header&&fy(JE,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:s},i)),fy(XE,{liquid:o,height:a,aspectRatio:e,labeledById:s},this.renderView(t),this.buildAppendContent()),n.footer&&fy(JE,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))})))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return fy(py,{},...e.pluginHooks.viewContainerAppends.map((t=>t(e))))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of o)Object.assign(r,t.transform(r,e));return fy(n.component,Object.assign({},r))}}function rC(e,t,n,r,o,a){let i=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:i.isValid&&!Ax(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function oC(e){return e.map((e=>new e))}class aC extends Bk{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;sx((()=>{Py(fy(Lk,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,o)=>(this.setClassNames(t),this.setHeight(n),fy(wx.Provider,{value:this.customContentRenderId},fy(nC,Object.assign({isHeightAuto:r,forPrint:o},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,Py(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&Cb(e.getRootNode())}(e),this.el=e,this.renderRunner=new Ab(this.handleRenderRequest),new HE({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){sx((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!tw(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Ob(this.el,"height",e)}}class iC extends tS{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(e,t){let{props:n,context:r}=this,o=[],a=_S(r.options);return e&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),fy(Sx,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},fy(MS,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))}renderHScrollLayout(e,t,n,r){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:i}=this,s=!a.forPrint&&_S(i.options),l=!a.forPrint&&NS(i.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:s,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:AS}]}),fy(Sx,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},fy(o,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function sC(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function lC(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function cC(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}const uC=Iw({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function dC(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class fC extends px{render(){let{props:e}=this;return fy(OS,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:uC,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class hC extends px{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,o=Dk(r,n.eventTimeFormat||uC,t,!0,e.defaultDisplayEventEnd);return fy(RS,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Nk(e.seg,t),defaultGenerator:pC,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function pC(e){return fy(py,null,fy("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&fy("div",{className:"fc-event-time"},e.timeText),fy("div",{className:"fc-event-title"},e.event.title||fy(py,null," ")))}class mC extends px{constructor(){super(...arguments),this.compileSegs=ww(gC)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return fy(qS,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return fy(py,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return fy("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},dC(t)?fy(hC,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Tk(t,e.todayRange))):fy(fC,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Tk(t,e.todayRange))))})))}})}}function gC(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const vC=Iw({week:"narrow"});class yC extends tS{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:Ib()},this.handleRootEl=e=>{mx(this.rootElRef,e),mx(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:o,dateEnv:a}=e,{date:i,dateProfile:s}=t;const l=t.showDayNumber&&function(e,t,n){const{start:r,end:o}=t,a=aw(o,-1),i=n.getYear(r),s=n.getMonth(r),l=n.getYear(a),c=n.getMonth(a);return!(i===l&&s===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<o.valueOf())}(i,s.currentRange,a);return fy(LS,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:bC,date:i,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},((a,s)=>fy("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&fy(VS,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Kk(e,i,"week"),date:i,defaultFormat:vC}),!s.isDisabled&&(t.showDayNumber||FS(o)||t.forceDayTop)?fy("div",{className:"fc-daygrid-day-top"},fy(a,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Kk(e,i)),{id:n.dayNumberId})})):t.showDayNumber?fy("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},fy("a",{className:"fc-daygrid-day-number"}," ")):void 0,fy("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,fy("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},fy(mC,{allDayDate:i,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),fy("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function bC(e){return e.dayNumberText||fy(py,null," ")}function wC(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function xC(e){return wC(e)+":"+e.lastCol}function kC(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let o=e.eventRange,a=o.range,i=Tx(a,{start:r[t].date,end:ow(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:i},isStart:e.isStart&&i.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&i.end.valueOf()===a.end.valueOf()})}class SC extends rS{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[aS(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:r,forceHidden:o}=this,{touchingEntry:a,touchingLevel:i,touchingLateral:s}=e;if(this.hiddenConsumes&&a){const e=aS(a);if(!o[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},a),{span:iS(a.span,t.span)});o[aS(e)]=!0,r[i][s]=e,n.push(e),this.splitEntry(a,t,n)}else o[e]=!0,n.push(a)}super.handleInvalidInsertion(e,t,n)}}class EC extends tS{constructor(){super(...arguments),this.cellElRefs=new kS,this.frameElRefs=new kS,this.fgElRefs=new kS,this.segHarnessRefs=new kS,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=e.cells.length,a=lC(e.businessHourSegs,o),i=lC(e.bgEventSegs,o),s=lC(this.getHighlightSegs(),o),l=lC(this.getMirrorSegs(),o),{singleColPlacements:c,multiColPlacements:u,moreCnts:d,moreMarginTops:f}=function(e,t,n,r,o,a,i){let s=new SC((t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return o[n]||1}));s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=a,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t],r=xC(n);null!=o[r]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let u=s.addSegs(l),d=s.toRects(),{singleColPlacements:f,multiColPlacements:h,leftoverMargins:p}=function(e,t,n){let r=function(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}(e,n.length),o=[],a=[],i=[];for(let e=0;e<n.length;e+=1){let s=r[e],l=[],c=0,u=0;for(let r of s){let o=t[r.index];l.push({seg:kC(o,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let d=[];c=0,u=0;for(let r of s){let o=t[r.index],a=r.span.end-r.span.start>1,i=r.span.start===e;u+=r.levelCoord-c,c=r.levelCoord+r.thickness,a?(u+=r.thickness,i&&d.push({seg:kC(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):i&&(d.push({seg:kC(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:u}),u=0)}o.push(l),a.push(d),i.push(u)}return{singleColPlacements:o,multiColPlacements:a,leftoverMargins:i}}(d,e,i),m=[],g=[];for(let e of c){h[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)f[t].push({seg:kC(e,t,t+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<i.length;e+=1)m.push(0);for(let t of u){let n=e[t.index],r=t.span;h[r.start].push({seg:kC(n,r.start,r.end,i),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)m[e]+=1,f[e].push({seg:kC(n,e,e+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<i.length;e+=1)g.push(p[e]);return{singleColPlacements:f,multiColPlacements:h,moreCnts:m,moreMarginTops:g}}(xk(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return fy("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:u[n],e.todayRange,h),o=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}(l[n],u),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return fy(yC,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:d[n],moreMarginTop:f[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:fy(py,null,fy(py,null,r),fy(py,null,o)),bgContent:fy(py,null,this.renderFillSegs(s[n],"highlight"),this.renderFillSegs(a[n],"non-business"),this.renderFillSegs(i[n],"bg-event")),minHeight:e.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Xw(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,o,a,i){let{context:s}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,u=1===this.props.cells.length,d=o||a||i,f=[];if(c)for(let e of t){let{seg:t}=e,{instanceId:h}=t.eventRange.instance,p=e.isVisible&&!r[h],m=e.isAbsolute,g="",v="";m&&(s.isRtl?(v=0,g=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(g=0,v=c.rights[t.firstCol]-c.rights[t.lastCol])),f.push(fy("div",{className:"fc-daygrid-event-harness"+(m?" fc-daygrid-event-harness-abs":""),key:wC(t),ref:d?null:this.segHarnessRefs.createRef(xC(t)),style:{visibility:p?"":"hidden",marginTop:m?"":e.marginTop,top:m?e.absoluteTop:"",left:g,right:v}},dC(t)?fy(hC,Object.assign({seg:t,isDragging:o,isSelected:h===l,defaultDisplayEventEnd:u},Tk(t,n))):fy(fC,Object.assign({seg:t,isDragging:o,isResizing:a,isDateSelecting:i,isSelected:h===l,defaultDisplayEventEnd:u},Tk(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let i of e){let e=n?{right:0,left:o.lefts[i.lastCol]-o.lefts[i.firstCol]}:{left:0,right:o.rights[i.firstCol]-o.rights[i.lastCol]};a.push(fy("div",{key:_k(i.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?fy(HS,Object.assign({seg:i},Tk(i,r))):BS(t)))}return fy(py,{},...a)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>r.currentMap[e.key]));if(e.length){let t=this.rootElRef.current,r=new Xk(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(r)||this.setState({framePositions:new Xk(t,e,!0,!1)})}}const o=this.state.segHeights,a=this.querySegHeights(),i=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},o),a),maxContentHeight:i?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}EC.addStateEquality({segHeights:Xw});class CC extends tS{constructor(){super(...arguments),this.splitBusinessHourSegs=ww(sC),this.splitBgEventSegs=ww(sC),this.splitFgEventSegs=ww(sC),this.splitDateSelectionSegs=ww(sC),this.splitEventDrag=ww(cC),this.splitEventResize=ww(cC),this.rowRefs=new kS}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),o=this.splitBgEventSegs(e.bgEventSegs,n),a=this.splitFgEventSegs(e.fgEventSegs,n),i=this.splitDateSelectionSegs(e.dateSelectionSegs,n),s=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return fy(Hk,{unit:"day"},((t,u)=>fy(py,null,e.cells.map(((t,d)=>fy(EC,{ref:this.rowRefs.createRef(d),key:t.length?t[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[d],eventSelection:e.eventSelection,bgEventSegs:o[d].filter(DC),fgEventSegs:a[d],dateSelectionSegs:i[d],eventDrag:s[d],eventResize:l[d],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Xk(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new Xk(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,o=n.leftToIndex(e),a=r.topToIndex(t);if(null!=a&&null!=o){let e=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:ow(n,1)}}}function DC(e){return e.eventRange.def.allDay}class TC extends tS{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,o=!0===n||!0===t;o&&!r&&(o=!1,t=null,n=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return fy("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},fy("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,fy("tbody",{role:"presentation"},fy(CC,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=function(e,t){let n;var r;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${r=t.currentDate,r.toISOString().match(/^\d{4}-\d{2}/)[0]}-01"]`)),n||(n=e.querySelector(`[data-date="${yw(t.currentDate)}"]`)),n}(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}class AC extends yS{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class _C extends tS{constructor(){super(...arguments),this.slicer=new AC,this.tableRef={current:null}}render(){let{props:e,context:t}=this;return fy(TC,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}function NC(e,t){let n=new gS(e.renderRange,t);return new vS(n,/year|month|week/.test(e.currentRangeUnit))}Eb(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var MC=sE({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends iC{constructor(){super(...arguments),this.buildDayTableModel=ww(NC),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),o=e.dayHeaders&&fy(pS,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),a=t=>fy(_C,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(o,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(o,a)}},dateProfileGeneratorClass:class extends Ox{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:o}=this;return function(e){let t,{dateEnv:n,currentRange:r}=e,{start:o,end:a}=r;if(e.snapToWeek&&(o=n.startOfWeek(o),t=n.startOfWeek(a),t.valueOf()!==a.valueOf()&&(a=rw(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(ow(r.end,-1)));a=rw(a,6-Math.ceil(iw(e,a)/7))}return{start:o,end:a}}({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class RC extends px{constructor(){super(...arguments),this.state={textId:Ib()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:o,dayDate:a,todayRange:i}=this.props,{textId:s}=this.state,l=qk(a,i),c=n.listDayFormat?t.format(a,n.listDayFormat):"",u=n.listDaySideFormat?t.format(a,n.listDaySideFormat):"",d=Object.assign({date:t.toDate(a),view:r,textId:s,text:c,sideText:u,navLinkAttrs:Kk(this.context,a),sideNavLinkAttrs:Kk(this.context,a,"day",!1)},l);return fy(xx,{elTag:"tr",elClasses:["fc-list-day",...Zk(l,e)],elAttrs:{"data-date":yw(a)},renderProps:d,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:OC,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(t=>fy("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":s},fy(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]}))))}}function OC(e){return fy(py,null,e.text&&fy("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&fy("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const jC=Iw({hour:"numeric",minute:"2-digit",meridiem:"short"});class IC extends px{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:o,eventHeaderId:a,dateHeaderId:i}=e,s=n.eventTimeFormat||jC;return fy(RS,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(e,t){let n=Nk(e,t);return fy("a",Object.assign({},n),e.eventRange.def.title)}(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),((e,n)=>fy(py,null,function(e,t,n,r,o){let{options:a}=n;if(!1!==a.displayEventTime){let i,s=e.eventRange.def,l=e.eventRange.instance,c=!1;if(s.allDay?c=!0:function(e){let t=Mx(e);return iw(t.start,t.end)>1}(e.eventRange.range)?e.isStart?i=Dk(e,t,n,null,null,l.range.start,e.end):e.isEnd?i=Dk(e,t,n,null,null,e.start,l.range.end):c=!0:i=Dk(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return fy(xx,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${o}`},renderProps:e,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:PC,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return fy("td",{className:"fc-list-event-time"},i)}return null}(r,s,t,o,i),fy("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},fy("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),fy(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${i}`}}))))}}function PC(e){return e.text}function LC(e){return e.text}function FC(e){let t=lw(e.renderRange.start),n=e.renderRange.end,r=[],o=[];for(;t<n;)r.push(t),o.push({start:t,end:ow(t,1)}),t=ow(t,1);return{dayDates:r,dayRanges:o}}function zC(e){return!1===e?null:Iw(e)}Eb(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var HC=sE({name:"@fullcalendar/list",optionRefiners:{listDayFormat:zC,listDaySideFormat:zC,noEventsClassNames:Gw,noEventsContent:Gw,noEventsDidMount:Gw,noEventsWillUnmount:Gw},views:{list:{component:class extends tS{constructor(){super(...arguments),this.computeDateVars=ww(FC),this.eventStoreToSegs=ww(this._eventStoreToSegs),this.state={timeHeaderId:Ib(),eventHeaderId:Ib(),dateHeaderIdRoot:Ib()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),o=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return fy(Sx,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},fy(xS,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return fy(xx,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:LC,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(e=>fy(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:i}=this.state,s=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return fy(Hk,{unit:"day"},((e,l)=>{let c=[];for(let n=0;n<s.length;n+=1){let u=s[n];if(u){let s=yw(t[n]),d=i+"-"+s;c.push(fy(RC,{key:s,cellId:d,dayDate:t[n],todayRange:l})),u=xk(u,r.eventOrder);for(let t of u)c.push(fy(IC,Object.assign({key:s+":"+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:d},Tk(t,l,e))))}}return fy("table",{className:"fc-list-table "+n.getClass("table")},fy("thead",null,fy("tr",null,fy("th",{scope:"col",id:o},r.timeHint),fy("th",{scope:"col","aria-hidden":!0}),fy("th",{scope:"col",id:a},r.eventHint))),fy("tbody",null,c))}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(gk(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,o,{dateEnv:a}=this.context,{nextDayThreshold:i}=this.context.options,s=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if(r=Tx(s,t[n]),r&&(o={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===s.end.valueOf(),dayIndex:n},c.push(o),!o.isEnd&&!l&&n+1<t.length&&s.end<a.add(t[n+1].start,i))){o.end=s.end,o.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});function WC(e,t,n){return Sc.fromObject({year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]},{locale:n,zone:t})}function BC(e){let t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){let e=BC(t[2]);return{head:t[1],middle:e,tail:t[3],whole:t[1]+e.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function VC(e,t,n,r){if(e.middle){let o=t(e.head),a=VC(e.middle,t,n,r),i=t(e.tail),s=n(e.head),l=VC(e.middle,t,n,r),c=n(e.tail);if(o===s&&i===c)return o+(a===l?a:a+r+l)+i}let o=t(e.whole),a=n(e.whole);return o===a?o:o+r+a}var UC=sE({name:"@fullcalendar/luxon3",cmdFormatter:function(e,t){let n=BC(e);if(t.end){let e=WC(t.start.array,t.timeZone,t.localeCodes[0]),r=WC(t.end.array,t.timeZone,t.localeCodes[0]);return VC(n,e.toFormat.bind(e),r.toFormat.bind(r),t.defaultSeparator)}return WC(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(n.whole)},namedTimeZonedImpl:class extends nS{offsetForArray(e){return WC(e,this.timeZoneName).offset}timestampToArray(e){return[(t=Sc.fromMillis(e,{zone:this.timeZoneName})).year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond];var t}}});const $C=parseInt(String(a.version).split(".")[0])<18;class GC extends a.Component{constructor(){super(...arguments),this.elRef=(0,a.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame((()=>{this.doResize()})))}}render(){const e=[];for(const t of this.state.customRenderingMap.values())e.push(a.createElement(qC,{key:t.id,customRendering:t}));return a.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new eE;let t;this.handleCustomRendering=e.handle.bind(e),this.calendar=new aC(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",(()=>{(0,g.flushSync)((()=>{}))})),e.subscribe((e=>{const n=Date.now(),r=!t;($C||r||this.isUpdating||this.isUnmounting||n-t<100?ZC:g.flushSync)((()=>{this.setState({customRenderingMap:e},(()=>{t=n,r?this.doResize():this.requestResize()}))}))}))}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}GC.act=ZC;class qC extends a.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,g.createPortal)(n,e.containerEl)}}function ZC(e){e()}class YC extends $k{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?"background"===(t=e).ui.display||"inverse-background"===t.ui.display?["timed","allDay"]:["allDay"]:["timed"];var t}}const QC=Iw({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function KC(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return fy(dx.Consumer,null,(n=>{if(!e.isLabeled)return fy("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:o,viewApi:a}=n,i=null==o.slotLabelFormat?QC:Array.isArray(o.slotLabelFormat)?Iw(o.slotLabelFormat[0]):Iw(o.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,i)};return fy(xx,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:JC,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(e=>fy("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},fy(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function JC(e){return e.text}class XC extends px{render(){return this.props.slatMetas.map((e=>fy("tr",{key:e.key},fy(KC,Object.assign({},e)))))}}const eD=Iw({week:"short"});class tD extends tS{constructor(){super(...arguments),this.allDaySplitter=new YC,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,o=r.renderRange,a=1===iw(o.start,o.end)?Kk(this.context,o.start,"week"):{};return n.weekNumbers&&"day"===e?fy(VS,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:eD},(e=>fy("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},fy(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a})))):fy("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},fy("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return fy(xx,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:nD,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(t=>fy("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},fy(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:o}=this,a=[],i=_S(r.options);return e&&a.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:fy("tr",{role:"presentation",className:"fc-scrollgrid-section"},fy("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),fy(Sx,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},fy(MS,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,t,n,r,o,a,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{context:l,props:c}=this,u=!c.forPrint&&_S(l.options),d=!c.forPrint&&NS(l.options),f=[];e&&f.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>fy("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>fy("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:fy("tr",{role:"presentation",className:"fc-scrollgrid-section"},fy("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let h=l.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(l.options.expandRows),chunks:[{key:"axis",content:e=>fy("div",{className:"fc-timegrid-axis-chunk"},fy("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,fy("tbody",null,fy(XC,{slatMetas:a}))),fy("div",{className:"fc-timegrid-now-indicator-container"},fy(Hk,{unit:h?"minute":"day"},(e=>{let t=h&&i&&i.safeComputeTop(e);return"number"==typeof t?fy(IS,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),d&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:AS},{key:"cols",content:AS}]}),fy(Sx,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},fy(s,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return!0!==e&&!0!==t||(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function nD(e){return e.text}class rD{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(Ax(t.currentRange,e)){let n=lw(e),r=e.valueOf()-n.valueOf();if(r>=Jb(t.slotMinTime)&&r<Jb(t.slotMaxTime))return this.computeTimeTop(Zb(r))}return null}computeDateTop(e,t){return t||(t=lw(e)),this.computeTimeTop(Zb(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:o}=this,a=r.els.length,i=(e.milliseconds-Jb(o.slotMinTime))/Jb(this.slotDuration);return i=Math.max(0,i),i=Math.min(a,i),t=Math.floor(i),t=Math.min(t,a-1),n=i-t,r.tops[t]+r.getHeight(t)*n}}class oD extends px{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return fy("tbody",null,e.slatMetas.map(((o,a)=>{let i={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi};return fy("tr",{key:o.key,ref:r.createRef(o.key)},e.axis&&fy(KC,Object.assign({},o)),fy(xx,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:i,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class aD extends px{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new kS}render(){let{props:e,context:t}=this;return fy("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},fy("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,fy(oD,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;var n;t.onCoords&&null!==t.clientWidth&&this.rootElRef.current.offsetHeight&&t.onCoords(new rD(new Xk(this.rootElRef.current,(n=this.slatElRefs.currentMap,t.slatMetas.map((e=>n[e.key]))),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function iD(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function sD(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}class lD extends px{render(){let{props:e}=this;return fy(qS,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>yD(e.hiddenSegs,e),defaultGenerator:cD,forceTimed:!0},(e=>fy(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function cD(e){return e.shortText}function uD(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:o}=e,a=r,i=[];for(;a<o;)i.push(t(n,a)),a+=1;return i.sort(dD),[i.map(fD),i[0][1]]}function dD(e,t){return t[1]-e[1]}function fD(e){return e[0]}function hD(e,t){const n={};return(...r)=>{let o=e(...r);return o in n?n[o]:n[o]=t(...r)}}function pD(e,t,n=null,r=0){let o=[];if(n)for(let a=0;a<e.length;a+=1){let i=e[a],s=n.computeDateTop(i.start,t),l=Math.max(s+(r||0),n.computeDateTop(i.end,t));o.push({start:Math.round(s),end:Math.round(l)})}return o}const mD=Iw({hour:"numeric",minute:"2-digit",meridiem:!1});class gD extends px{render(){return fy(OS,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:mD}))}}class vD extends px{constructor(){super(...arguments),this.sortEventSegs=ww(xk)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,o=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},i=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return fy(LS,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},(t=>fy("div",{className:"fc-timegrid-col-frame"},fy("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),fy("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,a,!1,!1,!1)),fy("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),fy("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),FS(n)&&fy(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(e,t,n,r,o,a){let{props:i}=this;return i.forPrint?yD(e,i):this.renderPositionedFgSegs(e,t,n,r,o,a)}renderPositionedFgSegs(e,t,n,r,o,a){let{eventMaxStack:i,eventShortHeight:s,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:u,slatCoords:d,eventSelection:f,todayRange:h,nowDate:p}=this.props,m=n||r||o,g=pD(e,u,d,c),{segPlacements:v,hiddenGroups:y}=function(e,t,n,r){let o=[],a=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?o.push({index:n,thickness:1,span:r}):a.push(e[n])}let{segRects:i,hiddenGroups:s}=function(e,t,n){let r=new rS;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);let o=function(e){let t=[];for(let o of e){let e=[],a={span:o.span,entries:[o]};for(let o of t)iS(o.span,a.span)?a={entries:o.entries.concat(a.entries),span:(n=o.span,r=a.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(o);e.push(a),t=e}var n,r;return t}(r.addSegs(e)),a=function(e){const{entriesByLevel:t}=e,n=hD(((e,t)=>e+":"+t),((r,o)=>{let a=function(e,t,n){let{levelCoords:r,entriesByLevel:o}=e,a=o[t][n],i=r[t]+a.thickness,s=r.length,l=t;for(;l<s&&r[l]<i;l+=1);for(;l<s;l+=1){let e,t=o[l],n=lS(t,a.span.start,oS),r=n[0]+n[1],i=r;for(;(e=t[i])&&e.span.start<a.span.end;)i+=1;if(r<i)return{level:l,lateralStart:r,lateralEnd:i}}return null}(e,r,o),i=uD(a,n),s=t[r][o];return[Object.assign(Object.assign({},s),{nextLevelNodes:i[0]}),s.thickness+i[1]]}));return uD(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);return a=function(e){const t=hD(((e,t,n)=>aS(e)),((e,n,r)=>{let o,{nextLevelNodes:a,thickness:i}=e,s=i+r,l=i/s,c=[];if(a.length)for(let e of a)if(void 0===o){let r=t(e,n,s);o=r[0],c.push(r[1])}else{let n=t(e,o,0);c.push(n[1])}else o=1;let u=(o-n)*l;return[o-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:c})]}));return e.map((e=>t(e,0,0)[1]))}(a),{segRects:function(e){let t=[];const n=hD(((e,t,n)=>aS(e)),((e,n,o)=>{let a=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:o,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,o+1)+1}));function r(e,t,r){let o=0;for(let a of e)o=Math.max(n(a,t,r),o);return o}return r(e,0,0),t}(a),hiddenGroups:o}}(o,n,r),l=[];for(let t of i)l.push({seg:e[t.index],rect:t});for(let e of a)l.push({seg:e,rect:null});return{segPlacements:l,hiddenGroups:s}}(e,g,l,i);return fy(py,null,this.renderHiddenGroups(y,e),v.map((e=>{let{seg:i,rect:l}=e,c=i.eventRange.instance.instanceId,u=m||Boolean(!t[c]&&l),d=bD(l&&l.span),g=!m&&l?this.computeSegHStyle(l):{left:0,right:0},v=Boolean(l)&&l.stackForward>0,y=Boolean(l)&&l.span.end-l.span.start<s;return fy("div",{className:"fc-timegrid-event-harness"+(v?" fc-timegrid-event-harness-inset":""),key:a||c,style:Object.assign(Object.assign({visibility:u?"":"hidden"},d),g)},fy(gD,Object.assign({seg:i,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:c===f,isShort:y},Tk(i,h,p))))})))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:i,eventDrag:s,eventResize:l}=this.props;return fy(py,null,e.map((e=>{let c=bD(e.span),u=(d=e.entries,f=t,d.map((e=>f[e.index])));var d,f;return fy(lD,{key:vw(QS(u)),hiddenSegs:u,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:i,eventDrag:s,eventResize:l})})))}renderFillSegs(e,t){let{props:n,context:r}=this,o=pD(e,n.date,n.slatCoords,r.options.eventMinHeight).map(((r,o)=>{let a=e[o];return fy("div",{key:_k(a.eventRange),className:"fc-timegrid-bg-harness",style:bD(r)},"bg-event"===t?fy(HS,Object.assign({seg:a},Tk(a,n.todayRange,n.nowDate))):BS(t))}));return fy(py,null,o)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map(((e,r)=>fy(IS,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n}))):null}computeSegHStyle(e){let t,n,{isRtl:r,options:o}=this.context,a=o.slotEventOverlap,i=e.levelCoord,s=e.levelCoord+e.thickness;a&&(s=Math.min(1,i+2*(s-i))),r?(t=1-s,n=i):(t=i,n=1-s);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return a&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function yD(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:o,eventResize:a}){let i=(o?o.affectedInstances:null)||(a?a.affectedInstances:null)||{};return fy(py,null,e.map((e=>{let o=e.eventRange.instance.instanceId;return fy("div",{key:o,style:{visibility:i[o]?"hidden":""}},fy(gD,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},Tk(e,t,n))))})))}function bD(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class wD extends px{constructor(){super(...arguments),this.splitFgEventSegs=ww(iD),this.splitBgEventSegs=ww(iD),this.splitBusinessHourSegs=ww(iD),this.splitNowIndicatorSegs=ww(iD),this.splitDateSelectionSegs=ww(iD),this.splitEventDrag=ww(sD),this.splitEventResize=ww(sD),this.rootElRef={current:null},this.cellElRefs=new kS}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,o=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r);return fy("div",{className:"fc-timegrid-cols",ref:this.rootElRef},fy("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,fy("tbody",{role:"presentation"},fy("tr",{role:"row"},e.axis&&fy("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},fy("div",{className:"fc-timegrid-col-frame"},fy("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&fy(IS,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map(((t,n)=>fy(vD,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:o[n],bgEventSegs:a[n],businessHourSegs:i[n],nowIndicatorSegs:s[n],dateSelectionSegs:l[n],eventDrag:c[n],eventResize:u[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;var t;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new Xk(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map((e=>t[e.key]))),!0,!1))}}class xD extends tS{constructor(){super(...arguments),this.processSlotOptions=ww(kD),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return fy("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},fy(aD,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),fy(wD,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:i}=this.state,{snapDuration:s,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=o.leftToIndex(e),u=i.positions.topToIndex(t);if(null!=c&&null!=u){let e=this.props.cells[c],r=i.positions.tops[u],d=i.positions.getHeight(u),f=(t-r)/d,h=u*l+Math.floor(f*l),p=this.props.cells[c].date,m=Qb(a.slotMinTime,function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}(s,h)),g=n.add(p,m),v=n.add(g,s);return{dateProfile:a,dateSpan:Object.assign({range:{start:g,end:v},allDay:!1},e.extraDateSpan),dayEl:o.els[c],rect:{left:o.lefts[c],right:o.rights[c],top:r,bottom:r+d},layer:0}}return null}}function kD(e,t){let n=t||e,r=Xb(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class SD extends yS{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let o=Tx(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n}}class ED extends tS{constructor(){super(...arguments),this.buildDayRanges=ww(CD),this.slicer=new SD,this.timeColsRef={current:null}}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:o,nextDayThreshold:a}=t.options,i=this.buildDayRanges(r,n,t.dateEnv);return fy(Hk,{unit:o?"minute":"day"},((s,l)=>fy(xD,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,i),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:s,nowIndicatorSegs:o&&this.slicer.sliceNowDate(s,n,a,t,i),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))))}}function CD(e,t,n){let r=[];for(let o of e.headerDates)r.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)});return r}const DD=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function TD(e,t,n,r,o){let a=new Date(0),i=e,s=Zb(0),l=n||function(e){let t,n,r;for(t=DD.length-1;t>=0;t-=1)if(n=Zb(DD[t]),r=Xb(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;Jb(i)<Jb(t);){let e=o.add(a,i),t=null!==Xb(s,l);c.push({date:e,time:i,key:e.toISOString(),isoTimeStr:(u=e,Bb(u.getUTCHours(),2)+":"+Bb(u.getUTCMinutes(),2)+":"+Bb(u.getUTCSeconds(),2)),isLabeled:t}),i=Qb(i,r),s=Qb(s,r)}var u;return c}function AD(e,t){let n=new gS(e.renderRange,t);return new vS(n,!1)}Eb('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var _D=sE({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends tD{constructor(){super(...arguments),this.buildTimeColsModel=ww(AD),this.buildSlatMetas=ww(TD)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:o}=r,a=this.buildTimeColsModel(o,n),i=this.allDaySplitter.splitProps(r),s=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:l}=e,c=!l,u=l,d=e.dayHeaders&&fy(pS,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),f=!1!==e.allDaySlot&&(t=>fy(_C,Object.assign({},i.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),h=t=>fy(ED,Object.assign({},i.timed,{dayTableModel:a,dateProfile:o,axis:c,slotDuration:e.slotDuration,slatMetas:s,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(d,f,h,a.colCnt,l,s,this.state.slatCoords):this.renderSimpleLayout(d,f,h)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const ND={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},MD=(("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en")||"").split("_")[0]||"en",RD=iy.some((e=>e.code===MD));let OD=RD?MD:"en";try{new Intl.DateTimeFormat(OD)}catch{OD="en"}function jD({calendarRef:e,events:t,view:n,timezone:r,setCurrentDate:o,lastRangeRef:a,loadEventsForView:i,selectedEvent:s,setSelectedEvent:l,anchorPos:c,setAnchorPos:u,ignoreNextOutsideClick:f,calendar:h,isEmpty:p,eventColor:m,timeFormat:g,startday:v,initialDate:y}){const b=/^en/i.test(OD),w= "24"===g?{hour:"2-digit",minute:"2-digit",hour12:!1}:{hour:"numeric",minute:"2-digit",hour12:!0,...b&&{omitZeroMinute:!0,meridiem:"short"}};return p?(0,d.jsx)("div",{className:"w-full",children:(0,d.jsx)("div",{className:"grid grid-cols-7 gap-2",children:Array.from({length:35}).map(((e,t)=>(0,d.jsx)(pp,{className:"h-24 w-full rounded-md"},t)))})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(GC,{ref:e,locales:iy,locale:OD,plugins:[MC,_D,HC,UC],events:t,initialView:n,initialDate:y,weekends:!0,timeZone:r,firstDay:ND[v||h?.startday||"sunday"],eventColor:m,headerToolbar:!1,contentHeight:"auto",expandRows:!0,height:"auto",eventTimeFormat:w,dayHeaderContent:e=>{const{date:t,view:n}=e,r=t.toLocaleDateString(OD,{weekday:"short"});if(n.type.startsWith("timeGrid")){const e=t.getDate();return(0,d.jsxs)("div",{className:"flex flex-col items-center leading-tight",children:[(0,d.jsx)("span",{children:r}),(0,d.jsx)("span",{className:"font-semibold text-base",children:e})]})}return(0,d.jsx)("span",{children:r})},datesSet:({start:e,end:t,view:n})=>{const r=`${e.toISOString()}_${t.toISOString()}`;a.current!==r&&(a.current=r,i(e,t),o(n.currentStart))},eventDidMount:e=>{e.el.setAttribute("tabindex","0"),e.el.setAttribute("role","button"),e.el.setAttribute("aria-label",`${e.event.title}, starts ${e.event.start.toLocaleString()}`),e.el.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.el.click())}))},eventClick:e=>{e.jsEvent.preventDefault(),e.jsEvent.stopPropagation();const t={...e.event.extendedProps,title:e.event.title,start:e.event.startStr,end:e.event.endStr,allDay:e.event.allDay,url:e.event.url},n=e.el.getBoundingClientRect(),r=document.querySelector(".fc").getBoundingClientRect(),o=n.bottom-r.top+6;let a;a=n.right-r.left+370>r.width?n.right-r.left-370:n.left-r.left,window.innerWidth<768?u({x:0,y:o}):u({x:Math.max(0,a),y:o}),l(t)}}),s&&c&&(0,d.jsx)(Gv,{event:s,anchor:c,onClose:()=>{l(null),u(null)},ignoreNextOutsideClick:f,timezone:r})]})}var ID=a.forwardRef(((e,t)=>{const{ratio:n=1,style:r,...o}=e;return(0,d.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:100/n+"%"},"data-radix-aspect-ratio-wrapper":"",children:(0,d.jsx)(x.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})}));ID.displayName="AspectRatio";const PD=ID,LD=sa("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),FD=sa("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);function zD({events:e,showImage:t,showDescription:n,showLocation:r,borderSize:o,borderStyle:a,timeFormat:i,loading:s}){if(null===e||s)return(0,d.jsx)("div",{role:"status","aria-live":"polite","aria-busy":"true",className:"eventkoi-no-events py-8",children:"Loading events…"});if(0===e.length)return(0,d.jsx)("div",{role:"status","aria-live":"polite",className:"eventkoi-no-events py-8",children:eventkoi_params.no_events});const l=new URLSearchParams(window.location.search).get("tz");return(0,d.jsx)("ul",{className:"grid list-none m-0 p-0",role:"list",children:e.map((e=>{var s;const c=Ac(l||e?.timezone||window.eventkoi_params?.timezone_string||"UTC"),u=null!==(s=e.locations?.[0])&&void 0!==s?s:{},f="virtual"===u.type||"online"===u.type,h="inperson"===u.type||"physical"===u.type,p=e.location_line,m=f&&u.virtual_url,g=h&&u.address1;return(0,d.jsxs)("li",{className:"flex gap-8 py-8 border-border min-w-0",style:{borderBottomWidth:o,borderBottomStyle:a},children:["yes"===t&&(0,d.jsx)("div",{className:Su("ek-image min-w-[140px]",!e.thumbnail&&"hidden md:flex"),children:(0,d.jsx)(PD,{ratio:1.5,children:e.thumbnail?(0,d.jsx)("div",{className:"h-full w-full flex items-center justify-center relative",children:(0,d.jsx)("a",{href:e.url,className:"h-full w-full rounded-xl block","aria-hidden":"true",tabIndex:-1,children:(0,d.jsx)("img",{src:e.thumbnail,className:"h-full w-full rounded-xl",alt:"","aria-hidden":"true"})})}):(0,d.jsxs)("div",{className:"h-full w-full rounded-xl border border-input flex items-center justify-center relative bg-border",children:[(0,d.jsx)(FD,{className:"w-6 h-6 text-muted-foreground/40","aria-hidden":"true"}),(0,d.jsx)("span",{className:"sr-only",children:"No event image"})]})})}),(0,d.jsxs)("div",{className:"ek-meta flex flex-col gap-2 grow min-w-0",children:[(0,d.jsx)("div",{className:"flex md:hidden text-muted-foreground",role:"group","aria-hidden":"true","aria-label":`Event time: ${Cc(e,c,i)}`,children:Cc(e,c,i)}),(0,d.jsx)("h3",{className:"m-0",children:(0,d.jsxs)("a",{href:e.url,className:"no-underline",children:[e.title,(0,d.jsx)("span",{className:"sr-only",children:" — View event details"})]})}),"yes"===n&&e.description&&(0,d.jsx)("p",{className:"text-base text-muted-foreground line-clamp-2 m-0",children:e.description}),(()=>{if(!r)return null;if(m){const e=u.link_text||u.virtual_url;return(0,d.jsxs)("a",{href:u.virtual_url,className:"flex gap-2 text-muted-foreground/90 text-sm underline underline-offset-4 truncate",title:e,target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(LD,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"}),e]})}if(g)return(0,d.jsxs)("span",{className:"flex text-muted-foreground/90 text-sm gap-2",children:[(0,d.jsx)(Fv,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"}),e.location_line]});if(p){const t="virtual"===e.type?(0,d.jsx)(LD,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"}):(0,d.jsx)(Fv,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"});return(0,d.jsxs)("span",{className:"flex text-muted-foreground/90 text-sm gap-2",children:[t,p]})}return null})()]}),(0,d.jsx)("div",{className:"hidden md:block ml-auto text-[14px] text-muted-foreground min-w-[200px] text-right",role:"group","aria-label":`Event time: ${Cc(e,c,i)}`,children:Cc(e,c,i)})]},`event-${e.id}`)}))})}function HD({events:e,timezone:t,setTimezone:n,timeFormat:r,setTimeFormat:o,showImage:a,showDescription:i,showLocation:s,borderStyle:l,borderSize:c,loading:u}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"flex justify-end pt-4 text-sm text-foreground",children:(0,d.jsx)(xv,{timezone:t,setTimezone:n,timeFormat:r,setTimeFormat:o})}),(0,d.jsx)(zD,{events:e,showImage:a,showDescription:i,showLocation:s,borderStyle:l,borderSize:c,timeFormat:r,loading:u})]})}const WD=window.wp.apiFetch;var BD=o.n(WD);function VD({id:e,calendars:t,display:n,timeframe:r,context:o,defaultMonth:i,defaultYear:s,calendarRef:l}){const[c,u]=(0,a.useState)({}),[d,f]=(0,a.useState)([]),[h,p]=(0,a.useState)(null),[m,g]=(0,a.useState)(),[v,y]=(0,a.useState)(null),[b,w]=(0,a.useState)(null),[x,k]=(0,a.useState)(!1),S=(0,a.useRef)(null),E=(0,a.useRef)(!1),C=t||e,D=async()=>{try{const e=new URLSearchParams({id:C,display:n}),t=await BD()({path:`${eventkoi_params.api}/calendar_events?${e.toString()}`,method:"get"});p(t.events),console.log("EK: loaded all events for search")}catch(e){console.error("Failed to load all events",e)}};return(0,a.useEffect)((()=>{(async()=>{try{const e=await BD()({path:`${eventkoi_params.api}/calendar_events?id=${C}&display=${n}&initial=true`,method:"get"});u(e.calendar);const t="week"===r||"week"===e.calendar.timeframe?"timeGridWeek":"dayGridMonth";g(t);const a=function({context:e,defaultMonth:t,defaultYear:n,calendar:r}){const o=Sc.utc(),a=(e,t)=>{const n=parseInt(e,10);return Number.isFinite(n)?n:t},i=e=>({january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12}[e?.toLowerCase()]||null);if("block"===e){const e=i(t),r=n&&""!==n?a(n,o.year):o.year;return e?Sc.utc(r,e,1).toISODate():r!==o.year?Sc.utc(r,o.month,1).toISODate():Sc.utc(o.year,o.month,1).toISODate()}const s=i(r?.default_month),l=r?.default_year&&""!==r.default_year?a(r.default_year,o.year):o.year;return s?Sc.utc(l,s,1).toISODate():r?.default_year&&l!==o.year?Sc.utc(l,o.month,1).toISODate():Sc.utc(o.year,o.month,1).toISODate()}({context:o,defaultMonth:i,defaultYear:s,calendar:e.calendar});y(a),w(a),console.log(a),console.log("EK: initial load for calendar view")}catch(e){console.error("Failed to load initial calendar",e)}})(),"list"===n&&D()}),[]),{calendar:c,events:d,allEvents:h,view:m,setView:g,currentDate:v,setCurrentDate:y,initialDate:b,loading:x,loadEventsForView:async(e,t)=>{try{k(!0);const r=new URLSearchParams({id:C,display:n});e&&r.set("start",e.toISOString()),t&&r.set("end",t.toISOString());const o=await BD()({path:`${eventkoi_params.api}/calendar_events?${r.toString()}`,method:"get"});f(o.events),u(o.calendar),console.log("EK: loaded events for view"),E.current||(E.current=!0,D())}catch(e){console.error("Failed to load events for view",e)}finally{k(!1)}},lastRangeRef:S}}function UD(e){const{display:t,id:n,calendars:r,showImage:o,showDescription:i,showLocation:s,borderStyle:l,borderSize:c,startday:u}=e,f=(0,a.useRef)(null),{calendar:h,events:p,allEvents:m,view:g,setView:v,currentDate:y,setCurrentDate:b,initialDate:w,loadEventsForView:x,lastRangeRef:k}=VD({...e,calendarRef:f}),{selectedEvent:S,setSelectedEvent:E,anchorPos:C,setAnchorPos:D,ignoreNextOutsideClick:T}=function(){const[e,t]=(0,a.useState)(null),[n,r]=(0,a.useState)(null),o=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{function e(e){if(o.current)return void(o.current=!1);const n=e.target.closest("[data-event-popover]"),a=e.target.closest("[data-radix-popper-content-wrapper]"),i="true"===document.body.getAttribute("data-calendar-menu-open"),s="true"===document.body.getAttribute("data-share-modal-open");n||a||i||s||(t(null),r(null))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]),{selectedEvent:e,setSelectedEvent:t,anchorPos:n,setAnchorPos:r,ignoreNextOutsideClick:o}}(),[A,_]=(0,a.useState)(""),[N,M]=(0,a.useState)(Ac(eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC")),[R,O]=(0,a.useState)("24"===eventkoi_params?.time_format?"24":"12"),j=!h||Array.isArray(h)&&0===h.length||!Array.isArray(h)&&0===Object.keys(h).length;return"list"===t?(0,d.jsx)(HD,{events:m,timezone:N,setTimezone:M,timeFormat:R,setTimeFormat:O,showImage:o,showDescription:i,showLocation:s,borderStyle:l,borderSize:c}):(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(Xg,{calendar:h,calendarApi:f.current?.getApi(),currentDate:y,setCurrentDate:b,view:g,setView:v,events:m,timezone:N,timeFormat:R,search:A,setSearch:_}),(0,d.jsx)("div",{className:"flex justify-start md:justify-end py-4 text-sm text-foreground",children:j?(0,d.jsx)(pp,{className:"h-5 w-40 rounded-md"}):(0,d.jsx)(xv,{timezone:N,setTimezone:M,timeFormat:R,setTimeFormat:O})}),(0,d.jsx)(jD,{calendarRef:f,events:p,view:g,timezone:N,setCurrentDate:b,lastRangeRef:k,loadEventsForView:x,selectedEvent:S,setSelectedEvent:E,anchorPos:C,setAnchorPos:D,ignoreNextOutsideClick:T,calendar:h,isEmpty:j,eventColor:e.color||h?.color,timeFormat:R,startday:u,initialDate:w})]})}document.querySelectorAll('[id^="eventkoi-calendar-"]').forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(UD,{id:e.getAttribute("data-calendar-id"),calendars:e.getAttribute("data-calendars"),display:e.getAttribute("data-display"),startday:e.getAttribute("data-startday"),timeframe:e.getAttribute("data-timeframe"),color:e.getAttribute("data-color"),showImage:e.getAttribute("data-show-image"),showLocation:e.getAttribute("data-show-location"),showDescription:e.getAttribute("data-show-description"),borderStyle:e.getAttribute("data-border-style"),borderSize:e.getAttribute("data-border-size"),context:e.getAttribute("data-context"),defaultMonth:e.getAttribute("data-default-month"),defaultYear:e.getAttribute("data-default-year")}))}));var $D=o(17);function GD(){return GD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GD.apply(null,arguments)}function qD(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ZD(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}const YD="NOT_LOADED",QD="LOADED",KD="AUTH_FAILURE";class JD{static async load(e,t){var n;const r=e.libraries?e.libraries.split(","):[],o=this.serializeParams(e);this.listeners.push(t),null!=(n=window.google)&&null!=(n=n.maps)&&n.importLibrary?(this.serializedApiParams||(this.loadingStatus=QD),this.notifyLoadingStatusListeners()):(this.serializedApiParams=o,this.initImportLibrary(e)),this.serializedApiParams&&this.serializedApiParams!==o&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const a=["maps",...r];await Promise.all(a.map((e=>google.maps.importLibrary(e))))}static serializeParams(e){return[e.v,e.key,e.language,e.region,e.authReferrerPolicy,e.solutionChannel].join("/")}static initImportLibrary(e){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary)return void console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");let t=null;const n=()=>t||(t=new Promise(((t,n)=>{var r;const o=document.createElement("script"),a=new URLSearchParams;for(const[t,n]of Object.entries(e)){const e=t.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase()));a.set(e,String(n))}a.set("loading","async"),a.set("callback","__googleMapsCallback__"),o.async=!0,o.src="https://maps.googleapis.com/maps/api/js?"+a.toString(),o.nonce=(null==(r=document.querySelector("script[nonce]"))?void 0:r.nonce)||"",o.onerror=()=>{this.loadingStatus="FAILED",this.notifyLoadingStatusListeners(),n(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=QD,this.notifyLoadingStatusListeners(),t()},window.gm_authFailure=()=>{this.loadingStatus=KD,this.notifyLoadingStatusListeners()},this.loadingStatus="LOADING",this.notifyLoadingStatusListeners(),document.head.append(o)})),t);google.maps.importLibrary=e=>n().then((()=>google.maps.importLibrary(e)))}static notifyLoadingStatusListeners(){for(const e of this.listeners)e(this.loadingStatus)}}JD.loadingStatus=YD,JD.serializedApiParams=void 0,JD.listeners=[];const XD=["onLoad","onError","apiKey","version","libraries"],eT=["children"],tT=a.createContext(null),nT=e=>{const{children:t}=e,n=qD(e,eT),{mapInstances:r,addMapInstance:o,removeMapInstance:i,clearMapInstances:s}=function(){const[e,t]=(0,a.useState)({});return{mapInstances:e,addMapInstance:(e,n="default")=>{t((t=>GD({},t,{[n]:e})))},removeMapInstance:(e="default")=>{t((t=>qD(t,[e].map(ZD))))},clearMapInstances:()=>{t({})}}}(),{status:l,loadedLibraries:c,importLibrary:u}=function(e){const{onLoad:t,onError:n,apiKey:r,version:o,libraries:i=[]}=e,s=qD(e,XD),[l,c]=(0,a.useState)(JD.loadingStatus),[u,d]=(0,a.useReducer)(((e,t)=>e[t.name]?e:GD({},e,{[t.name]:t.value})),{}),f=(0,a.useMemo)((()=>null==i?void 0:i.join(",")),[i]),h=(0,a.useMemo)((()=>JSON.stringify(GD({apiKey:r,version:o},s))),[r,o,s]),p=(0,a.useCallback)((async e=>{var t;if(u[e])return u[e];if(null==(t=google)||null==(t=t.maps)||!t.importLibrary)throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const n=await window.google.maps.importLibrary(e);return d({name:e,value:n}),n}),[u]);return(0,a.useEffect)((()=>{(async()=>{try{const e=GD({key:r},s);o&&(e.v=o),(null==f?void 0:f.length)>0&&(e.libraries=f),(void 0===e.channel||e.channel<0||e.channel>999)&&delete e.channel,void 0===e.solutionChannel?e.solutionChannel="GMP_visgl_rgmlibrary_v1_default":""===e.solutionChannel&&delete e.solutionChannel,await JD.load(e,(e=>c(e)));for(const e of["core","maps",...i])await p(e);t&&t()}catch(e){n?n(e):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",e)}})()}),[r,f,h]),{status:l,loadedLibraries:u,importLibrary:p}}(n),d=(0,a.useMemo)((()=>({mapInstances:r,addMapInstance:o,removeMapInstance:i,clearMapInstances:s,status:l,loadedLibraries:c,importLibrary:u})),[r,o,i,s,l,c,u]);return a.createElement(tT.Provider,{value:d},t)};function rT(e,t,n){const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(aT.includes(e)){const e=r,n=t.getCenter(),o=t.getZoom(),a=t.getHeading()||0,i=t.getTilt()||0,s=t.getBounds();return n&&s&&Number.isFinite(o)||console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),e.detail={center:(null==n?void 0:n.toJSON())||{lat:0,lng:0},zoom:o||0,heading:a,tilt:i,bounds:(null==s?void 0:s.toJSON())||{north:90,east:180,south:-90,west:-180}},e}if(iT.includes(e)){var o;if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const e=r;return e.domEvent=n.domEvent,e.stoppable=!0,e.stop=()=>n.stop(),e.detail={latLng:(null==(o=n.latLng)?void 0:o.toJSON())||null,placeId:n.placeId},e}return r}const oT={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},aT=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],iT=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],sT=Object.keys(oT);const lT=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function cT(){var e;return(null==(e=(0,a.useContext)(tT))?void 0:e.status)||YD}function uT(e){return function(e){return!(!e||"object"!=typeof e)&&"lat"in e&&"lng"in e&&Number.isFinite(e.lat)&&Number.isFinite(e.lng)}(e)?e:e.toJSON()}const dT=()=>a.createElement("div",{style:{position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"}},a.createElement("h2",null,"Error: AuthFailure"),a.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",a.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."));function fT(){return cT()===QD}const hT=["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"],pT=["padding"];class mT{static has(e){return this.entries[e]&&this.entries[e].length>0}static pop(e){return this.entries[e]&&this.entries[e].pop()||null}static push(e,t){this.entries[e]||(this.entries[e]=[]),this.entries[e].push(t)}}function gT(e,t){const n=fT(),[r,o]=(0,a.useState)(null),[i,s]=function(){const[e,t]=(0,a.useState)(null);return[e,(0,a.useCallback)((e=>t(e)),[t])]}(),l=function(e){const t=function(){const[,e]=(0,a.useReducer)((e=>e+1),0);return e}(),n=(0,a.useRef)({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return(0,a.useEffect)((()=>{if(!e)return;const r=google.maps.event.addListener(e,"bounds_changed",(()=>{!function(e,t){const n=e.getCenter(),r=e.getZoom(),o=e.getHeading()||0,a=e.getTilt()||0,i=e.getBounds();n&&i&&Number.isFinite(r)||console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(null==n?void 0:n.toJSON())||{lat:0,lng:0},zoom:r||0,heading:o,tilt:a})}(e,n),t()}));return()=>r.remove()}),[e,t]),n}(r),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:h,defaultTilt:p,reuseMaps:m,renderingType:g,colorScheme:v}=e,y=qD(e,hT),b=void 0!==e.zoom||void 0!==e.defaultZoom,w=void 0!==e.center||void 0!==e.defaultCenter;u||b&&w||console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!y.center&&d&&(y.center=d),!y.zoom&&Number.isFinite(f)&&(y.zoom=f),!y.heading&&Number.isFinite(h)&&(y.heading=h),!y.tilt&&Number.isFinite(p)&&(y.tilt=p);for(const e of Object.keys(y))void 0===y[e]&&delete y[e];const x=(0,a.useRef)(void 0);return(0,a.useEffect)((()=>{if(!i||!n)return;const{addMapInstance:r,removeMapInstance:a}=t,{mapId:s}=e,d=`${s||"default"}:${g||"default"}:${v||"LIGHT"}`;let f,h;if(m&&mT.has(d)?(h=mT.pop(d),f=h.getDiv(),i.appendChild(f),h.setOptions(y),setTimeout((()=>h.setCenter(h.getCenter())),0)):(f=document.createElement("div"),f.style.height="100%",i.appendChild(f),h=new google.maps.Map(f,GD({},y,g?{renderingType:g}:{},v?{colorScheme:v}:{}))),o(h),r(h,c),u){const{padding:e}=u,t=qD(u,pT);h.fitBounds(t,e)}else b&&w||h.fitBounds({east:180,west:-180,south:-90,north:90});if(x.current){const{mapId:e,cameraState:t}=x.current;e!==s&&h.setOptions(t)}return()=>{x.current={mapId:s,cameraState:l.current},f.remove(),m?mT.push(d,h):google.maps.event.clearInstanceListeners(h),o(null),a(c)}}),[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[r,s,l]}mT.entries={};const vT=a.createContext(null),yT=e=>{const{children:t,id:n,className:r,style:o}=e,i=(0,a.useContext)(tT),s=cT();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=gT(e,i);!function(e,t,n){const r=n.center?uT(n.center):null;let o=null,i=null;r&&Number.isFinite(r.lat)&&Number.isFinite(r.lng)&&(o=r.lat,i=r.lng);const s=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,c=Number.isFinite(n.tilt)?n.tilt:null;(0,a.useLayoutEffect)((()=>{if(!e)return;const n={};let r=!1;null===o||null===i||t.current.center.lat===o&&t.current.center.lng===i||(n.center={lat:o,lng:i},r=!0),null!==s&&t.current.zoom!==s&&(n.zoom=s,r=!0),null!==l&&t.current.heading!==l&&(n.heading=l,r=!0),null!==c&&t.current.tilt!==c&&(n.tilt=c,r=!0),r&&e.moveCamera(n)}))}(l,u,e),function(e,t){for(const n of sT){const r=t[n],o=oT[n];(0,a.useEffect)((()=>{if(!e)return;if(!r)return;const t=google.maps.event.addListener(e,o,(t=>{r(rT(o,e,t))}));return()=>t.remove()}),[e,o,r])}}(l,e),function(e,t){const n={},r=Object.keys(t);for(const e of r)lT.has(e)&&(n[e]=t[e]);!function(e,t){const n=(0,a.useRef)(void 0);n.current&&$D(t,n.current)||(n.current=t),(0,a.useEffect)(e,n.current)}((()=>{e&&e.setOptions(n)}),[n])}(l,e);const d=function(e,t){const{viewport:n,viewState:r}=t,o=!!n;return(0,a.useLayoutEffect)((()=>{if(!e||!r)return;const{latitude:t,longitude:n,bearing:o,pitch:a,zoom:i}=r;e.moveCamera({center:{lat:t,lng:n},heading:o,tilt:a,zoom:i+1})}),[e,r]),o}(l,e),f=!!e.controlled;(0,a.useEffect)((()=>{if(l)return d&&l.setOptions({disableDefaultUI:!0}),(d||f)&&l.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{l.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}}),[l,d,f,e.gestureHandling,e.keyboardShortcuts]);const h=e.center?uT(e.center):null;let p=null,m=null;h&&Number.isFinite(h.lat)&&Number.isFinite(h.lng)&&(p=h.lat,m=h.lng);const g=(0,a.useMemo)((()=>{var t,n,r,o,a;return{center:{lat:null!=(t=p)?t:0,lng:null!=(n=m)?n:0},zoom:null!=(r=e.zoom)?r:0,heading:null!=(o=e.heading)?o:0,tilt:null!=(a=e.tilt)?a:0}}),[p,m,e.zoom,e.heading,e.tilt]);(0,a.useLayoutEffect)((()=>{if(!l||!f)return;l.moveCamera(g);const e=l.addListener("bounds_changed",(()=>{l.moveCamera(g)}));return()=>e.remove()}),[l,f,g]);const v=(0,a.useMemo)((()=>GD({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},o)),[o,d]),y=(0,a.useMemo)((()=>({map:l})),[l]);return s===KD?a.createElement("div",{style:GD({position:"relative"},r?{}:v),className:r},a.createElement(dT,null)):a.createElement("div",GD({ref:c,"data-testid":"map",style:r?void 0:v,className:r},n?{id:n}:{}),l?a.createElement(vT.Provider,{value:y},t):null)};yT.deckGLViewProps=!0;const bT=new Set;const wT=(e=null)=>{const t=(0,a.useContext)(tT),{map:n}=(0,a.useContext)(vT)||{};if(null===t)return function(...e){const t=JSON.stringify(e);bT.has(t)||(bT.add(t),console.error(...e))}("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:r}=t;return null!==e?r[e]||null:n||r.default||null};function xT(e,t,n){(0,a.useEffect)((()=>{if(!e||!t||!n)return;const r=google.maps.event.addListener(e,t,n);return()=>r.remove()}),[e,t,n])}function kT(e,t,n){(0,a.useEffect)((()=>{e&&(e[t]=n)}),[e,t,n])}function ST(e,t,n){(0,a.useEffect)((()=>{if(e&&t&&n)return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}),[e,t,n])}const ET=a.createContext(null),CT={TOP_LEFT:["0%","0%"],TOP_CENTER:["50%","0%"],TOP:["50%","0%"],TOP_RIGHT:["100%","0%"],LEFT_CENTER:["0%","50%"],LEFT_TOP:["0%","0%"],LEFT:["0%","50%"],LEFT_BOTTOM:["0%","100%"],RIGHT_TOP:["100%","0%"],RIGHT:["100%","50%"],RIGHT_CENTER:["100%","50%"],RIGHT_BOTTOM:["100%","100%"],BOTTOM_LEFT:["0%","100%"],BOTTOM_CENTER:["50%","100%"],BOTTOM:["50%","100%"],BOTTOM_RIGHT:["100%","100%"],CENTER:["50%","50%"]},DT=({children:e,styles:t,className:n,anchorPoint:r})=>{const[o,i]=null!=r?r:CT.BOTTOM;let s=`-${o}`,l=`-${i}`;o.trimStart().startsWith("-")&&(s=o.substring(1)),i.trimStart().startsWith("-")&&(l=i.substring(1));const c=`translate(50%, 100%) translate(${s}, ${l})`;return a.createElement("div",{style:{transform:c}},a.createElement("div",{className:n,style:t},e))};function TT(e){const[t,n]=(0,a.useState)(null),[r,o]=(0,a.useState)(null),i=wT(),s=function(e){const t=fT(),n=(0,a.useContext)(tT);return(0,a.useEffect)((()=>{t&&n&&n.importLibrary(e)}),[t,n,e]),(null==n?void 0:n.loadedLibraries[e])||null}("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:h,onDragStart:p,onDragEnd:m,collisionBehavior:g,clickable:v,draggable:y,position:b,title:w,zIndex:x}=e,k=a.Children.count(l);return(0,a.useEffect)((()=>{if(!i||!s)return;const e=new s.AdvancedMarkerElement;e.map=i,n(e);let t=null;return k>0&&(t=document.createElement("div"),t.isCustomMarker=!0,e.content=t,o(t)),()=>{var r;e.map=null,null==(r=t)||r.remove(),n(null),o(null)}}),[i,s,k]),(0,a.useEffect)((()=>{!t||!t.content||k>0||(t.content.className=u||"")}),[t,u,k]),kT(t,"position",b),kT(t,"title",null!=w?w:""),kT(t,"zIndex",x),kT(t,"collisionBehavior",g),(0,a.useEffect)((()=>{t&&(t.gmpDraggable=void 0!==y?y:!!(h||p||m))}),[t,y,h,m,p]),(0,a.useEffect)((()=>{if(!t)return;const e=void 0!==v||Boolean(c)||Boolean(d)||Boolean(f);t.gmpClickable=e,e&&null!=t&&t.content&&t.content.nodeType===Node.ELEMENT_NODE&&(t.content.style.pointerEvents="none",t.content.firstElementChild&&(t.content.firstElementChild.style.pointerEvents="all"))}),[t,v,c,d,f]),xT(t,"click",c),xT(t,"drag",h),xT(t,"dragstart",p),xT(t,"dragend",m),ST(null==t?void 0:t.element,"mouseenter",d),ST(null==t?void 0:t.element,"mouseleave",f),[t,r]}(0,a.forwardRef)(((e,t)=>{const{children:n,style:r,className:o,anchorPoint:i}=e,[s,l]=TT(e),c=(0,a.useMemo)((()=>s?{marker:s}:null),[s]);return(0,a.useImperativeHandle)(t,(()=>s),[s]),l?a.createElement(ET.Provider,{value:c},(0,g.createPortal)(a.createElement(DT,{anchorPoint:i,styles:r,className:o},n),l)):null})),new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"]);const AT=["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"],_T=(0,a.forwardRef)(((e,t)=>{const n=function(e){const[t,n]=(0,a.useState)(null),r=wT(),{onClick:o,onDrag:i,onDragStart:s,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=qD(e,AT),{position:f,draggable:h}=d;return(0,a.useEffect)((()=>{if(!r)return void(void 0===r&&console.error("<Marker> has to be inside a Map component."));const e=new google.maps.Marker(d);return e.setMap(r),n(e),()=>{e.setMap(null),n(null)}}),[r]),(0,a.useEffect)((()=>{if(!t)return;const e=t,n=google.maps.event;return o&&n.addListener(e,"click",o),i&&n.addListener(e,"drag",i),s&&n.addListener(e,"dragstart",s),l&&n.addListener(e,"dragend",l),c&&n.addListener(e,"mouseover",c),u&&n.addListener(e,"mouseout",u),t.setDraggable(Boolean(h)),()=>{n.clearInstanceListeners(e)}}),[t,h,o,i,s,l,c,u]),(0,a.useEffect)((()=>{t&&d&&t.setOptions(d)}),[t,d]),(0,a.useEffect)((()=>{!h&&f&&t&&t.setPosition(f)}),[h,f,t]),t}(e);return(0,a.useImperativeHandle)(t,(()=>n),[n]),a.createElement(a.Fragment,null)}));function NT({container:e}){const{event:t,gmap:n}=eventkoi_params,r=(t.locations||[]).filter((e=>"physical"===e.type&&e.embed_gmap));if("virtual"===t?.type||0===r.length)return e.classList.add("hidden"),null;const o=r.length>1,a=n?.connected,i=e=>(0,d.jsx)("iframe",{src:e.gmap_link,loading:"lazy",allowFullScreen:!0,referrerPolicy:"no-referrer-when-downgrade",className:"w-full h-full border-0 absolute top-0 left-0"});return(0,d.jsx)(d.Fragment,{children:a?(0,d.jsx)(nT,{apiKey:n.api_key,children:(0,d.jsx)("div",{className:"flex flex-col gap-[30px]",children:r.map(((e,t)=>(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,d.jsx)("div",{className:"text-sm font-medium text-muted-foreground",children:e.name}),(0,d.jsx)("div",{className:"relative w-full h-[300px] rounded-lg overflow-hidden border border-gray-200",children:(0,d.jsx)(yT,{defaultCenter:{lat:Number(e.latitude),lng:Number(e.longitude)},defaultZoom:16,gestureHandling:"greedy",disableDefaultUI:!0,style:{width:"100%",height:"100%"},children:(0,d.jsx)(_T,{position:{lat:Number(e.latitude),lng:Number(e.longitude)},onClick:()=>{const t=[e.name,e.address1,e.city,e.state,e.country,e.zip].filter(Boolean).join(", ");window.open(`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`,"_blank")}})})})]},e.id||t)))})}):(0,d.jsx)("div",{className:"flex flex-col gap-[30px]",children:r.map(((e,t)=>e.gmap_link?(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,d.jsx)("div",{className:"text-sm font-medium text-muted-foreground",children:e.name}),(0,d.jsx)("div",{className:"relative w-full h-[300px] rounded-lg overflow-hidden border border-gray-200",children:i(e)})]},e.id||t):null))})})}function MT({base:e,html:t}){const{event:n}=eventkoi_params,[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!1);return e.style.padding=0,e.style.border=0,(0,a.useEffect)((()=>{"#event-share"===window.location.hash&&s(!0)}),[]),(0,a.useEffect)((()=>{i||"#event-share"!==window.location.hash||history.replaceState(null,"",window.location.pathname+window.location.search)}),[i]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:t},onClick:()=>s(!0)}),(0,d.jsx)(Dh,{open:i,onOpenChange:s,children:(0,d.jsxs)(_h,{className:"w-full max-w-[685px] p-0",onOpenAutoFocus:e=>e.preventDefault(),children:[(0,d.jsxs)(Nh,{className:"flex items-center justify-center p-4 border-0 border-solid border-b-2 border-input",children:[(0,d.jsx)(Mh,{className:"font-sans text-xl m-0 text-foreground",children:"Share this event"}),(0,d.jsx)(Rh,{className:"hidden"})]}),(0,d.jsxs)("div",{className:"flex flex-col pt-[30px] pb-[60px] px-[60px]",children:[(0,d.jsxs)("div",{className:"flex gap-4 items-center flex-wrap justify-center pb-[60px]",children:[(0,d.jsx)(kv,{event:n,name:"whatsapp",title:"Whatsapp",icon:(0,d.jsx)(jv,{})}),(0,d.jsx)(kv,{event:n,name:"instagram",title:"Instagram",icon:(0,d.jsx)(Rv,{})}),(0,d.jsx)(kv,{event:n,name:"email",title:"Email",icon:(0,d.jsx)(Nv,{})}),(0,d.jsx)(kv,{event:n,name:"facebook",title:"Facebook",icon:(0,d.jsx)(Mv,{})}),(0,d.jsx)(kv,{event:n,name:"x",title:"X",icon:(0,d.jsx)(Iv,{})}),(0,d.jsx)(kv,{event:n,name:"linkedin",title:"Linkedin",icon:(0,d.jsx)(Ov,{})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 pb-[10px]",children:[(0,d.jsx)(Av,{className:"text-base",children:"Event link"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(Hh,{id:"link",defaultValue:n?.url,readOnly:!0,className:"min-h-[66px] border border-input border-solid border-primary/30 box-border text-lg text-foreground"}),(0,d.jsxs)(Pu,{variant:"secondary",type:"submit",className:"absolute h-12 right-[9px] top-[9px] border-none cursor-pointer hover:bg-input",onClick:()=>{o(!0),navigator.clipboard.writeText(n?.url),setTimeout((()=>{o(!1)}),1200)},children:[r?(0,d.jsx)(Hv,{className:"mr-2 h-5 w-5"}):(0,d.jsx)(Wv,{className:"mr-2 h-5 w-5"}),r?"Copied!":"Copy"]})]})]})]})]})})]})}document.querySelectorAll(".eventkoi-gmap").forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(NT,{container:e}))}));const RT=document.querySelectorAll("a[href='#event-share']");function OT({fill:e="#fb4409",width:t="16.918",height:n="21.89"}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 16.918 21.89",children:(0,d.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,d.jsx)("g",{transform:"translate(0 13.696)",children:(0,d.jsx)(_v.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)",fill:e})}),(0,d.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,d.jsx)(_v.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)",fill:e})})]})})}Array.from(RT).forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(MT,{base:e,html:e.outerHTML}))}));const jT=sa("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),IT=sa("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),PT=sa("CircleDotDashed",[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);var LT=o(848);const FT=({steps:e})=>(0,d.jsxs)("div",{className:"eventkoi-onboarding-widget fixed bottom-8 right-8 z-50 w-[250px] rounded-lg border border-solid border-border bg-white shadow-xl p-4",style:{boxSizing:"border-box",fontFamily:"Inter, system-ui, sans-serif"},children:[(0,d.jsxs)("button",{type:"button",className:"absolute bg-[#161616] cursor-pointer hover:bg-black text-[#FBFBFB] -top-[71px] left-0 w-full h-[50px] rounded-lg border-none shadow-md flex items-center justify-center text-[14px] font-semibold gap-2 transition",style:{boxSizing:"border-box",fontWeight:600},"data-eventkoi-continue":!0,children:[(0,d.jsx)(jT,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Continue Guide"})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(OT,{width:"18",height:"23"}),(0,d.jsx)("div",{className:"text-[14px] font-semibold text-black",children:(0,d.jsx)("span",{className:"block",children:"EventKoi Plugin Tour"})}),(0,d.jsx)("button",{type:"button",className:"ml-auto text-[#555] hover:text-black transition-colors leading-none -mt-1","aria-label":"Close",style:{background:"transparent",border:"none",fontSize:"20px",cursor:"pointer"},children:"×"})]}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("div",{className:"h-[1px] w-full bg-border"}),(0,d.jsx)("div",{className:"h-1"}),e.map((e=>{const t=e.complete?"#137C63":"#161616",n="view"!==e.key||e.complete?"white":"#e6e6e6",r="view"!==e.key||e.complete?"500":"600";return(0,d.jsx)("button",{type:"button",className:"w-full h-9 rounded-lg cursor-default border px-3 py-3 text-left transition text-[14px] font-medium border-none flex items-center focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 "+(e.complete?"line-through":""),style:{color:t,background:n,fontWeight:r},children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[e.complete?(0,d.jsx)(IT,{className:"h-4 w-4",style:{color:"#137C63"}}):(0,d.jsx)(PT,{className:"h-4 w-4",style:{color:t}}),(0,d.jsx)("span",{className:"text-[14px] font-medium",style:{color:t},children:e.title})]})},e.key)})),(0,d.jsx)("div",{className:"h-[1px] w-full bg-border"})]}),(0,d.jsx)("div",{className:"text-[12px] text-[#555] font-sans",children:"You can restart this Tour any time in the EventKoi Dashboard."})]})]});if("undefined"!=typeof window){const e=()=>(()=>{if(!(()=>{if("undefined"==typeof window)return!1;const e=new URLSearchParams(window.location.search).get("onboarding"),t=Boolean(window.eventkoi_params?.is_admin);return"demo-event"===e&&t})())return;if(document.querySelector(".eventkoi-onboarding-widget"))return;const e=window.eventkoi_params?.event?.id||new URLSearchParams(window.location.search).get("demo_event_id"),t=Number(window.eventkoi_params?.demo_event_id)>0?Number(window.eventkoi_params.demo_event_id):null,n=document.querySelector(".eventkoi-front[data-event]"),r=n?Number(n.getAttribute("data-event")):null,o=e||t;if(!o||r!==Number(o))return;const a=(0,LT.qV)((0,d.jsx)(FT,{steps:[{key:"event",title:"Publish demo event",complete:!0},{key:"view",title:"View default calendar",complete:!1}]})),i=document.createElement("div");i.innerHTML=a;const s=i.firstElementChild;if(!s)return;const l=s.querySelector("button[aria-label='Close']");l&&l.addEventListener("click",(()=>s.remove()));const c=s.querySelector("[data-eventkoi-continue]");c&&c.addEventListener("click",(()=>{const t=window.eventkoi_params?.demo_event_id&&Number(window.eventkoi_params.demo_event_id)>0?window.eventkoi_params.demo_event_id:null,n=e||t;if(!n)return;const r=`${window.eventkoi_params?.admin_page||"/wp-admin/admin.php?page=eventkoi"}#/events/${n}/main?onboarding=demo-event&hint=4`;window.location.href=r})),document.body.appendChild(s)})();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}const zT=()=>(0,d.jsxs)("div",{className:"eventkoi-onboarding-widget fixed bottom-8 right-8 z-50 w-[250px] rounded-lg shadow-md",style:{boxSizing:"border-box",fontFamily:"Inter, system-ui, sans-serif"},children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 bg-[#EDFBF8] p-4 rounded-t-lg",children:[(0,d.jsx)("span",{className:"text-[18px]","aria-hidden":"true",children:"🥳"}),(0,d.jsx)("div",{className:"text-[14px] font-semibold text-[#0D5342] leading-tight",children:(0,d.jsx)("span",{className:"block",children:"EventKoi Plugin Tour Completed!"})}),(0,d.jsx)("button",{type:"button",className:"ml-auto p-0 text-[#555] hover:text-black transition-colors leading-none -mt-1","aria-label":"Close",style:{background:"transparent",border:"none",fontSize:"24px",cursor:"pointer"},children:"×"})]}),(0,d.jsxs)("div",{className:"p-4 border border-solid border-border bg-white rounded-b-lg flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"text-[14px] text-[#161616] font-medium text-center w-full",children:"What you can do next:"}),(0,d.jsx)(Pu,{asChild:!0,className:"w-full h-10 text-[12px] rounded-sm font-medium text-[#FBFBFB] bg-[#161616] hover:bg-black","data-eventkoi-dashboard":!0,style:{boxSizing:"border-box"},children:(0,d.jsx)("a",{className:"no-underline",href:`${window.eventkoi_params?.admin_page||"/wp-admin/admin.php?page=eventkoi"}#/dashboard`,children:"Go to EventKoi Dashboard"})}),(0,d.jsx)(Pu,{asChild:!0,variant:"outline",className:"w-full rounded-sm border border-solid border-[#161616] py-2 h-10 text-[12px] font-medium hover:bg-white text-[#161616] whitespace-normal",style:{boxSizing:"border-box"},children:(0,d.jsx)("a",{className:"no-underline text-[#161616] text-center",href:"https://eventkoi.com/docs/knowledge-base/how-to-customise-the-default-events-template/",target:"_blank",rel:"noopener noreferrer",children:"Learn how to customize an Event Template"})})]}),(0,d.jsx)("div",{className:"h-[1px] w-full bg-border"}),(0,d.jsx)("p",{className:"text-[12px] text-[#555] m-0 font-sans",children:"You can restart this Tour any time in the EventKoi Dashboard."})]})]});if("undefined"!=typeof window){const e=()=>(()=>{if(!(()=>{if("undefined"==typeof window)return!1;const e=new URLSearchParams(window.location.search).get("onboarding"),t=Boolean(window.eventkoi_params?.is_admin);return"demo-event"===e&&t})())return;if(document.querySelector(".eventkoi-onboarding-widget"))return;const e=Number(window.eventkoi_params?.default_cal_id)>0?Number(window.eventkoi_params.default_cal_id):null,t=document.querySelector('.eventkoi-front [id^="eventkoi-calendar-"][data-calendar-id]'),n=t?Number(t.getAttribute("data-calendar-id")):null;if(!e||n!==e)return;const r=(0,LT.qV)((0,d.jsx)(zT,{})),o=document.createElement("div");o.innerHTML=r;const a=o.firstElementChild;if(!a)return;const i=a.querySelector("button[aria-label='Close']");i&&i.addEventListener("click",(()=>a.remove())),document.body.appendChild(a)})();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}})();1 (()=>{"use strict";var e,t,n={17:e=>{e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!=o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},338:(e,t,n)=>{var r=n(795);t.H=r.createRoot,r.hydrateRoot},609:e=>{e.exports=window.React},633:(e,t,n)=>{var r=n(609);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},l={};function c(e){return!!a.call(l,e)||!a.call(s,e)&&(i.test(e)?l[e]=!0:(s[e]=!0,!1))}function u(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var f=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(f,h);d[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(f,h);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(f,h);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(p).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),p[t]=p[e]}))}));var g=/["'&<>]/;function v(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var y=/([A-Z])/g,b=/^ms-/,w=Array.isArray;function x(e,t){return{insertionMode:e,selectedValue:t}}var k=new Map;function S(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(a.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var s=v(r);i=v((""+i).trim())}else{s=r;var l=k.get(s);void 0!==l||(l=v(s.replace(y,"-$1").toLowerCase().replace(b,"-ms-")),k.set(s,l)),s=l,i="number"==typeof i?0===i||a.call(p,r)?""+i:i+"px":v((""+i).trim())}t?(t=!1,e.push(' style="',s,":",i)):e.push(";",s,":",i)}}t||e.push('"')}function E(e,t,n,r){switch(n){case"style":return void S(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',v(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',v(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',v(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',v(r),'"')}}else if(c(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(r),'"')}}function C(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function D(e,t,n,r){e.push(_(n));var o,i=n=null;for(o in t)if(a.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:E(e,r,o,s)}}return e.push(">"),C(e,i,n),"string"==typeof n?(e.push(v(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,A=new Map;function _(e){var t=A.get(e);if(void 0===t){if(!T.test(e))throw Error(o(65,e));t="<"+e,A.set(e,t)}return t}function N(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var M=/[<\u2028\u2029]/g;function R(e){return JSON.stringify(e).replace(M,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function O(e,t,n,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var j=Object.assign,I=Symbol.for("react.element"),P=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),W=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),q=Symbol.for("react.scope"),Z=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),K=Symbol.iterator;function J(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case L:return"Fragment";case P:return"Portal";case z:return"Profiler";case F:return"StrictMode";case V:return"Suspense";case U:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case H:return(e._context.displayName||"Context")+".Provider";case B:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $:return null!==(t=e.displayName||null)?t:J(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return J(e(t))}catch(e){}}return null}var X={};function ee(e,t){if(!(e=e.contextTypes))return X;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?ne(e,t):ae(e,t)}function ie(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?ne(e,n):ie(e,n),t.context._currentValue2=t.value}function se(e){var t=te;t!==e&&(null===t?oe(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ae(t,e):ie(t,e),te=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue2:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:j({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var s=t[i];null!=(s="function"==typeof s?s.call(e,a,n,r):s)&&(o?(o=!1,a=j({},a,s)):j(a,s))}e.state=a}else a.queue=null}var ue={id:1,overflow:""};function de(e,t,n){var r=e.id;e=e.overflow;var o=32-fe(r)-1;r&=~(1<<o),n+=1;var a=32-fe(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-fe(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var fe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(he(e)/pe|0)|0},he=Math.log,pe=Math.LN2,me="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ge=null,ve=null,ye=null,be=null,we=!1,xe=!1,ke=0,Se=null,Ee=0;function Ce(){if(null===ge)throw Error(o(321));return ge}function De(){if(0<Ee)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Te(){return null===be?null===ye?(we=!1,ye=be=De()):(we=!0,be=ye):null===be.next?(we=!1,be=be.next=De()):(we=!0,be=be.next),be}function Ae(){ve=ge=null,xe=!1,ye=null,Ee=0,be=Se=null}function _e(e,t){return"function"==typeof t?t(e):t}function Ne(e,t,n){if(ge=Ce(),be=Te(),we){var r=be.queue;if(t=r.dispatch,null!==Se&&void 0!==(n=Se.get(r))){Se.delete(r),r=be.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return be.memoizedState=r,[r,t]}return[be.memoizedState,t]}return e=e===_e?"function"==typeof t?t():t:void 0!==n?n(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Re.bind(null,ge,e),[be.memoizedState,e]}function Me(e,t){if(ge=Ce(),t=void 0===t?null:t,null!==(be=Te())){var n=be.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!me(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),be.memoizedState=[e,t],e}function Re(e,t,n){if(25<=Ee)throw Error(o(301));if(e===ge)if(xe=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Oe(){throw Error(o(394))}function je(){}var Ie={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Me,useReducer:Ne,useRef:function(e){ge=Ce();var t=(be=Te()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return Ne(_e,e)},useInsertionEffect:je,useLayoutEffect:function(){},useCallback:function(e,t){return Me((function(){return e}),t)},useImperativeHandle:je,useEffect:je,useDebugValue:je,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,Oe]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-fe(e)-1)).toString(32)+t;var n=Pe;if(null===n)throw Error(o(404));return t=ke++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Pe=null,Le=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function ze(){}function He(e,t,n,r,o,a,i,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:s};return o.add(l),l}function We(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function Be(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ve(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ue(e,t,n,r,o){for(ge={},ve=t,ke=0,e=n(r,o);xe;)xe=!1,ke=0,Ee+=1,be=null,e=n(r,o);return Ae(),e}function $e(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in i))throw Error(o(108,J(r)||"Unknown",l));r=j({},s,n)}t.legacyContext=r,Ze(e,t,a),t.legacyContext=s}else Ze(e,t,a)}function Ge(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function qe(e,t,n,i,s){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){s=ee(n,t.legacyContext);var l=n.contextType;ce(l=new n(i,"object"==typeof l&&null!==l?l._currentValue2:s),n,i,s),$e(e,t,l,n)}else{s=Ue(e,t,n,i,l=ee(n,t.legacyContext));var u=0!==ke;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)ce(s,n,i,l),$e(e,t,s,n);else if(u){i=t.treeContext,t.treeContext=de(i,1,0);try{Ze(e,t,s)}finally{t.treeContext=i}}else Ze(e,t,s)}else{if("string"!=typeof n){switch(n){case Y:case Z:case F:case z:case L:case U:return void Ze(e,t,i.children);case q:throw Error(o(343));case V:e:{n=t.blockedBoundary,s=t.blockedSegment,l=i.fallback,i=i.children;var d={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:u=new Set,errorDigest:null},f=We(0,s.chunks.length,d,s.formatContext,!1,!1);s.children.push(f),s.lastPushedText=!1;var h=We(0,0,null,s.formatContext,!1,!1);h.parentFlushed=!0,t.blockedBoundary=d,t.blockedSegment=h;try{if(Qe(e,t,i),e.responseState.generateStaticMarkup||h.lastPushedText&&h.textEmbedded&&h.chunks.push("\x3c!-- --\x3e"),h.status=1,Xe(d,h),0===d.pendingTasks)break e}catch(t){h.status=4,d.forceClientRender=!0,d.errorDigest=Be(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=s}t=He(e,l,n,f,u,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case B:if(i=Ue(e,t,n.render,i,s),0!==ke){n=t.treeContext,t.treeContext=de(n,1,0);try{Ze(e,t,i)}finally{t.treeContext=n}}else Ze(e,t,i);return;case $:return void qe(e,t,n=n.type,i=Ge(n,i),s);case H:if(s=i.children,n=n._context,i=i.value,l=n._currentValue2,n._currentValue2=i,te=i={parent:u=te,depth:null===u?0:u.depth+1,context:n,parentValue:l,value:i},t.context=i,Ze(e,t,s),null===(e=te))throw Error(o(403));return i=e.parentValue,e.context._currentValue2=i===Q?e.context._defaultValue:i,e=te=e.parent,void(t.context=e);case W:return void Ze(e,t,i=(i=i.children)(n._currentValue2));case G:return void qe(e,t,n=(s=n._init)(n._payload),i=Ge(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(l=function(e,t,n,i,s){switch(t){case"select":e.push(_("select"));var l=null,u=null;for(p in n)if(a.call(n,p)){var d=n[p];if(null!=d)switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:E(e,i,p,d)}}return e.push(">"),C(e,u,l),l;case"option":u=s.selectedValue,e.push(_("option"));var f=d=null,h=null,p=null;for(l in n)if(a.call(n,l)){var m=n[l];if(null!=m)switch(l){case"children":d=m;break;case"selected":h=m;break;case"dangerouslySetInnerHTML":p=m;break;case"value":f=m;default:E(e,i,l,m)}}if(null!=u)if(n=null!==f?""+f:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),w(u)){for(i=0;i<u.length;i++)if(""+u[i]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),C(e,p,d),d;case"textarea":for(d in e.push(_("textarea")),p=u=l=null,n)if(a.call(n,d)&&null!=(f=n[d]))switch(d){case"children":p=f;break;case"value":l=f;break;case"defaultValue":u=f;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:E(e,i,d,f)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=p){if(null!=l)throw Error(o(92));if(w(p)&&1<p.length)throw Error(o(93));l=""+p}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(u in e.push(_("input")),f=p=d=l=null,n)if(a.call(n,u)&&null!=(h=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":f=h;break;case"defaultValue":d=h;break;case"checked":p=h;break;case"value":l=h;break;default:E(e,i,u,h)}return null!==p?E(e,i,"checked",p):null!==f&&E(e,i,"checked",f),null!==l?E(e,i,"value",l):null!==d&&E(e,i,"value",d),e.push("/>"),null;case"menuitem":for(var g in e.push(_("menuitem")),n)if(a.call(n,g)&&null!=(l=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:E(e,i,g,l)}return e.push(">"),null;case"title":for(m in e.push(_("title")),l=null,n)if(a.call(n,m)&&null!=(u=n[m]))switch(m){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:E(e,i,m,u)}return e.push(">"),l;case"listing":case"pre":for(f in e.push(_(t)),u=l=null,n)if(a.call(n,f)&&null!=(d=n[f]))switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;default:E(e,i,f,d)}if(e.push(">"),null!=u){if(null!=l)throw Error(o(60));if("object"!=typeof u||!("__html"in u))throw Error(o(61));null!=(n=u.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(_(t)),n)if(a.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:E(e,i,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return D(e,n,t,i);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),D(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return D(e,n,t,i);for(h in e.push(_(t)),u=l=null,n)if(a.call(n,h)&&null!=(d=n[h]))switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":S(e,i,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(h)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",h,'="',v(d),'"')}return e.push(">"),C(e,u,l),l}}((s=t.blockedSegment).chunks,n,i,e.responseState,s.formatContext),s.lastPushedText=!1,u=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return x(1,null!=n.value?n.value:n.defaultValue);case"svg":return x(2,null);case"math":return x(3,null);case"foreignObject":return x(1,null);case"table":return x(4,null);case"thead":case"tbody":case"tfoot":return x(5,null);case"colgroup":return x(7,null);case"tr":return x(6,null)}return 4<=e.insertionMode||0===e.insertionMode?x(1,null):e}(u,n,i),Qe(e,t,l),s.formatContext=u,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.chunks.push("</",n,">")}s.lastPushedText=!1}}function Ze(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case I:return void qe(e,t,n.type,n.props,n.ref);case P:throw Error(o(257));case G:var r=n._init;return void Ze(e,t,n=r(n._payload))}if(w(n))return void Ye(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=K&&n[K]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);Ye(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=O(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=O(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ye(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=de(a,r,o);try{Qe(e,t,n[o])}finally{t.treeContext=a}}}function Qe(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return Ze(e,t,n)}catch(l){if(Ae(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,se(a),l;n=l;var i=t.blockedSegment,s=We(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(s),i.lastPushedText=!1,e=He(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,se(a)}}function Ke(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Je(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Je(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Xe(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Xe(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ze,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Xe(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ke,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Xe(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Le.current;Le.current=Ie;var r=Pe;Pe=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],s=e,l=i.blockedSegment;if(0===l.status){se(i.context);try{Ze(s,i,i.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),i.abortSet.delete(i),l.status=1,et(s,i.blockedBoundary,l)}catch(e){if(Ae(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),l.status=4;var u=i.blockedBoundary,d=e,f=Be(s,d);null===u?Ve(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=f,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&st(e,e.destination)}catch(t){Be(e,t),Ve(e,t)}finally{Pe=r,Le.current=n,n===Ie&&se(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)t.push(r[i]);a=rt(e,t,a)}for(;i<r.length-1;i++)t.push(r[i]);return i<r.length&&(a=t.push(r[i])),a;default:throw Error(o(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=v(r),t.push(r),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;return a=a.boundaryPrefix+i.toString(16),r=r.id=a,N(t,e.responseState,r),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),N(t,e.responseState,r.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.formatContext)}function at(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)it(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function it(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t.push('")<\/script>')}function st(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var a,i=e.clientRenderedBoundaries;for(a=0;a<i.length;a++){var s=i[a];r=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,f=s.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(o(395));if(r.push(c),r.push('"'),u||d||f){r.push(",");var h=R(u||"");r.push(h)}if(d||f){r.push(",");var p=R(d||"");r.push(p)}if(f){r.push(",");var m=R(f);r.push(m)}if(!r.push(")<\/script>"))return e.destination=null,a++,void i.splice(0,a)}i.splice(0,a);var g=e.completedBoundaries;for(a=0;a<g.length;a++)if(!at(e,t,g[a]))return e.destination=null,a++,void g.splice(0,a);g.splice(0,a);var v=e.partialBoundaries;for(a=0;a<v.length;a++){var y=v[a];e:{i=e,s=t;var b=y.completedSegments;for(l=0;l<b.length;l++)if(!it(i,s,y,b[l])){l++,b.splice(0,l);var w=!1;break e}b.splice(0,l),w=!0}if(!w)return e.destination=null,a++,void v.splice(0,a)}v.splice(0,a);var x=e.completedBoundaries;for(a=0;a<x.length;a++)if(!at(e,t,x[a]))return e.destination=null,a++,void x.splice(0,a);x.splice(0,a)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Je(n,e,t)})),n.clear(),null!==e.destination&&st(e,e.destination)}catch(t){Be(e,t),Ve(e,t)}}function ct(){}function ut(e,t,n,r){var a=!1,i=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){a=!0,i=e}},c=!1;if(e=function(e,t,n,r,o,a,i){var s=[],l=new Set;return(n=We(t={destination:null,responseState:t,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:l,pingedTasks:s,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Fe:o,onAllReady:ze,onShellReady:void 0===i?ze:i,onShellError:ze,onFatalError:ze},0,null,n,!1,!1)).parentFlushed=!0,e=He(t,e,null,n,l,X,null,ue),s.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,0,(function(){c=!0})),tt(e),lt(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{st(e,l)}catch(t){Be(e,t),Ve(e,t)}}if(a)throw i;if(!c)throw Error(o(426));return s}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return ut(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return ut(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},795:e=>{e.exports=window.ReactDOM},848:(e,t,n)=>{var r,o;r=n(633),o=n(911),r.version,r.renderToString,t.qV=r.renderToStaticMarkup,r.renderToNodeStream,r.renderToStaticNodeStream,o.renderToReadableStream},911:(e,t,n)=>{var r=n(609);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=null,i=0;function s(e,t){if(0!==t.length)if(512<t.length)0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=new Uint8Array(512),i=0),e.enqueue(t);else{var n=a.length-i;n<t.length&&(0===n?e.enqueue(a):(a.set(t.subarray(0,n),i),e.enqueue(a),t=t.subarray(n)),a=new Uint8Array(512),i=0),a.set(t,i),i+=t.length}}function l(e,t){return s(e,t),!0}function c(e){a&&0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=null,i=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function f(e){return u.encode(e)}function h(e,t){"function"==typeof e.error?e.error(t):e.close()}var p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function y(e){return!!p.call(v,e)||!p.call(g,e)&&(m.test(e)?v[e]=!0:(g[e]=!0,!1))}function b(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){w[e]=new b(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];w[t]=new b(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){w[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){w[e]=new b(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){w[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){w[e]=new b(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){w[e]=new b(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){w[e]=new b(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){w[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var x=/[\-:]([a-z])/g;function k(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(x,k);w[t]=new b(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(x,k);w[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(x,k);w[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E=["Webkit","ms","Moz","O"];Object.keys(S).forEach((function(e){E.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),S[t]=S[e]}))}));var C=/["'&<>]/;function D(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=C.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var T=/([A-Z])/g,A=/^ms-/,_=Array.isArray,N=f("<script>"),M=f("<\/script>"),R=f('<script src="'),O=f('<script type="module" src="'),j=f('" async=""><\/script>'),I=/(<\/|<)(s)(cript)/gi;function P(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function L(e,t){return{insertionMode:e,selectedValue:t}}var F=f("\x3c!-- --\x3e");function z(e,t,n,r){return""===t?r:(r&&e.push(F),e.push(d(D(t))),!0)}var H=new Map,W=f(' style="'),B=f(":"),V=f(";");function U(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(p.call(n,r)){var a=n[r];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===r.indexOf("--")){var i=d(D(r));a=d(D((""+a).trim()))}else{i=r;var s=H.get(i);void 0!==s||(s=f(D(i.replace(T,"-$1").toLowerCase().replace(A,"-ms-"))),H.set(i,s)),i=s,a="number"==typeof a?0===a||p.call(S,r)?d(""+a):d(a+"px"):d(D((""+a).trim()))}t?(t=!1,e.push(W,i,B,a)):e.push(V,i,B,a)}}t||e.push(q)}var $=f(" "),G=f('="'),q=f('"'),Z=f('=""');function Y(e,t,n,r){switch(n){case"style":return void U(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push($,n,Z);break;case 4:!0===r?e.push($,n,Z):!1!==r&&e.push($,n,G,d(D(r)),q);break;case 5:isNaN(r)||e.push($,n,G,d(D(r)),q);break;case 6:!isNaN(r)&&1<=r&&e.push($,n,G,d(D(r)),q);break;default:t.sanitizeURL&&(r=""+r),e.push($,n,G,d(D(r)),q)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push($,d(n),G,d(D(r)),q)}}var Q=f(">"),K=f("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(d(""+t))}}var X=f(' selected=""');function ee(e,t,n,r){e.push(oe(n));var o,a=n=null;for(o in t)if(p.call(t,o)){var i=t[o];if(null!=i)switch(o){case"children":n=i;break;case"dangerouslySetInnerHTML":a=i;break;default:Y(e,r,o,i)}}return e.push(Q),J(e,a,n),"string"==typeof n?(e.push(d(D(n))),null):n}var te=f("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=f("<"+e),re.set(e,t)}return t}var ae=f("<!DOCTYPE html>");var ie=f("</"),se=f(">"),le=f('<template id="'),ce=f('"></template>'),ue=f("\x3c!--$--\x3e"),de=f('\x3c!--$?--\x3e<template id="'),fe=f('"></template>'),he=f("\x3c!--$!--\x3e"),pe=f("\x3c!--/$--\x3e"),me=f("<template"),ge=f('"'),ve=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var ye=f("></template>");function be(e,t,n){if(s(e,de),null===n)throw Error(o(395));return s(e,n),l(e,fe)}var we=f('<div hidden id="'),xe=f('">'),ke=f("</div>"),Se=f('<svg aria-hidden="true" style="display:none" id="'),Ee=f('">'),Ce=f("</svg>"),De=f('<math aria-hidden="true" style="display:none" id="'),Te=f('">'),Ae=f("</math>"),_e=f('<table hidden id="'),Ne=f('">'),Me=f("</table>"),Re=f('<table hidden><tbody id="'),Oe=f('">'),je=f("</tbody></table>"),Ie=f('<table hidden><tr id="'),Pe=f('">'),Le=f("</tr></table>"),Fe=f('<table hidden><colgroup id="'),ze=f('">'),He=f("</colgroup></table>"),We=f('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Be=f('$RS("'),Ve=f('","'),Ue=f('")<\/script>'),$e=f('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ge=f('$RC("'),qe=f('","'),Ze=f('")<\/script>'),Ye=f('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Qe=f('$RX("'),Ke=f('"'),Je=f(")<\/script>"),Xe=f(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var nt=Object.assign,rt=Symbol.for("react.element"),ot=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),it=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),ht=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),gt=Symbol.for("react.debug_trace_mode"),vt=Symbol.for("react.legacy_hidden"),yt=Symbol.for("react.default_value"),bt=Symbol.iterator;function wt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case at:return"Fragment";case ot:return"Portal";case st:return"Profiler";case it:return"StrictMode";case dt:return"Suspense";case ft:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case ut:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ht:return null!==(t=e.displayName||null)?t:wt(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return wt(e(t))}catch(e){}}return null}var xt={};function kt(e,t){if(!(e=e.contextTypes))return xt;var n,r={};for(n in e)r[n]=t[n];return r}var St=null;function Et(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));Et(e,n)}t.context._currentValue=t.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function Dt(e){var t=e.parent;null!==t&&Dt(t),e.context._currentValue=e.value}function Tt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?Et(e,t):Tt(e,t)}function At(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?Et(e,n):At(e,n),t.context._currentValue=t.value}function _t(e){var t=St;t!==e&&(null===t?Dt(e):null===e?Ct(t):t.depth===e.depth?Et(t,e):t.depth>e.depth?Tt(t,e):At(t,e),St=e)}var Nt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Mt(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=Nt,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:nt({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Nt.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var s=t[i];null!=(s="function"==typeof s?s.call(e,a,n,r):s)&&(o?(o=!1,a=nt({},a,s)):nt(a,s))}e.state=a}else a.queue=null}var Rt={id:1,overflow:""};function Ot(e,t,n){var r=e.id;e=e.overflow;var o=32-jt(r)-1;r&=~(1<<o),n+=1;var a=32-jt(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-jt(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var jt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(It(e)/Pt|0)|0},It=Math.log,Pt=Math.LN2,Lt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ft=null,zt=null,Ht=null,Wt=null,Bt=!1,Vt=!1,Ut=0,$t=null,Gt=0;function qt(){if(null===Ft)throw Error(o(321));return Ft}function Zt(){if(0<Gt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Yt(){return null===Wt?null===Ht?(Bt=!1,Ht=Wt=Zt()):(Bt=!0,Wt=Ht):null===Wt.next?(Bt=!1,Wt=Wt.next=Zt()):(Bt=!0,Wt=Wt.next),Wt}function Qt(){zt=Ft=null,Vt=!1,Ht=null,Gt=0,Wt=$t=null}function Kt(e,t){return"function"==typeof t?t(e):t}function Jt(e,t,n){if(Ft=qt(),Wt=Yt(),Bt){var r=Wt.queue;if(t=r.dispatch,null!==$t&&void 0!==(n=$t.get(r))){$t.delete(r),r=Wt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Wt.memoizedState=r,[r,t]}return[Wt.memoizedState,t]}return e=e===Kt?"function"==typeof t?t():t:void 0!==n?n(t):t,Wt.memoizedState=e,e=(e=Wt.queue={last:null,dispatch:null}).dispatch=en.bind(null,Ft,e),[Wt.memoizedState,e]}function Xt(e,t){if(Ft=qt(),t=void 0===t?null:t,null!==(Wt=Yt())){var n=Wt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Lt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Wt.memoizedState=[e,t],e}function en(e,t,n){if(25<=Gt)throw Error(o(301));if(e===Ft)if(Vt=!0,e={action:n,next:null},null===$t&&($t=new Map),void 0===(n=$t.get(t)))$t.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(o(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return qt(),e._currentValue},useMemo:Xt,useReducer:Jt,useRef:function(e){Ft=qt();var t=(Wt=Yt()).memoizedState;return null===t?(e={current:e},Wt.memoizedState=e):t},useState:function(e){return Jt(Kt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Xt((function(){return e}),t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return qt(),e},useTransition:function(){return qt(),[!1,tn]},useId:function(){var e=zt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-jt(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(o(404));return t=Ut++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return qt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},on=null,an=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function sn(e){return console.error(e),null}function ln(){}function cn(e,t,n,r,o,a,i,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&En(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:s};return o.add(l),l}function un(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function fn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function hn(e,t,n,r,o){for(Ft={},zt=t,Ut=0,e=n(r,o);Vt;)Vt=!1,Ut=0,Gt+=1,Wt=null,e=n(r,o);return Qt(),e}function pn(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in i))throw Error(o(108,wt(r)||"Unknown",l));r=nt({},s,n)}t.legacyContext=r,vn(e,t,a),t.legacyContext=s}else vn(e,t,a)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function gn(e,t,n,a,i){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){i=kt(n,t.legacyContext);var s=n.contextType;Mt(s=new n(a,"object"==typeof s&&null!==s?s._currentValue:i),n,a,i),pn(e,t,s,n)}else{i=hn(e,t,n,a,s=kt(n,t.legacyContext));var l=0!==Ut;if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof)Mt(i,n,a,s),pn(e,t,i,n);else if(l){a=t.treeContext,t.treeContext=Ot(a,1,0);try{vn(e,t,i)}finally{t.treeContext=a}}else vn(e,t,i)}else{if("string"!=typeof n){switch(n){case vt:case gt:case it:case st:case at:case ft:return void vn(e,t,a.children);case mt:throw Error(o(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,s=a.fallback,a=a.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},u=un(0,i.chunks.length,c,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var f=un(0,0,null,i.formatContext,!1,!1);f.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=f;try{if(bn(e,t,a),f.lastPushedText&&f.textEmbedded&&f.chunks.push(F),f.status=1,kn(c,f),0===c.pendingTasks)break e}catch(t){f.status=4,c.forceClientRender=!0,c.errorDigest=dn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=cn(e,s,n,u,l,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ut:if(a=hn(e,t,n.render,a,i),0!==Ut){n=t.treeContext,t.treeContext=Ot(n,1,0);try{vn(e,t,a)}finally{t.treeContext=n}}else vn(e,t,a);return;case ht:return void gn(e,t,n=n.type,a=mn(n,a),i);case lt:if(i=a.children,n=n._context,a=a.value,s=n._currentValue,n._currentValue=a,St=a={parent:l=St,depth:null===l?0:l.depth+1,context:n,parentValue:s,value:a},t.context=a,vn(e,t,i),null===(e=St))throw Error(o(403));return a=e.parentValue,e.context._currentValue=a===yt?e.context._defaultValue:a,e=St=e.parent,void(t.context=e);case ct:return void vn(e,t,a=(a=a.children)(n._currentValue));case pt:return void gn(e,t,n=(i=n._init)(n._payload),a=mn(n,a),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(s=function(e,t,n,a,i){switch(t){case"select":e.push(oe("select"));var s=null,l=null;for(h in n)if(p.call(n,h)){var c=n[h];if(null!=c)switch(h){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:Y(e,a,h,c)}}return e.push(Q),J(e,l,s),s;case"option":l=i.selectedValue,e.push(oe("option"));var u=c=null,f=null,h=null;for(s in n)if(p.call(n,s)){var m=n[s];if(null!=m)switch(s){case"children":c=m;break;case"selected":f=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":u=m;default:Y(e,a,s,m)}}if(null!=l)if(n=null!==u?""+u:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),_(l)){for(a=0;a<l.length;a++)if(""+l[a]===n){e.push(X);break}}else""+l===n&&e.push(X);else f&&e.push(X);return e.push(Q),J(e,h,c),c;case"textarea":for(c in e.push(oe("textarea")),h=l=s=null,n)if(p.call(n,c)&&null!=(u=n[c]))switch(c){case"children":h=u;break;case"value":s=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:Y(e,a,c,u)}if(null===s&&null!==l&&(s=l),e.push(Q),null!=h){if(null!=s)throw Error(o(92));if(_(h)&&1<h.length)throw Error(o(93));s=""+h}return"string"==typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(D(""+s))),null;case"input":for(l in e.push(oe("input")),u=h=c=s=null,n)if(p.call(n,l)&&null!=(f=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":u=f;break;case"defaultValue":c=f;break;case"checked":h=f;break;case"value":s=f;break;default:Y(e,a,l,f)}return null!==h?Y(e,a,"checked",h):null!==u&&Y(e,a,"checked",u),null!==s?Y(e,a,"value",s):null!==c&&Y(e,a,"value",c),e.push(K),null;case"menuitem":for(var g in e.push(oe("menuitem")),n)if(p.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:Y(e,a,g,s)}return e.push(Q),null;case"title":for(m in e.push(oe("title")),s=null,n)if(p.call(n,m)&&null!=(l=n[m]))switch(m){case"children":s=l;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:Y(e,a,m,l)}return e.push(Q),s;case"listing":case"pre":for(u in e.push(oe(t)),l=s=null,n)if(p.call(n,u)&&null!=(c=n[u]))switch(u){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;default:Y(e,a,u,c)}if(e.push(Q),null!=l){if(null!=s)throw Error(o(60));if("object"!=typeof l||!("__html"in l))throw Error(o(61));null!=(n=l.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"==typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(oe(t)),n)if(p.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:Y(e,a,v,s)}return e.push(K),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,a);case"html":return 0===i.insertionMode&&e.push(ae),ee(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,a);for(f in e.push(oe(t)),l=s=null,n)if(p.call(n,f)&&null!=(c=n[f]))switch(f){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":U(e,a,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(f)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push($,d(f),G,d(D(c)),q)}return e.push(Q),J(e,l,s),s}}((i=t.blockedSegment).chunks,n,a,e.responseState,i.formatContext),i.lastPushedText=!1,l=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return L(1,null!=n.value?n.value:n.defaultValue);case"svg":return L(2,null);case"math":return L(3,null);case"foreignObject":return L(1,null);case"table":return L(4,null);case"thead":case"tbody":case"tfoot":return L(5,null);case"colgroup":return L(7,null);case"tr":return L(6,null)}return 4<=e.insertionMode||0===e.insertionMode?L(1,null):e}(l,n,a),bn(e,t,s),i.formatContext=l,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(ie,d(n),se)}i.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void gn(e,t,n.type,n.props,n.ref);case ot:throw Error(o(257));case pt:var r=n._init;return void vn(e,t,n=r(n._payload))}if(_(n))return void yn(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=bt&&n[bt]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);yn(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=z(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=z(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function yn(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=Ot(a,r,o);try{bn(e,t,n[o])}finally{t.treeContext=a}}}function bn(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return vn(e,t,n)}catch(l){if(Qt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,_t(a),l;n=l;var i=t.blockedSegment,s=un(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(s),i.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,_t(a)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function xn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return xn(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function kn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&kn(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&kn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(kn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function En(e){if(2!==e.status){var t=St,n=an.current;an.current=rn;var r=on;on=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],s=e,l=i.blockedSegment;if(0===l.status){_t(i.context);try{vn(s,i,i.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(F),i.abortSet.delete(i),l.status=1,Sn(s,i.blockedBoundary,l)}catch(e){if(Qt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),l.status=4;var u=i.blockedBoundary,d=e,f=dn(s,d);null===u?fn(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=f,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&Mn(e,e.destination)}catch(t){dn(e,t),fn(e,t)}finally{on=r,an.current=n,n===rn&&_t(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,le),s(t,e.placeholderPrefix),s(t,e=d(r.toString(16))),l(t,ce);case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];i<a.index;i++)s(t,r[i]);a=Dn(e,t,a)}for(;i<r.length-1;i++)s(t,r[i]);return i<r.length&&(a=l(t,r[i])),a;default:throw Error(o(390))}}function Dn(e,t,n){var r=n.boundary;if(null===r)return Cn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,he),s(t,me),r&&(s(t,ve),s(t,d(D(r))),s(t,ge)),l(t,ye),Cn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;a=f(a.boundaryPrefix+i.toString(16)),r=r.id=a,be(t,e.responseState,r),Cn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),be(t,e.responseState,r.id),Cn(e,t,n);else{if(l(t,ue),1!==(n=r.completedSegments).length)throw Error(o(391));Dn(e,t,n[0])}return l(t,pe)}function Tn(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,we),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,xe);case 2:return s(e,Se),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ee);case 3:return s(e,De),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Te);case 4:return s(e,_e),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ne);case 5:return s(e,Re),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Oe);case 6:return s(e,Ie),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Pe);case 7:return s(e,Fe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,ze);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Dn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,ke);case 2:return l(e,Ce);case 3:return l(e,Ae);case 4:return l(e,Me);case 5:return l(e,je);case 6:return l(e,Le);case 7:return l(e,He);default:throw Error(o(397))}}(t,n.formatContext)}function An(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)Nn(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,Ge):(e.sentCompleteBoundaryFunction=!0,s(t,$e)),null===r)throw Error(o(395));return n=d(n.toString(16)),s(t,r),s(t,qe),s(t,e.segmentPrefix),s(t,n),l(t,Ze)}function Nn(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return Tn(e,t,r)}return Tn(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,Be):(e.sentCompleteSegmentFunction=!0,s(t,We)),s(t,e.segmentPrefix),s(t,a=d(a.toString(16))),s(t,Ve),s(t,e.placeholderPrefix),s(t,a),l(t,Ue)}function Mn(e,t){a=new Uint8Array(512),i=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Dn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&l(t,r[n])}var u,f=e.clientRenderedBoundaries;for(u=0;u<f.length;u++){var h=f[u];r=t;var p=e.responseState,m=h.id,g=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(s(r,p.startInlineScript),p.sentClientRenderFunction?s(r,Qe):(p.sentClientRenderFunction=!0,s(r,Ye)),null===m)throw Error(o(395));if(s(r,m),s(r,Ke),(g||v||y)&&(s(r,Xe),s(r,d(tt(g||"")))),(v||y)&&(s(r,Xe),s(r,d(tt(v||"")))),y&&(s(r,Xe),s(r,d(tt(y)))),!l(r,Je))return e.destination=null,u++,void f.splice(0,u)}f.splice(0,u);var b=e.completedBoundaries;for(u=0;u<b.length;u++)if(!An(e,t,b[u]))return e.destination=null,u++,void b.splice(0,u);b.splice(0,u),c(t),a=new Uint8Array(512),i=0;var w=e.partialBoundaries;for(u=0;u<w.length;u++){var x=w[u];e:{f=e,h=t;var k=x.completedSegments;for(p=0;p<k.length;p++)if(!Nn(f,h,x,k[p])){p++,k.splice(0,p);var S=!1;break e}k.splice(0,p),S=!0}if(!S)return e.destination=null,u++,void w.splice(0,u)}w.splice(0,u);var E=e.completedBoundaries;for(u=0;u<E.length;u++)if(!An(e,t,E[u]))return e.destination=null,u++,void E.splice(0,u);E.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Rn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return xn(n,e,t)})),n.clear(),null!==e.destination&&Mn(e,e.destination)}catch(t){dn(e,t),fn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,r){var o,a,i=new Promise((function(e,t){a=e,o=t})),s=function(e,t,n,r,o,a,i,s,l){var c=[],u=new Set;return(n=un(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?sn:o,onAllReady:void 0===a?ln:a,onShellReady:void 0===i?ln:i,onShellError:void 0===s?ln:s,onFatalError:void 0===l?ln:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,u,xt,null,Rt),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?N:f('<script nonce="'+D(t)+'">');var a=[];if(void 0!==n&&a.push(t,d((""+n).replace(I,P)),M),void 0!==r)for(n=0;n<r.length;n++)a.push(R,d(D(r[n])),j);if(void 0!==o)for(r=0;r<o.length;r++)a.push(O,d(D(o[r])),j);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:f(e+"P:"),segmentPrefix:f(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return L("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,h(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{Mn(s,e)}catch(e){dn(s,e),fn(s,e)}}},cancel:function(){Rn(s)}},{highWaterMark:0});e.allReady=i,n(e)}),(function(e){i.catch((function(){})),r(e)}),o);if(t&&t.signal){var l=t.signal,c=function(){Rn(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}En(s)}))},t.version="18.3.1"}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a=o(609),i=o.t(a,2);function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let n=!1;const r=e.map((e=>{const r=l(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function u(...e){return a.useCallback(c(...e),e)}const d=window.ReactJSXRuntime;function f(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>a.createContext(e)));return function(n){const r=n?.[e]||t;return a.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=a.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[i]||o,c=a.useMemo((()=>s),Object.values(s));return(0,d.jsx)(l.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const l=s?.[e]?.[i]||o,c=a.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},h(r,...t)]}function h(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function p(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}function m({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=p(t);return a.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,s=i?e:r,l=p(n);return[s,a.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}var g=o(795),v=a.forwardRef(((e,t)=>{const{children:n,...r}=e,o=a.Children.toArray(n),i=o.find(w);if(i){const e=i.props.children,n=o.map((t=>t===i?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t));return(0,d.jsx)(y,{...r,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,d.jsx)(y,{...r,ref:t,children:n})}));v.displayName="Slot";var y=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?c(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));y.displayName="SlotClone";var b=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});function w(e){return a.isValidElement(e)&&e.type===b}var x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=a.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?v:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function k(e,t){e&&g.flushSync((()=>e.dispatchEvent(t)))}function S(e){const t=e+"CollectionProvider",[n,r]=f(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=a.useRef(null),i=a.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;const l=e+"CollectionSlot",c=a.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=u(t,i(l,n).collectionRef);return(0,d.jsx)(v,{ref:o,children:r})}));c.displayName=l;const h=e+"CollectionItemSlot",p="data-radix-collection-item",m=a.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,s=a.useRef(null),l=u(t,s),c=i(h,n);return a.useEffect((()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)}))),(0,d.jsx)(v,{[p]:"",ref:l,children:r})}));return m.displayName=h,[{Provider:s,Slot:c,ItemSlot:m},function(t){const n=i(e+"CollectionConsumer",t),r=a.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}var E=a.createContext(void 0);function C(e){const t=a.useContext(E);return e||t||"ltr"}var D,T="dismissableLayer.update",A=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=a.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...f}=e,h=a.useContext(A),[m,g]=a.useState(null),v=m?.ownerDocument??globalThis?.document,[,y]=a.useState({}),b=u(t,(e=>g(e))),w=Array.from(h.layers),[k]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=w.indexOf(k),E=m?w.indexOf(m):-1,C=h.layersWithOutsidePointerEventsDisabled.size>0,_=E>=S,R=function(e,t=globalThis?.document){const n=p(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){M("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...h.branches].some((e=>e.contains(t)));_&&!n&&(o?.(e),l?.(e),e.defaultPrevented||c?.())}),v),O=function(e,t=globalThis?.document){const n=p(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{e.target&&!r.current&&M("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...h.branches].some((e=>e.contains(t)))||(i?.(e),l?.(e),e.defaultPrevented||c?.())}),v);return function(e,t=globalThis?.document){const n=p(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{E===h.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),v),a.useEffect((()=>{if(m)return n&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(D=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),N(),()=>{n&&1===h.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=D)}}),[m,v,n,h]),a.useEffect((()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),N())}),[m,h]),a.useEffect((()=>{const e=()=>y({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)}),[]),(0,d.jsx)(x.div,{...f,ref:b,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,O.onFocusCapture),onBlurCapture:s(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,R.onPointerDownCapture)})}));function N(){const e=new CustomEvent(T);document.dispatchEvent(e)}function M(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?k(o,a):o.dispatchEvent(a)}_.displayName="DismissableLayer",a.forwardRef(((e,t)=>{const n=a.useContext(A),r=a.useRef(null),o=u(t,r);return a.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,d.jsx)(x.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var R=0;function O(){a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??j()),document.body.insertAdjacentElement("beforeend",e[1]??j()),R++,()=>{1===R&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),R--}}),[])}function j(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var I="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",L={bubbles:!1,cancelable:!0},F=a.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=a.useState(null),f=p(o),h=p(i),m=a.useRef(null),g=u(t,(e=>c(e))),v=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(r){let e=function(e){if(v.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:B(m.current,{select:!0})},t=function(e){if(v.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||B(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&B(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,v.paused]),a.useEffect((()=>{if(l){V.add(v);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(I,L);l.addEventListener(I,f),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(B(r,{select:t}),document.activeElement!==n)return}(z(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&B(l))}return()=>{l.removeEventListener(I,f),setTimeout((()=>{const t=new CustomEvent(P,L);l.addEventListener(P,h),l.dispatchEvent(t),t.defaultPrevented||B(e??document.body,{select:!0}),l.removeEventListener(P,h),V.remove(v)}),0)}}}),[l,f,h,v]);const y=a.useCallback((e=>{if(!n&&!r)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=z(e);return[H(t,e),H(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&B(a,{select:!0})):(e.preventDefault(),n&&B(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,v.paused]);return(0,d.jsx)(x.div,{tabIndex:-1,...s,ref:g,onKeyDown:y})}));function z(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function H(e,t){for(const n of e)if(!W(n,{upTo:t}))return n}function W(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function B(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}F.displayName="FocusScope";var V=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=U(e,t),e.unshift(t)},remove(t){e=U(e,t),e[0]?.resume()}}}();function U(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var $=Boolean(globalThis?.document)?a.useLayoutEffect:()=>{},G=i["useId".toString()]||(()=>{}),q=0;function Z(e){const[t,n]=a.useState(G());return $((()=>{e||n((e=>e??String(q++)))}),[e]),e||(t?`radix-${t}`:"")}const Y=["top","right","bottom","left"],Q=Math.min,K=Math.max,J=Math.round,X=Math.floor,ee=e=>({x:e,y:e}),te={left:"right",right:"left",bottom:"top",top:"bottom"},ne={start:"end",end:"start"};function re(e,t,n){return K(e,Q(t,n))}function oe(e,t){return"function"==typeof e?e(t):e}function ae(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function se(e){return"x"===e?"y":"x"}function le(e){return"y"===e?"height":"width"}function ce(e){return["top","bottom"].includes(ae(e))?"y":"x"}function ue(e){return se(ce(e))}function de(e){return e.replace(/start|end/g,(e=>ne[e]))}function fe(e){return e.replace(/left|right|bottom|top/g,(e=>te[e]))}function he(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function pe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function me(e,t,n){let{reference:r,floating:o}=e;const a=ce(t),i=ue(t),s=le(i),l=ae(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ie(t)){case"start":h[i]-=f*(n&&c?-1:1);break;case"end":h[i]+=f*(n&&c?-1:1)}return h}async function ge(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=oe(t,e),p=he(h),m=s[f?"floating"===d?"reference":"floating":d],g=pe(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=pe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function ve(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ye(e){return Y.some((t=>e[t]>=0))}function be(){return"undefined"!=typeof window}function we(e){return Se(e)?(e.nodeName||"").toLowerCase():"#document"}function xe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ke(e){var t;return null==(t=(Se(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Se(e){return!!be()&&(e instanceof Node||e instanceof xe(e).Node)}function Ee(e){return!!be()&&(e instanceof Element||e instanceof xe(e).Element)}function Ce(e){return!!be()&&(e instanceof HTMLElement||e instanceof xe(e).HTMLElement)}function De(e){return!(!be()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof xe(e).ShadowRoot)}function Te(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ae(e){return["table","td","th"].includes(we(e))}function _e(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ne(e){const t=Me(),n=Ee(e)?Oe(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Me(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Re(e){return["html","body","#document"].includes(we(e))}function Oe(e){return xe(e).getComputedStyle(e)}function je(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if("html"===we(e))return e;const t=e.assignedSlot||e.parentNode||De(e)&&e.host||ke(e);return De(t)?t.host:t}function Pe(e){const t=Ie(e);return Re(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&Te(t)?t:Pe(t)}function Le(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Pe(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=xe(o);if(a){const e=Fe(i);return t.concat(i,i.visualViewport||[],Te(o)?o:[],e&&n?Le(e):[])}return t.concat(o,Le(o,[],n))}function Fe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ze(e){const t=Oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=J(n)!==a||J(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function He(e){return Ee(e)?e:e.contextElement}function We(e){const t=He(e);if(!Ce(t))return ee(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ze(t);let i=(a?J(n.width):n.width)/r,s=(a?J(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Be=ee(0);function Ve(e){const t=xe(e);return Me()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Be}function Ue(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=He(e);let i=ee(1);t&&(r?Ee(r)&&(i=We(r)):i=We(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==xe(e))&&t}(a,n,r)?Ve(a):ee(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=xe(a),t=r&&Ee(r)?xe(r):r;let n=e,o=Fe(n);for(;o&&r&&t!==n;){const e=We(o),t=o.getBoundingClientRect(),r=Oe(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=xe(o),o=Fe(n)}}return pe({width:u,height:d,x:l,y:c})}function $e(e,t){const n=je(e).scrollLeft;return t?t.left+n:Ue(ke(e)).left+n}function Ge(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:$e(e,r)),y:r.top+t.scrollTop}}function qe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=xe(e),r=ke(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Me();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=ke(e),n=je(e),r=e.ownerDocument.body,o=K(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=K(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+$e(e);const s=-n.scrollTop;return"rtl"===Oe(r).direction&&(i+=K(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(ke(e));else if(Ee(t))r=function(e,t){const n=Ue(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ce(e)?We(e):ee(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Ve(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return pe(r)}function Ze(e,t){const n=Ie(e);return!(n===t||!Ee(n)||Re(n))&&("fixed"===Oe(n).position||Ze(n,t))}function Ye(e,t,n){const r=Ce(t),o=ke(t),a="fixed"===n,i=Ue(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=ee(0);if(r||!r&&!a)if(("body"!==we(t)||Te(o))&&(s=je(t)),r){const e=Ue(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=$e(o));const c=!o||r||a?ee(0):Ge(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Qe(e){return"static"===Oe(e).position}function Ke(e,t){if(!Ce(e)||"fixed"===Oe(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ke(e)===n&&(n=n.ownerDocument.body),n}function Je(e,t){const n=xe(e);if(_e(e))return n;if(!Ce(e)){let t=Ie(e);for(;t&&!Re(t);){if(Ee(t)&&!Qe(t))return t;t=Ie(t)}return n}let r=Ke(e,t);for(;r&&Ae(r)&&Qe(r);)r=Ke(r,t);return r&&Re(r)&&Qe(r)&&!Ne(r)?n:r||function(e){let t=Ie(e);for(;Ce(t)&&!Re(t);){if(Ne(t))return t;if(_e(t))return null;t=Ie(t)}return null}(e)||n}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=ke(r),s=!!t&&_e(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=ee(1);const u=ee(0),d=Ce(r);if((d||!d&&!a)&&(("body"!==we(r)||Te(i))&&(l=je(r)),Ce(r))){const e=Ue(r);c=We(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?ee(0):Ge(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:ke,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?_e(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Le(e,[],!1).filter((e=>Ee(e)&&"body"!==we(e))),o=null;const a="fixed"===Oe(e).position;let i=a?Ie(e):e;for(;Ee(i)&&!Re(i);){const t=Oe(i),n=Ne(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Te(i)&&!n&&Ze(e,i))?r=r.filter((e=>e!==i)):o=t,i=Ie(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=qe(t,n,o);return e.top=K(r.top,e.top),e.right=Q(r.right,e.right),e.bottom=Q(r.bottom,e.bottom),e.left=K(r.left,e.left),e}),qe(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Je,getElementRects:async function(e){const t=this.getOffsetParent||Je,n=this.getDimensions,r=await n(e.floating);return{reference:Ye(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ze(e);return{width:t,height:n}},getScale:We,isElement:Ee,isRTL:function(e){return"rtl"===Oe(e).direction}};function et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const tt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=ae(n),s=ie(n),l="y"===ce(n),c=["left","top"].includes(i)?-1:1,u=a&&l?-1:1,d=oe(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},nt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=oe(e,t),c={x:n,y:r},u=await ge(t,l),d=ce(ae(o)),f=se(d);let h=c[f],p=c[d];if(a){const e="y"===f?"bottom":"right";h=re(h+u["y"===f?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";p=re(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},rt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=oe(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=ae(o),y=ce(s),b=ae(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[fe(s)]:function(e){const t=fe(e);return[de(e),t,de(t)]}(s)),k="none"!==p;!f&&k&&x.push(...function(e,t,n,r){const o=ie(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(ae(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(de)))),a}(s,m,p,w));const S=[s,...x],E=await ge(t,g),C=[];let D=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&C.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ie(e),o=ue(e),a=le(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=fe(i)),[i,fe(i)]}(o,i,w);C.push(E[e[0]],E[e[1]])}if(D=[...D,{placement:o,overflows:C}],!C.every((e=>e<=0))){var T,A;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(A=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var _;const e=null==(_=D.filter((e=>{if(k){const t=ce(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ot=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=oe(e,t),u=await ge(t,c),d=ae(o),f=ie(o),h="y"===ce(o),{width:p,height:m}=a.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-u.top-u.bottom,b=p-u.left-u.right,w=Q(m-u[g],y),x=Q(p-u[v],b),k=!t.middlewareData.shift;let S=w,E=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),k&&!f){const e=K(u.left,0),t=K(u.right,0),n=K(u.top,0),r=K(u.bottom,0);h?E=p-2*(0!==e||0!==t?e+t:K(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:K(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:S});const C=await i.getDimensions(s.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}},at=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=oe(e,t);switch(r){case"referenceHidden":{const e=ve(await ge(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ye(e)}}}case"escaped":{const e=ve(await ge(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ye(e)}}}default:return{}}}}},it=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=oe(e,t)||{};if(null==c)return{};const d=he(u),f={x:n,y:r},h=ue(o),p=le(h),m=await i.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[h]-f[h]-a.floating[p],x=f[h]-a.reference[h],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=k?k[b]:0;S&&await(null==i.isElement?void 0:i.isElement(k))||(S=s.floating[b]||a.floating[p]);const E=w/2-x/2,C=S/2-m[p]/2-1,D=Q(d[v],C),T=Q(d[y],C),A=D,_=S-m[p]-T,N=S/2-m[p]/2+E,M=re(A,N,_),R=!l.arrow&&null!=ie(o)&&N!==M&&a.reference[p]/2-(N<A?D:T)-m[p]/2<0,O=R?N<A?N-A:N-_:0;return{[h]:f[h]+O,data:{[h]:M,centerOffset:N-M-O,...R&&{alignmentOffset:O}},reset:R}}}),st=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=oe(e,t),u={x:n,y:r},d=ce(o),f=se(d);let h=u[f],p=u[d];const m=oe(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(ae(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:h,[d]:p}}}},lt=(e,t,n)=>{const r=new Map,o={platform:Xe,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=me(c,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[a]:{...h[a],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=me(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:a})};var ct="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ut(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function dt(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){const n=dt(e);return Math.round(t*n)/n}function ht(e){const t=a.useRef(e);return ct((()=>{t.current=e})),t}const pt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?it({element:n.current,padding:r}).fn(t):{}:n?it({element:n,padding:r}).fn(t):{};var o}}),mt=(e,t)=>({...tt(e),options:[e,t]}),gt=(e,t)=>({...nt(e),options:[e,t]}),vt=(e,t)=>({...st(e),options:[e,t]}),yt=(e,t)=>({...rt(e),options:[e,t]}),bt=(e,t)=>({...ot(e),options:[e,t]}),wt=(e,t)=>({...at(e),options:[e,t]}),xt=(e,t)=>({...pt(e),options:[e,t]});var kt=a.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,d.jsx)(x.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));kt.displayName="Arrow";var St=kt,Et="Popper",[Ct,Dt]=f(Et),[Tt,At]=Ct(Et),_t=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return(0,d.jsx)(Tt,{scope:t,anchor:r,onAnchorChange:o,children:n})};_t.displayName=Et;var Nt="PopperAnchor",Mt=a.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=At(Nt,n),s=a.useRef(null),l=u(t,s);return a.useEffect((()=>{i.onAnchorChange(r?.current||s.current)})),r?null:(0,d.jsx)(x.div,{...o,ref:l})}));Mt.displayName=Nt;var Rt="PopperContent",[Ot,jt]=Ct(Rt),It=a.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:b,...w}=e,k=At(Rt,n),[S,E]=a.useState(null),C=u(t,(e=>E(e))),[D,T]=a.useState(null),A=function(e){const[t,n]=a.useState(void 0);return $((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(D),_=A?.width??0,N=A?.height??0,M=r+("center"!==i?"-"+i:""),R="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},O=Array.isArray(f)?f:[f],j=O.length>0,I={padding:R,boundary:O.filter(zt),altBoundary:j},{refs:P,floatingStyles:L,placement:F,isPositioned:z,middlewareData:H}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=a.useState(r);ut(h,r)||p(r);const[m,v]=a.useState(null),[y,b]=a.useState(null),w=a.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),x=a.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[]),k=i||m,S=s||y,E=a.useRef(null),C=a.useRef(null),D=a.useRef(d),T=null!=c,A=ht(c),_=ht(o),N=ht(u),M=a.useCallback((()=>{if(!E.current||!C.current)return;const e={placement:t,strategy:n,middleware:h};_.current&&(e.platform=_.current),lt(E.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!ut(D.current,t)&&(D.current=t,g.flushSync((()=>{f(t)})))}))}),[h,t,n,_,N]);ct((()=>{!1===u&&D.current.isPositioned&&(D.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const R=a.useRef(!1);ct((()=>(R.current=!0,()=>{R.current=!1})),[]),ct((()=>{if(k&&(E.current=k),S&&(C.current=S),k&&S){if(A.current)return A.current(k,S,M);M()}}),[k,S,M,A,T]);const O=a.useMemo((()=>({reference:E,floating:C,setReference:w,setFloating:x})),[w,x]),j=a.useMemo((()=>({reference:k,floating:S})),[k,S]),I=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=ft(j.floating,d.x),r=ft(j.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...dt(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,j.floating,d.x,d.y]);return a.useMemo((()=>({...d,update:M,refs:O,elements:j,floatingStyles:I})),[d,M,O,j,I])}({strategy:"fixed",placement:M,whileElementsMounted:(...e)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=He(e),u=o||a?[...c?Le(c):[],...Le(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=ke(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(s||t(),!f||!h)return;const p={rootMargin:-X(d)+"px "+-X(o.clientWidth-(u+f))+"px "+-X(o.clientHeight-(d+h))+"px "+-X(u)+"px",threshold:K(0,Q(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||et(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),a}(c,n):null;let f,h=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let m=l?Ue(e):null;return l&&function t(){const r=Ue(e);m&&!et(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}(...e,{animationFrame:"always"===y}),elements:{reference:k.anchor},middleware:[mt({mainAxis:o+N,alignmentAxis:s}),c&>({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?vt():void 0,...I}),c&&yt({...I}),bt({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),D&&xt({element:D,padding:l}),Ht({arrowWidth:_,arrowHeight:N}),v&&wt({strategy:"referenceHidden",...I})]}),[W,B]=Wt(F),V=p(b);$((()=>{z&&V?.()}),[z,V]);const U=H.arrow?.x,G=H.arrow?.y,q=0!==H.arrow?.centerOffset,[Z,Y]=a.useState();return $((()=>{S&&Y(window.getComputedStyle(S).zIndex)}),[S]),(0,d.jsx)("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:z?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(Ot,{scope:n,placedSide:W,onArrowChange:T,arrowX:U,arrowY:G,shouldHideArrow:q,children:(0,d.jsx)(x.div,{"data-side":W,"data-align":B,...w,ref:C,style:{...w.style,animation:z?void 0:"none"}})})})}));It.displayName=Rt;var Pt="PopperArrow",Lt={top:"bottom",right:"left",bottom:"top",left:"right"},Ft=a.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=jt(Pt,n),a=Lt[o.placedSide];return(0,d.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(St,{...r,ref:t,style:{...r.style,display:"block"}})})}));function zt(e){return null!==e}Ft.displayName=Pt;var Ht=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=Wt(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let h="",p="";return"bottom"===l?(h=a?u:`${d}px`,p=-s+"px"):"top"===l?(h=a?u:`${d}px`,p=`${r.floating.height+s}px`):"right"===l?(h=-s+"px",p=a?u:`${f}px`):"left"===l&&(h=`${r.floating.width+s}px`,p=a?u:`${f}px`),{data:{x:h,y:p}}}});function Wt(e){const[t,n="center"]=e.split("-");return[t,n]}var Bt=_t,Vt=Mt,Ut=It,$t=Ft,Gt=a.forwardRef(((e,t)=>{const{container:n,...r}=e,[o,i]=a.useState(!1);$((()=>i(!0)),[]);const s=n||o&&globalThis?.document?.body;return s?g.createPortal((0,d.jsx)(x.div,{...r,ref:t}),s):null}));Gt.displayName="Portal";var qt=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=Zt(r.current);i.current="mounted"===l?e:"none"}),[l]),$((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Zt(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,c]),$((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=a=>{const i=Zt(r.current).includes(a.animationName);if(a.target===t&&i&&(c("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=Zt(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=u(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function Zt(e){return e?.animationName||"none"}qt.displayName="Presence";var Yt="rovingFocusGroup.onEntryFocus",Qt={bubbles:!1,cancelable:!0},Kt="RovingFocusGroup",[Jt,Xt,en]=S(Kt),[tn,nn]=f(Kt,[en]),[rn,on]=tn(Kt),an=a.forwardRef(((e,t)=>(0,d.jsx)(Jt.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(Jt.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(sn,{...e,ref:t})})})));an.displayName=Kt;var sn=a.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...v}=e,y=a.useRef(null),b=u(t,y),w=C(i),[k=null,S]=m({prop:l,defaultProp:c,onChange:f}),[E,D]=a.useState(!1),T=p(h),A=Xt(n),_=a.useRef(!1),[N,M]=a.useState(0);return a.useEffect((()=>{const e=y.current;if(e)return e.addEventListener(Yt,T),()=>e.removeEventListener(Yt,T)}),[T]),(0,d.jsx)(rn,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:k,onItemFocus:a.useCallback((e=>S(e)),[S]),onItemShiftTab:a.useCallback((()=>D(!0)),[]),onFocusableItemAdd:a.useCallback((()=>M((e=>e+1))),[]),onFocusableItemRemove:a.useCallback((()=>M((e=>e-1))),[]),children:(0,d.jsx)(x.div,{tabIndex:E||0===N?-1:0,"data-orientation":r,...v,ref:b,style:{outline:"none",...e.style},onMouseDown:s(e.onMouseDown,(()=>{_.current=!0})),onFocus:s(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!E){const t=new CustomEvent(Yt,Qt);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=A().filter((e=>e.focusable));dn([e.find((e=>e.active)),e.find((e=>e.id===k)),...e].filter(Boolean).map((e=>e.ref.current)),g)}}_.current=!1})),onBlur:s(e.onBlur,(()=>D(!1)))})})})),ln="RovingFocusGroupItem",cn=a.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...l}=e,c=Z(),u=i||c,f=on(ln,n),h=f.currentTabStopId===u,p=Xt(n),{onFocusableItemAdd:m,onFocusableItemRemove:g}=f;return a.useEffect((()=>{if(r)return m(),()=>g()}),[r,m,g]),(0,d.jsx)(Jt.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:(0,d.jsx)(x.span,{tabIndex:h?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:s(e.onMouseDown,(e=>{r?f.onItemFocus(u):e.preventDefault()})),onFocus:s(e.onFocus,(()=>f.onItemFocus(u))),onKeyDown:s(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:un[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=f.loop?(r=a+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(a+1)}setTimeout((()=>dn(o)))}var n,r}))})})}));cn.displayName=ln;var un={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dn(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var fn=an,hn=cn,pn=new WeakMap,mn=new WeakMap,gn={},vn=0,yn=function(e){return e&&(e.host||yn(e.parentNode))},bn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=yn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);gn[n]||(gn[n]=new WeakMap);var a=gn[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(pn.get(e)||0)+1,c=(a.get(e)||0)+1;pn.set(e,l),a.set(e,c),i.push(e),1===l&&o&&mn.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),vn++,function(){i.forEach((function(e){var t=pn.get(e)-1,o=a.get(e)-1;pn.set(e,t),a.set(e,o),t||(mn.has(e)||e.removeAttribute(r),mn.delete(e)),o||e.removeAttribute(n)})),--vn||(pn=new WeakMap,pn=new WeakMap,mn=new WeakMap,gn={})}}(r,o,n,"aria-hidden")):function(){return null}},wn=function(){return wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wn.apply(this,arguments)};function xn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var kn="right-scroll-bar-position",Sn="width-before-scroll-bar";function En(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Cn="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,Dn=new WeakMap;function Tn(e){return e}var An=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Tn);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=wn({async:!0,ssr:!1},e),t}(),Nn=function(){},Mn=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Nn,onWheelCapture:Nn,onTouchMoveCapture:Nn}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=xn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=h,k=function(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach((function(e){return En(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return Cn((function(){var t=Dn.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||En(e,null)})),r.forEach((function(e){n.has(e)||En(e,o)}))}Dn.set(i,e)}),[e]),i}([n,t]),S=wn(wn({},w),o);return a.createElement(a.Fragment,null,d&&a.createElement(x,{sideCar:An,removeScrollBar:u,shards:f,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),s?a.cloneElement(a.Children.only(l),wn(wn({},S),{ref:k})):a.createElement(y,wn({},S,{className:c,ref:k}),l))}));Mn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mn.classNames={fullWidth:Sn,zeroRight:kn};var Rn=function(e){var t=e.sideCar,n=xn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,wn({},n))};Rn.isSideCarExport=!0;var On=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o.nc;return t&&e.setAttribute("nonce",t),e}())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jn=function(){var e,t=(e=On(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},In={left:0,top:0,right:0,gap:0},Pn=function(e){return parseInt(e||"",10)||0},Ln=jn(),Fn="data-scroll-locked",zn=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Fn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(kn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Sn," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(kn," .").concat(kn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Sn," .").concat(Sn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Fn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Hn=function(){var e=parseInt(document.body.getAttribute(Fn)||"0",10);return isFinite(e)?e:0},Wn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(Fn,(Hn()+1).toString()),function(){var e=Hn()-1;e<=0?document.body.removeAttribute(Fn):document.body.setAttribute(Fn,e.toString())}}),[]);var i=a.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return In;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Pn(n),Pn(r),Pn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)}),[o]);return a.createElement(Ln,{styles:zn(i,!t,o,n?"":"!important")})},Bn=!1;if("undefined"!=typeof window)try{var Vn=Object.defineProperty({},"passive",{get:function(){return Bn=!0,!0}});window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch(e){Bn=!1}var Un=!!Bn&&{passive:!1},$n=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Gn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),qn(e,r)){var o=Zn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qn=function(e,t){return"v"===e?function(e){return $n(e,"overflowY")}(t):function(e){return $n(e,"overflowX")}(t)},Zn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qn=function(e){return[e.deltaX,e.deltaY]},Kn=function(e){return e&&"current"in e?e.current:e},Jn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Xn=0,er=[];function tr(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nr=(rr=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Xn++)[0],i=a.useState(jn)[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Kn),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,a=Yn(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Gn(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Gn(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,c=a>0,u=0,d=0;do{var f=Zn(e,i),h=f[0],p=f[1]-f[2]-o*h;(h||p)&&qn(e,i)&&(u+=p,d+=h),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(l=!0),l}(h,t,e,"h"===h?l:c)}),[]),c=a.useCallback((function(e){var n=e;if(er.length&&er[er.length-1]===i){var r="deltaY"in n?Qn(n):Yn(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(Kn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=a.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:tr(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=a.useCallback((function(e){n.current=Yn(e),r.current=void 0}),[]),f=a.useCallback((function(t){u(t.type,Qn(t),t.target,l(t,e.lockRef.current))}),[]),h=a.useCallback((function(t){u(t.type,Yn(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return er.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Un),document.addEventListener("touchmove",c,Un),document.addEventListener("touchstart",d,Un),function(){er=er.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Un),document.removeEventListener("touchmove",c,Un),document.removeEventListener("touchstart",d,Un)}}),[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(i,{styles:Jn(o)}):null,p?a.createElement(Wn,{gapMode:e.gapMode}):null)},An.useMedium(rr),Rn);var rr,or=a.forwardRef((function(e,t){return a.createElement(Mn,wn({},e,{ref:t,sideCar:nr}))}));or.classNames=Mn.classNames;const ar=or;var ir=["Enter"," "],sr=["ArrowUp","PageDown","End"],lr=["ArrowDown","PageUp","Home",...sr],cr={ltr:[...ir,"ArrowRight"],rtl:[...ir,"ArrowLeft"]},ur={ltr:["ArrowLeft"],rtl:["ArrowRight"]},dr="Menu",[fr,hr,pr]=S(dr),[mr,gr]=f(dr,[pr,Dt,nn]),vr=Dt(),yr=nn(),[br,wr]=mr(dr),[xr,kr]=mr(dr),Sr=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,l=vr(t),[c,u]=a.useState(null),f=a.useRef(!1),h=p(i),m=C(o);return a.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,d.jsx)(Bt,{...l,children:(0,d.jsx)(br,{scope:t,open:n,onOpenChange:h,content:c,onContentChange:u,children:(0,d.jsx)(xr,{scope:t,onClose:a.useCallback((()=>h(!1)),[h]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})};Sr.displayName=dr;var Er=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=vr(n);return(0,d.jsx)(Vt,{...o,...r,ref:t})}));Er.displayName="MenuAnchor";var Cr="MenuPortal",[Dr,Tr]=mr(Cr,{forceMount:void 0}),Ar=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=wr(Cr,t);return(0,d.jsx)(Dr,{scope:t,forceMount:n,children:(0,d.jsx)(qt,{present:n||a.open,children:(0,d.jsx)(Gt,{asChild:!0,container:o,children:r})})})};Ar.displayName=Cr;var _r="MenuContent",[Nr,Mr]=mr(_r),Rr=a.forwardRef(((e,t)=>{const n=Tr(_r,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wr(_r,e.__scopeMenu),i=kr(_r,e.__scopeMenu);return(0,d.jsx)(fr.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(qt,{present:r||a.open,children:(0,d.jsx)(fr.Slot,{scope:e.__scopeMenu,children:i.modal?(0,d.jsx)(Or,{...o,ref:t}):(0,d.jsx)(jr,{...o,ref:t})})})})})),Or=a.forwardRef(((e,t)=>{const n=wr(_r,e.__scopeMenu),r=a.useRef(null),o=u(t,r);return a.useEffect((()=>{const e=r.current;if(e)return bn(e)}),[]),(0,d.jsx)(Ir,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:s(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),jr=a.forwardRef(((e,t)=>{const n=wr(_r,e.__scopeMenu);return(0,d.jsx)(Ir,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Ir=a.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:y,disableOutsideScroll:b,...w}=e,x=wr(_r,n),k=kr(_r,n),S=vr(n),E=yr(n),C=hr(n),[D,T]=a.useState(null),A=a.useRef(null),N=u(t,A,x.onContentChange),M=a.useRef(0),R=a.useRef(""),j=a.useRef(0),I=a.useRef(null),P=a.useRef("right"),L=a.useRef(0),z=b?ar:a.Fragment,H=b?{as:v,allowPinchZoom:!0}:void 0;a.useEffect((()=>()=>window.clearTimeout(M.current)),[]),O();const W=a.useCallback((e=>P.current===I.current?.side&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,s=t[e].y,l=t[a].x,c=t[a].y;s>r!=c>r&&n<(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,I.current?.area)),[]);return(0,d.jsx)(Nr,{scope:n,searchRef:R,onItemEnter:a.useCallback((e=>{W(e)&&e.preventDefault()}),[W]),onItemLeave:a.useCallback((e=>{W(e)||(A.current?.focus(),T(null))}),[W]),onTriggerLeave:a.useCallback((e=>{W(e)&&e.preventDefault()}),[W]),pointerGraceTimerRef:j,onPointerGraceIntentChange:a.useCallback((e=>{I.current=e}),[]),children:(0,d.jsx)(z,{...H,children:(0,d.jsx)(F,{asChild:!0,trapped:o,onMountAutoFocus:s(i,(e=>{e.preventDefault(),A.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:l,children:(0,d.jsx)(_,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:y,children:(0,d.jsx)(fn,{asChild:!0,...E,dir:k.dir,orientation:"vertical",loop:r,currentTabStopId:D,onCurrentTabStopIdChange:T,onEntryFocus:s(f,(e=>{k.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(Ut,{role:"menu","aria-orientation":"vertical","data-state":lo(x.open),"data-radix-menu-content":"",dir:k.dir,...S,...w,ref:N,style:{outline:"none",...w.style},onKeyDown:s(w.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{const t=R.current+e,n=C().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(a=a.filter((e=>e!==n)));const l=a.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}(n.map((e=>e.textValue)),t,o),i=n.find((e=>e.textValue===a))?.ref.current;!function e(t){R.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout((()=>e("")),1e3))}(t),i&&setTimeout((()=>i.focus()))})(e.key));const o=A.current;if(e.target!==o)return;if(!lr.includes(e.key))return;e.preventDefault();const a=C().filter((e=>!e.disabled)).map((e=>e.ref.current));sr.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:s(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),R.current="")})),onPointerMove:s(e.onPointerMove,fo((e=>{const t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>L.current?"right":"left";P.current=t,L.current=e.clientX}})))})})})})})})}));Rr.displayName=_r;var Pr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,d.jsx)(x.div,{role:"group",...r,ref:t})}));Pr.displayName="MenuGroup";var Lr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,d.jsx)(x.div,{...r,ref:t})}));Lr.displayName="MenuLabel";var Fr="MenuItem",zr="menu.itemSelect",Hr=a.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=a.useRef(null),l=kr(Fr,e.__scopeMenu),c=Mr(Fr,e.__scopeMenu),f=u(t,i),h=a.useRef(!1);return(0,d.jsx)(Wr,{...o,ref:f,disabled:n,onClick:s(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(zr,{bubbles:!0,cancelable:!0});e.addEventListener(zr,(e=>r?.(e)),{once:!0}),k(e,t),t.defaultPrevented?h.current=!1:l.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),h.current=!0},onPointerUp:s(e.onPointerUp,(e=>{h.current||e.currentTarget?.click()})),onKeyDown:s(e.onKeyDown,(e=>{const t=""!==c.searchRef.current;n||t&&" "===e.key||ir.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Hr.displayName=Fr;var Wr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,l=Mr(Fr,n),c=yr(n),f=a.useRef(null),h=u(t,f),[p,m]=a.useState(!1),[g,v]=a.useState("");return a.useEffect((()=>{const e=f.current;e&&v((e.textContent??"").trim())}),[i.children]),(0,d.jsx)(fr.ItemSlot,{scope:n,disabled:r,textValue:o??g,children:(0,d.jsx)(hn,{asChild:!0,...c,focusable:!r,children:(0,d.jsx)(x.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:h,onPointerMove:s(e.onPointerMove,fo((e=>{r?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))}))),onPointerLeave:s(e.onPointerLeave,fo((e=>l.onItemLeave(e)))),onFocus:s(e.onFocus,(()=>m(!0))),onBlur:s(e.onBlur,(()=>m(!1)))})})})})),Br=a.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,d.jsx)(Qr,{scope:e.__scopeMenu,checked:n,children:(0,d.jsx)(Hr,{role:"menuitemcheckbox","aria-checked":co(n)?"mixed":n,...o,ref:t,"data-state":uo(n),onSelect:s(o.onSelect,(()=>r?.(!!co(n)||!n)),{checkForDefaultPrevented:!1})})})}));Br.displayName="MenuCheckboxItem";var Vr="MenuRadioGroup",[Ur,$r]=mr(Vr,{value:void 0,onValueChange:()=>{}}),Gr=a.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=p(r);return(0,d.jsx)(Ur,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,d.jsx)(Pr,{...o,ref:t})})}));Gr.displayName=Vr;var qr="MenuRadioItem",Zr=a.forwardRef(((e,t)=>{const{value:n,...r}=e,o=$r(qr,e.__scopeMenu),a=n===o.value;return(0,d.jsx)(Qr,{scope:e.__scopeMenu,checked:a,children:(0,d.jsx)(Hr,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":uo(a),onSelect:s(r.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));Zr.displayName=qr;var Yr="MenuItemIndicator",[Qr,Kr]=mr(Yr,{checked:!1}),Jr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Kr(Yr,n);return(0,d.jsx)(qt,{present:r||co(a.checked)||!0===a.checked,children:(0,d.jsx)(x.span,{...o,ref:t,"data-state":uo(a.checked)})})}));Jr.displayName=Yr;var Xr=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,d.jsx)(x.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));Xr.displayName="MenuSeparator";var eo=a.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=vr(n);return(0,d.jsx)($t,{...o,...r,ref:t})}));eo.displayName="MenuArrow";var to="MenuSub",[no,ro]=mr(to),oo="MenuSubTrigger",ao=a.forwardRef(((e,t)=>{const n=wr(oo,e.__scopeMenu),r=kr(oo,e.__scopeMenu),o=ro(oo,e.__scopeMenu),i=Mr(oo,e.__scopeMenu),l=a.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=i,h={__scopeMenu:e.__scopeMenu},p=a.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return a.useEffect((()=>p),[p]),a.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),f(null)}}),[u,f]),(0,d.jsx)(Er,{asChild:!0,...h,children:(0,d.jsx)(Wr,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":lo(n.open),...e,ref:c(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:s(e.onPointerMove,fo((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||l.current||(i.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{n.onOpenChange(!0),p()}),100))}))),onPointerLeave:s(e.onPointerLeave,fo((e=>{p();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,a=o?-5:5,s=t[o?"left":"right"],l=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:s(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;e.disabled||o&&" "===t.key||cr[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));ao.displayName=oo;var io="MenuSubContent",so=a.forwardRef(((e,t)=>{const n=Tr(_r,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=wr(_r,e.__scopeMenu),l=kr(_r,e.__scopeMenu),c=ro(io,e.__scopeMenu),f=a.useRef(null),h=u(t,f);return(0,d.jsx)(fr.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(qt,{present:r||i.open,children:(0,d.jsx)(fr.Slot,{scope:e.__scopeMenu,children:(0,d.jsx)(Ir,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:h,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:s(e.onFocusOutside,(e=>{e.target!==c.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:s(e.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:s(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=ur[l.dir].includes(e.key);t&&n&&(i.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())}))})})})})}));function lo(e){return e?"open":"closed"}function co(e){return"indeterminate"===e}function uo(e){return co(e)?"indeterminate":e?"checked":"unchecked"}function fo(e){return t=>"mouse"===t.pointerType?e(t):void 0}so.displayName=io;var ho=Sr,po=Er,mo=Ar,go=Rr,vo=Pr,yo=Lr,bo=Hr,wo=Br,xo=Gr,ko=Zr,So=Jr,Eo=Xr,Co=eo,Do=ao,To=so,Ao="DropdownMenu",[_o,No]=f(Ao,[gr]),Mo=gr(),[Ro,Oo]=_o(Ao),jo=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=Mo(t),u=a.useRef(null),[f=!1,h]=m({prop:o,defaultProp:i,onChange:s});return(0,d.jsx)(Ro,{scope:t,triggerId:Z(),triggerRef:u,contentId:Z(),open:f,onOpenChange:h,onOpenToggle:a.useCallback((()=>h((e=>!e))),[h]),modal:l,children:(0,d.jsx)(ho,{...c,open:f,onOpenChange:h,dir:r,modal:l,children:n})})};jo.displayName=Ao;var Io="DropdownMenuTrigger",Po=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Oo(Io,n),i=Mo(n);return(0,d.jsx)(po,{asChild:!0,...i,children:(0,d.jsx)(x.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:c(t,a.triggerRef),onPointerDown:s(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:s(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Po.displayName=Io;var Lo=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Mo(t);return(0,d.jsx)(mo,{...r,...n})};Lo.displayName="DropdownMenuPortal";var Fo="DropdownMenuContent",zo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oo(Fo,n),i=Mo(n),l=a.useRef(!1);return(0,d.jsx)(go,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:s(e.onCloseAutoFocus,(e=>{l.current||o.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:s(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(l.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));zo.displayName=Fo,a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(vo,{...o,...r,ref:t})})).displayName="DropdownMenuGroup";var Ho=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(yo,{...o,...r,ref:t})}));Ho.displayName="DropdownMenuLabel";var Wo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(bo,{...o,...r,ref:t})}));Wo.displayName="DropdownMenuItem";var Bo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(wo,{...o,...r,ref:t})}));Bo.displayName="DropdownMenuCheckboxItem",a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(xo,{...o,...r,ref:t})})).displayName="DropdownMenuRadioGroup";var Vo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(ko,{...o,...r,ref:t})}));Vo.displayName="DropdownMenuRadioItem";var Uo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(So,{...o,...r,ref:t})}));Uo.displayName="DropdownMenuItemIndicator";var $o=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(Eo,{...o,...r,ref:t})}));$o.displayName="DropdownMenuSeparator",a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(Co,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var Go=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(Do,{...o,...r,ref:t})}));Go.displayName="DropdownMenuSubTrigger";var qo=a.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mo(n);return(0,d.jsx)(To,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));qo.displayName="DropdownMenuSubContent";var Zo=jo,Yo=Po,Qo=Lo,Ko=zo,Jo=Ho,Xo=Wo,ea=Bo,ta=Vo,na=Uo,ra=$o,oa=Go,aa=qo,ia={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const sa=(e,t)=>{const n=(0,a.forwardRef)((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:s="",children:l,...c},u)=>{return(0,a.createElement)("svg",{ref:u,...ia,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:["lucide",`lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,s].join(" "),...c},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(l)?l:[l]]);var d}));return n.displayName=`${e}`,n},la=sa("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),ca=sa("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ua=sa("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);class da extends Error{}class fa extends da{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class ha extends da{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class pa extends da{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ma extends da{}class ga extends da{constructor(e){super(`Invalid unit ${e}`)}}class va extends da{}class ya extends da{constructor(){super("Zone is an abstract class")}}const ba="numeric",wa="short",xa="long",ka={year:ba,month:ba,day:ba},Sa={year:ba,month:wa,day:ba},Ea={year:ba,month:wa,day:ba,weekday:wa},Ca={year:ba,month:xa,day:ba},Da={year:ba,month:xa,day:ba,weekday:xa},Ta={hour:ba,minute:ba},Aa={hour:ba,minute:ba,second:ba},_a={hour:ba,minute:ba,second:ba,timeZoneName:wa},Na={hour:ba,minute:ba,second:ba,timeZoneName:xa},Ma={hour:ba,minute:ba,hourCycle:"h23"},Ra={hour:ba,minute:ba,second:ba,hourCycle:"h23"},Oa={hour:ba,minute:ba,second:ba,hourCycle:"h23",timeZoneName:wa},ja={hour:ba,minute:ba,second:ba,hourCycle:"h23",timeZoneName:xa},Ia={year:ba,month:ba,day:ba,hour:ba,minute:ba},Pa={year:ba,month:ba,day:ba,hour:ba,minute:ba,second:ba},La={year:ba,month:wa,day:ba,hour:ba,minute:ba},Fa={year:ba,month:wa,day:ba,hour:ba,minute:ba,second:ba},za={year:ba,month:wa,day:ba,weekday:wa,hour:ba,minute:ba},Ha={year:ba,month:xa,day:ba,hour:ba,minute:ba,timeZoneName:wa},Wa={year:ba,month:xa,day:ba,hour:ba,minute:ba,second:ba,timeZoneName:wa},Ba={year:ba,month:xa,day:ba,weekday:xa,hour:ba,minute:ba,timeZoneName:xa},Va={year:ba,month:xa,day:ba,weekday:xa,hour:ba,minute:ba,second:ba,timeZoneName:xa};class Ua{get type(){throw new ya}get name(){throw new ya}get ianaName(){return this.name}get isUniversal(){throw new ya}offsetName(e,t){throw new ya}formatOffset(e,t){throw new ya}offset(e){throw new ya}equals(e){throw new ya}get isValid(){throw new ya}}let $a=null;class Ga extends Ua{static get instance(){return null===$a&&($a=new Ga),$a}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return fs(e,t,n)}formatOffset(e,t){return gs(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}const qa=new Map,Za={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},Ya=new Map;class Qa extends Ua{static create(e){let t=Ya.get(e);return void 0===t&&Ya.set(e,t=new Qa(e)),t}static resetCache(){Ya.clear(),qa.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Qa.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return fs(e,t,n,this.name)}formatOffset(e,t){return gs(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=qa.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),qa.set(e,t)),t}(this.name);let[r,o,a,i,s,l,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:o}=n[e],a=Za[t];"era"===t?r[a]=o:$i(a)||(r[a]=parseInt(o,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,a,i,s,l,c,u]=r;return[i,o,a,s,l,c,u]}(n,t);"BC"===i&&(r=1-Math.abs(r));let u=+t;const d=u%1e3;return u-=d>=0?d:1e3+d,(ls({year:r,month:o,day:a,hour:24===s?0:s,minute:l,second:c,millisecond:0})-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Ka={};const Ja=new Map;function Xa(e,t={}){const n=JSON.stringify([e,t]);let r=Ja.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),Ja.set(n,r)),r}const ei=new Map,ti=new Map;let ni=null;const ri=new Map;function oi(e){let t=ri.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),ri.set(e,t)),t}const ai=new Map;function ii(e,t,n,r){const o=e.listingMode();return"error"===o?null:"en"===o?n(t):r(t)}class si{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:o,...a}=n;if(!t||Object.keys(a).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=ei.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),ei.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return es(this.floor?Math.floor(e):os(e,3),this.padTo)}}class li{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Qa.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||r,this.dtf=Xa(t,o)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ci{constructor(e,t,n){this.opts={style:"long",...n},!t&&Zi()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let a=ti.get(o);return void 0===a&&(a=new Intl.RelativeTimeFormat(e,t),ti.set(o,a)),a}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${o[e][0]}`;case-1:return n?"yesterday":`last ${o[e][0]}`;case 0:return n?"today":`this ${o[e][0]}`}}const i=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return i?`${s} ${u} ago`:`in ${s} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const ui={firstDay:1,minimalDays:4,weekend:[6,7]};class di{static fromOpts(e){return di.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,o=!1){const a=e||_i.defaultLocale,i=a||(o?"en-US":ni||(ni=(new Intl.DateTimeFormat).resolvedOptions().locale,ni)),s=t||_i.defaultNumberingSystem,l=n||_i.defaultOutputCalendar,c=Ji(r)||_i.defaultWeekSettings;return new di(i,s,l,c,a)}static resetCache(){ni=null,Ja.clear(),ei.clear(),ti.clear(),ri.clear(),ai.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return di.create(e,t,n,r)}constructor(e,t,n,r,o){const[a,i,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=Xa(e).resolvedOptions(),r=e}catch(o){const a=e.substring(0,n);t=Xa(a).resolvedOptions(),r=a}const{numberingSystem:o,calendar:a}=t;return[r,o,a]}}(e);this.locale=a,this.numberingSystem=t||i||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===oi(e.locale).numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?di.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Ji(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ii(this,e,xs,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";if(!this.monthsCache[o][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[o][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=Sc.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[o][e]}))}weekdays(e,t=!1){return ii(this,e,Cs,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=Sc.utc(2016,11,13+n);t.push(e(r))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(){return ii(this,void 0,(()=>Ds),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Sc.utc(2016,11,13,9),Sc.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return ii(this,e,Ns,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Sc.utc(-40,1,1),Sc.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return r?r.value:null}numberFormatter(e={}){return new si(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new li(e,this.intl,t)}relFormatter(e={}){return new ci(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=Ka[n];return r||(r=new Intl.ListFormat(e,t),Ka[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||oi(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Yi()?function(e){let t=ai.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...ui,...t}),ai.set(e,t)}return t}(this.locale):ui}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let fi=null;class hi extends Ua{static get utcInstance(){return null===fi&&(fi=new hi(0)),fi}static instance(e){return 0===e?hi.utcInstance:new hi(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new hi(hs(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${gs(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${gs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return gs(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class pi extends Ua{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function mi(e,t){if($i(e)||null===e)return t;if(e instanceof Ua)return e;if(function(e){return"string"==typeof e}(e)){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?Ga.instance:"utc"===n||"gmt"===n?hi.utcInstance:hi.parseSpecifier(n)||Qa.create(e)}return Gi(e)?hi.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new pi(e)}const gi={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yi=gi.hanidec.replace(/[\[|\]]/g,"").split(""),bi=new Map;function wi({numberingSystem:e},t=""){const n=e||"latn";let r=bi.get(n);void 0===r&&(r=new Map,bi.set(n,r));let o=r.get(t);return void 0===o&&(o=new RegExp(`${gi[n]}${t}`),r.set(t,o)),o}let xi,ki=()=>Date.now(),Si="system",Ei=null,Ci=null,Di=null,Ti=60,Ai=null;class _i{static get now(){return ki}static set now(e){ki=e}static set defaultZone(e){Si=e}static get defaultZone(){return mi(Si,Ga.instance)}static get defaultLocale(){return Ei}static set defaultLocale(e){Ei=e}static get defaultNumberingSystem(){return Ci}static set defaultNumberingSystem(e){Ci=e}static get defaultOutputCalendar(){return Di}static set defaultOutputCalendar(e){Di=e}static get defaultWeekSettings(){return Ai}static set defaultWeekSettings(e){Ai=Ji(e)}static get twoDigitCutoffYear(){return Ti}static set twoDigitCutoffYear(e){Ti=e%100}static get throwOnInvalid(){return xi}static set throwOnInvalid(e){xi=e}static resetCaches(){di.resetCache(),Qa.resetCache(),Sc.resetCache(),bi.clear()}}class Ni{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Mi=[0,31,59,90,120,151,181,212,243,273,304,334],Ri=[0,31,60,91,121,152,182,213,244,274,305,335];function Oi(e,t){return new Ni("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ji(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return 0===o?7:o}function Ii(e,t,n){return n+(as(e)?Ri:Mi)[t-1]}function Pi(e,t){const n=as(e)?Ri:Mi,r=n.findIndex((e=>e<t));return{month:r+1,day:t-n[r]}}function Li(e,t){return(e-t+7)%7+1}function Fi(e,t=4,n=1){const{year:r,month:o,day:a}=e,i=Ii(r,o,a),s=Li(ji(r,o,a),n);let l,c=Math.floor((i-s+14-t)/7);return c<1?(l=r-1,c=us(l,t,n)):c>us(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...vs(e)}}function zi(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:a}=e,i=Li(ji(r,1,t),n),s=is(r);let l,c=7*o+a-i-7+t;c<1?(l=r-1,c+=is(l)):c>s?(l=r+1,c-=is(r)):l=r;const{month:u,day:d}=Pi(l,c);return{year:l,month:u,day:d,...vs(e)}}function Hi(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Ii(t,n,r),...vs(e)}}function Wi(e){const{year:t,ordinal:n}=e,{month:r,day:o}=Pi(t,n);return{year:t,month:r,day:o,...vs(e)}}function Bi(e,t){if(!$i(e.localWeekday)||!$i(e.localWeekNumber)||!$i(e.localWeekYear)){if(!$i(e.weekday)||!$i(e.weekNumber)||!$i(e.weekYear))throw new ma("Cannot mix locale-based week fields with ISO-based week fields");return $i(e.localWeekday)||(e.weekday=e.localWeekday),$i(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),$i(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Vi(e){const t=qi(e.year),n=Xi(e.month,1,12),r=Xi(e.day,1,ss(e.year,e.month));return t?n?!r&&Oi("day",e.day):Oi("month",e.month):Oi("year",e.year)}function Ui(e){const{hour:t,minute:n,second:r,millisecond:o}=e,a=Xi(t,0,23)||24===t&&0===n&&0===r&&0===o,i=Xi(n,0,59),s=Xi(r,0,59),l=Xi(o,0,999);return a?i?s?!l&&Oi("millisecond",o):Oi("second",r):Oi("minute",n):Oi("hour",t)}function $i(e){return void 0===e}function Gi(e){return"number"==typeof e}function qi(e){return"number"==typeof e&&e%1==0}function Zi(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Yi(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Qi(e,t,n){if(0!==e.length)return e.reduce(((e,r)=>{const o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o}),null)[1]}function Ki(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ji(e){if(null==e)return null;if("object"!=typeof e)throw new va("Week settings must be an object");if(!Xi(e.firstDay,1,7)||!Xi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Xi(e,1,7))))throw new va("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Xi(e,t,n){return qi(e)&&e>=t&&e<=n}function es(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function ts(e){return $i(e)||null===e||""===e?void 0:parseInt(e,10)}function ns(e){return $i(e)||null===e||""===e?void 0:parseFloat(e)}function rs(e){if(!$i(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function os(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function as(e){return e%4==0&&(e%100!=0||e%400==0)}function is(e){return as(e)?366:365}function ss(e,t){const n=function(e){return e-12*Math.floor(e/12)}(t-1)+1;return 2===n?as(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ls(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function cs(e,t,n){return-Li(ji(e,1,t),n)+t-1}function us(e,t=4,n=1){const r=cs(e,t,n),o=cs(e+1,t,n);return(is(e)-r+o)/7}function ds(e){return e>99?e:e>_i.twoDigitCutoffYear?1900+e:2e3+e}function fs(e,t,n,r=null){const o=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const i={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,i).formatToParts(o).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function hs(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ps(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new va(`Invalid unit value ${e}`);return t}function ms(e,t){const n={};for(const r in e)if(Ki(e,r)){const o=e[r];if(null==o)continue;n[t(r)]=ps(o)}return n}function gs(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${es(n,2)}:${es(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${es(n,2)}${es(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function vs(e){return function(e){return["hour","minute","second","millisecond"].reduce(((t,n)=>(t[n]=e[n],t)),{})}(e)}const ys=["January","February","March","April","May","June","July","August","September","October","November","December"],bs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ws=["J","F","M","A","M","J","J","A","S","O","N","D"];function xs(e){switch(e){case"narrow":return[...ws];case"short":return[...bs];case"long":return[...ys];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ks=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ss=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Es=["M","T","W","T","F","S","S"];function Cs(e){switch(e){case"narrow":return[...Es];case"short":return[...Ss];case"long":return[...ks];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ds=["AM","PM"],Ts=["Before Christ","Anno Domini"],As=["BC","AD"],_s=["B","A"];function Ns(e){switch(e){case"narrow":return[..._s];case"short":return[...As];case"long":return[...Ts];default:return null}}function Ms(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Rs={D:ka,DD:Sa,DDD:Ca,DDDD:Da,t:Ta,tt:Aa,ttt:_a,tttt:Na,T:Ma,TT:Ra,TTT:Oa,TTTT:ja,f:Ia,ff:La,fff:Ha,ffff:Ba,F:Pa,FF:Fa,FFF:Wa,FFFF:Va};class Os{static create(e,t={}){return new Os(e,t)}static parseFormat(e){let t=null,n="",r=!1;const o=[];for(let a=0;a<e.length;a++){const i=e.charAt(a);"'"===i?((n.length>0||r)&&o.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||i===t?n+=i:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=i,t=i)}return n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Rs[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return es(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(t,n)=>this.loc.extract(e,t,n),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",i=(t,r)=>n?function(e,t){return xs(t)[e.month-1]}(e,t):o(r?{month:t}:{month:t,day:"numeric"},"month"),s=(t,r)=>n?function(e,t){return Cs(t)[e.weekday-1]}(e,t):o(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=Os.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Ns(t)[e.year<0?0:1]}(e,t):o({era:t},"era");return Ms(Os.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return Ds[e.hour<12?0:1]}(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?o({day:"numeric"},"day"):this.num(e.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return i("short",!0);case"LLLL":return i("long",!0);case"LLLLL":return i("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(e.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return i("short",!1);case"MMMM":return i("long",!1);case"MMMMM":return i("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(e.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=Os.parseFormat(t),a=o.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]),i=e.shiftTo(...a.map(r).filter((e=>e)));return Ms(o,((e,t)=>o=>{const a=r(o);if(a){const r=t.isNegativeDuration&&a!==t.largestUnit?n:1;let i;return i="negativeLargestOnly"===this.opts.signMode&&a!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(a)*r,o.length,i)}return o})(i,{isNegativeDuration:i<0,largestUnit:Object.keys(i.values)[0]}))}}const js=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Is(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Ps(...e){return t=>e.reduce((([e,n,r],o)=>{const[a,i,s]=o(t,r);return[{...e,...a},i||n,s]}),[{},null,1]).slice(0,2)}function Ls(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function Fs(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=ts(t[n+o]);return[r,null,n+o]}}const zs=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Hs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ws=RegExp(`${Hs.source}(?:${zs.source}?(?:\\[(${js.source})\\])?)?`),Bs=RegExp(`(?:[Tt]${Ws.source})?`),Vs=Fs("weekYear","weekNumber","weekDay"),Us=Fs("year","ordinal"),$s=RegExp(`${Hs.source} ?(?:${zs.source}|(${js.source}))?`),Gs=RegExp(`(?: ${$s.source})?`);function qs(e,t,n){const r=e[t];return $i(r)?n:ts(r)}function Zs(e,t){return[{hours:qs(e,t,0),minutes:qs(e,t+1,0),seconds:qs(e,t+2,0),milliseconds:rs(e[t+3])},null,t+4]}function Ys(e,t){const n=!e[t]&&!e[t+1],r=hs(e[t+1],e[t+2]);return[{},n?null:hi.instance(r),t+3]}function Qs(e,t){return[{},e[t]?Qa.create(e[t]):null,t+1]}const Ks=RegExp(`^T?${Hs.source}$`),Js=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Xs(e){const[t,n,r,o,a,i,s,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],f=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:f(ns(n)),months:f(ns(r)),weeks:f(ns(o)),days:f(ns(a)),hours:f(ns(i)),minutes:f(ns(s)),seconds:f(ns(l),"-0"===l),milliseconds:f(rs(c),d)}]}const el={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tl(e,t,n,r,o,a,i){const s={year:2===t.length?ds(ts(t)):ts(t),month:bs.indexOf(n)+1,day:ts(r),hour:ts(o),minute:ts(a)};return i&&(s.second=ts(i)),e&&(s.weekday=e.length>3?ks.indexOf(e)+1:Ss.indexOf(e)+1),s}const nl=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function rl(e){const[,t,n,r,o,a,i,s,l,c,u,d]=e,f=tl(t,o,r,n,a,i,s);let h;return h=l?el[l]:c?0:hs(u,d),[f,new hi(h)]}const ol=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,al=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,il=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function sl(e){const[,t,n,r,o,a,i,s]=e;return[tl(t,o,r,n,a,i,s),hi.utcInstance]}function ll(e){const[,t,n,r,o,a,i,s]=e;return[tl(t,s,n,r,o,a,i),hi.utcInstance]}const cl=Is(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bs),ul=Is(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Bs),dl=Is(/(\d{4})-?(\d{3})/,Bs),fl=Is(Ws),hl=Ps((function(e,t){return[{year:qs(e,t),month:qs(e,t+1,1),day:qs(e,t+2,1)},null,t+3]}),Zs,Ys,Qs),pl=Ps(Vs,Zs,Ys,Qs),ml=Ps(Us,Zs,Ys,Qs),gl=Ps(Zs,Ys,Qs),vl=Ps(Zs),yl=Is(/(\d{4})-(\d\d)-(\d\d)/,Gs),bl=Is($s),wl=Ps(Zs,Ys,Qs),xl="Invalid Duration",kl={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Sl={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...kl},El={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...kl},Cl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Dl=Cl.slice(0).reverse();function Tl(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ml(r)}function Al(e,t){let n=t.milliseconds??0;for(const r of Dl.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function _l(e,t){const n=Al(e,t)<0?-1:1;Cl.reduceRight(((r,o)=>{if($i(t[o]))return r;if(r){const a=t[r]*n,i=e[o][r],s=Math.floor(a/i);t[o]+=s*n,t[r]-=s*i*n}return o}),null),Cl.reduce(((n,r)=>{if($i(t[r]))return n;if(n){const o=t[n]%1;t[n]-=o,t[r]+=o*e[n][r]}return r}),null)}function Nl(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}class Ml{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?El:Sl;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||di.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Ml.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new va("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ml({values:ms(e,Ml.normalizeUnit),loc:di.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Gi(e))return Ml.fromMillis(e);if(Ml.isDuration(e))return e;if("object"==typeof e)return Ml.fromObject(e);throw new va(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Ls(e,[Js,Xs])}(e);return n?Ml.fromObject(n,t):Ml.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Ls(e,[Ks,vl])}(e);return n?Ml.fromObject(n,t):Ml.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new va("need to specify a reason the Duration is invalid");const n=e instanceof Ni?e:new Ni(e,t);if(_i.throwOnInvalid)throw new pa(n);return new Ml({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new ga(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Os.create(this.loc,n).formatDurationFromString(this,e):xl}toHuman(e={}){if(!this.isValid)return xl;const t=!1!==e.showZeros,n=Cl.map((n=>{const r=this.values[n];return $i(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=os(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Sc.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Al(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ml.fromDurationLike(e),n={};for(const e of Cl)(Ki(t.values,e)||Ki(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Tl(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Ml.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=ps(e(this.values[n],n));return Tl(this,{values:t},!0)}get(e){return this[Ml.normalizeUnit(e)]}set(e){return this.isValid?Tl(this,{values:{...this.values,...ms(e,Ml.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Tl(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return _l(this.matrix,e),Tl(this,{values:e},!0)}rescale(){return this.isValid?Tl(this,{values:Nl(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Ml.normalizeUnit(e)));const t={},n={},r=this.toObject();let o;for(const a of Cl)if(e.indexOf(a)>=0){o=a;let e=0;for(const t in n)e+=this.matrix[t][a]*n[t],n[t]=0;Gi(r[a])&&(e+=r[a]);const i=Math.trunc(e);t[a]=i,n[a]=(1e3*e-1e3*i)/1e3}else Gi(r[a])&&(n[a]=r[a]);for(const e in n)0!==n[e]&&(t[o]+=e===o?n[e]:n[e]/this.matrix[o][e]);return _l(this.matrix,t),Tl(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Tl(this,{values:e},!0)}removeZeros(){return this.isValid?Tl(this,{values:Nl(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const r of Cl)if(t=this.values[r],n=e.values[r],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Rl="Invalid Interval";class Ol{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new va("need to specify a reason the Interval is invalid");const n=e instanceof Ni?e:new Ni(e,t);if(_i.throwOnInvalid)throw new ha(n);return new Ol({invalid:n})}static fromDateTimes(e,t){const n=Ec(e),r=Ec(t),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Ol.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Ol.invalid("missing or invalid end"):Ol.invalid("missing or invalid start")}(n,r);return null==o?new Ol({start:n,end:r}):o}static after(e,t){const n=Ml.fromDurationLike(t),r=Ec(e);return Ol.fromDateTimes(r,r.plus(n))}static before(e,t){const n=Ml.fromDurationLike(t),r=Ec(e);return Ol.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,o,a,i;try{e=Sc.fromISO(n,t),o=e.isValid}catch(r){o=!1}try{a=Sc.fromISO(r,t),i=a.isValid}catch(r){i=!1}if(o&&i)return Ol.fromDateTimes(e,a);if(o){const n=Ml.fromISO(r,t);if(n.isValid)return Ol.after(e,n)}else if(i){const e=Ml.fromISO(n,t);if(e.isValid)return Ol.before(a,e)}}return Ol.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Ol.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ec).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:r}=this,o=0;for(;r<this.e;){const e=t[o]||this.e,a=+e>+this.e?this.e:e;n.push(Ol.fromDateTimes(r,a)),r=a,o+=1}return n}splitBy(e){const t=Ml.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,o=1;const a=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits((e=>e*o)));n=+e>+this.e?this.e:e,a.push(Ol.fromDateTimes(r,n)),r=n,o+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Ol.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Ol.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],o=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),a=Array.prototype.concat(...o).sort(((e,t)=>e.time-t.time));for(const e of a)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&r.push(Ol.fromDateTimes(t,e.time)),t=null);return Ol.merge(r)}difference(...e){return Ol.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Rl}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ka,t={}){return this.isValid?Os.create(this.s.loc.clone(t),e).formatInterval(this):Rl}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Rl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Rl}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Rl}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Rl}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ml.invalid(this.invalidReason)}mapEndpoints(e){return Ol.fromDateTimes(e(this.s),e(this.e))}}class jl{static hasDST(e=_i.defaultZone){const t=Sc.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Qa.isValidZone(e)}static normalizeZone(e){return mi(e,_i.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||di.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||di.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||di.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||di.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||di.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||di.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||di.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return di.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return di.create(t,null,"gregory").eras(e)}static features(){return{relative:Zi(),localeWeek:Yi()}}}function Il(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Ml.fromMillis(r).as("days"))}function Pl(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(gi.hanidec))t+=yi.indexOf(e[n]);else for(const e in vi){const[n,o]=vi[e];r>=n&&r<=o&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Ll=`[ ${String.fromCharCode(160)}]`,Fl=new RegExp(Ll,"g");function zl(e){return e.replace(/\./g,"\\.?").replace(Fl,Ll)}function Hl(e){return e.replace(/\./g,"").replace(Fl," ").toLowerCase()}function Wl(e,t){return null===e?null:{regex:RegExp(e.map(zl).join("|")),deser:([n])=>e.findIndex((e=>Hl(n)===Hl(e)))+t}}function Bl(e,t){return{regex:e,deser:([,e,t])=>hs(e,t),groups:t}}function Vl(e){return{regex:e,deser:([e])=>e}}const Ul={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let $l=null;function Gl(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=Yl(Os.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}class ql{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Gl(Os.parseFormat(t),e),this.units=this.tokens.map((t=>function(e,t){const n=wi(t),r=wi(t,"{2}"),o=wi(t,"{3}"),a=wi(t,"{4}"),i=wi(t,"{6}"),s=wi(t,"{1,2}"),l=wi(t,"{1,3}"),c=wi(t,"{1,6}"),u=wi(t,"{1,9}"),d=wi(t,"{2,4}"),f=wi(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return h(p);switch(p.val){case"G":return Wl(t.eras("short"),0);case"GG":return Wl(t.eras("long"),0);case"y":return Pl(c);case"yy":case"kk":return Pl(d,ds);case"yyyy":case"kkkk":return Pl(a);case"yyyyy":return Pl(f);case"yyyyyy":return Pl(i);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Pl(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Pl(r);case"MMM":return Wl(t.months("short",!0),1);case"MMMM":return Wl(t.months("long",!0),1);case"LLL":return Wl(t.months("short",!1),1);case"LLLL":return Wl(t.months("long",!1),1);case"o":case"S":return Pl(l);case"ooo":case"SSS":return Pl(o);case"u":return Vl(u);case"uu":return Vl(s);case"uuu":case"E":case"c":return Pl(n);case"a":return Wl(t.meridiems(),0);case"EEE":return Wl(t.weekdays("short",!1),1);case"EEEE":return Wl(t.weekdays("long",!1),1);case"ccc":return Wl(t.weekdays("short",!0),1);case"cccc":return Wl(t.weekdays("long",!0),1);case"Z":case"ZZ":return Bl(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Bl(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return Vl(/[a-z_+-/]{1,256}?/i);case" ":return Vl(/[^\S\n\r]/);default:return h(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),this.disqualifyingUnit=this.units.find((e=>e.invalidReason)),!this.disqualifyingUnit){const[e,t]=function(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const o in n)if(Ki(n,o)){const a=n[o],i=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+i))),t+=i}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,o,a]=n?function(e){let t,n=null;$i(e.z)||(n=Qa.create(e.z)),$i(e.Z)||(n||(n=new hi(e.Z)),t=e.Z),$i(e.q)||(e.M=3*(e.q-1)+1),$i(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),$i(e.u)||(e.S=rs(e.u));const r=Object.keys(e).reduce(((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t}),{});return[r,n,t]}(n):[null,null,void 0];if(Ki(n,"a")&&Ki(n,"H"))throw new ma("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:o,specificOffset:a}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Zl(e,t,n){return new ql(e,n).explainFromTokens(t)}function Yl(e,t){if(!e)return null;const n=Os.create(t,e).dtFormatter(($l||($l=Sc.fromMillis(1555555555555)),$l)),r=n.formatToParts(),o=n.resolvedOptions();return r.map((t=>function(e,t,n){const{type:r,value:o}=e;if("literal"===r){const e=/^\s+$/.test(o);return{literal:!e,val:e?" ":o}}const a=t[r];let i=r;"hour"===r&&(i=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=Ul[i];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(t,e,o)))}const Ql="Invalid DateTime",Kl=864e13;function Jl(e){return new Ni("unsupported zone",`the zone "${e.name}" is not supported`)}function Xl(e){return null===e.weekData&&(e.weekData=Fi(e.c)),e.weekData}function ec(e){return null===e.localWeekData&&(e.localWeekData=Fi(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function tc(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Sc({...n,...t,old:n})}function nc(e,t,n){let r=e-60*t*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;const a=n.offset(r);return o===a?[r,o]:[e-60*Math.min(o,a)*1e3,Math.max(o,a)]}function rc(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function oc(e,t,n){return nc(ls(e),t,n)}function ac(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:r,month:o,day:Math.min(e.c.day,ss(r,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},i=Ml.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=ls(a);let[l,c]=nc(s,n,e.zone);return 0!==i&&(l+=i,c=e.zone.offset(l)),{ts:l,o:c}}function ic(e,t,n,r,o,a){const{setZone:i,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,o=Sc.fromObject(e,{...n,zone:r,specificOffset:a});return i?o:o.setZone(s)}return Sc.invalid(new Ni("unparsable",`the input "${o}" can't be parsed as ${r}`))}function sc(e,t,n=!0){return e.isValid?Os.create(di.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function lc(e,t,n){const r=e.c.year>9999||e.c.year<0;let o="";if(r&&e.c.year>=0&&(o+="+"),o+=es(e.c.year,r?6:4),"year"===n)return o;if(t){if(o+="-",o+=es(e.c.month),"month"===n)return o;o+="-"}else if(o+=es(e.c.month),"month"===n)return o;return o+=es(e.c.day),o}function cc(e,t,n,r,o,a,i){let s=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(i){case"day":case"month":case"year":break;default:if(l+=es(e.c.hour),"hour"===i)break;if(t){if(l+=":",l+=es(e.c.minute),"minute"===i)break;s&&(l+=":",l+=es(e.c.second))}else{if(l+=es(e.c.minute),"minute"===i)break;s&&(l+=es(e.c.second))}if("second"===i)break;!s||r&&0===e.c.millisecond||(l+=".",l+=es(e.c.millisecond,3))}return o&&(e.isOffsetFixed&&0===e.offset&&!a?l+="Z":e.o<0?(l+="-",l+=es(Math.trunc(-e.o/60)),l+=":",l+=es(Math.trunc(-e.o%60))):(l+="+",l+=es(Math.trunc(e.o/60)),l+=":",l+=es(Math.trunc(e.o%60)))),a&&(l+="["+e.zone.ianaName+"]"),l}const uc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},fc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},hc=["year","month","day","hour","minute","second","millisecond"],pc=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mc=["year","ordinal","hour","minute","second","millisecond"];function gc(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ga(e);return t}function vc(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return gc(e)}}function yc(e,t){const n=mi(t.zone,_i.defaultZone);if(!n.isValid)return Sc.invalid(Jl(n));const r=di.fromObject(t);let o,a;if($i(e.year))o=_i.now();else{for(const t of hc)$i(e[t])&&(e[t]=uc[t]);const t=Vi(e)||Ui(e);if(t)return Sc.invalid(t);const r=function(e){if(void 0===xc&&(xc=_i.now()),"iana"!==e.type)return e.offset(xc);const t=e.name;let n=kc.get(t);return void 0===n&&(n=e.offset(xc),kc.set(t,n)),n}(n);[o,a]=oc(e,r,n)}return new Sc({ts:o,zone:n,loc:r,o:a})}function bc(e,t,n){const r=!!$i(n.round)||n.round,o=$i(n.rounding)?"trunc":n.rounding,a=(e,a)=>(e=os(e,r||n.calendary?0:2,n.calendary?"round":o),t.loc.clone(n).relFormatter(n).format(e,a)),i=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return a(i(n.unit),n.unit);for(const e of n.units){const t=i(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,n.units[n.units.length-1])}function wc(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let xc;const kc=new Map;class Sc{constructor(e){const t=e.zone||_i.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Ni("invalid input"):null)||(t.isValid?null:Jl(t));this.ts=$i(e.ts)?_i.now():e.ts;let r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,o]=[e.old.c,e.old.o];else{const a=Gi(e.o)&&!e.old?e.o:t.offset(this.ts);r=rc(this.ts,a),n=Number.isNaN(r.year)?new Ni("invalid input"):null,r=n?null:r,o=n?null:a}this._zone=t,this.loc=e.loc||di.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new Sc({})}static local(){const[e,t]=wc(arguments),[n,r,o,a,i,s,l]=t;return yc({year:n,month:r,day:o,hour:a,minute:i,second:s,millisecond:l},e)}static utc(){const[e,t]=wc(arguments),[n,r,o,a,i,s,l]=t;return e.zone=hi.utcInstance,yc({year:n,month:r,day:o,hour:a,minute:i,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const n=function(e){return"[object Date]"===Object.prototype.toString.call(e)}(e)?e.valueOf():NaN;if(Number.isNaN(n))return Sc.invalid("invalid input");const r=mi(t.zone,_i.defaultZone);return r.isValid?new Sc({ts:n,zone:r,loc:di.fromObject(t)}):Sc.invalid(Jl(r))}static fromMillis(e,t={}){if(Gi(e))return e<-Kl||e>Kl?Sc.invalid("Timestamp out of range"):new Sc({ts:e,zone:mi(t.zone,_i.defaultZone),loc:di.fromObject(t)});throw new va(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Gi(e))return new Sc({ts:1e3*e,zone:mi(t.zone,_i.defaultZone),loc:di.fromObject(t)});throw new va("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=mi(t.zone,_i.defaultZone);if(!n.isValid)return Sc.invalid(Jl(n));const r=di.fromObject(t),o=ms(e,vc),{minDaysInFirstWeek:a,startOfWeek:i}=Bi(o,r),s=_i.now(),l=$i(t.specificOffset)?n.offset(s):t.specificOffset,c=!$i(o.ordinal),u=!$i(o.year),d=!$i(o.month)||!$i(o.day),f=u||d,h=o.weekYear||o.weekNumber;if((f||c)&&h)throw new ma("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new ma("Can't mix ordinal dates with month/day");const p=h||o.weekday&&!f;let m,g,v=rc(s,l);p?(m=pc,g=dc,v=Fi(v,a,i)):c?(m=mc,g=fc,v=Hi(v)):(m=hc,g=uc);let y=!1;for(const e of m)$i(o[e])?o[e]=y?g[e]:v[e]:y=!0;const b=p?function(e,t=4,n=1){const r=qi(e.weekYear),o=Xi(e.weekNumber,1,us(e.weekYear,t,n)),a=Xi(e.weekday,1,7);return r?o?!a&&Oi("weekday",e.weekday):Oi("week",e.weekNumber):Oi("weekYear",e.weekYear)}(o,a,i):c?function(e){const t=qi(e.year),n=Xi(e.ordinal,1,is(e.year));return t?!n&&Oi("ordinal",e.ordinal):Oi("year",e.year)}(o):Vi(o),w=b||Ui(o);if(w)return Sc.invalid(w);const x=p?zi(o,a,i):c?Wi(o):o,[k,S]=oc(x,l,n),E=new Sc({ts:k,zone:n,o:S,loc:r});return o.weekday&&f&&e.weekday!==E.weekday?Sc.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${E.toISO()}`):E.isValid?E:Sc.invalid(E.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return Ls(e,[cl,hl],[ul,pl],[dl,ml],[fl,gl])}(e);return ic(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Ls(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[nl,rl])}(e);return ic(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Ls(e,[ol,sl],[al,sl],[il,ll])}(e);return ic(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if($i(e)||$i(t))throw new va("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,a=di.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[i,s,l,c]=function(e,t,n){const{result:r,zone:o,specificOffset:a,invalidReason:i}=Zl(e,t,n);return[r,o,a,i]}(a,e,t);return c?Sc.invalid(c):ic(i,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return Sc.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return Ls(e,[yl,hl],[bl,wl])}(e);return ic(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new va("need to specify a reason the DateTime is invalid");const n=e instanceof Ni?e:new Ni(e,t);if(_i.throwOnInvalid)throw new fa(n);return new Sc({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Yl(e,di.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Gl(Os.parseFormat(e),di.fromObject(t)).map((e=>e.val)).join("")}static resetCache(){xc=void 0,kc.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Xl(this).weekYear:NaN}get weekNumber(){return this.isValid?Xl(this).weekNumber:NaN}get weekday(){return this.isValid?Xl(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ec(this).weekday:NaN}get localWeekNumber(){return this.isValid?ec(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ec(this).weekYear:NaN}get ordinal(){return this.isValid?Hi(this.c).ordinal:NaN}get monthShort(){return this.isValid?jl.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?jl.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?jl.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?jl.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=ls(this.c),r=this.zone.offset(n-e),o=this.zone.offset(n+e),a=this.zone.offset(n-r*t),i=this.zone.offset(n-o*t);if(a===i)return[this];const s=n-a*t,l=n-i*t,c=rc(s,a),u=rc(l,i);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[tc(this,{ts:s}),tc(this,{ts:l})]:[this]}get isInLeapYear(){return as(this.year)}get daysInMonth(){return ss(this.year,this.month)}get daysInYear(){return this.isValid?is(this.year):NaN}get weeksInWeekYear(){return this.isValid?us(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?us(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Os.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(hi.instance(e),t)}toLocal(){return this.setZone(_i.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=mi(e,_i.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=oc(n,t,e)}return tc(this,{ts:r,zone:e})}return Sc.invalid(Jl(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return tc(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ms(e,vc),{minDaysInFirstWeek:n,startOfWeek:r}=Bi(t,this.loc),o=!$i(t.weekYear)||!$i(t.weekNumber)||!$i(t.weekday),a=!$i(t.ordinal),i=!$i(t.year),s=!$i(t.month)||!$i(t.day),l=i||s,c=t.weekYear||t.weekNumber;if((l||a)&&c)throw new ma("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new ma("Can't mix ordinal dates with month/day");let u;o?u=zi({...Fi(this.c,n,r),...t},n,r):$i(t.ordinal)?(u={...this.toObject(),...t},$i(t.day)&&(u.day=Math.min(ss(u.year,u.month),u.day))):u=Wi({...Hi(this.c),...t});const[d,f]=oc(u,this.o,this.zone);return tc(this,{ts:d,o:f})}plus(e){return this.isValid?tc(this,ac(this,Ml.fromDurationLike(e))):this}minus(e){return this.isValid?tc(this,ac(this,Ml.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=Ml.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Os.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ql}toLocaleString(e=ka,t={}){return this.isValid?Os.create(this.loc.clone(t),e).formatDateTime(this):Ql}toLocaleParts(e={}){return this.isValid?Os.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:o=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;const i="extended"===e;let s=lc(this,i,a=gc(a));return hc.indexOf(a)>=3&&(s+="T"),s+=cc(this,i,t,n,r,o,a),s}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?lc(this,"extended"===e,gc(t)):null}toISOWeekDate(){return sc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:o=!1,format:a="extended",precision:i="milliseconds"}={}){return this.isValid?(i=gc(i),(r&&hc.indexOf(i)>=3?"T":"")+cc(this,"extended"===a,t,e,n,o,i)):null}toRFC2822(){return sc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return sc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?lc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),sc(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ql}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ml.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=(s=t,Array.isArray(s)?s:[s]).map(Ml.normalizeUnit),a=e.valueOf()>this.valueOf(),i=function(e,t,n,r){let[o,a,i,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Il(e,t);return(n-n%7)/7}],["days",Il]],o={},a=e;let i,s;for(const[l,c]of r)n.indexOf(l)>=0&&(i=l,o[l]=c(e,t),s=a.plus(o),s>t?(o[l]--,(e=a.plus(o))>t&&(s=e,o[l]--,e=a.plus(o))):e=s);return[e,o,s,i]}(e,t,n);const l=t-o,c=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===c.length&&(i<t&&(i=o.plus({[s]:1})),i!==o&&(a[s]=(a[s]||0)+l/(i-o)));const u=Ml.fromObject(a,r);return c.length>0?Ml.fromMillis(l,r).shiftTo(...c).plus(u):u}(a?this:e,a?e:this,o,r);var s;return a?i.negate():i}diffNow(e="milliseconds",t={}){return this.diff(Sc.now(),e,t)}until(e){return this.isValid?Ol.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,n)<=r&&r<=o.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Sc.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(r=e.unit,o=void 0),bc(t,this.plus(n),{...e,numeric:"always",units:r,unit:o})}toRelativeCalendar(e={}){return this.isValid?bc(e.base||Sc.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Sc.isDateTime))throw new va("min requires all arguments be DateTimes");return Qi(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(Sc.isDateTime))throw new va("max requires all arguments be DateTimes");return Qi(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:o=null}=n;return Zl(di.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Sc.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,o=di.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new ql(o,e)}static fromFormatParser(e,t,n={}){if($i(e)||$i(t))throw new va("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:o=null}=n,a=di.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});if(!a.equals(t.locale))throw new va(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);const{result:i,zone:s,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?Sc.invalid(c):ic(i,s,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return ka}static get DATE_MED(){return Sa}static get DATE_MED_WITH_WEEKDAY(){return Ea}static get DATE_FULL(){return Ca}static get DATE_HUGE(){return Da}static get TIME_SIMPLE(){return Ta}static get TIME_WITH_SECONDS(){return Aa}static get TIME_WITH_SHORT_OFFSET(){return _a}static get TIME_WITH_LONG_OFFSET(){return Na}static get TIME_24_SIMPLE(){return Ma}static get TIME_24_WITH_SECONDS(){return Ra}static get TIME_24_WITH_SHORT_OFFSET(){return Oa}static get TIME_24_WITH_LONG_OFFSET(){return ja}static get DATETIME_SHORT(){return Ia}static get DATETIME_SHORT_WITH_SECONDS(){return Pa}static get DATETIME_MED(){return La}static get DATETIME_MED_WITH_SECONDS(){return Fa}static get DATETIME_MED_WITH_WEEKDAY(){return za}static get DATETIME_FULL(){return Ha}static get DATETIME_FULL_WITH_SECONDS(){return Wa}static get DATETIME_HUGE(){return Ba}static get DATETIME_HUGE_WITH_SECONDS(){return Va}}function Ec(e){if(Sc.isDateTime(e))return e;if(e&&e.valueOf&&Gi(e.valueOf()))return Sc.fromJSDate(e);if(e&&"object"==typeof e)return Sc.fromObject(e);throw new va(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function Cc(e,t,n="12"){if(e.tbc)return e.tbc_note||"Date and time to be confirmed";const r=Tc(t||"UTC"),o="undefined"!=typeof eventkoi_params&&eventkoi_params.locale&&(a=eventkoi_params.locale)?a.replace("_","-"):"en";var a;const i=e=>e?.isValid?"24"===n?e.setLocale(o).toFormat("HH:mm"):e.setLocale(o).toFormat(0===e.minute?"ha":"h:mma").toLowerCase().replace(":00",""):"",s=e=>{if(!e)return null;const t=Sc.fromISO(e,{zone:"utc"}).setZone(r).setLocale(o);return t.isValid?t:null};if("recurring"===e.date_type&&e.timeline){const t=s(e.start),n=s(e.end_real)||s(e.end);if(!t)return null;const r=!!e.allDay,o=n&&t.hasSame(n,"day");return o&&!r?`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)} – ${i(n)}`:!n||o?t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY):`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)} – ${n.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}`}if("standard"===e.date_type||"multi"===e.date_type){const t=s(e.start),n=s(e.end_real)||s(e.end);if(!t)return null;const r=!!e.allDay;return n&&t.hasSame(n,"day")&&!r?`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)} – ${i(n)}`:n?`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)} – ${n.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(n)}`:r?t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY):`${t.toLocaleString(Sc.DATE_MED_WITH_WEEKDAY)}, ${i(t)}`}return null}function Dc(e,t="24",n=!0){if(!e)return"12"===t?"UTC, AM/PM":"UTC, 24hr";const r=e=>n?"12"===t?`${e}, AM/PM`:`${e}, 24hr`:e,o=e.match(/^([+-])(\d{2}):?(\d{2})$/);if(o){const e=o[1],t=parseInt(o[2],10),n=parseInt(o[3],10);return r(0===n?`UTC${e}${t}`:`UTC${e}${t}:${n.toString().padStart(2,"0")}`)}if(e.startsWith("Etc/GMT")){const t=e.replace("Etc/GMT",""),n=parseInt(t,10);return r(0===n?"UTC":`UTC${n>=0?"+":"-"}${Math.abs(n)}`)}if(!isNaN(parseFloat(e))&&isFinite(e)){const t=parseFloat(e);return r(0===t?"UTC":`UTC${t>=0?"+":""}${t}`)}if("local"===e.toLowerCase()){const e=Intl.DateTimeFormat().resolvedOptions().timeZone;let t=Sc.now().setZone(e).toFormat("ZZ");return t=t.replace(":00","").replace(/^(\+|-)0/,"$1"),r(`${e} (UTC${t})`)}if("UTC"===e.toUpperCase())return r("UTC");const a=Sc.now().setZone(e);if(a.isValid){let t=a.toFormat("ZZ");return t=t.replace(":00","").replace(/^(\+|-)0/,"$1"),r(`${e} (UTC${t})`)}return r(e)}function Tc(e){if("local"===e)return Intl.DateTimeFormat().resolvedOptions().timeZone;if("utc"===e)return"UTC";if(!isNaN(parseFloat(e))&&isFinite(e)){const t=parseFloat(e);return`Etc/GMT${t>=0?"-":"+"}${Math.abs(t)}`}return e}function Ac(e){if(!e)return"UTC";const t=Tc(e);return Sc.now().setZone(t).isValid?t:"UTC"}function _c(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_c(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_c(e))&&(r&&(r+=" "),r+=t);return r}const Mc=e=>{const t=Ic(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Rc(n,t)||jc(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Rc=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rc(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find((({validator:e})=>e(a)))?.classGroupId},Oc=/^\[(.+)\]$/,jc=e=>{if(Oc.test(e)){const t=Oc.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ic=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return zc(Object.entries(e.classGroups),n).forEach((([e,n])=>{Pc(n,r,e,t)})),r},Pc=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Fc(e)?void Pc(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Pc(o,Lc(t,e),n,r)}))}else(""===e?t:Lc(t,e)).classGroupId=n}))},Lc=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},Fc=e=>e.isThemeGetter,zc=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,Hc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Wc=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},Bc=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},Vc=/\s+/;function Uc(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=$c(e))&&(r&&(r+=" "),r+=t);return r}const $c=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$c(e[r]))&&(n&&(n+=" "),n+=t);return n};function Gc(e,...t){let n,r,o,a=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:Hc(e.cacheSize),parseClassName:Wc(e),...Mc(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(Vc);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){s=t+(s.length>0?" "+s:s);continue}if(h=r(u),!h){s=t+(s.length>0?" "+s:s);continue}f=!1}const p=Bc(l).join(":"),m=c?p+"!":p,g=m+h;if(a.includes(g))continue;a.push(g);const v=o(h,f);for(let e=0;e<v.length;++e){const t=v[e];a.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(Uc.apply(null,arguments))}}const qc=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Zc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yc=/^\d+\/\d+$/,Qc=new Set(["px","full","screen"]),Kc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nu=e=>ou(e)||Qc.has(e)||Yc.test(e),ru=e=>vu(e,"length",yu),ou=e=>Boolean(e)&&!Number.isNaN(Number(e)),au=e=>vu(e,"number",ou),iu=e=>Boolean(e)&&Number.isInteger(Number(e)),su=e=>e.endsWith("%")&&ou(e.slice(0,-1)),lu=e=>Zc.test(e),cu=e=>Kc.test(e),uu=new Set(["length","size","percentage"]),du=e=>vu(e,uu,bu),fu=e=>vu(e,"position",bu),hu=new Set(["image","url"]),pu=e=>vu(e,hu,xu),mu=e=>vu(e,"",wu),gu=()=>!0,vu=(e,t,n)=>{const r=Zc.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},yu=e=>Jc.test(e)&&!Xc.test(e),bu=()=>!1,wu=e=>eu.test(e),xu=e=>tu.test(e),ku=Gc((Symbol.toStringTag,()=>{const e=qc("colors"),t=qc("spacing"),n=qc("blur"),r=qc("brightness"),o=qc("borderColor"),a=qc("borderRadius"),i=qc("borderSpacing"),s=qc("borderWidth"),l=qc("contrast"),c=qc("grayscale"),u=qc("hueRotate"),d=qc("invert"),f=qc("gap"),h=qc("gradientColorStops"),p=qc("gradientColorStopPositions"),m=qc("inset"),g=qc("margin"),v=qc("opacity"),y=qc("padding"),b=qc("saturate"),w=qc("scale"),x=qc("sepia"),k=qc("skew"),S=qc("space"),E=qc("translate"),C=()=>["auto",lu,t],D=()=>[lu,t],T=()=>["",nu,ru],A=()=>["auto",ou,lu],_=()=>["","0",lu],N=()=>[ou,lu];return{cacheSize:500,separator:":",theme:{colors:[gu],spacing:[nu,ru],blur:["none","",cu,lu],brightness:N(),borderColor:[e],borderRadius:["none","","full",cu,lu],borderSpacing:D(),borderWidth:T(),contrast:N(),grayscale:_(),hueRotate:N(),invert:_(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[su,ru],inset:C(),margin:C(),opacity:N(),padding:D(),saturate:N(),scale:N(),sepia:_(),skew:N(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",lu]}],container:["container"],columns:[{columns:[cu]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lu]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",iu,lu]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",lu]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",iu,lu]}],"grid-cols":[{"grid-cols":[gu]}],"col-start-end":[{col:["auto",{span:["full",iu,lu]},lu]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[gu]}],"row-start-end":[{row:["auto",{span:[iu,lu]},lu]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",lu]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",lu]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",lu,t]}],"min-w":[{"min-w":[lu,t,"min","max","fit"]}],"max-w":[{"max-w":[lu,t,"none","full","min","max","fit","prose",{screen:[cu]},cu]}],h:[{h:[lu,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[lu,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[lu,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[lu,t,"auto","min","max","fit"]}],"font-size":[{text:["base",cu,ru]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",au]}],"font-family":[{font:[gu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",lu]}],"line-clamp":[{"line-clamp":["none",ou,au]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",nu,lu]}],"list-image":[{"list-image":["none",lu]}],"list-style-type":[{list:["none","disc","decimal",lu]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",nu,ru]}],"underline-offset":[{"underline-offset":["auto",nu,lu]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lu]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lu]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",fu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",du]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[nu,lu]}],"outline-w":[{outline:[nu,ru]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[nu,ru]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",cu,mu]}],"shadow-color":[{shadow:[gu]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",cu,lu]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",lu]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",lu]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",lu]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[iu,lu]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",lu]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lu]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lu]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[nu,ru,au]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function Su(...e){return ku(Nc(e))}const Eu=Zo,Cu=Yo;a.forwardRef((({className:e,inset:t,children:n,...r},o)=>(0,d.jsxs)(oa,{ref:o,className:Su("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,(0,d.jsx)(la,{className:"ml-auto h-4 w-4"})]}))).displayName=oa.displayName,a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(aa,{ref:n,className:Su("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}))).displayName=aa.displayName;const Du=a.forwardRef((({className:e,sideOffset:t=4,...n},r)=>(0,d.jsx)(Qo,{children:(0,d.jsx)(Ko,{ref:r,sideOffset:t,className:Su("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})));Du.displayName=Ko.displayName;const Tu=a.forwardRef((({className:e,inset:t,...n},r)=>(0,d.jsx)(Xo,{ref:r,className:Su("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));Tu.displayName=Xo.displayName,a.forwardRef((({className:e,children:t,checked:n,...r},o)=>(0,d.jsxs)(ea,{ref:o,className:Su("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(na,{children:(0,d.jsx)(ca,{className:"h-4 w-4"})})}),t]}))).displayName=ea.displayName,a.forwardRef((({className:e,children:t,...n},r)=>(0,d.jsxs)(ta,{ref:r,className:Su("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(na,{children:(0,d.jsx)(ua,{className:"h-2 w-2 fill-current"})})}),t]}))).displayName=ta.displayName,a.forwardRef((({className:e,inset:t,...n},r)=>(0,d.jsx)(Jo,{ref:r,className:Su("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}))).displayName=Jo.displayName,a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(ra,{ref:n,className:Su("-mx-1 my-1 h-px bg-muted",e),...t}))).displayName=ra.displayName;var Au=o(338);function _u(e,t=!1){if(!e)return"";const n=new Date(e);return isNaN(n)?"":t?n.toISOString().slice(0,10).replace(/-/g,""):n.toISOString().replace(/[-:]/g,"").replace(".000Z","Z").slice(0,16)+"00Z"}const Nu=(e,t=!1)=>e?t?e.slice(0,10):e:"";function Mu({base:e,html:t}){const{event:n}=eventkoi_params;(0,a.useEffect)((()=>{e&&(e.style.padding="0",e.style.border="none")}),[e]);const r=function(e){let t=new URLSearchParams(window.location.search).get("instance");if(!t){const e=window.location.pathname.match(/\/(\d+)\/?$/);e&&(t=e[1])}if("recurring"===e.date_type&&t&&!isNaN(Number(t))){var n;const r=e.recurrence_rules?.[0],o=new Date(1e3*Number(t));let a;if(r?.start_date&&r?.end_date){const e=new Date(r.end_date).getTime()-new Date(r.start_date).getTime();a=new Date(o.getTime()+e)}return{start_date:o.toISOString(),end_date:a?.toISOString(),all_day:null!==(n=r?.all_day)&&void 0!==n&&n}}return function(e){return"standard"===e.date_type&&Array.isArray(e.event_days)&&e.event_days.length?e.event_days[0]:"recurring"===e.date_type&&Array.isArray(e.recurrence_rules)&&e.recurrence_rules.length?e.recurrence_rules[0]:{start_date:e.start_date,end_date:e.end_date,all_day:e.all_day}}(e)}(n),o=r?.start_date,i=r?.end_date,s=_u(o,r?.all_day),l=_u(i,r?.all_day),c="virtual"===n.locations?.[0]?.type?n.locations[0]?.virtual_url||n.location_line||"":[n.locations?.[0]?.name,n.locations?.[0]?.address1,n.locations?.[0]?.address2,n.locations?.[0]?.city,n.locations?.[0]?.state,n.locations?.[0]?.zip,n.locations?.[0]?.country].filter(Boolean).join(", ")||n.location_line||"",u=e=>{window.open(e,"_blank","noopener,noreferrer")},f=e=>{const t=new URL(e);t.searchParams.set("path","/calendar/action/compose"),t.searchParams.set("rrv","addevent"),t.searchParams.set("startdt",Nu(o,r?.all_day)),t.searchParams.set("enddt",Nu(i,r?.all_day)),t.searchParams.set("location",c),t.searchParams.set("subject",n.title||""),t.searchParams.set("body",n.summary||""),u(t)};return(0,d.jsxs)(Eu,{children:[(0,d.jsx)(Cu,{asChild:!0,className:"border-none p-0 bg-transparent",children:(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})}),(0,d.jsxs)(Du,{align:"start",className:"w-[180px] px-3 py-2 shadow-2xl border border-border bg-popover rounded-md",children:[(0,d.jsx)(Tu,{onClick:()=>{const e=new URL("https://www.google.com/calendar/render");e.searchParams.set("action","TEMPLATE"),e.searchParams.set("text",n.title||""),e.searchParams.set("dates",`${s}/${l}`),e.searchParams.set("details",n.summary||""),e.searchParams.set("location",c),e.searchParams.set("output","xml"),u(e)},children:"Google Calendar"}),(0,d.jsx)(Tu,{onClick:()=>u(eventkoi_params.ical),children:"iCalendar"}),(0,d.jsx)(Tu,{onClick:()=>f("https://outlook.office.com/owa/"),children:"Outlook 365"}),(0,d.jsx)(Tu,{onClick:()=>f("https://outlook.live.com/owa/"),children:"Outlook Live"})]})]})}document.querySelectorAll("a[href='#add-to-cal']").forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(Mu,{base:e,html:e.outerHTML}))}));const Ru=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Ou=Nc,ju=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Ou(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=Ru(t)||Ru(r);return o[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n}))?[...e,n,r]:e}),[]);return Ou(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},Iu=ju("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent text-foreground hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-input hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pu=a.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?v:"button";return(0,d.jsx)(i,{className:Su(Iu({variant:t,size:n,className:e})),ref:a,...o})}));Pu.displayName="Button";var Lu="Popover",[Fu,zu]=f(Lu,[Dt]),Hu=Dt(),[Wu,Bu]=Fu(Lu),Vu=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,l=Hu(t),c=a.useRef(null),[u,f]=a.useState(!1),[h=!1,p]=m({prop:r,defaultProp:o,onChange:i});return(0,d.jsx)(Bt,{...l,children:(0,d.jsx)(Wu,{scope:t,contentId:Z(),triggerRef:c,open:h,onOpenChange:p,onOpenToggle:a.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:a.useCallback((()=>f(!0)),[]),onCustomAnchorRemove:a.useCallback((()=>f(!1)),[]),modal:s,children:n})})};Vu.displayName=Lu;var Uu="PopoverAnchor";a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Bu(Uu,n),i=Hu(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return a.useEffect((()=>(s(),()=>l())),[s,l]),(0,d.jsx)(Vt,{...i,...r,ref:t})})).displayName=Uu;var $u="PopoverTrigger",Gu=a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Bu($u,n),a=Hu(n),i=u(t,o.triggerRef),l=(0,d.jsx)(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":rd(o.open),...r,ref:i,onClick:s(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:(0,d.jsx)(Vt,{asChild:!0,...a,children:l})}));Gu.displayName=$u;var qu="PopoverPortal",[Zu,Yu]=Fu(qu,{forceMount:void 0}),Qu=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Bu(qu,t);return(0,d.jsx)(Zu,{scope:t,forceMount:n,children:(0,d.jsx)(qt,{present:n||a.open,children:(0,d.jsx)(Gt,{asChild:!0,container:o,children:r})})})};Qu.displayName=qu;var Ku="PopoverContent",Ju=a.forwardRef(((e,t)=>{const n=Yu(Ku,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Bu(Ku,e.__scopePopover);return(0,d.jsx)(qt,{present:r||a.open,children:a.modal?(0,d.jsx)(Xu,{...o,ref:t}):(0,d.jsx)(ed,{...o,ref:t})})}));Ju.displayName=Ku;var Xu=a.forwardRef(((e,t)=>{const n=Bu(Ku,e.__scopePopover),r=a.useRef(null),o=u(t,r),i=a.useRef(!1);return a.useEffect((()=>{const e=r.current;if(e)return bn(e)}),[]),(0,d.jsx)(ar,{as:v,allowPinchZoom:!0,children:(0,d.jsx)(td,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:s(e.onCloseAutoFocus,(e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()})),onPointerDownOutside:s(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:s(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),ed=a.forwardRef(((e,t)=>{const n=Bu(Ku,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return(0,d.jsx)(td,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),td=a.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...f}=e,h=Bu(Ku,n),p=Hu(n);return O(),(0,d.jsx)(F,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,d.jsx)(_,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,d.jsx)(Ut,{"data-state":rd(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),nd="PopoverClose";function rd(e){return e?"open":"closed"}a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Bu(nd,n);return(0,d.jsx)(x.button,{type:"button",...r,ref:t,onClick:s(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=nd,a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Hu(n);return(0,d.jsx)($t,{...o,...r,ref:t})})).displayName="PopoverArrow";var od=Qu,ad=Ju;const id=Vu,sd=Gu,ld=a.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>(0,d.jsx)(od,{children:(0,d.jsx)(ad,{ref:o,align:t,sideOffset:n,className:Su("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})})));ld.displayName=ad.displayName;const cd=sa("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ud=sa("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),dd=("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en").split("_")[0],fd=Array.from({length:12},((e,t)=>new Intl.DateTimeFormat(dd,{month:"short"}).format(new Date(2e3,t,1))));function hd({calendarApi:e,currentDate:t,setCurrentDate:n}){const[r,o]=(0,a.useState)(!1),i=e?.view?.calendar?.getOption("timeZone")||"UTC";let s=t instanceof Date?t:new Date(t);isNaN(s)&&(s=new Date);const l=Sc.fromJSDate(s,{zone:i}),c=l.year,u=l.month-1;return(0,d.jsxs)(id,{open:r,onOpenChange:o,children:[(0,d.jsx)(sd,{asChild:!0,children:(0,d.jsxs)(Pu,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[`${fd[u]} ${c}`,(0,d.jsx)(cd,{className:"h-4 w-4 min-w-4"})]})}),(0,d.jsxs)(ld,{side:"bottom",align:"start",sideOffset:20,className:"w-[240px] rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)(Pu,{variant:"ghost",size:"icon",onClick:()=>{const t=l.minus({years:1}).startOf("month").toJSDate();e.gotoDate(t),n(t)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,d.jsx)(ud,{className:"w-4 h-4"})}),(0,d.jsx)("div",{className:"text-sm font-medium",children:c}),(0,d.jsx)(Pu,{variant:"ghost",size:"icon",onClick:()=>{const t=l.plus({years:1}).startOf("month").toJSDate();e.gotoDate(t),n(t)},className:"bg-transparent p-0 text-[1px] text-foreground border-none shadow-none cursor-pointer hover:bg-muted h-8",children:(0,d.jsx)(la,{className:"w-4 h-4"})})]}),(0,d.jsx)("div",{className:"grid grid-cols-4 gap-2",children:fd.map(((t,r)=>(0,d.jsx)(Pu,{variant:"ghost",className:Su("text-sm font-medium bg-transparent text-foreground border-none shadow-none cursor-pointer hover:bg-muted",r===u&&"bg-muted text-foreground font-semibold"),onClick:()=>(t=>{const r=Sc.fromObject({year:c,month:t+1,day:1},{zone:i}).toJSDate();e.gotoDate(r),n(r),o(!1)})(r),children:t},t)))})]})]})}function pd({calendarApi:e,currentDate:t,setCurrentDate:n}){return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(Pu,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.prev(),"aria-label":"Go to previous period",children:(0,d.jsx)(ud,{className:"w-4 h-4","aria-hidden":"true"})}),(0,d.jsx)(Pu,{variant:"outline",size:"icon",className:"text-[1px] box-border p-0 w-10 h-10 border-solid shadow-none cursor-pointer rounded",onClick:()=>e?.next(),"aria-label":"Go to next period",children:(0,d.jsx)(la,{className:"w-4 h-4","aria-hidden":"true"})})]})}var md=.999,gd=/[\\\/_+.#"@\[\(\{&]/,vd=/[\\\/_+.#"@\[\(\{&]/g,yd=/[\s-]/,bd=/[\s-]/g;function wd(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,f=r.charAt(a),h=n.indexOf(f,o),p=0;h>=0;)(l=wd(e,t,n,r,h+1,a+1,i))>p&&(h===o?l*=1:gd.test(e.charAt(h-1))?(l*=.8,(u=e.slice(o,h-1).match(vd))&&o>0&&(l*=Math.pow(md,u.length))):yd.test(e.charAt(h-1))?(l*=.9,(d=e.slice(o,h-1).match(bd))&&o>0&&(l*=Math.pow(md,d.length))):(l*=.17,o>0&&(l*=Math.pow(md,h-o))),e.charAt(h)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(h-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(h-1)!==r.charAt(a))&&.1*(c=wd(e,t,n,r,h+1,a+2,i))>l&&(l=.1*c),l>p&&(p=l),h=n.indexOf(f,h+1);return i[s]=p,p}function xd(e){return e.toLowerCase().replace(bd," ")}function kd(e,t,n){return wd(e=n&&n.length>0?e+" "+n.join(" "):e,t,xd(e),xd(t),0,0,{})}function Sd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Ed(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Cd(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Ed(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Ed(e[t],null)}}}}function Dd(...e){return a.useCallback(Cd(...e),e)}function Td(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var Ad=globalThis?.document?a.useLayoutEffect:()=>{},_d=i[" useId ".trim().toString()]||(()=>{}),Nd=0;function Md(e){const[t,n]=a.useState(_d());return Ad((()=>{e||n((e=>e??String(Nd++)))}),[e]),e||(t?`radix-${t}`:"")}var Rd=i[" useInsertionEffect ".trim().toString()]||Ad;function Od(e){const t=jd(e),n=a.forwardRef(((e,n)=>{const{children:r,...o}=e,i=a.Children.toArray(r),s=i.find(Pd);if(s){const e=s.props.children,r=i.map((t=>t===s?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t));return(0,d.jsx)(t,{...o,ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...o,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function jd(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?Cd(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}Symbol("RADIX:SYNC_STATE");var Id=Symbol("radix.slottable");function Pd(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Id}var Ld=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=Od(`Primitive.${t}`),r=a.forwardRef(((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i,{...a,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function Fd(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}var zd,Hd="dismissableLayer.update",Wd=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bd=a.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=a.useContext(Wd),[f,h]=a.useState(null),p=f?.ownerDocument??globalThis?.document,[,m]=a.useState({}),g=Dd(t,(e=>h(e))),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,k=w>=b,S=function(e,t=globalThis?.document){const n=Fd(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Ud("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));k&&!n&&(o?.(e),s?.(e),e.defaultPrevented||l?.())}),p),E=function(e,t=globalThis?.document){const n=Fd(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{e.target&&!r.current&&Ud("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||l?.())}),p);return function(e,t=globalThis?.document){const n=Fd(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{w===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),a.useEffect((()=>{if(f)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(zd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Vd(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=zd)}}),[f,p,n,u]),a.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Vd())}),[f,u]),a.useEffect((()=>{const e=()=>m({});return document.addEventListener(Hd,e),()=>document.removeEventListener(Hd,e)}),[]),(0,d.jsx)(Ld.div,{...c,ref:g,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:Sd(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Sd(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Sd(e.onPointerDownCapture,S.onPointerDownCapture)})}));function Vd(){const e=new CustomEvent(Hd);document.dispatchEvent(e)}function Ud(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&g.flushSync((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}Bd.displayName="DismissableLayer",a.forwardRef(((e,t)=>{const n=a.useContext(Wd),r=a.useRef(null),o=Dd(t,r);return a.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,d.jsx)(Ld.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var $d="focusScope.autoFocusOnMount",Gd="focusScope.autoFocusOnUnmount",qd={bubbles:!1,cancelable:!0},Zd=a.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=a.useState(null),u=Fd(o),f=Fd(i),h=a.useRef(null),p=Dd(t,(e=>c(e))),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(r){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?h.current=t:Jd(h.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Jd(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Jd(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,m.paused]),a.useEffect((()=>{if(l){Xd.add(m);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent($d,qd);l.addEventListener($d,u),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Jd(r,{select:t}),document.activeElement!==n)return}(Yd(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Jd(l))}return()=>{l.removeEventListener($d,u),setTimeout((()=>{const t=new CustomEvent(Gd,qd);l.addEventListener(Gd,f),l.dispatchEvent(t),t.defaultPrevented||Jd(e??document.body,{select:!0}),l.removeEventListener(Gd,f),Xd.remove(m)}),0)}}}),[l,u,f,m]);const g=a.useCallback((e=>{if(!n&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=Yd(e);return[Qd(t,e),Qd(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&Jd(a,{select:!0})):(e.preventDefault(),n&&Jd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,m.paused]);return(0,d.jsx)(Ld.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})}));function Yd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qd(e,t){for(const n of e)if(!Kd(n,{upTo:t}))return n}function Kd(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Jd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Zd.displayName="FocusScope";var Xd=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ef(e,t),e.unshift(t)},remove(t){e=ef(e,t),e[0]?.resume()}}}();function ef(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var tf=a.forwardRef(((e,t)=>{const{container:n,...r}=e,[o,i]=a.useState(!1);Ad((()=>i(!0)),[]);const s=n||o&&globalThis?.document?.body;return s?g.createPortal((0,d.jsx)(Ld.div,{...r,ref:t}),s):null}));tf.displayName="Portal";var nf=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=rf(r.current);i.current="mounted"===l?e:"none"}),[l]),Ad((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=rf(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,c]),Ad((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=a=>{const i=rf(r.current).includes(a.animationName);if(a.target===t&&i&&(c("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=rf(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback((e=>{r.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=Dd(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function rf(e){return e?.animationName||"none"}nf.displayName="Presence";var of=0;function af(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var sf="Dialog",[lf,cf]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>a.createContext(e)));return function(n){const r=n?.[e]||t;return a.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=a.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[i]||o,c=a.useMemo((()=>s),Object.values(s));return(0,d.jsx)(l.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const l=s?.[e]?.[i]||o,c=a.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Td(r,...t)]}(sf),[uf,df]=lf(sf),ff=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=a.useRef(null),c=a.useRef(null),[u,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Rd((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l}),[l,r])}const u=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[c,u]}({prop:r,defaultProp:o??!1,onChange:i,caller:sf});return(0,d.jsx)(uf,{scope:t,triggerRef:l,contentRef:c,contentId:Md(),titleId:Md(),descriptionId:Md(),open:u,onOpenChange:f,onOpenToggle:a.useCallback((()=>f((e=>!e))),[f]),modal:s,children:n})};ff.displayName=sf;var hf="DialogTrigger";a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(hf,n),a=Dd(t,o.triggerRef);return(0,d.jsx)(Ld.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Of(o.open),...r,ref:a,onClick:Sd(e.onClick,o.onOpenToggle)})})).displayName=hf;var pf="DialogPortal",[mf,gf]=lf(pf,{forceMount:void 0}),vf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=df(pf,t);return(0,d.jsx)(mf,{scope:t,forceMount:n,children:a.Children.map(r,(e=>(0,d.jsx)(nf,{present:n||i.open,children:(0,d.jsx)(tf,{asChild:!0,container:o,children:e})})))})};vf.displayName=pf;var yf="DialogOverlay",bf=a.forwardRef(((e,t)=>{const n=gf(yf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=df(yf,e.__scopeDialog);return a.modal?(0,d.jsx)(nf,{present:r||a.open,children:(0,d.jsx)(xf,{...o,ref:t})}):null}));bf.displayName=yf;var wf=Od("DialogOverlay.RemoveScroll"),xf=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(yf,n);return(0,d.jsx)(ar,{as:wf,allowPinchZoom:!0,shards:[o.contentRef],children:(0,d.jsx)(Ld.div,{"data-state":Of(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),kf="DialogContent",Sf=a.forwardRef(((e,t)=>{const n=gf(kf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=df(kf,e.__scopeDialog);return(0,d.jsx)(nf,{present:r||a.open,children:a.modal?(0,d.jsx)(Ef,{...o,ref:t}):(0,d.jsx)(Cf,{...o,ref:t})})}));Sf.displayName=kf;var Ef=a.forwardRef(((e,t)=>{const n=df(kf,e.__scopeDialog),r=a.useRef(null),o=Dd(t,n.contentRef,r);return a.useEffect((()=>{const e=r.current;if(e)return bn(e)}),[]),(0,d.jsx)(Df,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sd(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:Sd(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Sd(e.onFocusOutside,(e=>e.preventDefault()))})})),Cf=a.forwardRef(((e,t)=>{const n=df(kf,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return(0,d.jsx)(Df,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),Df=a.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=df(kf,n),c=a.useRef(null),u=Dd(t,c);return a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??af()),document.body.insertAdjacentElement("beforeend",e[1]??af()),of++,()=>{1===of&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),of--}}),[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Zd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,d.jsx)(Bd,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Of(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Lf,{titleId:l.titleId}),(0,d.jsx)(Ff,{contentRef:c,descriptionId:l.descriptionId})]})]})})),Tf="DialogTitle",Af=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(Tf,n);return(0,d.jsx)(Ld.h2,{id:o.titleId,...r,ref:t})}));Af.displayName=Tf;var _f="DialogDescription",Nf=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(_f,n);return(0,d.jsx)(Ld.p,{id:o.descriptionId,...r,ref:t})}));Nf.displayName=_f;var Mf="DialogClose",Rf=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=df(Mf,n);return(0,d.jsx)(Ld.button,{type:"button",...r,ref:t,onClick:Sd(e.onClick,(()=>o.onOpenChange(!1)))})}));function Of(e){return e?"open":"closed"}Rf.displayName=Mf;var jf="DialogTitleWarning",[If,Pf]=function(e,t){const n=a.createContext(t),r=e=>{const{children:t,...r}=e,o=a.useMemo((()=>r),Object.values(r));return(0,d.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=a.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(jf,{contentName:kf,titleName:Tf,docsSlug:"dialog"}),Lf=({titleId:e})=>{const t=Pf(jf),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},Ff=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pf("DialogDescriptionWarning").contentName}}.`;return a.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},zf=ff,Hf=vf,Wf=bf,Bf=Sf,Vf=Af,Uf=Nf,$f=Rf,Gf='[cmdk-group=""]',qf='[cmdk-group-items=""]',Zf='[cmdk-item=""]',Yf=`${Zf}:not([aria-disabled="true"])`,Qf="cmdk-item-select",Kf="data-value",Jf=(e,t,n)=>kd(e,t,n),Xf=a.createContext(void 0),eh=()=>a.useContext(Xf),th=a.createContext(void 0),nh=()=>a.useContext(th),rh=a.createContext(void 0),oh=a.forwardRef(((e,t)=>{let n=yh((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}})),r=yh((()=>new Set)),o=yh((()=>new Map)),i=yh((()=>new Map)),s=yh((()=>new Set)),l=gh(e),{label:c,children:u,value:d,onValueChange:f,filter:h,shouldFilter:p,loop:m,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,b=Z(),w=Z(),k=Z(),S=a.useRef(null),E=xh();vh((()=>{if(void 0!==d){let e=d.trim();n.current.value=e,C.emit()}}),[d]),vh((()=>{E(6,M)}),[]);let C=a.useMemo((()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),A(),E(1,_);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(k);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(E(7,(()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,C.emit()})),r||E(5,M),void 0!==(null==(a=l.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(s=(i=l.current).onValueChange)||s.call(i,e))}}C.emit()}},emit:()=>{s.current.forEach((e=>e()))}})),[]),D=a.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,T(t,r)),E(2,(()=>{A(),C.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),E(3,(()=>{N(),A(),n.current.value||_(),C.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();E(4,(()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&_(),C.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:k,labelId:w,listInnerRef:S})),[]);function T(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:Jf;return e?a(e,n.current.search,t):0}function A(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),a=0;r.forEach((t=>{let n=e.get(t);a=Math.max(n,a)})),t.push([n,a])}));let r=S.current;O().sort(((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)})).forEach((e=>{let t=e.closest(qf);t?t.appendChild(e.parentElement===t?e:e.closest(`${qf} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${qf} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{var t;let n=null==(t=S.current)?void 0:t.querySelector(`${Gf}[${Kf}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)}))}function _(){let e=O().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(Kf);C.setState("value",t||void 0)}function N(){var e,t,a,s;if(!n.current.search||!1===l.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=T(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function M(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Gf))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=S.current)?void 0:e.querySelector(`${Zf}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=S.current)?void 0:e.querySelectorAll(Yf))||[])}function j(e){let t=O()[e];t&&C.setState("value",t.getAttribute(Kf))}function I(e){var t;let n=R(),r=O(),o=r.findIndex((e=>e===n)),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&C.setState("value",a.getAttribute(Kf))}function P(e){let t,n=R(),r=null==n?void 0:n.closest(Gf);for(;r&&!t;)r=e>0?ph(r,Gf):mh(r,Gf),t=null==r?void 0:r.querySelector(Yf);t?C.setState("value",t.getAttribute(Kf)):I(e)}let L=()=>j(O().length-1),F=e=>{e.preventDefault(),e.metaKey?L():e.altKey?P(1):I(1)},z=e=>{e.preventDefault(),e.metaKey?j(0):e.altKey?P(-1):I(-1)};return a.createElement(x.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":v&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":v&&e.ctrlKey&&z(e);break;case"ArrowUp":z(e);break;case"Home":e.preventDefault(),j(0);break;case"End":e.preventDefault(),L();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(Qf);t.dispatchEvent(e)}}}}},a.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:Sh},c),kh(e,(e=>a.createElement(th.Provider,{value:C},a.createElement(Xf.Provider,{value:D},e)))))})),ah=a.forwardRef(((e,t)=>{var n,r;let o=Z(),i=a.useRef(null),s=a.useContext(rh),l=eh(),u=gh(e),d=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==s?void 0:s.forceMount;vh((()=>{if(!d)return l.item(o,null==s?void 0:s.id)}),[d]);let f=wh(o,i,[e.value,e.children,i],e.keywords),h=nh(),p=bh((e=>e.value&&e.value===f.current)),m=bh((e=>!(!d&&!1!==l.filter())||!e.search||e.filtered.items.get(o)>0));function g(){var e,t;v(),null==(t=(e=u.current).onSelect)||t.call(e,f.current)}function v(){h.setState("value",f.current,!0)}if(a.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(Qf,g),()=>t.removeEventListener(Qf,g)}),[m,e.onSelect,e.disabled]),!m)return null;let{disabled:y,value:b,onSelect:w,forceMount:k,keywords:S,...E}=e;return a.createElement(x.div,{ref:c(i,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||l.getDisablePointerSelection()?void 0:v,onClick:y?void 0:g},e.children)})),ih=a.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,s=Z(),l=a.useRef(null),u=a.useRef(null),d=Z(),f=eh(),h=bh((e=>!(!o&&!1!==f.filter())||!e.search||e.filtered.groups.has(s)));vh((()=>f.group(s)),[]),wh(s,l,[e.value,e.heading,u]);let p=a.useMemo((()=>({id:s,forceMount:o})),[o]);return a.createElement(x.div,{ref:c(l,t),...i,"cmdk-group":"",role:"presentation",hidden:!h||void 0},n&&a.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),kh(e,(e=>a.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},a.createElement(rh.Provider,{value:p},e)))))})),sh=a.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=a.useRef(null),i=bh((e=>!e.search));return n||i?a.createElement(x.div,{ref:c(o,t),...r,"cmdk-separator":"",role:"separator"}):null})),lh=a.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=nh(),s=bh((e=>e.search)),l=bh((e=>e.selectedItemId)),c=eh();return a.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),a.createElement(x.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),ch=a.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=a.useRef(null),s=a.useRef(null),l=bh((e=>e.selectedItemId)),u=eh();return a.useEffect((()=>{if(s.current&&i.current){let e,t=s.current,n=i.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),a.createElement(x.div,{ref:c(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:u.listId},kh(e,(e=>a.createElement("div",{ref:c(s,u.listInnerRef),"cmdk-list-sizer":""},e))))})),uh=a.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:s,...l}=e;return a.createElement(zf,{open:n,onOpenChange:r},a.createElement(Hf,{container:s},a.createElement(Wf,{"cmdk-overlay":"",className:o}),a.createElement(Bf,{"aria-label":e.label,"cmdk-dialog":"",className:i},a.createElement(oh,{ref:t,...l}))))})),dh=a.forwardRef(((e,t)=>bh((e=>0===e.filtered.count))?a.createElement(x.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),fh=a.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return a.createElement(x.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},kh(e,(e=>a.createElement("div",{"aria-hidden":!0},e))))})),hh=Object.assign(oh,{List:ch,Item:ah,Input:lh,Group:ih,Separator:sh,Dialog:uh,Empty:dh,Loading:fh});function ph(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function mh(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function gh(e){let t=a.useRef(e);return vh((()=>{t.current=e})),t}var vh="undefined"==typeof window?a.useEffect:a.useLayoutEffect;function yh(e){let t=a.useRef();return void 0===t.current&&(t.current=e()),t}function bh(e){let t=nh(),n=()=>e(t.snapshot());return a.useSyncExternalStore(t.subscribe,n,n)}function wh(e,t,n,r=[]){let o=a.useRef(),i=eh();return vh((()=>{var a;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map((e=>e.trim()));i.value(e,s,l),null==(a=t.current)||a.setAttribute(Kf,s),o.current=s})),o}var xh=()=>{let[e,t]=a.useState(),n=yh((()=>new Map));return vh((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function kh({asChild:e,children:t},n){return e&&a.isValidElement(t)?a.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var Sh={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Eh=sa("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ch=sa("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Dh=zf,Th=Hf,Ah=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Wf,{ref:n,className:Su("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})));Ah.displayName=Wf.displayName;const _h=a.forwardRef((({className:e,children:t,...n},r)=>(0,d.jsxs)(Th,{children:[(0,d.jsx)(Ah,{}),(0,d.jsxs)(Bf,{ref:r,className:Su("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,(0,d.jsxs)($f,{className:Su("absolute right-4 top-3 inline-flex items-center justify-center","rounded-full p-2 cursor-pointer bg-transparent shadow-none border-0","text-muted-foreground opacity-70 transition-opacity","hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-0","disabled:pointer-events-none"),children:[(0,d.jsx)(Ch,{className:"h-5 w-5"}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})));_h.displayName=Bf.displayName;const Nh=({className:e,...t})=>(0,d.jsx)("div",{className:Su("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Nh.displayName="DialogHeader";const Mh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Vf,{ref:n,className:Su("text-lg font-semibold leading-none tracking-tight",e),...t})));Mh.displayName=Vf.displayName;const Rh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Uf,{ref:n,className:Su("text-sm text-muted-foreground",e),...t})));Rh.displayName=Uf.displayName;const Oh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh,{ref:n,className:Su("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));Oh.displayName=hh.displayName;const jh=a.forwardRef((({className:e,...t},n)=>(0,d.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,d.jsx)(Eh,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,d.jsx)(hh.Input,{ref:n,className:Su("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})));jh.displayName=hh.Input.displayName;const Ih=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.List,{ref:n,className:Su("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));Ih.displayName=hh.List.displayName;const Ph=a.forwardRef(((e,t)=>(0,d.jsx)(hh.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));Ph.displayName=hh.Empty.displayName;const Lh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.Group,{ref:n,className:Su("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));Lh.displayName=hh.Group.displayName;const Fh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.Separator,{ref:n,className:Su("-mx-1 h-px bg-border",e),...t})));Fh.displayName=hh.Separator.displayName;const zh=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(hh.Item,{ref:n,className:Su("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","aria-selected:bg-transparent aria-selected:text-accent-foreground","aria-[selected=false]:hover:bg-accent aria-[selected=true]:hover:bg-accent aria-[selected=false]:hover:text-accent-foreground",e),...t})));zh.displayName=hh.Item.displayName;const Hh=a.forwardRef((({className:e,type:t,...n},r)=>(0,d.jsx)("input",{type:t,className:Su("flex h-10 w-full rounded-md border border-input bg-background shadow-none px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-secondary",e),ref:r,...n})));Hh.displayName="Input";const Wh=sa("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function Bh({inputRef:e,search:t,setSearch:n,open:r,setOpen:o,events:a,filteredResults:i,paginatedResults:s,totalPages:l,page:c,setPage:u,timezone:f,timeFormat:h,setSearchOpen:p}){const m=null==a,g=!m&&0===a.length;return(0,d.jsxs)("div",{className:"relative w-full lg:min-w-[350px]","aria-busy":m,"aria-live":"polite",children:[(0,d.jsx)("label",{htmlFor:"event-search",className:"sr-only",children:"Search events"}),(0,d.jsx)(Hh,{id:"event-search",ref:e,type:"search",placeholder:"Search events…","aria-label":"Search events",role:"combobox","aria-expanded":r,"aria-controls":"event-search-listbox","aria-autocomplete":"list",value:t,onFocus:()=>o(!0),onBlur:e=>{const t=e.relatedTarget;t&&e.currentTarget.parentNode?.contains(t)||setTimeout((()=>{o(!1),p?.(!1)}),150)},onKeyDown:e=>{"Escape"===e.key&&(o(!1),p?.(!1),e.currentTarget.blur())},onChange:e=>n(e.target.value),className:"pl-9 h-10 w-full shadow-none border border-solid box-border rounded disabled:bg-background",autoComplete:"off",disabled:m||g}),(0,d.jsx)("span",{"aria-hidden":"true",className:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none",children:m?(0,d.jsx)(Wh,{className:"w-4 h-4 animate-spin"}):(0,d.jsx)(Eh,{className:"w-4 h-4"})}),(0,d.jsx)("div",{className:"sr-only",role:"status",children:m?"Loading events...":g?"No events found.":`${i.length} events found.`}),r&&t&&(0,d.jsx)(Oh,{className:Su("absolute z-50 left-0 top-12 w-full rounded-md border bg-popover text-popover-foreground shadow-md border-border border-solid","max-h-[400px] h-auto"),children:(0,d.jsx)(Ih,{id:"event-search-listbox",role:"listbox",className:"p-2 max-h-[400px] overflow-y-auto",children:0===i.length?(0,d.jsx)(Ph,{className:"p-4 text-muted-foreground text-sm",children:"No events found."}):(0,d.jsxs)(d.Fragment,{children:[s.map((e=>{const t=Sc.fromISO(e.start_date||e.start,{zone:"utc"}).setZone(f).toFormat("24"===h?"d MMM yyyy, EEE • HH:mm":"d MMM yyyy, EEE • h:mma").replace("AM","am").replace("PM","pm");return(0,d.jsxs)(zh,{role:"option","aria-selected":"false",value:e.title,onClick:()=>{window.open(e.url,"_blank","noopener,noreferrer"),o(!1),p?.(!1)},className:"grid gap-1 p-2 cursor-pointer text-sm text-foreground rounded-md hover:!bg-accent",children:[(0,d.jsx)("span",{className:"font-normal block",children:t}),(0,d.jsx)("span",{className:"font-medium",children:e.title}),(0,d.jsx)("span",{className:"sr-only",children:Sc.fromISO(e.start_date||e.start,{zone:f}).toLocaleString(Sc.DATETIME_FULL)})]},e.id)})),l>1&&(0,d.jsxs)("div",{className:"flex justify-between items-center px-2 pt-2 text-xs text-muted-foreground",children:[(0,d.jsx)(Pu,{variant:"ghost",size:"sm",onClick:()=>u((e=>Math.max(0,e-1))),disabled:0===c,"aria-label":"Previous page","aria-disabled":0===c,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Prev"}),(0,d.jsxs)("span",{"aria-live":"polite",children:["Page ",c+1," of ",l]}),(0,d.jsx)(Pu,{variant:"ghost",size:"sm",onClick:()=>u((e=>Math.min(l-1,e+1))),disabled:c>=l-1,"aria-label":"Next page","aria-disabled":c>=l-1,className:"cursor-pointer box-border border-none text-foreground bg-transparent shadow-none",children:"Next"})]})]})})})]})}function Vh({calendarApi:e,setCurrentDate:t,isTodayInRange:n}){return(0,d.jsx)(Pu,{variant:"outline",className:Su("border-solid box-border font-normal shadow-none cursor-pointer","rounded disabled:opacity-100 disabled:bg-background disabled:text-muted-foreground/50 text-foreground"),disabled:n,onClick:()=>{e&&(e.today(),t(e.getDate()))},"aria-label":"Jump to today","aria-pressed":n,title:"Jump to today",children:"Today"})}var Uh=a.forwardRef(((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,l]=m({prop:n,onChange:o,defaultProp:r});return(0,d.jsx)(x.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:s(e.onClick,(()=>{e.disabled||l(!i)}))})}));Uh.displayName="Toggle";var $h=Uh,Gh="ToggleGroup",[qh,Zh]=f(Gh,[nn]),Yh=nn(),Qh=a.forwardRef(((e,t)=>{const{type:n,...r}=e;if("single"===n){const e=r;return(0,d.jsx)(Xh,{...e,ref:t})}if("multiple"===n){const e=r;return(0,d.jsx)(ep,{...e,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Gh}\``)}));Qh.displayName=Gh;var[Kh,Jh]=qh(Gh),Xh=a.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s,l]=m({prop:n,defaultProp:r,onChange:o});return(0,d.jsx)(Kh,{scope:e.__scopeToggleGroup,type:"single",value:s?[s]:[],onItemActivate:l,onItemDeactivate:a.useCallback((()=>l("")),[l]),children:(0,d.jsx)(rp,{...i,ref:t})})})),ep=a.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s=[],l]=m({prop:n,defaultProp:r,onChange:o}),c=a.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),u=a.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return(0,d.jsx)(Kh,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:u,children:(0,d.jsx)(rp,{...i,ref:t})})}));Qh.displayName=Gh;var[tp,np]=qh(Gh),rp=a.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=Yh(n),u=C(i),f={role:"group",dir:u,...l};return(0,d.jsx)(tp,{scope:n,rovingFocus:o,disabled:r,children:o?(0,d.jsx)(fn,{asChild:!0,...c,orientation:a,dir:u,loop:s,children:(0,d.jsx)(x.div,{...f,ref:t})}):(0,d.jsx)(x.div,{...f,ref:t})})})),op="ToggleGroupItem",ap=a.forwardRef(((e,t)=>{const n=Jh(op,e.__scopeToggleGroup),r=np(op,e.__scopeToggleGroup),o=Yh(e.__scopeToggleGroup),i=n.value.includes(e.value),s=r.disabled||e.disabled,l={...e,pressed:i,disabled:s},c=a.useRef(null);return r.rovingFocus?(0,d.jsx)(hn,{asChild:!0,...o,focusable:!s,active:i,ref:c,children:(0,d.jsx)(ip,{...l,ref:t})}):(0,d.jsx)(ip,{...l,ref:t})}));ap.displayName=op;var ip=a.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Jh(op,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===a.type?i:void 0;return(0,d.jsx)(Uh,{...s,...o,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})})),sp=Qh,lp=ap;const cp=ju("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});a.forwardRef((({className:e,variant:t,size:n,...r},o)=>(0,d.jsx)($h,{ref:o,className:Su(cp({variant:t,size:n,className:e})),...r}))).displayName=$h.displayName;const up=a.createContext({size:"default",variant:"default"}),dp=a.forwardRef((({className:e,variant:t,size:n,children:r,...o},a)=>(0,d.jsx)(sp,{ref:a,className:Su("flex items-center justify-center gap-1",e),...o,children:(0,d.jsx)(up.Provider,{value:{variant:t,size:n},children:r})})));dp.displayName=sp.displayName;const fp=a.forwardRef((({className:e,children:t,variant:n,size:r,...o},i)=>{const s=a.useContext(up);return(0,d.jsx)(lp,{ref:i,className:Su(cp({variant:s.variant||n,size:s.size||r}),e),...o,children:t})}));function hp({calendarApi:e,view:t,setView:n}){return(0,d.jsxs)(dp,{type:"single",className:"bg-muted text-foreground gap-2 border border-solid border-border p-[4px] h-10 box-border rounded shadow-none",value:t,onValueChange:t=>{t&&(e?.changeView(t),n(t))},"aria-label":"Calendar view mode",role:"radiogroup",children:[(0,d.jsx)(fp,{value:"dayGridMonth",role:"radio","aria-checked":"dayGridMonth"===t,"aria-label":"Month view",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Month"}),(0,d.jsx)(fp,{value:"timeGridWeek",role:"radio","aria-checked":"timeGridWeek"===t,"aria-label":"Week view",className:"border-none transition-none cursor-pointer shadow-none h-full rounded-sm text-foreground hover:text-foreground data-[state=on]:bg-white data-[state=on]:font-semibold",children:"Week"})]})}function pp({className:e,...t}){return(0,d.jsx)("div",{className:Su("animate-pulse rounded-md bg-muted",e),...t})}function mp(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}fp.displayName=lp.displayName;let gp={};function vp(){return gp}function yp(e,t){const n=vp(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=mp(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function bp(e,t){const n=vp(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=mp(e),a=o.getDay(),i=6+(a<r?-7:0)-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function wp(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function xp(e,t){const n=mp(e),r=n.getFullYear(),o=n.getDate(),a=wp(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const i=function(e){const t=mp(e),n=t.getFullYear(),r=t.getMonth(),o=wp(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(t,Math.min(o,i)),n}const kp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Sp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ep={date:Sp({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Sp({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Sp({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Cp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Dp(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Tp={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Dp({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Dp({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Dp({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Dp({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Dp({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ap(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(i))return t}(s):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(i))return t}(s);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(i.length)}}}const _p={ordinalNumber:(Np={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Np.matchPattern);if(!n)return null;const r=n[0],o=e.match(Np.parsePattern);if(!o)return null;let a=Np.valueCallback?Np.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:Ap({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ap({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ap({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ap({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ap({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Np;const Mp={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=kp[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Ep,formatRelative:(e,t,n,r)=>Cp[e],localize:Tp,match:_p,options:{weekStartsOn:0,firstWeekContainsDate:1}},Rp=(Math.pow(10,8),6048e5);function Op(e){const t=mp(e);return t.setHours(0,0,0,0),t}function jp(e){const t=mp(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ip(e,t){const n=Op(e),r=Op(t),o=+n-jp(n),a=+r-jp(r);return Math.round((o-a)/864e5)}function Pp(e){const t=mp(e),n=wp(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Lp(e){return yp(e,{weekStartsOn:1})}function Fp(e){const t=mp(e),n=t.getFullYear(),r=wp(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Lp(r),a=wp(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=Lp(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function zp(e){const t=mp(e),n=+Lp(t)-+function(e){const t=Fp(e),n=wp(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Lp(n)}(t);return Math.round(n/Rp)+1}function Hp(e,t){const n=mp(e),r=n.getFullYear(),o=vp(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=wp(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=yp(i,t),l=wp(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=yp(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Wp(e,t){const n=mp(e),r=+yp(n,t)-+function(e,t){const n=vp(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Hp(e,t),a=wp(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),yp(a,t)}(n,t);return Math.round(r/Rp)+1}function Bp(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Vp={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bp("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Bp(n+1,2)},d:(e,t)=>Bp(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Bp(e.getHours()%12||12,t.length),H:(e,t)=>Bp(e.getHours(),t.length),m:(e,t)=>Bp(e.getMinutes(),t.length),s:(e,t)=>Bp(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Bp(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Up={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Vp.y(e,t)},Y:function(e,t,n,r){const o=Hp(e,r),a=o>0?o:1-o;return"YY"===t?Bp(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Bp(a,t.length)},R:function(e,t){return Bp(Fp(e),t.length)},u:function(e,t){return Bp(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bp(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bp(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Vp.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Bp(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Wp(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Bp(o,t.length)},I:function(e,t,n){const r=zp(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Bp(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Vp.d(e,t)},D:function(e,t,n){const r=function(e){const t=mp(e);return Ip(t,Pp(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Bp(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bp(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bp(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Bp(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Vp.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Vp.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bp(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bp(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Vp.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Vp.s(e,t)},S:function(e,t){return Vp.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Gp(r);case"XXXX":case"XX":return qp(r);default:return qp(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Gp(r);case"xxxx":case"xx":return qp(r);default:return qp(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$p(r,":");default:return"GMT"+qp(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$p(r,":");default:return"GMT"+qp(r,":")}},t:function(e,t,n){return Bp(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Bp(e.getTime(),t.length)}};function $p(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+Bp(a,2)}function Gp(e,t){return e%60==0?(e>0?"-":"+")+Bp(Math.abs(e)/60,2):qp(e,t)}function qp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Bp(Math.trunc(r/60),2)+t+Bp(r%60,2)}const Zp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Yp=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Qp={p:Yp,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Zp(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Zp(r,t)).replace("{{time}}",Yp(o,t))}},Kp=/^D+$/,Jp=/^Y+$/,Xp=["D","DD","YY","YYYY"];function em(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const tm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rm=/^'([^]*?)'?$/,om=/''/g,am=/[a-zA-Z]/;function im(e,t,n){const r=vp(),o=n?.locale??r.locale??Mp,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=mp(e);if(!function(e){if(!em(e)&&"number"!=typeof e)return!1;const t=mp(e);return!isNaN(Number(t))}(s))throw new RangeError("Invalid time value");let l=t.match(nm).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,Qp[t])(e,o.formatLong):e})).join("").match(tm).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:sm(e)};if(Up[t])return{isToken:!0,value:e};if(t.match(am))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const a=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return Jp.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return Kp.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Xp.includes(e))throw new RangeError(r)}(a,t,String(e)),(0,Up[a[0]])(s,a,o.localize,c)})).join("")}function sm(e){const t=e.match(rm);return t?t[1].replace(om,"'"):e}function lm(e){const t=mp(e);return t.setDate(1),t.setHours(0,0,0,0),t}function cm(e){const t=mp(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function um(e,t){const n=mp(e),r=mp(t);return n.getFullYear()===r.getFullYear()}function dm(e,t){const n=mp(e);return isNaN(+n)?wp(e,NaN):(n.setFullYear(t),n)}function fm(e,t){const n=mp(e),r=mp(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function hm(e,t){const n=mp(e);if(isNaN(t))return wp(e,NaN);if(!t)return n;const r=n.getDate(),o=wp(e,n.getTime());return o.setMonth(n.getMonth()+t+1,0),r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function pm(e,t){const n=mp(e),r=mp(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function mm(e,t){return+mp(e)<+mp(t)}function gm(e,t){const n=mp(e);return isNaN(t)?wp(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function vm(e,t){return+Op(e)==+Op(t)}function ym(e,t){const n=mp(e),r=mp(t);return n.getTime()>r.getTime()}function bm(e,t){return gm(e,-t)}function wm(e,t){return gm(e,7*t)}function xm(e,t){return hm(e,12*t)}function km(e){return bp(e,{weekStartsOn:1})}function Sm(e){let t;return e.forEach((function(e){const n=mp(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Em(e){let t;return e.forEach((e=>{const n=mp(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}function Cm(e,t){return function(e,t,n){const r=yp(e,n),o=yp(t,n),a=+r-jp(r),i=+o-jp(o);return Math.round((a-i)/Rp)}(function(e){const t=mp(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),lm(e),t)+1}var Dm=function(){return Dm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dm.apply(this,arguments)};function Tm(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Am(e){return"multiple"===e.mode}function _m(e){return"range"===e.mode}function Nm(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var Mm={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"},Rm=Object.freeze({__proto__:null,formatCaption:function(e,t){return im(e,"LLLL y",t)},formatDay:function(e,t){return im(e,"d",t)},formatMonthCaption:function(e,t){return im(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return im(e,"cccccc",t)},formatYearCaption:function(e,t){return im(e,"yyyy",t)}}),Om=Object.freeze({__proto__:null,labelDay:function(e,t,n){return im(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return im(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var jm=(0,a.createContext)(void 0);function Im(e){var t,n,r,o,a,i=e.initialProps,s=(n=Mm,r=Mp,o=new Date,{captionLayout:"buttons",classNames:n,formatters:Rm,labels:Om,locale:r,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:o,mode:"default"}),l=function(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=lm(r):t&&(a=new Date(t,0,1)),o?i=cm(o):n&&(i=new Date(n,11,31)),{fromDate:a?Op(a):void 0,toDate:i?Op(i):void 0}}(i),c=l.fromDate,u=l.toDate,f=null!==(t=i.captionLayout)&&void 0!==t?t:s.captionLayout;"buttons"===f||c&&u||(f="buttons"),(Nm(i)||Am(i)||_m(i))&&(a=i.onSelect);var h=Dm(Dm(Dm({},s),i),{captionLayout:f,classNames:Dm(Dm({},s.classNames),i.classNames),components:Dm({},i.components),formatters:Dm(Dm({},s.formatters),i.formatters),fromDate:c,labels:Dm(Dm({},s.labels),i.labels),mode:i.mode||s.mode,modifiers:Dm(Dm({},s.modifiers),i.modifiers),modifiersClassNames:Dm(Dm({},s.modifiersClassNames),i.modifiersClassNames),onSelect:a,styles:Dm(Dm({},s.styles),i.styles),toDate:u});return(0,d.jsx)(jm.Provider,{value:h,children:e.children})}function Pm(){var e=(0,a.useContext)(jm);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Lm(e){var t=Pm(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return(0,d.jsx)("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function Fm(e){return(0,d.jsx)("svg",Dm({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:(0,d.jsx)("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function zm(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,s=e.className,l=e.style,c=Pm(),u=null!==(n=null===(t=c.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==n?n:Fm;return(0,d.jsxs)("div",{className:s,style:l,children:[(0,d.jsx)("span",{className:c.classNames.vhidden,children:e["aria-label"]}),(0,d.jsx)("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:r,children:a}),(0,d.jsxs)("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[i,(0,d.jsx)(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function Hm(e){var t,n=Pm(),r=n.fromDate,o=n.toDate,a=n.styles,i=n.locale,s=n.formatters.formatMonthCaption,l=n.classNames,c=n.components,u=n.labels.labelMonthDropdown;if(!r)return(0,d.jsx)(d.Fragment,{});if(!o)return(0,d.jsx)(d.Fragment,{});var f=[];if(um(r,o))for(var h=lm(r),p=r.getMonth();p<=o.getMonth();p++)f.push(xp(h,p));else for(h=lm(new Date),p=0;p<=11;p++)f.push(xp(h,p));var m=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:zm;return(0,d.jsx)(m,{name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),r=xp(lm(e.displayMonth),n);e.onChange(r)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:f.map((function(e){return(0,d.jsx)("option",{value:e.getMonth(),children:s(e,{locale:i})},e.getMonth())}))})}function Wm(e){var t,n=e.displayMonth,r=Pm(),o=r.fromDate,a=r.toDate,i=r.locale,s=r.styles,l=r.classNames,c=r.components,u=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,h=[];if(!o)return(0,d.jsx)(d.Fragment,{});if(!a)return(0,d.jsx)(d.Fragment,{});for(var p=o.getFullYear(),m=a.getFullYear(),g=p;g<=m;g++)h.push(dm(Pp(new Date),g));var v=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:zm;return(0,d.jsx)(v,{name:"years","aria-label":f(),className:l.dropdown_year,style:s.dropdown_year,onChange:function(t){var r=dm(lm(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:u(n,{locale:i}),children:h.map((function(e){return(0,d.jsx)("option",{value:e.getFullYear(),children:u(e,{locale:i})},e.getFullYear())}))})}var Bm=(0,a.createContext)(void 0);function Vm(e){var t=Pm(),n=function(){var e=Pm(),t=function(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return a&&fm(a,o)<0&&(o=hm(a,-1*(l-1))),i&&fm(o,i)<0&&(o=i),lm(o)}(e),n=function(e,t){var n=(0,a.useState)(e),r=n[0];return[void 0===t?r:t,n[1]]}(t,e.month),r=n[0],o=n[1];return[r,function(t){var n;if(!e.disableNavigation){var r=lm(t);o(r),null===(n=e.onMonthChange)||void 0===n||n.call(e,r)}}]}(),r=n[0],o=n[1],i=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=lm(e),a=fm(lm(hm(o,r)),o),i=[],s=0;s<a;s++){var l=hm(o,s);i.push(l)}return n&&(i=i.reverse()),i}(r,t),s=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=void 0===o?1:o,i=r?a:1,s=lm(e);if(!n)return hm(s,i);if(!(fm(n,e)<a))return hm(s,i)}}(r,t),l=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=r?void 0===o?1:o:1,i=lm(e);if(!n)return hm(i,-a);if(!(fm(i,n)<=0))return hm(i,-a)}}(r,t),c=function(e){return i.some((function(t){return pm(e,t)}))},u={currentMonth:r,displayMonths:i,goToMonth:o,goToDate:function(e,n){c(e)||(n&&mm(e,n)?o(hm(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:l,nextMonth:s,isDateDisplayed:c};return(0,d.jsx)(Bm.Provider,{value:u,children:e.children})}function Um(){var e=(0,a.useContext)(Bm);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function $m(e){var t,n=Pm(),r=n.classNames,o=n.styles,a=n.components,i=Um().goToMonth,s=function(t){i(hm(t,e.displayIndex?-e.displayIndex:0))},l=null!==(t=null==a?void 0:a.CaptionLabel)&&void 0!==t?t:Lm,c=(0,d.jsx)(l,{id:e.id,displayMonth:e.displayMonth});return(0,d.jsxs)("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[(0,d.jsx)("div",{className:r.vhidden,children:c}),(0,d.jsx)(Hm,{onChange:s,displayMonth:e.displayMonth}),(0,d.jsx)(Wm,{onChange:s,displayMonth:e.displayMonth})]})}function Gm(e){return(0,d.jsx)("svg",Dm({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,d.jsx)("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function qm(e){return(0,d.jsx)("svg",Dm({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,d.jsx)("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Zm=(0,a.forwardRef)((function(e,t){var n=Pm(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),s=Dm(Dm({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),(0,d.jsx)("button",Dm({},e,{ref:t,type:"button",className:i,style:s}))}));function Ym(e){var t,n,r=Pm(),o=r.dir,a=r.locale,i=r.classNames,s=r.styles,l=r.labels,c=l.labelPrevious,u=l.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return(0,d.jsx)(d.Fragment,{});var h=c(e.previousMonth,{locale:a}),p=[i.nav_button,i.nav_button_previous].join(" "),m=u(e.nextMonth,{locale:a}),g=[i.nav_button,i.nav_button_next].join(" "),v=null!==(t=null==f?void 0:f.IconRight)&&void 0!==t?t:qm,y=null!==(n=null==f?void 0:f.IconLeft)&&void 0!==n?n:Gm;return(0,d.jsxs)("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&(0,d.jsx)(Zm,{name:"previous-month","aria-label":h,className:p,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===o?(0,d.jsx)(v,{className:i.nav_icon,style:s.nav_icon}):(0,d.jsx)(y,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&(0,d.jsx)(Zm,{name:"next-month","aria-label":m,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===o?(0,d.jsx)(y,{className:i.nav_icon,style:s.nav_icon}):(0,d.jsx)(v,{className:i.nav_icon,style:s.nav_icon})})]})}function Qm(e){var t=Pm().numberOfMonths,n=Um(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,s=i.findIndex((function(t){return pm(e.displayMonth,t)})),l=0===s,c=s===i.length-1,u=t>1&&(l||!c),f=t>1&&(c||!l);return(0,d.jsx)(Ym,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){o&&a(o)}})}function Km(e){var t,n,r=Pm(),o=r.classNames,a=r.disableNavigation,i=r.styles,s=r.captionLayout,l=r.components,c=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:Lm;return n=a?(0,d.jsx)(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?(0,d.jsx)($m,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)($m,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),(0,d.jsx)(Qm,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,d.jsx)(Qm,{displayMonth:e.displayMonth,id:e.id})]}),(0,d.jsx)("div",{className:o.caption,style:i.caption,children:n})}function Jm(e){var t=Pm(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?(0,d.jsx)("tfoot",{className:o,style:r.tfoot,children:(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:8,children:n})})}):(0,d.jsx)(d.Fragment,{})}function Xm(){var e=Pm(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=function(e,t,n){for(var r=n?Lp(new Date):yp(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=gm(r,a);o.push(i)}return o}(o,a,i);return(0,d.jsxs)("tr",{style:n.head_row,className:t.head_row,children:[r&&(0,d.jsx)("td",{style:n.head_cell,className:t.head_cell}),c.map((function(e,r){return(0,d.jsx)("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(e,{locale:o}),children:s(e,{locale:o})},r)}))]})}function eg(){var e,t=Pm(),n=t.classNames,r=t.styles,o=t.components,a=null!==(e=null==o?void 0:o.HeadRow)&&void 0!==e?e:Xm;return(0,d.jsx)("thead",{style:r.head,className:n.head,children:(0,d.jsx)(a,{})})}function tg(e){var t=Pm(),n=t.locale,r=t.formatters.formatDay;return(0,d.jsx)(d.Fragment,{children:r(e.date,{locale:n})})}var ng=(0,a.createContext)(void 0);function rg(e){if(!Am(e.initialProps)){return(0,d.jsx)(ng.Provider,{value:{selected:void 0,modifiers:{disabled:[]}},children:e.children})}return(0,d.jsx)(og,{initialProps:e.initialProps,children:e.children})}function og(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,i={disabled:[]};r&&i.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return vm(t,e)}));return Boolean(t&&!n)}));var s={selected:r,onDayClick:function(e,n,i){var s,l;if(!(null===(s=t.onDayClick)||void 0===s||s.call(t,e,n,i),Boolean(n.selected&&o&&(null==r?void 0:r.length)===o)||Boolean(!n.selected&&a&&(null==r?void 0:r.length)===a))){var c=r?Tm([],r,!0):[];if(n.selected){var u=c.findIndex((function(t){return vm(e,t)}));c.splice(u,1)}else c.push(e);null===(l=t.onSelect)||void 0===l||l.call(t,c,e,n,i)}},modifiers:i};return(0,d.jsx)(ng.Provider,{value:s,children:n})}function ag(){var e=(0,a.useContext)(ng);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var ig,sg=(0,a.createContext)(void 0);function lg(e){if(!_m(e.initialProps)){return(0,d.jsx)(sg.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}},children:e.children})}return(0,d.jsx)(cg,{initialProps:e.initialProps,children:e.children})}function cg(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,i=o.to,s=t.min,l=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],i?(c.range_end=[i],vm(a,i)||(c.range_middle=[{after:a,before:i}])):c.range_end=[a]):i&&(c.range_start=[i],c.range_end=[i]),s&&(a&&!i&&c.disabled.push({after:bm(a,s-1),before:gm(a,s-1)}),a&&i&&c.disabled.push({after:a,before:gm(a,s-1)}),!a&&i&&c.disabled.push({after:bm(i,s-1),before:gm(i,s-1)})),l){if(a&&!i&&(c.disabled.push({before:gm(a,1-l)}),c.disabled.push({after:gm(a,l-1)})),a&&i){var u=l-(Ip(i,a)+1);c.disabled.push({before:bm(a,u)}),c.disabled.push({after:gm(i,u)})}!a&&i&&(c.disabled.push({before:gm(i,1-l)}),c.disabled.push({after:gm(i,l-1)}))}return(0,d.jsx)(sg.Provider,{value:{selected:r,onDayClick:function(e,n,o){var a,i;null===(a=t.onDayClick)||void 0===a||a.call(t,e,n,o);var s=function(e,t){var n=t||{},r=n.from,o=n.to;if(r&&o){if(vm(o,e)&&vm(r,e))return;if(vm(o,e))return{from:o,to:void 0};if(vm(r,e))return;return ym(r,e)?{from:e,to:o}:{from:r,to:e}}return o?ym(e,o)?{from:o,to:e}:{from:e,to:o}:r?mm(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}(e,r);null===(i=t.onSelect)||void 0===i||i.call(t,s,e,n,o)},modifiers:c},children:n})}function ug(){var e=(0,a.useContext)(sg);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function dg(e){return Array.isArray(e)?Tm([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(ig||(ig={}));var fg=ig.Selected,hg=ig.Disabled,pg=ig.Hidden,mg=ig.Today,gg=ig.RangeEnd,vg=ig.RangeMiddle,yg=ig.RangeStart,bg=ig.Outside,wg=(0,a.createContext)(void 0);function xg(e){var t=Pm(),n=function(e,t,n){var r,o=((r={})[fg]=dg(e.selected),r[hg]=dg(e.disabled),r[pg]=dg(e.hidden),r[mg]=[e.today],r[gg]=[],r[vg]=[],r[yg]=[],r[bg]=[],r);return e.fromDate&&o[hg].push({before:e.fromDate}),e.toDate&&o[hg].push({after:e.toDate}),Am(e)?o[hg]=o[hg].concat(t.modifiers[hg]):_m(e)&&(o[hg]=o[hg].concat(n.modifiers[hg]),o[yg]=n.modifiers[yg],o[vg]=n.modifiers[vg],o[gg]=n.modifiers[gg]),o}(t,ag(),ug()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];t[n]=dg(r)})),t}(t.modifiers),o=Dm(Dm({},n),r);return(0,d.jsx)(wg.Provider,{value:o,children:e.children})}function kg(){var e=(0,a.useContext)(wg);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Sg(e,t,n){var r=Object.keys(t).reduce((function(n,r){var o=t[r];return function(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(em(t))return vm(e,t);var n,r,o,a,i,s;if(s=t,Array.isArray(s)&&s.every(em))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return n=e,a=(r=t).from,i=r.to,a&&i?(Ip(i,a)<0&&(a=(o=[i,a])[0],i=o[1]),Ip(n,a)>=0&&Ip(i,n)>=0):i?vm(i,n):!!a&&vm(a,n);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var l=Ip(t.before,e)>0,c=Ip(t.after,e)<0;return ym(t.before,t.after)?c&&l:l||c}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?Ip(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?Ip(t.before,e)>0:"function"==typeof t&&t(e)}))}(e,o)&&n.push(r),n}),[]),o={};return r.forEach((function(e){return o[e]=!0})),n&&!pm(e,n)&&(o.outside=!0),o}function Eg(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,s=void 0===i?{count:0,lastFocused:e}:i,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,f={day:gm,week:wm,month:hm,year:xm,startOfWeek:function(e){return o.ISOWeek?Lp(e):yp(e,{locale:d,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?km(e):bp(e,{locale:d,weekStartsOn:l})}}[n](e,"after"===r?1:-1);"before"===r&&c?f=Sm([c,f]):"after"===r&&u&&(f=Em([u,f]));var h=!0;if(a){var p=Sg(f,a);h=!p.disabled&&!p.hidden}return h?f:s.count>365?s.lastFocused:Eg(f,{moveBy:n,direction:r,context:o,modifiers:a,retry:Dm(Dm({},s),{count:s.count+1})})}var Cg=(0,a.createContext)(void 0);function Dg(e){var t=Um(),n=kg(),r=(0,a.useState)(),o=r[0],i=r[1],s=(0,a.useState)(),l=s[0],c=s[1],u=function(e,t){for(var n,r,o=lm(e[0]),a=cm(e[e.length-1]),i=o;i<=a;){var s=Sg(i,t);if(s.disabled||s.hidden)i=gm(i,1);else{if(s.selected)return i;s.today&&!r&&(r=i),n||(n=i),i=gm(i,1)}}return r||n}(t.displayMonths,n),f=(null!=o?o:l&&t.isDateDisplayed(l))?l:u,h=function(e){i(e)},p=Pm(),m=function(e,r){if(o){var a=Eg(o,{moveBy:e,direction:r,context:p,modifiers:n});vm(o,a)||(t.goToDate(a,o),h(a))}},g={focusedDay:o,focusTarget:f,blur:function(){c(o),i(void 0)},focus:h,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return(0,d.jsx)(Cg.Provider,{value:g,children:e.children})}function Tg(){var e=(0,a.useContext)(Cg);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Ag=(0,a.createContext)(void 0);function _g(e){if(!Nm(e.initialProps)){return(0,d.jsx)(Ag.Provider,{value:{selected:void 0},children:e.children})}return(0,d.jsx)(Ng,{initialProps:e.initialProps,children:e.children})}function Ng(e){var t=e.initialProps,n=e.children,r={selected:t.selected,onDayClick:function(e,n,r){var o,a,i;null===(o=t.onDayClick)||void 0===o||o.call(t,e,n,r),!n.selected||t.required?null===(i=t.onSelect)||void 0===i||i.call(t,e,e,n,r):null===(a=t.onSelect)||void 0===a||a.call(t,void 0,e,n,r)}};return(0,d.jsx)(Ag.Provider,{value:r,children:n})}function Mg(){var e=(0,a.useContext)(Ag);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Rg(e,t,n){var r,o,i,s=Pm(),l=Tg(),c=function(e,t){return Sg(e,kg(),t)}(e,t),u=function(e,t){var n=Pm(),r=Mg(),o=ag(),a=ug(),i=Tg(),s=i.focusDayAfter,l=i.focusDayBefore,c=i.focusWeekAfter,u=i.focusWeekBefore,d=i.blur,f=i.focus,h=i.focusMonthBefore,p=i.focusMonthAfter,m=i.focusYearBefore,g=i.focusYearAfter,v=i.focusStartOfWeek,y=i.focusEndOfWeek,b={onClick:function(i){var s,l,c,u;Nm(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,i):Am(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,i):_m(n)?null===(c=a.onDayClick)||void 0===c||c.call(a,e,t,i):null===(u=n.onDayClick)||void 0===u||u.call(n,e,t,i)},onFocus:function(r){var o;f(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,r)},onBlur:function(r){var o;d(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,r)},onKeyDown:function(r){var o;switch(r.key){case"ArrowLeft":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":r.preventDefault(),r.stopPropagation(),c();break;case"ArrowUp":r.preventDefault(),r.stopPropagation(),u();break;case"PageUp":r.preventDefault(),r.stopPropagation(),r.shiftKey?m():h();break;case"PageDown":r.preventDefault(),r.stopPropagation(),r.shiftKey?g():p();break;case"Home":r.preventDefault(),r.stopPropagation(),v();break;case"End":r.preventDefault(),r.stopPropagation(),y()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,r)},onKeyUp:function(r){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,r)},onMouseEnter:function(r){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,r)},onMouseLeave:function(r){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,r)},onPointerEnter:function(r){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,r)},onPointerLeave:function(r){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,r)},onTouchCancel:function(r){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,r)},onTouchEnd:function(r){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,r)},onTouchMove:function(r){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,r)},onTouchStart:function(r){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,r)}};return b}(e,c),f=function(){var e=Pm(),t=Mg(),n=ag(),r=ug();return Nm(e)?t.selected:Am(e)?n.selected:_m(e)?r.selected:void 0}(),h=Boolean(s.onDayClick||"default"!==s.mode);(0,a.useEffect)((function(){var t;c.outside||l.focusedDay&&h&&vm(l.focusedDay,e)&&(null===(t=n.current)||void 0===t||t.focus())}),[l.focusedDay,e,n,h,c.outside]);var p=function(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(function(e){return Object.values(ig).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}})),n}(s,c).join(" "),m=function(e,t){var n=Dm({},e.styles.day);return Object.keys(t).forEach((function(t){var r;n=Dm(Dm({},n),null===(r=e.modifiersStyles)||void 0===r?void 0:r[t])})),n}(s,c),g=Boolean(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(i=null===(o=s.components)||void 0===o?void 0:o.DayContent)&&void 0!==i?i:tg,y={style:m,className:p,children:(0,d.jsx)(v,{date:e,displayMonth:t,activeModifiers:c}),role:"gridcell"},b=l.focusTarget&&vm(l.focusTarget,e)&&!c.outside,w=l.focusedDay&&vm(l.focusedDay,e),x=Dm(Dm(Dm({},y),((r={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,r.tabIndex=w||b?0:-1,r)),u);return{isButton:h,isHidden:g,activeModifiers:c,selectedDays:f,buttonProps:x,divProps:y}}function Og(e){var t=(0,a.useRef)(null),n=Rg(e.date,e.displayMonth,t);return n.isHidden?(0,d.jsx)("div",{role:"gridcell"}):n.isButton?(0,d.jsx)(Zm,Dm({name:"day",ref:t},n.buttonProps)):(0,d.jsx)("div",Dm({},n.divProps))}function jg(e){var t=e.number,n=e.dates,r=Pm(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,s=r.locale,l=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return(0,d.jsx)("span",{className:i.weeknumber,style:a.weeknumber,children:c});var u=l(Number(t),{locale:s});return(0,d.jsx)(Zm,{name:"week-number","aria-label":u,className:i.weeknumber,style:a.weeknumber,onClick:function(e){o(t,n,e)},children:c})}function Ig(e){var t,n,r,o=Pm(),a=o.styles,i=o.classNames,s=o.showWeekNumber,l=o.components,c=null!==(t=null==l?void 0:l.Day)&&void 0!==t?t:Og,u=null!==(n=null==l?void 0:l.WeekNumber)&&void 0!==n?n:jg;return s&&(r=(0,d.jsx)("td",{className:i.cell,style:a.cell,children:(0,d.jsx)(u,{number:e.weekNumber,dates:e.dates})})),(0,d.jsxs)("tr",{className:i.row,style:a.row,children:[r,e.dates.map((function(t){return(0,d.jsx)("td",{className:i.cell,style:a.cell,role:"presentation",children:(0,d.jsx)(c,{displayMonth:e.displayMonth,date:t})},function(e){return Math.trunc(+mp(e)/1e3)}(t))}))]})}function Pg(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?km(t):bp(t,n),o=(null==n?void 0:n.ISOWeek)?Lp(e):yp(e,n),a=Ip(r,o),i=[],s=0;s<=a;s++)i.push(gm(o,s));return i.reduce((function(e,t){var r=(null==n?void 0:n.ISOWeek)?zp(t):Wp(t,n),o=e.find((function(e){return e.weekNumber===r}));return o?(o.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)}),[])}function Lg(e){var t,n,r,o=Pm(),a=o.locale,i=o.classNames,s=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,f=o.weekStartsOn,h=o.firstWeekContainsDate,p=o.ISOWeek,m=function(e,t){var n=Pg(lm(e),cm(e),t);if(null==t?void 0:t.useFixedWeeks){var r=Cm(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=wm(a,6-r),s=Pg(wm(a,1),i,t);n.push.apply(n,s)}}return n}(e.displayMonth,{useFixedWeeks:Boolean(c),ISOWeek:p,locale:a,weekStartsOn:f,firstWeekContainsDate:h}),g=null!==(t=null==u?void 0:u.Head)&&void 0!==t?t:eg,v=null!==(n=null==u?void 0:u.Row)&&void 0!==n?n:Ig,y=null!==(r=null==u?void 0:u.Footer)&&void 0!==r?r:Jm;return(0,d.jsxs)("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&(0,d.jsx)(g,{}),(0,d.jsx)("tbody",{className:i.tbody,style:s.tbody,children:m.map((function(t){return(0,d.jsx)(v,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)}))}),(0,d.jsx)(y,{displayMonth:e.displayMonth})]})}var Fg="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,zg=!1,Hg=0;function Wg(){return"react-day-picker-".concat(++Hg)}function Bg(e){var t,n,r=Pm(),o=r.dir,i=r.classNames,s=r.styles,l=r.components,c=Um().displayMonths,u=function(e){var t,n=null!=e?e:zg?Wg():null,r=(0,a.useState)(n),o=r[0],i=r[1];return Fg((function(){null===o&&i(Wg())}),[]),(0,a.useEffect)((function(){!1===zg&&(zg=!0)}),[]),null!==(t=null!=e?e:o)&&void 0!==t?t:void 0}(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),f=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,h=[i.month],p=s.month,m=0===e.displayIndex,g=e.displayIndex===c.length-1,v=!m&&!g;"rtl"===o&&(g=(t=[m,g])[0],m=t[1]),m&&(h.push(i.caption_start),p=Dm(Dm({},p),s.caption_start)),g&&(h.push(i.caption_end),p=Dm(Dm({},p),s.caption_end)),v&&(h.push(i.caption_between),p=Dm(Dm({},p),s.caption_between));var y=null!==(n=null==l?void 0:l.Caption)&&void 0!==n?n:Km;return(0,d.jsxs)("div",{className:h.join(" "),style:p,children:[(0,d.jsx)(y,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,d.jsx)(Lg,{id:f,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function Vg(e){var t=Pm(),n=t.classNames,r=t.styles;return(0,d.jsx)("div",{className:n.months,style:r.months,children:e.children})}function Ug(e){var t,n,r=e.initialProps,o=Pm(),i=Tg(),s=Um(),l=(0,a.useState)(!1),c=l[0],u=l[1];(0,a.useEffect)((function(){o.initialFocus&&i.focusTarget&&(c||(i.focus(i.focusTarget),u(!0)))}),[o.initialFocus,c,i.focus,i.focusTarget,i]);var f=[o.classNames.root,o.className];o.numberOfMonths>1&&f.push(o.classNames.multiple_months),o.showWeekNumber&&f.push(o.classNames.with_weeknumber);var h=Dm(Dm({},o.styles.root),o.style),p=Object.keys(r).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var n;return Dm(Dm({},e),((n={})[t]=r[t],n))}),{}),m=null!==(n=null===(t=r.components)||void 0===t?void 0:t.Months)&&void 0!==n?n:Vg;return(0,d.jsx)("div",Dm({className:f.join(" "),style:h,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},p,{children:(0,d.jsx)(m,{children:s.displayMonths.map((function(e,t){return(0,d.jsx)(Bg,{displayIndex:t,displayMonth:e},t)}))})}))}function $g(e){var t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return(0,d.jsx)(Im,{initialProps:n,children:(0,d.jsx)(Vm,{children:(0,d.jsx)(_g,{initialProps:n,children:(0,d.jsx)(rg,{initialProps:n,children:(0,d.jsx)(lg,{initialProps:n,children:(0,d.jsx)(xg,{children:(0,d.jsx)(Dg,{children:t})})})})})})})}function Gg(e){return(0,d.jsx)($g,Dm({},e,{children:(0,d.jsx)(Ug,{initialProps:e})}))}function qg({className:e,classNames:t,showOutsideDays:n=!0,...r}){return(0,d.jsx)(Gg,{showOutsideDays:n,className:Su("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Su(Iu({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Su(Iu({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...e})=>(0,d.jsx)(ud,{className:"h-4 w-4"}),IconRight:({...e})=>(0,d.jsx)(la,{className:"h-4 w-4"})},...r})}qg.displayName="Calendar";const Zg={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"};function Yg({calendarApi:e,currentDate:t,setCurrentDate:n}){const{startday:r}=eventkoi_params,o=function(e,t){const n=Object.entries(e).find((([e,n])=>n===t));return n?Number(n[0]):void 0}(Zg,r),[i,s]=(0,a.useState)(t?new Date(t):new Date),[l,c]=(0,a.useState)(t?new Date(t):new Date);(0,a.useEffect)((()=>{if(t){const e=new Date(t);s(e),c(e)}}),[t]);const u={from:yp(i,{weekStartsOn:o}),to:bp(i,{weekStartsOn:o})};return(0,d.jsx)(qg,{mode:"single",selected:u,month:l,weekStartsOn:o,onSelect:t=>{t&&t.getTime()!==i.getTime()&&(s(t),c(t),e&&e.gotoDate(t),n&&n(t))},onMonthChange:t=>{const r=t>l,o=xp(i,t.getMonth());c(t),s(o),e&&e.gotoDate(o),n&&n(o),console.log(r?"➡️ Next button clicked":"⬅️ Prev button clicked"),console.log("Selected new date:",o)},classNames:{day_range_end:"",day_range_middle:"",day_today:"",day_outside:"text-muted-foreground",day_disabled:"",row:"flex w-full mt-2 justify-between [&>*]:flex-1 [&>td:first-child>button]:rounded-l-md [&>td:last-child>button]:rounded-r-md",head_cell:"text-muted-foreground w-9 font-bold text-sm transition-colors",day_selected:"!bg-accent !text-black",cell:"h-9 w-9 p-0",day:"h-9 w-full border-0 [&:not([aria-selected='true'])]:bg-white hover:[&:not([aria-selected='true'])]:bg-accent [&:not([aria-selected='true'])]:rounded-md transition-colors",button:"cursor-pointer",nav_button:"bg-white border-0 h-8 w-10 hover:bg-accent rounded-md transition-colors",nav_icon:"w-2.5 h-2.5"}})}function Qg({calendarApi:e,currentDate:t,setCurrentDate:n}){const[r,o]=(0,a.useState)(!1);return(0,d.jsxs)(id,{open:r,onOpenChange:o,children:[(0,d.jsx)(sd,{asChild:!0,children:(0,d.jsxs)(Pu,{variant:"ghost",className:"text-sm box-border text-foreground bg-background shadow-none rounded border-[1px] border-border border-solid px-3 py-1 pr-2 gap-2 h-10 justify-between hover:bg-muted cursor-pointer font-normal",children:[e?.view?.title||"",(0,d.jsx)(cd,{className:"h-4 w-4 min-w-4"})]})}),(0,d.jsx)(ld,{side:"bottom",align:"start",sideOffset:20,className:"w-auto rounded border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden p-1",children:(0,d.jsx)(Yg,{calendarApi:e,currentDate:t,setCurrentDate:n})})]})}function Kg(e){const{calendar:t,calendarApi:n,currentDate:r,setCurrentDate:o,view:a,setView:i,isTodayInRange:s,search:l,setSearch:c,open:u,setOpen:f,events:h,filteredResults:p,paginatedResults:m,totalPages:g,page:v,setPage:y,timezone:b,timeFormat:w,inputRef:x}=e;return!t||Array.isArray(t)&&0===t.length||!Array.isArray(t)&&0===Object.keys(t).length?(0,d.jsxs)("div",{className:"hidden lg:flex flex-wrap items-center justify-between gap-3 w-full",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pp,{className:"h-10 w-24 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-32 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-20 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-64 rounded-md"})," "]}),(0,d.jsx)(pp,{className:"h-10 w-28 rounded-md"})]}):(0,d.jsxs)("div",{className:"hidden lg:flex flex-wrap items-center justify-between text-sm gap-3 w-full",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pd,{calendarApi:n,currentDate:r,setCurrentDate:o}),"timeGridWeek"===a||"week"===a?(0,d.jsx)(Qg,{calendarApi:n,currentDate:r,setCurrentDate:o}):(0,d.jsx)(hd,{calendarApi:n,currentDate:r,setCurrentDate:o}),(0,d.jsx)(Vh,{calendarApi:n,setCurrentDate:o,isTodayInRange:s}),(0,d.jsx)(Bh,{inputRef:x,search:l,setSearch:c,open:u,setOpen:f,events:h,filteredResults:p,paginatedResults:m,totalPages:g,page:v,setPage:y,timezone:b,timeFormat:w})]}),(0,d.jsx)(hp,{calendarApi:n,view:a,setView:i})]})}function Jg(e){const{calendar:t,calendarApi:n,currentDate:r,setCurrentDate:o,view:i,setView:s,isTodayInRange:l,search:c,setSearch:u,open:f,setOpen:h,events:p,filteredResults:m,paginatedResults:g,totalPages:v,page:y,setPage:b,timezone:w,timeFormat:x}=e,[k,S]=(0,a.useState)(!1),E=(0,a.useRef)(null);return!t||Array.isArray(t)&&0===t.length||!Array.isArray(t)&&0===Object.keys(t).length?(0,d.jsxs)("div",{className:"flex flex-col w-full gap-4 lg:hidden",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(pp,{className:"h-10 w-20 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-28 rounded-md"})," "]}),(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pp,{className:"h-10 w-20 rounded-md"})," ",(0,d.jsx)(pp,{className:"h-10 w-32 rounded-md"})," "]}),(0,d.jsx)(pp,{className:"h-10 w-10 rounded-md"})," "]})]}):(0,d.jsxs)("div",{className:"flex flex-col w-full gap-4 lg:hidden",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(Vh,{calendarApi:n,setCurrentDate:o,isTodayInRange:l}),(0,d.jsx)(hp,{calendarApi:n,view:i,setView:s})]}),k?(0,d.jsx)("div",{className:"w-full",children:(0,d.jsx)(Bh,{inputRef:E,search:c,setSearch:u,open:f,setOpen:h,events:p,filteredResults:m,paginatedResults:g,totalPages:v,page:y,setPage:b,timezone:w,timeFormat:x,setSearchOpen:S})}):(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(pd,{calendarApi:n,currentDate:r,setCurrentDate:o}),"timeGridWeek"===i||"week"===i?(0,d.jsx)(Qg,{calendarApi:n,currentDate:r,setCurrentDate:o}):(0,d.jsx)(hd,{calendarApi:n,currentDate:r,setCurrentDate:o})]}),(0,d.jsx)(Pu,{variant:"outline",size:"icon",className:"rounded shadow-sm border border-solid border-border cursor-pointer",onClick:()=>{S(!0),setTimeout((()=>E.current?.focus()),50)},children:(0,d.jsx)(Eh,{className:"w-4 h-4"})})]})]})}function Xg({calendar:e,calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:i,search:s,setSearch:l,events:c,timezone:u,timeFormat:f}){const[h,p]=(0,a.useState)(!1),[m,g]=(0,a.useState)(0),v=(0,a.useRef)(null),y=s?c.filter((e=>{const t=s.toLowerCase();return e.title?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t)||e.location?.toLowerCase().includes(t)})):[],b=Math.ceil(y.length/10),w=y.slice(10*m,10*(m+1));(0,a.useEffect)((()=>g(0)),[s]);const x=(()=>{if(!t)return!1;const e=t.view?.currentStart,n=t.view?.currentEnd,r=new Date;return e<=r&&r<=n})(),k={calendar:e,calendarApi:t,currentDate:n,setCurrentDate:r,view:o,setView:i,isTodayInRange:x,search:s,setSearch:l,open:h,setOpen:p,events:c,filteredResults:y,paginatedResults:w,totalPages:b,page:m,setPage:g,timezone:u,timeFormat:f,inputRef:v};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Jg,{...k}),(0,d.jsx)(Kg,{...k})]})}var ev="Tabs",[tv,nv]=f(ev,[nn]),rv=nn(),[ov,av]=tv(ev),iv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=C(s),[f,h]=m({prop:r,onChange:o,defaultProp:a});return(0,d.jsx)(ov,{scope:n,baseId:Z(),value:f,onValueChange:h,orientation:i,dir:u,activationMode:l,children:(0,d.jsx)(x.div,{dir:u,"data-orientation":i,...c,ref:t})})}));iv.displayName=ev;var sv="TabsList",lv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=av(sv,n),i=rv(n);return(0,d.jsx)(fn,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:(0,d.jsx)(x.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})}));lv.displayName=sv;var cv="TabsTrigger",uv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=av(cv,n),l=rv(n),c=hv(i.baseId,r),u=pv(i.baseId,r),f=r===i.value;return(0,d.jsx)(hn,{asChild:!0,...l,focusable:!o,active:f,children:(0,d.jsx)(x.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:s(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(r)})),onKeyDown:s(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(r)})),onFocus:s(e.onFocus,(()=>{const e="manual"!==i.activationMode;f||o||!e||i.onValueChange(r)}))})})}));uv.displayName=cv;var dv="TabsContent",fv=a.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,l=av(dv,n),c=hv(l.baseId,r),u=pv(l.baseId,r),f=r===l.value,h=a.useRef(f);return a.useEffect((()=>{const e=requestAnimationFrame((()=>h.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,d.jsx)(qt,{present:o||f,children:({present:n})=>(0,d.jsx)(x.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:n&&i})})}));function hv(e,t){return`${e}-trigger-${t}`}function pv(e,t){return`${e}-content-${t}`}fv.displayName=dv;var mv=lv,gv=uv,vv=fv;const yv=iv,bv=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(mv,{ref:n,className:Su("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t})));bv.displayName=mv.displayName;const wv=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(gv,{ref:n,className:Su("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t})));function xv({timezone:e,setTimezone:t,timeFormat:n,setTimeFormat:r}){const[o,i]=(0,a.useState)(!1),s=function(){const e=eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC",t=[{value:e,label:`Site Default (${Dc(e,"24",!1)})`},{value:"local",label:`Local Time (${Intl.DateTimeFormat().resolvedOptions().timeZone})`},{value:"UTC",label:"UTC"}],n=("function"==typeof Intl.supportedValuesOf?Intl.supportedValuesOf("timeZone").map((e=>({value:e,label:e}))):[]).filter((t=>"UTC"!==t.value&&"local"!==t.value&&t.value!==e)).reduce(((e,t)=>{const[n]=t.value.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});Object.keys(n).forEach((e=>{n[e].sort(((e,t)=>e.label.localeCompare(t.label)))}));const r=Object.fromEntries(Object.entries(n).sort((([e],[t])=>e.localeCompare(t))));return{Popular:t,...r}}(),l=function(e=768){const[t,n]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{function t(){n(window.innerWidth<e)}return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t}();return(0,d.jsxs)(id,{open:o,onOpenChange:i,children:[(0,d.jsx)(sd,{asChild:!0,children:(0,d.jsx)(Pu,{variant:"ghost","aria-haspopup":"listbox","aria-expanded":o,"aria-controls":"timezone-listbox","aria-label":`Current timezone: ${Dc(e,n)}. Press Enter or Space to change.`,className:"inline-flex bg-transparent border-none cursor-pointer w-auto h-auto p-0 font-normal text-foreground underline",children:Dc(e,n)})}),(0,d.jsxs)(ld,{align:l?"start":"end",className:"p-0 w-[280px] border border-border border-solid border-[1px]",children:[(0,d.jsxs)(Oh,{children:[(0,d.jsx)("div",{className:"",children:(0,d.jsx)(yv,{value:n,onValueChange:r,"aria-label":"Time format selection",className:"w-full bg-muted",children:(0,d.jsxs)(bv,{className:"flex bg-muted px-2 gap-2 shadow-none rounded-none",children:[(0,d.jsx)(wv,{value:"12",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"12hr (AM/PM)"}),(0,d.jsx)(wv,{value:"24",className:"rounded-sm bg-muted text-foreground hover:text-foreground flex-1 data-[state=active]:font-semibold shadow-none border-none cursor-pointer",children:"24hr"})]})})}),(0,d.jsx)(jh,{placeholder:"Search timezone...",className:"h-auto border-none focus:border-none focus:border-transparent focus:border-[0px] focus:shadow-none"}),(0,d.jsxs)(Ih,{id:"timezone-listbox",role:"listbox","aria-label":"Select a timezone",className:"max-h-[300px] overflow-y-auto border-t border-border border-t-[1px] border-solid border-b-0 border-l-0 border-r-0",children:[(0,d.jsx)(Ph,{children:"No timezone found."}),Object.entries(s).map((([n,r],o,a)=>(0,d.jsxs)("div",{children:[(0,d.jsx)(Lh,{heading:(0,d.jsx)("span",{className:"py-1 text-sm font-medium text-foreground",children:n}),children:r.map((n=>(0,d.jsx)(zh,{role:"option","aria-selected":e===n.value,onSelect:()=>{const e=Ac(n.value);t(e);const r=new URLSearchParams(window.location.search);r.set("tz",n.value),window.history.replaceState({},"",`?${r}`),i(!1)},className:"cursor-pointer aria-selected:bg-accent aria-selected:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded-sm",children:n.label},n.value)))}),o<a.length-1&&(0,d.jsx)(Fh,{})]},n)))]})]}),(0,d.jsxs)("span",{className:"sr-only","aria-live":"polite",children:["Selected timezone: ",Dc(e,n)]})]})]})}function kv({event:e,icon:t,title:n,name:r}){return(0,d.jsxs)("a",{href:"#",className:"flex flex-col gap-1 items-center justify-center no-underline text-sm text-foreground/90 hover:text-foreground group",onClick:t=>{t.preventDefault(),(()=>{const t=encodeURIComponent(e?.url),n=encodeURIComponent(e?.title),o=`RE: ${n}`;"whatsapp"===r&&window.open(`https://api.whatsapp.com/send?text=${n} ${t}`,"_blank"),"x"===r&&window.open(`https://x.com/intent/post?url=${t}&text=${n}`,"_blank"),"facebook"===r&&window.open(`https://www.facebook.com/sharer/sharer.php?u=${t}`,"_blank"),"linkedin"===r&&window.open(`https://www.linkedin.com/shareArticle/?mini=true&url=${t}&text=${n}`,"_blank"),"instagram"===r&&window.open(`https://www.instagram.com/?url=${t}`,"_blank"),"email"===r&&window.open(`mailto:?&subject=${o}&cc=&bcc=&body=${t}`,"_self")})()},children:[(0,d.jsx)("span",{className:"rounded-full bg-accent group-hover:bg-input flex items-center justify-center w-16 h-16",children:t}),(0,d.jsx)("span",{children:n})]})}wv.displayName=gv.displayName,a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(vv,{ref:n,className:Su("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}))).displayName=vv.displayName;const Sv=ju("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ev({className:e,variant:t,...n}){return(0,d.jsx)("div",{className:Su(Sv({variant:t}),e),...n})}var Cv=a.forwardRef(((e,t)=>(0,d.jsx)(x.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Cv.displayName="Label";var Dv=Cv;const Tv=ju("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Av=a.forwardRef((({className:e,...t},n)=>(0,d.jsx)(Dv,{ref:n,className:Su(Tv(),e),...t})));Av.displayName=Dv.displayName;const _v=window.wp.primitives;function Nv({width:e=26,height:t=20,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 29.025 22.935",children:(0,d.jsxs)("g",{transform:"translate(1.741 1.25)",children:[(0,d.jsx)(_v.Path,{d:"M5.554,6H25.989a2.562,2.562,0,0,1,2.554,2.554V23.88a2.562,2.562,0,0,1-2.554,2.554H5.554A2.562,2.562,0,0,1,3,23.88V8.554A2.562,2.562,0,0,1,5.554,6Z",transform:"translate(-3 -6)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"}),(0,d.jsx)(_v.Path,{d:"M28.543,9,15.771,17.94,3,9",transform:"translate(-3 -6.446)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"})]})})}function Mv({width:e=30,height:t=30,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 30.421 30.421",children:(0,d.jsx)(_v.Path,{d:"M30.419,15.3A15.211,15.211,0,1,0,12.83,30.42V19.727H8.971V15.3h3.863V11.93c0-3.835,2.272-5.952,5.745-5.952a23.263,23.263,0,0,1,3.4.3v3.764H20.066a2.206,2.206,0,0,0-2.477,2.392V15.3h4.217l-.673,4.422H17.587V30.418A15.279,15.279,0,0,0,30.419,15.3",transform:"translate(0.002 0.001)"})})}function Rv({width:e=28,height:t=28,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 27.748 27.742",children:(0,d.jsx)(_v.Path,{d:"M13.872,9a7.113,7.113,0,1,0,7.113,7.113A7.1,7.1,0,0,0,13.872,9Zm0,11.737A4.624,4.624,0,1,1,18.5,16.109a4.633,4.633,0,0,1-4.624,4.624ZM22.934,8.705a1.659,1.659,0,1,1-1.659-1.659A1.655,1.655,0,0,1,22.934,8.705Zm4.711,1.684A8.21,8.21,0,0,0,25.4,4.576a8.264,8.264,0,0,0-5.813-2.241c-2.29-.13-9.155-.13-11.446,0A8.252,8.252,0,0,0,2.333,4.57,8.237,8.237,0,0,0,.092,10.383c-.13,2.29-.13,9.155,0,11.446a8.21,8.21,0,0,0,2.241,5.813,8.274,8.274,0,0,0,5.813,2.241c2.29.13,9.155.13,11.446,0A8.21,8.21,0,0,0,25.4,27.641a8.264,8.264,0,0,0,2.241-5.813c.13-2.29.13-9.149,0-11.44Zm-2.959,13.9a4.682,4.682,0,0,1-2.637,2.637c-1.826.724-6.159.557-8.177.557s-6.357.161-8.177-.557a4.682,4.682,0,0,1-2.637-2.637C2.333,22.46,2.5,18.127,2.5,16.109s-.161-6.357.557-8.177A4.682,4.682,0,0,1,5.694,5.294c1.826-.724,6.159-.557,8.177-.557s6.357-.161,8.177.557a4.682,4.682,0,0,1,2.637,2.637c.724,1.826.557,6.159.557,8.177S25.41,22.466,24.686,24.286Z",transform:"translate(0.005 -2.238)"})})}function Ov({width:e=25,height:t=25,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24.627 24.627",children:(0,d.jsx)(_v.Path,{d:"M5.513,24.627H.407V8.185H5.513ZM2.957,5.943A2.971,2.971,0,1,1,5.914,2.958,2.982,2.982,0,0,1,2.957,5.943ZM24.622,24.627H19.527v-8c0-1.908-.038-4.354-2.655-4.354-2.655,0-3.061,2.072-3.061,4.216v8.141h-5.1V8.185h4.9v2.243h.071A5.365,5.365,0,0,1,18.51,7.773c5.167,0,6.117,3.4,6.117,7.822v9.032Z",transform:"translate(0 -0.001)"})})}function jv({width:e=29,height:t=29,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 28.555 28.555",children:(0,d.jsx)(_v.Path,{d:"M24.278,6.4A14.155,14.155,0,0,0,2.008,23.475L0,30.805l7.5-1.97a14.107,14.107,0,0,0,6.763,1.721h.006a14.286,14.286,0,0,0,14.284-14.15A14.206,14.206,0,0,0,24.278,6.4ZM14.271,28.173A11.74,11.74,0,0,1,8.28,26.535l-.427-.255L3.4,27.446l1.186-4.341-.28-.446a11.784,11.784,0,1,1,21.856-6.253A11.892,11.892,0,0,1,14.271,28.173Zm6.45-8.809c-.351-.178-2.091-1.033-2.416-1.147s-.561-.178-.8.178-.911,1.147-1.122,1.39-.414.268-.765.089a9.624,9.624,0,0,1-4.812-4.207c-.363-.625.363-.58,1.039-1.931a.655.655,0,0,0-.032-.618c-.089-.178-.8-1.919-1.09-2.626-.287-.688-.58-.593-.8-.606s-.44-.013-.676-.013a1.31,1.31,0,0,0-.943.44,3.973,3.973,0,0,0-1.237,2.951,6.927,6.927,0,0,0,1.44,3.659,15.8,15.8,0,0,0,6.042,5.341c2.244.969,3.123,1.052,4.245.886a3.621,3.621,0,0,0,2.384-1.683,2.957,2.957,0,0,0,.2-1.683C21.308,19.625,21.072,19.536,20.721,19.364Z",transform:"translate(0 -2.25)"})})}function Iv({width:e=23,height:t=21,className:n,...r}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 23.006 20.85",children:(0,d.jsx)(_v.Path,{d:"M18.118.75h3.529L13.939,9.582,23.006,21.6h-7.1l-5.56-7.29L3.984,21.6H.454L8.7,12.153,0,.75H7.28l5.025,6.662L18.119.75ZM16.881,19.483h1.956L6.216,2.756H4.12Z",transform:"translate(0 -0.75)"})})}const Pv=sa("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),Lv=sa("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Fv=sa("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),zv=sa("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Hv=sa("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),Wv=sa("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function Bv(e,t="utc",n,r){const o=n||eventkoi_params?.locale?.replace("_","-")||"en",a=r||eventkoi_params?.time_format||"12",i=Sc.fromISO(e,{zone:"utc"===t?"UTC":Tc(t)}).setLocale(o);return"24"===a?i.toFormat("HH:mm"):i.toFormat("h:mma").toLowerCase().replace(":00","")}function Vv(e,t="utc",n){const r=n||eventkoi_params?.locale?.replace("_","-")||"en";return Sc.fromISO(e,{zone:"utc"===t?"UTC":Tc(t)}).setLocale(r).toLocaleString(Sc.DATE_MED)}const Uv=(e,t)=>{const n=new Date(e);return t?n.toISOString().split("T")[0].replace(/-/g,""):n.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z"},$v=e=>window.open(e,"_blank","noopener,noreferrer");function Gv({event:e,anchor:t,onClose:n,ignoreNextOutsideClick:r,timezone:o="UTC"}){const[i,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1),[u,f]=(0,a.useState)(!1),[h]=(0,a.useState)(t),p=e.location_line,m=(()=>{const t=Tc(o),n=eventkoi_params?.locale?.replace("_","-")||"en",r=eventkoi_params?.time_format||"12",a="standard"===e.date_type&&"continuous"===e.standard_type,i=e.allDay&&!a;if(a||e.start_time&&e.end_time){const o=e.start_real||e.start,a=e.end_real||e.end;return o!==a?`${Vv(o,t,n)}, ${Bv(o,t,n,r)} – ${Vv(a,t,n)}, ${Bv(a,t,n,r)}`:`${Vv(o,t,n)} – ${Bv(a,t,n,r)}`}return i?e.start.split("T")[0]!==e.end.split("T")[0]?`${Vv(e.start,t,n)} – ${Vv(e.end_real,t,n)}`:Vv(e.start,t,n):Sc.fromISO(e.start,{zone:t}).hasSame(Sc.fromISO(e.end,{zone:t}),"day")?`${Vv(e.start,t,n)}, ${Bv(e.start,t,n,r)} – ${Bv(e.end,t,n,r)}`:`${Vv(e.start,t,n)}, ${Bv(e.start,t,n,r)} – ${Vv(e.end,t,n)}, ${Bv(e.end,t,n,r)}`})(),v=()=>{const t=new URL("https://www.google.com/calendar/render");t.searchParams.set("action","TEMPLATE"),t.searchParams.set("text",e.title||""),t.searchParams.set("dates",`${Uv(e.start,e.allDay)}/${Uv(e.end,e.allDay)}`),t.searchParams.set("details",e.description||""),t.searchParams.set("location",p||""),t.searchParams.set("output","xml"),$v(t.toString())};if((0,a.useEffect)((()=>(document.body.setAttribute("data-calendar-menu-open",u?"true":"false"),()=>{document.body.removeAttribute("data-calendar-menu-open")})),[u]),(0,a.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(e.stopPropagation(),n())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[n]),!e||!h)return null;const y=document.querySelector(".fc");return(0,g.createPortal)((0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{"data-event-popover":!0,className:"absolute z-50 rounded-lg border bg-white shadow-[0_0_4px_#bbb] text-sm overflow-hidden w-[370px] max-w-full",style:{left:`${h.x}px`,top:`${h.y}px`},onMouseDown:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onClick:e=>{e.target.closest("[data-event-popover]")&&e.stopPropagation()},onPointerDownCapture:e=>{i&&e.stopPropagation()},children:[(0,d.jsxs)("div",{className:"px-4 py-4 pb-0 relative",children:[(0,d.jsxs)("div",{className:"flex absolute right-1 top-1 gap-1",children:[(0,d.jsx)(Pu,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:()=>window.open(e.url,"_self"),children:(0,d.jsx)(Pv,{className:"h-4 w-4"})}),(0,d.jsx)(Pu,{size:"icon",variant:"ghost",className:"h-8 w-8 p-0 shadow-none border-none bg-transparent hover:bg-muted/20 cursor-pointer",onClick:n,children:(0,d.jsx)(Ch,{className:"h-4 w-4"})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 pe-[58px]",children:[(0,d.jsx)("a",{href:e.url,className:"text-base font-semibold leading-snug text-foreground no-underline hover:underline line-clamp-2 block",children:e.title}),"recurring"===e.date_type&&(0,d.jsx)(Ev,{variant:"secondary",className:"w-fit bg-[#eeeeee] hover:bg-[#eeeeee] font-normal",children:"Recurring"})]})]}),(0,d.jsxs)("div",{className:"p-4 flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,d.jsx)(Lv,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,d.jsx)("div",{className:"flex-1",children:m})]}),p&&(0,d.jsxs)("div",{className:"flex items-start gap-2 text-foreground text-sm leading-snug",children:[(0,d.jsx)(Fv,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),(0,d.jsx)("div",{className:"flex-1",children:p})]}),e.thumbnail&&(0,d.jsx)("img",{src:e.thumbnail,alt:"",className:"w-full h-auto rounded-none border object-cover max-h-48"}),e.description&&(0,d.jsx)("div",{className:"text-sm text-muted-foreground leading-snug line-clamp-3",children:e.description})]}),(0,d.jsxs)("div",{className:"flex justify-between items-center px-4 pb-4 gap-2",children:[(0,d.jsxs)(Eu,{open:u,onOpenChange:e=>{f(e),e||(r.current=!0)},children:[(0,d.jsx)(Cu,{asChild:!0,children:(0,d.jsxs)(Pu,{size:"sm",variant:"outline",className:"text-[13px] justify-between gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",onMouseDown:e=>e.stopPropagation(),children:["Add to calendar",(0,d.jsx)(cd,{className:"w-3.5 h-3.5"})]})}),(0,d.jsxs)(Du,{align:"start",className:"w-44",onMouseDown:e=>e.stopPropagation(),children:[(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame(v),children:"Google Calendar"}),(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame((()=>$v(eventkoi_params.ical))),children:"iCalendar"}),(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame((()=>$v("https://outlook.office.com/owa/"))),children:"Outlook 365"}),(0,d.jsx)(Tu,{onClick:()=>requestAnimationFrame((()=>$v("https://outlook.live.com/owa/"))),children:"Outlook Live"})]})]}),(0,d.jsxs)(Pu,{size:"sm",variant:"secondary",onClick:()=>s(!0),className:"text-[13px] gap-2 bg-transparent border border-solid border-[#ddd] rounded-sm shadow-none cursor-pointer h-8 min-h-0",children:[(0,d.jsx)(zv,{className:"w-3.5 h-3.5"}),"Share"]})]})]}),(0,d.jsx)(Dh,{open:i,onOpenChange:e=>{s(e),document.body.dataset.shareModalOpen=e?"true":"false",e||(r.current=!0)},children:(0,d.jsxs)(_h,{"data-event-share-modal":!0,className:"w-full max-w-[685px] p-0",onOpenAutoFocus:e=>e.preventDefault(),onMouseDown:e=>e.stopPropagation(),onPointerDownOutside:e=>{e.preventDefault(),s(!1),r.current=!0},children:[(0,d.jsx)(Nh,{className:"flex items-center justify-center p-4 border-0 border-solid border-b-2 border-input",children:(0,d.jsx)(Mh,{className:"font-sans text-xl m-0 text-foreground",children:"Share this event"})}),(0,d.jsxs)("div",{className:"flex flex-col pt-[30px] pb-[60px] px-[60px]",children:[(0,d.jsxs)("div",{className:"flex gap-4 items-center flex-wrap justify-center pb-[60px]",children:[(0,d.jsx)(kv,{event:e,name:"whatsapp",title:"Whatsapp",icon:(0,d.jsx)(jv,{})}),(0,d.jsx)(kv,{event:e,name:"instagram",title:"Instagram",icon:(0,d.jsx)(Rv,{})}),(0,d.jsx)(kv,{event:e,name:"email",title:"Email",icon:(0,d.jsx)(Nv,{})}),(0,d.jsx)(kv,{event:e,name:"facebook",title:"Facebook",icon:(0,d.jsx)(Mv,{})}),(0,d.jsx)(kv,{event:e,name:"x",title:"X",icon:(0,d.jsx)(Iv,{})}),(0,d.jsx)(kv,{event:e,name:"linkedin",title:"Linkedin",icon:(0,d.jsx)(Ov,{})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 pb-[10px]",children:[(0,d.jsx)(Av,{className:"text-base",children:"Event link"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(Hh,{id:"link",defaultValue:e?.url,readOnly:!0,className:"min-h-[66px] border border-input border-solid border-primary/30 box-border text-lg text-foreground"}),(0,d.jsxs)(Pu,{variant:"secondary",type:"button",className:"absolute h-12 right-[9px] top-[9px] border-none cursor-pointer hover:bg-input",onMouseDown:e=>e.stopPropagation(),onClick:()=>{requestAnimationFrame((()=>{navigator.clipboard.writeText(e?.url),c(!0),setTimeout((()=>c(!1)),1200)}))},children:[l?(0,d.jsx)(Hv,{className:"mr-2 h-5 w-5"}):(0,d.jsx)(Wv,{className:"mr-2 h-5 w-5"}),l?"Copied!":"Copy"]})]})]})]})]})})]}),y||document.body)}function qv(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var Zv={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${qv(e)} ${e}`,next:e=>`Nächste${qv(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${qv(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function Yv(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}var Qv,Kv,Jv,Xv,ey,ty,ny,ry,oy,ay={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:e=>"+ weitere "+e,noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:e=>`Vorherige${Yv(e)} ${e}`,next:e=>`Nächste${Yv(e)} ${e}`,today:e=>"Tag"===e?"Heute":`Diese${Yv(e)} ${e}`},viewHint:e=>e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht",navLinkHint:"Gehe zu $0",moreLinkHint:e=>"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse"),closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},iy=[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText:e=>"+ daha çox "+e,noEventsText:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:4},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText:e=>"+още "+e,noEventsText:"Няма събития за показване"},{code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText:e=>"+অন্যান্য "+e,noEventsText:"কোনো ইভেন্ট নেই"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Any",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText:e=>"+další: "+e,noEventsText:"Žádné akce k zobrazení"},{code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"},Zv,ay,{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`},{code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:e=>"Día"===e?"Hoy":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"de la":"del")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:e=>`Mostrar ${e} eventos más`,noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText:e=>"+ veel "+e,noEventsText:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText:e=>"بیش از "+e,noEventsText:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today:e=>"Día"===e?"Hoxe":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Vista "+("Semana"===e?"da":"do")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint:e=>`Amosar ${e} eventos máis`,noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},{code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"נוספים",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText:e=>"+अधिक "+e,noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},{code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText:e=>"+ ևս "+e,noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:e=>"+altri "+e,noEventsText:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText:e=>"他 "+e+" 件",noEventsText:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText:e=>"+ კიდევ "+e,noEventsText:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText:e=>"+ тағы "+e,noEventsText:"Көрсету үшін оқиғалар жоқ"},{code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},{code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText:e=>"+vēl "+e,noEventsText:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText:e=>"+повеќе "+e,noEventsText:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText:e=>"masih ada "+e+" acara",noEventsText:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint:e=>`Vis ${e} flere hendelse${1===e?"":"r"}`},{code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Lijst"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today:e=>"Dia"===e?"Hoje":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()},viewHint:e=>"Visualizar "+("Semana"===e?"a":"o")+" "+e.toLocaleLowerCase(),weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText:e=>"mais +"+e,moreLinkHint:e=>`Mostrar mais ${e} eventos`,noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText:e=>"+alte "+e,noEventsText:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:e=>"+ ещё "+e,noEventsText:"Нет событий для отображения"},{code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText:e=>"+ďalšie: "+e,noEventsText:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},{code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText:e=>"+më tepër "+e,noEventsText:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText:e=>"+ још "+e,noEventsText:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText:e=>"+ još "+e,noEventsText:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev:e=>`Föregående ${e.toLocaleLowerCase()}`,next:e=>`Nästa ${e.toLocaleLowerCase()}`,today:e=>("Program"===e?"Detta":"Denna")+" "+e.toLocaleLowerCase()},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint:e=>`Visa ytterligare ${e} händelse${1===e?"":"r"}`,weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},{code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText:e=>"+ மேலும் "+e,noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText:e=>"+ще "+e+"...",noEventsText:"Немає подій для відображення"},{code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText:e=>"+ яна "+e,noEventsText:"Кўрсатиш учун воқеалар йўқ"},{code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:e=>"+ yana "+e,noEventsText:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText:e=>"+ thêm "+e,noEventsText:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:e=>"另外 "+e+" 个",noEventsText:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上個",next:"下個",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"週",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"沒有任何活動"}],sy={},ly=[],cy=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function uy(e,t){for(var n in t)e[n]=t[n];return e}function dy(e){var t=e.parentNode;t&&t.removeChild(e)}function fy(e,t,n){var r,o,a,i={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?Qv.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return hy(e,i,r,o,null)}function hy(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Jv:o};return null==o&&null!=Kv.vnode&&Kv.vnode(a),a}function py(e){return e.children}function my(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||cy.test(t)?n:n+"px"}function gy(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||my(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||my(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?yy:vy,a):e.removeEventListener(t,a?yy:vy,a);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function vy(e){ey=!0;try{return this.l[e.type+!1](Kv.event?Kv.event(e):e)}finally{ey=!1}}function yy(e){ey=!0;try{return this.l[e.type+!0](Kv.event?Kv.event(e):e)}finally{ey=!1}}function by(e,t){this.props=e,this.context=t}function wy(e,t){if(null==t)return e.__?wy(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?wy(e):null}function xy(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return xy(e)}}function ky(e){ey?setTimeout(e):ry(e)}function Sy(e){(!e.__d&&(e.__d=!0)&&ty.push(e)&&!Ey.__r++||ny!==Kv.debounceRendering)&&((ny=Kv.debounceRendering)||ky)(Ey)}function Ey(){var e,t,n,r,o,a,i,s;for(ty.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=ty.shift();)e.__d&&(t=ty.length,r=void 0,o=void 0,i=(a=(n=e).__v).__e,(s=n.__P)&&(r=[],(o=uy({},a)).__v=a.__v+1,Ny(s,a,o,n.__n,void 0!==s.ownerSVGElement,null!=a.__h?[i]:null,r,null==i?wy(a):i,a.__h),My(r,a),a.__e!=i&&xy(a)),ty.length>t&&ty.sort((function(e,t){return e.__v.__b-t.__v.__b})));Ey.__r=0}function Cy(e,t,n,r,o,a,i,s,l,c){var u,d,f,h,p,m,g,v=r&&r.__k||ly,y=v.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?hy(null,h,null,null,h):Array.isArray(h)?hy(py,{children:h},null,null,null):h.__b>0?hy(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=v[u])||f&&h.key==f.key&&h.type===f.type)v[u]=void 0;else for(d=0;d<y;d++){if((f=v[d])&&h.key==f.key&&h.type===f.type){v[d]=void 0;break}f=null}Ny(e,h,f=f||sy,o,a,i,s,l,c),p=h.__e,(d=h.ref)&&f.ref!=d&&(g||(g=[]),f.ref&&g.push(f.ref,null,h),g.push(d,h.__c||p,h)),null!=p?(null==m&&(m=p),"function"==typeof h.type&&h.__k===f.__k?h.__d=l=Dy(h,l,e):l=Ay(e,h,f,v,p,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=wy(f))}for(n.__e=m,u=y;u--;)null!=v[u]&&("function"==typeof n.type&&null!=v[u].__e&&v[u].__e==n.__d&&(n.__d=_y(r).nextSibling),jy(v[u],v[u]));if(g)for(u=0;u<g.length;u++)Oy(g[u],g[++u],g[++u])}function Dy(e,t,n){for(var r,o=e.__k,a=0;o&&a<o.length;a++)(r=o[a])&&(r.__=e,t="function"==typeof r.type?Dy(r,t,n):Ay(n,r,r,o,r.__e,t));return t}function Ty(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Ty(e,t)})):t.push(e)),t}function Ay(e,t,n,r,o,a){var i,s,l;if(void 0!==t.__d)i=t.__d,t.__d=void 0;else if(null==n||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),i=null;else{for(s=a,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,a),i=a}return void 0!==i?i:o.nextSibling}function _y(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=_y(n)))return r;return null}function Ny(e,t,n,r,o,a,i,s,l){var c,u,d,f,h,p,m,g,v,y,b,w,x,k,S,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=Kv.__b)&&c(t);try{e:if("function"==typeof E){if(g=t.props,v=(c=E.contextType)&&r[c.__c],y=c?v?v.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in E&&E.prototype.render?t.__c=u=new E(g,y):(t.__c=u=new by(g,y),u.constructor=E,u.render=Iy),v&&v.sub(u),u.props=g,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=E.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=uy({},u.__s)),uy(u.__s,E.getDerivedStateFromProps(g,u.__s))),f=u.props,h=u.state,u.__v=t,d)null==E.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[],u.__h.length&&i.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,y),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,h,p)}))}if(u.context=y,u.props=g,u.__P=e,w=Kv.__r,x=0,"prototype"in E&&E.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(t),c=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do{u.__d=!1,w&&w(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(r=uy(uy({},r),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(p=u.getSnapshotBeforeUpdate(f,h)),S=null!=c&&c.type===py&&null==c.key?c.props.children:c,Cy(e,Array.isArray(S)?S:[S],t,n,r,o,a,i,s,l),u.base=t.__e,t.__h=null,u.__h.length&&i.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ry(n.__e,t,n,r,o,a,i,l);(c=Kv.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),Kv.__e(e,t,n)}}function My(e,t){Kv.__c&&Kv.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Kv.__e(e,t.__v)}}))}function Ry(e,t,n,r,o,a,i,s){var l,c,u,d=n.props,f=t.props,h=t.type,p=0;if("svg"===h&&(o=!0),null!=a)for(;p<a.length;p++)if((l=a[p])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,a[p]=null;break}if(null==e){if(null===h)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),a=null,s=!1}if(null===h)d===f||s&&e.data===f||(e.data=f);else{if(a=a&&Qv.call(e.childNodes),c=(d=n.props||sy).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(null!=a)for(d={},p=0;p<e.attributes.length;p++)d[e.attributes[p].name]=e.attributes[p].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,o){var a;for(a in n)"children"===a||"key"===a||a in t||gy(e,a,null,n[a],r);for(a in t)o&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a]||gy(e,a,t[a],n[a],r)}(e,f,d,o,s),u)t.__k=[];else if(p=t.props.children,Cy(e,Array.isArray(p)?p:[p],t,n,r,o&&"foreignObject"!==h,a,i,a?a[0]:n.__k&&wy(n,0),s),null!=a)for(p=a.length;p--;)null!=a[p]&&dy(a[p]);s||("value"in f&&void 0!==(p=f.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==d.value)&&gy(e,"value",p,d.value,!1),"checked"in f&&void 0!==(p=f.checked)&&p!==e.checked&&gy(e,"checked",p,d.checked,!1))}return e}function Oy(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Kv.__e(e,n)}}function jy(e,t,n){var r,o;if(Kv.unmount&&Kv.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Oy(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Kv.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&jy(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||dy(e.__e),e.__=e.__e=e.__d=void 0}function Iy(e,t,n){return this.constructor(e,n)}function Py(e,t,n){var r,o,a;Kv.__&&Kv.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],Ny(t,e=(!r&&n||t).__k=fy(py,null,[e]),o||sy,sy,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?Qv.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r),My(a,e)}Qv=ly.slice,Kv={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},Jv=0,Xv=function(e){return null!=e&&void 0===e.constructor},ey=!1,by.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=uy({},this.state),"function"==typeof e&&(e=e(uy({},n),this.props)),e&&uy(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Sy(this))},by.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Sy(this))},by.prototype.render=py,ty=[],ry="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ey.__r=0,oy=0;var Ly,Fy,zy,Hy=[],Wy=[],By=Kv.__b,Vy=Kv.__r,Uy=Kv.diffed,$y=Kv.__c,Gy=Kv.unmount;function qy(){for(var e;e=Hy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qy),e.__H.__h.forEach(Ky),e.__H.__h=[]}catch(t){e.__H.__h=[],Kv.__e(t,e.__v)}}Kv.__b=function(e){Ly=null,By&&By(e)},Kv.__r=function(e){Vy&&Vy(e);var t=(Ly=e.__c).__H;t&&(Fy===Ly?(t.__h=[],Ly.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Wy,e.__N=e.i=void 0}))):(t.__h.forEach(Qy),t.__h.forEach(Ky),t.__h=[])),Fy=Ly},Kv.diffed=function(e){Uy&&Uy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Hy.push(t)&&zy===Kv.requestAnimationFrame||((zy=Kv.requestAnimationFrame)||Yy)(qy)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Wy&&(e.__=e.__V),e.i=void 0,e.__V=Wy}))),Fy=Ly=null},Kv.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Qy),e.__h=e.__h.filter((function(e){return!e.__||Ky(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Kv.__e(n,e.__v)}})),$y&&$y(e,t)},Kv.unmount=function(e){Gy&&Gy(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Qy(e)}catch(e){t=e}})),n.__H=void 0,t&&Kv.__e(t,n.__v))};var Zy="function"==typeof requestAnimationFrame;function Yy(e){var t,n=function(){clearTimeout(r),Zy&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Zy&&(t=requestAnimationFrame(n))}function Qy(e){var t=Ly,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Ly=t}function Ky(e){var t=Ly;e.__c=e.__(),Ly=t}function Jy(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Xy(e){this.props=e}(Xy.prototype=new by).isPureReactComponent=!0,Xy.prototype.shouldComponentUpdate=function(e,t){return Jy(this.props,e)||Jy(this.state,t)};var eb=Kv.__b;Kv.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),eb&&eb(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var tb=Kv.__e;Kv.__e=function(e,t,n,r){if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);tb(e,t,n,r)};var nb=Kv.unmount;function rb(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return rb(e,t,n)}))),e}function ob(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return ob(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function ab(){this.__u=0,this.t=null,this.__b=null}function ib(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function sb(){this.u=null,this.o=null}Kv.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),nb&&nb(e)},(ab.prototype=new by).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=ib(r.__v),a=!1,i=function(){a||(a=!0,n.__R=null,o?o(s):s())};n.__R=i;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=ob(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},ab.prototype.componentWillUnmount=function(){this.t=[]},ab.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=rb(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&fy(py,null,e.fallback);return o&&(o.__h=null),[fy(py,null,t.__a?null:e.children),o]};var lb=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function cb(e){return this.getChildContext=function(){return e.context},e.children}function ub(e){var t=this,n=e.i;t.componentWillUnmount=function(){Py(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Py(fy(cb,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(sb.prototype=new by).__a=function(e){var t=this,n=ib(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),lb(t,e,r)):o()};n?n(a):a()}},sb.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ty(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},sb.prototype.componentDidUpdate=sb.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){lb(e,n,t)}))};var db="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,fb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,hb="undefined"!=typeof document,pb=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};by.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(by.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var mb=Kv.event;function gb(){}function vb(){return this.cancelBubble}function yb(){return this.defaultPrevented}Kv.event=function(e){return mb&&(e=mb(e)),e.persist=gb,e.isPropagationStopped=vb,e.isDefaultPrevented=yb,e.nativeEvent=e};var bb={configurable:!0,get:function(){return this.class}},wb=Kv.vnode;Kv.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var a in r={},n){var i=n[a];hb&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==i||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===i?i="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!pb(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&fb.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===i&&(i=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Ty(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Ty(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(bb.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",bb))}e.$$typeof=db,wb&&wb(e)};var xb=Kv.__r;Kv.__r=function(e){xb&&xb(e),e.__c};const kb=[],Sb=new Map;function Eb(e){kb.push(e),Sb.forEach((t=>{Db(t,e)}))}function Cb(e){let t=Sb.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=(void 0===Tb&&(Tb=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}()),Tb);n&&(t.nonce=n);const r=e===document?document.head:e,o=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,o)}Sb.set(e,t),function(e){for(const t of kb)Db(e,t)}(t)}}function Db(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach(((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)}))}let Tb;"undefined"!=typeof document&&Cb(document),Eb(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');class Ab{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function _b(e){e.parentNode&&e.parentNode.removeChild(e)}function Nb(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Mb(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Mb(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}const Rb=/(top|left|right|bottom|width|height)$/i;function Ob(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Rb.test(t)?e.style[t]=`${n}px`:e.style[t]=n}let jb=0;function Ib(){return jb+=1,"fc-dom-"+jb}function Pb(e,t,n,r){let o=function(e,t){return n=>{let r=Nb(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}function Lb(e){return Object.assign({onClick:e},Fb(e))}function Fb(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let zb=0;function Hb(){return zb+=1,String(zb)}function Wb(e,t,n){return n.func?n.func(e,t):function(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}(e[n.field],t[n.field])*(n.order||1)}function Bb(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Vb(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function Ub(e){return e%1==0}function $b(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Gb=["years","months","days","milliseconds"],qb=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Zb(e,t){return"string"==typeof e?function(e){let t=qb.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Yb(e):"number"==typeof e?Yb({[t||"milliseconds"]:e}):null}function Yb(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Qb(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Kb(e){return Jb(e)/864e5}function Jb(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Xb(e,t){let n=null;for(let r=0;r<Gb.length;r+=1){let o=Gb[r];if(t[o]){let r=e[o]/t[o];if(!Ub(r)||null!==n&&n!==r)return null;n=r}else if(e[o])return null}return n}function ew(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function tw(e,t,n){if(e===t)return!0;let r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const nw=["sun","mon","tue","wed","thu","fri","sat"];function rw(e,t){let n=hw(e);return n[2]+=7*t,pw(n)}function ow(e,t){let n=hw(e);return n[2]+=t,pw(n)}function aw(e,t){let n=hw(e);return n[6]+=t,pw(n)}function iw(e,t){return(t.valueOf()-e.valueOf())/864e5}function sw(e,t){return gw(e)===gw(t)?Math.round(iw(e,t)):null}function lw(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function cw(e,t,n,r){let o=pw([t,0,1+uw(t,n,r)]),a=lw(e),i=Math.round(iw(o,a));return Math.floor(i/7)+1}function uw(e,t,n){let r=7+t-n;return-(7+pw([e,0,r]).getUTCDay()-t)%7+r-1}function dw(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function fw(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function hw(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function pw(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function mw(e){return!isNaN(e.valueOf())}function gw(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function vw(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",bw(t,!0)))),r}function yw(e){return e.toISOString().replace(/T.*$/,"")}function bw(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=Math.round(r%60);return t?`${n+Bb(o,2)}:${Bb(a,2)}`:`GMT${n}${o}${a?`:${Bb(a,2)}`:""}`}function ww(e,t,n){let r,o;return function(...a){if(r){if(!tw(r,a)){n&&n(o);let r=e.apply(this,a);t&&t(r,o)||(o=r)}}else o=e.apply(this,a);return r=a,o}}function xw(e,t,n){let r,o;return a=>{if(r){if(!Xw(r,a)){n&&n(o);let r=e.call(this,a);t&&t(r,o)||(o=r)}}else o=e.call(this,a);return r=a,o}}const kw={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Sw={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ew=/\s*([ap])\.?m\.?/i,Cw=/,/g,Dw=/\s+/g,Tw=/\u200e/g,Aw=/UTC|GMT/;class _w{constructor(e){let t={},n={},r=9;for(let o in e)o in kw?(n[o]=e[o],kw[o]<9&&(r=Math.min(kw[o],r))):(t[o]=e[o],o in Sw&&(r=Math.min(Sw[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=ww(Nw)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:o,extendedSettings:a}=this,i=(s=e.marker,l=t.marker,(c=n.calendarSystem).getMarkerYear(s)!==c.getMarkerYear(l)?5:c.getMarkerMonth(s)!==c.getMarkerMonth(l)?4:c.getMarkerDay(s)!==c.getMarkerDay(l)?2:gw(s)!==gw(l)?1:0);var s,l,c;if(!i)return this.format(e,n);let u=i;!(u>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(u=1);let d=this.format(e,n),f=this.format(t,n);if(d===f)return d;let h=function(e,t){let n={};for(let r in e)(!(r in Sw)||Sw[r]<=t)&&(n[r]=e[r]);return n}(o,u),p=Nw(h,a,n),m=p(e),g=p(t),v=function(e,t,n,r){let o=0;for(;o<e.length;){let a=e.indexOf(t,o);if(-1===a)break;let i=e.substr(0,a);o=a+t.length;let s=e.substr(o),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let o=n.substr(l);if(i===t&&s===o)return{before:i,after:s}}}return null}(d,m,f,g),y=a.separator||r||n.defaultSeparator||"";return v?v.before+m+y+g+v.after:d+y+f}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Nw(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>bw(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,o){let a=[];return"long"===o?a.push(n):"short"!==o&&"narrow"!==o||a.push(t),"long"!==o&&"short"!==o||a.push(" "),a.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&a.reverse(),a.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return a=>{let i,{marker:s}=a;return i=r&&!s.getUTCMinutes()?r:o,function(e,t,n,r,o){return e=e.replace(Tw,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;return e=e.replace(Aw,(()=>(n=!0,t))),n||(e+=` ${t}`),e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":bw(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(Cw,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(Ew,"").trim():"narrow"===r.meridiem?e=e.replace(Ew,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(Ew,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(Ew,(e=>e.toLocaleLowerCase()))),e=(e=e.replace(Dw," ")).trim()}(i.format(s),a,e,t,n)}}(e,t,n)}function Mw(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Rw(e,t,n,r){let o=Mw(e,n.calendarSystem);return{date:o,start:o,end:t?Mw(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Ow{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Rw(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,Rw(e,t,n,r))}}class jw{constructor(e){this.func=e}format(e,t,n){return this.func(Rw(e,null,t,n))}formatRange(e,t,n,r){return this.func(Rw(e,t,n,r))}}function Iw(e){return"object"==typeof e&&e?new _w(e):"string"==typeof e?new Ow(e):"function"==typeof e?new jw(e):null}const Pw={navLinkDayClick:Gw,navLinkWeekClick:Gw,duration:Zb,bootstrapFontAwesome:Gw,buttonIcons:Gw,customButtons:Gw,defaultAllDayEventDuration:Zb,defaultTimedEventDuration:Zb,nextDayThreshold:Zb,scrollTime:Zb,scrollTimeReset:Boolean,slotMinTime:Zb,slotMaxTime:Zb,dayPopoverFormat:Iw,slotDuration:Zb,snapDuration:Zb,headerToolbar:Gw,footerToolbar:Gw,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Iw,dayHeaderClassNames:Gw,dayHeaderContent:Gw,dayHeaderDidMount:Gw,dayHeaderWillUnmount:Gw,dayCellClassNames:Gw,dayCellContent:Gw,dayCellDidMount:Gw,dayCellWillUnmount:Gw,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Gw,weekNumbers:Boolean,weekNumberClassNames:Gw,weekNumberContent:Gw,weekNumberDidMount:Gw,weekNumberWillUnmount:Gw,editable:Boolean,viewClassNames:Gw,viewDidMount:Gw,viewWillUnmount:Gw,nowIndicator:Boolean,nowIndicatorSnap:Gw,nowIndicatorClassNames:Gw,nowIndicatorContent:Gw,nowIndicatorDidMount:Gw,nowIndicatorWillUnmount:Gw,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Gw,locale:Gw,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Gw,eventOrder:function(e){let t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)n=o[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Gw,contentHeight:Gw,direction:String,weekNumberFormat:Iw,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Gw,initialDate:Gw,now:Gw,eventDataTransform:Gw,stickyHeaderDates:Gw,stickyFooterScrollbar:Gw,viewHeight:Gw,defaultAllDay:Boolean,eventSourceFailure:Gw,eventSourceSuccess:Gw,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Gw,eventConstraint:Gw,eventAllow:Gw,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Gw,eventContent:Gw,eventDidMount:Gw,eventWillUnmount:Gw,selectConstraint:Gw,selectOverlap:Gw,selectAllow:Gw,droppable:Boolean,unselectCancel:String,slotLabelFormat:Gw,slotLaneClassNames:Gw,slotLaneContent:Gw,slotLaneDidMount:Gw,slotLaneWillUnmount:Gw,slotLabelClassNames:Gw,slotLabelContent:Gw,slotLabelDidMount:Gw,slotLabelWillUnmount:Gw,dayMaxEvents:Gw,dayMaxEventRows:Gw,dayMinWidth:Number,slotLabelInterval:Zb,allDayText:String,allDayClassNames:Gw,allDayContent:Gw,allDayDidMount:Gw,allDayWillUnmount:Gw,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Iw,rerenderDelay:Number,moreLinkText:Gw,moreLinkHint:Gw,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Gw,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Zb,hiddenDays:Gw,fixedWeekCount:Boolean,validRange:Gw,visibleRange:Gw,titleFormat:Gw,eventInteractive:Boolean,noEventsText:String,viewHint:Gw,navLinkHint:Gw,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Gw,moreLinkClassNames:Gw,moreLinkContent:Gw,moreLinkDidMount:Gw,moreLinkWillUnmount:Gw,monthStartFormat:Iw,handleCustomRendering:Gw,customRenderingMetaMap:Gw,customRenderingReplaces:Boolean},Lw={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},Fw={datesSet:Gw,eventsSet:Gw,eventAdd:Gw,eventChange:Gw,eventRemove:Gw,windowResize:Gw,eventClick:Gw,eventMouseEnter:Gw,eventMouseLeave:Gw,select:Gw,unselect:Gw,loading:Gw,_unmount:Gw,_beforeprint:Gw,_afterprint:Gw,_noEventDrop:Gw,_noEventResize:Gw,_resize:Gw,_scrollRequest:Gw},zw={buttonText:Gw,buttonHints:Gw,views:Gw,plugins:Gw,initialEvents:Gw,events:Gw,eventSources:Gw},Hw={headerToolbar:Ww,footerToolbar:Ww,buttonText:Ww,buttonHints:Ww,buttonIcons:Ww,dateIncrement:Ww,plugins:Bw,events:Bw,eventSources:Bw,resources:Bw};function Ww(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Xw(e,t):e===t}function Bw(e,t){return Array.isArray(e)&&Array.isArray(t)?tw(e,t):e===t}const Vw={type:String,component:Gw,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Gw,usesMinMaxTime:Boolean,classNames:Gw,content:Gw,didMount:Gw,willUnmount:Gw};function Uw(e){return Zw(e,Hw)}function $w(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function Gw(e){return e}const{hasOwnProperty:qw}=Object.prototype;function Zw(e,t){let n={};if(t)for(let r in t)if(t[r]===Ww){let t=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if("object"==typeof a&&a)t.unshift(a);else if(void 0!==a){n[r]=a;break}}t.length&&(n[r]=Zw(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function Yw(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Qw(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function Kw(e){let t={};for(let n of e)t[n]=!0;return t}function Jw(e){let t=[];for(let n in e)t.push(e[n]);return t}function Xw(e,t){if(e===t)return!0;for(let n in e)if(qw.call(e,n)&&!(n in t))return!1;for(let n in t)if(qw.call(t,n)&&e[n]!==t[n])return!1;return!0}const ex=/^on[A-Z]/;function tx(e,t,n={}){if(e===t)return!0;for(let i in t)if(!(i in e&&(r=e[i],o=t[i],a=n[i],r===o||!0===a||a&&a(r,o))))return!1;var r,o,a;for(let n in e)if(!(n in t))return!1;return!0}let nx={};var rx;rx=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return pw(e)}markerToArray(e){return hw(e)}},nx.gregory=rx;const ox=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class ax{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new nx[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):pw(dw(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=pw(e)),null!==t&&mw(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=ox.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(mw(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return gw(e)===gw(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return gw(e)===gw(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=function(e,t){let n=sw(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=sw(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),Ub(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),Ub(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),Ub(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(Kb(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/(Kb(n)/30):n.days&&(r=sw(e,t),null!==r)?r/Kb(n):(t.valueOf()-e.valueOf())/Jb(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?lw(e):"hour"===t?function(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return pw([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),o=cw(e,r,t,n);if(o<1)return cw(e,r-1,t,n);let a=cw(e,r+1,t,n);return a>=1?Math.min(o,a):o}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=aw(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),vw(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?pw(dw(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?pw(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-fw(hw(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(hw(e)):null}toDate(e,t){return"local"===this.timeZone?fw(hw(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(hw(e))*60):new Date(e.valueOf()-(t||0))}}class ix{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function sx(e){e();let t=Kv.debounceRendering,n=[];for(Kv.debounceRendering=function(e){n.push(e)},Py(fy(lx,{}),document.createElement("div"));n.length;)n.shift()();Kv.debounceRendering=t}ix.prototype.classes={},ix.prototype.iconClasses={},ix.prototype.baseIconClass="",ix.prototype.iconOverridePrefix="";class lx extends by{render(){return fy("div",{})}componentDidMount(){this.setState({})}}function cx(e){let t=function(e,t){var n={__c:t="__cC"+oy++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,Sy(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class ux{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const dx=cx({});function fx(e,t,n,r,o,a,i,s,l,c,u,d,f,h){return{dateEnv:o,nowManager:a,options:n,pluginHooks:s,emitter:u,dispatch:l,getCurrentData:c,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler(e){u.on("_resize",e)},removeResizeHandler(e){u.off("_resize",e)},createScrollResponder:e=>new ux(e,u,Zb(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class hx extends by{shouldComponentUpdate(e,t){return!tx(this.props,e,this.propEquality)||!tx(this.state,t,this.stateEquality)}safeSetState(e){tx(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}hx.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},hx.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},hx.contextType=dx,hx.prototype.propEquality={},hx.prototype.stateEquality={};class px extends hx{}function mx(e,t){"function"==typeof e?e(t):e&&(e.current=t)}px.contextType=dx;class gx extends px{constructor(){super(...arguments),this.id=Hb(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&vx(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&mx(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:o,renderProps:a}=e,i=yx(e,[],this.handleEl);let s,l,c=!1,u=[];if(null!=r){const e="function"==typeof r?r(a,fy):r;if(!0===e)c=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?i.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?u=Array.prototype.slice.call(e.domNodes):(t?Xv(e):"function"!=typeof e)?s=e:l=e}}else c=!vx(e.generatorName,n);return c&&o&&(s=o(a)),this.queuedDomNodes=u,this.currentGeneratorMeta=l,fy(e.elTag,i,s)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=r.options;if(o){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==a?void 0:a[n.generatorName];r&&o(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(bx)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!tw(e,t)){t.forEach(_b);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function vx(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function yx(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function bx(e){return Boolean(e)}gx.addPropsEquality({elClasses:tw,elStyle:Xw,elAttrs:function(e,t){const n=function(e,t){let n=[];for(let r in e)qw.call(e,r)&&(r in t||n.push(r));for(let r in t)qw.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}(e,t);for(let e of n)if(!ex.test(e))return!1;return!0},renderProps:Xw});const wx=cx(0);class xx extends by{constructor(){super(...arguments),this.InnerContent=kx.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(mx(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=yx(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?fy(e.elTag,n,r):r}return fy(gx,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function kx(e,t){const n=e.props;return fy(gx,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}xx.contextType=wx;class Sx extends px{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return fy(xx,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Ex(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},(()=>e.children))}}function Ex(e){return[`fc-${e.type}-view`,"fc-view"]}function Cx(e,t){let n,r,o=[],{start:a}=t;for(e.sort(Dx),n=0;n<e.length;n+=1)r=e[n],r.start>a&&o.push({start:a,end:r.start}),r.end>a&&(a=r.end);return a<t.end&&o.push({start:a,end:t.end}),o}function Dx(e,t){return e.start.valueOf()-t.start.valueOf()}function Tx(e,t){let{start:n,end:r}=e,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function Ax(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Nx(e){let t=Math.floor(iw(e.start,e.end))||1,n=lw(e.start);return{start:n,end:ow(n,t)}}function Mx(e,t=Zb(0)){let n=null,r=null;if(e.end){r=lw(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=Jb(t)&&(r=ow(r,1))}return e.start&&(n=lw(e.start),r&&r<=n&&(r=ow(n,1))),{start:n,end:r}}function Rx(e,t,n,r){return"year"===r?Zb(n.diffWholeYears(e,t),"year"):"month"===r?Zb(n.diffWholeMonths(e,t),"month"):function(e,t){let n=lw(e),r=lw(t);return{years:0,months:0,days:Math.round(iw(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}class Ox{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)}build(e,t,n=!0){let r,o,a,i,s,l,{props:c}=this;var u,d,f,h;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(u=e,e=null!=(d=r).start&&u<d.start?d.start:null!=d.end&&u>=d.end?new Date(d.end.valueOf()-1):u),o=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(o.unit),i=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),i=this.trimHiddenDays(i),s=i,c.showNonCurrentDates||(s=Tx(s,o.range)),s=this.adjustActiveRange(s),s=Tx(s,r),f=o.range,h=r,l=(null===f.end||null===h.start||f.end>h.start)&&(null===f.start||null===h.end||f.start<h.end),Ax(i,e)||(e=i.start),{currentDate:e,validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:s,renderRange:i,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,o=null,a=null,i=null;return r.duration?(o=r.duration,a=r.durationUnit,i=this.buildRangeFromDuration(e,t,o,a)):(n=this.props.dayCount)?(a="day",i=this.buildRangeFromDayCount(e,t,n)):(i=this.buildCustomVisibleRange(e))?a=r.dateEnv.greatestWholeUnit(i.start,i.end).unit:(o=this.getFallbackDuration(),a=ew(o).unit,i=this.buildRangeFromDuration(e,t,o,a)),{duration:o,unit:a,range:i}}getFallbackDuration(){return Zb({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:o}=this.props,{start:a,end:i}=e;return n&&(Kb(r)<0&&(a=lw(a),a=t.add(a,r)),Kb(o)>1&&(i=lw(i),i=ow(i,-1),i=t.add(i,o))),{start:a,end:i}}buildRangeFromDuration(e,t,n,r){let o,a,i,{dateEnv:s,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&Jb(e)<Jb(n)?ew(e).unit:r}function c(){o=s.startOf(e,l),a=s.add(o,n),i={start:o,end:a}}return Kb(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=lw(o)),c(),this.trimHiddenDays(i)||(e=this.skipHiddenDays(e,t),c()),i}buildRangeFromDayCount(e,t,n){let r,{dateEnv:o,dateAlignment:a}=this.props,i=0,s=e;a&&(s=o.startOf(s,a)),s=lw(s),s=this.skipHiddenDays(s,t),r=s;do{r=ow(r,1),this.isHiddenDay(r)||(i+=1)}while(i<n);return{start:s,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?Zb(1,t):e||Zb({days:1}))}refineRange(e){if(e){let t=function(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=Mx(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=ow(e,t);return e}}function jx(e,t,n,r){return{instanceId:Hb(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Ix(e,t,n){let{dateEnv:r,pluginHooks:o,options:a}=n,{defs:i,instances:s}=e;s=Yw(s,(e=>!i[e.defId].recurringDef));for(let e in i){let n=i[e];if(n.recurringDef){let{duration:i}=n.recurringDef;i||(i=n.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);let l=Px(n,i,t,r,o.recurringTypes);for(let t of l){let n=jx(e,{start:t,end:r.add(t,i)});s[n.instanceId]=n}}}return{defs:i,instances:s}}function Px(e,t,n,r,o){let a=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(lw)),a}const Lx={id:String,groupId:String,title:String,url:String,interactive:Boolean},Fx={start:Gw,end:Gw,date:Gw,allDay:Boolean},zx=Object.assign(Object.assign(Object.assign({},Lx),Fx),{extendedProps:Gw});function Hx(e,t,n,r,o=Bx(n),a,i){let{refined:s,extra:l}=Wx(e,n,o),c=function(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}(t,n),u=function(e,t,n,r){for(let o=0;o<r.length;o+=1){let a=r[o].parse(e,n);if(a){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=a.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(s,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let e=Vx(s,l,t?t.sourceId:"",u.allDay,Boolean(u.duration),n,a);return e.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:e,instance:null}}let d=function(e,t,n,r){let o,a,{allDay:i}=e,s=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(u),o)s=o.marker;else if(!r)return null;return null!=e.end&&(a=n.dateEnv.createMarkerMeta(e.end)),null==i&&(i=null!=t?t:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified)),i&&s&&(s=lw(s)),a&&(c=a.marker,i&&(c=lw(c)),s&&c<=s&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:l,range:{start:s,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(s,c,n,r);if(d){let e=Vx(s,l,t?t.sourceId:"",d.allDay,d.hasEnd,n,a),r=jx(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return i&&e.publicId&&i[e.publicId]&&(r.instanceId=i[e.publicId]),{def:e,instance:r}}return null}function Wx(e,t,n=Bx(t)){return $w(e,n)}function Bx(e){return Object.assign(Object.assign(Object.assign({},Yx),zx),e.pluginHooks.eventRefiners)}function Vx(e,t,n,r,o,a,i){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(i&&e.id?i[e.id]:"")||Hb(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:Kx(e,a),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of a.pluginHooks.eventDefMemberAdders)Object.assign(s,t(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Ux(e,t,n,r,o,a){let i={defs:{},instances:{}},s=Bx(n);for(let l of e){let e=Hx(l,t,n,r,s,o,a);e&&$x(e,i)}return i}function $x(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Gx(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qx(e,t){let n=Yw(e.defs,t),r=Yw(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function Zx(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const Yx={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Gw,overlap:Gw,allow:Gw,className:Zx,classNames:Zx,color:String,backgroundColor:String,borderColor:String,textColor:String},Qx={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Kx(e,t){let n=function(e,t){return Array.isArray(e)?Ux(e,null,t,!0):"object"==typeof e&&e?Ux([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Jx(e){return e.reduce(Xx,Qx)}function Xx(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const ek={id:String,defaultAllDay:Boolean,url:String,format:String,events:Gw,eventDataTransform:Gw,success:Gw,failure:Gw};function tk(e,t,n=nk(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:o,extra:a}=$w(r,n),i=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(o,t);if(i)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:Hb(),sourceDefId:i.sourceDefId,meta:i.meta,ui:Kx(o,t),extendedProps:a}}return null}function nk(e){return Object.assign(Object.assign(Object.assign({},Yx),ek),e.pluginHooks.eventSourceRefiners)}function rk(e,t,n){let r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=ok(e,o)),r&&(e=ok(e,r)),e}function ok(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function ak(e,t,n){let{defs:r}=e,o=Qw(e.instances,(e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})));return{defs:r,instances:o}}function ik(e,t){return qx(e,(e=>e.sourceId!==t))}class sk{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],o=[].concat(r||[],n);for(let e of o)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const lk={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ck(e,t,n){let{dateEnv:r,options:o}=n,a=t;return e?(a=lw(a),a=r.add(a,o.defaultAllDayEventDuration)):a=r.add(a,o.defaultTimedEventDuration),a}function uk(e,t,n,r){let o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},e),o),{ui:Object.assign(Object.assign({},e.ui),o.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(a,n,r);return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function dk(e,t,n,r,o){let{dateEnv:a}=o,i=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return i&&(l.range=Nx(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,r.datesDelta),end:a.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:ck(t.allDay,l.range.start,o)}),t.allDay&&(l.range={start:lw(l.range.start),end:lw(l.range.end)}),l.range.end<l.range.start&&(l.range.end=ck(t.allDay,l.range.start,o)),l}class fk{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class hk{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Fx)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Lx[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Lx)t=Lx[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Yx){let n=Yx[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=Rx(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=Rx(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:o}=this._context,a={allDay:n.allDay},i=o.createMarker(e);var s,l;if(i&&(null==t||(r=o.createMarker(t),r))&&this._instance){let e=this._instance.range;!0===n.allDay&&(e=Nx(e));let t=Rx(e.start,i,o,n.granularity);if(r){let i=Rx(e.end,r,o,n.granularity);l=i,(s=t).years===l.years&&s.months===l.months&&s.days===l.days&&s.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:a}):this.mutate({startDelta:t,endDelta:i,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:t,standardProps:a})}}moveStart(e){let t=Zb(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=Zb(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=Zb(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=Iw(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:o}=r.getCurrentData(),a=function(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qx(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}(o,t.instanceId);a=function(e,t,n,r){let o=bk(e.defs,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}),a={defs:{},instances:{}};for(let t in e.defs){let i=e.defs[t];a.defs[t]=uk(i,o[t],n,r)}for(let t in e.instances){let i=e.instances[t],s=a.defs[i.defId];a.instances[t]=dk(i,s,o[i.defId],n,r)}return a}(a,0,e,r);let i=new hk(r,n,t);this._def=a.defs[n.defId],this._instance=a.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:a}),r.emitter.trigger("eventChange",{oldEvent:i,event:this,relatedEvents:mk(a,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let e=this._context,t=pk(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new fk(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:o}=this,a={allDay:t.allDay};return t.title&&(a.title=t.title),r&&(a.start=r),o&&(a.end=o),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}toJSON(){return this.toPlainObject()}}function pk(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function mk(e,t,n){let{defs:r,instances:o}=e,a=[],i=n?n.instanceId:"";for(let e in o){let n=o[e],s=r[n.defId];n.instanceId!==i&&a.push(new hk(t,s,n))}return a}function gk(e,t,n,r){let o={},a={},i={},s=[],l=[],c=bk(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(o[n.groupId]=[],i[n.groupId]||(i[n.groupId]=n)):a[t]=[])}for(let t in e.instances){let i=e.instances[t],u=e.defs[i.defId],d=c[u.defId],f=i.range,h=!u.allDay&&r?Mx(f,r):f,p=Tx(h,n);p&&("inverse-background"===d.display?u.groupId?o[u.groupId].push(p):a[i.defId].push(p):"none"!==d.display&&("background"===d.display?s:l).push({def:u,ui:d,instance:i,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()}))}for(let e in o){let t=Cx(o[e],n);for(let n of t){let t=i[e],r=c[t.defId];s.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in a){let r=Cx(a[t],n);for(let n of r)s.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function vk(e,t){e.fcSeg=t}function yk(e){return e.fcSeg||e.parentNode.fcSeg||null}function bk(e,t){return Qw(e,(e=>wk(e,t)))}function wk(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Jx(n)}function xk(e,t){let n=e.map(kk);return n.sort(((e,n)=>function(e,t,n){let r,o;for(r=0;r<n.length;r+=1)if(o=Wb(e,t,n[r]),o)return o;return 0}(e,n,t))),n.map((e=>e._seg))}function kk(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:e})}function Sk(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:o,ui:a}=e.eventRange,i=a.startEditable;for(let e of r)i=e(i,o,a,t);return i}function Ek(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Ck(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Dk(e,t,n,r,o,a,i){let{dateEnv:s,options:l}=n,{displayEventTime:c,displayEventEnd:u}=l,d=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==u&&(u=!1!==o);let h=f.range.start,p=f.range.end,m=a||e.start||e.eventRange.range.start,g=i||e.end||e.eventRange.range.end,v=lw(h).valueOf()===lw(m).valueOf(),y=lw(aw(p,-1)).valueOf()===lw(aw(g,-1)).valueOf();return c&&!d.allDay&&(v||y)?(m=v?h:m,g=y?p:g,u&&d.hasEnd?s.formatRange(m,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:i?null:f.forcedEndTzo}):s.format(m,t,{forcedTzo:a?null:f.forcedStartTzo})):""}function Tk(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ax(t,r.start)}}function Ak(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function _k(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Nk(e,t){let{def:n,instance:r}=e.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:a,options:i}=t,{eventInteractive:s}=i;return null==s&&(s=n.interactive,null==s&&(s=Boolean(a.hasHandlers("eventClick")))),s?Fb((e=>{a.trigger("eventClick",{el:e.target,event:new hk(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const Mk={start:Gw,end:Gw,allDay:Boolean};function Rk(e,t,n){return Object.assign(Object.assign({},Ok(e,t,n)),{timeZone:t.timeZone})}function Ok(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}class jk extends Error{constructor(e,t){super(e),this.response=t}}let Ik;function Pk(){return null==Ik&&(Ik=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Ik}class Lk extends px{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{sx((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{sx((()=>{this.setState({forPrint:!1})}))}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,a=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return Pk()||a.push("fc-liquid-hack"),e.children(a,o,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Fk{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}const zk={};class Hk extends by{constructor(e,t){super(e,t),this.handleRefresh=()=>{let e=this.computeTiming();e.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(e.state),this.clearTimeout(),this.setTimeout(e.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let e,t,{props:n,context:r}=this,o=r.nowManager.getDateMarker(),{nowIndicatorSnap:a}=r.options;return"auto"===a&&(a=/year|month|week|day/.test(n.unit)||1===(n.unitValue||1)),a?(e=r.dateEnv.startOf(o,n.unit),t=r.dateEnv.add(e,Zb(1,n.unit)).valueOf()-o.valueOf()):(e=o,t=6e4),t=Math.min(864e5,t),{state:{nowDate:e,todayRange:Wk(e)},waitMs:t}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout((()=>{const e=this.computeTiming();this.setState(e.state,(()=>{this.setTimeout(e.waitMs)}))}),e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Wk(e){let t=lw(e);return{start:t,end:ow(t,1)}}Hk.contextType=dx;class Bk{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:o}=this.getCurrentData(),a=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(let e in r)a.push(e);for(t=0;t<a.length;t+=1)if(n=r[a[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=Zb(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),Iw(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),Iw(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),o=function(e,t,n){let r=function(e,t){let{refined:n,extra:r}=$w(e,Mk),o=n.start?t.createMarkerMeta(n.start):null,a=n.end?t.createMarkerMeta(n.end):null,{allDay:i}=n;return null==i&&(i=o&&o.isTimeUnspecified&&(!a||a.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:a?a.marker:null},allDay:i},r)}(e,t),{range:o}=r;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}(n,r.dateEnv,Zb({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),function(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},function(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,o=t.dateEnv,Object.assign(Object.assign({},Ok(r.range,o,r.allDay)),{allDay:r.allDay}))),n}(e,n)),{jsEvent:null,view:n.viewApi||n.calendarApi.view}))}(o,0,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof hk){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:$x({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof fk)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=Jw(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let o=Hx(e,n,r,!1);if(o){let e=new hk(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:$x(o)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:pk(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let o in n){let a=n[o];if(a.publicId===e){if(a.recurringDef)return new hk(t,a,null);for(let e in r){let n=r[e];if(n.defId===a.defId)return new hk(t,a,n)}}}return null}getEvents(){let e=this.getCurrentData();return mk(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new fk(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new fk(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof fk)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=tk(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new fk(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Zb(e);t&&this.trigger("_scrollRequest",{time:t})}}function Vk(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}const Uk={defs:{},instances:{}};class $k{constructor(){this.getKeysForEventDefs=ww(this._getKeysForEventDefs),this.splitDateSelection=ww(this._splitDateSpan),this.splitEventStore=ww(this._splitEventStore),this.splitIndividualUi=ww(this._splitIndividualUi),this.splitEventDrag=ww(this._splitInteraction),this.splitEventResize=ww(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),a=this.splitEventStore(e.eventStore,n),i=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=Qw(t,((e,t)=>this.eventUiBuilders[t]||ww(Gk)));for(let n in t){let c=t[n],u=a[n]||Uk,d=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:u,eventUiBases:d(e.eventUiBases[""],c.ui,o[n]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:i[n]||null,eventResize:s[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return Qw(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,o={};for(let e in n)for(let r of t[e])o[r]||(o[r]={defs:{},instances:{}}),o[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])o[r]&&(o[r].instances[e]=n)}return o}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let o of t[r])n[o]||(n[o]={}),n[o][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),a=r=>{t[r]||(t[r]={affectedEvents:n[r]||Uk,mutatedEvents:o[r]||Uk,isEvent:e.isEvent})};for(let e in n)a(e);for(let e in o)a(e)}return t}}function Gk(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let o={"":Jx(r)};return n&&Object.assign(o,n),o}function qk(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&(!r.activeRange||!Ax(r.activeRange,e))),isOther:Boolean(r&&!Ax(r.currentRange,e)),isToday:Boolean(t&&Ax(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Zk(e,t){let n=["fc-day",`fc-day-${nw[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const Yk=Iw({year:"numeric",month:"long",day:"numeric"}),Qk=Iw({week:"long"});function Kk(e,t,n="day",r=!0){const{dateEnv:o,options:a,calendarApi:i}=e;let s=o.format(t,"week"===n?Qk:Yk);if(a.navLinks){let e=o.toDate(t);const l=e=>{let r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(i,o.toDate(t),e):("string"==typeof r&&(n=r),i.zoomTo(t,n))};return Object.assign({title:Vb(a.navLinkHint,[s,e],s),"data-navlink":""},r?Lb(l):{onClick:l})}return{"aria-label":s}}let Jk;class Xk{constructor(e,t,n,r){this.els=t;let o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return eS(this.tops||[],e.tops||[])&&eS(this.bottoms||[],e.bottoms||[])&&eS(this.lefts||[],e.lefts||[])&&eS(this.rights||[],e.rights||[])}}function eS(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class tS extends px{constructor(){super(...arguments),this.uid=Hb()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Nb(e,".fc-event-mirror")}isValidDateDownEl(e){return!(Nb(e,".fc-event:not(.fc-bg-event)")||Nb(e,".fc-more-link")||Nb(e,"a[data-navlink]")||Nb(e,".fc-popover"))}}class nS{constructor(e){this.timeZoneName=e}}class rS{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const r=Object.assign(Object.assign({},t),{span:iS(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,o=t.span;r.start<o.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:o.start}},n),r.end>o.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(sS(r,t.level,t.levelCoord),sS(n,t.level,[e])):sS(n[t.level],t.lateral,e),this.stackCnts[aS(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:o}=this,a=t.length,i=0,s=-1,l=-1,c=null,u=0;for(let d=0;d<a;d+=1){const a=t[d];if(!r&&a>=i+this.getEntryThickness(e))break;let f,h=n[d],p=lS(h,e.span.start,oS),m=p[0]+p[1];for(;(f=h[m])&&f.span.start<e.span.end;){let e=a+this.getEntryThickness(f);e>i&&(i=e,c=f,s=d,l=m),e===i&&(u=Math.max(u,o[aS(f)]+1)),m+=1}}let d=0;if(c)for(d=s+1;d<a&&t[d]<i;)d+=1;let f=-1;return d<a&&t[d]===i&&(f=lS(n[d],e.span.end,oS)[0]),{touchingLevel:s,touchingLateral:l,touchingEntry:c,stackCnt:u,levelCoord:i,level:d,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let o=0;o<n;o+=1){let n=e[o],a=t[o];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:a}))}return r}}function oS(e){return e.span.end}function aS(e){return e.index+":"+e.span.start}function iS(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function sS(e,t,n){e.splice(t,0,n)}function lS(e,t,n){let r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){let a=Math.floor(r+(o-r)/2),i=n(e[a]);if(t<i)o=a;else{if(!(t>i))return[a,1];r=a+1}}return[r,0]}Boolean;const cS="fc-col-header-cell";function uS(e){return e.text}class dS extends px{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:o}=this,{date:a,dateProfile:i}=o,s=qk(a,o.todayRange,null,i),l=[cS].concat(Zk(s,n)),c=e.format(a,o.dayHeaderFormat),u=!s.isDisabled&&o.colCnt>1?Kk(this.context,a):{},d=e.toDate(a);e.namedTimeZoneImpl&&(d=aw(d,36e5));let f=Object.assign(Object.assign(Object.assign({date:d,view:r},o.extraRenderProps),{text:c}),s);return fy(xx,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":s.isDisabled?void 0:yw(a)},o.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:uS,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>fy("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&fy(e,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]}))))}}const fS=Iw({weekday:"long"});class hS extends px{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:o}=this.context,a=ow(new Date(2592e5),e.dow),i={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=t.format(a,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:a},i),{view:r}),e.extraRenderProps),{text:s});return fy(xx,{elTag:"th",elClasses:[cS,...Zk(i,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:uS,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(n=>fy("div",{className:"fc-scrollgrid-sync-inner"},fy(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(a,fS)}}))))}}class pS extends px{constructor(){super(...arguments),this.createDayHeaderFormatter=ww(mS)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return fy(Hk,{unit:"day"},((e,i)=>fy("tr",{role:"row"},o&&o("day"),t.map((e=>r?fy(dS,{key:e.toISOString(),date:e,dateProfile:n,todayRange:i,colCnt:t.length,dayHeaderFormat:a}):fy(hS,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a}))))))}}function mS(e,t,n){return e||function(e,t){return Iw(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}class gS{constructor(e,t){let n=e.start,{end:r}=e,o=[],a=[],i=-1;for(;n<r;)t.isHiddenDay(n)?o.push(i+.5):(i+=1,o.push(i),a.push(n)),n=ow(n,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(ow(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return r=Math.ceil(r),o=Math.floor(o),r<=o?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(iw(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class vS{constructor(e,t){let n,r,o,{dates:a}=e;if(t){for(r=a[0].getUTCDay(),n=1;n<a.length&&a[n].getUTCDay()!==r;n+=1);o=Math.ceil(a.length/n)}else o=1,n=a.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:o}=n,a=e;for(;a<=o;){let i=Math.floor(a/t),s=Math.min((i+1)*t,o+1);r.push({row:i,firstCol:a%t,lastCol:(s-1)%t,isStart:n.isStart&&a===e,isEnd:n.isEnd&&s-1===o}),a=s}}return r}}class yS{constructor(){this.sliceBusinessHours=ww(this._sliceBusinessHours),this.sliceDateSelection=ww(this._sliceDateSpan),this.sliceEventStore=ww(this._sliceEventStore),this.sliceEventDrag=ww(this._sliceInteraction),this.sliceEventResize=ww(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...o){let{eventUiBases:a}=e,i=this.sliceEventStore(e.eventStore,a,t,n,...o);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,a,r,...o),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...o),fgEventSegs:i.fg,bgEventSegs:i.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,t,n,...o),eventResize:this.sliceEventResize(e.eventResize,a,t,n,...o),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...o){return this._sliceDateSpan({range:{start:e,end:aw(e,1)},allDay:!1},t,n,{},r,...o)}_sliceBusinessHours(e,t,n,r,...o){return e?this._sliceEventStore(Ix(e,bS(t,Boolean(n)),r),{},t,n,...o).bg:[]}_sliceEventStore(e,t,n,r,...o){if(e){let a=gk(e,t,bS(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...o){if(!e)return null;let a=gk(e.mutatedEvents,t,bS(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,o,...a){if(!e)return[];let i=bS(t,Boolean(n)),s=Tx(e.range,i);if(s){let t=function(e,t,n){let r=Wx({editable:!1},n),o=Vx(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:wk(o,t),instance:jx(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:s}),r,o),n=this.sliceRange(e.range,...a);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:ow(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function bS(e,t){let n=e.activeRange;return t?n:{start:aw(n.start,e.slotMinTime.milliseconds),end:aw(n.end,e.slotMaxTime.milliseconds-864e5)}}const wS=/^(visible|hidden)$/;class xS extends px{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,mx(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),fy("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(wS.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(wS.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return wS.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return wS.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class kS{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,o=!1,a=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,a=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(t)),a&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return function(e,t=0,n,r=1){let o=[];null==n&&(n=Object.keys(e).length);for(let a=t;a<n;a+=r){let t=e[a];void 0!==t&&o.push(t)}return o}(this.currentMap,e,t,n)}getAll(){return Jw(this.currentMap)}}function SS(e,t){return e.liquid&&t.liquid}function ES(e,t){return tw(e,t,Xw)}function CS(e,t){let n=[];for(let r of e){let e=r.span||1;for(let o=0;o<e;o+=1)n.push(fy("col",{style:{width:"shrink"===r.width?DS(t):r.width||"",minWidth:r.minWidth||""}}))}return fy("colgroup",{},...n)}function DS(e){return null==e?4:e}function TS(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function AS(e){return fy("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function _S(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function NS(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class MS extends px{constructor(){super(...arguments),this.processCols=ww((e=>e),ES),this.renderMicroColGroup=ww(CS),this.scrollerRefs=new kS,this.scrollerElRefs=new kS(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],o=this.processCols(e.cols),a=this.renderMicroColGroup(o,t.shrinkWidth),i=function(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(e.liquid,n);e.collapsibleWidth&&i.push("fc-scrollgrid-collapsible");let s,l=r.length,c=0,u=[],d=[],f=[];for(;c<l&&"header"===(s=r[c]).type;)u.push(this.renderSection(s,a,!0)),c+=1;for(;c<l&&"body"===(s=r[c]).type;)d.push(this.renderSection(s,a,!1)),c+=1;for(;c<l&&"footer"===(s=r[c]).type;)f.push(this.renderSection(s,a,!0)),c+=1;let h=!Pk();const p={role:"rowgroup"};return fy("table",{role:"grid",className:i.join(" "),style:{height:e.height}},Boolean(!h&&u.length)&&fy("thead",p,...u),Boolean(!h&&d.length)&&fy("tbody",p,...d),Boolean(!h&&f.length)&&fy("tfoot",p,...f),h&&fy("tbody",p,...u,...d,...f))}renderSection(e,t,n){return"outerContent"in e?fy(py,{key:e.key},e.outerContent):fy("tr",{key:e.key,role:"presentation",className:TS(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:i,scrollerClientHeights:s}=this.state,l=function(e,t){return null!=t.maxHeight||SS(e,t)}(o,e),c=SS(o,e),u=o.liquid?a?"scroll":l?"auto":"hidden":"visible",d=e.key,f=function(e,t,n,r){let{expandRows:o}=n;return"function"==typeof t.content?t.content(n):fy("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,fy(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===i[d]?null:i[d],clientHeight:void 0!==s[d]?s[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return fy(r?"th":"td",{ref:n.elRef,role:"presentation"},fy("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},fy(xS,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:u,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&mx(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function(e){for(let t of e)if("shrink"===t.width)return!0;return!1}(this.props.cols)?function(e){let t=function(e){let t=e instanceof HTMLElement?[e]:e,n=[];for(let e=0;e<t.length;e+=1){let r=t[e].querySelectorAll(".fc-scrollgrid-shrink");for(let e=0;e<r.length;e+=1)n.push(r[e])}return n}(e),n=0;for(let e of t)n=Math.max(n,$b(e));return Math.ceil(n)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=(Jk||(Jk=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=function(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}(e);return document.body.removeChild(e),t}()),Jk),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,o={},a={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let i=t.key,s=n.currentMap[i];if(s){let t=s.parentNode;o[i]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),a[i]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:a}}}MS.addStateEquality({scrollerClientWidths:Xw,scrollerClientHeights:Xw});class RS extends px{constructor(){super(...arguments),this.buildPublicEvent=ww(((e,t,n)=>new hk(e,t,n))),this.handleEl=e=>{this.el=e,mx(this.props.elRef,e),e&&vk(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:o}=r,{ui:a}=o,i={event:this.buildPublicEvent(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Sk(r,t),isStartResizable:!e.disableResizing&&Ek(r,t),isEndResizable:!e.disableResizing&&Ck(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return fy(xx,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...Ak(i),...r.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&vk(this.el,this.props.seg)}}class OS extends px{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:o}=r.eventRange,a=Dk(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return fy(RS,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Nk(r,t),defaultGenerator:jS,timeText:a}),((e,t)=>fy(py,null,fy(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&fy("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&fy("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function jS(e){return fy("div",{className:"fc-event-main-frame"},e.timeText&&fy("div",{className:"fc-event-time"},e.timeText),fy("div",{className:"fc-event-title-container"},fy("div",{className:"fc-event-title fc-sticky"},e.event.title||fy(py,null," "))))}OS.addPropsEquality({seg:Xw});const IS=e=>fy(dx.Consumer,null,(t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return fy(xx,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)})),PS=Iw({day:"numeric"});class LS extends px{constructor(){super(...arguments),this.refineRenderProps=xw(zS)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return fy(xx,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":yw(e.date)}),elClasses:[...Zk(r,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}}function FS(e){return Boolean(e.dayCellContent||vx("dayCellContent",e))}function zS(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:o}=e,a=qk(t,e.todayRange,null,r),i=e.showDayNumber?n.format(t,o?e.monthStartFormat:PS):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},a),{isMonthStart:o,dayNumberText:i}),e.extraRenderProps)}class HS extends px{render(){let{props:e}=this,{seg:t}=e;return fy(RS,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:WS,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function WS(e){let{title:t}=e.event;return t&&fy("div",{className:"fc-event-title"},e.event.title)}function BS(e){return fy("div",{className:`fc-${e}`})}const VS=e=>fy(dx.Consumer,null,(t=>{let{dateEnv:n,options:r}=t,{date:o}=e,a=r.weekNumberFormat||e.defaultFormat,i={num:n.computeWeekNumber(o),text:n.format(o,a),date:o};return fy(xx,{elRef:e.elRef,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:i,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:US,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}));function US(e){return e.text}class $S extends px{constructor(){super(...arguments),this.state={titleId:Ib()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&mx(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=function(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,o=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return function(e,t){var n=fy(ub,{__v:e,i:t});return n.containerInfo=t,n}(fy("div",Object.assign({},n.extraAttrs,{id:n.id,className:o.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),fy("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},fy("span",{className:"fc-popover-title",id:r.titleId},n.title),fy("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),fy("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,o=function(e){let t=function(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}(e),n=e.getBoundingClientRect();for(let e of t){let t=Vk(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(o){let a=r.getBoundingClientRect(),i=n?Nb(t,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=e?o.right-a.width:o.left;i=Math.max(i,10),s=Math.min(s,document.documentElement.clientWidth-10-a.width),s=Math.max(s,10);let l=r.offsetParent.getBoundingClientRect();!function(e,t){for(let n in t)Ob(e,n,t[n])}(r,{top:i-l.top,left:s-l.left})}}}class GS extends tS{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:o,dateProfile:a}=n,i=t.format(r,e.dayPopoverFormat);return fy(LS,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:o},((t,r,o)=>fy($S,{elRef:o.ref,id:n.id,title:i,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},FS(e)&&fy(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:o,props:a}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class qS extends px{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ib()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&mx(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,o=YS(t).start;function a(e){let{def:t,instance:r,range:o}=e.eventRange;return{event:new hk(n,t,r),start:n.dateEnv.toDate(o.start),end:n.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:o,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(o,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return fy(dx.Consumer,null,(n=>{let{viewApi:r,options:o,calendarApi:a}=n,{moreLinkText:i}=o,{moreCnt:s}=e,l=YS(e),c="function"==typeof i?i.call(a,s):`+${s} ${i}`,u=Vb(o.moreLinkHint,[s],c),d={num:s,shortText:`+${s}`,text:c,view:r};return fy(py,null,Boolean(e.moreCnt)&&fy(xx,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Lb(this.handleClick)),{title:u,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||ZS,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&fy(GS,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Nb(this.linkEl,".fc-view-harness"))}}function ZS(e){return e.text}function YS(e){if(e.allDayDate)return{start:e.allDayDate,end:ow(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:QS(t),end:(n=t,n.reduce(JS).eventRange.range.end)};var n}function QS(e){return e.reduce(KS).eventRange.range.start}function KS(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function JS(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class XS{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class eE extends XS{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}const tE=[],nE={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},rE=Object.assign(Object.assign({},nE),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function oE(e){let t=e.length>0?e[0].code:"en",n=tE.concat(e),r={en:rE};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function aE(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||rE;return iE(e,n,r)}(e,t):iE(e.code,[e.code],e)}function iE(e,t,n){let r=Zw([nE,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function sE(e){return{id:Hb(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}class lE extends ix{}function cE(e,t,n,r){if(t[e])return t[e];let o=function(e,t,n,r){let o=n[e],a=r[e],i=e=>o&&null!==o[e]?o[e]:a&&null!==a[e]?a[e]:null,s=i("component"),l=i("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=cE(l,t,n,r)}return!s&&c&&(s=c.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),a?a.rawOptions:{})}:null}(e,t,n,r);return o&&(t[e]=o),o}function uE(e){return Qw(e,dE)}function dE(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=fE(t):!n||n.prototype instanceof px||(n=fE(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function fE(e){return t=>fy(dx.Consumer,null,(n=>fy(xx,{elTag:"div",elClasses:Ex(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function hE(e,t,n,r){let o=uE(e),a=uE(t.views),i=function(e,t){let n,r={};for(n in e)cE(n,r,e,t);for(n in t)cE(n,r,e,t);return r}(o,a);return Qw(i,(e=>function(e,t,n,r,o){let a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,i=null,s="",l="",c={};if(a&&(i=function(e){let t=JSON.stringify(e),n=pE[t];return void 0===n&&(n=Zb(e),pE[t]=n),n}(a),i)){let e=ew(i);s=e.unit,1===e.value&&(l=s,c=t[s]?t[s].rawOptions:{})}let u=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},d=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:i,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:u(r)||u(n)||e.overrides.buttonText,buttonTextDefault:u(o)||e.defaults.buttonText||u(Lw)||e.type,buttonTitleOverride:d(r)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(o)||e.defaults.buttonHint||d(Lw)}}(e,a,t,n,r)))}lE.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},lE.prototype.baseIconClass="fc-icon",lE.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},lE.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},lE.prototype.iconOverrideOption="buttonIcons",lE.prototype.iconOverrideCustomButtonOption="icon",lE.prototype.iconOverridePrefix="fc-icon-";let pE={};function mE(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function gE(e,t,n,r){let o={};for(let e of t)o[e.sourceId]=e;return n&&(o=vE(o,n,r)),Object.assign(Object.assign({},e),o)}function vE(e,t,n){return yE(e,Yw(e,(e=>function(e,t,n){return xE(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,n))),t,!1,n)}function yE(e,t,n,r,o){let a={};for(let i in e){let s=e[i];t[i]?a[i]=bE(s,n,r,o):a[i]=s}return a}function bE(e,t,n,r){let{options:o,calendarApi:a}=r,i=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Hb();return i.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:i}=n;o.eventSourceSuccess&&(i=o.eventSourceSuccess.call(a,i,n.response)||i),e.success&&(i=e.success.call(a,i,n.response)||i),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:i})}),(n=>{let i=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(a,n),i=!0),e.failure&&(e.failure(n),i=!0),i||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function wE(e,t){return Yw(e,(e=>xE(e,t)))}function xE(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function kE(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function SE(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function EE(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function CE(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function DE(e,t,n,r,o){return{header:e.headerToolbar?TE(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?TE(e.footerToolbar,e,t,n,r,o):null}}function TE(e,t,n,r,o,a){let i={},s=[],l=!1;for(let c in e){let u=AE(e[c],t,n,r,o,a);i[c]=u.widgets,s.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:i,viewsWithButtons:s,hasTitle:l}}function AE(e,t,n,r,o,a){let i="rtl"===t.direction,s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],h=[],p=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return p=!0,{buttonName:e};let n,f,m,g,v,y;if(n=s[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,i))||(v=n.text),y=n.hint||n.text;else if(f=o[e]){h.push(e),m=()=>{a.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,i))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=Vb(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(a[e])if(m=()=>{a[e]()},(v=l[e])||(g=r.getIconClass(e,i))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=Vb(u[t]||d[t],[c.year||"year","year"],c[e])}else y=t=>Vb(u[e]||d[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:m,buttonIcon:g,buttonText:v,buttonHint:y}})))),viewsWithButtons:h,hasTitle:p}}class _E{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const NE=sE({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),ME=sE({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;!function(e,n,r){let o=!1,a=function(e){o||(o=!0,t({rawEvents:e}))},i=function(e){o||(o=!0,r(e))},s=e(a,i);s&&"function"==typeof s.then&&s.then(a,i)}(e.eventSource.meta.bind(null,Rk(e.range,r)),0,n)}}]}),RE={method:String,extraParams:Gw,startParam:String,endParam:String,timeZoneParam:String};let OE={parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,o=function(e,t,n){let r,o,a,i,{dateEnv:s,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),o=e.endParam,null==o&&(o=l.endParam),a=e.timeZoneParam,null==a&&(a=l.timeZoneParam),i="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,i),c[r]=s.formatIso(t.start),c[o]=s.formatIso(t.end),"local"!==s.timeZone&&(c[a]=s.timeZone),c}(r,e.range,e.context);(function(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new jk("Failure parsing JSON",e)}));throw new jk("Request failed",e)}))})(r.method,r.url,o).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const jE={daysOfWeek:Gw,startTime:Zb,endTime:Zb,duration:Zb,startRecur:Gw,endRecur:Gw};function IE(e,t){let n=Jw(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const PE=[NE,ME,sE({name:"json-event-source",eventSourceRefiners:RE,eventSourceDefs:[OE]}),sE({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let o,a={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t};return e.duration&&(o=e.duration),!o&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,o={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:o,typeData:a}}var n,r;return null},expand(e,t,n){let r=Tx(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r,o){let a=e?Kw(e):null,i=lw(o.start),s=o.end,l=[];for(t&&(t.milliseconds<0?s=ow(s,1):t.milliseconds>=864e5&&(i=ow(i,-1)));i<s;){let e;a&&!a[i.getUTCDay()]||(e=t?r.add(i,t):i,l.push(r.createMarker(n.toDate(e)))),i=ow(i,1)}return l}(e.daysOfWeek,e.startTime,e.dateEnv,n,r):[]}}],eventRefiners:jE}),sE({name:"change-handler",optionChangeHandlers:{events(e,t){IE([e],t)},eventSources:IE}}),sE({name:"misc",isLoadingFuncs:[e=>mE(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Rk(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",mk(e,t))}}})];class LE{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Ab(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function FE(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,Iw(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=sw(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class zE{constructor(){this.resetListeners=new Set}handleInput(e,t){const n=this.dateEnv;if(e!==n&&("function"==typeof t?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(const e of this.resetListeners.values())e()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class HE{constructor(e){this.computeCurrentViewData=ww(this._computeCurrentViewData),this.organizeRawLocales=ww(oE),this.buildLocale=ww(aE),this.buildPluginHooks=function(){let e,t=[],n=[];return(r,o)=>(e&&tw(r,t)&&tw(o,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(let l of e){const e=l.name,c=n[e];void 0===c?(n[e]=l.id,o(l.deps),s=l,r={premiumReleaseDate:(t=(i=r).premiumReleaseDate,a=s.premiumReleaseDate,void 0===t?a:void 0===a?t:new Date(Math.max(t.valueOf(),a.valueOf()))),reducers:i.reducers.concat(s.reducers),isLoadingFuncs:i.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:i.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},i.eventRefiners),s.eventRefiners),eventDefMemberAdders:i.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},i.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:i.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(s.dateSpanTransforms),views:Object.assign(Object.assign({},i.views),s.views),viewPropsTransformers:i.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:i.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:i.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(s.calendarInteractions),componentInteractions:i.componentInteractions.concat(s.componentInteractions),themeClasses:Object.assign(Object.assign({},i.themeClasses),s.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||i.namedTimeZonedImpl,initialView:i.initialView||s.initialView,elementDraggingImpl:i.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},i.optionChangeHandlers),s.optionChangeHandlers),scrollGridImpl:s.scrollGridImpl||i.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},i.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},i.optionRefiners),s.optionRefiners),propSetHandlers:Object.assign(Object.assign({},i.propSetHandlers),s.propSetHandlers)}):c!==l.id&&console.warn(`Duplicate plugin '${e}'`)}var t,a,i,s}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e)}(),this.buildDateEnv=ww(WE),this.buildTheme=ww(BE),this.parseToolbars=ww(DE),this.buildViewSpecs=ww(hE),this.buildDateProfileGenerator=xw(VE),this.buildViewApi=ww(UE),this.buildViewUiProps=xw(qE),this.buildEventUiBySource=ww($E,Xw),this.buildEventUiBases=ww(GE),this.parseContextBusinessHours=xw(YE),this.buildTitle=ww(FE),this.nowManager=new zE,this.emitter=new sk,this.actionRunner=new LE(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause(),this.nowManager=new zE;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let a={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i=function(e,t,n){let r=e.initialDate;return null!=r?t.createMarker(r):n.getDateMarker()}(n.calendarOptions,n.dateEnv,this.nowManager),s=o.dateProfileGenerator.build(i);Ax(s.activeRange,i)||(i=s.currentRange.start);for(let e of n.pluginHooks.contextInit)e(a);let l=function(e,t,n){let r=t?t.activeRange:null;return gE({},function(e,t){let n=nk(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let e of r){let r=tk(e,t,n);r&&o.push(r)}return o}(e,n),r,n)}(n.calendarOptions,s,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:i,dateProfile:s,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},u=Object.assign(Object.assign({},a),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,u));ZE(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,o=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),a=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),i=function(e,t){return"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType),e}(n.currentViewType,e),s=this.computeCurrentViewData(i,a,t.optionOverrides,o);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);let l={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(u=s.dateProfileGenerator.build(c)),c=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(c,e),u=function(e,t,n,r){let o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(o=r.buildPrev(e,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o}return e}(u,e,c,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ax(u.currentRange,c)||(c=u.currentRange.start);let d=function(e,t,n,r){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return gE(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return a=e,i=t.sourceId,Yw(a,(e=>e.sourceId!==i));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?vE(e,o,r):e;case"FETCH_EVENT_SOURCES":return yE(e,t.sourceIds?Kw(t.sourceIds):wE(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let o=e[t];return o&&n===o.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})}):e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var a,i}(n.eventSources,e,u,l),f=function(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,a){if(t&&n===t.latestFetchId){let n=Ux(rk(o,t,a),t,a);return r&&(n=Ix(n,r,a)),Gx(ik(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"RESET_RAW_EVENTS":return function(e,t,n,r,o){const{defIdMap:a,instanceIdMap:i}=function(e){const{defs:t,instances:n}=e,r={},o={};for(let e in t){const n=t[e],{publicId:o}=n;o&&(r[o]=e)}for(let e in n){const r=t[n[e].defId],{publicId:a}=r;a&&(o[a]=e)}return{defIdMap:r,instanceIdMap:o}}(e);return Ix(Ux(rk(n,t,o),t,o,!1,a,i),r,o)}(e,n[t.sourceId],t.rawEvents,r.activeRange,o);case"ADD_EVENTS":return function(e,t,n,r){return n&&(t=Ix(t,n,r)),Gx(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Gx(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ix(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,o={},a={};for(let e in n)t.defs[e]||(o[e]=n[e]);for(let e in r)!t.instances[e]&&o[r[e].defId]&&(a[e]=r[e]);return{defs:o,instances:a}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return ik(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return qx(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}(n.eventStore,e,d,u,l),h=mE(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:p,selectionConfig:m}=this.buildViewUiProps(l),g=this.buildEventUiBySource(d),v={dynamicOptionOverrides:o,currentViewType:i,currentDate:c,dateProfile:u,eventSources:d,eventStore:f,renderableEventStore:h,selectionConfig:m,eventUiBases:this.buildEventUiBases(h.defs,p,g),businessHours:this.parseContextBusinessHours(l),dateSelection:kE(n.dateSelection,e),eventSelection:SE(n.eventSelection,e),eventDrag:EE(n.eventDrag,e),eventResize:CE(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of a.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=ZE(n,l),w=ZE(v,l);!b&&w?r.trigger("loading",!0):b&&!w&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,o.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),o),t),i=r.pluginHooks.optionChangeHandlers,s=n&&n.calendarOptions,l=r.calendarOptions;if(s&&s!==l){s.timeZone!==l.timeZone&&(t.eventSources=a.eventSources=function(e,t,n){let r=t?t.activeRange:null;return yE(e,wE(e,n),r,!0,n)}(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=ak(a.eventStore,n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=ak(a.renderableEventStore,n.dateEnv,a.dateEnv));for(let e in i)-1===this.optionsForHandling.indexOf(e)&&s[e]===l[e]||i[e](l[e],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:o,localeDefaults:a,availableLocaleData:i,extra:s}=this.processRawCalendarOptions(e,t);QE(s);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,o,i,r.defaultRangeSeparator),c=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),u=this.buildTheme(r,o),d=this.parseToolbars(r,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:o,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:a,availableRawLocales:i.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Uw([Lw,e,t]),o=this.organizeRawLocales(n),a=o.map,i=this.buildLocale(r||o.defaultCode,a).options,s=this.buildPluginHooks(e.plugins||[],PE),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pw),Fw),zw),s.listenerRefiners),s.optionRefiners),c={},u=Uw([Lw,i,e,t]),d={},f=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,p=!1;for(let e in u)-1===this.optionsForRefining.indexOf(e)&&(u[e]===f[e]||Hw[e]&&e in f&&Hw[e](f[e],u[e]))?d[e]=h[e]:l[e]?(d[e]=l[e](u[e]),p=!0):c[e]=f[e];return p&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:o,localeDefaults:i,extra:c}}_computeCurrentViewData(e,t,n,r){let o=t.viewSpecs[e];if(!o)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:i}=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r);return QE(i),this.nowManager.handleInput(t.dateEnv,a.now),{viewSpec:o,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,o){let a=Uw([Lw,e.optionDefaults,n,r,e.optionOverrides,o]),i=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pw),Fw),zw),Vw),t.listenerRefiners),t.optionRefiners),s={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,d={};for(let e in a)a[e]===l[e]||Hw[e]&&Hw[e](a[e],l[e])?s[e]=c[e]:(a[e]===this.currentCalendarOptionsInput[e]||Hw[e]&&Hw[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):i[e]?s[e]=i[e](a[e]):d[e]=a[e],u=!0);return u&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function WE(e,t,n,r,o,a,i,s){let l=aE(t||i.defaultCode,i.map);return new ax({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function BE(e,t){return new(t.themeClasses[e.themeSystem]||lE)(e)}function VE(e){return new(e.dateProfileGeneratorClass||Ox)(e)}function UE(e,t,n){return new _E(e,t,n)}function $E(e){return Qw(e,(e=>e.ui))}function GE(e,t,n){let r={"":t};for(let t in e){let o=e[t];o.sourceId&&n[o.sourceId]&&(r[t]=n[o.sourceId])}return r}function qE(e){let{options:t}=e;return{eventUiSingleBase:Kx({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Kx({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ZE(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function YE(e){return t=e.options.businessHours,n=e,Ux(function(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[],t=t.map((e=>Object.assign(Object.assign({},lk),e))),t}(t),null,n);var t,n}function QE(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class KE extends px{render(){return fy("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((e=>this.renderWidgetGroup(e))))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let a of e){let{buttonName:e,buttonClick:i,buttonText:s,buttonIcon:l,buttonHint:c}=a;if("title"===e)o=!1,r.push(fy("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,a=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,u=[`fc-${e}-button`,n.getClass("button")];o&&u.push(n.getClass("buttonActive")),r.push(fy("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:a,"aria-pressed":o,className:u.join(" "),onClick:i},s||(l?fy("span",{className:l,role:"img"}):"")))}}return r.length>1?fy("div",{className:o&&n.getClass("buttonGroup")||""},...r):r[0]}}class JE extends px{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,a=n.sectionWidgets,i=a.center;return a.left?(o=!0,e=a.left):e=a.start,a.right?(o=!0,t=a.right):t=a.end,fy("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",i||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return fy(KE,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class XE extends px{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,mx(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return n?null!==t.availableWidth?o=t.availableWidth/n:a=1/n*100+"%":o=e.height||"",fy("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class eC extends Fk{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,o=yk(t);if(o&&n.isValidSegDownEl(e.target)){let a=Nb(e.target,".fc-event-forced-url"),i=a?a.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new hk(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi}),i&&!e.defaultPrevented&&(window.location.href=i)}},this.destroy=Pb(e.el,"click",".fc-event",this.handleSegClick)}}class tC extends Fk{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{yk(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let o;return Pb(e,"mouseover",".fc-event",((e,t)=>{if(t!==o){o=t,n(e,t);let a=e=>{o=null,r(e,t),t.removeEventListener("mouseleave",a)};t.addEventListener("mouseleave",a)}}))}(e.el,0,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:o}=r,a=yk(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new hk(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:o.viewApi})}}class nC extends hx{constructor(){super(...arguments),this.buildViewContext=ww(fx),this.buildViewPropTransformers=ww(oC),this.buildToolbarProps=ww(rC),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:Ib()},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[eC,tC].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=r,zk[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete zk[e.uid]},this.resizeRunner=new Ab((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,o=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=r.height?o=!0:null!=r.contentHeight?a=r.contentHeight:e=Math.max(r.aspectRatio,.5);let i=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),s=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return fy(dx.Provider,{value:i},fy(Hk,{unit:"day"},(r=>{let i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,r,t.viewTitle);return fy(py,null,n.header&&fy(JE,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:s},i)),fy(XE,{liquid:o,height:a,aspectRatio:e,labeledById:s},this.renderView(t),this.buildAppendContent()),n.footer&&fy(JE,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))})))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return fy(py,{},...e.pluginHooks.viewContainerAppends.map((t=>t(e))))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of o)Object.assign(r,t.transform(r,e));return fy(n.component,Object.assign({},r))}}function rC(e,t,n,r,o,a){let i=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:i.isValid&&!Ax(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function oC(e){return e.map((e=>new e))}class aC extends Bk{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;sx((()=>{Py(fy(Lk,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,o)=>(this.setClassNames(t),this.setHeight(n),fy(wx.Provider,{value:this.customContentRenderId},fy(nC,Object.assign({isHeightAuto:r,forPrint:o},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,Py(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&Cb(e.getRootNode())}(e),this.el=e,this.renderRunner=new Ab(this.handleRenderRequest),new HE({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){sx((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!tw(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Ob(this.el,"height",e)}}class iC extends tS{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(e,t){let{props:n,context:r}=this,o=[],a=_S(r.options);return e&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),fy(Sx,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},fy(MS,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))}renderHScrollLayout(e,t,n,r){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:i}=this,s=!a.forPrint&&_S(i.options),l=!a.forPrint&&NS(i.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:s,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:AS}]}),fy(Sx,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},fy(o,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function sC(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function lC(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function cC(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}const uC=Iw({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function dC(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class fC extends px{render(){let{props:e}=this;return fy(OS,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:uC,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class hC extends px{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,o=Dk(r,n.eventTimeFormat||uC,t,!0,e.defaultDisplayEventEnd);return fy(RS,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Nk(e.seg,t),defaultGenerator:pC,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function pC(e){return fy(py,null,fy("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&fy("div",{className:"fc-event-time"},e.timeText),fy("div",{className:"fc-event-title"},e.event.title||fy(py,null," ")))}class mC extends px{constructor(){super(...arguments),this.compileSegs=ww(gC)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return fy(qS,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return fy(py,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return fy("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},dC(t)?fy(hC,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Tk(t,e.todayRange))):fy(fC,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Tk(t,e.todayRange))))})))}})}}function gC(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const vC=Iw({week:"narrow"});class yC extends tS{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:Ib()},this.handleRootEl=e=>{mx(this.rootElRef,e),mx(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:o,dateEnv:a}=e,{date:i,dateProfile:s}=t;const l=t.showDayNumber&&function(e,t,n){const{start:r,end:o}=t,a=aw(o,-1),i=n.getYear(r),s=n.getMonth(r),l=n.getYear(a),c=n.getMonth(a);return!(i===l&&s===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<o.valueOf())}(i,s.currentRange,a);return fy(LS,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:bC,date:i,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},((a,s)=>fy("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&fy(VS,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Kk(e,i,"week"),date:i,defaultFormat:vC}),!s.isDisabled&&(t.showDayNumber||FS(o)||t.forceDayTop)?fy("div",{className:"fc-daygrid-day-top"},fy(a,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Kk(e,i)),{id:n.dayNumberId})})):t.showDayNumber?fy("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},fy("a",{className:"fc-daygrid-day-number"}," ")):void 0,fy("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,fy("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},fy(mC,{allDayDate:i,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),fy("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function bC(e){return e.dayNumberText||fy(py,null," ")}function wC(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function xC(e){return wC(e)+":"+e.lastCol}function kC(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let o=e.eventRange,a=o.range,i=Tx(a,{start:r[t].date,end:ow(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:i},isStart:e.isStart&&i.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&i.end.valueOf()===a.end.valueOf()})}class SC extends rS{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[aS(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:r,forceHidden:o}=this,{touchingEntry:a,touchingLevel:i,touchingLateral:s}=e;if(this.hiddenConsumes&&a){const e=aS(a);if(!o[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},a),{span:iS(a.span,t.span)});o[aS(e)]=!0,r[i][s]=e,n.push(e),this.splitEntry(a,t,n)}else o[e]=!0,n.push(a)}super.handleInvalidInsertion(e,t,n)}}class EC extends tS{constructor(){super(...arguments),this.cellElRefs=new kS,this.frameElRefs=new kS,this.fgElRefs=new kS,this.segHarnessRefs=new kS,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=e.cells.length,a=lC(e.businessHourSegs,o),i=lC(e.bgEventSegs,o),s=lC(this.getHighlightSegs(),o),l=lC(this.getMirrorSegs(),o),{singleColPlacements:c,multiColPlacements:u,moreCnts:d,moreMarginTops:f}=function(e,t,n,r,o,a,i){let s=new SC((t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return o[n]||1}));s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=a,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t],r=xC(n);null!=o[r]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let u=s.addSegs(l),d=s.toRects(),{singleColPlacements:f,multiColPlacements:h,leftoverMargins:p}=function(e,t,n){let r=function(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}(e,n.length),o=[],a=[],i=[];for(let e=0;e<n.length;e+=1){let s=r[e],l=[],c=0,u=0;for(let r of s){let o=t[r.index];l.push({seg:kC(o,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let d=[];c=0,u=0;for(let r of s){let o=t[r.index],a=r.span.end-r.span.start>1,i=r.span.start===e;u+=r.levelCoord-c,c=r.levelCoord+r.thickness,a?(u+=r.thickness,i&&d.push({seg:kC(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):i&&(d.push({seg:kC(o,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:u}),u=0)}o.push(l),a.push(d),i.push(u)}return{singleColPlacements:o,multiColPlacements:a,leftoverMargins:i}}(d,e,i),m=[],g=[];for(let e of c){h[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)f[t].push({seg:kC(e,t,t+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<i.length;e+=1)m.push(0);for(let t of u){let n=e[t.index],r=t.span;h[r.start].push({seg:kC(n,r.start,r.end,i),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)m[e]+=1,f[e].push({seg:kC(n,e,e+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<i.length;e+=1)g.push(p[e]);return{singleColPlacements:f,multiColPlacements:h,moreCnts:m,moreMarginTops:g}}(xk(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return fy("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:u[n],e.todayRange,h),o=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}(l[n],u),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return fy(yC,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:d[n],moreMarginTop:f[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:fy(py,null,fy(py,null,r),fy(py,null,o)),bgContent:fy(py,null,this.renderFillSegs(s[n],"highlight"),this.renderFillSegs(a[n],"non-business"),this.renderFillSegs(i[n],"bg-event")),minHeight:e.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Xw(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,o,a,i){let{context:s}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,u=1===this.props.cells.length,d=o||a||i,f=[];if(c)for(let e of t){let{seg:t}=e,{instanceId:h}=t.eventRange.instance,p=e.isVisible&&!r[h],m=e.isAbsolute,g="",v="";m&&(s.isRtl?(v=0,g=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(g=0,v=c.rights[t.firstCol]-c.rights[t.lastCol])),f.push(fy("div",{className:"fc-daygrid-event-harness"+(m?" fc-daygrid-event-harness-abs":""),key:wC(t),ref:d?null:this.segHarnessRefs.createRef(xC(t)),style:{visibility:p?"":"hidden",marginTop:m?"":e.marginTop,top:m?e.absoluteTop:"",left:g,right:v}},dC(t)?fy(hC,Object.assign({seg:t,isDragging:o,isSelected:h===l,defaultDisplayEventEnd:u},Tk(t,n))):fy(fC,Object.assign({seg:t,isDragging:o,isResizing:a,isDateSelecting:i,isSelected:h===l,defaultDisplayEventEnd:u},Tk(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let i of e){let e=n?{right:0,left:o.lefts[i.lastCol]-o.lefts[i.firstCol]}:{left:0,right:o.rights[i.firstCol]-o.rights[i.lastCol]};a.push(fy("div",{key:_k(i.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?fy(HS,Object.assign({seg:i},Tk(i,r))):BS(t)))}return fy(py,{},...a)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>r.currentMap[e.key]));if(e.length){let t=this.rootElRef.current,r=new Xk(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(r)||this.setState({framePositions:new Xk(t,e,!0,!1)})}}const o=this.state.segHeights,a=this.querySegHeights(),i=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},o),a),maxContentHeight:i?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}EC.addStateEquality({segHeights:Xw});class CC extends tS{constructor(){super(...arguments),this.splitBusinessHourSegs=ww(sC),this.splitBgEventSegs=ww(sC),this.splitFgEventSegs=ww(sC),this.splitDateSelectionSegs=ww(sC),this.splitEventDrag=ww(cC),this.splitEventResize=ww(cC),this.rowRefs=new kS}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),o=this.splitBgEventSegs(e.bgEventSegs,n),a=this.splitFgEventSegs(e.fgEventSegs,n),i=this.splitDateSelectionSegs(e.dateSelectionSegs,n),s=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return fy(Hk,{unit:"day"},((t,u)=>fy(py,null,e.cells.map(((t,d)=>fy(EC,{ref:this.rowRefs.createRef(d),key:t.length?t[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[d],eventSelection:e.eventSelection,bgEventSegs:o[d].filter(DC),fgEventSegs:a[d],dateSelectionSegs:i[d],eventDrag:s[d],eventResize:l[d],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Xk(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new Xk(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,o=n.leftToIndex(e),a=r.topToIndex(t);if(null!=a&&null!=o){let e=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:ow(n,1)}}}function DC(e){return e.eventRange.def.allDay}class TC extends tS{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,o=!0===n||!0===t;o&&!r&&(o=!1,t=null,n=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return fy("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},fy("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,fy("tbody",{role:"presentation"},fy(CC,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=function(e,t){let n;var r;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${r=t.currentDate,r.toISOString().match(/^\d{4}-\d{2}/)[0]}-01"]`)),n||(n=e.querySelector(`[data-date="${yw(t.currentDate)}"]`)),n}(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}class AC extends yS{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class _C extends tS{constructor(){super(...arguments),this.slicer=new AC,this.tableRef={current:null}}render(){let{props:e,context:t}=this;return fy(TC,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}function NC(e,t){let n=new gS(e.renderRange,t);return new vS(n,/year|month|week/.test(e.currentRangeUnit))}Eb(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var MC=sE({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends iC{constructor(){super(...arguments),this.buildDayTableModel=ww(NC),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),o=e.dayHeaders&&fy(pS,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),a=t=>fy(_C,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(o,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(o,a)}},dateProfileGeneratorClass:class extends Ox{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:o}=this;return function(e){let t,{dateEnv:n,currentRange:r}=e,{start:o,end:a}=r;if(e.snapToWeek&&(o=n.startOfWeek(o),t=n.startOfWeek(a),t.valueOf()!==a.valueOf()&&(a=rw(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(ow(r.end,-1)));a=rw(a,6-Math.ceil(iw(e,a)/7))}return{start:o,end:a}}({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class RC extends px{constructor(){super(...arguments),this.state={textId:Ib()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:o,dayDate:a,todayRange:i}=this.props,{textId:s}=this.state,l=qk(a,i),c=n.listDayFormat?t.format(a,n.listDayFormat):"",u=n.listDaySideFormat?t.format(a,n.listDaySideFormat):"",d=Object.assign({date:t.toDate(a),view:r,textId:s,text:c,sideText:u,navLinkAttrs:Kk(this.context,a),sideNavLinkAttrs:Kk(this.context,a,"day",!1)},l);return fy(xx,{elTag:"tr",elClasses:["fc-list-day",...Zk(l,e)],elAttrs:{"data-date":yw(a)},renderProps:d,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:OC,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(t=>fy("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":s},fy(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]}))))}}function OC(e){return fy(py,null,e.text&&fy("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&fy("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const jC=Iw({hour:"numeric",minute:"2-digit",meridiem:"short"});class IC extends px{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:o,eventHeaderId:a,dateHeaderId:i}=e,s=n.eventTimeFormat||jC;return fy(RS,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(e,t){let n=Nk(e,t);return fy("a",Object.assign({},n),e.eventRange.def.title)}(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),((e,n)=>fy(py,null,function(e,t,n,r,o){let{options:a}=n;if(!1!==a.displayEventTime){let i,s=e.eventRange.def,l=e.eventRange.instance,c=!1;if(s.allDay?c=!0:function(e){let t=Mx(e);return iw(t.start,t.end)>1}(e.eventRange.range)?e.isStart?i=Dk(e,t,n,null,null,l.range.start,e.end):e.isEnd?i=Dk(e,t,n,null,null,e.start,l.range.end):c=!0:i=Dk(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return fy(xx,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${o}`},renderProps:e,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:PC,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return fy("td",{className:"fc-list-event-time"},i)}return null}(r,s,t,o,i),fy("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},fy("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),fy(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${i}`}}))))}}function PC(e){return e.text}function LC(e){return e.text}function FC(e){let t=lw(e.renderRange.start),n=e.renderRange.end,r=[],o=[];for(;t<n;)r.push(t),o.push({start:t,end:ow(t,1)}),t=ow(t,1);return{dayDates:r,dayRanges:o}}function zC(e){return!1===e?null:Iw(e)}Eb(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var HC=sE({name:"@fullcalendar/list",optionRefiners:{listDayFormat:zC,listDaySideFormat:zC,noEventsClassNames:Gw,noEventsContent:Gw,noEventsDidMount:Gw,noEventsWillUnmount:Gw},views:{list:{component:class extends tS{constructor(){super(...arguments),this.computeDateVars=ww(FC),this.eventStoreToSegs=ww(this._eventStoreToSegs),this.state={timeHeaderId:Ib(),eventHeaderId:Ib(),dateHeaderIdRoot:Ib()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),o=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return fy(Sx,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},fy(xS,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return fy(xx,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:LC,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(e=>fy(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]})))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:i}=this.state,s=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return fy(Hk,{unit:"day"},((e,l)=>{let c=[];for(let n=0;n<s.length;n+=1){let u=s[n];if(u){let s=yw(t[n]),d=i+"-"+s;c.push(fy(RC,{key:s,cellId:d,dayDate:t[n],todayRange:l})),u=xk(u,r.eventOrder);for(let t of u)c.push(fy(IC,Object.assign({key:s+":"+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:d},Tk(t,l,e))))}}return fy("table",{className:"fc-list-table "+n.getClass("table")},fy("thead",null,fy("tr",null,fy("th",{scope:"col",id:o},r.timeHint),fy("th",{scope:"col","aria-hidden":!0}),fy("th",{scope:"col",id:a},r.eventHint))),fy("tbody",null,c))}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(gk(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,o,{dateEnv:a}=this.context,{nextDayThreshold:i}=this.context.options,s=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if(r=Tx(s,t[n]),r&&(o={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===s.end.valueOf(),dayIndex:n},c.push(o),!o.isEnd&&!l&&n+1<t.length&&s.end<a.add(t[n+1].start,i))){o.end=s.end,o.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});function WC(e,t,n){return Sc.fromObject({year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]},{locale:n,zone:t})}function BC(e){let t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){let e=BC(t[2]);return{head:t[1],middle:e,tail:t[3],whole:t[1]+e.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function VC(e,t,n,r){if(e.middle){let o=t(e.head),a=VC(e.middle,t,n,r),i=t(e.tail),s=n(e.head),l=VC(e.middle,t,n,r),c=n(e.tail);if(o===s&&i===c)return o+(a===l?a:a+r+l)+i}let o=t(e.whole),a=n(e.whole);return o===a?o:o+r+a}var UC=sE({name:"@fullcalendar/luxon3",cmdFormatter:function(e,t){let n=BC(e);if(t.end){let e=WC(t.start.array,t.timeZone,t.localeCodes[0]),r=WC(t.end.array,t.timeZone,t.localeCodes[0]);return VC(n,e.toFormat.bind(e),r.toFormat.bind(r),t.defaultSeparator)}return WC(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(n.whole)},namedTimeZonedImpl:class extends nS{offsetForArray(e){return WC(e,this.timeZoneName).offset}timestampToArray(e){return[(t=Sc.fromMillis(e,{zone:this.timeZoneName})).year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond];var t}}});const $C=parseInt(String(a.version).split(".")[0])<18;class GC extends a.Component{constructor(){super(...arguments),this.elRef=(0,a.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame((()=>{this.doResize()})))}}render(){const e=[];for(const t of this.state.customRenderingMap.values())e.push(a.createElement(qC,{key:t.id,customRendering:t}));return a.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new eE;let t;this.handleCustomRendering=e.handle.bind(e),this.calendar=new aC(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",(()=>{(0,g.flushSync)((()=>{}))})),e.subscribe((e=>{const n=Date.now(),r=!t;($C||r||this.isUpdating||this.isUnmounting||n-t<100?ZC:g.flushSync)((()=>{this.setState({customRenderingMap:e},(()=>{t=n,r?this.doResize():this.requestResize()}))}))}))}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}GC.act=ZC;class qC extends a.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,g.createPortal)(n,e.containerEl)}}function ZC(e){e()}class YC extends $k{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?"background"===(t=e).ui.display||"inverse-background"===t.ui.display?["timed","allDay"]:["allDay"]:["timed"];var t}}const QC=Iw({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function KC(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return fy(dx.Consumer,null,(n=>{if(!e.isLabeled)return fy("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:o,viewApi:a}=n,i=null==o.slotLabelFormat?QC:Array.isArray(o.slotLabelFormat)?Iw(o.slotLabelFormat[0]):Iw(o.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,i)};return fy(xx,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:JC,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(e=>fy("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},fy(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function JC(e){return e.text}class XC extends px{render(){return this.props.slatMetas.map((e=>fy("tr",{key:e.key},fy(KC,Object.assign({},e)))))}}const eD=Iw({week:"short"});class tD extends tS{constructor(){super(...arguments),this.allDaySplitter=new YC,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,o=r.renderRange,a=1===iw(o.start,o.end)?Kk(this.context,o.start,"week"):{};return n.weekNumbers&&"day"===e?fy(VS,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:eD},(e=>fy("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},fy(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a})))):fy("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},fy("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return fy(xx,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:nD,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(t=>fy("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},fy(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:o}=this,a=[],i=_S(r.options);return e&&a.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:fy("tr",{role:"presentation",className:"fc-scrollgrid-section"},fy("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),fy(Sx,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},fy(MS,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,t,n,r,o,a,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{context:l,props:c}=this,u=!c.forPrint&&_S(l.options),d=!c.forPrint&&NS(l.options),f=[];e&&f.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>fy("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>fy("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:fy("tr",{role:"presentation",className:"fc-scrollgrid-section"},fy("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let h=l.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(l.options.expandRows),chunks:[{key:"axis",content:e=>fy("div",{className:"fc-timegrid-axis-chunk"},fy("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,fy("tbody",null,fy(XC,{slatMetas:a}))),fy("div",{className:"fc-timegrid-now-indicator-container"},fy(Hk,{unit:h?"minute":"day"},(e=>{let t=h&&i&&i.safeComputeTop(e);return"number"==typeof t?fy(IS,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),d&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:AS},{key:"cols",content:AS}]}),fy(Sx,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},fy(s,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return!0!==e&&!0!==t||(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function nD(e){return e.text}class rD{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(Ax(t.currentRange,e)){let n=lw(e),r=e.valueOf()-n.valueOf();if(r>=Jb(t.slotMinTime)&&r<Jb(t.slotMaxTime))return this.computeTimeTop(Zb(r))}return null}computeDateTop(e,t){return t||(t=lw(e)),this.computeTimeTop(Zb(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:o}=this,a=r.els.length,i=(e.milliseconds-Jb(o.slotMinTime))/Jb(this.slotDuration);return i=Math.max(0,i),i=Math.min(a,i),t=Math.floor(i),t=Math.min(t,a-1),n=i-t,r.tops[t]+r.getHeight(t)*n}}class oD extends px{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return fy("tbody",null,e.slatMetas.map(((o,a)=>{let i={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi};return fy("tr",{key:o.key,ref:r.createRef(o.key)},e.axis&&fy(KC,Object.assign({},o)),fy(xx,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:i,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}class aD extends px{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new kS}render(){let{props:e,context:t}=this;return fy("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},fy("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,fy(oD,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;var n;t.onCoords&&null!==t.clientWidth&&this.rootElRef.current.offsetHeight&&t.onCoords(new rD(new Xk(this.rootElRef.current,(n=this.slatElRefs.currentMap,t.slatMetas.map((e=>n[e.key]))),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function iD(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function sD(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}class lD extends px{render(){let{props:e}=this;return fy(qS,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>yD(e.hiddenSegs,e),defaultGenerator:cD,forceTimed:!0},(e=>fy(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function cD(e){return e.shortText}function uD(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:o}=e,a=r,i=[];for(;a<o;)i.push(t(n,a)),a+=1;return i.sort(dD),[i.map(fD),i[0][1]]}function dD(e,t){return t[1]-e[1]}function fD(e){return e[0]}function hD(e,t){const n={};return(...r)=>{let o=e(...r);return o in n?n[o]:n[o]=t(...r)}}function pD(e,t,n=null,r=0){let o=[];if(n)for(let a=0;a<e.length;a+=1){let i=e[a],s=n.computeDateTop(i.start,t),l=Math.max(s+(r||0),n.computeDateTop(i.end,t));o.push({start:Math.round(s),end:Math.round(l)})}return o}const mD=Iw({hour:"numeric",minute:"2-digit",meridiem:!1});class gD extends px{render(){return fy(OS,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:mD}))}}class vD extends px{constructor(){super(...arguments),this.sortEventSegs=ww(xk)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,o=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},i=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return fy(LS,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},(t=>fy("div",{className:"fc-timegrid-col-frame"},fy("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),fy("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,a,!1,!1,!1)),fy("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),fy("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),FS(n)&&fy(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(e,t,n,r,o,a){let{props:i}=this;return i.forPrint?yD(e,i):this.renderPositionedFgSegs(e,t,n,r,o,a)}renderPositionedFgSegs(e,t,n,r,o,a){let{eventMaxStack:i,eventShortHeight:s,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:u,slatCoords:d,eventSelection:f,todayRange:h,nowDate:p}=this.props,m=n||r||o,g=pD(e,u,d,c),{segPlacements:v,hiddenGroups:y}=function(e,t,n,r){let o=[],a=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?o.push({index:n,thickness:1,span:r}):a.push(e[n])}let{segRects:i,hiddenGroups:s}=function(e,t,n){let r=new rS;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);let o=function(e){let t=[];for(let o of e){let e=[],a={span:o.span,entries:[o]};for(let o of t)iS(o.span,a.span)?a={entries:o.entries.concat(a.entries),span:(n=o.span,r=a.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(o);e.push(a),t=e}var n,r;return t}(r.addSegs(e)),a=function(e){const{entriesByLevel:t}=e,n=hD(((e,t)=>e+":"+t),((r,o)=>{let a=function(e,t,n){let{levelCoords:r,entriesByLevel:o}=e,a=o[t][n],i=r[t]+a.thickness,s=r.length,l=t;for(;l<s&&r[l]<i;l+=1);for(;l<s;l+=1){let e,t=o[l],n=lS(t,a.span.start,oS),r=n[0]+n[1],i=r;for(;(e=t[i])&&e.span.start<a.span.end;)i+=1;if(r<i)return{level:l,lateralStart:r,lateralEnd:i}}return null}(e,r,o),i=uD(a,n),s=t[r][o];return[Object.assign(Object.assign({},s),{nextLevelNodes:i[0]}),s.thickness+i[1]]}));return uD(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);return a=function(e){const t=hD(((e,t,n)=>aS(e)),((e,n,r)=>{let o,{nextLevelNodes:a,thickness:i}=e,s=i+r,l=i/s,c=[];if(a.length)for(let e of a)if(void 0===o){let r=t(e,n,s);o=r[0],c.push(r[1])}else{let n=t(e,o,0);c.push(n[1])}else o=1;let u=(o-n)*l;return[o-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:c})]}));return e.map((e=>t(e,0,0)[1]))}(a),{segRects:function(e){let t=[];const n=hD(((e,t,n)=>aS(e)),((e,n,o)=>{let a=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:o,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,o+1)+1}));function r(e,t,r){let o=0;for(let a of e)o=Math.max(n(a,t,r),o);return o}return r(e,0,0),t}(a),hiddenGroups:o}}(o,n,r),l=[];for(let t of i)l.push({seg:e[t.index],rect:t});for(let e of a)l.push({seg:e,rect:null});return{segPlacements:l,hiddenGroups:s}}(e,g,l,i);return fy(py,null,this.renderHiddenGroups(y,e),v.map((e=>{let{seg:i,rect:l}=e,c=i.eventRange.instance.instanceId,u=m||Boolean(!t[c]&&l),d=bD(l&&l.span),g=!m&&l?this.computeSegHStyle(l):{left:0,right:0},v=Boolean(l)&&l.stackForward>0,y=Boolean(l)&&l.span.end-l.span.start<s;return fy("div",{className:"fc-timegrid-event-harness"+(v?" fc-timegrid-event-harness-inset":""),key:a||c,style:Object.assign(Object.assign({visibility:u?"":"hidden"},d),g)},fy(gD,Object.assign({seg:i,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:c===f,isShort:y},Tk(i,h,p))))})))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:i,eventDrag:s,eventResize:l}=this.props;return fy(py,null,e.map((e=>{let c=bD(e.span),u=(d=e.entries,f=t,d.map((e=>f[e.index])));var d,f;return fy(lD,{key:vw(QS(u)),hiddenSegs:u,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:r,todayRange:o,nowDate:a,eventSelection:i,eventDrag:s,eventResize:l})})))}renderFillSegs(e,t){let{props:n,context:r}=this,o=pD(e,n.date,n.slatCoords,r.options.eventMinHeight).map(((r,o)=>{let a=e[o];return fy("div",{key:_k(a.eventRange),className:"fc-timegrid-bg-harness",style:bD(r)},"bg-event"===t?fy(HS,Object.assign({seg:a},Tk(a,n.todayRange,n.nowDate))):BS(t))}));return fy(py,null,o)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map(((e,r)=>fy(IS,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n}))):null}computeSegHStyle(e){let t,n,{isRtl:r,options:o}=this.context,a=o.slotEventOverlap,i=e.levelCoord,s=e.levelCoord+e.thickness;a&&(s=Math.min(1,i+2*(s-i))),r?(t=1-s,n=i):(t=i,n=1-s);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return a&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function yD(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:o,eventResize:a}){let i=(o?o.affectedInstances:null)||(a?a.affectedInstances:null)||{};return fy(py,null,e.map((e=>{let o=e.eventRange.instance.instanceId;return fy("div",{key:o,style:{visibility:i[o]?"hidden":""}},fy(gD,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},Tk(e,t,n))))})))}function bD(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class wD extends px{constructor(){super(...arguments),this.splitFgEventSegs=ww(iD),this.splitBgEventSegs=ww(iD),this.splitBusinessHourSegs=ww(iD),this.splitNowIndicatorSegs=ww(iD),this.splitDateSelectionSegs=ww(iD),this.splitEventDrag=ww(sD),this.splitEventResize=ww(sD),this.rootElRef={current:null},this.cellElRefs=new kS}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,o=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r);return fy("div",{className:"fc-timegrid-cols",ref:this.rootElRef},fy("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,fy("tbody",{role:"presentation"},fy("tr",{role:"row"},e.axis&&fy("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},fy("div",{className:"fc-timegrid-col-frame"},fy("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&fy(IS,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map(((t,n)=>fy(vD,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:o[n],bgEventSegs:a[n],businessHourSegs:i[n],nowIndicatorSegs:s[n],dateSelectionSegs:l[n],eventDrag:c[n],eventResize:u[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;var t;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new Xk(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map((e=>t[e.key]))),!0,!1))}}class xD extends tS{constructor(){super(...arguments),this.processSlotOptions=ww(kD),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return fy("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},fy(aD,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),fy(wD,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:i}=this.state,{snapDuration:s,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=o.leftToIndex(e),u=i.positions.topToIndex(t);if(null!=c&&null!=u){let e=this.props.cells[c],r=i.positions.tops[u],d=i.positions.getHeight(u),f=(t-r)/d,h=u*l+Math.floor(f*l),p=this.props.cells[c].date,m=Qb(a.slotMinTime,function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}(s,h)),g=n.add(p,m),v=n.add(g,s);return{dateProfile:a,dateSpan:Object.assign({range:{start:g,end:v},allDay:!1},e.extraDateSpan),dayEl:o.els[c],rect:{left:o.lefts[c],right:o.rights[c],top:r,bottom:r+d},layer:0}}return null}}function kD(e,t){let n=t||e,r=Xb(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class SD extends yS{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let o=Tx(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n}}class ED extends tS{constructor(){super(...arguments),this.buildDayRanges=ww(CD),this.slicer=new SD,this.timeColsRef={current:null}}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:o,nextDayThreshold:a}=t.options,i=this.buildDayRanges(r,n,t.dateEnv);return fy(Hk,{unit:o?"minute":"day"},((s,l)=>fy(xD,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,i),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:s,nowIndicatorSegs:o&&this.slicer.sliceNowDate(s,n,a,t,i),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))))}}function CD(e,t,n){let r=[];for(let o of e.headerDates)r.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)});return r}const DD=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function TD(e,t,n,r,o){let a=new Date(0),i=e,s=Zb(0),l=n||function(e){let t,n,r;for(t=DD.length-1;t>=0;t-=1)if(n=Zb(DD[t]),r=Xb(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;Jb(i)<Jb(t);){let e=o.add(a,i),t=null!==Xb(s,l);c.push({date:e,time:i,key:e.toISOString(),isoTimeStr:(u=e,Bb(u.getUTCHours(),2)+":"+Bb(u.getUTCMinutes(),2)+":"+Bb(u.getUTCSeconds(),2)),isLabeled:t}),i=Qb(i,r),s=Qb(s,r)}var u;return c}function AD(e,t){let n=new gS(e.renderRange,t);return new vS(n,!1)}Eb('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var _D=sE({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends tD{constructor(){super(...arguments),this.buildTimeColsModel=ww(AD),this.buildSlatMetas=ww(TD)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:o}=r,a=this.buildTimeColsModel(o,n),i=this.allDaySplitter.splitProps(r),s=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:l}=e,c=!l,u=l,d=e.dayHeaders&&fy(pS,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),f=!1!==e.allDaySlot&&(t=>fy(_C,Object.assign({},i.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),h=t=>fy(ED,Object.assign({},i.timed,{dayTableModel:a,dateProfile:o,axis:c,slotDuration:e.slotDuration,slatMetas:s,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(d,f,h,a.colCnt,l,s,this.state.slatCoords):this.renderSimpleLayout(d,f,h)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});const ND={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},MD=(("undefined"!=typeof window&&window.eventkoi_params?window.eventkoi_params.locale:"en")||"").split("_")[0]||"en",RD=iy.some((e=>e.code===MD));let OD=RD?MD:"en";try{new Intl.DateTimeFormat(OD)}catch{OD="en"}function jD({calendarRef:e,events:t,view:n,timezone:r,setCurrentDate:o,lastRangeRef:a,loadEventsForView:i,selectedEvent:s,setSelectedEvent:l,anchorPos:c,setAnchorPos:u,ignoreNextOutsideClick:f,calendar:h,isEmpty:p,eventColor:m,timeFormat:g,startday:v,initialDate:y}){const b=/^en/i.test(OD),w=r&&"local"!==r?r:null,x=(e,t)=>{const n=w?{...t,timeZone:w}:t;try{return new Intl.DateTimeFormat(OD,n).format(e)}catch{return new Intl.DateTimeFormat(OD,t).format(e)}},k="24"===g?{hour:"2-digit",minute:"2-digit",hour12:!1}:{hour:"numeric",minute:"2-digit",hour12:!0,...b&&{omitZeroMinute:!0,meridiem:"short"}};return p?(0,d.jsx)("div",{className:"w-full",children:(0,d.jsx)("div",{className:"grid grid-cols-7 gap-2",children:Array.from({length:35}).map(((e,t)=>(0,d.jsx)(pp,{className:"h-24 w-full rounded-md"},t)))})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(GC,{ref:e,locales:iy,locale:OD,plugins:[MC,_D,HC,UC],events:t,initialView:n,initialDate:y,weekends:!0,timeZone:r,firstDay:ND[v||h?.startday||"sunday"],eventColor:m,headerToolbar:!1,contentHeight:"auto",expandRows:!0,height:"auto",eventTimeFormat:k,dayHeaderContent:e=>{const{date:t,view:n}=e,r=x(t,{weekday:"short"});if(n.type.startsWith("timeGrid")){const e=x(t,{day:"numeric"});return(0,d.jsxs)("div",{className:"flex flex-col items-center leading-tight",children:[(0,d.jsx)("span",{children:r}),(0,d.jsx)("span",{className:"font-semibold text-base",children:e})]})}return(0,d.jsx)("span",{children:r})},datesSet:({start:e,end:t,view:n})=>{const r=`${e.toISOString()}_${t.toISOString()}`;a.current!==r&&(a.current=r,i(e,t),o(n.currentStart))},eventDidMount:e=>{e.el.setAttribute("tabindex","0"),e.el.setAttribute("role","button"),e.el.setAttribute("aria-label",`${e.event.title}, starts ${e.event.start.toLocaleString()}`),e.el.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.el.click())}))},eventClick:e=>{e.jsEvent.preventDefault(),e.jsEvent.stopPropagation();const t={...e.event.extendedProps,title:e.event.title,start:e.event.startStr,end:e.event.endStr,allDay:e.event.allDay,url:e.event.url},n=e.el.getBoundingClientRect(),r=document.querySelector(".fc").getBoundingClientRect(),o=n.bottom-r.top+6;let a;a=n.right-r.left+370>r.width?n.right-r.left-370:n.left-r.left,window.innerWidth<768?u({x:0,y:o}):u({x:Math.max(0,a),y:o}),l(t)}}),s&&c&&(0,d.jsx)(Gv,{event:s,anchor:c,onClose:()=>{l(null),u(null)},ignoreNextOutsideClick:f,timezone:r})]})}var ID=a.forwardRef(((e,t)=>{const{ratio:n=1,style:r,...o}=e;return(0,d.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:100/n+"%"},"data-radix-aspect-ratio-wrapper":"",children:(0,d.jsx)(x.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})}));ID.displayName="AspectRatio";const PD=ID,LD=sa("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),FD=sa("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);function zD({events:e,showImage:t,showDescription:n,showLocation:r,borderSize:o,borderStyle:a,timeFormat:i,loading:s}){if(null===e||s)return(0,d.jsx)("div",{role:"status","aria-live":"polite","aria-busy":"true",className:"eventkoi-no-events py-8",children:"Loading events…"});if(0===e.length)return(0,d.jsx)("div",{role:"status","aria-live":"polite",className:"eventkoi-no-events py-8",children:eventkoi_params.no_events});const l=new URLSearchParams(window.location.search).get("tz");return(0,d.jsx)("ul",{className:"grid list-none m-0 p-0",role:"list",children:e.map((e=>{var s;const c=Ac(l||e?.timezone||window.eventkoi_params?.timezone_string||"UTC"),u=null!==(s=e.locations?.[0])&&void 0!==s?s:{},f="virtual"===u.type||"online"===u.type,h="inperson"===u.type||"physical"===u.type,p=e.location_line,m=f&&u.virtual_url,g=h&&u.address1;return(0,d.jsxs)("li",{className:"flex gap-8 py-8 border-border min-w-0",style:{borderBottomWidth:o,borderBottomStyle:a},children:["yes"===t&&(0,d.jsx)("div",{className:Su("ek-image min-w-[140px]",!e.thumbnail&&"hidden md:flex"),children:(0,d.jsx)(PD,{ratio:1.5,children:e.thumbnail?(0,d.jsx)("div",{className:"h-full w-full flex items-center justify-center relative",children:(0,d.jsx)("a",{href:e.url,className:"h-full w-full rounded-xl block","aria-hidden":"true",tabIndex:-1,children:(0,d.jsx)("img",{src:e.thumbnail,className:"h-full w-full rounded-xl",alt:"","aria-hidden":"true"})})}):(0,d.jsxs)("div",{className:"h-full w-full rounded-xl border border-input flex items-center justify-center relative bg-border",children:[(0,d.jsx)(FD,{className:"w-6 h-6 text-muted-foreground/40","aria-hidden":"true"}),(0,d.jsx)("span",{className:"sr-only",children:"No event image"})]})})}),(0,d.jsxs)("div",{className:"ek-meta flex flex-col gap-2 grow min-w-0",children:[(0,d.jsx)("div",{className:"flex md:hidden text-muted-foreground",role:"group","aria-hidden":"true","aria-label":`Event time: ${Cc(e,c,i)}`,children:Cc(e,c,i)}),(0,d.jsx)("h3",{className:"m-0",children:(0,d.jsxs)("a",{href:e.url,className:"no-underline",children:[e.title,(0,d.jsx)("span",{className:"sr-only",children:" — View event details"})]})}),"yes"===n&&e.description&&(0,d.jsx)("p",{className:"text-base text-muted-foreground line-clamp-2 m-0",children:e.description}),(()=>{if(!r)return null;if(m){const e=u.link_text||u.virtual_url;return(0,d.jsxs)("a",{href:u.virtual_url,className:"flex gap-2 text-muted-foreground/90 text-sm underline underline-offset-4 truncate",title:e,target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(LD,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"}),e]})}if(g)return(0,d.jsxs)("span",{className:"flex text-muted-foreground/90 text-sm gap-2",children:[(0,d.jsx)(Fv,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"}),e.location_line]});if(p){const t="virtual"===e.type?(0,d.jsx)(LD,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"}):(0,d.jsx)(Fv,{className:"w-4 h-4 min-w-4 text-muted-foreground/90"});return(0,d.jsxs)("span",{className:"flex text-muted-foreground/90 text-sm gap-2",children:[t,p]})}return null})()]}),(0,d.jsx)("div",{className:"hidden md:block ml-auto text-[14px] text-muted-foreground min-w-[200px] text-right",role:"group","aria-label":`Event time: ${Cc(e,c,i)}`,children:Cc(e,c,i)})]},`event-${e.id}`)}))})}function HD({events:e,timezone:t,setTimezone:n,timeFormat:r,setTimeFormat:o,showImage:a,showDescription:i,showLocation:s,borderStyle:l,borderSize:c,loading:u}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"flex justify-end pt-4 text-sm text-foreground",children:(0,d.jsx)(xv,{timezone:t,setTimezone:n,timeFormat:r,setTimeFormat:o})}),(0,d.jsx)(zD,{events:e,showImage:a,showDescription:i,showLocation:s,borderStyle:l,borderSize:c,timeFormat:r,loading:u})]})}const WD=window.wp.apiFetch;var BD=o.n(WD);function VD({id:e,calendars:t,display:n,timeframe:r,context:o,defaultMonth:i,defaultYear:s,calendarRef:l}){const[c,u]=(0,a.useState)({}),[d,f]=(0,a.useState)([]),[h,p]=(0,a.useState)(null),[m,g]=(0,a.useState)(),[v,y]=(0,a.useState)(null),[b,w]=(0,a.useState)(null),[x,k]=(0,a.useState)(!1),S=(0,a.useRef)(null),E=(0,a.useRef)(!1),C=t||e,D=async()=>{try{const e=new URLSearchParams({id:C,display:n}),t=await BD()({path:`${eventkoi_params.api}/calendar_events?${e.toString()}`,method:"get"});p(t.events),console.log("EK: loaded all events for search")}catch(e){console.error("Failed to load all events",e)}};return(0,a.useEffect)((()=>{(async()=>{try{const e=await BD()({path:`${eventkoi_params.api}/calendar_events?id=${C}&display=${n}&initial=true`,method:"get"});u(e.calendar);const t="week"===r||"week"===e.calendar.timeframe?"timeGridWeek":"dayGridMonth";g(t);const a=function({context:e,defaultMonth:t,defaultYear:n,calendar:r}){const o=Sc.utc(),a=(e,t)=>{const n=parseInt(e,10);return Number.isFinite(n)?n:t},i=e=>({january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12}[e?.toLowerCase()]||null);if("block"===e){const e=i(t),r=n&&""!==n?a(n,o.year):o.year;return e?Sc.utc(r,e,1).toISODate():r!==o.year?Sc.utc(r,o.month,1).toISODate():Sc.utc(o.year,o.month,1).toISODate()}const s=i(r?.default_month),l=r?.default_year&&""!==r.default_year?a(r.default_year,o.year):o.year;return s?Sc.utc(l,s,1).toISODate():r?.default_year&&l!==o.year?Sc.utc(l,o.month,1).toISODate():Sc.utc(o.year,o.month,1).toISODate()}({context:o,defaultMonth:i,defaultYear:s,calendar:e.calendar});y(a),w(a),console.log(a),console.log("EK: initial load for calendar view")}catch(e){console.error("Failed to load initial calendar",e)}})(),"list"===n&&D()}),[]),{calendar:c,events:d,allEvents:h,view:m,setView:g,currentDate:v,setCurrentDate:y,initialDate:b,loading:x,loadEventsForView:async(e,t)=>{try{k(!0);const r=new URLSearchParams({id:C,display:n});e&&r.set("start",e.toISOString()),t&&r.set("end",t.toISOString());const o=await BD()({path:`${eventkoi_params.api}/calendar_events?${r.toString()}`,method:"get"});f(o.events),u(o.calendar),console.log("EK: loaded events for view"),E.current||(E.current=!0,D())}catch(e){console.error("Failed to load events for view",e)}finally{k(!1)}},lastRangeRef:S}}function UD(e){const{display:t,id:n,calendars:r,showImage:o,showDescription:i,showLocation:s,borderStyle:l,borderSize:c,startday:u}=e,f=(0,a.useRef)(null),{calendar:h,events:p,allEvents:m,view:g,setView:v,currentDate:y,setCurrentDate:b,initialDate:w,loadEventsForView:x,lastRangeRef:k}=VD({...e,calendarRef:f}),{selectedEvent:S,setSelectedEvent:E,anchorPos:C,setAnchorPos:D,ignoreNextOutsideClick:T}=function(){const[e,t]=(0,a.useState)(null),[n,r]=(0,a.useState)(null),o=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{function e(e){if(o.current)return void(o.current=!1);const n=e.target.closest("[data-event-popover]"),a=e.target.closest("[data-radix-popper-content-wrapper]"),i="true"===document.body.getAttribute("data-calendar-menu-open"),s="true"===document.body.getAttribute("data-share-modal-open");n||a||i||s||(t(null),r(null))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]),{selectedEvent:e,setSelectedEvent:t,anchorPos:n,setAnchorPos:r,ignoreNextOutsideClick:o}}(),[A,_]=(0,a.useState)(""),[N,M]=(0,a.useState)(Ac(eventkoi_params?.timezone_override||eventkoi_params?.timezone||"UTC")),[R,O]=(0,a.useState)("24"===eventkoi_params?.time_format?"24":"12"),j=!h||Array.isArray(h)&&0===h.length||!Array.isArray(h)&&0===Object.keys(h).length;return"list"===t?(0,d.jsx)(HD,{events:m,timezone:N,setTimezone:M,timeFormat:R,setTimeFormat:O,showImage:o,showDescription:i,showLocation:s,borderStyle:l,borderSize:c}):(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(Xg,{calendar:h,calendarApi:f.current?.getApi(),currentDate:y,setCurrentDate:b,view:g,setView:v,events:m,timezone:N,timeFormat:R,search:A,setSearch:_}),(0,d.jsx)("div",{className:"flex justify-start md:justify-end py-4 text-sm text-foreground",children:j?(0,d.jsx)(pp,{className:"h-5 w-40 rounded-md"}):(0,d.jsx)(xv,{timezone:N,setTimezone:M,timeFormat:R,setTimeFormat:O})}),(0,d.jsx)(jD,{calendarRef:f,events:p,view:g,timezone:N,setCurrentDate:b,lastRangeRef:k,loadEventsForView:x,selectedEvent:S,setSelectedEvent:E,anchorPos:C,setAnchorPos:D,ignoreNextOutsideClick:T,calendar:h,isEmpty:j,eventColor:e.color||h?.color,timeFormat:R,startday:u,initialDate:w})]})}document.querySelectorAll('[id^="eventkoi-calendar-"]').forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(UD,{id:e.getAttribute("data-calendar-id"),calendars:e.getAttribute("data-calendars"),display:e.getAttribute("data-display"),startday:e.getAttribute("data-startday"),timeframe:e.getAttribute("data-timeframe"),color:e.getAttribute("data-color"),showImage:e.getAttribute("data-show-image"),showLocation:e.getAttribute("data-show-location"),showDescription:e.getAttribute("data-show-description"),borderStyle:e.getAttribute("data-border-style"),borderSize:e.getAttribute("data-border-size"),context:e.getAttribute("data-context"),defaultMonth:e.getAttribute("data-default-month"),defaultYear:e.getAttribute("data-default-year")}))}));var $D=o(17);function GD(){return GD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GD.apply(null,arguments)}function qD(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ZD(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}const YD="NOT_LOADED",QD="LOADED",KD="AUTH_FAILURE";class JD{static async load(e,t){var n;const r=e.libraries?e.libraries.split(","):[],o=this.serializeParams(e);this.listeners.push(t),null!=(n=window.google)&&null!=(n=n.maps)&&n.importLibrary?(this.serializedApiParams||(this.loadingStatus=QD),this.notifyLoadingStatusListeners()):(this.serializedApiParams=o,this.initImportLibrary(e)),this.serializedApiParams&&this.serializedApiParams!==o&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const a=["maps",...r];await Promise.all(a.map((e=>google.maps.importLibrary(e))))}static serializeParams(e){return[e.v,e.key,e.language,e.region,e.authReferrerPolicy,e.solutionChannel].join("/")}static initImportLibrary(e){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary)return void console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");let t=null;const n=()=>t||(t=new Promise(((t,n)=>{var r;const o=document.createElement("script"),a=new URLSearchParams;for(const[t,n]of Object.entries(e)){const e=t.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase()));a.set(e,String(n))}a.set("loading","async"),a.set("callback","__googleMapsCallback__"),o.async=!0,o.src="https://maps.googleapis.com/maps/api/js?"+a.toString(),o.nonce=(null==(r=document.querySelector("script[nonce]"))?void 0:r.nonce)||"",o.onerror=()=>{this.loadingStatus="FAILED",this.notifyLoadingStatusListeners(),n(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=QD,this.notifyLoadingStatusListeners(),t()},window.gm_authFailure=()=>{this.loadingStatus=KD,this.notifyLoadingStatusListeners()},this.loadingStatus="LOADING",this.notifyLoadingStatusListeners(),document.head.append(o)})),t);google.maps.importLibrary=e=>n().then((()=>google.maps.importLibrary(e)))}static notifyLoadingStatusListeners(){for(const e of this.listeners)e(this.loadingStatus)}}JD.loadingStatus=YD,JD.serializedApiParams=void 0,JD.listeners=[];const XD=["onLoad","onError","apiKey","version","libraries"],eT=["children"],tT=a.createContext(null),nT=e=>{const{children:t}=e,n=qD(e,eT),{mapInstances:r,addMapInstance:o,removeMapInstance:i,clearMapInstances:s}=function(){const[e,t]=(0,a.useState)({});return{mapInstances:e,addMapInstance:(e,n="default")=>{t((t=>GD({},t,{[n]:e})))},removeMapInstance:(e="default")=>{t((t=>qD(t,[e].map(ZD))))},clearMapInstances:()=>{t({})}}}(),{status:l,loadedLibraries:c,importLibrary:u}=function(e){const{onLoad:t,onError:n,apiKey:r,version:o,libraries:i=[]}=e,s=qD(e,XD),[l,c]=(0,a.useState)(JD.loadingStatus),[u,d]=(0,a.useReducer)(((e,t)=>e[t.name]?e:GD({},e,{[t.name]:t.value})),{}),f=(0,a.useMemo)((()=>null==i?void 0:i.join(",")),[i]),h=(0,a.useMemo)((()=>JSON.stringify(GD({apiKey:r,version:o},s))),[r,o,s]),p=(0,a.useCallback)((async e=>{var t;if(u[e])return u[e];if(null==(t=google)||null==(t=t.maps)||!t.importLibrary)throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const n=await window.google.maps.importLibrary(e);return d({name:e,value:n}),n}),[u]);return(0,a.useEffect)((()=>{(async()=>{try{const e=GD({key:r},s);o&&(e.v=o),(null==f?void 0:f.length)>0&&(e.libraries=f),(void 0===e.channel||e.channel<0||e.channel>999)&&delete e.channel,void 0===e.solutionChannel?e.solutionChannel="GMP_visgl_rgmlibrary_v1_default":""===e.solutionChannel&&delete e.solutionChannel,await JD.load(e,(e=>c(e)));for(const e of["core","maps",...i])await p(e);t&&t()}catch(e){n?n(e):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",e)}})()}),[r,f,h]),{status:l,loadedLibraries:u,importLibrary:p}}(n),d=(0,a.useMemo)((()=>({mapInstances:r,addMapInstance:o,removeMapInstance:i,clearMapInstances:s,status:l,loadedLibraries:c,importLibrary:u})),[r,o,i,s,l,c,u]);return a.createElement(tT.Provider,{value:d},t)};function rT(e,t,n){const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(aT.includes(e)){const e=r,n=t.getCenter(),o=t.getZoom(),a=t.getHeading()||0,i=t.getTilt()||0,s=t.getBounds();return n&&s&&Number.isFinite(o)||console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),e.detail={center:(null==n?void 0:n.toJSON())||{lat:0,lng:0},zoom:o||0,heading:a,tilt:i,bounds:(null==s?void 0:s.toJSON())||{north:90,east:180,south:-90,west:-180}},e}if(iT.includes(e)){var o;if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const e=r;return e.domEvent=n.domEvent,e.stoppable=!0,e.stop=()=>n.stop(),e.detail={latLng:(null==(o=n.latLng)?void 0:o.toJSON())||null,placeId:n.placeId},e}return r}const oT={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},aT=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],iT=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],sT=Object.keys(oT);const lT=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function cT(){var e;return(null==(e=(0,a.useContext)(tT))?void 0:e.status)||YD}function uT(e){return function(e){return!(!e||"object"!=typeof e)&&"lat"in e&&"lng"in e&&Number.isFinite(e.lat)&&Number.isFinite(e.lng)}(e)?e:e.toJSON()}const dT=()=>a.createElement("div",{style:{position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"}},a.createElement("h2",null,"Error: AuthFailure"),a.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",a.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."));function fT(){return cT()===QD}const hT=["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"],pT=["padding"];class mT{static has(e){return this.entries[e]&&this.entries[e].length>0}static pop(e){return this.entries[e]&&this.entries[e].pop()||null}static push(e,t){this.entries[e]||(this.entries[e]=[]),this.entries[e].push(t)}}function gT(e,t){const n=fT(),[r,o]=(0,a.useState)(null),[i,s]=function(){const[e,t]=(0,a.useState)(null);return[e,(0,a.useCallback)((e=>t(e)),[t])]}(),l=function(e){const t=function(){const[,e]=(0,a.useReducer)((e=>e+1),0);return e}(),n=(0,a.useRef)({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return(0,a.useEffect)((()=>{if(!e)return;const r=google.maps.event.addListener(e,"bounds_changed",(()=>{!function(e,t){const n=e.getCenter(),r=e.getZoom(),o=e.getHeading()||0,a=e.getTilt()||0,i=e.getBounds();n&&i&&Number.isFinite(r)||console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(null==n?void 0:n.toJSON())||{lat:0,lng:0},zoom:r||0,heading:o,tilt:a})}(e,n),t()}));return()=>r.remove()}),[e,t]),n}(r),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:h,defaultTilt:p,reuseMaps:m,renderingType:g,colorScheme:v}=e,y=qD(e,hT),b=void 0!==e.zoom||void 0!==e.defaultZoom,w=void 0!==e.center||void 0!==e.defaultCenter;u||b&&w||console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!y.center&&d&&(y.center=d),!y.zoom&&Number.isFinite(f)&&(y.zoom=f),!y.heading&&Number.isFinite(h)&&(y.heading=h),!y.tilt&&Number.isFinite(p)&&(y.tilt=p);for(const e of Object.keys(y))void 0===y[e]&&delete y[e];const x=(0,a.useRef)(void 0);return(0,a.useEffect)((()=>{if(!i||!n)return;const{addMapInstance:r,removeMapInstance:a}=t,{mapId:s}=e,d=`${s||"default"}:${g||"default"}:${v||"LIGHT"}`;let f,h;if(m&&mT.has(d)?(h=mT.pop(d),f=h.getDiv(),i.appendChild(f),h.setOptions(y),setTimeout((()=>h.setCenter(h.getCenter())),0)):(f=document.createElement("div"),f.style.height="100%",i.appendChild(f),h=new google.maps.Map(f,GD({},y,g?{renderingType:g}:{},v?{colorScheme:v}:{}))),o(h),r(h,c),u){const{padding:e}=u,t=qD(u,pT);h.fitBounds(t,e)}else b&&w||h.fitBounds({east:180,west:-180,south:-90,north:90});if(x.current){const{mapId:e,cameraState:t}=x.current;e!==s&&h.setOptions(t)}return()=>{x.current={mapId:s,cameraState:l.current},f.remove(),m?mT.push(d,h):google.maps.event.clearInstanceListeners(h),o(null),a(c)}}),[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[r,s,l]}mT.entries={};const vT=a.createContext(null),yT=e=>{const{children:t,id:n,className:r,style:o}=e,i=(0,a.useContext)(tT),s=cT();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=gT(e,i);!function(e,t,n){const r=n.center?uT(n.center):null;let o=null,i=null;r&&Number.isFinite(r.lat)&&Number.isFinite(r.lng)&&(o=r.lat,i=r.lng);const s=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,c=Number.isFinite(n.tilt)?n.tilt:null;(0,a.useLayoutEffect)((()=>{if(!e)return;const n={};let r=!1;null===o||null===i||t.current.center.lat===o&&t.current.center.lng===i||(n.center={lat:o,lng:i},r=!0),null!==s&&t.current.zoom!==s&&(n.zoom=s,r=!0),null!==l&&t.current.heading!==l&&(n.heading=l,r=!0),null!==c&&t.current.tilt!==c&&(n.tilt=c,r=!0),r&&e.moveCamera(n)}))}(l,u,e),function(e,t){for(const n of sT){const r=t[n],o=oT[n];(0,a.useEffect)((()=>{if(!e)return;if(!r)return;const t=google.maps.event.addListener(e,o,(t=>{r(rT(o,e,t))}));return()=>t.remove()}),[e,o,r])}}(l,e),function(e,t){const n={},r=Object.keys(t);for(const e of r)lT.has(e)&&(n[e]=t[e]);!function(e,t){const n=(0,a.useRef)(void 0);n.current&&$D(t,n.current)||(n.current=t),(0,a.useEffect)(e,n.current)}((()=>{e&&e.setOptions(n)}),[n])}(l,e);const d=function(e,t){const{viewport:n,viewState:r}=t,o=!!n;return(0,a.useLayoutEffect)((()=>{if(!e||!r)return;const{latitude:t,longitude:n,bearing:o,pitch:a,zoom:i}=r;e.moveCamera({center:{lat:t,lng:n},heading:o,tilt:a,zoom:i+1})}),[e,r]),o}(l,e),f=!!e.controlled;(0,a.useEffect)((()=>{if(l)return d&&l.setOptions({disableDefaultUI:!0}),(d||f)&&l.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{l.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}}),[l,d,f,e.gestureHandling,e.keyboardShortcuts]);const h=e.center?uT(e.center):null;let p=null,m=null;h&&Number.isFinite(h.lat)&&Number.isFinite(h.lng)&&(p=h.lat,m=h.lng);const g=(0,a.useMemo)((()=>{var t,n,r,o,a;return{center:{lat:null!=(t=p)?t:0,lng:null!=(n=m)?n:0},zoom:null!=(r=e.zoom)?r:0,heading:null!=(o=e.heading)?o:0,tilt:null!=(a=e.tilt)?a:0}}),[p,m,e.zoom,e.heading,e.tilt]);(0,a.useLayoutEffect)((()=>{if(!l||!f)return;l.moveCamera(g);const e=l.addListener("bounds_changed",(()=>{l.moveCamera(g)}));return()=>e.remove()}),[l,f,g]);const v=(0,a.useMemo)((()=>GD({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},o)),[o,d]),y=(0,a.useMemo)((()=>({map:l})),[l]);return s===KD?a.createElement("div",{style:GD({position:"relative"},r?{}:v),className:r},a.createElement(dT,null)):a.createElement("div",GD({ref:c,"data-testid":"map",style:r?void 0:v,className:r},n?{id:n}:{}),l?a.createElement(vT.Provider,{value:y},t):null)};yT.deckGLViewProps=!0;const bT=new Set;const wT=(e=null)=>{const t=(0,a.useContext)(tT),{map:n}=(0,a.useContext)(vT)||{};if(null===t)return function(...e){const t=JSON.stringify(e);bT.has(t)||(bT.add(t),console.error(...e))}("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:r}=t;return null!==e?r[e]||null:n||r.default||null};function xT(e,t,n){(0,a.useEffect)((()=>{if(!e||!t||!n)return;const r=google.maps.event.addListener(e,t,n);return()=>r.remove()}),[e,t,n])}function kT(e,t,n){(0,a.useEffect)((()=>{e&&(e[t]=n)}),[e,t,n])}function ST(e,t,n){(0,a.useEffect)((()=>{if(e&&t&&n)return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}),[e,t,n])}const ET=a.createContext(null),CT={TOP_LEFT:["0%","0%"],TOP_CENTER:["50%","0%"],TOP:["50%","0%"],TOP_RIGHT:["100%","0%"],LEFT_CENTER:["0%","50%"],LEFT_TOP:["0%","0%"],LEFT:["0%","50%"],LEFT_BOTTOM:["0%","100%"],RIGHT_TOP:["100%","0%"],RIGHT:["100%","50%"],RIGHT_CENTER:["100%","50%"],RIGHT_BOTTOM:["100%","100%"],BOTTOM_LEFT:["0%","100%"],BOTTOM_CENTER:["50%","100%"],BOTTOM:["50%","100%"],BOTTOM_RIGHT:["100%","100%"],CENTER:["50%","50%"]},DT=({children:e,styles:t,className:n,anchorPoint:r})=>{const[o,i]=null!=r?r:CT.BOTTOM;let s=`-${o}`,l=`-${i}`;o.trimStart().startsWith("-")&&(s=o.substring(1)),i.trimStart().startsWith("-")&&(l=i.substring(1));const c=`translate(50%, 100%) translate(${s}, ${l})`;return a.createElement("div",{style:{transform:c}},a.createElement("div",{className:n,style:t},e))};function TT(e){const[t,n]=(0,a.useState)(null),[r,o]=(0,a.useState)(null),i=wT(),s=function(e){const t=fT(),n=(0,a.useContext)(tT);return(0,a.useEffect)((()=>{t&&n&&n.importLibrary(e)}),[t,n,e]),(null==n?void 0:n.loadedLibraries[e])||null}("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:h,onDragStart:p,onDragEnd:m,collisionBehavior:g,clickable:v,draggable:y,position:b,title:w,zIndex:x}=e,k=a.Children.count(l);return(0,a.useEffect)((()=>{if(!i||!s)return;const e=new s.AdvancedMarkerElement;e.map=i,n(e);let t=null;return k>0&&(t=document.createElement("div"),t.isCustomMarker=!0,e.content=t,o(t)),()=>{var r;e.map=null,null==(r=t)||r.remove(),n(null),o(null)}}),[i,s,k]),(0,a.useEffect)((()=>{!t||!t.content||k>0||(t.content.className=u||"")}),[t,u,k]),kT(t,"position",b),kT(t,"title",null!=w?w:""),kT(t,"zIndex",x),kT(t,"collisionBehavior",g),(0,a.useEffect)((()=>{t&&(t.gmpDraggable=void 0!==y?y:!!(h||p||m))}),[t,y,h,m,p]),(0,a.useEffect)((()=>{if(!t)return;const e=void 0!==v||Boolean(c)||Boolean(d)||Boolean(f);t.gmpClickable=e,e&&null!=t&&t.content&&t.content.nodeType===Node.ELEMENT_NODE&&(t.content.style.pointerEvents="none",t.content.firstElementChild&&(t.content.firstElementChild.style.pointerEvents="all"))}),[t,v,c,d,f]),xT(t,"click",c),xT(t,"drag",h),xT(t,"dragstart",p),xT(t,"dragend",m),ST(null==t?void 0:t.element,"mouseenter",d),ST(null==t?void 0:t.element,"mouseleave",f),[t,r]}(0,a.forwardRef)(((e,t)=>{const{children:n,style:r,className:o,anchorPoint:i}=e,[s,l]=TT(e),c=(0,a.useMemo)((()=>s?{marker:s}:null),[s]);return(0,a.useImperativeHandle)(t,(()=>s),[s]),l?a.createElement(ET.Provider,{value:c},(0,g.createPortal)(a.createElement(DT,{anchorPoint:i,styles:r,className:o},n),l)):null})),new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"]);const AT=["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"],_T=(0,a.forwardRef)(((e,t)=>{const n=function(e){const[t,n]=(0,a.useState)(null),r=wT(),{onClick:o,onDrag:i,onDragStart:s,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=qD(e,AT),{position:f,draggable:h}=d;return(0,a.useEffect)((()=>{if(!r)return void(void 0===r&&console.error("<Marker> has to be inside a Map component."));const e=new google.maps.Marker(d);return e.setMap(r),n(e),()=>{e.setMap(null),n(null)}}),[r]),(0,a.useEffect)((()=>{if(!t)return;const e=t,n=google.maps.event;return o&&n.addListener(e,"click",o),i&&n.addListener(e,"drag",i),s&&n.addListener(e,"dragstart",s),l&&n.addListener(e,"dragend",l),c&&n.addListener(e,"mouseover",c),u&&n.addListener(e,"mouseout",u),t.setDraggable(Boolean(h)),()=>{n.clearInstanceListeners(e)}}),[t,h,o,i,s,l,c,u]),(0,a.useEffect)((()=>{t&&d&&t.setOptions(d)}),[t,d]),(0,a.useEffect)((()=>{!h&&f&&t&&t.setPosition(f)}),[h,f,t]),t}(e);return(0,a.useImperativeHandle)(t,(()=>n),[n]),a.createElement(a.Fragment,null)}));function NT({container:e}){const{event:t,gmap:n}=eventkoi_params,r=(t.locations||[]).filter((e=>"physical"===e.type&&e.embed_gmap));if("virtual"===t?.type||0===r.length)return e.classList.add("hidden"),null;const o=r.length>1,a=n?.connected,i=e=>(0,d.jsx)("iframe",{src:e.gmap_link,loading:"lazy",allowFullScreen:!0,referrerPolicy:"no-referrer-when-downgrade",className:"w-full h-full border-0 absolute top-0 left-0"});return(0,d.jsx)(d.Fragment,{children:a?(0,d.jsx)(nT,{apiKey:n.api_key,children:(0,d.jsx)("div",{className:"flex flex-col gap-[30px]",children:r.map(((e,t)=>(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,d.jsx)("div",{className:"text-sm font-medium text-muted-foreground",children:e.name}),(0,d.jsx)("div",{className:"relative w-full h-[300px] rounded-lg overflow-hidden border border-gray-200",children:(0,d.jsx)(yT,{defaultCenter:{lat:Number(e.latitude),lng:Number(e.longitude)},defaultZoom:16,gestureHandling:"greedy",disableDefaultUI:!0,style:{width:"100%",height:"100%"},children:(0,d.jsx)(_T,{position:{lat:Number(e.latitude),lng:Number(e.longitude)},onClick:()=>{const t=[e.name,e.address1,e.city,e.state,e.country,e.zip].filter(Boolean).join(", ");window.open(`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`,"_blank")}})})})]},e.id||t)))})}):(0,d.jsx)("div",{className:"flex flex-col gap-[30px]",children:r.map(((e,t)=>e.gmap_link?(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,d.jsx)("div",{className:"text-sm font-medium text-muted-foreground",children:e.name}),(0,d.jsx)("div",{className:"relative w-full h-[300px] rounded-lg overflow-hidden border border-gray-200",children:i(e)})]},e.id||t):null))})})}function MT({base:e,html:t}){const{event:n}=eventkoi_params,[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!1);return e.style.padding=0,e.style.border=0,(0,a.useEffect)((()=>{"#event-share"===window.location.hash&&s(!0)}),[]),(0,a.useEffect)((()=>{i||"#event-share"!==window.location.hash||history.replaceState(null,"",window.location.pathname+window.location.search)}),[i]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:t},onClick:()=>s(!0)}),(0,d.jsx)(Dh,{open:i,onOpenChange:s,children:(0,d.jsxs)(_h,{className:"w-full max-w-[685px] p-0",onOpenAutoFocus:e=>e.preventDefault(),children:[(0,d.jsxs)(Nh,{className:"flex items-center justify-center p-4 border-0 border-solid border-b-2 border-input",children:[(0,d.jsx)(Mh,{className:"font-sans text-xl m-0 text-foreground",children:"Share this event"}),(0,d.jsx)(Rh,{className:"hidden"})]}),(0,d.jsxs)("div",{className:"flex flex-col pt-[30px] pb-[60px] px-[60px]",children:[(0,d.jsxs)("div",{className:"flex gap-4 items-center flex-wrap justify-center pb-[60px]",children:[(0,d.jsx)(kv,{event:n,name:"whatsapp",title:"Whatsapp",icon:(0,d.jsx)(jv,{})}),(0,d.jsx)(kv,{event:n,name:"instagram",title:"Instagram",icon:(0,d.jsx)(Rv,{})}),(0,d.jsx)(kv,{event:n,name:"email",title:"Email",icon:(0,d.jsx)(Nv,{})}),(0,d.jsx)(kv,{event:n,name:"facebook",title:"Facebook",icon:(0,d.jsx)(Mv,{})}),(0,d.jsx)(kv,{event:n,name:"x",title:"X",icon:(0,d.jsx)(Iv,{})}),(0,d.jsx)(kv,{event:n,name:"linkedin",title:"Linkedin",icon:(0,d.jsx)(Ov,{})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 pb-[10px]",children:[(0,d.jsx)(Av,{className:"text-base",children:"Event link"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(Hh,{id:"link",defaultValue:n?.url,readOnly:!0,className:"min-h-[66px] border border-input border-solid border-primary/30 box-border text-lg text-foreground"}),(0,d.jsxs)(Pu,{variant:"secondary",type:"submit",className:"absolute h-12 right-[9px] top-[9px] border-none cursor-pointer hover:bg-input",onClick:()=>{o(!0),navigator.clipboard.writeText(n?.url),setTimeout((()=>{o(!1)}),1200)},children:[r?(0,d.jsx)(Hv,{className:"mr-2 h-5 w-5"}):(0,d.jsx)(Wv,{className:"mr-2 h-5 w-5"}),r?"Copied!":"Copy"]})]})]})]})]})})]})}document.querySelectorAll(".eventkoi-gmap").forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(NT,{container:e}))}));const RT=document.querySelectorAll("a[href='#event-share']");function OT({fill:e="#fb4409",width:t="16.918",height:n="21.89"}){return(0,d.jsx)(_v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 16.918 21.89",children:(0,d.jsxs)("g",{transform:"translate(0 -13.696)",children:[(0,d.jsx)("g",{transform:"translate(0 13.696)",children:(0,d.jsx)(_v.Path,{d:"M6.19-72.725A3.818,3.818,0,0,0,4.837-75.38a3.359,3.359,0,0,0-2.484-.876A1.885,1.885,0,0,0,.611-74.9a1.612,1.612,0,0,0-.092,1.06,6.23,6.23,0,0,0,.518,1.178,8.55,8.55,0,0,1,.4.832,4.387,4.387,0,0,1,.224.775,7.582,7.582,0,0,0,.984,2.5,4.542,4.542,0,0,0,1.52,1.613,1.022,1.022,0,0,0,1.363-.107q.563-.391.693-2.332A18.33,18.33,0,0,0,6.19-72.725Zm-.09,7.2q-1.034,0-1.242,2.7a18.162,18.162,0,0,0,.413,5.442q.622,2.739,1.677,2.878,2.3.313,2.729-2.422a10.636,10.636,0,0,0-.736-5.668Q7.773-65.521,6.1-65.521Zm2.05-1.52a.88.88,0,0,0,.941.487,2.49,2.49,0,0,0,1.12-.657q.583-.539,1.389-1.4.481-.627.9-1.091a5.462,5.462,0,0,1,.805-.754,4.378,4.378,0,0,0,2.051-2.931,2.483,2.483,0,0,0-.917-2.533,2.674,2.674,0,0,0-2.914-.028A5.715,5.715,0,0,0,9.343-73.55,12.509,12.509,0,0,0,7.9-69.78,3.422,3.422,0,0,0,8.149-67.041Z",transform:"translate(-0.467 76.356)",fill:e})}),(0,d.jsx)("g",{transform:"translate(7.301 20.061)",children:(0,d.jsx)(_v.Path,{d:"M34.564-32.511a2.816,2.816,0,0,0-.269,1.24,1.461,1.461,0,0,0,.269.913c.535.852.818,1.139,1.1,1.59a15.006,15.006,0,0,0,3.8,4.125q2.223,1.635,3.58.774a1.555,1.555,0,0,0,.865-1.448,3.235,3.235,0,0,0-.619-1.622A17.131,17.131,0,0,0,41.85-28.67l-.332-.386a20.805,20.805,0,0,0-2.5-2.265,10.6,10.6,0,0,0-2.8-1.656Q34.936-33.447,34.564-32.511Z",transform:"translate(-34.295 33.134)",fill:e})})]})})}Array.from(RT).forEach((e=>{(0,Au.H)(e).render((0,d.jsx)(MT,{base:e,html:e.outerHTML}))}));const jT=sa("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),IT=sa("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),PT=sa("CircleDotDashed",[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);var LT=o(848);const FT=({steps:e})=>(0,d.jsxs)("div",{className:"eventkoi-onboarding-widget fixed bottom-8 right-8 z-50 w-[250px] rounded-lg border border-solid border-border bg-white shadow-xl p-4",style:{boxSizing:"border-box",fontFamily:"Inter, system-ui, sans-serif"},children:[(0,d.jsxs)("button",{type:"button",className:"absolute bg-[#161616] cursor-pointer hover:bg-black text-[#FBFBFB] -top-[71px] left-0 w-full h-[50px] rounded-lg border-none shadow-md flex items-center justify-center text-[14px] font-semibold gap-2 transition",style:{boxSizing:"border-box",fontWeight:600},"data-eventkoi-continue":!0,children:[(0,d.jsx)(jT,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Continue Guide"})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(OT,{width:"18",height:"23"}),(0,d.jsx)("div",{className:"text-[14px] font-semibold text-black",children:(0,d.jsx)("span",{className:"block",children:"EventKoi Plugin Tour"})}),(0,d.jsx)("button",{type:"button",className:"ml-auto text-[#555] hover:text-black transition-colors leading-none -mt-1","aria-label":"Close",style:{background:"transparent",border:"none",fontSize:"20px",cursor:"pointer"},children:"×"})]}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("div",{className:"h-[1px] w-full bg-border"}),(0,d.jsx)("div",{className:"h-1"}),e.map((e=>{const t=e.complete?"#137C63":"#161616",n="view"!==e.key||e.complete?"white":"#e6e6e6",r="view"!==e.key||e.complete?"500":"600";return(0,d.jsx)("button",{type:"button",className:"w-full h-9 rounded-lg cursor-default border px-3 py-3 text-left transition text-[14px] font-medium border-none flex items-center focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 "+(e.complete?"line-through":""),style:{color:t,background:n,fontWeight:r},children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[e.complete?(0,d.jsx)(IT,{className:"h-4 w-4",style:{color:"#137C63"}}):(0,d.jsx)(PT,{className:"h-4 w-4",style:{color:t}}),(0,d.jsx)("span",{className:"text-[14px] font-medium",style:{color:t},children:e.title})]})},e.key)})),(0,d.jsx)("div",{className:"h-[1px] w-full bg-border"})]}),(0,d.jsx)("div",{className:"text-[12px] text-[#555] font-sans",children:"You can restart this Tour any time in the EventKoi Dashboard."})]})]});if("undefined"!=typeof window){const e=()=>(()=>{if(!(()=>{if("undefined"==typeof window)return!1;const e=new URLSearchParams(window.location.search).get("onboarding"),t=Boolean(window.eventkoi_params?.is_admin);return"demo-event"===e&&t})())return;if(document.querySelector(".eventkoi-onboarding-widget"))return;const e=window.eventkoi_params?.event?.id||new URLSearchParams(window.location.search).get("demo_event_id"),t=Number(window.eventkoi_params?.demo_event_id)>0?Number(window.eventkoi_params.demo_event_id):null,n=document.querySelector(".eventkoi-front[data-event]"),r=n?Number(n.getAttribute("data-event")):null,o=e||t;if(!o||r!==Number(o))return;const a=(0,LT.qV)((0,d.jsx)(FT,{steps:[{key:"event",title:"Publish demo event",complete:!0},{key:"view",title:"View default calendar",complete:!1}]})),i=document.createElement("div");i.innerHTML=a;const s=i.firstElementChild;if(!s)return;const l=s.querySelector("button[aria-label='Close']");l&&l.addEventListener("click",(()=>s.remove()));const c=s.querySelector("[data-eventkoi-continue]");c&&c.addEventListener("click",(()=>{const t=window.eventkoi_params?.demo_event_id&&Number(window.eventkoi_params.demo_event_id)>0?window.eventkoi_params.demo_event_id:null,n=e||t;if(!n)return;const r=`${window.eventkoi_params?.admin_page||"/wp-admin/admin.php?page=eventkoi"}#/events/${n}/main?onboarding=demo-event&hint=4`;window.location.href=r})),document.body.appendChild(s)})();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}const zT=()=>(0,d.jsxs)("div",{className:"eventkoi-onboarding-widget fixed bottom-8 right-8 z-50 w-[250px] rounded-lg shadow-md",style:{boxSizing:"border-box",fontFamily:"Inter, system-ui, sans-serif"},children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 bg-[#EDFBF8] p-4 rounded-t-lg",children:[(0,d.jsx)("span",{className:"text-[18px]","aria-hidden":"true",children:"🥳"}),(0,d.jsx)("div",{className:"text-[14px] font-semibold text-[#0D5342] leading-tight",children:(0,d.jsx)("span",{className:"block",children:"EventKoi Plugin Tour Completed!"})}),(0,d.jsx)("button",{type:"button",className:"ml-auto p-0 text-[#555] hover:text-black transition-colors leading-none -mt-1","aria-label":"Close",style:{background:"transparent",border:"none",fontSize:"24px",cursor:"pointer"},children:"×"})]}),(0,d.jsxs)("div",{className:"p-4 border border-solid border-border bg-white rounded-b-lg flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"text-[14px] text-[#161616] font-medium text-center w-full",children:"What you can do next:"}),(0,d.jsx)(Pu,{asChild:!0,className:"w-full h-10 text-[12px] rounded-sm font-medium text-[#FBFBFB] bg-[#161616] hover:bg-black","data-eventkoi-dashboard":!0,style:{boxSizing:"border-box"},children:(0,d.jsx)("a",{className:"no-underline",href:`${window.eventkoi_params?.admin_page||"/wp-admin/admin.php?page=eventkoi"}#/dashboard`,children:"Go to EventKoi Dashboard"})}),(0,d.jsx)(Pu,{asChild:!0,variant:"outline",className:"w-full rounded-sm border border-solid border-[#161616] py-2 h-10 text-[12px] font-medium hover:bg-white text-[#161616] whitespace-normal",style:{boxSizing:"border-box"},children:(0,d.jsx)("a",{className:"no-underline text-[#161616] text-center",href:"https://eventkoi.com/docs/knowledge-base/how-to-customise-the-default-events-template/",target:"_blank",rel:"noopener noreferrer",children:"Learn how to customize an Event Template"})})]}),(0,d.jsx)("div",{className:"h-[1px] w-full bg-border"}),(0,d.jsx)("p",{className:"text-[12px] text-[#555] m-0 font-sans",children:"You can restart this Tour any time in the EventKoi Dashboard."})]})]});if("undefined"!=typeof window){const e=()=>(()=>{if(!(()=>{if("undefined"==typeof window)return!1;const e=new URLSearchParams(window.location.search).get("onboarding"),t=Boolean(window.eventkoi_params?.is_admin);return"demo-event"===e&&t})())return;if(document.querySelector(".eventkoi-onboarding-widget"))return;const e=Number(window.eventkoi_params?.default_cal_id)>0?Number(window.eventkoi_params.default_cal_id):null,t=document.querySelector('.eventkoi-front [id^="eventkoi-calendar-"][data-calendar-id]'),n=t?Number(t.getAttribute("data-calendar-id")):null;if(!e||n!==e)return;const r=(0,LT.qV)((0,d.jsx)(zT,{})),o=document.createElement("div");o.innerHTML=r;const a=o.firstElementChild;if(!a)return;const i=a.querySelector("button[aria-label='Close']");i&&i.addEventListener("click",(()=>a.remove())),document.body.appendChild(a)})();"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}})(); -
eventkoi-lite/trunk/scripts/frontend/src/components/calendar/CalendarGridMode.js
r3381596 r3430556 61 61 // Determine whether locale uses AM/PM 62 62 const usesMeridiem = /^en/i.test(localeToUse); 63 const calendarTimeZone = timezone && timezone !== "local" ? timezone : null; 64 const formatInCalendarTz = (date, options) => { 65 const opts = calendarTimeZone 66 ? { ...options, timeZone: calendarTimeZone } 67 : options; 68 69 try { 70 return new Intl.DateTimeFormat(localeToUse, opts).format(date); 71 } catch { 72 return new Intl.DateTimeFormat(localeToUse, options).format(date); 73 } 74 }; 63 75 64 76 const eventTimeFormat = … … 112 124 dayHeaderContent={(args) => { 113 125 const { date, view } = args; 114 const dayName = date.toLocaleDateString(localeToUse, { 115 weekday: "short", 116 }); 126 const dayName = formatInCalendarTz(date, { weekday: "short" }); 117 127 118 128 // For week/day views → two lines: weekday + bold number 119 129 if (view.type.startsWith("timeGrid")) { 120 const dayNum = date.getDate();130 const dayNum = formatInCalendarTz(date, { day: "numeric" }); 121 131 return ( 122 132 <div className="flex flex-col items-center leading-tight">
Note: See TracChangeset
for help on using the changeset viewer.