iking-web-ui-pro 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcessDetail/ik.index.es.js +21 -15
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +38 -34
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +45 -40
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +10320 -10322
- package/dist/IkCollapseCard/ik.index.es.js +53 -48
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +21 -15
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +21 -15
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkEmpty/ik.index.es.js +7 -7
- package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +69 -64
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +12 -9334
- package/dist/IkIconPicker/ik.index.es.js +189 -177
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +67 -62
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +132 -127
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +21 -15
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +55 -51
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +390 -9681
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +83 -82
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +70 -65
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +68 -67
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +63 -58
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +76 -72
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +188 -188
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +106 -101
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +23272 -23459
- package/dist/index.umd.js +110 -110
- package/dist/src/components/IkFullCalendar/index.d.ts +1 -63
- package/dist/src/components/IkFullCalendar/src/IkFullCalendar.vue.d.ts +2 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +12 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -0
- package/dist/src/components/IkSchedule/index.d.ts +12 -12
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +8 -0
- package/package.json +1 -1
- package/dist/Demo/ik.index.umd.js +0 -1
- package/dist/IkApprovalProcess/ik.index.umd.js +0 -1
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +0 -226
- package/dist/IkAutoCard/ik.index.umd.js +0 -1
- package/dist/IkBaseDialog/ik.index.umd.js +0 -1
- package/dist/IkBottomOperate/ik.index.umd.js +0 -1
- package/dist/IkBtnContent/ik.index.umd.js +0 -1
- package/dist/IkBtnSetting/ik.index.umd.js +0 -1
- package/dist/IkCalendar/ik.index.umd.js +0 -1
- package/dist/IkCollapseCard/ik.index.umd.js +0 -1
- package/dist/IkCurrencyInput/ik.index.umd.js +0 -1
- package/dist/IkDescription/ik.index.umd.js +0 -226
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +0 -226
- package/dist/IkDragList/ik.index.umd.js +0 -1
- package/dist/IkEmpty/ik.index.umd.js +0 -1
- package/dist/IkExpandCollapse/ik.index.umd.js +0 -1
- package/dist/IkFileIcon/ik.index.umd.js +0 -1
- package/dist/IkFullCalendar/ik.index.umd.js +0 -1
- package/dist/IkFullCalendar/iking-web-ui-pro.css +0 -1
- package/dist/IkHorizontalStepBar/ik.index.umd.js +0 -1
- package/dist/IkIconPicker/ik.index.umd.js +0 -1
- package/dist/IkImageEditor/ik.index.umd.js +0 -1
- package/dist/IkImageUploadEditor/ik.index.umd.js +0 -37
- package/dist/IkImageViewer/ik.index.umd.js +0 -1
- package/dist/IkMonacoEditor/ik.index.umd.js +0 -11
- package/dist/IkOnlyOffice/ik.index.umd.js +0 -1
- package/dist/IkPage/ik.index.umd.js +0 -1
- package/dist/IkPageFull/ik.index.umd.js +0 -17
- package/dist/IkPageTabs/ik.index.umd.js +0 -1
- package/dist/IkPickerUser/ik.index.umd.js +0 -1
- package/dist/IkPlayer/ik.index.umd.js +0 -226
- package/dist/IkPreviewFile/ik.index.umd.js +0 -226
- package/dist/IkPreviewFileDialog/ik.index.umd.js +0 -226
- package/dist/IkPrintConfig/ik.index.umd.js +0 -1
- package/dist/IkPrintView/ik.index.umd.js +0 -1
- package/dist/IkRadioGroup/ik.index.umd.js +0 -1
- package/dist/IkSchedule/ik.index.umd.js +0 -1
- package/dist/IkSearch/ik.index.umd.js +0 -26
- package/dist/IkSearchHead/ik.index.umd.js +0 -1
- package/dist/IkSelectTag/ik.index.umd.js +0 -1
- package/dist/IkSideText/ik.index.umd.js +0 -1
- package/dist/IkStatu/ik.index.umd.js +0 -1
- package/dist/IkStatuOver/ik.index.umd.js +0 -1
- package/dist/IkSvgIcon/ik.index.umd.js +0 -1
- package/dist/IkTaskResume/ik.index.umd.js +0 -1
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +0 -1
- package/dist/IkTinymce/ik.index.umd.js +0 -90
- package/dist/IkTooltip/ik.index.umd.js +0 -1
- package/dist/IkTree/ik.index.umd.js +0 -1
- package/dist/IkUploadFile/ik.index.umd.js +0 -226
- package/dist/IkUploadImage/ik.index.umd.js +0 -1
- package/dist/IkVerticalStepBar/ik.index.umd.js +0 -9
- package/dist/Provider/ik.index.umd.js +0 -1
- package/dist/src/components/IkFullCalendar/src/ik-full-calendar.d.ts +0 -8
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(ee,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("iking-utils-pro"),require("element-plus"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus","axios"],a):(ee=typeof globalThis<"u"?globalThis:ee||self,a(ee.index={},ee.vue,ee["iking-utils-pro"],ee["element-plus"],ee.axios))})(this,function(ee,a,F,_,ml){"use strict";const dr=(n,e)=>(n.install=t=>{for(const r of[n,...Object.values({})])t.component(r.name,r)},n);/*! Element Plus Icons Vue v2.3.1 */var vl=a.defineComponent({name:"Calendar",__name:"calendar",setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),yl=vl,bl=a.defineComponent({name:"Clock",__name:"clock",setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),a.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),a.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),El=bl,Al=a.defineComponent({name:"Close",__name:"close",setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Sl=Al,Cl=a.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),wl=Cl,Dl=a.defineComponent({name:"Location",__name:"location",setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),_l=Dl,Rl=a.defineComponent({name:"User",__name:"user",setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Tl=Rl;const ne=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},xl=(n,e)=>e?e.startsWith("http")?e:`${n||location.origin}${e}`:"",ur=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],kl=n=>{const e=a.inject("loadUrl"),t=a.computed(()=>n.loadUrl||n.fileUrl||(e==null?void 0:e.value)),r=a.inject("uploadUrl"),i=a.computed(()=>n.action||n.uploadUrl||(r==null?void 0:r.value)),s=a.inject("token"),l=a.computed(()=>n.token||(s==null?void 0:s.value)),o=a.inject("onlyofficeConfig"),c=a.computed(()=>n.onlyofficeConfig||(o==null?void 0:o.value)),u=a.inject("userInfo"),d=a.computed(()=>n.userInfo||(u==null?void 0:u.value)),g=[...ur,...ur.map(h=>h.toLocaleUpperCase())];return{cLoadUrl:t,cUploadUrl:i,cToken:l,cOnlyofficeConfig:c,cUserInfo:d,cOnlyofficePreviewType:g}};var st,R,fr,hr,Be,Ae,pr,gr,mr,lt={},vr=[],Ml=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function pe(n,e){for(var t in e)n[t]=e[t];return n}function yr(n){var e=n.parentNode;e&&e.removeChild(n)}function v(n,e,t){var r,i,s,l={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?st.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(s in n.defaultProps)l[s]===void 0&&(l[s]=n.defaultProps[s]);return ot(n,l,r,i,null)}function ot(n,e,t,r,i){var s={type:n,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++fr};return i==null&&R.vnode!=null&&R.vnode(s),s}function q(){return{current:null}}function L(n){return n.children}function Ol(n,e,t,r,i){var s;for(s in t)s==="children"||s==="key"||s in e||at(n,s,null,t[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||t[s]===e[s]||at(n,s,e[s],t[s],r)}function br(n,e,t){e[0]==="-"?n.setProperty(e,t??""):n[e]=t==null?"":typeof t!="number"||Ml.test(e)?t:t+"px"}function at(n,e,t,r,i){var s;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof r=="string"&&(n.style.cssText=r=""),r)for(e in r)t&&e in t||br(n.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||br(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+s]=t,t?r||n.addEventListener(e,s?Ar:Er,s):n.removeEventListener(e,s?Ar:Er,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?n.removeAttribute(e):n.setAttribute(e,t))}}function Er(n){Be=!0;try{return this.l[n.type+!1](R.event?R.event(n):n)}finally{Be=!1}}function Ar(n){Be=!0;try{return this.l[n.type+!0](R.event?R.event(n):n)}finally{Be=!1}}function Y(n,e){this.props=n,this.context=e}function qe(n,e){if(e==null)return n.__?qe(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?qe(n):null}function Sr(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return Sr(n)}}function Il(n){Be?setTimeout(n):gr(n)}function zt(n){(!n.__d&&(n.__d=!0)&&Ae.push(n)&&!ct.__r++||pr!==R.debounceRendering)&&((pr=R.debounceRendering)||Il)(ct)}function ct(){var n,e,t,r,i,s,l,o;for(Ae.sort(function(c,u){return c.__v.__b-u.__v.__b});n=Ae.shift();)n.__d&&(e=Ae.length,r=void 0,i=void 0,l=(s=(t=n).__v).__e,(o=t.__P)&&(r=[],(i=pe({},s)).__v=s.__v+1,Wt(o,s,i,t.__n,o.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??qe(s),s.__h),Rr(r,s),s.__e!=l&&Sr(s)),Ae.length>e&&Ae.sort(function(c,u){return c.__v.__b-u.__v.__b}));ct.__r=0}function Cr(n,e,t,r,i,s,l,o,c,u){var d,g,h,f,y,p,m,A=r&&r.__k||vr,E=A.length;for(t.__k=[],d=0;d<e.length;d++)if((f=t.__k[d]=(f=e[d])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?ot(null,f,null,null,f):Array.isArray(f)?ot(L,{children:f},null,null,null):f.__b>0?ot(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=t,f.__b=t.__b+1,(h=A[d])===null||h&&f.key==h.key&&f.type===h.type)A[d]=void 0;else for(g=0;g<E;g++){if((h=A[g])&&f.key==h.key&&f.type===h.type){A[g]=void 0;break}h=null}Wt(n,f,h=h||lt,i,s,l,o,c,u),y=f.__e,(g=f.ref)&&h.ref!=g&&(m||(m=[]),h.ref&&m.push(h.ref,null,f),m.push(g,f.__c||y,f)),y!=null?(p==null&&(p=y),typeof f.type=="function"&&f.__k===h.__k?f.__d=c=wr(f,c,n):c=Dr(n,f,h,A,y,c),typeof t.type=="function"&&(t.__d=c)):c&&h.__e==c&&c.parentNode!=n&&(c=qe(h))}for(t.__e=p,d=E;d--;)A[d]!=null&&(typeof t.type=="function"&&A[d].__e!=null&&A[d].__e==t.__d&&(t.__d=_r(r).nextSibling),xr(A[d],A[d]));if(m)for(d=0;d<m.length;d++)Tr(m[d],m[++d],m[++d])}function wr(n,e,t){for(var r,i=n.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=n,e=typeof r.type=="function"?wr(r,e,t):Dr(t,r,r,i,r.__e,e));return e}function dt(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){dt(t,e)}):e.push(n)),e}function Dr(n,e,t,r,i,s){var l,o,c;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(t==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==n)n.appendChild(i),l=null;else{for(o=s,c=0;(o=o.nextSibling)&&c<r.length;c+=1)if(o==i)break e;n.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function _r(n){var e,t,r;if(n.type==null||typeof n.type=="string")return n.__e;if(n.__k){for(e=n.__k.length-1;e>=0;e--)if((t=n.__k[e])&&(r=_r(t)))return r}return null}function Wt(n,e,t,r,i,s,l,o,c){var u,d,g,h,f,y,p,m,A,E,D,S,N,O,B,x=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(c=t.__h,o=e.__e=t.__e,e.__h=null,s=[o]),(u=R.__b)&&u(e);try{e:if(typeof x=="function"){if(m=e.props,A=(u=x.contextType)&&r[u.__c],E=u?A?A.props.value:u.__:r,t.__c?p=(d=e.__c=t.__c).__=d.__E:("prototype"in x&&x.prototype.render?e.__c=d=new x(m,E):(e.__c=d=new Y(m,E),d.constructor=x,d.render=Bl),A&&A.sub(d),d.props=m,d.state||(d.state={}),d.context=E,d.__n=r,g=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),x.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=pe({},d.__s)),pe(d.__s,x.getDerivedStateFromProps(m,d.__s))),h=d.props,f=d.state,d.__v=e,g)x.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(x.getDerivedStateFromProps==null&&m!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(m,E),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(m,d.__s,E)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(d.props=m,d.state=d.__s,d.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(z){z&&(z.__=e)}),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[],d.__h.length&&l.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(m,d.__s,E),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,f,y)})}if(d.context=E,d.props=m,d.__P=n,S=R.__r,N=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(e),u=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do d.__d=!1,S&&S(e),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++N<25);d.state=d.__s,d.getChildContext!=null&&(r=pe(pe({},r),d.getChildContext())),g||d.getSnapshotBeforeUpdate==null||(y=d.getSnapshotBeforeUpdate(h,f)),B=u!=null&&u.type===L&&u.key==null?u.props.children:u,Cr(n,Array.isArray(B)?B:[B],e,t,r,i,s,l,o,c),d.base=e.__e,e.__h=null,d.__h.length&&l.push(d),p&&(d.__E=d.__=null),d.__e=!1}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=Nl(t.__e,e,t,r,i,s,l,c);(u=R.diffed)&&u(e)}catch(z){e.__v=null,(c||s!=null)&&(e.__e=o,e.__h=!!c,s[s.indexOf(o)]=null),R.__e(z,e,t)}}function Rr(n,e){R.__c&&R.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(r){r.call(t)})}catch(r){R.__e(r,t.__v)}})}function Nl(n,e,t,r,i,s,l,o){var c,u,d,g=t.props,h=e.props,f=e.type,y=0;if(f==="svg"&&(i=!0),s!=null){for(;y<s.length;y++)if((c=s[y])&&"setAttribute"in c==!!f&&(f?c.localName===f:c.nodeType===3)){n=c,s[y]=null;break}}if(n==null){if(f===null)return document.createTextNode(h);n=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,o=!1}if(f===null)g===h||o&&n.data===h||(n.data=h);else{if(s=s&&st.call(n.childNodes),u=(g=t.props||lt).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!o){if(s!=null)for(g={},y=0;y<n.attributes.length;y++)g[n.attributes[y].name]=n.attributes[y].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===n.innerHTML)||(n.innerHTML=d&&d.__html||""))}if(Ol(n,h,g,i,o),d)e.__k=[];else if(y=e.props.children,Cr(n,Array.isArray(y)?y:[y],e,t,r,i&&f!=="foreignObject",s,l,s?s[0]:t.__k&&qe(t,0),o),s!=null)for(y=s.length;y--;)s[y]!=null&&yr(s[y]);o||("value"in h&&(y=h.value)!==void 0&&(y!==n.value||f==="progress"&&!y||f==="option"&&y!==g.value)&&at(n,"value",y,g.value,!1),"checked"in h&&(y=h.checked)!==void 0&&y!==n.checked&&at(n,"checked",y,g.checked,!1))}return n}function Tr(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(r){R.__e(r,t)}}function xr(n,e,t){var r,i;if(R.unmount&&R.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Tr(r,null,e)),(r=n.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){R.__e(s,e)}r.base=r.__P=null,n.__c=void 0}if(r=n.__k)for(i=0;i<r.length;i++)r[i]&&xr(r[i],e,t||typeof n.type!="function");t||n.__e==null||yr(n.__e),n.__=n.__e=n.__d=void 0}function Bl(n,e,t){return this.constructor(n,t)}function Qe(n,e,t){var r,i,s;R.__&&R.__(n,e),i=(r=typeof t=="function")?null:e.__k,s=[],Wt(e,n=e.__k=v(L,null,[n]),i||lt,lt,e.ownerSVGElement!==void 0,i?null:e.firstChild?st.call(e.childNodes):null,s,i?i.__e:e.firstChild,r),Rr(s,n)}function Pl(n,e){var t={__c:e="__cC"+mr++,__:n,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(function(o){o.__e=!0,zt(o)})},this.sub=function(l){i.push(l);var o=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),o&&o.call(l)}}),r.children}};return t.Provider.__=t.Consumer.contextType=t}st=vr.slice,R={__e:function(n,e,t,r){for(var i,s,l;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(n)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(n,r||{}),l=i.__d),l)return i.__E=i}catch(o){n=o}throw n}},fr=0,hr=function(n){return n!=null&&n.constructor===void 0},Be=!1,Y.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=pe({},this.state),typeof n=="function"&&(n=n(pe({},t),this.props)),n&&pe(t,n),n!=null&&this.__v&&(e&&this._sb.push(e),zt(this))},Y.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),zt(this))},Y.prototype.render=L,Ae=[],gr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ct.__r=0,mr=0;var re,Gt,kr,Mr=[],qt=[],Or=R.__b,Ir=R.__r,Nr=R.diffed,Br=R.__c,Pr=R.unmount;function Vl(){for(var n;n=Mr.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(ut),n.__H.__h.forEach(Qt),n.__H.__h=[]}catch(e){n.__H.__h=[],R.__e(e,n.__v)}}R.__b=function(n){re=null,Or&&Or(n)},R.__r=function(n){Ir&&Ir(n);var e=(re=n.__c).__H;e&&(Gt===re?(e.__h=[],re.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=qt,t.__N=t.i=void 0})):(e.__h.forEach(ut),e.__h.forEach(Qt),e.__h=[])),Gt=re},R.diffed=function(n){Nr&&Nr(n);var e=n.__c;e&&e.__H&&(e.__H.__h.length&&(Mr.push(e)!==1&&kr===R.requestAnimationFrame||((kr=R.requestAnimationFrame)||Hl)(Vl)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==qt&&(t.__=t.__V),t.i=void 0,t.__V=qt})),Gt=re=null},R.__c=function(n,e){e.some(function(t){try{t.__h.forEach(ut),t.__h=t.__h.filter(function(r){return!r.__||Qt(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],R.__e(r,t.__v)}}),Br&&Br(n,e)},R.unmount=function(n){Pr&&Pr(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(r){try{ut(r)}catch(i){e=i}}),t.__H=void 0,e&&R.__e(e,t.__v))};var Vr=typeof requestAnimationFrame=="function";function Hl(n){var e,t=function(){clearTimeout(r),Vr&&cancelAnimationFrame(e),setTimeout(n)},r=setTimeout(t,100);Vr&&(e=requestAnimationFrame(t))}function ut(n){var e=re,t=n.__c;typeof t=="function"&&(n.__c=void 0,t()),re=e}function Qt(n){var e=re;n.__c=n.__(),re=e}function Ll(n,e){for(var t in e)n[t]=e[t];return n}function Hr(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var r in e)if(r!=="__source"&&n[r]!==e[r])return!0;return!1}function Lr(n){this.props=n}(Lr.prototype=new Y).isPureReactComponent=!0,Lr.prototype.shouldComponentUpdate=function(n,e){return Hr(this.props,n)||Hr(this.state,e)};var Ur=R.__b;R.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),Ur&&Ur(n)};var Ul=R.__e;R.__e=function(n,e,t,r){if(n.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(n,e)}Ul(n,e,t,r)};var jr=R.unmount;function Fr(n,e,t){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),n.__c.__H=null),(n=Ll({},n)).__c!=null&&(n.__c.__P===t&&(n.__c.__P=e),n.__c=null),n.__k=n.__k&&n.__k.map(function(r){return Fr(r,e,t)})),n}function zr(n,e,t){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(r){return zr(r,e,t)}),n.__c&&n.__c.__P===e&&(n.__e&&t.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=t)),n}function Yt(){this.__u=0,this.t=null,this.__b=null}function Wr(n){var e=n.__.__c;return e&&e.__a&&e.__a(n)}function ft(){this.u=null,this.o=null}R.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),jr&&jr(n)},(Yt.prototype=new Y).__c=function(n,e){var t=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(t);var i=Wr(r.__v),s=!1,l=function(){s||(s=!0,t.__R=null,i?i(o):o())};t.__R=l;var o=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=zr(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},c=e.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(l,l)},Yt.prototype.componentWillUnmount=function(){this.t=[]},Yt.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Fr(this.__b,t,r.__O=r.__P)}this.__b=null}var i=e.__a&&v(L,null,n.fallback);return i&&(i.__h=null),[v(L,null,e.__a?null:n.children),i]};var Gr=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};function jl(n){return this.getChildContext=function(){return n.context},n.children}function Fl(n){var e=this,t=n.i;e.componentWillUnmount=function(){Qe(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),n.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Qe(v(jl,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function zl(n,e){var t=v(Fl,{__v:n,i:e});return t.containerInfo=e,t}(ft.prototype=new Y).__a=function(n){var e=this,t=Wr(e.__v),r=e.o.get(n);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Gr(e,n,r)):i()};t?t(s):s()}},ft.prototype.render=function(n){this.u=null,this.o=new Map;var e=dt(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},ft.prototype.componentDidUpdate=ft.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){Gr(n,t,e)})};var Wl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Gl=/^(?: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]/,ql=typeof document<"u",Ql=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};Y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(Y.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var qr=R.event;function Yl(){}function Zl(){return this.cancelBubble}function $l(){return this.defaultPrevented}R.event=function(n){return qr&&(n=qr(n)),n.persist=Yl,n.isPropagationStopped=Zl,n.isDefaultPrevented=$l,n.nativeEvent=n};var Qr={configurable:!0,get:function(){return this.class}},Yr=R.vnode;R.vnode=function(n){var e=n.type,t=n.props,r=t;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},t){var l=t[s];ql&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in t&&l==null||(s==="defaultValue"&&"value"in t&&t.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!Ql(t.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&Gl.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=dt(t.children).forEach(function(o){o.props.selected=r.value.indexOf(o.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=dt(t.children).forEach(function(o){o.props.selected=r.multiple?r.defaultValue.indexOf(o.props.value)!=-1:r.defaultValue==o.props.value})),n.props=r,t.class!=t.className&&(Qr.enumerable="className"in t,t.className!=null&&(r.class=t.className),Object.defineProperty(r,"className",Qr))}n.$$typeof=Wl,Yr&&Yr(n)};var Zr=R.__r;R.__r=function(n){Zr&&Zr(n),n.__c};const $r=[],Zt=new Map;function $t(n){$r.push(n),Zt.forEach(e=>{Jr(e,n)})}function Xl(n){n.isConnected&&n.getRootNode&&Xr(n.getRootNode())}function Xr(n){let e=Zt.get(n);if(!e||!e.isConnected){if(e=n.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const t=Kl();t&&(e.nonce=t);const r=n===document?document.head:n,i=n===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Zt.set(n,e),Jl(e)}}function Jl(n){for(const e of $r)Jr(n,e)}function Jr(n,e){const{sheet:t}=n,r=t.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&t.insertRule(i+"}",r+s)})}let Xt;function Kl(){return Xt===void 0&&(Xt=eo()),Xt}function eo(){const n=document.querySelector('meta[name="csp-nonce"]');if(n&&n.hasAttribute("content"))return n.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Xr(document);var to=':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;-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;-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)}';$t(to);class Jt{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(),e==null?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:r}=this;e in r&&(t?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[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 Kt(n){n.parentNode&&n.parentNode.removeChild(n)}function W(n,e){if(n.closest)return n.closest(e);if(!document.documentElement.contains(n))return null;do{if(no(n,e))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}function no(n,e){return(n.matches||n.matchesSelector||n.msMatchesSelector).call(n,e)}function ro(n,e){let t=n instanceof HTMLElement?[n]:n,r=[];for(let i=0;i<t.length;i+=1){let s=t[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const io=/(top|left|right|bottom|width|height)$/i;function Ye(n,e){for(let t in e)Kr(n,t,e[t])}function Kr(n,e,t){t==null?n.style[e]="":typeof t=="number"&&io.test(e)?n.style[e]=`${t}px`:n.style[e]=t}function ei(n){var e,t;return(t=(e=n.composedPath)===null||e===void 0?void 0:e.call(n)[0])!==null&&t!==void 0?t:n.target}let ti=0;function ht(){return ti+=1,"fc-dom-"+ti}function pt(n){n.preventDefault()}function so(n,e){return t=>{let r=W(t.target,n);r&&e.call(r,t,r)}}function ni(n,e,t,r){let i=so(t,r);return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}function lo(n,e,t,r){let i;return ni(n,"mouseover",e,(s,l)=>{if(l!==i){i=l,t(s,l);let o=c=>{i=null,r(c,l),l.removeEventListener("mouseleave",o)};l.addEventListener("mouseleave",o)}})}const ri=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function oo(n,e){let t=r=>{e(r),ri.forEach(i=>{n.removeEventListener(i,t)})};ri.forEach(r=>{n.addEventListener(r,t)})}function ii(n){return Object.assign({onClick:n},si(n))}function si(n){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(n(e),e.preventDefault())}}}let li=0;function Se(){return li+=1,String(li)}function en(){document.body.classList.add("fc-not-allowed")}function tn(){document.body.classList.remove("fc-not-allowed")}function ao(n){n.style.userSelect="none",n.style.webkitUserSelect="none",n.addEventListener("selectstart",pt)}function co(n){n.style.userSelect="",n.style.webkitUserSelect="",n.removeEventListener("selectstart",pt)}function uo(n){n.addEventListener("contextmenu",pt)}function fo(n){n.removeEventListener("contextmenu",pt)}function ho(n){let e=[],t=[],r,i;for(typeof n=="string"?t=n.split(/\s*,\s*/):typeof n=="function"?t=[n]:Array.isArray(n)&&(t=n),r=0;r<t.length;r+=1)i=t[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function po(n,e,t){let r,i;for(r=0;r<t.length;r+=1)if(i=go(n,e,t[r]),i)return i;return 0}function go(n,e,t){return t.func?t.func(n,e):mo(n[t.field],e[t.field])*(t.order||1)}function mo(n,e){return!n&&!e?0:e==null?-1:n==null?1:typeof n=="string"||typeof e=="string"?String(n).localeCompare(String(e)):n-e}function Pe(n,e){let t=String(n);return"000".substr(0,e-t.length)+t}function Ze(n,e,t){return typeof n=="function"?n(...e):typeof n=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),n):t}function vo(n,e){return n-e}function gt(n){return n%1===0}function yo(n){let e=n.querySelector(".fc-scrollgrid-shrink-frame"),t=n.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!t)throw new Error("needs fc-scrollgrid-shrink-cushion className");return n.getBoundingClientRect().width-e.getBoundingClientRect().width+t.getBoundingClientRect().width}const oi=["years","months","days","milliseconds"],bo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function I(n,e){return typeof n=="string"?Eo(n):typeof n=="object"&&n?ai(n):typeof n=="number"?ai({[e||"milliseconds"]:n}):null}function Eo(n){let e=bo.exec(n);if(e){let t=e[1]?-1:1;return{years:0,months:0,days:t*(e[2]?parseInt(e[2],10):0),milliseconds:t*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function ai(n){let e={years:n.years||n.year||0,months:n.months||n.month||0,days:n.days||n.day||0,milliseconds:(n.hours||n.hour||0)*60*60*1e3+(n.minutes||n.minute||0)*60*1e3+(n.seconds||n.second||0)*1e3+(n.milliseconds||n.millisecond||n.ms||0)},t=n.weeks||n.week;return t&&(e.days+=t*7,e.specifiedWeeks=!0),e}function Ao(n,e){return n.years===e.years&&n.months===e.months&&n.days===e.days&&n.milliseconds===e.milliseconds}function nn(n,e){return{years:n.years+e.years,months:n.months+e.months,days:n.days+e.days,milliseconds:n.milliseconds+e.milliseconds}}function So(n,e){return{years:n.years-e.years,months:n.months-e.months,days:n.days-e.days,milliseconds:n.milliseconds-e.milliseconds}}function Co(n,e){return{years:n.years*e,months:n.months*e,days:n.days*e,milliseconds:n.milliseconds*e}}function wo(n){return Ve(n)/365}function Do(n){return Ve(n)/30}function Ve(n){return te(n)/864e5}function te(n){return n.years*(365*864e5)+n.months*(30*864e5)+n.days*864e5+n.milliseconds}function rn(n,e){let t=null;for(let r=0;r<oi.length;r+=1){let i=oi[r];if(e[i]){let s=n[i]/e[i];if(!gt(s)||t!==null&&t!==s)return null;t=s}else if(n[i])return null}return t}function sn(n){let e=n.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return n.days?n.specifiedWeeks&&n.days%7===0?{unit:"week",value:n.days/7}:{unit:"day",value:n.days}:n.months?{unit:"month",value:n.months}:n.years?{unit:"year",value:n.years}:{unit:"millisecond",value:0}}function ge(n,e,t){if(n===e)return!0;let r=n.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(t?t(n[i],e[i]):n[i]===e[i]))return!1;return!0}const _o=["sun","mon","tue","wed","thu","fri","sat"];function ci(n,e){let t=ve(n);return t[2]+=e*7,Q(t)}function G(n,e){let t=ve(n);return t[2]+=e,Q(t)}function me(n,e){let t=ve(n);return t[6]+=e,Q(t)}function Ro(n,e){return Ce(n,e)/7}function Ce(n,e){return(e.valueOf()-n.valueOf())/(1e3*60*60*24)}function To(n,e){return(e.valueOf()-n.valueOf())/(1e3*60*60)}function xo(n,e){return(e.valueOf()-n.valueOf())/(1e3*60)}function ko(n,e){return(e.valueOf()-n.valueOf())/1e3}function Mo(n,e){let t=H(n),r=H(e);return{years:0,months:0,days:Math.round(Ce(t,r)),milliseconds:e.valueOf()-r.valueOf()-(n.valueOf()-t.valueOf())}}function Oo(n,e){let t=mt(n,e);return t!==null&&t%7===0?t/7:null}function mt(n,e){return ye(n)===ye(e)?Math.round(Ce(n,e)):null}function H(n){return Q([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()])}function Io(n){return Q([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours()])}function No(n){return Q([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes()])}function Bo(n){return Q([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()])}function Po(n,e,t){let r=n.getUTCFullYear(),i=ln(n,r,e,t);if(i<1)return ln(n,r-1,e,t);let s=ln(n,r+1,e,t);return s>=1?Math.min(i,s):i}function ln(n,e,t,r){let i=Q([e,0,1+Vo(e,t,r)]),s=H(n),l=Math.round(Ce(i,s));return Math.floor(l/7)+1}function Vo(n,e,t){let r=7+e-t;return-((7+Q([n,0,r]).getUTCDay()-e)%7)+r-1}function di(n){return[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()]}function ui(n){return new Date(n[0],n[1]||0,n[2]==null?1:n[2],n[3]||0,n[4]||0,n[5]||0)}function ve(n){return[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()]}function Q(n){return n.length===1&&(n=n.concat([0])),new Date(Date.UTC(...n))}function fi(n){return!isNaN(n.valueOf())}function ye(n){return n.getUTCHours()*1e3*60*60+n.getUTCMinutes()*1e3*60+n.getUTCSeconds()*1e3+n.getUTCMilliseconds()}function hi(n,e,t=!1){let r=n.toISOString();return r=r.replace(".000",""),t&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",an(e,!0)))),r}function on(n){return n.toISOString().replace(/T.*$/,"")}function Ho(n){return n.toISOString().match(/^\d{4}-\d{2}/)[0]}function Lo(n){return Pe(n.getUTCHours(),2)+":"+Pe(n.getUTCMinutes(),2)+":"+Pe(n.getUTCSeconds(),2)}function an(n,e=!1){let t=n<0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),s=Math.round(r%60);return e?`${t+Pe(i,2)}:${Pe(s,2)}`:`GMT${t}${i}${s?`:${Pe(s,2)}`:""}`}function T(n,e,t){let r,i;return function(...s){if(!r)i=n.apply(this,s);else if(!ge(r,s)){let l=n.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function vt(n,e,t){let r,i;return s=>(r?ie(r,s)||(i=n.call(this,s)):i=n.call(this,s),r=s,i)}const pi={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},yt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},bt=/\s*([ap])\.?m\.?/i,Uo=/,/g,jo=/\s+/g,Fo=/\u200e/g,zo=/UTC|GMT/;class Wo{constructor(e){let t={},r={},i=0;for(let s in e)s in pi?(r[s]=e[s],i=Math.max(pi[s],i)):(t[s]=e[s],s in yt&&(i=Math.max(yt[s],i)));this.standardDateProps=t,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=T(gi)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,r,i){let{standardDateProps:s,extendedSettings:l}=this,o=$o(e.marker,t.marker,r.calendarSystem);if(!o)return this.format(e,r);let c=o;c>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(c=1);let u=this.format(e,r),d=this.format(t,r);if(u===d)return u;let g=Xo(s,c),h=gi(g,l,r),f=h(e),y=h(t),p=Jo(u,f,d,y),m=l.separator||i||r.defaultSeparator||"";return p?p.before+f+m+y+p.after:u+m+d}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function gi(n,e,t){let r=Object.keys(n).length;return r===1&&n.timeZoneName==="short"?i=>an(i.timeZoneOffset):r===0&&e.week?i=>Zo(t.computeWeekNumber(i.marker),t.weekText,t.weekTextLong,t.locale,e.week):Go(n,e,t)}function Go(n,e,t){n=Object.assign({},n),e=Object.assign({},e),qo(n,e),n.timeZone="UTC";let r=new Intl.DateTimeFormat(t.locale.codes,n),i;if(e.omitZeroMinute){let s=Object.assign({},n);delete s.minute,i=new Intl.DateTimeFormat(t.locale.codes,s)}return s=>{let{marker:l}=s,o;i&&!l.getUTCMinutes()?o=i:o=r;let c=o.format(l);return Qo(c,s,n,e,t)}}function qo(n,e){n.timeZoneName&&(n.hour||(n.hour="2-digit"),n.minute||(n.minute="2-digit")),n.timeZoneName==="long"&&(n.timeZoneName="short"),e.omitZeroMinute&&(n.second||n.millisecond)&&delete e.omitZeroMinute}function Qo(n,e,t,r,i){return n=n.replace(Fo,""),t.timeZoneName==="short"&&(n=Yo(n,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":an(e.timeZoneOffset))),r.omitCommas&&(n=n.replace(Uo,"").trim()),r.omitZeroMinute&&(n=n.replace(":00","")),r.meridiem===!1?n=n.replace(bt,"").trim():r.meridiem==="narrow"?n=n.replace(bt,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?n=n.replace(bt,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(n=n.replace(bt,s=>s.toLocaleLowerCase())),n=n.replace(jo," "),n=n.trim(),n}function Yo(n,e){let t=!1;return n=n.replace(zo,()=>(t=!0,e)),t||(n+=` ${e}`),n}function Zo(n,e,t,r,i){let s=[];return i==="long"?s.push(t):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(n)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function $o(n,e,t){return t.getMarkerYear(n)!==t.getMarkerYear(e)?5:t.getMarkerMonth(n)!==t.getMarkerMonth(e)?4:t.getMarkerDay(n)!==t.getMarkerDay(e)?2:ye(n)!==ye(e)?1:0}function Xo(n,e){let t={};for(let r in n)(!(r in yt)||yt[r]<=e)&&(t[r]=n[r]);return t}function Jo(n,e,t,r){let i=0;for(;i<n.length;){let s=n.indexOf(e,i);if(s===-1)break;let l=n.substr(0,s);i=s+e.length;let o=n.substr(i),c=0;for(;c<t.length;){let u=t.indexOf(r,c);if(u===-1)break;let d=t.substr(0,u);c=u+r.length;let g=t.substr(c);if(l===d&&o===g)return{before:l,after:o}}}return null}function mi(n,e){let t=e.markerToArray(n.marker);return{marker:n.marker,timeZoneOffset:n.timeZoneOffset,array:t,year:t[0],month:t[1],day:t[2],hour:t[3],minute:t[4],second:t[5],millisecond:t[6]}}function Et(n,e,t,r){let i=mi(n,t.calendarSystem),s=e?mi(e,t.calendarSystem):null;return{date:i,start:i,end:s,timeZone:t.timeZone,localeCodes:t.locale.codes,defaultSeparator:r||t.defaultSeparator}}class Ko{constructor(e){this.cmdStr=e}format(e,t,r){return t.cmdFormatter(this.cmdStr,Et(e,null,t,r))}formatRange(e,t,r,i){return r.cmdFormatter(this.cmdStr,Et(e,t,r,i))}}class ea{constructor(e){this.func=e}format(e,t,r){return this.func(Et(e,null,t,r))}formatRange(e,t,r,i){return this.func(Et(e,t,r,i))}}function j(n){return typeof n=="object"&&n?new Wo(n):typeof n=="string"?new Ko(n):typeof n=="function"?new ea(n):null}const vi={navLinkDayClick:b,navLinkWeekClick:b,duration:I,bootstrapFontAwesome:b,buttonIcons:b,customButtons:b,defaultAllDayEventDuration:I,defaultTimedEventDuration:I,nextDayThreshold:I,scrollTime:I,scrollTimeReset:Boolean,slotMinTime:I,slotMaxTime:I,dayPopoverFormat:j,slotDuration:I,snapDuration:I,headerToolbar:b,footerToolbar:b,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:j,dayHeaderClassNames:b,dayHeaderContent:b,dayHeaderDidMount:b,dayHeaderWillUnmount:b,dayCellClassNames:b,dayCellContent:b,dayCellDidMount:b,dayCellWillUnmount:b,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:b,weekNumbers:Boolean,weekNumberClassNames:b,weekNumberContent:b,weekNumberDidMount:b,weekNumberWillUnmount:b,editable:Boolean,viewClassNames:b,viewDidMount:b,viewWillUnmount:b,nowIndicator:Boolean,nowIndicatorClassNames:b,nowIndicatorContent:b,nowIndicatorDidMount:b,nowIndicatorWillUnmount:b,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:b,locale:b,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:b,eventOrder:ho,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:b,contentHeight:b,direction:String,weekNumberFormat:j,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:b,initialDate:b,now:b,eventDataTransform:b,stickyHeaderDates:b,stickyFooterScrollbar:b,viewHeight:b,defaultAllDay:Boolean,eventSourceFailure:b,eventSourceSuccess:b,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:b,eventConstraint:b,eventAllow:b,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:b,eventContent:b,eventDidMount:b,eventWillUnmount:b,selectConstraint:b,selectOverlap:b,selectAllow:b,droppable:Boolean,unselectCancel:String,slotLabelFormat:b,slotLaneClassNames:b,slotLaneContent:b,slotLaneDidMount:b,slotLaneWillUnmount:b,slotLabelClassNames:b,slotLabelContent:b,slotLabelDidMount:b,slotLabelWillUnmount:b,dayMaxEvents:b,dayMaxEventRows:b,dayMinWidth:Number,slotLabelInterval:I,allDayText:String,allDayClassNames:b,allDayContent:b,allDayDidMount:b,allDayWillUnmount:b,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:j,rerenderDelay:Number,moreLinkText:b,moreLinkHint:b,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:b,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:I,hiddenDays:b,fixedWeekCount:Boolean,validRange:b,visibleRange:b,titleFormat:b,eventInteractive:Boolean,noEventsText:String,viewHint:b,navLinkHint:b,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:b,moreLinkClassNames:b,moreLinkContent:b,moreLinkDidMount:b,moreLinkWillUnmount:b,monthStartFormat:j,handleCustomRendering:b,customRenderingMetaMap:b,customRenderingReplaces:Boolean},$e={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"}},yi={datesSet:b,eventsSet:b,eventAdd:b,eventChange:b,eventRemove:b,windowResize:b,eventClick:b,eventMouseEnter:b,eventMouseLeave:b,select:b,unselect:b,loading:b,_unmount:b,_beforeprint:b,_afterprint:b,_noEventDrop:b,_noEventResize:b,_resize:b,_scrollRequest:b},bi={buttonText:b,buttonHints:b,views:b,plugins:b,initialEvents:b,events:b,eventSources:b},we={headerToolbar:De,footerToolbar:De,buttonText:De,buttonHints:De,buttonIcons:De,dateIncrement:De,plugins:At,events:At,eventSources:At,resources:At};function De(n,e){return typeof n=="object"&&typeof e=="object"&&n&&e?ie(n,e):n===e}function At(n,e){return Array.isArray(n)&&Array.isArray(e)?ge(n,e):n===e}const ta={type:String,component:b,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:b,usesMinMaxTime:Boolean,classNames:b,content:b,didMount:b,willUnmount:b};function cn(n){return un(n,we)}function dn(n,e){let t={},r={};for(let i in e)i in n&&(t[i]=e[i](n[i]));for(let i in n)i in e||(r[i]=n[i]);return{refined:t,extra:r}}function b(n){return n}const{hasOwnProperty:St}=Object.prototype;function un(n,e){let t={};if(e){for(let r in e)if(e[r]===De){let i=[];for(let s=n.length-1;s>=0;s-=1){let l=n[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){t[r]=l;break}}i.length&&(t[r]=un(i))}}for(let r=n.length-1;r>=0;r-=1){let i=n[r];for(let s in i)s in t||(t[s]=i[s])}return t}function _e(n,e){let t={};for(let r in n)e(n[r],r)&&(t[r]=n[r]);return t}function le(n,e){let t={};for(let r in n)t[r]=e(n[r],r);return t}function Ei(n){let e={};for(let t of n)e[t]=!0;return e}function fn(n){let e=[];for(let t in n)e.push(n[t]);return e}function ie(n,e){if(n===e)return!0;for(let t in n)if(St.call(n,t)&&!(t in e))return!1;for(let t in e)if(St.call(e,t)&&n[t]!==e[t])return!1;return!0}const na=/^on[A-Z]/;function ra(n,e){const t=hn(n,e);for(let r of t)if(!na.test(r))return!1;return!0}function hn(n,e){let t=[];for(let r in n)St.call(n,r)&&(r in e||t.push(r));for(let r in e)St.call(e,r)&&n[r]!==e[r]&&t.push(r);return t}function pn(n,e,t={}){if(n===e)return!0;for(let r in e)if(!(r in n&&ia(n[r],e[r],t[r])))return!1;for(let r in n)if(!(r in e))return!1;return!0}function ia(n,e,t){return n===e||t===!0?!0:t?t(n,e):!1}function sa(n,e=0,t,r=1){let i=[];t==null&&(t=Object.keys(n).length);for(let s=e;s<t;s+=r){let l=n[s];l!==void 0&&i.push(l)}return i}let Ai={};function la(n,e){Ai[n]=e}function oa(n){return new Ai[n]}class aa{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Q(e)}markerToArray(e){return ve(e)}}la("gregory",aa);const ca=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function da(n){let e=ca.exec(n);if(e){let t=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(fi(t)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:t,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class ua{constructor(e){let t=this.timeZone=e.timeZone,r=t!=="local"&&t!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=oa(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return t===null?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Q(di(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let t=null;return typeof e=="number"?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Q(e)),t===null||!fi(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=da(e);if(t===null)return null;let{marker:r}=t,i=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-t.timeZoneOffset*60*1e3):i=t.timeZoneOffset),{marker:r,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:i}}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 r=this.calendarSystem.markerToArray(e);return r[0]+=t.years,r[1]+=t.months,r[2]+=t.days,r[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,t){let r=this.calendarSystem.markerToArray(e);return r[0]-=t.years,r[1]-=t.months,r[2]-=t.days,r[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,t){let r=this.calendarSystem.markerToArray(e);return r[0]+=t,this.calendarSystem.arrayToMarker(r)}addMonths(e,t){let r=this.calendarSystem.markerToArray(e);return r[1]+=t,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,t){let{calendarSystem:r}=this;return ye(e)===ye(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)&&r.getMarkerMonth(e)===r.getMarkerMonth(t)?r.getMarkerYear(t)-r.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:r}=this;return ye(e)===ye(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)?r.getMarkerMonth(t)-r.getMarkerMonth(e)+(r.getMarkerYear(t)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let r=this.diffWholeYears(e,t);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,t),r!==null?{unit:"month",value:r}:(r=Oo(e,t),r!==null?{unit:"week",value:r}:(r=mt(e,t),r!==null?{unit:"day",value:r}:(r=To(e,t),gt(r)?{unit:"hour",value:r}:(r=xo(e,t),gt(r)?{unit:"minute",value:r}:(r=ko(e,t),gt(r)?{unit:"second",value:r}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,r){let i;return r.years&&(i=this.diffWholeYears(e,t),i!==null)?i/wo(r):r.months&&(i=this.diffWholeMonths(e,t),i!==null)?i/Do(r):r.days&&(i=mt(e,t),i!==null)?i/Ve(r):(t.valueOf()-e.valueOf())/te(r)}startOf(e,t){return t==="year"?this.startOfYear(e):t==="month"?this.startOfMonth(e):t==="week"?this.startOfWeek(e):t==="day"?H(e):t==="hour"?Io(e):t==="minute"?No(e):t==="second"?Bo(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)):Po(e,this.weekDow,this.weekDoy)}format(e,t,r={}){return t.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,r,i={}){return i.isEndExclusive&&(t=me(t,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)}formatIso(e,t={}){let r=null;return t.omitTimeZoneOffset||(t.forcedTzo!=null?r=t.forcedTzo:r=this.offsetForMarker(e)),hi(e,r,t.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Q(di(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Q(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-ui(ve(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ve(e)):null}toDate(e,t){return this.timeZone==="local"?ui(ve(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(ve(e))*1e3*60):new Date(e.valueOf()-(t||0))}}class Xe{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,r;if(typeof e=="object"&&e){t=Object.assign({},this.iconClasses);for(r in e)t[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=t}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let r;return t&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}Xe.prototype.classes={},Xe.prototype.iconClasses={},Xe.prototype.baseIconClass="",Xe.prototype.iconOverridePrefix="";function Ct(n){n();let e=R.debounceRendering,t=[];function r(i){t.push(i)}for(R.debounceRendering=r,Qe(v(fa,{}),document.createElement("div"));t.length;)t.shift()();R.debounceRendering=e}class fa extends Y{render(){return v("div",{})}componentDidMount(){this.setState({})}}function Si(n){let e=Pl(n),t=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=t.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(o=>{o.context=l.value,o.forceUpdate()})},this.sub=l=>{s.push(l);let o=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),o&&o.call(l)}}}return i},e}class ha{constructor(e,t,r,i){this.execFunc=e,this.emitter=t,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),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 oe=Si({});function pa(n,e,t,r,i,s,l,o,c,u,d,g,h){return{dateEnv:i,options:t,pluginHooks:l,emitter:u,dispatch:o,getCurrentData:c,calendarApi:d,viewSpec:n,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:t.direction==="rtl",addResizeHandler(f){u.on("_resize",f)},removeResizeHandler(f){u.off("_resize",f)},createScrollResponder(f){return new ha(f,u,I(t.scrollTime),t.scrollTimeReset)},registerInteractiveComponent:g,unregisterInteractiveComponent:h}}class Re extends Y{shouldComponentUpdate(e,t){return this.debug&&console.log(hn(e,this.props),hn(t,this.state)),!pn(this.props,e,this.propEquality)||!pn(this.state,t,this.stateEquality)}safeSetState(e){pn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Re.addPropsEquality=ga,Re.addStateEquality=ma,Re.contextType=oe,Re.prototype.propEquality={},Re.prototype.stateEquality={};class V extends Re{}V.contextType=oe;function ga(n){let e=Object.create(this.prototype.propEquality);Object.assign(e,n),this.prototype.propEquality=e}function ma(n){let e=Object.create(this.prototype.stateEquality);Object.assign(e,n),this.prototype.stateEquality=e}function ae(n,e){typeof n=="function"?n(e):n&&(n.current=e)}class gn extends V{constructor(){super(...arguments),this.id=Se(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:r}=this.props;(!t.customRenderingReplaces||!mn(r,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&ae(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:r}=t,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,o=Ci(e,[],this.handleEl);let c=!1,u,d=[],g;if(i!=null){const h=typeof i=="function"?i(l,v):i;if(h===!0)c=!0;else{const f=h&&typeof h=="object";f&&"html"in h?o.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?d=Array.prototype.slice.call(h.domNodes):(f?hr(h):typeof h!="function")?u=h:g=h}}else c=!mn(e.generatorName,r);return c&&s&&(u=s(l)),this.queuedDomNodes=d,this.currentGeneratorMeta=g,v(e.elTag,o,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const o=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:l==null?void 0:l[r.generatorName];o&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:o},r),{elClasses:(r.elClasses||[]).filter(va)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,r=this.base;if(!ge(e,t)){t.forEach(Kt);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}gn.addPropsEquality({elClasses:ge,elStyle:ie,elAttrs:ra,renderProps:ie});function mn(n,e){var t;return!!(e.handleCustomRendering&&n&&(!((t=e.customRenderingMetaMap)===null||t===void 0)&&t[n]))}function Ci(n,e,t){const r=Object.assign(Object.assign({},n.elAttrs),{ref:t});return(n.elClasses||e)&&(r.className=(n.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),n.elStyle&&(r.style=n.elStyle),r}function va(n){return!!n}const wi=Si(0);class Z extends Y{constructor(){super(...arguments),this.InnerContent=ya.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(ae(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=ba(e.classNameGenerator,e.renderProps);if(e.children){const r=Ci(e,t,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?v(e.elTag,r,i):i}else return v(gn,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?(t=(e=this.props).didMount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Z.contextType=wi;function ya(n,e){const t=n.props;return v(gn,Object.assign({renderProps:t.renderProps,generatorName:t.generatorName,customGenerator:t.customGenerator,defaultGenerator:t.defaultGenerator,renderId:n.context},e))}function ba(n,e){const t=typeof n=="function"?n(e):n||[];return typeof t=="string"?[t]:t}class wt extends V{render(){let{props:e,context:t}=this,{options:r}=t,i={view:t.viewApi};return v(Z,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Di(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Di(n){return[`fc-${n.type}-view`,"fc-view"]}function Ea(n,e){let t=null,r=null;return n.start&&(t=e.createMarker(n.start)),n.end&&(r=e.createMarker(n.end)),!t&&!r||t&&r&&r<t?null:{start:t,end:r}}function _i(n,e){let t=[],{start:r}=e,i,s;for(n.sort(Aa),i=0;i<n.length;i+=1)s=n[i],s.start>r&&t.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&t.push({start:r,end:e.end}),t}function Aa(n,e){return n.start.valueOf()-e.start.valueOf()}function Te(n,e){let{start:t,end:r}=n,i=null;return e.start!==null&&(t===null?t=e.start:t=new Date(Math.max(t.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(t===null||r===null||t<r)&&(i={start:t,end:r}),i}function Sa(n,e){return(n.start===null?null:n.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(n.end===null?null:n.end.valueOf())===(e.end===null?null:e.end.valueOf())}function vn(n,e){return(n.end===null||e.start===null||n.end>e.start)&&(n.start===null||e.end===null||n.start<e.end)}function Dt(n,e){return(n.start===null||e.start!==null&&e.start>=n.start)&&(n.end===null||e.end!==null&&e.end<=n.end)}function ce(n,e){return(n.start===null||e>=n.start)&&(n.end===null||e<n.end)}function Ca(n,e){return e.start!=null&&n<e.start?e.start:e.end!=null&&n>=e.end?new Date(e.end.valueOf()-1):n}function Ri(n){let e=Math.floor(Ce(n.start,n.end))||1,t=H(n.start),r=G(t,e);return{start:t,end:r}}function Ti(n,e=I(0)){let t=null,r=null;if(n.end){r=H(n.end);let i=n.end.valueOf()-r.valueOf();i&&i>=te(e)&&(r=G(r,1))}return n.start&&(t=H(n.start),r&&r<=t&&(r=G(t,1))),{start:t,end:r}}function He(n,e,t,r){return r==="year"?I(t.diffWholeYears(n,e),"year"):r==="month"?I(t.diffWholeMonths(n,e),"month"):Mo(n,e)}function wa(n,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return n}}function Da(n,e){let t=n.initialDate;return t!=null?e.createMarker(t):Je(n.now,e)}function Je(n,e){return typeof n=="function"&&(n=n()),n==null?e.createNowMarker():e.createMarker(n)}class xi{constructor(e){this.props=e,this.nowDate=Je(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,t,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,t,r=!0){let{props:i}=this,s,l,o,c,u,d;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Ca(e,s)),l=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(l.unit),c=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,o),c=this.trimHiddenDays(c),u=c,i.showNonCurrentDates||(u=Te(u,l.range)),u=this.adjustActiveRange(u),u=Te(u,s),d=vn(l.range,s),ce(c,e)||(e=c.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:o,activeRange:u,renderRange:c,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:r}=this,i=null,s=null,l=null,o;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,t,i,s)):(o=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,t,o)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=sn(i).unit,l=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return I({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:o}=e;return r&&(Ve(i)<0&&(l=H(l),l=t.add(l,i)),Ve(s)>1&&(o=H(o),o=G(o,-1),o=t.add(o,s))),{start:l,end:o}}buildRangeFromDuration(e,t,r,i){let{dateEnv:s,dateAlignment:l}=this.props,o,c,u;if(!l){let{dateIncrement:g}=this.props;g&&te(g)<te(r)?l=sn(g).unit:l=i}Ve(r)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=H(o));function d(){o=s.startOf(e,l),c=s.add(o,r),u={start:o,end:c}}return d(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,t),d()),u}buildRangeFromDayCount(e,t,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,o=e,c;s&&(o=i.startOf(o,s)),o=H(o),o=this.skipHiddenDays(o,t),c=o;do c=G(c,1),this.isHiddenDay(c)||(l+=1);while(l<r);return{start:o,end:c}}buildCustomVisibleRange(e){let{props:t}=this,r=t.visibleRangeInput,i=typeof r=="function"?r.call(t.calendarApi,t.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,t,r){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,r;return t||((r=this.props.dateAlignment)?I(1,r):e||I({days:1}))}refineRange(e){if(e){let t=Ea(e,this.props.dateEnv);return t&&(t=Ti(t)),t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(t[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:r}=e;return t&&(t=this.skipHiddenDays(t)),r&&(r=this.skipHiddenDays(r,-1,!0)),t==null||r==null||t<r?{start:t,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?t:0)+7)%7];)e=G(e,t);return e}}function yn(n,e,t,r){return{instanceId:Se(),defId:n,range:e,forcedStartTzo:t??null,forcedEndTzo:r??null}}function _a(n,e,t,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(n,t);if(s){let{allDay:l}=n;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function xe(n,e,t){let{dateEnv:r,pluginHooks:i,options:s}=t,{defs:l,instances:o}=n;o=_e(o,c=>!l[c.defId].recurringDef);for(let c in l){let u=l[c];if(u.recurringDef){let{duration:d}=u.recurringDef;d||(d=u.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let g=Ra(u,d,e,r,i.recurringTypes);for(let h of g){let f=yn(c,{start:h,end:r.add(h,d)});o[f.instanceId]=f}}}return{defs:l,instances:o}}function Ra(n,e,t,r,i){let l=i[n.recurringDef.typeId].expand(n.recurringDef.typeData,{start:r.subtract(t.start,e),end:t.end},r);return n.allDay&&(l=l.map(H)),l}const _t={id:String,groupId:String,title:String,url:String,interactive:Boolean},ki={start:b,end:b,date:b,allDay:Boolean},Ta=Object.assign(Object.assign(Object.assign({},_t),ki),{extendedProps:b});function Mi(n,e,t,r,i=bn(t),s,l){let{refined:o,extra:c}=Oi(n,t,i),u=ka(e,t),d=_a(o,u,t.dateEnv,t.pluginHooks.recurringTypes);if(d){let h=En(o,c,e?e.sourceId:"",d.allDay,!!d.duration,t,s);return h.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:h,instance:null}}let g=xa(o,u,t,r);if(g){let h=En(o,c,e?e.sourceId:"",g.allDay,g.hasEnd,t,s),f=yn(h.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function Oi(n,e,t=bn(e)){return dn(n,t)}function bn(n){return Object.assign(Object.assign(Object.assign({},Tt),Ta),n.pluginHooks.eventRefiners)}function En(n,e,t,r,i,s,l){let o={title:n.title||"",groupId:n.groupId||"",publicId:n.id||"",url:n.url||"",recurringDef:null,defId:(l&&n.id?l[n.id]:"")||Se(),sourceId:t,allDay:r,hasEnd:i,interactive:n.interactive,ui:xt(n,s),extendedProps:Object.assign(Object.assign({},n.extendedProps||{}),e)};for(let c of s.pluginHooks.eventDefMemberAdders)Object.assign(o,c(n));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function xa(n,e,t,r){let{allDay:i}=n,s,l=null,o=!1,c,u=null,d=n.start!=null?n.start:n.date;if(s=t.dateEnv.createMarkerMeta(d),s)l=s.marker;else if(!r)return null;return n.end!=null&&(c=t.dateEnv.createMarkerMeta(n.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),i&&l&&(l=H(l)),c&&(u=c.marker,i&&(u=H(u)),l&&u<=l&&(u=null)),u?o=!0:r||(o=t.options.forceEventDuration||!1,u=t.dateEnv.add(l,i?t.options.defaultAllDayEventDuration:t.options.defaultTimedEventDuration)),{allDay:i,hasEnd:o,range:{start:l,end:u},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}function ka(n,e){let t=null;return n&&(t=n.defaultAllDay),t==null&&(t=e.options.defaultAllDay),t}function Ke(n,e,t,r,i,s){let l=$(),o=bn(t);for(let c of n){let u=Mi(c,e,t,r,o,i,s);u&&An(u,l)}return l}function An(n,e=$()){return e.defs[n.def.defId]=n.def,n.instance&&(e.instances[n.instance.instanceId]=n.instance),e}function Sn(n,e){let t=n.instances[e];if(t){let r=n.defs[t.defId],i=Rt(n,s=>Ma(r,s));return i.defs[r.defId]=r,i.instances[t.instanceId]=t,i}return $()}function Ma(n,e){return!!(n.groupId&&n.groupId===e.groupId)}function $(){return{defs:{},instances:{}}}function Cn(n,e){return{defs:Object.assign(Object.assign({},n.defs),e.defs),instances:Object.assign(Object.assign({},n.instances),e.instances)}}function Rt(n,e){let t=_e(n.defs,e),r=_e(n.instances,i=>t[i.defId]);return{defs:t,instances:r}}function Oa(n,e){let{defs:t,instances:r}=n,i={},s={};for(let l in t)e.defs[l]||(i[l]=t[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function Ia(n,e){return Array.isArray(n)?Ke(n,null,e,!0):typeof n=="object"&&n?Ke([n],null,e,!0):n!=null?String(n):null}function Ii(n){return Array.isArray(n)?n:typeof n=="string"?n.split(/\s+/):[]}const Tt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:b,overlap:b,allow:b,className:Ii,classNames:Ii,color:String,backgroundColor:String,borderColor:String,textColor:String},Na={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function xt(n,e){let t=Ia(n.constraint,e);return{display:n.display||null,startEditable:n.startEditable!=null?n.startEditable:n.editable,durationEditable:n.durationEditable!=null?n.durationEditable:n.editable,constraints:t!=null?[t]:[],overlap:n.overlap!=null?n.overlap:null,allows:n.allow!=null?[n.allow]:[],backgroundColor:n.backgroundColor||n.color||"",borderColor:n.borderColor||n.color||"",textColor:n.textColor||"",classNames:(n.className||[]).concat(n.classNames||[])}}function Ni(n){return n.reduce(Ba,Na)}function Ba(n,e){return{display:e.display!=null?e.display:n.display,startEditable:e.startEditable!=null?e.startEditable:n.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:n.durationEditable,constraints:n.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:n.overlap,allows:n.allows.concat(e.allows),backgroundColor:e.backgroundColor||n.backgroundColor,borderColor:e.borderColor||n.borderColor,textColor:e.textColor||n.textColor,classNames:n.classNames.concat(e.classNames)}}const Pa={id:String,defaultAllDay:Boolean,url:String,format:String,events:b,eventDataTransform:b,success:b,failure:b};function Bi(n,e,t=Pi(e)){let r;if(typeof n=="string"?r={url:n}:typeof n=="function"||Array.isArray(n)?r={events:n}:typeof n=="object"&&n&&(r=n),r){let{refined:i,extra:s}=dn(r,t),l=Va(i,e);if(l)return{_raw:n,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Se(),sourceDefId:l.sourceDefId,meta:l.meta,ui:xt(i,e),extendedProps:s}}return null}function Pi(n){return Object.assign(Object.assign(Object.assign({},Tt),Pa),n.pluginHooks.eventSourceRefiners)}function Va(n,e){let t=e.pluginHooks.eventSourceDefs;for(let r=t.length-1;r>=0;r-=1){let s=t[r].parseMeta(n);if(s)return{sourceDefId:r,meta:s}}return null}function Ha(n,e,t,r,i){switch(e.type){case"RECEIVE_EVENTS":return La(n,t[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Ua(n,t[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return ja(n,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Cn(n,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?xe(n,r.activeRange,i):n;case"REMOVE_EVENTS":return Oa(n,e.eventStore);case"REMOVE_EVENT_SOURCE":return Ui(n,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Rt(n,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return $();default:return n}}function La(n,e,t,r,i,s){if(e&&t===e.latestFetchId){let l=Ke(Vi(i,e,s),e,s);return r&&(l=xe(l,r,s)),Cn(Ui(n,e.sourceId),l)}return n}function Ua(n,e,t,r,i){const{defIdMap:s,instanceIdMap:l}=za(n);let o=Ke(Vi(t,e,i),e,i,!1,s,l);return xe(o,r,i)}function Vi(n,e,t){let r=t.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(n=Hi(n,i)),r&&(n=Hi(n,r)),n}function Hi(n,e){let t;if(!e)t=n;else{t=[];for(let r of n){let i=e(r);i?t.push(i):i==null&&t.push(r)}}return t}function ja(n,e,t,r){return t&&(e=xe(e,t,r)),Cn(n,e)}function Li(n,e,t){let{defs:r}=n,i=le(n.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:t.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:t.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:t.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:t.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function Ui(n,e){return Rt(n,t=>t.sourceId!==e)}function Fa(n,e){return{defs:n.defs,instances:_e(n.instances,t=>!e[t.instanceId])}}function za(n){const{defs:e,instances:t}=n,r={},i={};for(let s in e){const l=e[s],{publicId:o}=l;o&&(r[o]=s)}for(let s in t){const l=t[s],o=e[l.defId],{publicId:c}=o;c&&(i[c]=s)}return{defIdMap:r,instanceIdMap:i}}class kt{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){Wa(this.handlers,e,t)}off(e,t){Ga(this.handlers,e,t)}trigger(e,...t){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Wa(n,e,t){(n[e]||(n[e]=[])).push(t)}function Ga(n,e,t){t?n[e]&&(n[e]=n[e].filter(r=>r!==t)):delete n[e]}const qa={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Qa(n,e){return Ke(Ya(n),null,e)}function Ya(n){let e;return n===!0?e=[{}]:Array.isArray(n)?e=n.filter(t=>t.daysOfWeek):typeof n=="object"&&n?e=[n]:e=[],e=e.map(t=>Object.assign(Object.assign({},qa),t)),e}function ji(n,e,t){t.emitter.trigger("select",Object.assign(Object.assign({},wn(n,t)),{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view}))}function Za(n,e){e.emitter.trigger("unselect",{jsEvent:n?n.origEvent:null,view:e.viewApi||e.calendarApi.view})}function wn(n,e){let t={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(t,r(n,e));return Object.assign(t,cc(n,e.dateEnv)),t}function Fi(n,e,t){let{dateEnv:r,options:i}=t,s=e;return n?(s=H(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Dn(n,e,t,r){let i=Mt(n.defs,e),s=$();for(let l in n.defs){let o=n.defs[l];s.defs[l]=$a(o,i[l],t,r)}for(let l in n.instances){let o=n.instances[l],c=s.defs[o.defId];s.instances[l]=Xa(o,c,i[o.defId],t,r)}return s}function $a(n,e,t,r){let i=t.standardProps||{};i.hasEnd==null&&e.durationEditable&&(t.startDelta||t.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},n),i),{ui:Object.assign(Object.assign({},n.ui),i.ui)});t.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),t.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,t,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Xa(n,e,t,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,o=r.standardProps&&r.standardProps.hasEnd===!1,c=Object.assign({},n);return l&&(c.range=Ri(c.range)),r.datesDelta&&t.startEditable&&(c.range={start:s.add(c.range.start,r.datesDelta),end:s.add(c.range.end,r.datesDelta)}),r.startDelta&&t.durationEditable&&(c.range={start:s.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&t.durationEditable&&(c.range={start:c.range.start,end:s.add(c.range.end,r.endDelta)}),o&&(c.range={start:c.range.start,end:Fi(e.allDay,c.range.start,i)}),e.allDay&&(c.range={start:H(c.range.start),end:H(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Fi(e.allDay,c.range.start,i)),c}class Le{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 U{constructor(e,t,r){this._context=e,this._def=t,this._instance=r||null}setProp(e,t){if(e in ki)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")t=_t[e](t),this.mutate({standardProps:{publicId:t}});else if(e in _t)t=_t[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Tt){let r=Tt[e](t);e==="color"?r={backgroundColor:t,borderColor:t}:e==="editable"?r={startEditable:t,durationEditable:t}:r={[e]:t},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=He(s.start,i,r,t.granularity);t.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,t={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=He(this._instance.range.end,i,r,t.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),o;if(l&&!(t!=null&&(o=i.createMarker(t),!o))&&this._instance){let c=this._instance.range;r.allDay===!0&&(c=Ri(c));let u=He(c.start,l,i,r.granularity);if(o){let d=He(c.end,o,i,r.granularity);Ao(u,d)?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}}moveStart(e){let t=I(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=I(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=I(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let r={allDay:e},{maintainDuration:i}=t;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:t}=this._context,r=this._instance,i=j(e);return this._def.hasEnd?t.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):t.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=Sn(s,t.instanceId);l=Dn(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let c=new U(i,r,t);this._def=l.defs[r.defId],this._instance=l.instances[t.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:c,event:this,relatedEvents:ke(l,i,t),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,t=zi(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 Le(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:r}=t,{startStr:i,endStr:s}=this,l={allDay:t.allDay};return t.title&&(l.title=t.title),i&&(l.start=i),s&&(l.end=s),t.publicId&&(l.id=t.publicId),t.groupId&&(l.groupId=t.groupId),t.url&&(l.url=t.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,t.extendedProps):l.extendedProps=t.extendedProps),l}toJSON(){return this.toPlainObject()}}function zi(n){let e=n._def,t=n._instance;return{defs:{[e.defId]:e},instances:t?{[t.instanceId]:t}:{}}}function ke(n,e,t){let{defs:r,instances:i}=n,s=[],l=t?t.instanceId:"";for(let o in i){let c=i[o],u=r[c.defId];c.instanceId!==l&&s.push(new U(e,u,c))}return s}function Wi(n,e,t,r){let i={},s={},l={},o=[],c=[],u=Mt(n.defs,e);for(let d in n.defs){let g=n.defs[d];u[g.defId].display==="inverse-background"&&(g.groupId?(i[g.groupId]=[],l[g.groupId]||(l[g.groupId]=g)):s[d]=[])}for(let d in n.instances){let g=n.instances[d],h=n.defs[g.defId],f=u[h.defId],y=g.range,p=!h.allDay&&r?Ti(y,r):y,m=Te(p,t);m&&(f.display==="inverse-background"?h.groupId?i[h.groupId].push(m):s[g.defId].push(m):f.display!=="none"&&(f.display==="background"?o:c).push({def:h,ui:f,instance:g,range:m,isStart:p.start&&p.start.valueOf()===m.start.valueOf(),isEnd:p.end&&p.end.valueOf()===m.end.valueOf()}))}for(let d in i){let g=i[d],h=_i(g,t);for(let f of h){let y=l[d],p=u[y.defId];o.push({def:y,ui:p,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let d in s){let g=s[d],h=_i(g,t);for(let f of h)o.push({def:n.defs[d],ui:u[d],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:o,fg:c}}function Ja(n){return n.ui.display==="background"||n.ui.display==="inverse-background"}function Gi(n,e){n.fcSeg=e}function Ue(n){return n.fcSeg||n.parentNode.fcSeg||null}function Mt(n,e){return le(n,t=>qi(t,e))}function qi(n,e){let t=[];return e[""]&&t.push(e[""]),e[n.defId]&&t.push(e[n.defId]),t.push(n.ui),Ni(t)}function Qi(n,e){let t=n.map(Ka);return t.sort((r,i)=>po(r,i,e)),t.map(r=>r._seg)}function Ka(n){let{eventRange:e}=n,t=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},t.extendedProps),t),{id:t.publicId,start:i,end:s,duration:s-i,allDay:Number(t.allDay),_seg:n})}function ec(n,e){let{pluginHooks:t}=e,r=t.isDraggableTransformers,{def:i,ui:s}=n.eventRange,l=s.startEditable;for(let o of r)l=o(l,i,s,e);return l}function tc(n,e){return n.isStart&&n.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function nc(n,e){return n.isEnd&&n.eventRange.ui.durationEditable}function Yi(n,e,t,r,i,s,l){let{dateEnv:o,options:c}=t,{displayEventTime:u,displayEventEnd:d}=c,g=n.eventRange.def,h=n.eventRange.instance;u==null&&(u=r!==!1),d==null&&(d=i!==!1);let f=h.range.start,y=h.range.end,p=n.start||n.eventRange.range.start,m=n.end||n.eventRange.range.end,A=H(f).valueOf()===H(p).valueOf(),E=H(me(y,-1)).valueOf()===H(me(m,-1)).valueOf();return u&&!g.allDay&&(A||E)?(p=A?f:p,m=E?y:m,d&&g.hasEnd?o.formatRange(p,m,e,{forcedStartTzo:h.forcedStartTzo,forcedEndTzo:h.forcedEndTzo}):o.format(p,e,{forcedTzo:h.forcedStartTzo})):""}function be(n,e,t){let r=n.eventRange.range;return{isPast:r.end<=(t||e.start),isFuture:r.start>=(t||e.end),isToday:e&&ce(e,r.start)}}function rc(n){let e=["fc-event"];return n.isMirror&&e.push("fc-event-mirror"),n.isDraggable&&e.push("fc-event-draggable"),(n.isStartResizable||n.isEndResizable)&&e.push("fc-event-resizable"),n.isDragging&&e.push("fc-event-dragging"),n.isResizing&&e.push("fc-event-resizing"),n.isSelected&&e.push("fc-event-selected"),n.isStart&&e.push("fc-event-start"),n.isEnd&&e.push("fc-event-end"),n.isPast&&e.push("fc-event-past"),n.isToday&&e.push("fc-event-today"),n.isFuture&&e.push("fc-event-future"),e}function Zi(n){return n.instance?n.instance.instanceId:`${n.def.defId}:${n.range.start.toISOString()}`}function $i(n,e){let{def:t,instance:r}=n.eventRange,{url:i}=t;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:o}=l;return o==null&&(o=t.interactive,o==null&&(o=!!s.hasHandlers("eventClick"))),o?si(c=>{s.trigger("eventClick",{el:c.target,event:new U(e,t,r),jsEvent:c,view:e.viewApi})}):{}}const ic={start:b,end:b,allDay:Boolean};function sc(n,e,t){let r=lc(n,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(t==null)return null;i.end=e.add(i.start,t)}return r}function lc(n,e){let{refined:t,extra:r}=dn(n,ic),i=t.start?e.createMarkerMeta(t.start):null,s=t.end?e.createMarkerMeta(t.end):null,{allDay:l}=t;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function oc(n,e){return Sa(n.range,e.range)&&n.allDay===e.allDay&&ac(n,e)}function ac(n,e){for(let t in e)if(t!=="range"&&t!=="allDay"&&n[t]!==e[t])return!1;for(let t in n)if(!(t in e))return!1;return!0}function cc(n,e){return Object.assign(Object.assign({},Ji(n.range,e,n.allDay)),{allDay:n.allDay})}function Xi(n,e,t){return Object.assign(Object.assign({},Ji(n,e,t)),{timeZone:e.timeZone})}function Ji(n,e,t){return{start:e.toDate(n.start),end:e.toDate(n.end),startStr:e.formatIso(n.start,{omitTime:t}),endStr:e.formatIso(n.end,{omitTime:t})}}function dc(n,e,t){let r=Oi({editable:!1},t),i=En(r.refined,r.extra,"",n.allDay,!0,t);return{def:i,ui:qi(i,e),instance:yn(i.defId,n.range),range:n.range,isStart:!0,isEnd:!0}}function uc(n,e,t){let r=!1,i=function(o){r||(r=!0,e(o))},s=function(o){r||(r=!0,t(o))},l=n(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class Ki extends Error{constructor(e,t){super(e),this.response=t}}function fc(n,e,t){n=n.toUpperCase();const r={method:n};return n==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(t):(r.body=new URLSearchParams(t),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Ki("Failure parsing JSON",i)});throw new Ki("Request failed",i)})}let _n;function es(){return _n==null&&(_n=hc()),_n}function hc(){if(typeof document>"u")return!0;let n=document.createElement("div");n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.innerHTML="<table><tr><td><div></div></td></tr></table>",n.querySelector("table").style.height="100px",n.querySelector("div").style.height="100%",document.body.appendChild(n);let t=n.querySelector("div").offsetHeight>0;return document.body.removeChild(n),t}class pc extends V{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Ct(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Ct(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:r}=this.state,i=r||t.height==="auto"||t.contentHeight==="auto",s=!i&&t.height!=null?t.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return es()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}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 je{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function gc(n,e){return{component:n,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Rn(n){return{[n.component.uid]:n}}const Tn={};class mc{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:r}=this;r.currentCalendarOptionsRefiners[e]?r.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:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let r=this.getCurrentData(),i;t=t||"day",i=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let o in t)i.push(o);for(s=0;s<i.length;s+=1)if(l=t[i[s]],l&&l.singleUnit===e)return l;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:Je(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),r=I(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),j(t))}formatRange(e,t,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(t),j(r),r)}formatIso(e,t){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:t})}select(e,t){let r;t==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:t};let i=this.getCurrentData(),s=sc(r,i.dateEnv,I({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),ji(s,null,i))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Za(e,t))}addEvent(e,t){if(e instanceof U){let l=e._def,o=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:An({def:l,instance:o})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(t instanceof Le)i=t.internalEventSource;else if(typeof t=="boolean")t&&([i]=fn(r.eventSources));else if(t!=null){let l=this.getEventSourceById(t);if(!l)return console.warn(`Could not find an event source with ID "${t}"`),null;i=l.internalEventSource}let s=Mi(e,i,r,!1);if(s){let l=new U(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:An(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:zi(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:r,instances:i}=t.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new U(t,l,null);for(let o in i){let c=i[o];if(c.defId===l.defId)return new U(t,l,c)}}}return null}getEvents(){let e=this.getCurrentData();return ke(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,r=[];for(let i in t)r.push(new Le(e,t[i]));return r}getEventSourceById(e){let t=this.getCurrentData(),r=t.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new Le(t,r[i]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Le)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=Bi(e,t);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Le(t,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=I(e);t&&this.trigger("_scrollRequest",{time:t})}}function vc(n,e){return n.left>=e.left&&n.left<e.right&&n.top>=e.top&&n.top<e.bottom}function ts(n,e){let t={left:Math.max(n.left,e.left),right:Math.min(n.right,e.right),top:Math.max(n.top,e.top),bottom:Math.min(n.bottom,e.bottom)};return t.left<t.right&&t.top<t.bottom?t:!1}function yc(n,e){return{left:Math.min(Math.max(n.left,e.left),e.right),top:Math.min(Math.max(n.top,e.top),e.bottom)}}function bc(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function Ec(n,e){return{left:n.left-e.left,top:n.top-e.top}}const xn=$();class Ac{constructor(){this.getKeysForEventDefs=T(this._getKeysForEventDefs),this.splitDateSelection=T(this._splitDateSpan),this.splitEventStore=T(this._splitEventStore),this.splitIndividualUi=T(this._splitIndividualUi),this.splitEventDrag=T(this._splitInteraction),this.splitEventResize=T(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),l=this.splitEventStore(e.eventStore,r),o=this.splitEventDrag(e.eventDrag),c=this.splitEventResize(e.eventResize),u={};this.eventUiBuilders=le(t,(d,g)=>this.eventUiBuilders[g]||T(Sc));for(let d in t){let g=t[d],h=l[d]||xn,f=this.eventUiBuilders[d];u[d]={businessHours:g.businessHours||e.businessHours,dateSelection:i[d]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],g.ui,s[d]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[d]||null,eventResize:c[d]||null}}return u}_splitDateSpan(e){let t={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)t[i]=e}return t}_getKeysForEventDefs(e){return le(e.defs,t=>this.getKeysForEventDef(t))}_splitEventStore(e,t){let{defs:r,instances:i}=e,s={};for(let l in r)for(let o of t[l])s[o]||(s[o]=$()),s[o].defs[l]=r[l];for(let l in i){let o=i[l];for(let c of t[o.defId])s[c]&&(s[c].instances[l]=o)}return s}_splitIndividualUi(e,t){let r={};for(let i in e)if(i)for(let s of t[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let t={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),l=o=>{t[o]||(t[o]={affectedEvents:r[o]||xn,mutatedEvents:s[o]||xn,isEvent:e.isEvent})};for(let o in r)l(o);for(let o in s)l(o)}return t}}function Sc(n,e,t){let r=[];n&&r.push(n),e&&r.push(e);let i={"":Ni(r)};return t&&Object.assign(i,t),i}function ns(n,e,t,r){return{dow:n.getUTCDay(),isDisabled:!!(r&&!ce(r.activeRange,n)),isOther:!!(r&&!ce(r.currentRange,n)),isToday:!!(e&&ce(e,n)),isPast:!!(e&&n<e.start),isFuture:!!(e&&n>=e.end)}}function kn(n,e){let t=["fc-day",`fc-day-${_o[n.dow]}`];return n.isDisabled?t.push("fc-day-disabled"):(n.isToday&&(t.push("fc-day-today"),t.push(e.getClass("today"))),n.isPast&&t.push("fc-day-past"),n.isFuture&&t.push("fc-day-future"),n.isOther&&t.push("fc-day-other")),t}const Cc=j({year:"numeric",month:"long",day:"numeric"}),wc=j({week:"long"});function Ot(n,e,t="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=n;let o=i.format(e,t==="week"?wc:Cc);if(s.navLinks){let c=i.toDate(e);const u=d=>{let g=t==="day"?s.navLinkDayClick:t==="week"?s.navLinkWeekClick:null;typeof g=="function"?g.call(l,i.toDate(e),d):(typeof g=="string"&&(t=g),l.zoomTo(e,t))};return Object.assign({title:Ze(s.navLinkHint,[o,c],o),"data-navlink":""},r?ii(u):{onClick:u})}return{"aria-label":o}}let Mn=null;function Dc(){return Mn===null&&(Mn=_c()),Mn}function _c(){let n=document.createElement("div");Ye(n,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),n.innerHTML="<div></div>",document.body.appendChild(n);let t=n.firstChild.getBoundingClientRect().left>n.getBoundingClientRect().left;return Kt(n),t}let On;function Rc(){return On||(On=Tc()),On}function Tc(){let n=document.createElement("div");n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",document.body.appendChild(n);let e=rs(n);return document.body.removeChild(n),e}function rs(n){return{x:n.offsetHeight-n.clientHeight,y:n.offsetWidth-n.clientWidth}}function xc(n,e=!1){let t=window.getComputedStyle(n),r=parseInt(t.borderLeftWidth,10)||0,i=parseInt(t.borderRightWidth,10)||0,s=parseInt(t.borderTopWidth,10)||0,l=parseInt(t.borderBottomWidth,10)||0,o=rs(n),c=o.y-r-i,u=o.x-s-l,d={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return Dc()&&t.direction==="rtl"?d.scrollbarLeft=c:d.scrollbarRight=c,e&&(d.paddingLeft=parseInt(t.paddingLeft,10)||0,d.paddingRight=parseInt(t.paddingRight,10)||0,d.paddingTop=parseInt(t.paddingTop,10)||0,d.paddingBottom=parseInt(t.paddingBottom,10)||0),d}function kc(n,e=!1,t){let r=In(n),i=xc(n,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function In(n){let e=n.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function Mc(n){let e=is(n),t=n.getBoundingClientRect();for(let r of e){let i=ts(t,r.getBoundingClientRect());if(i)t=i;else return null}return t}function is(n){let e=[];for(;n instanceof HTMLElement;){let t=window.getComputedStyle(n);if(t.position==="fixed")break;/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)&&e.push(n),n=n.parentNode}return e}class Fe{constructor(e,t,r,i){this.els=t;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let t=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();t.push(s.left-e),r.push(s.right-e)}this.lefts=t,this.rights=r}buildElVerticals(e){let t=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();t.push(s.top-e),r.push(s.bottom-e)}this.tops=t,this.bottoms=r}leftToIndex(e){let{lefts:t,rights:r}=this,i=t.length,s;for(s=0;s<i;s+=1)if(e>=t[s]&&e<r[s])return s}topToIndex(e){let{tops:t,bottoms:r}=this,i=t.length,s;for(s=0;s<i;s+=1)if(e>=t[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return It(this.tops||[],e.tops||[])&&It(this.bottoms||[],e.bottoms||[])&&It(this.lefts||[],e.lefts||[])&&It(this.rights||[],e.rights||[])}}function It(n,e){const t=n.length;if(t!==e.length)return!1;for(let r=0;r<t;r++)if(Math.round(n[r])!==Math.round(e[r]))return!1;return!0}class Nn{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Oc extends Nn{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Ic extends Nn{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class se extends V{constructor(){super(...arguments),this.uid=Se()}prepareHits(){}queryHit(e,t,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!W(e,".fc-event-mirror")}isValidDateDownEl(e){return!W(e,".fc-event:not(.fc-bg-event)")&&!W(e,".fc-more-link")&&!W(e,"a[data-navlink]")&&!W(e,".fc-popover")}}class ss{constructor(e=t=>t.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 r of e)this.insertEntry(r,t);return t}insertEntry(e,t){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,r){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},t),{span:Pn(t.span,e.touchingEntry.span)});r.push(i),this.splitEntry(t,e.touchingEntry,r)}else r.push(t)}splitEntry(e,t,r){let i=e.span,s=t.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,t){let{entriesByLevel:r,levelCoords:i}=this;t.lateral===-1?(Vn(i,t.level,t.levelCoord),Vn(r,t.level,[e])):Vn(r[t.level],t.lateral,e),this.stackCnts[Me(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=t.length,o=0,c=-1,u=-1,d=null,g=0;for(let y=0;y<l;y+=1){const p=t[y];if(!i&&p>=o+this.getEntryThickness(e))break;let m=r[y],A,E=Hn(m,e.span.start,Bn),D=E[0]+E[1];for(;(A=m[D])&&A.span.start<e.span.end;){let S=p+this.getEntryThickness(A);S>o&&(o=S,d=A,c=y,u=D),S===o&&(g=Math.max(g,s[Me(A)]+1)),D+=1}}let h=0;if(d)for(h=c+1;h<l&&t[h]<o;)h+=1;let f=-1;return h<l&&t[h]===o&&(f=Hn(r[h],e.span.end,Bn)[0]),{touchingLevel:c,touchingLateral:u,touchingEntry:d,stackCnt:g,levelCoord:o,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],o=t[s];for(let c of l)i.push(Object.assign(Object.assign({},c),{thickness:this.getEntryThickness(c),levelCoord:o}))}return i}}function Bn(n){return n.span.end}function Me(n){return n.index+":"+n.span.start}function Nc(n){let e=[];for(let t of n){let r=[],i={span:t.span,entries:[t]};for(let s of e)Pn(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:Bc(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function Bc(n,e){return{start:Math.min(n.start,e.start),end:Math.max(n.end,e.end)}}function Pn(n,e){let t=Math.max(n.start,e.start),r=Math.min(n.end,e.end);return t<r?{start:t,end:r}:null}function Vn(n,e,t){n.splice(e,0,t)}function Hn(n,e,t){let r=0,i=n.length;if(!i||e<t(n[r]))return[0,0];if(e>t(n[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=t(n[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class Pc{constructor(e,t){this.emitter=new kt}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Ln={};function Vc(n,e){return!n||e>10?j({weekday:"short"}):e>1?j({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):j({weekday:"long"})}const ls="fc-col-header-cell";function os(n){return n.text}class Hc extends V{render(){let{dateEnv:e,options:t,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:o}=s,c=ns(l,s.todayRange,null,o),u=[ls].concat(kn(c,r)),d=e.format(l,s.dayHeaderFormat),g=!c.isDisabled&&s.colCnt>1?Ot(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:d}),c);return v(Z,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":c.isDisabled?void 0:on(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:os,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},f=>v("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&v(f,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Lc=j({weekday:"long"});class Uc extends V{render(){let{props:e}=this,{dateEnv:t,theme:r,viewApi:i,options:s}=this.context,l=G(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=t.format(l,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:l},o),{view:i}),e.extraRenderProps),{text:c});return v(Z,{elTag:"th",elClasses:[ls,...kn(o,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:os,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},d=>v("div",{className:"fc-scrollgrid-sync-inner"},v(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(l,Lc)}})))}}class et extends Y{constructor(e,t){super(e,t),this.initialNowDate=Je(t.options.now,t.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,r=me(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=t.dateEnv.startOf(r,e.unit),s=t.dateEnv.add(i,I(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:as(i)},nextState:{nowDate:s,todayRange:as(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}et.contextType=oe;function as(n){let e=H(n),t=G(e,1);return{start:e,end:t}}class cs extends V{constructor(){super(...arguments),this.createDayHeaderFormatter=T(jc)}render(){let{context:e}=this,{dates:t,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,t.length);return v(et,{unit:"day"},(o,c)=>v("tr",{role:"row"},s&&s("day"),t.map(u=>i?v(Hc,{key:u.toISOString(),date:u,dateProfile:r,todayRange:c,colCnt:t.length,dayHeaderFormat:l}):v(Uc,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:l}))))}}function jc(n,e,t){return n||Vc(e,t)}class ds{constructor(e,t){let r=e.start,{end:i}=e,s=[],l=[],o=-1;for(;r<i;)t.isHiddenDay(r)?s.push(o+.5):(o+=1,s.push(o),l.push(r)),r=G(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let t=this.getDateDayIndex(e.start),r=this.getDateDayIndex(G(e.end,-1)),i=Math.max(0,t),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:t===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:t}=this,r=Math.floor(Ce(this.dates[0],e));return r<0?t[0]-1:r>=t.length?t[t.length-1]+1:t[r]}}class us{constructor(e,t){let{dates:r}=e,i,s,l;if(t){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(t,i));e.push(r)}return e}buildCell(e,t){let r=this.daySeries.dates[e*this.colCnt+t];return{key:r.toISOString(),date:r}}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,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,o=s;for(;o<=l;){let c=Math.floor(o/t),u=Math.min((c+1)*t,l+1);i.push({row:c,firstCol:o%t,lastCol:(u-1)%t,isStart:r.isStart&&o===s,isEnd:r.isEnd&&u-1===l}),o=u}}return i}}class fs{constructor(){this.sliceBusinessHours=T(this._sliceBusinessHours),this.sliceDateSelection=T(this._sliceDateSpan),this.sliceEventStore=T(this._sliceEventStore),this.sliceEventDrag=T(this._sliceInteraction),this.sliceEventResize=T(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,r,i,...s){let{eventUiBases:l}=e,o=this.sliceEventStore(e.eventStore,l,t,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,r,i,...s),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,t,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,t,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,t,r,i,...s){return this._sliceDateSpan({range:{start:e,end:me(e,1)},allDay:!1},t,r,{},i,...s)}_sliceBusinessHours(e,t,r,i,...s){return e?this._sliceEventStore(xe(e,Nt(t,!!r),i),{},t,r,...s).bg:[]}_sliceEventStore(e,t,r,i,...s){if(e){let l=Wi(e,t,Nt(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,r,i,...s){if(!e)return null;let l=Wi(e.mutatedEvents,t,Nt(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,r,i,s,...l){if(!e)return[];let o=Nt(t,!!r),c=Te(e.range,o);if(c){e=Object.assign(Object.assign({},e),{range:c});let u=dc(e,i,s),d=this.sliceRange(e.range,...l);for(let g of d)g.eventRange=u;return d}return[]}sliceEventRanges(e,t){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,t));return r}sliceEventRange(e,t){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:G(r.start,1)});let i=this.sliceRange(r,...t);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function Nt(n,e){let t=n.activeRange;return e?t:{start:me(t.start,n.slotMinTime.milliseconds),end:me(t.end,n.slotMaxTime.milliseconds-864e5)}}function hs(n,e,t){let{instances:r}=n.mutatedEvents;for(let i in r)if(!Dt(e.validRange,r[i].range))return!1;return ps({eventDrag:n},t)}function Fc(n,e,t){return Dt(e.validRange,n.range)?ps({dateSelection:n},t):!1}function ps(n,e){let t=e.getCurrentData(),r=Object.assign({businessHours:t.businessHours,dateSelection:"",eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},n);return(e.pluginHooks.isPropsValid||zc)(r,e)}function zc(n,e,t={},r){return!(n.eventDrag&&!Wc(n,e,t,r)||n.dateSelection&&!Gc(n,e,t,r))}function Wc(n,e,t,r){let i=e.getCurrentData(),s=n.eventDrag,l=s.mutatedEvents,o=l.defs,c=l.instances,u=Mt(o,s.isEvent?n.eventUiBases:{"":i.selectionConfig});r&&(u=le(u,r));let d=Fa(n.eventStore,s.affectedEvents.instances),g=d.defs,h=d.instances,f=Mt(g,n.eventUiBases);for(let y in c){let p=c[y],m=p.range,A=u[p.defId],E=o[p.defId];if(!gs(A.constraints,m,d,n.businessHours,e))return!1;let{eventOverlap:D}=e.options,S=typeof D=="function"?D:null;for(let O in h){let B=h[O];if(vn(m,B.range)&&(f[B.defId].overlap===!1&&s.isEvent||A.overlap===!1||S&&!S(new U(e,g[B.defId],B),new U(e,E,p))))return!1}let N=i.eventStore;for(let O of A.allows){let B=Object.assign(Object.assign({},t),{range:p.range,allDay:E.allDay}),x=N.defs[E.defId],z=N.instances[y],J;if(x?J=new U(e,x,z):J=new U(e,E),!O(wn(B,e),J))return!1}}return!0}function Gc(n,e,t,r){let i=n.eventStore,s=i.defs,l=i.instances,o=n.dateSelection,c=o.range,{selectionConfig:u}=e.getCurrentData();if(r&&(u=r(u)),!gs(u.constraints,c,i,n.businessHours,e))return!1;let{selectOverlap:d}=e.options,g=typeof d=="function"?d:null;for(let h in l){let f=l[h];if(vn(c,f.range)&&(u.overlap===!1||g&&!g(new U(e,s[f.defId],f),null)))return!1}for(let h of u.allows){let f=Object.assign(Object.assign({},t),o);if(!h(wn(f,e),null))return!1}return!0}function gs(n,e,t,r,i){for(let s of n)if(!Qc(qc(s,e,t,r,i),e))return!1;return!0}function qc(n,e,t,r,i){return n==="businessHours"?Un(xe(r,e,i)):typeof n=="string"?Un(Rt(t,s=>s.groupId===n)):typeof n=="object"&&n?Un(xe(n,e,i)):[]}function Un(n){let{instances:e}=n,t=[];for(let r in e)t.push(e[r].range);return t}function Qc(n,e){for(let t of n)if(Dt(t,e))return!0;return!1}const Bt=/^(visible|hidden)$/;class Yc extends V{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,ae(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:r}=e,i=t&&r,s=["fc-scroller"];return t&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),v("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Bt.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(Bt.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return Bt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Bt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class de{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,r)=>{let{depths:i,currentMap:s}=this,l=!1,o=!1;t!==null?(l=r in s,s[r]=t,i[r]=(i[r]||0)+1,o=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),o&&this.masterCallback(t,String(r)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),t}collect(e,t,r){return sa(this.currentMap,e,t,r)}getAll(){return fn(this.currentMap)}}function Zc(n){let e=ro(n,".fc-scrollgrid-shrink"),t=0;for(let r of e)t=Math.max(t,yo(r));return Math.ceil(t)}function ms(n,e){return n.liquid&&e.liquid}function $c(n,e){return e.maxHeight!=null||ms(n,e)}function Xc(n,e,t,r){let{expandRows:i}=t;return typeof e.content=="function"?e.content(t):v("table",{role:"presentation",className:[e.tableClassName,n.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:i?t.clientHeight:""}},t.tableColGroupNode,v(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(t):e.rowContent))}function Jc(n,e){return ge(n,e,ie)}function Kc(n,e){let t=[];for(let r of n){let i=r.span||1;for(let s=0;s<i;s+=1)t.push(v("col",{style:{width:r.width==="shrink"?ed(e):r.width||"",minWidth:r.minWidth||""}}))}return v("colgroup",{},...t)}function ed(n){return n??4}function td(n){for(let e of n)if(e.width==="shrink")return!0;return!1}function nd(n,e){let t=["fc-scrollgrid",e.theme.getClass("table")];return n&&t.push("fc-scrollgrid-liquid"),t}function rd(n,e){let t=["fc-scrollgrid-section",`fc-scrollgrid-section-${n.type}`,n.className];return e&&n.liquid&&n.maxHeight==null&&t.push("fc-scrollgrid-section-liquid"),n.isSticky&&t.push("fc-scrollgrid-section-sticky"),t}function jn(n){return v("div",{className:"fc-scrollgrid-sticky-shim",style:{width:n.clientWidth,minWidth:n.tableMinWidth}})}function Pt(n){let{stickyHeaderDates:e}=n;return(e==null||e==="auto")&&(e=n.height==="auto"||n.viewHeight==="auto"),e}function vs(n){let{stickyFooterScrollbar:e}=n;return(e==null||e==="auto")&&(e=n.height==="auto"||n.viewHeight==="auto"),e}class Fn extends V{constructor(){super(...arguments),this.processCols=T(e=>e,Jc),this.renderMicroColGroup=T(Kc),this.scrollerRefs=new de,this.scrollerElRefs=new de(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:r}=this,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,t.shrinkWidth),o=nd(e.liquid,r);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let c=i.length,u=0,d,g=[],h=[],f=[];for(;u<c&&(d=i[u]).type==="header";)g.push(this.renderSection(d,l,!0)),u+=1;for(;u<c&&(d=i[u]).type==="body";)h.push(this.renderSection(d,l,!1)),u+=1;for(;u<c&&(d=i[u]).type==="footer";)f.push(this.renderSection(d,l,!0)),u+=1;let y=!es();const p={role:"rowgroup"};return v("table",{role:"grid",className:o.join(" "),style:{height:e.height}},!!(!y&&g.length)&&v("thead",p,...g),!!(!y&&h.length)&&v("tbody",p,...h),!!(!y&&f.length)&&v("tfoot",p,...f),y&&v("tbody",p,...g,...h,...f))}renderSection(e,t,r){return"outerContent"in e?v(L,{key:e.key},e.outerContent):v("tr",{key:e.key,role:"presentation",className:rd(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,r))}renderChunkTd(e,t,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:o,scrollerClientHeights:c}=this.state,u=$c(s,e),d=ms(s,e),g=s.liquid?l?"scroll":u?"auto":"hidden":"visible",h=e.key,f=Xc(e,r,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&o[h]!==void 0?o[h]:null,clientHeight:c[h]!==void 0?c[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return v(i?"th":"td",{ref:r.elRef,role:"presentation"},v("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},v(Yc,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:g,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let r=id(this.props.sections,t);r&&ae(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return td(this.props.cols)?Zc(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Rc(),{scrollerRefs:t,scrollerElRefs:r}=this,i=!1,s={},l={};for(let o in t.currentMap){let c=t.currentMap[o];if(c&&c.needsYScrolling()){i=!0;break}}for(let o of this.props.sections){let c=o.key,u=r.currentMap[c];if(u){let d=u.parentNode;s[c]=Math.floor(d.getBoundingClientRect().width-(i?e.y:0)),l[c]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Fn.addStateEquality({scrollerClientWidths:ie,scrollerClientHeights:ie});function id(n,e){for(let t of n)if(t.key===e)return t;return null}class zn extends V{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Gi(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:r}=t,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,o={event:new U(t,s.def,s.instance),view:t.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&ec(i,t),isStartResizable:!e.disableResizing&&tc(i,t),isEndResizable:!e.disableResizing&&nc(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return v(Z,Object.assign({},e,{elRef:this.handleEl,elClasses:[...rc(o),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Gi(this.el,this.props.seg)}}class ys extends V{render(){let{props:e,context:t}=this,{options:r}=t,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,o=Yi(i,l,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return v(zn,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:$i(i,t),defaultGenerator:sd,timeText:o}),(c,u)=>v(L,null,v(c,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function sd(n){return v("div",{className:"fc-event-main-frame"},n.timeText&&v("div",{className:"fc-event-time"},n.timeText),v("div",{className:"fc-event-title-container"},v("div",{className:"fc-event-title fc-sticky"},n.event.title||v(L,null," "))))}const Wn=n=>v(oe.Consumer,null,e=>{let{options:t}=e,r={isAxis:n.isAxis,date:e.dateEnv.toDate(n.date),view:e.viewApi};return v(Z,Object.assign({},n,{elTag:n.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:t.nowIndicatorContent,classNameGenerator:t.nowIndicatorClassNames,didMount:t.nowIndicatorDidMount,willUnmount:t.nowIndicatorWillUnmount}))}),ld=j({day:"numeric"});class Gn extends V{constructor(){super(...arguments),this.refineRenderProps=vt(od)}render(){let{props:e,context:t}=this,{options:r}=t,i=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:r.monthStartFormat});return v(Z,Object.assign({},e,{elClasses:[...kn(i,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":on(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function qn(n){return!!(n.dayCellContent||mn("dayCellContent",n))}function od(n){let{date:e,dateEnv:t,dateProfile:r,isMonthStart:i}=n,s=ns(e,n.todayRange,null,r),l=n.showDayNumber?t.format(e,i?n.monthStartFormat:ld):"";return Object.assign(Object.assign(Object.assign({date:t.toDate(e),view:n.viewApi},s),{isMonthStart:i,dayNumberText:l}),n.extraRenderProps)}class bs extends V{render(){let{props:e}=this,{seg:t}=e;return v(zn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:ad,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 ad(n){let{title:e}=n.event;return e&&v("div",{className:"fc-event-title"},n.event.title)}function Es(n){return v("div",{className:`fc-${n}`})}const As=n=>v(oe.Consumer,null,e=>{let{dateEnv:t,options:r}=e,{date:i}=n,s=r.weekNumberFormat||n.defaultFormat,l=t.computeWeekNumber(i),o=t.format(i,s);return v(Z,Object.assign({},n,{renderProps:{num:l,text:o,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:cd,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function cd(n){return n.text}const Qn=10;class dd extends V{constructor(){super(...arguments),this.state={titleId:ht()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ae(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=ei(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return zl(v("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),v("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},v("span",{className:"fc-popover-title",id:i.titleId},r.title),v("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),v("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.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:r}=this.props,{rootEl:i}=this,s=Mc(t);if(s){let l=i.getBoundingClientRect(),o=r?W(t,".fc-scrollgrid").getBoundingClientRect().top:s.top,c=e?s.right-l.width:s.left;o=Math.max(o,Qn),c=Math.min(c,document.documentElement.clientWidth-Qn-l.width),c=Math.max(c,Qn);let u=i.offsetParent.getBoundingClientRect();Ye(i,{top:o-u.top,left:c-u.left})}}}class ud extends se{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:r}=this,{startDate:i,todayRange:s,dateProfile:l}=r,o=t.format(i,e.dayPopoverFormat);return v(Gn,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(c,u,d)=>v(dd,{elRef:d.ref,id:r.id,title:o,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},qn(e)&&v(c,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,t,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&t>=0&&t<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class Ss extends V{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:ht()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&ae(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:r}=this,{moreLinkClick:i}=r.options,s=Cs(t).start;function l(o){let{def:c,instance:u,range:d}=o.eventRange;return{event:new U(r,c,u),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.end),isStart:o.isStart,isEnd:o.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!t.allDayDate,allSegs:t.allSegs.map(l),hiddenSegs:t.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return v(oe.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:o}=s,{moreCnt:c}=e,u=Cs(e),d=typeof o=="function"?o.call(l,c):`+${c} ${o}`,g=Ze(s.moreLinkHint,[c],d),h={num:c,shortText:`+${c}`,text:d,view:i};return v(L,null,!!e.moreCnt&&v(Z,{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),ii(this.handleClick)),{title:g,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||fd,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),t.isPopoverOpen&&v(ud,{id:t.popoverId,startDate:u.start,endDate:u.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=W(this.linkEl,".fc-view-harness"))}}function fd(n){return n.text}function Cs(n){if(n.allDayDate)return{start:n.allDayDate,end:G(n.allDayDate,1)};let{hiddenSegs:e}=n;return{start:ws(e),end:pd(e)}}function ws(n){return n.reduce(hd).eventRange.range.start}function hd(n,e){return n.eventRange.range.start<e.eventRange.range.start?n:e}function pd(n){return n.reduce(gd).eventRange.range.end}function gd(n,e){return n.eventRange.range.end>e.eventRange.range.end?n:e}class md{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class vd extends md{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let r=!1;e.isActive?(t.set(e.id,e),r=!0):t.has(e.id)&&(t.delete(e.id),r=!0),r&&this.set(t)}}const yd=[],Ds={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"},_s=Object.assign(Object.assign({},Ds),{buttonHints:{prev:"Previous $0",next:"Next $0",today(n,e){return e==="day"?"Today":`This ${n}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(n){return`Show ${n} more event${n===1?"":"s"}`}});function bd(n){let e=n.length>0?n[0].code:"en",t=yd.concat(n),r={en:_s};for(let i of t)r[i.code]=i;return{map:r,defaultCode:e}}function Rs(n,e){return typeof n=="object"&&!Array.isArray(n)?Ts(n.code,[n.code],n):Ed(n,e)}function Ed(n,e){let t=[].concat(n||[]),r=Ad(t,e)||_s;return Ts(n,t,r)}function Ad(n,e){for(let t=0;t<n.length;t+=1){let r=n[t].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function Ts(n,e,t){let r=un([Ds,t],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:n,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(n),options:r}}function ue(n){return{id:Se(),name:n.name,premiumReleaseDate:n.premiumReleaseDate?new Date(n.premiumReleaseDate):void 0,deps:n.deps||[],reducers:n.reducers||[],isLoadingFuncs:n.isLoadingFuncs||[],contextInit:[].concat(n.contextInit||[]),eventRefiners:n.eventRefiners||{},eventDefMemberAdders:n.eventDefMemberAdders||[],eventSourceRefiners:n.eventSourceRefiners||{},isDraggableTransformers:n.isDraggableTransformers||[],eventDragMutationMassagers:n.eventDragMutationMassagers||[],eventDefMutationAppliers:n.eventDefMutationAppliers||[],dateSelectionTransformers:n.dateSelectionTransformers||[],datePointTransforms:n.datePointTransforms||[],dateSpanTransforms:n.dateSpanTransforms||[],views:n.views||{},viewPropsTransformers:n.viewPropsTransformers||[],isPropsValid:n.isPropsValid||null,externalDefTransforms:n.externalDefTransforms||[],viewContainerAppends:n.viewContainerAppends||[],eventDropTransformers:n.eventDropTransformers||[],componentInteractions:n.componentInteractions||[],calendarInteractions:n.calendarInteractions||[],themeClasses:n.themeClasses||{},eventSourceDefs:n.eventSourceDefs||[],cmdFormatter:n.cmdFormatter,recurringTypes:n.recurringTypes||[],namedTimeZonedImpl:n.namedTimeZonedImpl,initialView:n.initialView||"",elementDraggingImpl:n.elementDraggingImpl,optionChangeHandlers:n.optionChangeHandlers||{},scrollGridImpl:n.scrollGridImpl||null,listenerRefiners:n.listenerRefiners||{},optionRefiners:n.optionRefiners||{},propSetHandlers:n.propSetHandlers||{}}}function Sd(n,e){let t={},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 i(s){for(let l of s){const o=l.name,c=t[o];c===void 0?(t[o]=l.id,i(l.deps),r=wd(r,l)):c!==l.id&&console.warn(`Duplicate plugin '${o}'`)}}return n&&i(n),i(e),r}function Cd(){let n=[],e=[],t;return(r,i)=>((!t||!ge(r,n)||!ge(i,e))&&(t=Sd(r,i)),n=r,e=i,t)}function wd(n,e){return{premiumReleaseDate:Dd(n.premiumReleaseDate,e.premiumReleaseDate),reducers:n.reducers.concat(e.reducers),isLoadingFuncs:n.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:n.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},n.eventRefiners),e.eventRefiners),eventDefMemberAdders:n.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},n.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:n.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:n.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:n.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:n.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:n.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:n.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},n.views),e.views),viewPropsTransformers:n.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||n.isPropsValid,externalDefTransforms:n.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:n.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:n.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:n.calendarInteractions.concat(e.calendarInteractions),componentInteractions:n.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},n.themeClasses),e.themeClasses),eventSourceDefs:n.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||n.cmdFormatter,recurringTypes:n.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||n.namedTimeZonedImpl,initialView:n.initialView||e.initialView,elementDraggingImpl:n.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},n.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||n.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},n.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},n.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},n.propSetHandlers),e.propSetHandlers)}}function Dd(n,e){return n===void 0?e:e===void 0?n:new Date(Math.max(n.valueOf(),e.valueOf()))}class Ee extends Xe{}Ee.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ee.prototype.baseIconClass="fc-icon",Ee.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"},Ee.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ee.prototype.iconOverrideOption="buttonIcons",Ee.prototype.iconOverrideCustomButtonOption="icon",Ee.prototype.iconOverridePrefix="fc-icon-";function _d(n,e){let t={},r;for(r in n)Yn(r,t,n,e);for(r in e)Yn(r,t,n,e);return t}function Yn(n,e,t,r){if(e[n])return e[n];let i=Rd(n,e,t,r);return i&&(e[n]=i),i}function Rd(n,e,t,r){let i=t[n],s=r[n],l=d=>i&&i[d]!==null?i[d]:s&&s[d]!==null?s[d]:null,o=l("component"),c=l("superType"),u=null;if(c){if(c===n)throw new Error("Can't have a custom view type that references itself");u=Yn(c,e,t,r)}return!o&&u&&(o=u.component),o?{type:n,component:o,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),s?s.rawOptions:{})}:null}function xs(n){return le(n,Td)}function Td(n){let e=typeof n=="function"?{component:n}:n,{component:t}=e;return e.content?t=ks(e):t&&!(t.prototype instanceof V)&&(t=ks(Object.assign(Object.assign({},e),{content:t}))),{superType:e.type,component:t,rawOptions:e}}function ks(n){return e=>v(oe.Consumer,null,t=>v(Z,{elTag:"div",elClasses:Di(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:n.content,classNameGenerator:n.classNames,didMount:n.didMount,willUnmount:n.willUnmount}))}function xd(n,e,t,r){let i=xs(n),s=xs(e.views),l=_d(i,s);return le(l,o=>kd(o,s,e,t,r))}function kd(n,e,t,r,i){let s=n.overrides.duration||n.defaults.duration||r.duration||t.duration,l=null,o="",c="",u={};if(s&&(l=Md(s),l)){let h=sn(l);o=h.unit,h.value===1&&(c=o,u=e[o]?e[o].rawOptions:{})}let d=h=>{let f=h.buttonText||{},y=n.defaults.buttonTextKey;return y!=null&&f[y]!=null?f[y]:f[n.type]!=null?f[n.type]:f[c]!=null?f[c]:null},g=h=>{let f=h.buttonHints||{},y=n.defaults.buttonTextKey;return y!=null&&f[y]!=null?f[y]:f[n.type]!=null?f[n.type]:f[c]!=null?f[c]:null};return{type:n.type,component:n.component,duration:l,durationUnit:o,singleUnit:c,optionDefaults:n.defaults,optionOverrides:Object.assign(Object.assign({},u),n.overrides),buttonTextOverride:d(r)||d(t)||n.overrides.buttonText,buttonTextDefault:d(i)||n.defaults.buttonText||d($e)||n.type,buttonTitleOverride:g(r)||g(t)||n.overrides.buttonHint,buttonTitleDefault:g(i)||n.defaults.buttonHint||g($e)}}let Ms={};function Md(n){let e=JSON.stringify(n),t=Ms[e];return t===void 0&&(t=I(n),Ms[e]=t),t}function Od(n,e){switch(e.type){case"CHANGE_VIEW_TYPE":n=e.viewType}return n}function Id(n,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},n),{[e.optionName]:e.rawOptionValue});default:return n}}function Nd(n,e,t,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||t);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(n,t),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(n,t),i.isValid)return i;break}return n}function Bd(n,e,t){let r=e?e.activeRange:null;return Is({},Fd(n,t),r,t)}function Pd(n,e,t,r){let i=t?t.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Is(n,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Hd(n,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return t?Ns(n,i,r):n;case"FETCH_EVENT_SOURCES":return Zn(n,e.sourceIds?Ei(e.sourceIds):Bs(n,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return jd(n,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return n}}function Vd(n,e,t){let r=e?e.activeRange:null;return Zn(n,Bs(n,t),r,!0,t)}function Os(n){for(let e in n)if(n[e].isFetching)return!0;return!1}function Is(n,e,t,r){let i={};for(let s of e)i[s.sourceId]=s;return t&&(i=Ns(i,t,r)),Object.assign(Object.assign({},n),i)}function Hd(n,e){return _e(n,t=>t.sourceId!==e)}function Ns(n,e,t){return Zn(n,_e(n,r=>Ld(r,e,t)),e,!1,t)}function Ld(n,e,t){return Ps(n,t)?!t.options.lazyFetching||!n.fetchRange||n.isFetching||e.start<n.fetchRange.start||e.end>n.fetchRange.end:!n.latestFetchId}function Zn(n,e,t,r,i){let s={};for(let l in n){let o=n[l];e[l]?s[l]=Ud(o,t,r,i):s[l]=o}return s}function Ud(n,e,t,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[n.sourceDefId],o=Se();return l.fetch({eventSource:n,range:e,isRefetch:t,context:r},c=>{let{rawEvents:u}=c;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(s,u,c.response)||u),n.success&&(u=n.success.call(s,u,c.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:o,fetchRange:e,rawEvents:u})},c=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,c),u=!0),n.failure&&(n.failure(c),u=!0),u||console.warn(c.message,c),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:o,fetchRange:e,error:c})}),Object.assign(Object.assign({},n),{isFetching:!0,latestFetchId:o})}function jd(n,e,t,r){let i=n[e];return i&&t===i.latestFetchId?Object.assign(Object.assign({},n),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):n}function Bs(n,e){return _e(n,t=>Ps(t,e))}function Fd(n,e){let t=Pi(e),r=[].concat(n.eventSources||[]),i=[];n.initialEvents&&r.unshift(n.initialEvents),n.events&&r.unshift(n.events);for(let s of r){let l=Bi(s,e,t);l&&i.push(l)}return i}function Ps(n,e){return!e.pluginHooks.eventSourceDefs[n.sourceDefId].ignoreRange}function zd(n,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return n}}function Wd(n,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return n}}function Gd(n,e){let t;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return n}}function qd(n,e){let t;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return n}}function Qd(n,e,t,r,i){let s=n.headerToolbar?Vs(n.headerToolbar,n,e,t,r,i):null,l=n.footerToolbar?Vs(n.footerToolbar,n,e,t,r,i):null;return{header:s,footer:l}}function Vs(n,e,t,r,i,s){let l={},o=[],c=!1;for(let u in n){let d=n[u],g=Yd(d,e,t,r,i,s);l[u]=g.widgets,o.push(...g.viewsWithButtons),c=c||g.hasTitle}return{sectionWidgets:l,viewsWithButtons:o,hasTitle:c}}function Yd(n,e,t,r,i,s){let l=e.direction==="rtl",o=e.customButtons||{},c=t.buttonText||{},u=e.buttonText||{},d=t.buttonHints||{},g=e.buttonHints||{},h=n?n.split(" "):[],f=[],y=!1;return{widgets:h.map(m=>m.split(",").map(A=>{if(A==="title")return y=!0,{buttonName:A};let E,D,S,N,O,B;if(E=o[A])S=x=>{E.click&&E.click.call(x.target,x,x.target)},(N=r.getCustomButtonIconClass(E))||(N=r.getIconClass(A,l))||(O=E.text),B=E.hint||E.text;else if(D=i[A]){f.push(A),S=()=>{s.changeView(A)},(O=D.buttonTextOverride)||(N=r.getIconClass(A,l))||(O=D.buttonTextDefault);let x=D.buttonTextOverride||D.buttonTextDefault;B=Ze(D.buttonTitleOverride||D.buttonTitleDefault||e.viewHint,[x,A],x)}else if(s[A])if(S=()=>{s[A]()},(O=c[A])||(N=r.getIconClass(A,l))||(O=u[A]),A==="prevYear"||A==="nextYear"){let x=A==="prevYear"?"prev":"next";B=Ze(d[x]||g[x],[u.year||"year","year"],u[A])}else B=x=>Ze(d[A]||g[A],[u[x]||x,x],u[A]);return{buttonName:A,buttonClick:S,buttonIcon:N,buttonText:O,buttonHint:B}})),viewsWithButtons:f,hasTitle:y}}class Zd{constructor(e,t,r){this.type=e,this.getCurrentData=t,this.dateEnv=r}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 $d=ue({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(n){return Array.isArray(n.events)?n.events:null},fetch(n,e){e({rawEvents:n.eventSource.meta})}}]}),Xd=ue({name:"func-event-source",eventSourceDefs:[{parseMeta(n){return typeof n.events=="function"?n.events:null},fetch(n,e,t){const{dateEnv:r}=n.context,i=n.eventSource.meta;uc(i.bind(null,Xi(n.range,r)),s=>e({rawEvents:s}),t)}}]}),Jd=ue({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:b,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(n){return n.url&&(n.format==="json"||!n.format)?{url:n.url,format:"json",method:(n.method||"GET").toUpperCase(),extraParams:n.extraParams,startParam:n.startParam,endParam:n.endParam,timeZoneParam:n.timeZoneParam}:null},fetch(n,e,t){const{meta:r}=n.eventSource,i=Kd(r,n.range,n.context);fc(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},t)}}]});function Kd(n,e,t){let{dateEnv:r,options:i}=t,s,l,o,c,u={};return s=n.startParam,s==null&&(s=i.startParam),l=n.endParam,l==null&&(l=i.endParam),o=n.timeZoneParam,o==null&&(o=i.timeZoneParam),typeof n.extraParams=="function"?c=n.extraParams():c=n.extraParams||{},Object.assign(u,c),u[s]=r.formatIso(e.start),u[l]=r.formatIso(e.end),r.timeZone!=="local"&&(u[o]=r.timeZone),u}const eu=ue({name:"simple-recurring-event",recurringTypes:[{parse(n,e){if(n.daysOfWeek||n.startTime||n.endTime||n.startRecur||n.endRecur){let t={daysOfWeek:n.daysOfWeek||null,startTime:n.startTime||null,endTime:n.endTime||null,startRecur:n.startRecur?e.createMarker(n.startRecur):null,endRecur:n.endRecur?e.createMarker(n.endRecur):null},r;return n.duration&&(r=n.duration),!r&&n.startTime&&n.endTime&&(r=So(n.endTime,n.startTime)),{allDayGuess:!n.startTime&&!n.endTime,duration:r,typeData:t}}return null},expand(n,e,t){let r=Te(e,{start:n.startRecur,end:n.endRecur});return r?tu(n.daysOfWeek,n.startTime,r,t):[]}}],eventRefiners:{daysOfWeek:b,startTime:I,endTime:I,duration:I,startRecur:b,endRecur:b}});function tu(n,e,t,r){let i=n?Ei(n):null,s=H(t.start),l=t.end,o=[];for(;s<l;){let c;(!i||i[s.getUTCDay()])&&(e?c=r.add(s,e):c=s,o.push(c)),s=G(s,1)}return o}const nu=ue({name:"change-handler",optionChangeHandlers:{events(n,e){Hs([n],e)},eventSources:Hs}});function Hs(n,e){let t=fn(e.getCurrentData().eventSources);if(t.length===1&&n.length===1&&Array.isArray(t[0]._raw)&&Array.isArray(n[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:t[0].sourceId,rawEvents:n[0]});return}let r=[];for(let i of n){let s=!1;for(let l=0;l<t.length;l+=1)if(t[l]._raw===i){t.splice(l,1),s=!0;break}s||r.push(i)}for(let i of t)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function ru(n,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Xi(n.activeRange,e.dateEnv)),{view:e.viewApi}))}function iu(n,e){let{emitter:t}=e;t.hasHandlers("eventsSet")&&t.trigger("eventsSet",ke(n,e))}const su=[$d,Xd,Jd,eu,nu,ue({name:"misc",isLoadingFuncs:[n=>Os(n.eventSources)],propSetHandlers:{dateProfile:ru,eventStore:iu}})];class lu{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Jt(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=[],r;for(;r=e.shift();)this.runTask(r),t.push(r);this.drained(t)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function ou(n,e,t){let r;return/^(year|month)$/.test(n.currentRangeUnit)?r=n.currentRange:r=n.activeRange,t.formatRange(r.start,r.end,j(e.titleFormat||au(n)),{isEndExclusive:n.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function au(n){let{currentRangeUnit:e}=n;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let t=mt(n.currentRange.start,n.currentRange.end);return t!==null&&t>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class cu{constructor(e){this.computeCurrentViewData=T(this._computeCurrentViewData),this.organizeRawLocales=T(bd),this.buildLocale=T(Rs),this.buildPluginHooks=Cd(),this.buildDateEnv=T(du),this.buildTheme=T(uu),this.parseToolbars=T(Qd),this.buildViewSpecs=T(xd),this.buildDateProfileGenerator=vt(fu),this.buildViewApi=T(hu),this.buildViewUiProps=vt(mu),this.buildEventUiBySource=T(pu,ie),this.buildEventUiBases=T(gu),this.parseContextBusinessHours=vt(vu),this.buildTitle=T(ou),this.emitter=new kt,this.actionRunner=new lu(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=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let t={},r=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Da(r.calendarOptions,r.dateEnv),o=s.dateProfileGenerator.build(l);ce(o.activeRange,l)||(l=o.currentRange.start);let c={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of r.pluginHooks.contextInit)h(c);let u=Bd(r.calendarOptions,o,c),d={dynamicOptionOverrides:t,currentViewType:i,currentDate:l,dateProfile:o,businessHours:this.parseContextBusinessHours(c),eventSources:u,eventUiBases:{},eventStore:$(),renderableEventStore:$(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},g=Object.assign(Object.assign({},c),d);for(let h of r.pluginHooks.reducers)Object.assign(d,h(null,null,g));$n(d,c)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:r}=this;t===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(t===void 0||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:r,emitter:i}=this,s=Id(r.dynamicOptionOverrides,e),l=this.computeOptionsData(t.optionOverrides,s,t.calendarApi),o=Od(r.currentViewType,e),c=this.computeCurrentViewData(o,l,t.optionOverrides,s);t.calendarApi.currentDataManager=this,i.setThisContext(t.calendarApi),i.setOptions(c.options);let u={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(g=c.dateProfileGenerator.build(d)),d=wa(d,e),g=Nd(g,e,d,c.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!ce(g.currentRange,d))&&(d=g.currentRange.start);let h=Pd(r.eventSources,e,g,u),f=Ha(r.eventStore,e,h,g,u),p=Os(h)&&!c.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:m,selectionConfig:A}=this.buildViewUiProps(u),E=this.buildEventUiBySource(h),D=this.buildEventUiBases(p.defs,m,E),S={dynamicOptionOverrides:s,currentViewType:o,currentDate:d,dateProfile:g,eventSources:h,eventStore:f,renderableEventStore:p,selectionConfig:A,eventUiBases:D,businessHours:this.parseContextBusinessHours(u),dateSelection:zd(r.dateSelection,e),eventSelection:Wd(r.eventSelection,e),eventDrag:Gd(r.eventDrag,e),eventResize:qd(r.eventResize,e)},N=Object.assign(Object.assign({},u),S);for(let x of l.pluginHooks.reducers)Object.assign(S,x(r,e,N));let O=$n(r,u),B=$n(S,u);!O&&B?i.trigger("loading",!0):O&&!B&&i.trigger("loading",!1),this.state=S,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),t),o=i.pluginHooks.optionChangeHandlers,c=r&&r.calendarOptions,u=i.calendarOptions;if(c&&c!==u){c.timeZone!==u.timeZone&&(t.eventSources=l.eventSources=Vd(l.eventSources,t.dateProfile,l),t.eventStore=l.eventStore=Li(l.eventStore,r.dateEnv,l.dateEnv),t.renderableEventStore=l.renderableEventStore=Li(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let d in o)(this.optionsForHandling.indexOf(d)!==-1||c[d]!==u[d])&&o[d](u[d],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,t,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:o,extra:c}=this.processRawCalendarOptions(e,t);Ls(c);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,o,i.defaultRangeSeparator),d=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),g=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,g,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:u,viewSpecs:d,theme:g,toolbarConfig:h,localeDefaults:l,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:r,locale:i}=cn([$e,e,t]),s=this.organizeRawLocales(r),l=s.map,o=this.buildLocale(i||s.defaultCode,l).options,c=this.buildPluginHooks(e.plugins||[],su),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vi),yi),bi),c.listenerRefiners),c.optionRefiners),d={},g=cn([$e,o,e,t]),h={},f=this.currentCalendarOptionsInput,y=this.currentCalendarOptionsRefined,p=!1;for(let m in g)this.optionsForRefining.indexOf(m)===-1&&(g[m]===f[m]||we[m]&&m in f&&we[m](f[m],g[m]))?h[m]=y[m]:u[m]?(h[m]=u[m](g[m]),p=!0):d[m]=f[m];return p&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:s,localeDefaults:o,extra:d}}_computeCurrentViewData(e,t,r,i){let s=t.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:o}=this.processRawViewOptions(s,t.pluginHooks,t.localeDefaults,r,i);Ls(o);let c=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:c,viewApi:u}}processRawViewOptions(e,t,r,i,s){let l=cn([$e,e.optionDefaults,r,i,e.optionOverrides,s]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vi),yi),bi),ta),t.listenerRefiners),t.optionRefiners),c={},u=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,g=!1,h={};for(let f in l)l[f]===u[f]||we[f]&&we[f](l[f],u[f])?c[f]=d[f]:(l[f]===this.currentCalendarOptionsInput[f]||we[f]&&we[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(c[f]=this.currentCalendarOptionsRefined[f]):o[f]?c[f]=o[f](l[f]):h[f]=l[f],g=!0);return g&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=c),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function du(n,e,t,r,i,s,l,o){let c=Rs(e||l.defaultCode,l.map);return new ua({calendarSystem:"gregory",timeZone:n,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:c,weekNumberCalculation:t,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:o})}function uu(n,e){let t=e.themeClasses[n.themeSystem]||Ee;return new t(n)}function fu(n){let e=n.dateProfileGeneratorClass||xi;return new e(n)}function hu(n,e,t){return new Zd(n,e,t)}function pu(n){return le(n,e=>e.ui)}function gu(n,e,t){let r={"":e};for(let i in n){let s=n[i];s.sourceId&&t[s.sourceId]&&(r[i]=t[s.sourceId])}return r}function mu(n){let{options:e}=n;return{eventUiSingleBase:xt({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},n),selectionConfig:xt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},n)}}function $n(n,e){for(let t of e.pluginHooks.isLoadingFuncs)if(t(n))return!0;return!1}function vu(n){return Qa(n.options.businessHours,n)}function Ls(n,e){for(let t in n)console.warn(`Unknown option '${t}'`)}class yu extends V{render(){let e=this.props.widgetGroups.map(t=>this.renderWidgetGroup(t));return v("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:o,buttonClick:c,buttonText:u,buttonIcon:d,buttonHint:g}=l;if(o==="title")s=!1,i.push(v("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let h=o===t.activeButton,f=!t.isTodayEnabled&&o==="today"||!t.isPrevEnabled&&o==="prev"||!t.isNextEnabled&&o==="next",y=[`fc-${o}-button`,r.getClass("button")];h&&y.push(r.getClass("buttonActive")),i.push(v("button",{type:"button",title:typeof g=="function"?g(t.navUnit):g,disabled:f,"aria-pressed":h,className:y.join(" "),onClick:c},u||(d?v("span",{className:d,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return v("div",{className:l},...i)}return i[0]}}class Us extends V{render(){let{model:e,extraClassName:t}=this.props,r=!1,i,s,l=e.sectionWidgets,o=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,v("div",{className:[t||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",o||[]),this.renderSection("end",s||[]))}renderSection(e,t){let{props:r}=this;return v(yu,{key:e,widgetGroups:t,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class bu extends V{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,ae(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?t.availableWidth!==null?s=t.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",v("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},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 Eu extends je{constructor(e){super(e),this.handleSegClick=(t,r)=>{let{component:i}=this,{context:s}=i,l=Ue(r);if(l&&i.isValidSegDownEl(t.target)){let o=W(t.target,".fc-event-forced-url"),c=o?o.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new U(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:t,view:s.viewApi}),c&&!t.defaultPrevented&&(window.location.href=c)}},this.destroy=ni(e.el,"click",".fc-event",this.handleSegClick)}}class Au extends je{constructor(e){super(e),this.handleEventElRemove=t=>{t===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,r)=>{Ue(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",t,r))},this.handleSegLeave=(t,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,r))},this.removeHoverListeners=lo(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,r){let{component:i}=this,{context:s}=i,l=Ue(r);(!t||i.isValidSegDownEl(t.target))&&s.emitter.trigger(e,{el:r,event:new U(s,l.eventRange.def,l.eventRange.instance),jsEvent:t,view:s.viewApi})}}class Su extends Re{constructor(){super(...arguments),this.buildViewContext=T(pa),this.buildViewPropTransformers=T(wu),this.buildToolbarProps=T(Cu),this.headerRef=q(),this.footerRef=q(),this.interactionsStore={},this.state={viewLabelId:ht()},this.registerInteractiveComponent=(e,t)=>{let r=gc(e,t),l=[Eu,Au].concat(this.props.pluginHooks.componentInteractions).map(o=>new o(r));this.interactionsStore[e.uid]=l,Tn[e.uid]=r},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let r of t)r.destroy();delete this.interactionsStore[e.uid]}delete Tn[e.uid]},this.resizeRunner=new Jt(()=>{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{props:e}=this,{toolbarConfig:t,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Je(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",o;e.isHeightAuto||e.forPrint?l="":r.height!=null?s=!0:r.contentHeight!=null?l=r.contentHeight:o=Math.max(r.aspectRatio,.5);let c=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=t.header&&t.header.hasTitle?this.state.viewLabelId:void 0;return v(oe.Provider,{value:c},t.header&&v(Us,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:u},i)),v(bu,{liquid:s,height:l,aspectRatio:o,labeledById:u},this.renderView(e),this.buildAppendContent()),t.footer&&v(Us,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let r in t)t[r](e[r],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:r}=t.pluginHooks;for(let i in r)t[i]!==e[i]&&r[i](t[i],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,t=e.pluginHooks.viewContainerAppends.map(r=>r(e));return v(L,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:r}=e,i={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},s=this.buildViewPropTransformers(t.viewPropsTransformers);for(let o of s)Object.assign(i,o.transform(i,e));let l=r.component;return v(l,Object.assign({},i))}}function Cu(n,e,t,r,i,s){let l=t.build(i,void 0,!1),o=t.buildPrev(e,r,!1),c=t.buildNext(e,r,!1);return{title:s,activeButton:n.type,navUnit:n.singleUnit,isTodayEnabled:l.isValid&&!ce(e.currentRange,i),isPrevEnabled:o.isValid,isNextEnabled:c.isValid}}function wu(n){return n.map(e=>new e)}let Du=class extends mc{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;Ct(()=>{Qe(v(pc,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,o)=>(this.setClassNames(i),this.setHeight(s),v(wi.Provider,{value:this.customContentRenderId},v(Su,Object.assign({isHeightAuto:l,forPrint:o},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Qe(null,this.el),this.setClassNames([]),this.setHeight(""))},Xl(e),this.el=e,this.renderRunner=new Jt(this.handleRenderRequest),new cu({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(){Ct(()=>{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(!ge(e,this.currentClassNames)){let{classList:t}=this.el;for(let r of this.currentClassNames)t.remove(r);for(let r of e)t.add(r);this.currentClassNames=e}}setHeight(e){Kr(this.el,"height",e)}};const _u={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Ru=a.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(n){return{...n,customRenderingMetaMap:ku(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const n=[];for(const e of this.customRenderingMap.values())n.push(a.h(Tu,{key:e.id,customRendering:e}));return a.h("div",{attrs:{"data-fc-render-id":this.renderId}},a.h(a.Fragment,n))},mounted(){const n=new vd;this.handleCustomRendering=n.handle.bind(n);const e=this.buildOptions(this.options),t=new Du(this.$el,e);this.calendar=t,t.render(),n.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:xu()}),Tu=a.defineComponent({props:{customRendering:Object},render(){const n=this.customRendering,e=typeof n.generatorMeta=="function"?n.generatorMeta(n.renderProps):n.generatorMeta;return a.h(a.Teleport,{to:n.containerEl},e)}});function Mg(n){return n}function xu(){let n={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let r=this.buildOptions(e);t.resetOptions(r),this.renderId++}}};for(let e in _u)n[`options.${e}`]={deep:!0,handler(t){if(t!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:t},[e]),this.renderId++}}};return n}function ku(n){const e={};for(const t in n)e[Mu(t)]=n[t];return e}function Mu(n){return n.split("-").map((e,t)=>t?Ou(e):e).join("")}function Ou(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Iu={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(n){return"另外 "+n+" 个"},noEventsText:"没有事件显示"};class Nu extends se{constructor(){super(...arguments),this.headerElRef=q()}renderSimpleLayout(e,t){let{props:r,context:i}=this,s=[],l=Pt(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),v(wt,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},v(Fn,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,t,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:o}=this,c=!l.forPrint&&Pt(o.options),u=!l.forPrint&&vs(o.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),u&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:jn}]}),v(wt,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},v(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function Vt(n,e){let t=[];for(let r=0;r<e;r+=1)t[r]=[];for(let r of n)t[r.row].push(r);return t}function Ht(n,e){let t=[];for(let r=0;r<e;r+=1)t[r]=[];for(let r of n)t[r.firstCol].push(r);return t}function js(n,e){let t=[];if(n){for(let r=0;r<e;r+=1)t[r]={affectedInstances:n.affectedInstances,isEvent:n.isEvent,segs:[]};for(let r of n.segs)t[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)t[r]=null;return t}const Fs=j({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function zs(n){let{display:e}=n.eventRange.ui;return e==="list-item"||e==="auto"&&!n.eventRange.def.allDay&&n.firstCol===n.lastCol&&n.isStart&&n.isEnd}class Ws extends V{render(){let{props:e}=this;return v(ys,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Fs,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Gs extends V{render(){let{props:e,context:t}=this,{options:r}=t,{seg:i}=e,s=r.eventTimeFormat||Fs,l=Yi(i,s,t,!0,e.defaultDisplayEventEnd);return v(zn,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:$i(e.seg,t),defaultGenerator:Bu,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function Bu(n){return v(L,null,v("div",{className:"fc-daygrid-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}}),n.timeText&&v("div",{className:"fc-event-time"},n.timeText),v("div",{className:"fc-event-title"},n.event.title||v(L,null," ")))}class Pu extends V{constructor(){super(...arguments),this.compileSegs=T(Vu)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return v(Ss,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return v(L,null,t.map(s=>{let l=s.eventRange.instance.instanceId;return v("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},zs(s)?v(Gs,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},be(s,e.todayRange))):v(Ws,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},be(s,e.todayRange))))}))}})}}function Vu(n){let e=[],t=[];for(let r of n)e.push(r.seg),r.isVisible||t.push(r.seg);return{allSegs:e,invisibleSegs:t}}const Hu=j({week:"narrow"});class Lu extends se{constructor(){super(...arguments),this.rootElRef=q(),this.state={dayNumberId:ht()},this.handleRootEl=e=>{ae(this.rootElRef,e),ae(this.props.elRef,e)}}render(){let{context:e,props:t,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:o,dateProfile:c}=t;const u=t.showDayNumber&&ju(o,c.currentRange,l);return v(Gn,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Uu,date:o,dateProfile:c,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:u,extraRenderProps:t.extraRenderProps},(d,g)=>v("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&v(As,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Ot(e,o,"week"),date:o,defaultFormat:Hu}),!g.isDisabled&&(t.showDayNumber||qn(s)||t.forceDayTop)?v("div",{className:"fc-daygrid-day-top"},v(d,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Ot(e,o)),{id:r.dayNumberId})})):t.showDayNumber?v("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},v("a",{className:"fc-daygrid-day-number"}," ")):void 0,v("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,v("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},v(Pu,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:i,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),v("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function Uu(n){return n.dayNumberText||v(L,null," ")}function ju(n,e,t){const{start:r,end:i}=e,s=me(i,-1),l=t.getYear(r),o=t.getMonth(r),c=t.getYear(s),u=t.getMonth(s);return!(l===c&&o===u)&&(n.valueOf()===r.valueOf()||t.getDay(n)===1&&n.valueOf()<i.valueOf())}function qs(n){return n.eventRange.instance.instanceId+":"+n.firstCol}function Qs(n){return qs(n)+":"+n.lastCol}function Fu(n,e,t,r,i,s,l){let o=new Gu(A=>{let E=n[A.index].eventRange.instance.instanceId+":"+A.span.start+":"+(A.span.end-1);return i[E]||1});o.allowReslicing=!0,o.strictOrder=r,e===!0||t===!0?(o.maxCoord=s,o.hiddenConsumes=!0):typeof e=="number"?o.maxStackCnt=e:typeof t=="number"&&(o.maxStackCnt=t,o.hiddenConsumes=!0);let c=[],u=[];for(let A=0;A<n.length;A+=1){let E=n[A],D=Qs(E);i[D]!=null?c.push({index:A,span:{start:E.firstCol,end:E.lastCol+1}}):u.push(E)}let d=o.addSegs(c),g=o.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:y}=zu(g,n,l),p=[],m=[];for(let A of u){f[A.firstCol].push({seg:A,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let E=A.firstCol;E<=A.lastCol;E+=1)h[E].push({seg:ze(A,E,E+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<l.length;A+=1)p.push(0);for(let A of d){let E=n[A.index],D=A.span;f[D.start].push({seg:ze(E,D.start,D.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let S=D.start;S<D.end;S+=1)p[S]+=1,h[S].push({seg:ze(E,S,S+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<l.length;A+=1)m.push(y[A]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:p,moreMarginTops:m}}function zu(n,e,t){let r=Wu(n,t.length),i=[],s=[],l=[];for(let o=0;o<t.length;o+=1){let c=r[o],u=[],d=0,g=0;for(let f of c){let y=e[f.index];u.push({seg:ze(y,o,o+1,t),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-d}),d=f.levelCoord+f.thickness}let h=[];d=0,g=0;for(let f of c){let y=e[f.index],p=f.span.end-f.span.start>1,m=f.span.start===o;g+=f.levelCoord-d,d=f.levelCoord+f.thickness,p?(g+=f.thickness,m&&h.push({seg:ze(y,f.span.start,f.span.end,t),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):m&&(h.push({seg:ze(y,f.span.start,f.span.end,t),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:g}),g=0)}i.push(u),s.push(h),l.push(g)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function Wu(n,e){let t=[];for(let r=0;r<e;r+=1)t.push([]);for(let r of n)for(let i=r.span.start;i<r.span.end;i+=1)t[i].push(r);return t}function ze(n,e,t,r){if(n.firstCol===e&&n.lastCol===t-1)return n;let i=n.eventRange,s=i.range,l=Te(s,{start:r[e].date,end:G(r[t-1].date,1)});return Object.assign(Object.assign({},n),{firstCol:e,lastCol:t-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:n.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:n.isEnd&&l.end.valueOf()===s.end.valueOf()})}class Gu extends ss{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Me(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return t}handleInvalidInsertion(e,t,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:o,touchingLateral:c}=e;if(this.hiddenConsumes&&l){const u=Me(l);if(!s[u])if(this.allowReslicing){const d=Object.assign(Object.assign({},l),{span:Pn(l.span,t.span)}),g=Me(d);s[g]=!0,i[o][c]=d,r.push(d),this.splitEntry(l,t,r)}else s[u]=!0,r.push(l)}super.handleInvalidInsertion(e,t,r)}}class Ys extends se{constructor(){super(...arguments),this.cellElRefs=new de,this.frameElRefs=new de,this.fgElRefs=new de,this.segHarnessRefs=new de,this.rootElRef=q(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:r}=this,{options:i}=r,s=e.cells.length,l=Ht(e.businessHourSegs,s),o=Ht(e.bgEventSegs,s),c=Ht(this.getHighlightSegs(),s),u=Ht(this.getMirrorSegs(),s),{singleColPlacements:d,multiColPlacements:g,moreCnts:h,moreMarginTops:f}=Fu(Qi(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),y=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return v("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((p,m)=>{let A=this.renderFgSegs(m,e.forPrint?d[m]:g[m],e.todayRange,y),E=this.renderFgSegs(m,qu(u[m],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return v(Lu,{key:p.key,elRef:this.cellElRefs.createRef(p.key),innerElRef:this.frameElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&m===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,moreCnt:h[m],moreMarginTop:f[m],singlePlacements:d[m],fgContentElRef:this.fgElRefs.createRef(p.key),fgContent:v(L,null,v(L,null,A),v(L,null,E)),bgContent:v(L,null,this.renderFillSegs(c[m],"highlight"),this.renderFillSegs(l[m],"non-business"),this.renderFillSegs(o[m],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let r=this.props;this.updateSizing(!ie(e,r))}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,r,i,s,l,o){let{context:c}=this,{eventSelection:u}=this.props,{framePositions:d}=this.state,g=this.props.cells.length===1,h=s||l||o,f=[];if(d)for(let y of t){let{seg:p}=y,{instanceId:m}=p.eventRange.instance,A=y.isVisible&&!i[m],E=y.isAbsolute,D="",S="";E&&(c.isRtl?(S=0,D=d.lefts[p.lastCol]-d.lefts[p.firstCol]):(D=0,S=d.rights[p.firstCol]-d.rights[p.lastCol])),f.push(v("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:qs(p),ref:h?null:this.segHarnessRefs.createRef(Qs(p)),style:{visibility:A?"":"hidden",marginTop:E?"":y.marginTop,top:E?y.absoluteTop:"",left:D,right:S}},zs(p)?v(Gs,Object.assign({seg:p,isDragging:s,isSelected:m===u,defaultDisplayEventEnd:g},be(p,r))):v(Ws,Object.assign({seg:p,isDragging:s,isResizing:l,isDateSelecting:o,isSelected:m===u,defaultDisplayEventEnd:g},be(p,r)))))}return f}renderFillSegs(e,t){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let o of e){let c=r?{right:0,left:s.lefts[o.lastCol]-s.lefts[o.firstCol]}:{left:0,right:s.rights[o.firstCol]-s.rights[o.lastCol]};l.push(v("div",{key:Zi(o.eventRange),className:"fc-daygrid-bg-harness",style:c},t==="bg-event"?v(bs,Object.assign({seg:o},be(o,i))):Es(t)))}return v(L,{},...l)}updateSizing(e){let{props:t,state:r,frameElRefs:i}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let c=t.cells.map(u=>i.currentMap[u.key]);if(c.length){let u=this.rootElRef.current,d=new Fe(u,c,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new Fe(u,c,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),o=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);t[r]=Math.max(t[r]||0,i)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}Ys.addStateEquality({segHeights:ie});function qu(n,e){if(!n.length)return[];let t=Qu(e);return n.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:t[r.eventRange.instance.instanceId],marginTop:0}))}function Qu(n){let e={};for(let t of n)for(let r of t)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Yu extends se{constructor(){super(...arguments),this.splitBusinessHourSegs=T(Vt),this.splitBgEventSegs=T(Vt),this.splitFgEventSegs=T(Vt),this.splitDateSelectionSegs=T(Vt),this.splitEventDrag=T(js),this.splitEventResize=T(js),this.rowRefs=new de}render(){let{props:e,context:t}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),o=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r),d=r>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return v(et,{unit:"day"},(g,h)=>v(L,null,e.cells.map((f,y)=>v(Ys,{ref:this.rowRefs.createRef(y),key:f.length?f[0].date.toISOString():y,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:i[y],eventSelection:e.eventSelection,bgEventSegs:s[y].filter(Zu),fgEventSegs:l[y],dateSelectionSegs:o[y],eventDrag:c[y],eventResize:u[y],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:d,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 Fe(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Fe(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(t);if(l!=null&&s!=null){let o=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},o.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let r=this.props.cells[e][t].date,i=G(r,1);return{start:r,end:i}}}function Zu(n){return n.eventRange.def.allDay}class $u extends se{constructor(){super(...arguments),this.elRef=q(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:r,expandRows:i}=e,s=r===!0||t===!0;s&&!i&&(s=!1,t=null,r=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return v("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,v("tbody",{role:"presentation"},v(Yu,{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:r,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=Xu(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),r=t.closest(".fc-scroller"),i=e.getBoundingClientRect().top-t.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Xu(n,e){let t;return e.currentRangeUnit.match(/year|month/)&&(t=n.querySelector(`[data-date="${Ho(e.currentDate)}-01"]`)),t||(t=n.querySelector(`[data-date="${on(e.currentDate)}"]`)),t}class Ju extends fs{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class Zs extends se{constructor(){super(...arguments),this.slicer=new Ju,this.tableRef=q()}render(){let{props:e,context:t}=this;return v($u,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}))}}class Ku extends Nu{constructor(){super(...arguments),this.buildDayTableModel=T(ef),this.headerRef=q(),this.tableRef=q()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,t),s=e.dayHeaders&&v(cs,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=o=>v(Zs,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:o.tableColGroupNode,tableMinWidth:o.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:o.clientWidth,clientHeight:o.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function ef(n,e){let t=new ds(n.renderRange,e);return new us(t,/year|month|week/.test(n.currentRangeUnit))}class tf extends xi{buildRenderRange(e,t,r){let i=super.buildRenderRange(e,t,r),{props:s}=this;return nf({currentRange:i,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function nf(n){let{dateEnv:e,currentRange:t}=n,{start:r,end:i}=t,s;if(n.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=ci(s,1))),n.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(G(t.end,-1))),o=Math.ceil(Ro(l,i));i=ci(i,6-o)}return{start:r,end:i}}var rf=':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}';$t(rf);var sf=ue({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Ku,dateProfileGeneratorClass:tf},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 lf extends Ac{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Ja(e)?["timed","allDay"]:["allDay"]:["timed"]}}const of=j({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function $s(n){let e=["fc-timegrid-slot","fc-timegrid-slot-label",n.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return v(oe.Consumer,null,t=>{if(!n.isLabeled)return v("td",{className:e.join(" "),"data-time":n.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=t,l=i.slotLabelFormat==null?of:Array.isArray(i.slotLabelFormat)?j(i.slotLabelFormat[0]):j(i.slotLabelFormat),o={level:0,time:n.time,date:r.toDate(n.date),view:s,text:r.format(n.date,l)};return v(Z,{elTag:"td",elClasses:e,elAttrs:{"data-time":n.isoTimeStr},renderProps:o,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:af,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},c=>v("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},v(c,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function af(n){return n.text}class cf extends V{render(){return this.props.slatMetas.map(e=>v("tr",{key:e.key},v($s,Object.assign({},e))))}}const df=j({week:"short"}),uf=5;class ff extends se{constructor(){super(...arguments),this.allDaySplitter=new lf,this.headerElRef=q(),this.rootElRef=q(),this.scrollerElRef=q(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,o=Ce(s.start,s.end)===1?Ot(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?v(As,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:df},c=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},v(c,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:o}))):v("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},v("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:r}=this.context,i={text:t.allDayText,view:r};return v(Z,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:hf,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},s=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},v(s,{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,r){let{context:i,props:s}=this,l=[],o=Pt(i.options);return e&&l.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(l.push({type:"body",key:"all-day",chunk:{content:t}}),l.push({type:"body",key:"all-day-divider",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),v(wt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},v(Fn,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,t,r,i,s,l,o){let c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");let{context:u,props:d}=this,g=!d.forPrint&&Pt(u.options),h=!d.forPrint&&vs(u.options),f=[];e&&f.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:p=>v("tr",{role:"presentation"},this.renderHeadAxis("day",p.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:p=>v("tr",{role:"presentation"},this.renderTableRowAxis(p.rowSyncHeights[0]))},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));let y=u.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:"axis",content:p=>v("div",{className:"fc-timegrid-axis-chunk"},v("table",{"aria-hidden":!0,style:{height:p.expandRows?p.clientHeight:""}},p.tableColGroupNode,v("tbody",null,v(cf,{slatMetas:l}))),v("div",{className:"fc-timegrid-now-indicator-container"},v(et,{unit:y?"minute":"day"},m=>{let A=y&&o&&o.safeComputeTop(m);return typeof A=="number"?v(Wn,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:A},isAxis:!0,date:m}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:jn},{key:"cols",content:jn}]}),v(wt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:u.viewSpec},v(c,{liquid:!d.isHeightAuto&&!d.forPrint,forPrint:d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(e===!0||t===!0)&&(e=void 0,t=uf),{dayMaxEvents:e,dayMaxEventRows:t}}}function hf(n){return n.text}class pf{constructor(e,t,r){this.positions=e,this.dateProfile=t,this.slotDuration=r}safeComputeTop(e){let{dateProfile:t}=this;if(ce(t.currentRange,e)){let r=H(e),i=e.valueOf()-r.valueOf();if(i>=te(t.slotMinTime)&&i<te(t.slotMaxTime))return this.computeTimeTop(I(i))}return null}computeDateTop(e,t){return t||(t=H(e)),this.computeTimeTop(I(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:r}=this,i=t.els.length,s=(e.milliseconds-te(r.slotMinTime))/te(this.slotDuration),l,o;return s=Math.max(0,s),s=Math.min(i,s),l=Math.floor(s),l=Math.min(l,i-1),o=s-l,t.tops[l]+t.getHeight(l)*o}}class gf extends V{render(){let{props:e,context:t}=this,{options:r}=t,{slatElRefs:i}=e;return v("tbody",null,e.slatMetas.map((s,l)=>{let o={time:s.time,date:t.dateEnv.toDate(s.date),view:t.viewApi};return v("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&v($s,Object.assign({},s)),v(Z,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class mf extends V{constructor(){super(...arguments),this.rootElRef=q(),this.slatElRefs=new de}render(){let{props:e,context:t}=this;return v("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},v("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,v(gf,{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;t.onCoords&&t.clientWidth!==null&&this.rootElRef.current.offsetHeight&&t.onCoords(new pf(new Fe(this.rootElRef.current,vf(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function vf(n,e){return e.map(t=>n[t.key])}function tt(n,e){let t=[],r;for(r=0;r<e;r+=1)t.push([]);if(n)for(r=0;r<n.length;r+=1)t[n[r].col].push(n[r]);return t}function Xs(n,e){let t=[];if(n){for(let r=0;r<e;r+=1)t[r]={affectedInstances:n.affectedInstances,isEvent:n.isEvent,segs:[]};for(let r of n.segs)t[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)t[r]=null;return t}class yf extends V{render(){let{props:e}=this;return v(Ss,{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:()=>tl(e.hiddenSegs,e),defaultGenerator:bf,forceTimed:!0},t=>v(t,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function bf(n){return n.shortText}function Ef(n,e,t){let r=new ss;e!=null&&(r.strictOrder=e),t!=null&&(r.maxStackCnt=t);let i=r.addSegs(n),s=Nc(i),l=Af(r);return l=Df(l,1),{segRects:_f(l),hiddenGroups:s}}function Af(n){const{entriesByLevel:e}=n,t=Xn((r,i)=>r+":"+i,(r,i)=>{let s=wf(n,r,i),l=Js(s,t),o=e[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:l[0]}),o.thickness+l[1]]});return Js(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,t)[0]}function Js(n,e){if(!n)return[[],0];let{level:t,lateralStart:r,lateralEnd:i}=n,s=r,l=[];for(;s<i;)l.push(e(t,s)),s+=1;return l.sort(Sf),[l.map(Cf),l[0][1]]}function Sf(n,e){return e[1]-n[1]}function Cf(n){return n[0]}function wf(n,e,t){let{levelCoords:r,entriesByLevel:i}=n,s=i[e][t],l=r[e]+s.thickness,o=r.length,c=e;for(;c<o&&r[c]<l;c+=1);for(;c<o;c+=1){let u=i[c],d,g=Hn(u,s.span.start,Bn),h=g[0]+g[1],f=h;for(;(d=u[f])&&d.span.start<s.span.end;)f+=1;if(h<f)return{level:c,lateralStart:h,lateralEnd:f}}return null}function Df(n,e){const t=Xn((r,i,s)=>Me(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:o}=r,c=o+s,u=o/c,d,g=[];if(!l.length)d=e;else for(let f of l)if(d===void 0){let y=t(f,i,c);d=y[0],g.push(y[1])}else{let y=t(f,d,0);g.push(y[1])}let h=(d-i)*u;return[d-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:g})]});return n.map(r=>t(r,0,0)[1])}function _f(n){let e=[];const t=Xn((i,s,l)=>Me(i),(i,s,l)=>{let o=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:l,stackForward:0});return e.push(o),o.stackForward=r(i.nextLevelNodes,s+i.thickness,l+1)+1});function r(i,s,l){let o=0;for(let c of i)o=Math.max(t(c,s,l),o);return o}return r(n,0,0),e}function Xn(n,e){const t={};return(...r)=>{let i=n(...r);return i in t?t[i]:t[i]=e(...r)}}function Ks(n,e,t=null,r=0){let i=[];if(t)for(let s=0;s<n.length;s+=1){let l=n[s],o=t.computeDateTop(l.start,e),c=Math.max(o+(r||0),t.computeDateTop(l.end,e));i.push({start:Math.round(o),end:Math.round(c)})}return i}function Rf(n,e,t,r){let i=[],s=[];for(let u=0;u<n.length;u+=1){let d=e[u];d?i.push({index:u,thickness:1,span:d}):s.push(n[u])}let{segRects:l,hiddenGroups:o}=Ef(i,t,r),c=[];for(let u of l)c.push({seg:n[u.index],rect:u});for(let u of s)c.push({seg:u,rect:null});return{segPlacements:c,hiddenGroups:o}}const Tf=j({hour:"numeric",minute:"2-digit",meridiem:!1});class el extends V{render(){return v(ys,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Tf}))}}class xf extends V{constructor(){super(...arguments),this.sortEventSegs=T(Qi)}render(){let{props:e,context:t}=this,{options:r}=t,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return v(Gn,{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},c=>v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,l,!1,!1,!1)),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),v("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),qn(r)&&v(c,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,r,i,s,l){let{props:o}=this;return o.forPrint?tl(e,o):this.renderPositionedFgSegs(e,t,r,i,s,l)}renderPositionedFgSegs(e,t,r,i,s,l){let{eventMaxStack:o,eventShortHeight:c,eventOrderStrict:u,eventMinHeight:d}=this.context.options,{date:g,slatCoords:h,eventSelection:f,todayRange:y,nowDate:p}=this.props,m=r||i||s,A=Ks(e,g,h,d),{segPlacements:E,hiddenGroups:D}=Rf(e,A,u,o);return v(L,null,this.renderHiddenGroups(D,e),E.map(S=>{let{seg:N,rect:O}=S,B=N.eventRange.instance.instanceId,x=m||!!(!t[B]&&O),z=Jn(O&&O.span),J=!m&&O?this.computeSegHStyle(O):{left:0,right:0},rr=!!O&&O.stackForward>0,We=!!O&&O.span.end-O.span.start<c;return v("div",{className:"fc-timegrid-event-harness"+(rr?" fc-timegrid-event-harness-inset":""),key:l||B,style:Object.assign(Object.assign({visibility:x?"":"hidden"},z),J)},v(el,Object.assign({seg:N,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:B===f,isShort:We},be(N,y,p))))}))}renderHiddenGroups(e,t){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:c,eventResize:u}=this.props;return v(L,null,e.map(d=>{let g=Jn(d.span),h=kf(d.entries,t);return v(yf,{key:hi(ws(h)),hiddenSegs:h,top:g.top,bottom:g.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:o,eventDrag:c,eventResize:u})}))}renderFillSegs(e,t){let{props:r,context:i}=this,l=Ks(e,r.date,r.slatCoords,i.options.eventMinHeight).map((o,c)=>{let u=e[c];return v("div",{key:Zi(u.eventRange),className:"fc-timegrid-bg-harness",style:Jn(o)},t==="bg-event"?v(bs,Object.assign({seg:u},be(u,r.todayRange,r.nowDate))):Es(t))});return v(L,null,l)}renderNowIndicator(e){let{slatCoords:t,date:r}=this.props;return t?e.map((i,s)=>v(Wn,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:t,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,l=e.levelCoord+e.thickness,o,c;i&&(l=Math.min(1,s+(l-s)*2)),t?(o=1-l,c=s):(o=s,c=1-l);let u={zIndex:e.stackDepth+1,left:o*100+"%",right:c*100+"%"};return i&&!e.stackForward&&(u[t?"marginLeft":"marginRight"]=10*2),u}}function tl(n,{todayRange:e,nowDate:t,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return v(L,null,n.map(o=>{let c=o.eventRange.instance.instanceId;return v("div",{key:c,style:{visibility:l[c]?"hidden":""}},v(el,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:c===r,isShort:!1},be(o,e,t))))}))}function Jn(n){return n?{top:n.start,bottom:-n.end}:{top:"",bottom:""}}function kf(n,e){return n.map(t=>e[t.index])}class Mf extends V{constructor(){super(...arguments),this.splitFgEventSegs=T(tt),this.splitBgEventSegs=T(tt),this.splitBusinessHourSegs=T(tt),this.splitNowIndicatorSegs=T(tt),this.splitDateSelectionSegs=T(tt),this.splitEventDrag=T(Xs),this.splitEventResize=T(Xs),this.rootElRef=q(),this.cellElRefs=new de}render(){let{props:e,context:t}=this,r=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),l=this.splitBgEventSegs(e.bgEventSegs,i),o=this.splitBusinessHourSegs(e.businessHourSegs,i),c=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),u=this.splitDateSelectionSegs(e.dateSelectionSegs,i),d=this.splitEventDrag(e.eventDrag,i),g=this.splitEventResize(e.eventResize,i);return v("div",{className:"fc-timegrid-cols",ref:this.rootElRef},v("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,v("tbody",{role:"presentation"},v("tr",{role:"row"},e.axis&&v("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&v(Wn,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,f)=>v(xf,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:s[f],bgEventSegs:l[f],businessHourSegs:o[f],nowIndicatorSegs:c[f],dateSelectionSegs:u[f],eventDrag:d[f],eventResize:g[f],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Fe(this.rootElRef.current,Of(this.cellElRefs.currentMap,e.cells),!0,!1))}}function Of(n,e){return e.map(t=>n[t.key])}class If extends se{constructor(){super(...arguments),this.processSlotOptions=T(Nf),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:r}=this.state;if(t&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),t(i)}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 v("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v(mf,{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}),v(Mf,{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:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:l}=this.props,{slatCoords:o}=this.state,{snapDuration:c,snapsPerSlot:u}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),d=s.leftToIndex(e),g=o.positions.topToIndex(t);if(d!=null&&g!=null){let h=this.props.cells[d],f=o.positions.tops[g],y=o.positions.getHeight(g),p=(t-f)/y,m=Math.floor(p*u),A=g*u+m,E=this.props.cells[d].date,D=nn(l.slotMinTime,Co(c,A)),S=r.add(E,D),N=r.add(S,c);return{dateProfile:l,dateSpan:Object.assign({range:{start:S,end:N},allDay:!1},h.extraDateSpan),dayEl:s.els[d],rect:{left:s.lefts[d],right:s.rights[d],top:f,bottom:f+y},layer:0}}return null}}function Nf(n,e){let t=e||n,r=rn(n,t);return r===null&&(t=n,r=1),{snapDuration:t,snapsPerSlot:r}}class Bf extends fs{sliceRange(e,t){let r=[];for(let i=0;i<t.length;i+=1){let s=Te(e,t[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class Pf extends se{constructor(){super(...arguments),this.buildDayRanges=T(Vf),this.slicer=new Bf,this.timeColsRef=q()}render(){let{props:e,context:t}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:l}=t.options,o=this.buildDayRanges(i,r,t.dateEnv);return v(et,{unit:s?"minute":"day"},(c,u)=>v(If,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,t,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:c,nowIndicatorSegs:s&&this.slicer.sliceNowDate(c,r,l,t,o),todayRange:u,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Vf(n,e,t){let r=[];for(let i of n.headerDates)r.push({start:t.add(i,e.slotMinTime),end:t.add(i,e.slotMaxTime)});return r}const nl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Hf(n,e,t,r,i){let s=new Date(0),l=n,o=I(0),c=t||Lf(r),u=[];for(;te(l)<te(e);){let d=i.add(s,l),g=rn(o,c)!==null;u.push({date:d,time:l,key:d.toISOString(),isoTimeStr:Lo(d),isLabeled:g}),l=nn(l,r),o=nn(o,r)}return u}function Lf(n){let e,t,r;for(e=nl.length-1;e>=0;e-=1)if(t=I(nl[e]),r=rn(t,n),r!==null&&r>1)return t;return n}class Uf extends ff{constructor(){super(...arguments),this.buildTimeColsModel=T(jf),this.buildSlatMetas=T(Hf)}render(){let{options:e,dateEnv:t,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,l=this.buildTimeColsModel(s,r),o=this.allDaySplitter.splitProps(i),c=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:u}=e,d=!u,g=u,h=e.dayHeaders&&v(cs,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),f=e.allDaySlot!==!1&&(p=>v(Zs,Object.assign({},o.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:p.tableMinWidth,colGroupNode:p.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:p.clientWidth,clientHeight:p.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),y=p=>v(Pf,Object.assign({},o.timed,{dayTableModel:l,dateProfile:s,axis:d,slotDuration:e.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:p.tableColGroupNode,tableMinWidth:p.tableMinWidth,clientWidth:p.clientWidth,clientHeight:p.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:p.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(h,f,y,l.colCnt,u,c,this.state.slatCoords):this.renderSimpleLayout(h,f,y)}}function jf(n,e){let t=new ds(n.renderRange,e);return new us(t,!1)}var Ff='.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}';$t(Ff);var zf=ue({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Uf,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Ln.touchMouseIgnoreWait=500;let Kn=0,Lt=0,er=!1;class rl{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=t=>{if(!this.shouldIgnoreMouse()&&Wf(t)&&this.tryStart(t)){let r=this.createEventFromMouse(t,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=t=>{let r=this.createEventFromMouse(t);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=t=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=t=>{if(this.tryStart(t)){this.isTouchDragging=!0;let r=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=t.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=t=>{let r=this.createEventFromTouch(t);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=t=>{if(this.isDragging){let r=t.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,Gf()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=t=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new kt,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),qf()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Qf()}tryStart(e){let t=this.querySubjectEl(e),r=e.target;return t&&(!this.handleSelector||W(r,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){er=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?W(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Kn||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(er=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let r=0,i=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,t){let r=e.touches,i,s,l=0,o=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),t?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,o=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:o}}}function Wf(n){return n.button===0&&!n.ctrlKey}function Gf(){Kn+=1,setTimeout(()=>{Kn-=1},Ln.touchMouseIgnoreWait)}function qf(){Lt+=1,Lt===1&&window.addEventListener("touchmove",il,{passive:!1})}function Qf(){Lt-=1,Lt||window.removeEventListener("touchmove",il,{passive:!1})}function il(n){er&&n.preventDefault()}class Yf{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let r=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,t){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+t+"ms,left "+t+"ms",Ye(r,{left:i.left,top:i.top}),oo(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(Kt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Ye(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),Ye(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class sl extends Nn{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class ll extends sl{constructor(e,t){super(new Oc(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return kc(this.scrollController.el)}}class Zf extends sl{constructor(e){super(new Ic,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const ol=typeof performance=="function"?performance.now:Date.now;class $f{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=ol();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let r=e-window.scrollX,i=t-window.scrollY,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ol()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*o);break;case"top":o=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*o);break}}computeBestEdge(e,t){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let o=l.clientRect,c=e-o.left,u=o.right-e,d=t-o.top,g=o.bottom-t;c>=0&&u>=0&&d>=0&&g>=0&&(d<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"top",distance:d}),g<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>g)&&(i={scrollCache:l,name:"bottom",distance:g}),c<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"left",distance:c}),u<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"right",distance:u}))}return i}buildCaches(e){return this.queryScrollEls(e).map(t=>t===window?new Zf(!1):new ll(t,!1))}queryScrollEls(e){let t=[];for(let r of this.scrollQuery)typeof r=="object"?t.push(r):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return t}}class nt extends Pc{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,ao(document.body),uo(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:o,deltaY:c}=i;l=o*o+c*c,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,co(document.body),fo(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new rl(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),t&&(r.selector=t),this.mirror=new Yf,this.autoScroller=new $f}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Xf{constructor(e){this.el=e,this.origRect=In(e),this.scrollCaches=is(e).map(t=>new ll(t,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let r={left:e,top:t};for(let i of this.scrollCaches)if(!Jf(i.getEventTarget())&&!vc(r,i.clientRect))return!1;return!0}}function Jf(n){let e=n.tagName;return e==="HTML"||e==="BODY"}class Ut{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new kt}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},r=t,i=e.subjectEl,s;i instanceof HTMLElement&&(s=In(i),r=yc(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let o=ts(s,l.rect);o&&(r=bc(o))}this.coordAdjust=Ec(r,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!jt(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=le(this.droppableStore,e=>(e.component.prepareHits(),new Xf(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let o=r[l].component,c=i[l];if(c&&c.isWithinClipping(e,t)){let u=c.computeLeft(),d=c.computeTop(),g=e-u,h=t-d,{origRect:f}=c,y=f.right-f.left,p=f.bottom-f.top;if(g>=0&&g<y&&h>=0&&h<p){let m=o.queryHit(g,h,y,p);m&&Dt(m.dateProfile.activeRange,m.dateSpan.range)&&(this.disablePointCheck||c.el.contains(c.el.getRootNode().elementFromPoint(g+u-window.scrollX,h+d-window.scrollY)))&&(!s||m.layer>s.layer)&&(m.componentId=l,m.context=o.context,m.rect.left+=u,m.rect.right+=u,m.rect.top+=d,m.rect.bottom+=d,s=m)}}}return s}}function jt(n,e){return!n&&!e?!0:!!n!=!!e?!1:oc(n.dateSpan,e.dateSpan)}function al(n,e){let t={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(t,r(n,e));return Object.assign(t,Kf(n,e.dateEnv)),t}function Kf(n,e){return{date:e.toDate(n.range.start),dateStr:e.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay}}class eh extends je{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:o}=this.hitDragging;if(l&&o&&jt(l,o)){let{context:c}=i,u=Object.assign(Object.assign({},al(l.dateSpan,c)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:c.viewApi||c.calendarApi.view});c.emitter.trigger("dateClick",u)}}},this.dragging=new nt(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Ut(this.dragging,Rn(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class th extends je{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:o,dragging:c}=this,{options:u}=o.context,d=u.selectable&&o.isValidDateDownEl(l.origEvent.target);c.setIgnoreMove(!d),c.delay=l.isTouch?nh(o):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,o)=>{let{context:c}=this.component,u=null,d=!1;if(l){let g=this.hitDragging.initialHit;l.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,l)||(u=rh(g,l,c.pluginHooks.dateSelectionTransformers)),(!u||!Fc(u,l.dateProfile,c))&&(d=!0,u=null)}u?c.dispatch({type:"SELECT_DATES",selection:u}):o||c.dispatch({type:"UNSELECT_DATES"}),d?en():tn(),o||(this.dragSelection=u)},this.handlePointerUp=l=>{this.dragSelection&&(ji(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:r}=t.context,i=this.dragging=new nt(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Ut(this.dragging,Rn(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function nh(n){let{options:e}=n.context,t=e.selectLongPressDelay;return t==null&&(t=e.longPressDelay),t}function rh(n,e,t){let r=n.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(vo);let l={};for(let o of t){let c=o(n,e);if(c===!1)return null;c&&Object.assign(l,c)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class rt extends je{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let o=l.origEvent.target,{component:c,dragging:u}=this,{mirror:d}=u,{options:g}=c.context,h=c.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=Ue(l.subjectEl),p=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=Sn(h.getCurrentData().eventStore,p),u.minDistance=l.isTouch?0:g.eventDragMinDistance,u.delay=l.isTouch&&p!==c.props.eventSelection?sh(c):null,g.fixedMirrorParent?d.parentNode=g.fixedMirrorParent:d.parentNode=W(o,".fc"),d.revertDuration=g.dragRevertDuration;let m=c.isValidSegDownEl(o)&&!W(o,".fc-event-resizer");u.setIgnoreMove(!m),this.isDragging=m&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let o=this.component.context,c=this.eventRange,u=c.instance.instanceId;l.isTouch?u!==this.component.props.eventSelection&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:u}):o.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(o.calendarApi.unselect(l),o.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new U(o,c.def,c.instance),jsEvent:l.origEvent,view:o.viewApi}))},this.handleHitUpdate=(l,o)=>{if(!this.isDragging)return;let c=this.relevantEvents,u=this.hitDragging.initialHit,d=this.component.context,g=null,h=null,f=null,y=!1,p={affectedEvents:c,mutatedEvents:$(),isEvent:!0};if(l){g=l.context;let m=g.options;d===g||m.editable&&m.droppable?(h=ih(u,l,this.eventRange.instance.range.start,g.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=Dn(c,g.getCurrentData().eventUiBases,h,g),p.mutatedEvents=f,hs(p,l.dateProfile,g)||(y=!0,h=null,f=null,p.mutatedEvents=$()))):g=null}this.displayDrag(g,p),y?en():tn(),o||(d===g&&jt(u,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let o=this.component.context,c=o.viewApi,{receivingContext:u,validMutation:d}=this,g=this.eventRange.def,h=this.eventRange.instance,f=new U(o,g,h),y=this.relevantEvents,p=this.mutatedRelevantEvents,{finalHit:m}=this.hitDragging;if(this.clearDrag(),o.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:c}),d){if(u===o){let A=new U(o,p.defs[g.defId],h?p.instances[h.instanceId]:null);o.dispatch({type:"MERGE_EVENTS",eventStore:p});let E={oldEvent:f,event:A,relatedEvents:ke(p,o,h),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:y})}},D={};for(let S of o.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(D,S(d,o));o.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},E),D),{el:l.subjectEl,delta:d.datesDelta,jsEvent:l.origEvent,view:c})),o.emitter.trigger("eventChange",E)}else if(u){let A={event:f,relatedEvents:ke(y,o,h),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:y})}};o.emitter.trigger("eventLeave",Object.assign(Object.assign({},A),{draggedEl:l.subjectEl,view:c})),o.dispatch({type:"REMOVE_EVENTS",eventStore:y}),o.emitter.trigger("eventRemove",A);let E=p.defs[g.defId],D=p.instances[h.instanceId],S=new U(u,E,D);u.dispatch({type:"MERGE_EVENTS",eventStore:p});let N={event:S,relatedEvents:ke(p,u,D),revert(){u.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};u.emitter.trigger("eventAdd",N),l.isTouch&&u.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),u.emitter.trigger("drop",Object.assign(Object.assign({},al(m.dateSpan,u)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:m.context.viewApi})),u.emitter.trigger("eventReceive",Object.assign(Object.assign({},N),{draggedEl:l.subjectEl,view:m.context.viewApi}))}}else o.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:r}=t.context,i=this.dragging=new nt(e.el);i.pointer.selector=rt.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Ut(this.dragging,Tn);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:$(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}rt.SELECTOR=".fc-event-draggable, .fc-event-resizable";function ih(n,e,t,r){let i=n.dateSpan,s=e.dateSpan,l=i.range.start,o=s.range.start,c={};i.allDay!==s.allDay&&(c.allDay=s.allDay,c.hasEnd=e.context.options.allDayMaintainDuration,s.allDay?l=H(t):l=t);let u=He(l,o,n.context.dateEnv,n.componentId===e.componentId?n.largeUnit:null);u.milliseconds&&(c.allDay=!1);let d={datesDelta:u,standardProps:c};for(let g of r)g(d,n,e);return d}function sh(n){let{options:e}=n.context,t=e.eventLongPressDelay;return t==null&&(t=e.longPressDelay),t}class lh extends je{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,o=this.querySegEl(s),c=Ue(o),u=this.eventRange=c.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==u.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,o=this.eventRange;this.relevantEvents=Sn(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let c=this.querySegEl(s);this.draggingSegEl=c,this.draggingSeg=Ue(c),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:c,event:new U(l,o.def,o.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,o)=>{let{context:c}=this.component,u=this.relevantEvents,d=this.hitDragging.initialHit,g=this.eventRange.instance,h=null,f=null,y=!1,p={affectedEvents:u,mutatedEvents:$(),isEvent:!0};s&&(s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)||(h=oh(d,s,o.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),h&&(f=Dn(u,c.getCurrentData().eventUiBases,h,c),p.mutatedEvents=f,hs(p,s.dateProfile,c)||(y=!0,h=null,f=null,p.mutatedEvents=null)),f?c.dispatch({type:"SET_EVENT_RESIZE",state:p}):c.dispatch({type:"UNSET_EVENT_RESIZE"}),y?en():tn(),l||(h&&jt(d,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,o=this.eventRange.def,c=this.eventRange.instance,u=new U(l,o,c),d=this.relevantEvents,g=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:u,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new U(l,g.defs[o.defId],c?g.instances[c.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:g});let f={oldEvent:u,event:h,relatedEvents:ke(g,l,c),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:d})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||I(0),endDelta:this.validMutation.endDelta||I(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,r=this.dragging=new nt(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=t.context.options.dragScroll;let i=this.hitDragging=new Ut(this.dragging,Rn(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return W(e.subjectEl,".fc-event")}}function oh(n,e,t,r){let i=n.context.dateEnv,s=n.dateSpan.range.start,l=e.dateSpan.range.start,o=He(s,l,i,n.largeUnit);if(t){if(i.add(r.start,o)<r.end)return{startDelta:o}}else if(i.add(r.end,o)>r.start)return{endDelta:o};return null}class ah{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=ei(r.origEvent);this.matchesCancel=!!W(s,i),this.matchesEvent=!!W(s,rt.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let o=i.options.unselectAuto;o&&(!o||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new rl(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const ch={fixedMirrorParent:b},dh={dateClick:b,eventDragStart:b,eventDragStop:b,eventDrop:b,eventResizeStart:b,eventResizeStop:b,eventResize:b,drop:b,eventReceive:b,eventLeave:b};Ln.dataAttrPrefix="";var uh=ue({name:"@fullcalendar/interaction",componentInteractions:[eh,th,rt,lh],calendarInteractions:[ah],elementDraggingImpl:nt,optionRefiners:ch,listenerRefiners:dh});const fh={},hh={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"};function ph(n,e){return a.openBlock(),a.createElementBlock("svg",hh,e[0]||(e[0]=[a.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),a.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)]))}const gh=ne(fh,[["render",ph]]),mh={},vh={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"};function yh(n,e){return a.openBlock(),a.createElementBlock("svg",vh,e[0]||(e[0]=[a.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-icon-deep-color)","p-id":"8421"},null,-1),a.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)]))}const bh=ne(mh,[["render",yh]]),Eh={},Ah={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"};function Sh(n,e){return a.openBlock(),a.createElementBlock("svg",Ah,e[0]||(e[0]=[a.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-icon-shallow-color-hover)","p-id":"7125"},null,-1),a.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)]))}const Ch=ne(Eh,[["render",Sh]]),wh={},Dh={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"};function _h(n,e){return a.openBlock(),a.createElementBlock("svg",Dh,e[0]||(e[0]=[a.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),a.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-icon-shallow-color-hover)","p-id":"6991"},null,-1)]))}const Rh=ne(wh,[["render",_h]]),Th={},xh={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"};function kh(n,e){return a.openBlock(),a.createElementBlock("svg",xh,e[0]||(e[0]=[a.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-icon-shallow-color-hover)","p-id":"6855"},null,-1),a.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)]))}const Mh=ne(Th,[["render",kh]]),Oh={class:"avatar"},Ih={key:3,class:"user_box"},Nh={key:1,class:"avatar_name"},X=ne(a.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(n){const e=n,{cLoadUrl:t}=kl(e),r=i=>xl(t.value,i);return(i,s)=>{const l=a.resolveComponent("el-avatar");return a.openBlock(),a.createElementBlock("div",Oh,[e.fixTypeOpt.group===n.element[e.fixPropOpt.type]?(a.openBlock(),a.createBlock(Mh,{key:0})):e.fixTypeOpt.role===n.element[e.fixPropOpt.type]?(a.openBlock(),a.createBlock(Ch,{key:1})):e.fixTypeOpt.post===n.element[e.fixPropOpt.type]?(a.openBlock(),a.createBlock(Rh,{key:2})):e.fixTypeOpt.user===n.element[e.fixPropOpt.type]?(a.openBlock(),a.createElementBlock("div",Ih,[n.element[n.fixPropOpt.avatar]?(a.openBlock(),a.createBlock(l,{key:0,shape:"square",src:r(n.fixPropOpt.avatar?n.element[n.fixPropOpt.avatar]:"")},null,8,["src"])):(a.openBlock(),a.createElementBlock("div",Nh,a.toDisplayString(n.element[n.fixPropOpt.name].slice(-2)),1))])):a.createCommentVNode("v-if",!0)])}}}),[["__scopeId","data-v-8031ce9b"]]),tr="data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBI4gsAAAXwh21/2rb//yncJGWGwWvMXFi6wpNh8GRmZmZmZmYeMzMzlobdnuvw+SynSVvbKiTx4ViWHcly/nodz4hw4LaNIylb5mbLeTIl2S+A/+u0//zH3hUlGHLVu1GC0Ze+HyUoKPo0SnClc0aU4Ontu6IEfzzWFiVYeGWU2Ede90qU4LMfj0YH3FOvihLnl/atiQ6k/RgtzlPfPxwduCXj0yiR0j1+Sygq0Pfr6/iosA/6/M6G6PC98+5t3qiw33j5fVEhL3W81/Z2CKfi02lG/c2Q/8YX2PQh54cv1htzKe6VuBewtxW/8NBpQy5Z757y4VasjFcynoJGXLJcdef0GSJOR//Pf11kyMvKbVcu/rMDp8P+5Ogn6w241POu3Gnzglghlzz+w2IDno6Tb/T/thsrxHzp/du/gozNpZBIX3npNdkrZ+LWRlPK2POHrPuVkawOO3tWmfdX7d/fSW8yllyVtXneWfyY+I2v3HKExbE4dJ8TgI7dm7fsFMgz8OIisHXRP4YxqR77Ev0DYfWCpa0Rg13LJ0xIP7Z6W6cBLA64ebTyYqWEzllflxERWjAh13F8+44mw1nlsvan4kSsf7oqcuLv3VXWYUzL9ZTFJpyI4JcvdBt3hv/2K3gVWybyxgo+XC6/BC9j+WTjPiXv64OXcd1c495GbknAsnIiMG47Z5UDxylpVBi4XTvLjKF6CDByu+1Xq5IZNwNDtytmxiiYvBwYu3lm9kaoz5a+IQzekj6+3QpA7crftxsWJNPna/qd+DH2mcdAlLD5Vxs9mMdu744SvP9LTZTgxVUVUYJHKlQeNA30xNWfOtVkwDi7gkrc+R6PJwX4kgDgT6HWbLyv6+Mp9IxEkqQwODmc4l+8hkjMOI/Hk4XoUKBFW7viX1oMixxPoWcM8vWAJxKdbYp/8RkJtlGFHg+a3KlDQnSr4l/8rJPm8RTmumRRGiHZAL986+5dTGIZVujxDECURQDxplSNDbFG4niPpyBeVhcp5NvzwI9sUfDrELOsT494B7EVDzaVSvpIQaFJPz7AEpOXAh0Tyi9jaF2pHE4QGq3aVSgyw12/AoLQadbvzKShx3ronMZBrITiF94HJKHTsK8fY4OUmgTdExi3nwk+f4KkRuik1LQt54gsfNUccbDQR7dMZ4DpNzEx1moHt+uesXvNbEz+T57VPWsvYGQt7h51ROdcvIqZGL/uQn1jLhvNTtJ17Txdc+tfDOXAZ4byOiamujc7BLc8WaVjnv4EsHL3xvmLGnXdrs8u78sCXevmL2rRf+Oyi4qKRlr0TMeaeUv9zEyZ+MKioglWvVKwBzBmZWP1ymgdLyqZRfYjlRrS3t35LDJsVOfeM/S45GMRwj1vq6eLOzwM8tJtHZCf8zOtL4kRi0QBQrjjbfUvk2L2uOsNCKEAf15MB+u6AdIu2+sH1Nh4DnP8b7MJwfsQnfTi7o8lzch24HXV9PF85vhrotR+ZJszlwbugwmSaLTw4X4VVl3MGnkbOyA6In1PtVPglZelXXGqfkdlYi+Zwhrrx4cdgBaXUEjA0447ws5XVHyt0rJFlzPGxGXhjlT4oPWlNuJ8+VinJFlJzQcii6Tem35kVhswV4yQ2o8prJ5Pmr5H7J3yKFII/7WSQRIXZXDc8Sf42/8QOwQMbW+3EmbGjaAT4n6e+TTEHt9cznEcP3f20V5hcKdNC8kydp9JRi4oVtp9zDFuLc9xPOc7/TIQpSdxG/d5M1HWXgAkUOcr7qtYFmCM1fnyznVNdIQJNx/jg/a1JNPxi1YDALrCmrHCK1azxcXLkJ3rPwggSEVcby49QoycvVkyUGUTfuNYwlw2HNlduSYFWCfUTSXG73cAJdgeWHSaJW6eFuDk6jwnAECUIo/a9n2AEJbadARJsoruubUMYa/uE5DPprGSCuUB15vcDyFCXL4IKMELX3uYIR7/AiBkS/MKOUgOwK91wlTtsUs9j0ZBanH31c1hAGXoPZYmwwsjLAhdAtpyKX6hPijbQQh/ghK14l+QGZZNAiDIcbw4CCAEOKkf8U6oJZUUbS9URaH+z05WGHAMyPAcHGFWorL9u4AQJWscMt2yZqzwQ2uZ+fHamzJydUpvFF6QriqSO5l1xAJX7ssD4+JjQ6jXfc28IAiQP70lwAqmf7MQ5LQuPttutdkCEDk1+QUeCpCrqiLbGuvMiw5mdkC48DOMIgZAw41gR0ASCfk+601xFTkQwtc30WpPLP93pwrM/PjpXhSpqKzYI06FUHhjE70WHWcU2/MXxsdnIonEiUaO5/lT2wumQgjf2EiRLoEt8POt8HHfeRz30jZUhYc2NZ0QLmAJtXVjwu8c/6KSaYKBUn3pKVV4DgcUqHKiA8LFH+NxZaanXz0hOcGsNwRvc0NtS1NTU1NDA1TyBxdGMbrlW95aTwM0gpyAEC5/H8HRIycnJyszXvFdkpCcEW/VCx3eZq+A1dFaV1tbe7a2q+h3jntpK0rRnxDCd1fTAI0gNQKEq9/N7tOnd68Mk7pzU1OdzpgYEz3QnMvb7OU0Kgo1WCa2+55XLPGlv0EIP1xOAcXC+3eXaPaecWqW5cywiqYYp9NFa0AEvM3etoh0pYwMBCt3twS6Ic/1e4bn4FfzKJE9avRLYijoP6xJmeI1qXEiEAGwulwuogNCjq5+X0tbSAyJYd3aSR0RCNY0oBrShocCcNOSmqPtBEFn4ai8senAVhwMBbn9qvpUlps0i+QB5Gh2ulxu9QGhdaS2tfhaQ6hc+T7tl9KHBYKnalEyhgWDwdrTQDxbWbY/QAx7flGuAxmwnlAw2FEe1hhRpVv2geQJxB12l9vtjGxAiO0+nz+EyMQcwyIkIZrIHBII/nMGJWdQMBhsrEE0cDvXVBOh96QSt0KCLUMMiaHGSHW6U8ySD7AOMbncsW6bKmjD/T5/AKNPRayoLa1MEEOCYuLGxYui2OHH5Dezd4uRMvz60RRW0xQn1hOoBIc7NtZlwgcmv9/fjdemdqSwaBz+7nREZN2bR2Al0tZjicpK/Eg1u2PjYm1yYPL7WzuBrAmrKiwCK4VKpPh+XQRceF8MGuBoVDqUTlH1U0ycydcJtExENSmUGvvtKs3ccDOxQKpxEpmUTtFwxEnQdrsMrbj3hNaLBa/QzQisSXYNHR2ZELwqak1d87VGPhsg52dUK+MBlXNYCPmGYv7nSY0skBdpypWJtsjHsQYpdNn/ska+60k1ZVaEFykYa/KTLCQiX1Js5fcrtD79GNXcXxmxEyyEH6DLsec1J0aPXqSHzRTrVHiIxPto7ydf82tv+43Xm3VRGW/G+Unhy4iE0Gvehu87IhE1+KE+uqh0x2h5Rnfnmt+rItRlLr2uhy4qY830niH0wVGxtFwk0Iu5E8ea9VApBWOcnxQSlL5UEUOjpnrnVi8picmlxQPoF+wuk8b3qbqVeE564uihAxxZpWkFuSPstCtdNoWfMN5SfTTsVmLNkHP1/Udqz9SG6PTkkFHDB1jpVkorP/YZDUf5PmLdf+zA/uoA5VE5YNDAgWkRqY50sXJa9PDMwV1Hj0vX9GHx/fr06dXDTmnBjAGRPUD164Zin2b07JmTlZVsIi43xhJ2muaQRS5506U5MjPS09LT0hLNBCulAaT5AVK6X61URW/DIjE5OTkxMT4hMcUduUSHGes0hS8Jwt/WBRixjB+sBCpt+Pcpj6SaNWcqYMZuuJnEqLGZqIWsusdUslCdD+1X8kiIs1ql91E5Cy+cBBpNp2vOy2OIeNlqwryU5E1vHQY6MiKdfP8lRNRZMCu/DKGr754GrFnJg7FEMj2LifB5w48CYM8SbruQSGSWNpLnf38qB2xavxsKTCQqzcT25jlrpWSOWetzZZGNRMFE5C9OLt1Ir6SXTPaC83pHvskRLNI1fsdaaXU0AOtdMr5XpLIjrdm7rawbGIWl544ZFkeFUE1FeXUQMGUkZl+vYQP79bSQxF9TXX0UAqLGVH7Ru2ePntnpjkg7v7m+/uypU35A3lgMaempCQmJ8S6n02mzWCymYDAQ7BIEgW/z+XwtjYwviNHc/vMfAFZQOCCwBAAA8CoAnQEqyADOAD5tNpRGpD+iISw1STvwDYlpbuDAdGXYW5+xX+E/B79IvqhdnLddJLmGi5paMwD+h8p7UC/h/9K6qXoHfpyR4P/Uv3L6q0mh/qXmCC5XUh/6l+4p6WqP3L5qDkPaVIRPowOQa5RsItEnpv2qi+aEGdI5VaSY7+i3fjzySZVTfInmLOji/1JNDhsggr75HlBnTop05IyqW9k6rgDx4oGKuZLsiDqTspeWt1TThs95rEvc3BAQ2Cmm/WHPEgITWp1jDj8fnYpacUKlA2fv4bDkY96yZXMjIrnu/KsBeRwGc1mPgGXhZDn5J8bFFYquI/e5SRB/fGWHrUWxTd/6ZFoE99q2r5vdSogeBKsvZRRnOJo1DhTmQzfK+jKPl1XB61eCyIzI2T0HdI/htEFcLySPEI1rIA1ptHGDrClKq1Cj6yIjq1T8SCl5GneZHHtrpmpD/1L9y+qqAAD+ysAAAACruyAAa6B+sspLlClJkLWAAlhaOsmcS18eCdW/9MiovfLi9lIdZV4K9C2nq4XL6pGljxoATLaWY+Fdf+yp8QqRmQOm17DSnKGoocmxvW4jXk3K6solfHw92MfxE9PKbpV6k390KRXwxMKUkfODCBPOGu7AVxFQQDv/surrkKoki8usn4RG7CzImZDOrpVMMa1nuR8WstZYVtabVbc37OMP2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA",nr={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]}},Bh={class:"left-pick-list"},Ph={key:1,class:"post-view-list"},Vh={class:"checkText"},Hh={class:"iconBox"},Lh={class:"name_number"},Uh={class:"title"},jh={key:0,class:"userCount"},Fh={key:1,class:"checkText"},zh={class:"iconBox"},Wh={class:"name_number"},Gh={class:"title"},qh={key:0,class:"userCount"},Qh=["onClick"],Yh={class:"checkText"},Zh={class:"iconBox"},$h={class:"name_number"},Xh={class:"title"},Jh={key:0,class:"userCount"},Kh={key:1,class:"checkText"},ep={class:"iconBox"},tp={class:"name_number"},np={class:"title"},rp={key:0,class:"userCount"},ip=["onClick"],sp={key:2,class:"empty"},lp=ne(a.defineComponent({__name:"GroupList",props:nr,emits:["change","check","handChild"],setup(n,{emit:e}){var h,f;const t=n,r=a.computed(()=>{var y,p;return((y=t.handList)==null?void 0:y.length)===((p=t.list)==null?void 0:p.length)}),i=a.computed(()=>{var m,A,E,D;const y=(m=t.handList)==null?void 0:m.length,p=(A=t.list)==null?void 0:A.length;return t.multiple?s.value=t.handList.map(S=>S[t.fixPropOpt.id]):l.value=(D=(E=t.handList)==null?void 0:E[0])==null?void 0:D[t.fixPropOpt.id],y>0&&y<p}),s=a.ref(t.handList.map(y=>y[t.fixPropOpt.id])),l=a.ref((f=(h=t.handList)==null?void 0:h[0])==null?void 0:f[t.fixPropOpt.id]),o=e,c=y=>{const p=y?t.list.map(m=>{if(t.chooseType.includes(m[t.fixPropOpt.type].toLowerCase())&&m.available!==!1)return m[t.fixPropOpt.id]}):[];o("change",p,y?t.list:[])},u=y=>{o("change",y,t.list)},d=y=>{o("change",y,t.list)},g=(y,p)=>{p||o("handChild",y)};return(y,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createCommentVNode(" 遍历list多选 "),a.createElementVNode("div",Bh,[y.multiple&&y.list&&y.list.length?(a.openBlock(),a.createBlock(a.unref(_.ElCheckbox),{key:0,modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=m=>r.value=m),indeterminate:i.value,onChange:c},{default:a.withCtx(()=>p[3]||(p[3]=[a.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):a.createCommentVNode("v-if",!0),y.list&&y.list.length?(a.openBlock(),a.createElementBlock("ul",Ph,[y.multiple?(a.openBlock(),a.createBlock(a.unref(_.ElCheckboxGroup),{key:0,modelValue:s.value,"onUpdate:modelValue":p[1]||(p[1]=m=>s.value=m),onChange:u},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.list,m=>{var A;return a.openBlock(),a.createElementBlock("li",{key:m[t.fixPropOpt.id]},[y.chooseType.includes(m[t.fixPropOpt.type].toLowerCase())&&m.available!==!1?(a.openBlock(),a.createBlock(a.unref(_.ElCheckbox),{key:0,label:m[t.fixPropOpt.id],disabled:m.available===!1},{default:a.withCtx(()=>[a.createElementVNode("div",Vh,[a.createElementVNode("div",Hh,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:m,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",Lh,[a.createElementVNode("div",Uh,a.toDisplayString(m[t.fixPropOpt.name]),1),m[t.fixPropOpt.type]===t.fixTypeOpt.group?(a.openBlock(),a.createElementBlock("div",jh," ("+a.toDisplayString(m.userCount)+") ",1)):a.createCommentVNode("v-if",!0)])])]),_:2},1032,["label","disabled"])):(a.openBlock(),a.createElementBlock("div",Fh,[p[4]||(p[4]=a.createElementVNode("div",{class:"side"},null,-1)),a.createElementVNode("div",zh,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:m,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",Wh,[a.createElementVNode("div",Gh,a.toDisplayString(m[t.fixPropOpt.name]),1),m[t.fixPropOpt.type]===t.fixTypeOpt.group?(a.openBlock(),a.createElementBlock("div",qh," ("+a.toDisplayString(m.userCount)+") ",1)):a.createCommentVNode("v-if",!0)])])),m[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass(["nextLevel",{"is-disabled":(A=s.value)==null?void 0:A.find(E=>E===m[t.fixPropOpt.id])}]),onClick:E=>{var D;return g(m,(D=s.value)==null?void 0:D.find(S=>S===m[t.fixPropOpt.id]))}}," 下级",10,Qh)):a.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(a.unref(_.ElRadioGroup),{key:1,isIndeterminate:i.value,modelValue:l.value,"onUpdate:modelValue":p[2]||(p[2]=m=>l.value=m),onChange:d},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.list,m=>{var A;return a.openBlock(),a.createElementBlock("li",{class:"w-full",key:m[t.fixPropOpt.id]},[y.chooseType.includes(m[t.fixPropOpt.type].toLowerCase())&&m.available!==!1?(a.openBlock(),a.createBlock(a.unref(_.ElRadio),{key:0,label:m[t.fixPropOpt.id]},{default:a.withCtx(()=>[a.createElementVNode("div",Yh,[a.createElementVNode("div",Zh,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:m,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",$h,[a.createElementVNode("div",Xh,a.toDisplayString(m[t.fixPropOpt.name]),1),m[t.fixPropOpt.type]===t.fixTypeOpt.group?(a.openBlock(),a.createElementBlock("div",Jh," ("+a.toDisplayString((m==null?void 0:m.userCount)||0)+") ",1)):a.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])):(a.openBlock(),a.createElementBlock("div",Kh,[p[5]||(p[5]=a.createElementVNode("div",{class:"side"},null,-1)),a.createElementVNode("div",ep,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:m,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",tp,[a.createElementVNode("div",np,a.toDisplayString(m[t.fixPropOpt.name]),1),m[t.fixPropOpt.type]===t.fixTypeOpt.group?(a.openBlock(),a.createElementBlock("div",rp," ("+a.toDisplayString(m.userCount)+") ",1)):a.createCommentVNode("v-if",!0)])])),m[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass(["nextLevel",{"is-disabled":(A=s.value)==null?void 0:A.find(E=>E===m[t.fixPropOpt.id])}]),onClick:E=>{var D;return g(m,(D=s.value)==null?void 0:D.find(S=>S===m[t.fixPropOpt.id]))}}," 下级",10,ip)):a.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(a.openBlock(),a.createElementBlock("div",sp,[p[6]||(p[6]=a.createElementVNode("img",{src:tr,alt:""},null,-1)),a.createElementVNode("div",null,a.toDisplayString(t.emptyText),1)]))])],2112))}}),[["__scopeId","data-v-8c34a55d"]]),op={class:"left-pick-list"},ap={key:1,class:"post-view-list"},cp={class:"iconBox"},dp={key:1,class:"checkText"},up={class:"iconBox"},fp={class:"title"},hp={class:"ik-picker-single"},pp={class:"iconBox"},gp={key:1,class:"checkText"},mp={class:"iconBox"},vp={class:"title"},yp={key:2,class:"empty"},bp=ne(a.defineComponent({__name:"PostList",props:nr,emits:["change","check"],setup(n,{emit:e}){var g,h;const t=n,r=a.computed(()=>{var f,y;return((f=t.handList)==null?void 0:f.length)===((y=t.list)==null?void 0:y.length)}),i=a.computed(()=>{var p,m,A,E;const f=(p=t.handList)==null?void 0:p.length,y=(m=t.list)==null?void 0:m.length;return t.multiple?s.value=t.handList.map(D=>D[t.fixPropOpt.id]):l.value=(E=(A=t.handList)==null?void 0:A[0])==null?void 0:E[t.fixPropOpt.id],f>0&&f<y}),s=a.ref(t.handList.map(f=>f[t.fixPropOpt.id])),l=a.ref((h=(g=t.handList)==null?void 0:g[0])==null?void 0:h[t.fixPropOpt.id]),o=e,c=f=>{const y=f?t.list.map(p=>p[t.fixPropOpt.id]):[];o("change",y,f?t.list:[])},u=f=>{o("change",f,t.list)},d=f=>{o("change",f,t.list)};return(f,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createCommentVNode(" 遍历list多选 "),a.createElementVNode("div",op,[f.multiple&&f.chooseType.includes("post")&&f.list&&f.list.length?(a.openBlock(),a.createBlock(a.unref(_.ElCheckbox),{key:0,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=p=>r.value=p),indeterminate:i.value,onChange:c},{default:a.withCtx(()=>y[3]||(y[3]=[a.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):a.createCommentVNode("v-if",!0),f.list&&f.list.length?(a.openBlock(),a.createElementBlock("ul",ap,[f.multiple?(a.openBlock(),a.createBlock(a.unref(_.ElCheckboxGroup),{key:0,modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=p=>s.value=p),onChange:u},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.list,p=>(a.openBlock(),a.createElementBlock("li",{key:p[t.fixPropOpt.id]},[f.chooseType.includes(p[t.fixPropOpt.type].toLowerCase())?(a.openBlock(),a.createBlock(a.unref(_.ElCheckbox),{key:0,label:p[t.fixPropOpt.id]},{default:a.withCtx(()=>[a.createElementVNode("div",cp,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("p",null,a.toDisplayString(p[t.fixPropOpt.name]),1)]),_:2},1032,["label"])):(a.openBlock(),a.createElementBlock("div",dp,[y[4]||(y[4]=a.createElementVNode("div",{class:"side"},null,-1)),a.createElementVNode("div",up,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",fp,a.toDisplayString(p[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(a.unref(_.ElRadioGroup),{key:1,isIndeterminate:i.value,modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=p=>l.value=p),onChange:d},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.list,p=>(a.openBlock(),a.createElementBlock("li",{class:"w-full",key:p[t.fixPropOpt.id]},[f.chooseType.includes(p[t.fixPropOpt.type].toLowerCase())?(a.openBlock(),a.createBlock(a.unref(_.ElRadio),{key:0,label:p[t.fixPropOpt.id]},{default:a.withCtx(()=>[a.createElementVNode("div",hp,[a.createElementVNode("div",pp,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("p",null,a.toDisplayString(p[t.fixPropOpt.name]),1)])]),_:2},1032,["label"])):(a.openBlock(),a.createElementBlock("div",gp,[y[5]||(y[5]=a.createElementVNode("div",{class:"side"},null,-1)),a.createElementVNode("div",mp,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",vp,a.toDisplayString(p[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(a.openBlock(),a.createElementBlock("div",yp,[y[6]||(y[6]=a.createElementVNode("img",{src:tr,alt:""},null,-1)),a.createElementVNode("div",null,a.toDisplayString(t.emptyText),1)]))])],2112))}}),[["__scopeId","data-v-e03f0d36"]]),Ep={class:"left-pick-list"},Ap={key:1,class:"role-view-list"},Sp={class:"iconBox"},Cp=["title"],wp={key:1,class:"checkText"},Dp={class:"iconBox"},_p=["title"],Rp={class:"ik-picker-single"},Tp={class:"iconBox"},xp=["title"],kp={key:1,class:"checkText"},Mp={class:"iconBox"},Op=["title"],Ip={key:2,class:"empty"},Np=ne(a.defineComponent({__name:"RoleList",props:nr,emits:["change","check"],setup(n,{emit:e}){var g,h;const t=n,r=a.computed(()=>{var f,y;return((f=t.handList)==null?void 0:f.length)===((y=t.list)==null?void 0:y.length)}),i=a.computed(()=>{var p,m,A,E;const f=(p=t.handList)==null?void 0:p.length,y=(m=t.list)==null?void 0:m.length;return t.multiple?s.value=t.handList.map(D=>D[t.fixPropOpt.id]):l.value=(E=(A=t.handList)==null?void 0:A[0])==null?void 0:E[t.fixPropOpt.id],f>0&&f<y}),s=a.ref(t.handList.map(f=>f[t.fixPropOpt.id])),l=a.ref((h=(g=t.handList)==null?void 0:g[0])==null?void 0:h[t.fixPropOpt.id]),o=e,c=f=>{const y=f?t.list.map(p=>p[t.fixPropOpt.id]):[];o("change",y,f?t.list:[])},u=f=>{o("change",f,t.list)},d=f=>{o("change",f,t.list)};return(f,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createCommentVNode(" 遍历list多选 "),a.createElementVNode("div",Ep,[f.multiple&&f.chooseType.includes("role")&&f.list&&f.list.length?(a.openBlock(),a.createBlock(a.unref(_.ElCheckbox),{key:0,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=p=>r.value=p),indeterminate:i.value,onChange:c},{default:a.withCtx(()=>y[3]||(y[3]=[a.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):a.createCommentVNode("v-if",!0),f.list&&f.list.length?(a.openBlock(),a.createElementBlock("ul",Ap,[f.multiple?(a.openBlock(),a.createBlock(a.unref(_.ElCheckboxGroup),{key:0,modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=p=>s.value=p),onChange:u},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.list,p=>(a.openBlock(),a.createElementBlock("li",{key:p[f.fixPropOpt.id]},[f.chooseType.includes(p[t.fixPropOpt.type].toLowerCase())?(a.openBlock(),a.createBlock(a.unref(_.ElCheckbox),{key:0,label:p[f.fixPropOpt.id],value:p[f.fixPropOpt.id],disabled:p.disabled},{default:a.withCtx(()=>[a.createElementVNode("div",Sp,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("p",{title:p[f.fixPropOpt.name]},a.toDisplayString(p[f.fixPropOpt.name]),9,Cp)]),_:2},1032,["label","value","disabled"])):(a.openBlock(),a.createElementBlock("div",wp,[y[4]||(y[4]=a.createElementVNode("div",{class:"side"},null,-1)),a.createElementVNode("div",Dp,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",{class:"title",title:p[f.fixPropOpt.name]},a.toDisplayString(p[f.fixPropOpt.name]),9,_p)]))]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(a.unref(_.ElRadioGroup),{key:1,indeterminate:i.value,modelValue:l.value,"onUpdate:modelValue":y[2]||(y[2]=p=>l.value=p),onChange:d},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.list,p=>(a.openBlock(),a.createElementBlock("li",{class:"w-full",key:p[f.fixPropOpt.id]},[f.chooseType.includes(p[t.fixPropOpt.type].toLowerCase())?(a.openBlock(),a.createBlock(a.unref(_.ElRadio),{key:0,label:p[f.fixPropOpt.id],value:p[f.fixPropOpt.id],disabled:p.disabled},{default:a.withCtx(()=>[a.createElementVNode("div",Rp,[a.createElementVNode("div",Tp,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("p",{title:p[f.fixPropOpt.name]},a.toDisplayString(p[f.fixPropOpt.name]),9,xp)])]),_:2},1032,["label","value","disabled"])):(a.openBlock(),a.createElementBlock("div",kp,[y[5]||(y[5]=a.createElementVNode("div",{class:"side"},null,-1)),a.createElementVNode("div",Mp,[a.createVNode(X,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:p,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("div",{class:"title",title:p[f.fixPropOpt.name]},a.toDisplayString(p[f.fixPropOpt.name]),9,Op)]))]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(a.openBlock(),a.createElementBlock("div",Ip,[y[6]||(y[6]=a.createElementVNode("img",{src:tr,alt:""},null,-1)),a.createElementVNode("div",null,a.toDisplayString(t.emptyText),1)]))])],2112))}}),[["__scopeId","data-v-be3b3e45"]]);var it=(n=>(n.group="group",n.role="role",n.post="post",n))(it||{});const Bp={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:n=>{if(n===void 0)return!0;if(Array.isArray(n)){if(!(n!=null&&n.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"},dataScopeOnly:{type:Boolean,default:!1},rootDepartmentOnly:{type:Boolean,default:!1}},cl=n=>{const e=window.location.search;return new URLSearchParams(e).get(n)},Pp=n=>{const e=F.ikStore.local.getItem("x_domain");e&&(n["X-DOMAIN"]=e)},Vp=n=>{var t;const e=cl("domain");if(e){n["X-DOMAIN"]=e;const r=cl("code");e==="APPLICATION"&&(n["X-APP"]=r)}else Pp(n);(t=F.ikStore.local.getItem("tenant"))==null||t.code},Hp=(n,e)=>{const t=a.ref([]),r=async(s,l)=>{var B,x,z;const{url:o,methods:c,headers:u,param:d}=n.value||{},g={rootDepartmentId:((B=F.ikStore.local.getItem("now_shop"))==null?void 0:B.storeId)||"",parentDepartmentId:s||"",name:l||"",rootDepartmentOnly:e.rootDepartmentOnly,dataScopeOnly:e.dataScopeOnly,...d||{}},h={method:c,url:o,headers:{"Content-Type":"application/json;charset=UTF-8",...u},data:JSON.stringify(g)};Vp(h.headers);const f=await ml(h),{success:y,data:p}=f.data;if(!y)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:m,roles:A,posts:E,users:D,rootOrganization:S,rootDepartment:N}=p,O=S||N;return t.value.length===0&&(t.value[0]=e.org?{...e.org,id:e.elementId,elementType:(z=(x=e.org)==null?void 0:x.elementType)==null?void 0:z.toLocaleUpperCase()}:{...O,id:O.elementId}),{groupList:F._.cloneDeep(m),roleList:F._.cloneDeep(A),postList:F._.cloneDeep(E),userList:F._.cloneDeep(D),rootOrganization:S,rootDepartment:N}};return{handData:r,handSetChild:(s,l)=>{r(s==null?void 0:s.elementId,l)},bannerList:t}},Lp={shadow:"hover",class:"sel-list"},Up={key:0},jp={class:"choose-list"},Fp={class:"choose-item"},zp={class:"choose-box"},Wp={class:"list-group-item"},Gp={class:"item_info"},qp={class:"avatar_box"},Qp={class:"dialog-footer"},Yp=dr(a.defineComponent({__name:"picker",props:Bp,emits:["handChild","update:show","update:modelValue","ok","search"],setup(n,{expose:e,emit:t}){a.useCssVars(C=>({"775d0d08":pl.value}));const r=n,i=a.ref(""),s=a.ref(""),l=a.ref([]),o=a.ref([]),c=a.ref([]),u=a.ref([]),d=a.ref(!1),g=a.computed(()=>z.value.includes("user")?o.value.concat(l.value):o.value);a.watch(()=>r.api,()=>{r.show&&B("")});const h=a.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...r.propOption})),f=a.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...r.typeOption})),y=a.ref([]),p=Hp(a.toRef(r,"api"),r),m=p.handData,A=p.bannerList;r.immediate&&m(s.value,i.value);const E=C=>(C.forEach(w=>{var k,M;w.disabled=((M=(k=r.modelValue)==null?void 0:k.find(P=>P[h.value.id]===w[h.value.id]))==null?void 0:M.disabled)||!1}),C),D=async()=>{var C,w,k,M,P,fe,cr,gl;d.value=!0;try{if((C=r.groupList)!=null&&C.length||(w=r.userList)!=null&&w.length||(k=r.roleList)!=null&&k.length||(M=r.postList)!=null&&M.length){l.value=(P=r.userList)==null?void 0:P.filter(he=>he[h.value.name].includes(i.value)),o.value=(fe=r.groupList)==null?void 0:fe.filter(he=>he[h.value.name].includes(i.value)),c.value=(cr=r.roleList)==null?void 0:cr.filter(he=>he[h.value.name].includes(i.value)),u.value=(gl=r.postList)==null?void 0:gl.filter(he=>he[h.value.name].includes(i.value)),sr(),d.value=!1;return}const K=await m(s.value,i.value);try{l.value=E((K==null?void 0:K.userList)||[]),o.value=E((K==null?void 0:K.groupList)||[]),c.value=E((K==null?void 0:K.roleList)||[]),u.value=E((K==null?void 0:K.postList)||[])}catch(he){d.value=!1,console.info("error: ",he)}sr(),d.value=!1}catch{d.value=!1}},S=a.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),N=a.reactive({indeterminate:!1,checkAll:0}),O=C=>S.group.has(C)||S.user.has(C)||S.role.has(C)||S.post.has(C),B=F.ikEvent.debounce(D,300),x=a.computed(()=>{const C=Array.from(S.group.values()),w=Array.from(S.role.values()),k=Array.from(S.user.values()),M=Array.from(S.post.values());return y.value=[...w,...M,...k,...C],{list:[...w,...k,...M,...C],role:{list:w,len:w.length},user:{list:k,len:k.length},post:{list:M,len:M.length},groups:{list:C,len:C.length}}}),z=a.computed(()=>{const C=r.chooseType.map(k=>k.toLocaleLowerCase());let w=[...C];return C.includes("dep")&&(w=[...w,"dept"]),C.includes("dep_user")&&(w=[...w,"user"]),w}),J=a.ref([]),rr=C=>{J.value=C,J.value.forEach(w=>{w.readonly=w==null?void 0:w.disabled})},We=t,ir=a.ref(!1),sr=(C=!1)=>{var k;const w=(k=r==null?void 0:r.userList)!=null&&k.length?F._.cloneDeep([...r==null?void 0:r.userList,...r==null?void 0:r.groupList]):[...o.value,...l.value];return!C&&rr(w),w};a.watch(()=>r.show,async C=>{var w;if(ir.value=C,C){s.value=((w=r.org)==null?void 0:w.elementId)||r.orgPid,!r.userList.length&&!r.groupList.length&&!r.roleList.length&&!r.postList.length?await D():(l.value=r.userList,o.value=r.groupList,c.value=r.roleList,u.value=r.postList),S.trans=[],N.checkAll=0,N.indeterminate=!1;const k=sr(!0);for(const P of k)O(P[h.value.id])&&S.trans.push(P[h.value.id]);const M=k.length===S.trans.length;N.indeterminate=!!(k.length&&!M),N.checkAll=Number(k.length&&M),a.nextTick(()=>{var P;(P=r.modelValue)!=null&&P.length?r.modelValue.forEach(fe=>{Oe(fe),r.multiple?S.trans.push(fe[h.value.id]):S.single=fe[h.value.id]}):Ne()})}else Ne()}),a.watchEffect(()=>{let C;C=J.value.length;const w=S.trans.length;N.indeterminate=S.trans.length?w!==C:!1,N.checkAll=+(C!==0&&w===C)}),a.watch(()=>r.modelValue,C=>{C!=null&&C.length?C.forEach(w=>{Oe(w),r.multiple?S.trans.push(w[h.value.id]):S.single=w[h.value.id]}):Ne()});const Ge=C=>{var w;if(C){if(S.single="",C[h.value.id]){const k=(w=S.trans)==null?void 0:w.findIndex(M=>M===C[h.value.id]);k!==-1&&S.trans.splice(k,1)}switch(C[h.value.type]){case f.value.user:return S.user.delete(C[h.value.id]);case f.value.role:return S.role.delete(C[h.value.id]);case f.value.post:return S.post.delete(C[h.value.id]);case f.value.group:return S.group.delete(C[h.value.id]);default:return}}},ul=C=>{Ge(C)},Oe=C=>{if(!O(C[h.value.id])){const w={...C};switch(C[h.value.type]){case f.value.user:return S.user.set(C[h.value.id],w);case f.value.role:return S.role.set(C[h.value.id],w);case f.value.post:return S.post.set(C[h.value.id],w);case f.value.group:return S.group.set(C[h.value.id],w);default:return}}},hg=C=>[f.value.group].includes(C[h.value.type])?C==null?void 0:C.hasOwnProperty("disabled"):!1;a.watch(()=>S.trans,C=>{if(!C.length)J.value.forEach(w=>{w.disabled=!1});else{const w=J.value.filter(M=>!C.includes(M[h.value.id]));for(const M of w)M.disabled=!1,r.multiple&&Ge(M);const k=J.value.filter(M=>C.includes(M[h.value.id]));for(const M of k)M.disabled=hg(M),Oe(M)}},{deep:!0}),a.watch(()=>S.single,C=>{var w;if(C){const k=(w=J.value)==null?void 0:w.find(M=>M[h.value.id]===C);k&&(S.user.clear(),S.role.clear(),S.post.clear(),S.group.clear(),S.trans=[],a.nextTick(()=>{Oe(k)}))}});const pg=C=>{s.value=C==null?void 0:C.elementId,D(),A.value.push(C)},fl=a.computed(()=>A.value.length),gg=(C,w)=>{!w&&!r.topLink||w!==fl.value-1&&(s.value=C==null?void 0:C.elementId,D(),A.value.splice(w+1))},mg=a.computed(()=>r.chooseType.includes("role")&&r.chooseType.length===1),vg=a.computed(()=>r.chooseType.includes("post")&&r.chooseType.length===1),Ft=a.ref(r.tabs[0]),Ie=a.ref(r.tabs[0]);a.watchEffect(()=>(Ie.value=mg.value?r.tabs[1]:vg.value?r.tabs[2]:Ft.value,Ie.value));const Ne=()=>{S.user.clear(),S.role.clear(),S.post.clear(),S.group.clear(),S.trans=[],or.value=[],ar.value=[],Ft.value=r.tabs[0],Ie.value=r.tabs[0],i.value="",s.value=r.orgPid,A.value.splice(1,A.value.length),S.single="",y.value=[]},yg=()=>{var C;We("ok",F._.cloneDeep({...x.value,sort:y.value})),We("update:modelValue",F._.cloneDeep(((C=x.value)==null?void 0:C.list)||[])),We("update:show",!1),Ne()},hl=()=>{We("update:show",!1),Ne()};e({handClear:Ne,handRomeve:ul,handDelete:Ge});const bg=a.computed(()=>{const C=z.value;return!!((C.includes("post")||C.includes("role"))&&C.length>1)}),Eg=a.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(C=>r.tabs.includes(C.name))),pl=a.computed(()=>`${typeof r.height=="string"?Number.parseInt(r.height):r.height}px`),lr=()=>{r.multiple||(S.post.clear(),S.role.clear(),S.user.clear(),S.group.clear(),S.single="")},Ag=a.computed(()=>x.value.groups.list.concat(x.value.user.list)),Sg=(C,w)=>{r.multiple||(S.single="");const k=r.multiple?C:[C];if(!k.length){S.group.clear(),S.user.clear();return}lr(),w.forEach(M=>{k!=null&&k.includes(M[h.value.id])?Oe(M):Ge(M)})},or=a.ref([]),Cg=(C,w)=>{r.multiple||(S.single="");const k=r.multiple?C:[C];if(!k.length){S.role.clear();return}lr(),w.forEach(M=>{k!=null&&k.includes(M[h.value.id])?Oe(M):Ge(M)})};a.watch(()=>x.value.role.len,C=>{or.value=F._.cloneDeep(x.value.role.list)});const ar=a.ref([]),wg=(C,w)=>{r.multiple||(S.single="");const k=r.multiple?C:[C];if(!k.length){S.post.clear();return}lr(),w.forEach(M=>{k!=null&&k.includes(M[h.value.id])?Oe(M):Ge(M)})};return a.watch(()=>x.value.post.len,C=>{ar.value=F._.cloneDeep(x.value.post.list)}),a.watch(()=>i.value,C=>{B("")}),(C,w)=>{const k=a.resolveComponent("el-tab-pane"),M=a.resolveComponent("el-tabs");return a.openBlock(),a.createBlock(a.unref(_.ElDialog),{modelValue:ir.value,"onUpdate:modelValue":w[2]||(w[2]=P=>ir.value=P),title:C.title,"destroy-on-close":"","append-to-body":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof C.width=="string"?C.width:`${C.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:hl},{footer:a.withCtx(()=>[a.createElementVNode("span",Qp,[a.createVNode(a.unref(_.ElButton),{onClick:a.withModifiers(hl,["stop"])},{default:a.withCtx(()=>w[6]||(w[6]=[a.createTextVNode("取消")])),_:1}),a.createVNode(a.unref(_.ElButton),{type:"primary",onClick:a.withModifiers(yg,["stop"])},{default:a.withCtx(()=>w[7]||(w[7]=[a.createTextVNode(" 确定 ")])),_:1})])]),default:a.withCtx(()=>[a.createElementVNode("div",{class:"dep-use-picker",style:a.normalizeStyle({height:pl.value})},[a.createElementVNode("div",Lp,[a.createElementVNode("div",null,[a.createVNode(a.unref(_.ElInput),{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=P=>i.value=P),clearable:"",placeholder:C.placeholder,"suffix-icon":gh},null,8,["modelValue","placeholder"]),bg.value?(a.openBlock(),a.createBlock(M,{key:0,modelValue:Ft.value,"onUpdate:modelValue":w[1]||(w[1]=P=>Ft.value=P),class:"ik-picker-tab"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Eg.value,P=>(a.openBlock(),a.createBlock(k,{label:P.label,name:P.name,key:P.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):a.createCommentVNode("v-if",!0)]),a.createCommentVNode(" 过滤 "),Ie.value===a.unref(it).group?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[fl.value?(a.openBlock(),a.createElementBlock("div",Up,[a.createCommentVNode(" 面包屑 全选 "),a.createVNode(a.unref(_.ElBreadcrumb),{separator:">",class:a.normalizeClass(["banner",{"top-unlink":!C.topLink}])},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(A),(P,fe)=>(a.openBlock(),a.createBlock(a.unref(_.ElBreadcrumbItem),{key:P[h.value.id],onClick:a.withModifiers(cr=>gg(P,fe),["stop"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P[h.value.name]),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["class"])])):a.createCommentVNode("v-if",!0)],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" 左侧列表 "),a.createCommentVNode(" 组织架构 "),Ie.value===a.unref(it).group?a.withDirectives((a.openBlock(),a.createBlock(lp,{key:1,fixPropOpt:h.value,fixTypeOpt:f.value,list:g.value,max:C.max,multiple:C.multiple,"hand-list":Ag.value,imageBaseUrl:r.imageBaseUrl,emptyText:r.emptyText,children:r.children,"choose-type":z.value,onHandChild:pg,onChange:Sg},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children","choose-type"])),[[a.unref(_.vLoading),d.value]]):Ie.value===a.unref(it).role?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createCommentVNode(" 角色 "),a.withDirectives(a.createVNode(Np,{fixPropOpt:h.value,fixTypeOpt:f.value,list:c.value,max:C.max,multiple:C.multiple,"hand-list":or.value,imageBaseUrl:r.imageBaseUrl,emptyText:r.emptyText,"choose-type":z.value,onChange:Cg},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[a.unref(_.vLoading),d.value]])],64)):Ie.value===a.unref(it).post?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[a.createCommentVNode(" 岗位 "),a.withDirectives(a.createVNode(bp,{fixPropOpt:h.value,fixTypeOpt:f.value,list:u.value,max:C.max,multiple:C.multiple,"hand-list":ar.value,imageBaseUrl:r.imageBaseUrl,emptyText:r.emptyText,"choose-type":z.value,onChange:wg},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[a.unref(_.vLoading),d.value]])],64)):a.createCommentVNode("v-if",!0)]),w[5]||(w[5]=a.createElementVNode("div",{class:"split-div"},null,-1)),a.createCommentVNode(" 已选列表 "),a.createElementVNode("div",jp,[a.createElementVNode("div",Fp,[w[4]||(w[4]=a.createElementVNode("div",null,"已选",-1)),a.createVNode(a.unref(_.ElButton),{type:"primary",link:"",onClick:a.withModifiers(Ne,["stop"])},{default:a.withCtx(()=>w[3]||(w[3]=[a.createTextVNode("清空")])),_:1})]),a.createElementVNode("ul",zp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,P=>(a.openBlock(),a.createElementBlock("li",Wp,[a.createElementVNode("div",Gp,[a.createCommentVNode(" icon前缀 "),a.createElementVNode("div",qp,[a.createVNode(X,{fixTypeOpt:f.value,fixPropOpt:h.value,element:P,imageBaseUrl:r.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),a.createElementVNode("span",null,a.toDisplayString(P[h.value.name]),1)]),a.withDirectives(a.createVNode(bh,{class:"close",onClick:a.withModifiers(fe=>ul(P),["stop"])},null,8,["onClick"]),[[a.vShow,!(P!=null&&P.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}));let Zp=0,$p=new Date().toISOString().replace(/T.*$/,"");const Xp=[{id:Jp(),title:"All-day event",start:$p}];function Jp(){return String(Zp++)}const Kp={class:"demo-app"},eg={class:"demo-app-main"},tg={class:"title-line"},ng=["title","onClick"],rg={key:0,style:{width:"90%"}},ig={key:1,style:{width:"90%"}},sg={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},lg={key:0,style:{"margin-left":"2%"}},og={key:1},ag={key:0,class:"placeholder"},cg={class:"info"},dg={class:"dialog-footer"},ug={name:"IkApprovalProcess"},fg=a.defineComponent({...ug,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(n,{emit:e}){const t=e,r=p=>{if(o.selectInfo=p,s(),p.view.type=="dayGridMonth"){let A=p.end.getTime()-864e5;o.timeType="month",o.form.startDate=F.ikDate.toYMD(p.start),o.form.endDate=F.ikDate.toYMD(new Date(A))}else p.view.type=="timeGridWeek"?(o.timeType="week",o.form.startDate=F.ikDate.toYMDHM(p.start),o.form.endDate=F.ikDate.toYMDHM(p.end)):p.view.type=="timeGridDay"&&(o.timeType="day",o.form.startDate=F.ikDate.toYMD(p.start),o.form.endDate=F.ikDate.toYMD(p.start),o.form.startTime=F.ikDate.toDateTime(p.start),o.form.endTime=F.ikDate.toDateTime(p.end));p.view.calendar.unselect(),a.nextTick(()=>{o.title="新建日程",o.dialogVisible=!0})},i=(p,m)=>{o.title="修改日程",o.dialogVisible=!0},s=p=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:p||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(E=>{E.json().then(D=>{const{success:S,data:N}=D;if(!S)return;const{departments:O,users:B,roles:x,posts:z}=N;o.depList=O,o.userList=B,o.roleList=x,o.postList=z})}).catch(E=>{console.info("error: ",E)})},l=p=>{o.currentEvents=p},o=a.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:Iu,plugins:[sf,zf,uh],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Xp,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:r,eventClick:p=>i(),eventsSet:l},currentEvents:[]}),c=()=>{var p;(p=o.formRef)==null||p.resetFields(),o.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},o.dialogVisible=!1},u=async()=>{var A,E,D,S;let p=(E=(A=o.selectInfo)==null?void 0:A.view)==null?void 0:E.calendar,m={id:new Date().getTime(),title:o.form.title,start:(D=o.selectInfo)==null?void 0:D.startStr,end:(S=o.selectInfo)==null?void 0:S.endStr,allDay:o.allDay};await p.addEvent(m),t("success",m),c()},d=p=>{_.ElMessageBox.confirm(`你确定删除事件'${p.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{_.ElMessage({type:"success",message:"删除成功"}),p.event.remove(),t("delete",p.event)})},g=p=>{o.handList=p.list,o.form.personList=p.list},h=()=>{o.isShow=!0},f=p=>{s(p==null?void 0:p.elementId)},y=p=>{o.form.personList.splice(p,1),o.handList=o.form.personList};return(p,m)=>{const A=a.resolveComponent("el-checkbox");return a.openBlock(),a.createElementBlock("div",Kp,[a.createElementVNode("div",eg,[a.createVNode(a.unref(Ru),{class:"demo-app-calendar",options:o.calendarOptions},{eventContent:a.withCtx(E=>[a.createElementVNode("div",tg,[a.createElementVNode("span",{class:"title",title:E.event.title,onClick:a.withModifiers(D=>i(),["stop"])},a.toDisplayString(E.event.title),9,ng),a.createVNode(a.unref(_.ElIcon),{size:16,onClick:a.withModifiers(D=>d(E),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(wl))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),a.createCommentVNode(" 新建日程 "),a.createVNode(a.unref(_.ElDialog),{modelValue:o.dialogVisible,"onUpdate:modelValue":m[12]||(m[12]=E=>o.dialogVisible=E),title:o.title,width:"30%",ref:"formRef",onClose:c},{footer:a.withCtx(()=>[a.createElementVNode("span",dg,[a.createVNode(a.unref(_.ElButton),{onClick:c},{default:a.withCtx(()=>m[20]||(m[20]=[a.createTextVNode("取消")])),_:1}),a.createVNode(a.unref(_.ElButton),{type:"primary",onClick:u},{default:a.withCtx(()=>m[21]||(m[21]=[a.createTextVNode("确定")])),_:1})])]),default:a.withCtx(()=>[a.createVNode(a.unref(_.ElForm),{model:o.form},{default:a.withCtx(()=>[a.createVNode(a.unref(_.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(_.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(yl))]),_:1}),a.createVNode(a.unref(_.ElInput),{modelValue:o.form.title,"onUpdate:modelValue":m[0]||(m[0]=E=>o.form.title=E),placeholder:`添加${o.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),a.createVNode(a.unref(_.ElSelect),{modelValue:o.form.type,"onUpdate:modelValue":m[1]||(m[1]=E=>o.form.type=E),style:{width:"20%"}},{default:a.withCtx(()=>[a.createVNode(a.unref(_.ElOption),{label:"会议",value:1}),a.createVNode(a.unref(_.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),a.createVNode(a.unref(_.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(_.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(El))]),_:1}),o.timeType=="month"?(a.openBlock(),a.createElementBlock("div",rg,[a.createVNode(a.unref(_.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":m[2]||(m[2]=E=>o.form.startDate=E),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),m[15]||(m[15]=a.createElementVNode("span",{class:"to"},"至",-1)),a.createVNode(a.unref(_.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":m[3]||(m[3]=E=>o.form.endDate=E),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0),o.timeType=="week"?(a.openBlock(),a.createElementBlock("div",ig,[a.createVNode(a.unref(_.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":m[4]||(m[4]=E=>o.form.startDate=E),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),m[16]||(m[16]=a.createElementVNode("span",{class:"to"},"至",-1)),a.createVNode(a.unref(_.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":m[5]||(m[5]=E=>o.form.endDate=E),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0),o.timeType=="day"?(a.openBlock(),a.createElementBlock("div",sg,[a.createVNode(a.unref(_.ElDatePicker),{modelValue:o.form.startDate,"onUpdate:modelValue":m[6]||(m[6]=E=>o.form.startDate=E),type:"date",placeholder:"开始日期",style:a.normalizeStyle({width:o.allDay?"45%":"90%"})},null,8,["modelValue","style"]),o.allDay?(a.openBlock(),a.createElementBlock("div",og,[m[18]||(m[18]=a.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),a.createVNode(a.unref(_.ElDatePicker),{modelValue:o.form.endDate,"onUpdate:modelValue":m[9]||(m[9]=E=>o.form.endDate=E),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(a.openBlock(),a.createElementBlock("div",lg,[a.createVNode(a.unref(_.ElTimePicker),{modelValue:o.form.startTime,"onUpdate:modelValue":m[7]||(m[7]=E=>o.form.startTime=E),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),m[17]||(m[17]=a.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),a.createVNode(a.unref(_.ElTimePicker),{modelValue:o.form.endTime,"onUpdate:modelValue":m[8]||(m[8]=E=>o.form.endTime=E),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),a.createVNode(A,{modelValue:o.allDay,"onUpdate:modelValue":m[10]||(m[10]=E=>o.allDay=E),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):a.createCommentVNode("v-if",!0)]),_:1}),a.createVNode(a.unref(_.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(_.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Tl))]),_:1}),a.createElementVNode("div",{class:"personBlock",onClick:a.withModifiers(h,["stop"])},[o.form.personList.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(o.form.personList,(E,D)=>(a.openBlock(),a.createElementBlock("div",{key:D,class:"nameBlock"},[a.createElementVNode("div",cg,[m[19]||(m[19]=a.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),a.createElementVNode("div",null,a.toDisplayString(E.elementName),1)]),a.createVNode(a.unref(_.ElIcon),{class:"close",onClick:a.withModifiers(S=>y(D),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Sl))]),_:2},1032,["onClick"])]))),128)):(a.openBlock(),a.createElementBlock("span",ag,"添加参与人"))])]),_:1}),a.createVNode(a.unref(_.ElFormItem),null,{default:a.withCtx(()=>[a.createVNode(a.unref(_.ElIcon),{class:"icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(_l))]),_:1}),a.createVNode(a.unref(_.ElInput),{modelValue:o.form.location,"onUpdate:modelValue":m[11]||(m[11]=E=>o.form.location=E),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createCommentVNode(" 选人组件 "),a.createVNode(a.unref(Yp),{modelValue:o.handList,"onUpdate:modelValue":m[13]||(m[13]=E=>o.handList=E),show:o.isShow,"onUpdate:show":m[14]||(m[14]=E=>o.isShow=E),onOk:g,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":o.depList,"user-list":o.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:f},null,8,["modelValue","show","dep-list","user-list"])])}}}),dl=dr(ne(fg,[["__scopeId","data-v-b2539ada"]]));ee.IkCalendar=dl,ee.default=dl,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|