import{B as es,Z as At,Y as ts,$ as ns,a0 as gn,a1 as rs,a2 as is,a3 as ss,a4 as os,a5 as as,a6 as ls,R as cs,a7 as ds,p as us,q as fs,o as K,u as hs,v as ye,K as Q,T as ps,m as Et,x as gs,c as ce,j as mn,C as Nt,s as ms,E as Kt,a8 as et,W as Mr,a9 as vs,J,aa as vn,r as bn,G as bs,b as ys,y as P,L as H,Q as As,N as Te,O as ve,X as Es,ab as _s}from"./CVN9mXi8.js";import{C as Ss}from"./Cnr6hwyY.js";import{F as Ds}from"./1kJjC6_k.js";import{O as Ge}from"./2PnuRw05.js";import{s as ws}from"./DOlpiDlz.js";import{s as Cs}from"./BE4mP2Ul.js";import{s as Rs}from"./BeiPJ-Ey.js";import{s as Ts}from"./BmkZKiAf.js";import{S as _t,u as ks}from"./ZIw2O0V5.js";import"./BzjqEU2Y.js";import"./ByD9s0OG.js";import"./CG5Ae_0g.js";import"./U-WKJCH1.js";import"./CeHl1rk9.js";var Ms=function(e){var n=e.dt;return`
.p-popover {
    margin-block-start: `.concat(n("popover.gutter"),`;
    background: `).concat(n("popover.background"),`;
    color: `).concat(n("popover.color"),`;
    border: 1px solid `).concat(n("popover.border.color"),`;
    border-radius: `).concat(n("popover.border.radius"),`;
    box-shadow: `).concat(n("popover.shadow"),`;
}

.p-popover-content {
    padding: `).concat(n("popover.content.padding"),`;
}

.p-popover-flipped {
    margin-block-start: calc(`).concat(n("popover.gutter"),` * -1);
    margin-block-end: `).concat(n("popover.gutter"),`;
}

.p-popover-enter-from {
    opacity: 0;
    transform: scaleY(0.8);
}

.p-popover-leave-to {
    opacity: 0;
}

.p-popover-enter-active {
    transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}

.p-popover-leave-active {
    transition: opacity 0.1s linear;
}

.p-popover:after,
.p-popover:before {
    bottom: 100%;
    left: calc(`).concat(n("popover.arrow.offset")," + ").concat(n("popover.arrow.left"),`);
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.p-popover:after {
    border-width: calc(`).concat(n("popover.gutter"),` - 2px);
    margin-left: calc(-1 * (`).concat(n("popover.gutter"),` - 2px));
    border-style: solid;
    border-color: transparent;
    border-bottom-color: `).concat(n("popover.background"),`;
}

.p-popover:before {
    border-width: `).concat(n("popover.gutter"),`;
    margin-left: calc(-1 * `).concat(n("popover.gutter"),`);
    border-style: solid;
    border-color: transparent;
    border-bottom-color: `).concat(n("popover.border.color"),`;
}

.p-popover-flipped:after,
.p-popover-flipped:before {
    bottom: auto;
    top: 100%;
}

.p-popover.p-popover-flipped:after {
    border-bottom-color: transparent;
    border-top-color: `).concat(n("popover.background"),`;
}

.p-popover.p-popover-flipped:before {
    border-bottom-color: transparent;
    border-top-color: `).concat(n("popover.border.color"),`;
}
`)},Os={root:"p-popover p-component",content:"p-popover-content"},xs=es.extend({name:"popover",theme:Ms,classes:Os}),Is={name:"BasePopover",extends:ms,props:{dismissable:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeOnEscape:{type:Boolean,default:!0}},style:xs,provide:function(){return{$pcPopover:this,$parentInstance:this}}},Or={name:"Popover",extends:Is,inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(e){e?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&At.clear(this.container),this.overlayEventListener&&(Ge.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,n){this.visible?this.hide():this.show(e,n)},show:function(e,n){this.visible=!0,this.eventTarget=e.currentTarget,this.target=n||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var n=this;ts(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&At.set("overlay",e,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(r){n.container.contains(r.target)&&(n.selfClick=!0)},this.focus(),Ge.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),Ge.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&At.clear(e)},alignOverlay:function(){ns(this.container,this.target,!1);var e=gn(this.container),n=gn(this.target),r=0;e.left<n.left&&(r=n.left-e.left),this.container.style.setProperty(rs("popover.arrow.left").name,"".concat(r,"px")),e.top<n.top&&(this.container.setAttribute("data-p-popover-flipped","true"),!this.isUnstyled&&is(this.container,"p-popover-flipped"))},onContentKeydown:function(e){e.code==="Escape"&&this.closeOnEscape&&(this.hide(),ss(this.target))},onButtonKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault()}},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus()},onKeyDown:function(e){e.code==="Escape"&&this.closeOnEscape&&(this.visible=!1)},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},bindOutsideClickListener:function(){var e=this;!this.outsideClickListener&&os()&&(this.outsideClickListener=function(n){e.visible&&!e.selfClick&&!e.isTargetClicked(n)&&(e.visible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new Ss(this.target,function(){e.visible&&(e.visible=!1)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!as()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked:function(e){return this.eventTarget&&(this.eventTarget===e.target||this.eventTarget.contains(e.target))},containerRef:function(e){this.container=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",ls(this.styleElement,"nonce",(e=this.$primevue)===null||e===void 0||(e=e.config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce),document.head.appendChild(this.styleElement);var n="";for(var r in this.breakpoints)n+=`
                        @media screen and (max-width: `.concat(r,`) {
                            .p-popover[`).concat(this.$attrSelector,`] {
                                width: `).concat(this.breakpoints[r],` !important;
                            }
                        }
                    `);this.styleElement.innerHTML=n}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){Ge.emit("overlay-click",{originalEvent:e,target:this.target})}},directives:{focustrap:Ds,ripple:cs},components:{Portal:ds}},Ns=["aria-modal"];function Ps(t,e,n,r,i,s){var o=us("Portal"),a=fs("focustrap");return K(),hs(o,{appendTo:t.appendTo},{default:ye(function(){return[Q(ps,Et({name:"p-popover",onEnter:s.onEnter,onLeave:s.onLeave,onAfterLeave:s.onAfterLeave},t.ptm("transition")),{default:ye(function(){return[i.visible?gs((K(),ce("div",Et({key:0,ref:s.containerRef,role:"dialog","aria-modal":i.visible,onClick:e[3]||(e[3]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),class:t.cx("root")},t.ptmi("root")),[t.$slots.container?mn(t.$slots,"container",{key:0,closeCallback:s.hide,keydownCallback:function(c){return s.onButtonKeydown(c)}}):(K(),ce("div",Et({key:1,class:t.cx("content"),onClick:e[0]||(e[0]=function(){return s.onContentClick&&s.onContentClick.apply(s,arguments)}),onMousedown:e[1]||(e[1]=function(){return s.onContentClick&&s.onContentClick.apply(s,arguments)}),onKeydown:e[2]||(e[2]=function(){return s.onContentKeydown&&s.onContentKeydown.apply(s,arguments)})},t.ptm("content")),[mn(t.$slots,"default")],16))],16,Ns)),[[a]]):Nt("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])}Or.render=Ps;var gt,S,xr,Ir,de,yn,Nr,Pt,Xt,Ht,Bt,Pr,Ne={},Hr=[],Hs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mt=Array.isArray;function X(t,e){for(var n in e)t[n]=e[n];return t}function Br(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n){var r,i,s,o={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?gt.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)o[s]===void 0&&(o[s]=t.defaultProps[s]);return tt(t,o,r,i,null)}function tt(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++xr,__i:-1,__u:0};return i==null&&S.vnode!=null&&S.vnode(s),s}function ne(){return{current:null}}function B(t){return t.children}function z(t,e){this.props=t,this.context=e}function fe(t,e){if(e==null)return t.__?fe(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?fe(t):null}function Lr(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Lr(t)}}function Lt(t){(!t.__d&&(t.__d=!0)&&de.push(t)&&!st.__r++||yn!==S.debounceRendering)&&((yn=S.debounceRendering)||Nr)(st)}function st(){var t,e,n,r,i,s,o,a;for(de.sort(Pt);t=de.shift();)t.__d&&(e=de.length,r=void 0,s=(i=(n=t).__v).__e,o=[],a=[],n.__P&&((r=X({},i)).__v=i.__v+1,S.vnode&&S.vnode(r),en(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,o,s??fe(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,zr(o,r,a),r.__e!=s&&Lr(r)),de.length>e&&de.sort(Pt));st.__r=0}function Ur(t,e,n,r,i,s,o,a,l,c,u){var d,p,f,b,A,y=r&&r.__k||Hr,v=e.length;for(n.__d=l,Bs(n,e,y),l=n.__d,d=0;d<v;d++)(f=n.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(p=f.__i===-1?Ne:y[f.__i]||Ne,f.__i=d,en(t,f,p,i,s,o,a,l,c,u),b=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&tn(p.ref,null,f),u.push(f.ref,f.__c||b,f)),A==null&&b!=null&&(A=b),65536&f.__u||p.__k===f.__k?l=Fr(f,l,t):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:b&&(l=b.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=A}function Bs(t,e,n){var r,i,s,o,a,l=e.length,c=n.length,u=c,d=0;for(t.__k=[],r=0;r<l;r++)o=r+d,(i=t.__k[r]=(i=e[r])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?tt(null,i,null,null,null):mt(i)?tt(B,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?tt(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=t,i.__b=t.__b+1,a=Ls(i,n,o,u),i.__i=a,s=null,a!==-1&&(u--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==o&&(a==o-1?d--:a==o+1?d++:a>o?u>l-o?d+=a-o:d--:a<o&&(a==o-d?d-=a-o:d++),a!==r+d&&(i.__u|=65536))):(s=n[o])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==t.__d&&(t.__d=fe(s)),Ut(s,s,!1),n[o]=null,u--);if(u)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==t.__d&&(t.__d=fe(s)),Ut(s,s))}function Fr(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=Fr(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=fe(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function ot(t,e){return e=e||[],t==null||typeof t=="boolean"||(mt(t)?t.some(function(n){ot(n,e)}):e.push(t)),e}function Ls(t,e,n,r){var i=t.key,s=t.type,o=n-1,a=n+1,l=e[n];if(l===null||l&&i==l.key&&s===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<e.length;){if(o>=0){if((l=e[o])&&!(131072&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function An(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Hs.test(e)?n:n+"px"}function Qe(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||An(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||An(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n.u=r.u:(n.u=Xt,t.addEventListener(e,s?Bt:Ht,s)):t.removeEventListener(e,s?Bt:Ht,s);else{if(i=="http://www.w3.org/2000/svg")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!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function En(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Xt++;else if(e.t<n.u)return;return n(S.event?S.event(e):e)}}}function en(t,e,n,r,i,s,o,a,l,c){var u,d,p,f,b,A,y,v,_,E,m,D,w,C,R,N,T=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=e.__e=n.__e]),(u=S.__b)&&u(e);e:if(typeof T=="function")try{if(v=e.props,_="prototype"in T&&T.prototype.render,E=(u=T.contextType)&&r[u.__c],m=u?E?E.props.value:u.__:r,n.__c?y=(d=e.__c=n.__c).__=d.__E:(_?e.__c=d=new T(v,m):(e.__c=d=new z(v,m),d.constructor=T,d.render=Fs),E&&E.sub(d),d.props=v,d.state||(d.state={}),d.context=m,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),_&&d.__s==null&&(d.__s=d.state),_&&T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=X({},d.__s)),X(d.__s,T.getDerivedStateFromProps(v,d.__s))),f=d.props,b=d.state,d.__v=e,p)_&&T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),_&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(_&&T.getDerivedStateFromProps==null&&v!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,m),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,m)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(V){V&&(V.__=e)}),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,m),_&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,b,A)})}if(d.context=m,d.props=v,d.__P=t,d.__e=!1,w=S.__r,C=0,_){for(d.state=d.__s,d.__d=!1,w&&w(e),u=d.render(d.props,d.state,d.context),R=0;R<d._sb.length;R++)d.__h.push(d._sb[R]);d._sb=[]}else do d.__d=!1,w&&w(e),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++C<25);d.state=d.__s,d.getChildContext!=null&&(r=X(X({},r),d.getChildContext())),_&&!p&&d.getSnapshotBeforeUpdate!=null&&(A=d.getSnapshotBeforeUpdate(f,b)),Ur(t,mt(N=u!=null&&u.type===B&&u.key==null?u.props.children:u)?N:[N],e,n,r,i,s,o,a,l,c),d.base=e.__e,e.__u&=-161,d.__h.length&&o.push(d),y&&(d.__E=d.__=null)}catch(V){if(e.__v=null,l||s!=null){for(e.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else e.__e=n.__e,e.__k=n.__k;S.__e(V,e,n)}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Us(n.__e,e,n,r,i,s,o,l,c);(u=S.diffed)&&u(e)}function zr(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)tn(n[r],n[++r],n[++r]);S.__c&&S.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){S.__e(s,i.__v)}})}function Us(t,e,n,r,i,s,o,a,l){var c,u,d,p,f,b,A,y=n.props,v=e.props,_=e.type;if(_==="svg"?i="http://www.w3.org/2000/svg":_==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((f=s[c])&&"setAttribute"in f==!!_&&(_?f.localName===_:f.nodeType===3)){t=f,s[c]=null;break}}if(t==null){if(_===null)return document.createTextNode(v);t=document.createElementNS(i,_,v.is&&v),s=null,a=!1}if(_===null)y===v||a&&t.data===v||(t.data=v);else{if(s=s&&gt.call(t.childNodes),y=n.props||Ne,!a&&s!=null)for(y={},c=0;c<t.attributes.length;c++)y[(f=t.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")d=f;else if(c!=="key"&&!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;Qe(t,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?u=f:c=="value"?b=f:c=="checked"?A=f:c==="key"||a&&typeof f!="function"||y[c]===f||Qe(t,c,f,y[c],i);if(u)a||d&&(u.__html===d.__html||u.__html===t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(d&&(t.innerHTML=""),Ur(t,mt(p)?p:[p],e,n,r,_==="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:n.__k&&fe(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&Br(s[c]);a||(c="value",b!==void 0&&(b!==t[c]||_==="progress"&&!b||_==="option"&&b!==y[c])&&Qe(t,c,b,y[c],i),c="checked",A!==void 0&&A!==t[c]&&Qe(t,c,A,y[c],i))}return t}function tn(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){S.__e(i,n)}}function Ut(t,e,n){var r,i;if(S.unmount&&S.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||tn(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){S.__e(s,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Ut(r[i],e,n||typeof t.type!="function");n||t.__e==null||Br(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function Fs(t,e,n){return this.constructor(t,n)}function Pe(t,e,n){var r,i,s,o;S.__&&S.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],o=[],en(e,t=e.__k=g(B,null,[t]),i||Ne,Ne,e.namespaceURI,i?null:e.firstChild?gt.call(e.childNodes):null,s,i?i.__e:e.firstChild,r,o),zr(s,t,o)}function zs(t,e){var n={__c:e="__cC"+Pr++,__:t,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.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(a){a.__e=!0,Lt(a)})},this.sub=function(o){i.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){i&&i.splice(i.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}gt=Hr.slice,S={__e:function(t,e,n,r){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},xr=0,Ir=function(t){return t!=null&&t.constructor==null},z.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=X({},this.state),typeof t=="function"&&(t=t(X({},n),this.props)),t&&X(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Lt(this))},z.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Lt(this))},z.prototype.render=B,de=[],Nr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pt=function(t,e){return t.__v.__b-e.__v.__b},st.__r=0,Xt=0,Ht=En(!1),Bt=En(!0),Pr=0;var Z,St,_n,Wr=[],F=S,Sn=F.__b,Dn=F.__r,wn=F.diffed,Cn=F.__c,Rn=F.unmount,Tn=F.__;function Ws(){for(var t;t=Wr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(nt),t.__H.__h.forEach(Ft),t.__H.__h=[]}catch(e){t.__H.__h=[],F.__e(e,t.__v)}}F.__b=function(t){Z=null,Sn&&Sn(t)},F.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Tn&&Tn(t,e)},F.__r=function(t){Dn&&Dn(t);var e=(Z=t.__c).__H;e&&(St===Z?(e.__h=[],Z.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(nt),e.__h.forEach(Ft),e.__h=[])),St=Z},F.diffed=function(t){wn&&wn(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Wr.push(e)!==1&&_n===F.requestAnimationFrame||((_n=F.requestAnimationFrame)||js)(Ws)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),St=Z=null},F.__c=function(t,e){e.some(function(n){try{n.__h.forEach(nt),n.__h=n.__h.filter(function(r){return!r.__||Ft(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],F.__e(r,n.__v)}}),Cn&&Cn(t,e)},F.unmount=function(t){Rn&&Rn(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{nt(r)}catch(i){e=i}}),n.__H=void 0,e&&F.__e(e,n.__v))};var kn=typeof requestAnimationFrame=="function";function js(t){var e,n=function(){clearTimeout(r),kn&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);kn&&(e=requestAnimationFrame(n))}function nt(t){var e=Z,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Z=e}function Ft(t){var e=Z;t.__c=t.__(),Z=e}function Vs(t,e){for(var n in e)t[n]=e[n];return t}function Mn(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function On(t,e){this.props=t,this.context=e}(On.prototype=new z).isPureReactComponent=!0,On.prototype.shouldComponentUpdate=function(t,e){return Mn(this.props,t)||Mn(this.state,e)};var xn=S.__b;S.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),xn&&xn(t)};var Gs=S.__e;S.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Gs(t,e,n,r)};var In=S.unmount;function jr(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=Vs({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return jr(r,e,n)})),t}function Vr(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Vr(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Dt(){this.__u=0,this.t=null,this.__b=null}function Gr(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ze(){this.u=null,this.o=null}S.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),In&&In(t)},(Dt.prototype=new z).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Gr(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Vr(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(o,o)},Dt.prototype.componentWillUnmount=function(){this.t=[]},Dt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=jr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&g(B,null,t.fallback);return i&&(i.__u&=-33),[g(B,null,e.__a?null:t.children),i]};var Nn=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Qs(t){return this.getChildContext=function(){return t.context},t.children}function Zs(t){var e=this,n=t.i;e.componentWillUnmount=function(){Pe(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},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)}}),Pe(g(Qs,{context:e.context},t.__v),e.l)}function Ys(t,e){var n=g(Zs,{__v:t,i:e});return n.containerInfo=e,n}(Ze.prototype=new z).__a=function(t){var e=this,n=Gr(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Nn(e,t,r)):i()};n?n(s):s()}},Ze.prototype.render=function(t){this.u=null,this.o=new Map;var e=ot(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Nn(t,n,e)})};var qs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,$s=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/,Js=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ks=/[A-Z0-9]/g,Xs=typeof document<"u",eo=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(z.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Pn=S.event;function to(){}function no(){return this.cancelBubble}function ro(){return this.defaultPrevented}S.event=function(t){return Pn&&(t=Pn(t)),t.persist=to,t.isPropagationStopped=no,t.isDefaultPrevented=ro,t.nativeEvent=t};var io={enumerable:!1,configurable:!0,get:function(){return this.class}},Hn=S.vnode;S.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,i={},s=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||Xs&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||eo(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Js.test(o)&&(o=l):l=o="oninput":s&&$s.test(o)?o=o.replace(Ks,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ot(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ot(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",io)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=qs,Hn&&Hn(t)};var Bn=S.__r;S.__r=function(t){Bn&&Bn(t),t.__c};var Ln=S.diffed;S.diffed=function(t){Ln&&Ln(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value)};function ke(t){t();let e=S.debounceRendering,n=[];function r(i){n.push(i)}for(S.debounceRendering=r,Pe(g(so,{}),document.createElement("div"));n.length;)n.shift()();S.debounceRendering=e}class so extends z{render(){return g("div",{})}componentDidMount(){this.setState({})}}function Qr(t){let e=zs(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=o=>{this.props.value!==o.value&&s.forEach(a=>{a.context=o.value,a.forceUpdate()})},this.sub=o=>{s.push(o);let a=o.componentWillUnmount;o.componentWillUnmount=()=>{s.splice(s.indexOf(o),1),a&&a.call(o)}}}return i},e}const Ye=S,Zr=[],zt=new Map;function Yr(t){Zr.push(t),zt.forEach(e=>{$r(e,t)})}function oo(t){t.isConnected&&t.getRootNode&&qr(t.getRootNode())}function qr(t){let e=zt.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=lo();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}zt.set(t,e),ao(e)}}function ao(t){for(const e of Zr)$r(t,e)}function $r(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let wt;function lo(){return wt===void 0&&(wt=co()),wt}function co(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&qr(document);var uo=':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{display:flex;flex-direction:column;gap:1.5em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-border,.fc-border-b,.fc-border-e,.fc-border-s,.fc-border-t{border:0 solid var(--fc-border-color)}.fc-border-transparent{border-color:transparent}.fc-border{border-width:1px}.fc-border-t{border-top-width:1px}.fc-border-b{border-bottom-width:1px}.fc-direction-ltr .fc-border-s,.fc-direction-rtl .fc-border-e{border-left-width:1px}.fc-direction-ltr .fc-border-e,.fc-direction-rtl .fc-border-s{border-right-width:1px}.fc-flex-row{display:flex;flex-direction:row}.fc-flex-col{display:flex;flex-direction:column}.fc-grow{flex-grow:1}.fc-basis0,.fc-liquid{flex-basis:0}.fc-liquid{flex-grow:1;min-height:0;min-width:0}.fc-media-screen .fc-print-header,.fc-media-screen .fc-print-root{display:flex;flex-direction:column}.fc-cell{margin:0!important;padding:0!important}.fc-cell-inner{flex-shrink:0;overflow:hidden;white-space:nowrap}.fc-celldivider,.fc-rowdivider{border:0 solid var(--fc-border-color)}.fc-rowdivider{border-width:1px 0}.fc-celldivider{border-width:0 1px}.fc-celldivider,.fc-rowdivider{background:var(--fc-neutral-bg-color)}.fc-celldivider{padding-left:2px}.fc-rowdivider{padding-bottom:2px}.fc-crop{overflow:hidden}.fc-rel{position:relative}.fc-abs{position:absolute}.fc-fill{bottom:0;top:0}.fc-fill,.fc-fill-x{left:0;position:absolute;right:0}.fc-fill-y{bottom:0;position:absolute;top:0}.fc-sticky-t{position:sticky;top:0}.fc-sticky-s{left:0;position:sticky;right:0}.fc-table-header-sticky{background:var(--fc-page-bg-color);position:sticky;top:0;z-index:5}.fc-sticky-footer-scrollbar{bottom:0;position:sticky;z-index:5}.fc-sticky-footer-scrollbar>.fc-scroller{margin-top:-1px}.fc-sticky-footer-scrollbar>.fc-scroller>*{height:1px}.fc-content-box{box-sizing:content-box}.fc-offscreen{left:-10000px;position:absolute}.fc-shaded{background-color:var(--fc-neutral-bg-color)}.fc-filler{opacity:.5}.fc-padding-sm{padding:2px 4px}.fc-padding-md{padding:4px 5px}.fc-padding-lg{padding:8px}.fc-justify-center{justify-content:center}.fc-align-center{align-items:center}.fc-align-start{align-items:flex-start}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-view-outer{position:relative}.fc-view-outer-liquid,.fc-view-outer-static{display:flex;flex-direction:column}.fc-view-outer-liquid,.fc-view-outer-liquid>.fc-view,.fc-view-outer-static>.fc-view{flex-basis:0;flex-grow:1;min-height:0;min-width:0}.fc-view-outer-aspect-ratio>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.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-selected:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.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-event-inner{position:relative;z-index:2}.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-bg-event,.fc-highlight,.fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc-non-business{background:var(--fc-non-business-color)}.fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc-highlight{background:var(--fc-highlight-color)}.fc-day-disabled{background:var(--fc-neutral-bg-color)}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:flex;flex-direction:column;position:relative}.fc-h-event.fc-event-mirror{z-index:3}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-h-event .fc-event-inner{color:var(--fc-event-text-color);display:flex;flex-direction:row}.fc-h-event .fc-event-time,.fc-h-event .fc-event-title{overflow:hidden;white-space:nowrap}.fc-h-event .fc-event-title-outer{display:flex;flex-basis:0;flex-direction:row;flex-grow:1;min-height:0;min-width:0}.fc-h-event .fc-event-title{left:0;position:sticky;right: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-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:6}.fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc-popover-title{margin:0 2px}.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)}.fc-scroller{padding:0!important}.fc-scroller-no-bars{-ms-overflow-style:none;scrollbar-width:none}.fc-scroller-no-bars::-webkit-scrollbar{display:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}@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-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc-button{-webkit-appearance:button}.fc-button:not(:disabled){cursor:pointer}.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-button:hover{text-decoration:none}.fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc-button:disabled{opacity:.65}.fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.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-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button-primary:not(:disabled).fc-button-active,.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-button-primary:not(:disabled).fc-button-active:focus,.fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc-button-group>.fc-button.fc-button-active,.fc-button-group>.fc-button:active,.fc-button-group>.fc-button:focus,.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-toolbar{align-items:center;display:flex;flex-direction:row;gap:.75em;justify-content:space-between}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc-toolbar-section{display:flex;flex-direction:row;flex-shrink:0;gap:.75em}.fc-toolbar-title{font-size:1.75em;margin:0;white-space:nowrap}';Yr(uo);function fo(t,e){return n=>{let r=n.target.closest(t);r&&e.call(r,n,r)}}function Jr(t,e,n,r){let i=fo(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function ho(t,e,n,r){let i;return Jr(t,"mouseover",e,(s,o)=>{if(o!==i){i=o,n(s,o);let a=l=>{i=null,r(l,o),o.removeEventListener("mouseleave",a)};o.addEventListener("mouseleave",a)}})}function Kr(t){return Object.assign({onClick:t},Xr(t))}function Xr(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Un=0;function ie(){return Un+=1,String(Un)}function po(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[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 go(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=mo(t,e,n[r]),i)return i;return 0}function mo(t,e,n){return n.func?n.func(t,e):vo(t[n.field],e[n.field])*(n.order||1)}function vo(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function Ct(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Me(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Rt(t){return t%1===0}const bo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function O(t,e){return typeof t=="string"?yo(t):typeof t=="object"&&t?Fn(t):typeof t=="number"?Fn({[e||"milliseconds"]:t}):null}function yo(t){let e=bo.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((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 Fn(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Ao(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Eo(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function _o(t){return Ae(t)/365}function So(t){return Ae(t)/30}function Ae(t){return He(t)/864e5}function He(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Wt(t){let e=t.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 t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}const{hasOwnProperty:at}=Object.prototype;function nn(t,e){let n={};if(e){for(let r in e)if(e[r]===le){let i=[];for(let s=t.length-1;s>=0;s-=1){let o=t[s][r];if(typeof o=="object"&&o)i.unshift(o);else if(o!==void 0){n[r]=o;break}}i.length&&(n[r]=nn(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function Se(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function ze(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function ei(t){let e={};for(let n of t)e[n]=!0;return e}function ti(t){let e=[];for(let n in t)e.push(t[n]);return e}function Be(t,e){if(t===e)return!0;for(let n in t)if(at.call(t,n)&&!(n in e))return!1;for(let n in e)if(at.call(e,n)&&t[n]!==e[n])return!1;return!0}const Do=/^on[A-Z]/;function wo(t,e){const n=jt(t,e);for(let r of n)if(!Do.test(r))return!1;return!0}function jt(t,e){let n=[];for(let r in t)at.call(t,r)&&(r in e||n.push(r));for(let r in e)at.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function zn(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Co(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Co(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function De(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(t[i]!==e[i])return!1;return!0}const Ro=["sun","mon","tue","wed","thu","fri","sat"];function Wn(t,e){let n=ee(t);return n[2]+=e*7,j(n)}function W(t,e){let n=ee(t);return n[2]+=e,j(n)}function we(t,e){let n=ee(t);return n[6]+=e,j(n)}function To(t,e){return Ce(t,e)/7}function Ce(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function ko(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Mo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Oo(t,e){return(e.valueOf()-t.valueOf())/1e3}function xo(t,e){let n=L(t),r=L(e);return{years:0,months:0,days:Math.round(Ce(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function Io(t,e){let n=lt(t,e);return n!==null&&n%7===0?n/7:null}function lt(t,e){return te(t)===te(e)?Math.round(Ce(t,e)):null}function L(t){return j([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function No(t){return j([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Po(t){return j([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Ho(t){return j([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Bo(t,e,n){let r=t.getUTCFullYear(),i=Tt(t,r,e,n);if(i<1)return Tt(t,r-1,e,n);let s=Tt(t,r+1,e,n);return s>=1?Math.min(i,s):i}function Tt(t,e,n,r){let i=j([e,0,1+Lo(e,n,r)]),s=L(t),o=Math.round(Ce(i,s));return Math.floor(o/7)+1}function Lo(t,e,n){let r=7+e-n;return-((7+j([t,0,r]).getUTCDay()-e)%7)+r-1}function jn(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Vn(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function ee(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function j(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function ni(t){return!isNaN(t.valueOf())}function te(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Uo(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",rn(e,!0)))),r}function ri(t){return t.toISOString().replace(/T.*$/,"")}function rn(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+Ct(i,2)}:${Ct(s,2)}`:`GMT${n}${i}${s?`:${Ct(s,2)}`:""}`}function M(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!De(r,s)){let o=t.apply(this,s);(!e||!e(o,i))&&(i=o)}return r=s,i}}function rt(t,e,n){let r,i;return s=>(r?Be(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const Gn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},ct={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},qe=/\s*([ap])\.?m\.?/i,Fo=/,/g,zo=/\s+/g,Wo=/\u200e/g,jo=/UTC|GMT/;class Vo{constructor(e){let n={},r={},i=0;for(let s in e)s in Gn?(r[s]=e[s],i=Math.max(Gn[s],i)):(n[s]=e[s],s in ct&&(i=Math.max(ct[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=M(Qn)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:o}=this,a=$o(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let l=a;l>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(l=1);let c=this.format(e,r),u=this.format(n,r);if(c===u)return c;let d=Jo(s,l),p=Qn(d,o,r),f=p(e),b=p(n),A=Ko(c,f,u,b),y=o.separator||i||r.defaultSeparator||"";return A?A.before+f+y+b+A.after:c+y+u}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 Qn(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>rn(i.timeZoneOffset):r===0&&e.week?i=>qo(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):Go(t,e,n)}function Go(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Qo(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:o}=s,a;i&&!o.getUTCMinutes()?a=i:a=r;let l=a.format(o);return Zo(l,s,t,e,n)}}function Qo(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function Zo(t,e,n,r,i){return t=t.replace(Wo,""),n.timeZoneName==="short"&&(t=Yo(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":rn(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Fo,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(qe,"").trim():r.meridiem==="narrow"?t=t.replace(qe,(s,o)=>o.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(qe,(s,o)=>`${o.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(qe,s=>s.toLocaleLowerCase())),t=t.replace(zo," "),t=t.trim(),t}function Yo(t,e){let n=!1;return t=t.replace(jo,()=>(n=!0,e)),n||(t+=` ${e}`),t}function qo(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function $o(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:te(t)!==te(e)?1:0}function Jo(t,e){let n={};for(let r in t)(!(r in ct)||ct[r]<=e)&&(n[r]=t[r]);return n}function Ko(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let o=t.substr(0,s);i=s+e.length;let a=t.substr(i),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let u=n.substr(0,c);l=c+r.length;let d=n.substr(l);if(o===u&&a===d)return{before:o,after:a}}}return null}function Zn(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function dt(t,e,n,r){let i=Zn(t,n.calendarSystem),s=e?Zn(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Xo{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,dt(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,dt(e,n,r,i))}}class ea{constructor(e){this.func=e}format(e,n,r){return this.func(dt(e,null,n,r))}formatRange(e,n,r,i){return this.func(dt(e,n,r,i))}}function U(t){return typeof t=="object"&&t?new Vo(t):typeof t=="string"?new Xo(t):typeof t=="function"?new ea(t):null}const Yn={navLinkDayClick:h,navLinkWeekClick:h,duration:O,bootstrapFontAwesome:h,buttonIcons:h,customButtons:h,defaultAllDayEventDuration:O,defaultTimedEventDuration:O,nextDayThreshold:O,scrollTime:O,scrollTimeReset:Boolean,slotMinTime:O,slotMaxTime:O,dayPopoverFormat:U,slotDuration:O,snapDuration:O,headerToolbar:h,footerToolbar:h,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:U,dayHeaderClassNames:h,dayHeaderContent:h,dayHeaderDidMount:h,dayHeaderWillUnmount:h,dayCellClassNames:h,dayCellContent:h,dayCellDidMount:h,dayCellWillUnmount:h,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:h,weekNumbers:Boolean,weekNumberClassNames:h,weekNumberContent:h,weekNumberDidMount:h,weekNumberWillUnmount:h,editable:Boolean,viewClassNames:h,viewDidMount:h,viewWillUnmount:h,nowIndicator:Boolean,nowIndicatorClassNames:h,nowIndicatorContent:h,nowIndicatorDidMount:h,nowIndicatorWillUnmount:h,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:h,locale:h,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:h,eventOrder:po,eventOrderStrict:Boolean,eventSlicing:Boolean,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:h,contentHeight:h,direction:String,weekNumberFormat:U,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:h,initialDate:h,now:h,eventDataTransform:h,stickyHeaderDates:h,stickyFooterScrollbar:h,viewHeight:h,defaultAllDay:Boolean,eventSourceFailure:h,eventSourceSuccess:h,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:h,eventConstraint:h,eventAllow:h,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:h,eventContent:h,eventDidMount:h,eventWillUnmount:h,selectConstraint:h,selectOverlap:h,selectAllow:h,droppable:Boolean,unselectCancel:String,slotLabelFormat:h,slotLaneClassNames:h,slotLaneContent:h,slotLaneDidMount:h,slotLaneWillUnmount:h,slotLabelClassNames:h,slotLabelContent:h,slotLabelDidMount:h,slotLabelWillUnmount:h,dayMaxEvents:h,dayMaxEventRows:h,dayMinWidth:Number,slotLabelInterval:O,allDayText:String,allDayClassNames:h,allDayContent:h,allDayDidMount:h,allDayWillUnmount:h,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:U,rerenderDelay:Number,moreLinkText:h,moreLinkHint:h,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:h,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:O,hiddenDays:h,fixedWeekCount:Boolean,validRange:h,visibleRange:h,titleFormat:h,eventInteractive:Boolean,noEventsText:String,viewHint:h,navLinkHint:h,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:h,moreLinkClassNames:h,moreLinkContent:h,moreLinkDidMount:h,moreLinkWillUnmount:h,monthStartFormat:U,handleCustomRendering:h,customRenderingMetaMap:h,customRenderingReplaces:Boolean},Oe={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"},longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},qn={datesSet:h,eventsSet:h,eventAdd:h,eventChange:h,eventRemove:h,eventClick:h,eventMouseEnter:h,eventMouseLeave:h,select:h,unselect:h,loading:h,_unmount:h,_beforeprint:h,_afterprint:h,_noEventDrop:h,_noEventResize:h,_timeScrollRequest:h},$n={buttonText:h,buttonHints:h,views:h,plugins:h,initialEvents:h,events:h,eventSources:h},ae={headerToolbar:le,footerToolbar:le,buttonText:le,buttonHints:le,buttonIcons:le,dateIncrement:le,plugins:$e,events:$e,eventSources:$e,resources:$e};function le(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Be(t,e):t===e}function $e(t,e){return Array.isArray(t)&&Array.isArray(e)?De(t,e):t===e}const ta={type:String,component:h,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:h,usesMinMaxTime:Boolean,classNames:h,content:h,didMount:h,willUnmount:h};function kt(t){return nn(t,ae)}function sn(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function h(t){return t}function on(t,e,n,r){return{instanceId:ie(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function na(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:o}=t;return o==null&&(o=e,o==null&&(o=s.allDayGuess,o==null&&(o=!1))),{allDay:o,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function We(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=t;a=Se(a,l=>!o[l.defId].recurringDef);for(let l in o){let c=o[l];if(c.recurringDef){let{duration:u}=c.recurringDef;u||(u=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let d=ra(c,u,e,r,i.recurringTypes);for(let p of d){let f=on(l,{start:p,end:r.add(p,u)});a[f.instanceId]=f}}}return{defs:o,instances:a}}function ra(t,e,n,r,i){let o=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(o=o.map(L)),o}function Le(t,e,n,r,i,s){let o=he(),a=cn(n);for(let l of t){let c=si(l,e,n,r,a,i,s);c&&Vt(c,o)}return o}function Vt(t,e=he()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function ia(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=ln(t,s=>sa(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return he()}function sa(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function he(){return{defs:{},instances:{}}}function an(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function ln(t,e){let n=Se(t.defs,e),r=Se(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function oa(t,e){let{defs:n,instances:r}=t,i={},s={};for(let o in n)e.defs[o]||(i[o]=n[o]);for(let o in r)!e.instances[o]&&i[r[o].defId]&&(s[o]=r[o]);return{defs:i,instances:s}}function aa(t,e){return Array.isArray(t)?Le(t,null,e,!0):typeof t=="object"&&t?Le([t],null,e,!0):t!=null?String(t):null}function k(...t){return t.filter(Boolean).join(" ")}function Jn(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}function Kn(t){return t*100+"%"}const ut={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:h,overlap:h,allow:h,className:Jn,classNames:Jn,color:String,backgroundColor:String,borderColor:String,textColor:String},la={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ft(t,e){let n=aa(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function ca(t){return t.reduce(da,la)}function da(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const it={id:String,groupId:String,title:String,url:String,interactive:Boolean},ii={start:h,end:h,date:h,allDay:Boolean},ua=Object.assign(Object.assign(Object.assign({},it),ii),{extendedProps:h});function si(t,e,n,r,i=cn(n),s,o){let{refined:a,extra:l}=oi(t,n,i),c=ha(e,n),u=na(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let p=Gt(a,l,e?e.sourceId:"",u.allDay,!!u.duration,n,s);return p.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:p,instance:null}}let d=fa(a,c,n,r);if(d){let p=Gt(a,l,e?e.sourceId:"",d.allDay,d.hasEnd,n,s),f=on(p.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return o&&p.publicId&&o[p.publicId]&&(f.instanceId=o[p.publicId]),{def:p,instance:f}}return null}function oi(t,e,n=cn(e)){return sn(t,n)}function cn(t){return Object.assign(Object.assign(Object.assign({},ut),ua),t.pluginHooks.eventRefiners)}function Gt(t,e,n,r,i,s,o){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(o&&t.id?o[t.id]:"")||ie(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:ft(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of s.pluginHooks.eventDefMemberAdders)Object.assign(a,l(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function fa(t,e,n,r){let{allDay:i}=t,s,o=null,a=!1,l,c=null,u=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(u),s)o=s.marker;else if(!r)return null;return t.end!=null&&(l=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&o&&(o=L(o)),l&&(c=l.marker,i&&(c=L(c)),o&&c<=o&&(c=null)),c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(o,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:o,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function ha(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}const pa={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ga(t,e){return Le(ma(t),null,e)}function ma(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},pa),n)),e}function ai(t){let e=Math.floor(Ce(t.start,t.end))||1,n=L(t.start),r=W(n,e);return{start:n,end:r}}function li(t,e=O(0)){let n=null,r=null;if(t.end){r=L(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=He(e)&&(r=W(r,1))}return t.start&&(n=L(t.start),r&&r<=n&&(r=W(n,1))),{start:n,end:r}}function Je(t,e,n,r){return r==="year"?O(n.diffWholeYears(t,e),"year"):r==="month"?O(n.diffWholeMonths(t,e),"month"):xo(t,e)}function va(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}const ba=/(top|left|right|bottom|width|height)$/i;function ya(t,e){for(let n in e)ci(t,n,e[n])}function ci(t,e,n){n==null?t.style[e]="":typeof n=="number"&&ba.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Aa(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Xn=0;function di(){return Xn+=1,"fc-dom-"+Xn}function Ea(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function er(t,e){let n=[],{start:r}=e,i,s;for(t.sort(_a),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function _a(t,e){return t.start.valueOf()-e.start.valueOf()}function Ue(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function Sa(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function re(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Da(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function ui(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!re(r.activeRange,t)),isOther:!!(r&&!re(r.currentRange,t)),isToday:!!(e&&re(e,t)),isPast:!!(e&&t<e.start),isFuture:!!(e&&t>=e.end)}}function Qt(t){return k("fc-day",`fc-day-${Ro[t.dow]}`,t.isDisabled?"fc-day-disabled":k(t.isToday&&"fc-day-today",t.isPast&&"fc-day-past",t.isFuture&&"fc-day-future",t.isOther&&"fc-day-other"))}function Fe(t,e){return t!=null&&(t===e||Math.abs(t-e)<.01)}const tr=!0,wa=100,Y=new Map,Zt=new Set;let Ee=!1;function xe(t){Ee?Zt.add(t):t()}function fi(){for(const t of Zt.values())t(),Zt.delete(t)}function Yt(){if(!Ee){Ee=!0;const t=[];for(const[e,n]of Y.entries()){let r,i;n.client?(r=e.clientWidth,i=e.clientHeight):{width:r,height:i}=e.getBoundingClientRect(),hi(n,r,i)&&t.push(n)}for(const e of t)e.callback(e.width,e.height);fi(),Ee=!1}}function hi(t,e,n){let r=!1;return Fe(t.width,e)||(t.width=e,r=t.watchWidth),Fe(t.height,n)||(t.height=n,r||(r=t.watchHeight)),r}function Ca(){const t=new ResizeObserver(n=>{Ee=!0;for(let r of n){const i=r.target,s=Y.get(i);let o,a;if(s.client)o=i.clientWidth,a=i.clientHeight;else if(r.borderBoxSize&&tr){const l=r.borderBoxSize[0]||r.borderBoxSize;o=l.inlineSize,a=l.blockSize}else({width:o,height:a}=i.getBoundingClientRect());hi(s,o,a)&&s.callback(o,a)}fi(),Ee=!1});function e(n,r,i,s=!0,o=!0){return Y.set(n,{callback:r,client:i,watchWidth:s,watchHeight:o}),t.observe(n,{box:!i&&tr?"border-box":void 0}),()=>{Y.delete(n),t.unobserve(n)}}return[e,Yt]}const nr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rr={capture:!0,passive:!0};function Ra(){let t,e=!1;const[n,r]=Ta(Yt,wa);function i(){r(),Yt()}function s(A,y,v,_=!0,E=!0){return Y.size||o(),Y.set(A,{callback:y,client:v,watchWidth:_,watchHeight:E}),n(),()=>{Y.delete(A),Y.size||a()}}function o(){t=new MutationObserver(n),e||l();for(const A of nr)window.addEventListener(A,n,rr)}function a(){e||c();for(const A of nr)window.removeEventListener(A,n,rr)}function l(){t.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function c(){t.disconnect()}function u(){e||(e=!0,Y.size&&c())}function d(){e&&(e=!1,Y.size&&l())}const p=Ye.__r||ir,f=Ye.__c||ir;let b=!1;return Ye.__r=function(){u(),p.apply(this,arguments)},Ye.__c=function(){b||(b=!0,requestAnimationFrame(()=>{i(),d(),b=!1})),f.apply(this,arguments)},[s,i]}const ir=()=>{};function Ta(t,e){let n,r,i;function s(l){n=Date.now(),r=0,i=setTimeout(()=>{r?s(r):(i=void 0,t())},l)}function o(){i?r=Date.now()-n:s(e)}function a(){i&&(clearTimeout(i),i=void 0)}return[o,a]}const[vt,pi]=typeof ResizeObserver<"u"?Ca():Ra();function ka(t,e){return vt(t,e,!0)}function bt(t,e){return vt(t,(n,r)=>e(r),!1,!0)}const Ma=U({year:"numeric",month:"long",day:"numeric"}),Oa=U({week:"long"});function dn(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=t;let a=i.format(e,n==="week"?Oa:Ma);if(s.navLinks){let l=i.toDate(e);const c=u=>{let d=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof d=="function"?d.call(o,i.toDate(e),u):(typeof d=="string"&&(n=d),o.zoomTo(e,n))};return Object.assign({title:Me(s.navLinkHint,[a,l],a),"data-navlink":""},r?Kr(c):{onClick:c})}return{"aria-label":a}}function xa(t){let e=Ia(t),n=t.getBoundingClientRect();for(let r of e){let i=va(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function Ia(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}function Na(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,n(a))},o=t(i,s);o&&typeof o.then=="function"&&o.then(i,s)}class gi{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){Pa(this.handlers,e,n)}off(e,n){Ha(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let o of s)o.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Pa(t,e,n){(t[e]||(t[e]=[])).push(n)}function Ha(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}class je{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClassName(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}je.prototype.classes={};je.prototype.iconClasses={};je.prototype.baseIconClass="";je.prototype.iconOverridePrefix="";const pe=Qr({});function Ba(t,e,n,r,i,s,o,a,l,c,u,d,p){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:a,getCurrentData:l,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",registerInteractiveComponent:d,unregisterInteractiveComponent:p}}class ge extends z{shouldComponentUpdate(e,n){return this.debug&&console.log(jt(e,this.props),jt(n,this.state)),!zn(this.props,e,this.propEquality)||!zn(this.state,n,this.stateEquality)}}ge.addPropsEquality=La;ge.addStateEquality=Ua;ge.contextType=pe;ge.prototype.propEquality={};ge.prototype.stateEquality={};class I extends ge{}I.contextType=pe;function La(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Ua(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function x(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class yt extends I{constructor(){super(...arguments),this.uid=ie()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!e.closest(".fc-event-mirror")}isValidDateDownEl(e){return!e.closest(".fc-event:not(.fc-bg-event)")&&!e.closest(".fc-more-link")&&!e.closest("a[data-navlink]")&&!e.closest(".fc-popover")}}function Fa(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function za(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):Ve(t.now,e)}function Ve(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class mi{constructor(e){this.props=e,this.nowDate=Ve(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,o,a,l,c,u;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Da(e,s)),o=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(o.unit),l=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),l=this.trimHiddenDays(l),c=l,i.showNonCurrentDates||(c=Ue(c,o.range)),c=this.adjustActiveRange(c),c=Ue(c,s),u=Sa(o.range,s),re(l,e)||(e=l.start),{currentDate:e,validRange:s,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:c,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,o=null,a;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,n,i,s)):(a=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,n,a)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=Wt(i).unit,o=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return O({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:o,end:a}=e;return r&&(Ae(i)<0&&(o=L(o),o=n.add(o,i)),Ae(s)>1&&(a=L(a),a=W(a,-1),a=n.add(a,s))),{start:o,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:o}=this.props,a,l,c;if(!o){let{dateIncrement:d}=this.props;d&&He(d)<He(r)?o=Wt(d).unit:o=i}Ae(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=L(a));function u(){a=s.startOf(e,o),l=s.add(a,r),c={start:a,end:l}}return u(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,n),u()),c}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,o=0,a=e,l;s&&(a=i.startOf(a,s)),a=L(a),a=this.skipHiddenDays(a,n),l=a;do l=W(l,1),this.isHiddenDay(l)||(o+=1);while(o<r);return{start:a,end:l}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?O(1,r):e||O({days:1}))}refineRange(e){if(e){let n=Ea(e,this.props.dateEnv);return n&&(n=li(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=W(e,n);return e}}function Wa(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Va(t,n)),{jsEvent:null,view:n.viewApi||n.calendarApi.view}))}function ja(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Va(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,rl(t,e.dateEnv)),n}function sr(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=L(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Ga(t,e,n,r){let i=bi(t.defs,e),s=he();for(let o in t.defs){let a=t.defs[o];s.defs[o]=Qa(a,i[o],n,r)}for(let o in t.instances){let a=t.instances[o],l=s.defs[a.defId];s.instances[o]=Za(a,l,i[a.defId],n,r)}return s}function Qa(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let o of r.pluginHooks.eventDefMutationAppliers)o(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Za(t,e,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},t);return o&&(l.range=ai(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:s.add(l.range.start,r.datesDelta),end:s.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:s.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:sr(e.allDay,l.range.start,i)}),e.allDay&&(l.range={start:L(l.range.start),end:L(l.range.end)}),l.range.end<l.range.start&&(l.range.end=sr(e.allDay,l.range.start,i)),l}class be{constructor(e,n){this.context=e,this.internalEventSource=n}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 G{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in ii)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=it[e](n),this.mutate({standardProps:{publicId:n}});else if(e in it)n=it[e](n),this.mutate({standardProps:{[e]:n}});else if(e in ut){let r=ut[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,o=Je(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=Je(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},o=i.createMarker(e),a;if(o&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=ai(l));let c=Je(l.start,o,i,r.granularity);if(a){let u=Je(l.end,a,i,r.granularity);Ao(c,u)?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:u,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}}moveStart(e){let n=O(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=O(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=O(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=U(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),o=ia(s,n.instanceId);o=Ga(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let l=new G(i,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:o}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:un(o,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=vi(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new be(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 n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,o={allDay:n.allDay};return n.title&&(o.title=n.title),i&&(o.start=i),s&&(o.end=s),n.publicId&&(o.id=n.publicId),n.groupId&&(o.groupId=n.groupId),n.url&&(o.url=n.url),r.display&&r.display!=="auto"&&(o.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?o.color=r.backgroundColor:(r.backgroundColor&&(o.backgroundColor=r.backgroundColor),r.borderColor&&(o.borderColor=r.borderColor)),r.textColor&&(o.textColor=r.textColor),r.classNames.length&&(o.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(o,n.extendedProps):o.extendedProps=n.extendedProps),o}toJSON(){return this.toPlainObject()}}function vi(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function un(t,e,n){let{defs:r,instances:i}=t,s=[],o=n?n.instanceId:"";for(let a in i){let l=i[a],c=r[l.defId];l.instanceId!==o&&s.push(new G(e,c,l))}return s}function Ya(t){return t.eventRange.instance.instanceId}function or(t,e,n,r){let i={},s={},o={},a=[],l=[],c=bi(t.defs,e);for(let u in t.defs){let d=t.defs[u];c[d.defId].display==="inverse-background"&&(d.groupId?(i[d.groupId]=[],o[d.groupId]||(o[d.groupId]=d)):s[u]=[])}for(let u in t.instances){let d=t.instances[u],p=t.defs[d.defId],f=c[p.defId],b=d.range,A=!p.allDay&&r?li(b,r):b,y=Ue(A,n);y&&(f.display==="inverse-background"?p.groupId?i[p.groupId].push(y):s[d.defId].push(y):f.display!=="none"&&(f.display==="background"?a:l).push({def:p,ui:f,instance:d,range:y,isStart:A.start&&A.start.valueOf()===y.start.valueOf(),isEnd:A.end&&A.end.valueOf()===y.end.valueOf()}))}for(let u in i){let d=i[u],p=er(d,n);for(let f of p){let b=o[u],A=c[b.defId];a.push({def:b,ui:A,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let u in s){let d=s[u],p=er(d,n);for(let f of p)a.push({def:t.defs[u],ui:c[u],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function ar(t,e){t.fcEventRange=e}function qt(t){return t.fcEventRange||t.parentNode.fcEventRange||null}function bi(t,e){return ze(t,n=>yi(n,e))}function yi(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),ca(n)}function qa(t,e){let n=t.map($a);return n.sort((r,i)=>go(r,i,e)),n.map(r=>r._seg)}function $a(t){let{eventRange:e}=t,n=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({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function Ja(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t,o=s.startEditable;for(let a of r)o=a(o,i,s,e);return o}function Ai(t,e,n,r,i,s,o,a=!0,l=!0){const{dateEnv:c,options:u}=o,{def:d,instance:p}=e;let{displayEventTime:f,displayEventEnd:b}=u;f==null&&(f=a!==!1),b==null&&(b=l!==!1);const A=!i&&n?n:e.instance.range.start,y=!s&&r?r:e.instance.range.end;if(f&&!d.allDay){if(b&&(i||s)&&d.hasEnd)return c.formatRange(A,y,t,{forcedStartTzo:i?p.forcedStartTzo:null,forcedEndTzo:s?p.forcedEndTzo:null});if(i)return c.format(A,t,{forcedTzo:p.forcedStartTzo})}return""}function Ie(t,e,n){let r=t.range;return{isPast:r.end<=e.start,isFuture:r.start>=e.end,isToday:e&&re(e,r.start)}}function Ka(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Xa(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Ei(t,e){let{def:n,instance:r}=t,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=e,{eventInteractive:a}=o;if(a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a)return Xr(l=>{s.trigger("eventClick",{el:l.target,event:new G(e,n,r),jsEvent:l,view:e.viewApi})})}const el={start:h,end:h,allDay:Boolean};function tl(t,e,n){let r=nl(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function nl(t,e){let{refined:n,extra:r}=sn(t,el),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:o}=n;return o==null&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}function rl(t,e){return Object.assign(Object.assign({},Si(t.range,e,t.allDay)),{allDay:t.allDay})}function _i(t,e,n){return Object.assign(Object.assign({},Si(t,e,n)),{timeZone:e.timeZone})}function Si(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function il(t,e,n){let r=oi({editable:!1},n),i=Gt(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:yi(i,e),instance:on(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}let Di={};function sl(t,e){Di[t]=e}function ol(t){return new Di[t]}class al{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return j(e)}markerToArray(e){return ee(e)}}sl("gregory",al);const ll=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function cl(t){let e=ll.exec(t);if(e){let n=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(ni(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class dl{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=ol(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 n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):j(jn(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=j(e)),n===null||!ni(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=cl(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.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,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return te(e)===te(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return te(e)===te(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=Io(e,n),r!==null?{unit:"week",value:r}:(r=lt(e,n),r!==null?{unit:"day",value:r}:(r=ko(e,n),Rt(r)?{unit:"hour",value:r}:(r=Mo(e,n),Rt(r)?{unit:"minute",value:r}:(r=Oo(e,n),Rt(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/_o(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/So(r):r.days&&(i=lt(e,n),i!==null)?i/Ae(r):(n.valueOf()-e.valueOf())/He(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?L(e):n==="hour"?No(e):n==="minute"?Po(e):n==="second"?Ho(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)):Bo(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=we(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),Uo(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?j(jn(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):j(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Vn(ee(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ee(e)):null}toDate(e,n){return this.timeZone==="local"?Vn(ee(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(ee(e))*1e3*60):new Date(e.valueOf()-(n||0))}}function lr(t,e){const n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);if(n<r)return{start:n,end:r,isStart:t.isStart&&n===t.start,isEnd:t.isEnd&&r===t.end}}function cr(t){return t.end}function ul(t){return t.reduce(hl).eventRange.range.start}function fl(t){return t.reduce(pl).eventRange.range.end}function hl(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function pl(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class dr{constructor(e,n=l=>1,r=!1,i,s,o=!1,a=!1){this.getSegThickness=n,this.strictOrder=r,this.maxCoord=i,this.maxDepth=s,this.hiddenConsumes=o,this.allowSlicing=a,this.placementsByLevel=[],this.levelCoords=[],this.hiddenSegs=[];for(const l of e)this.insertSeg(l,this.getSegThickness(l))}insertSeg(e,n,r){if(n!=null){const i=this.findInsertion(e,n);if(this.isInsertionValid(i,n))this.insertSegAt(e,i,n,r);else{const{touchingPlacement:s}=i;if(s){if(this.hiddenConsumes&&!s.isZombie&&(s.isZombie=!0,this.hiddenSegs.push(s),this.allowSlicing)){const o=Object.assign({},s);Object.assign(s,lr(s,e)),s.isSlice=!0,this.splitSeg(o,s.thickness,s)}this.allowSlicing?(this.hiddenSegs.push(Object.assign(Object.assign({},e),lr(e,s))),this.splitSeg(e,n,s)):this.hiddenSegs.push(e)}else this.hiddenSegs.push(e)}}}isInsertionValid(e,n){return(this.maxCoord==null||e.levelCoord+n<=this.maxCoord)&&(this.maxDepth==null||e.depth<this.maxDepth)}splitSeg(e,n,r){e.start<r.start&&this.insertSeg(Object.assign(Object.assign({},e),{end:r.start,isEnd:!1}),n,!0),e.end>r.end&&this.insertSeg(Object.assign(Object.assign({},e),{start:r.end,isStart:!1}),n,!0)}insertSegAt(e,n,r,i){const s=Object.assign(Object.assign({},e),{thickness:r,depth:n.depth,isSlice:i||e.isSlice||!1,isZombie:!1});n.lateralIndex===-1?(Mt(this.placementsByLevel,n.levelIndex,[s]),Mt(this.levelCoords,n.levelIndex,n.levelCoord)):Mt(this.placementsByLevel[n.levelIndex],n.lateralIndex,s)}findInsertion(e,n){let{placementsByLevel:r,levelCoords:i}=this,s=r.length,o=0,a,l,c=0;for(let p=0;p<s;p+=1){const f=i[p];if(!this.strictOrder&&f>=o+n)break;let b=r[p],A,[y,v]=ur(b,e.start,cr),_=y+v;for(;(A=b[_])&&A.start<e.end;){let E=f+A.thickness;E>o&&(o=E,a=A,l=p),E===o&&(c=Math.max(c,A.depth+1)),_+=1}}let u=0;if(a)for(u=l+1;u<s&&i[u]<o;)u+=1;let d=-1;return u<s&&i[u]===o&&([d]=ur(r[u],e.end,cr)),{touchingPlacement:a,levelCoord:o,levelIndex:u,lateralIndex:d,depth:c}}traverseSegs(e){const{placementsByLevel:n,levelCoords:r}=this;for(let i=0;i<n.length;i++){const s=n[i],o=r[i];for(const a of s)a.isZombie||e(a,o)}}}function Mt(t,e,n){t.splice(e,0,n)}function ur(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),o=n(t[s]);if(e<o)i=s;else if(e>o)r=s+1;else return[s,1]}return[r,0]}class wi{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function gl(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}const fr={};class ml extends I{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0}),ke(()=>{}),pi(),ke(()=>{})},this.handleAfterPrint=()=>{this.setState({forPrint:!1}),ke(()=>{})}}render(){let{props:e,state:n}=this,{options:r}=e,{forPrint:i}=n,s=["fc",i?"fc-media-print":"fc-media-screen",`fc-direction-${r.direction}`,e.theme.getClassName("root")];return e.children(s,r.height,i)}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 vl{constructor(e,n){let r=e.start,{end:i}=e,s=[],o=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),o.push(r)),r=W(r,1);this.dates=o,this.indices=s,this.cnt=o.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(W(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{start:i,end:s+1,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(Ce(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class bl{constructor(e,n){let{dates:r}=e,i,s,o;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);o=Math.ceil(r.length/i)}else o=1,i=r.length;this.rowCnt=o,this.colCnt=i,this.daySeries=e,this.cellRows=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cellRows[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){const{start:s,end:o}=r;let a=s;for(;a<o;){let l=Math.floor(a/n),c=Math.min((l+1)*n,o);i.push({row:l,start:a%n,end:(c-1)%n+1,isStart:r.isStart&&a===s,isEnd:r.isEnd&&c===o}),a=c}}return i}}class ht{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:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?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()}}const hr="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class yl{constructor(e){this.el=e,this.emitter=new gi,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new ht(this._handleWheelWaited.bind(this)),this.scrollWaiter=new ht(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let n of hr)e.addEventListener(n,this.handleWheel,{passive:!0})}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let n of hr)e.removeEventListener(n,this.handleWheel,{passive:!0})}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class pt extends yt{constructor(){super(...arguments),this.handleEl=e=>{const{props:n}=this;this.el&&(this.el=null,this.listener.destroy(),this.disconnectSize(),x(n.clientWidthRef,null),x(n.clientHeightRef,null),x(n.endScrollbarWidthRef,null),x(n.bottomScrollbarWidthRef,null)),e&&(this.el=e,this.listener=new yl(e),this.disconnectSize=vt(e,(r,i)=>{const{props:s}=this,o=e.offsetWidth-r,a=e.offsetHeight-i;this.currentClientWidth!==r&&x(s.clientWidthRef,this.currentClientWidth=r),this.currentClientHeight!==i&&x(s.clientHeightRef,this.currentClientHeight=i),Fe(this.currentBottomScrollbarWidth,a)||x(s.bottomScrollbarWidthRef,this.currentBottomScrollbarWidth=a),Fe(this.currentEndScrollbarWidth,o)||x(s.endScrollbarWidthRef,this.currentEndScrollbarWidth=o)},!0))}}render(){const{props:e}=this,n=e.horizontal||e.vertical?"hidden":"";return g("div",{ref:this.handleEl,className:k(e.className,"fc-scroller",e.hideScrollbars&&"fc-scroller-no-bars"),style:Object.assign(Object.assign({},e.style),{overflowX:e.horizontal?"auto":n,overflowY:e.vertical?"auto":n})},e.children)}endScroll(){this.listener.endScroll()}get x(){const{isRtl:e}=this.context,{el:n}=this;return n?Al(n,e):0}get y(){const{el:e}=this;return e?e.scrollTop:0}scrollTo({x:e,y:n}){const{isRtl:r}=this.context,{el:i}=this;i&&(n!=null&&(i.scrollTop=n),e!=null&&El(i,r,e))}addScrollEndListener(e){this.listener.emitter.on("scrollEnd",e)}removeScrollEndListener(e){this.listener.emitter.off("scrollEnd",e)}}function Al(t,e){const{scrollLeft:n}=t;return e?_l(n,t):n}function El(t,e,n){t.scrollLeft=e?Sl(n,t):n}function _l(t,e){switch(Ci()){case"positive":return e.scrollWidth-e.clientWidth-t;case"negative":return-t}return t}function Sl(t,e){switch(Ci()){case"positive":return e.scrollWidth-e.clientWidth-t;case"negative":return-t}return t}let pr;function Ci(){return pr||(pr=Dl())}function Dl(){let t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.direction="rtl";let e=document.createElement("div");e.style.width="200px",e.style.height="200px",t.appendChild(e),document.body.appendChild(t);let n;return t.scrollLeft>0?n="positive":(t.scrollLeft=50,t.scrollLeft>0?n="reverse":n="negative"),t.remove(),n}class wl{constructor(){this.sliceBusinessHours=M(this._sliceBusinessHours),this.sliceDateSelection=M(this._sliceDateSpan),this.sliceEventStore=M(this._sliceEventStore),this.sliceEventDrag=M(this._sliceInteraction),this.sliceEventResize=M(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:o}=e,a=this.sliceEventStore(e.eventStore,o,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,o,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,o,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,o,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:we(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(We(e,Ke(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let o=or(e,n,Ke(r,!!i),i);return{bg:this.sliceEventRanges(o.bg,s),fg:this.sliceEventRanges(o.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let o=or(e.mutatedEvents,n,Ke(r,!!i),i);return{segs:this.sliceEventRanges(o.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...o){if(!e)return[];let a=Ke(n,!!r),l=Ue(e.range,a);if(l){e=Object.assign(Object.assign({},e),{range:l});let c=il(e,i,s),u=this.sliceRange(e.range,...o);for(let d of u)d.eventRange=c;return u}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:W(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function Ke(t,e){let n=t.activeRange;return e?n:{start:we(n.start,t.slotMinTime.milliseconds),end:we(n.end,t.slotMaxTime.milliseconds-864e5)}}function Cl(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return Rl(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Tl(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return kl(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return an(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?We(t,r.activeRange,i):t;case"REMOVE_EVENTS":return oa(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Ti(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return ln(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return he();default:return t}}function Rl(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let o=Le(Ri(i,e,s),e,s);return r&&(o=We(o,r,s)),an(Ti(t,e.sourceId),o)}return t}function Tl(t,e,n,r,i){const{defIdMap:s,instanceIdMap:o}=Ml(t);let a=Le(Ri(n,e,i),e,i,!1,s,o);return We(a,r,i)}function Ri(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=gr(t,i)),r&&(t=gr(t,r)),t}function gr(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function kl(t,e,n,r){return n&&(e=We(e,n,r)),an(t,e)}function mr(t,e,n){let{defs:r}=t,i=ze(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function Ti(t,e){return ln(t,n=>n.sourceId!==e)}function Ml(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const o=e[s],{publicId:a}=o;a&&(r[a]=s)}for(let s in n){const o=n[s],a=e[o.defId],{publicId:l}=a;l&&(i[l]=s)}return{defIdMap:r,instanceIdMap:i}}class vr extends Error{constructor(e,n){super(e),this.response=n}}function Ol(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),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 vr("Failure parsing JSON",i)});throw new vr("Request failed",i)})}function Re(t){return t.height==="auto"||t.viewHeight==="auto"}function ki(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=Re(t)),e}function xl(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=Re(t)),e}function Il(t){const e=t.scrollerSyncerClass;if(!e)throw new RangeError("Must import @fullcalendar/scrollgrid");return e}class _e{constructor(e){this.masterCallback=e,this.rev="",this.current=new Map,this.callbacks=new Map,this.handleValue=(n,r)=>{let{current:i,callbacks:s}=this;n===null?(i.delete(r),s.delete(r)):i.set(r,n),this.rev=ie(),this.masterCallback&&this.masterCallback(n,r)}}createRef(e){let n=this.callbacks.get(e);return n||(n=r=>{this.handleValue(r,e)},this.callbacks.set(e,n)),n}}class Mi extends z{constructor(e,n){super(e,n),this.initialNowDate=Ve(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=we(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,O(1,e.unit)),o=s.valueOf()-r.valueOf();return o=Math.min(1e3*60*60*24,o),{currentState:{nowDate:i,todayRange:br(i)},nextState:{nowDate:s,todayRange:br(s)},waitMs:o}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Mi.contextType=pe;function br(t){let e=L(t),n=W(e,1);return{start:e,end:n}}class fn extends I{constructor(){super(...arguments),this.id=ie(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!$t(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&x(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:o}=e,a=Oi(e,"",this.handleEl);let l=!1,c,u=[],d;if(i!=null){const p=typeof i=="function"?i(o,g):i;if(p===!0)l=!0;else{const f=p&&typeof p=="object";f&&"html"in p?a.dangerouslySetInnerHTML={__html:p.html}:f&&"domNodes"in p?u=Array.prototype.slice.call(p.domNodes):(f?Ir(p):typeof p!="function")?c=p:d=p}}else l=!$t(e.generatorName,r);return l&&s&&(c=s(o)),this.queuedDomNodes=u,this.currentGeneratorMeta=d,g(e.tag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:o}=i.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:o==null?void 0:o[r.generatorName];a&&s(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!De(e,n)){for(const i of n)i.remove();for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}fn.addPropsEquality({renderProps:Be,attrs:wo,style:Be});function $t(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Oi(t,e,n){const r=Object.assign(Object.assign({},t.attrs),{ref:n});return(t.className||e)&&(r.className=k(e,t.className,r.className)),t.style&&(r.style=t.style),r}const xi=Qr(0);class se extends z{constructor(){super(...arguments),this.InnerContent=Nl.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(x(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Pl(e.classNameGenerator,e.renderProps);if(e.children){const r=Oi(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.tag?g(e.tag,r,i):i}else return g(fn,Object.assign(Object.assign({},e),{elRef:this.handleEl,tag:e.tag||"div",className:k(e.className,n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}se.contextType=xi;function Nl(t,e){const n=t.props;return g(fn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Pl(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?n:n.join(" ")}function Ii(t){return t.text}class hn extends I{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&ar(e,this.props.eventRange)}}render(){const{props:e,context:n}=this,{options:r}=n,{eventRange:i}=e,{ui:s}=i,o={event:new G(n,i.def,i.instance),view:n.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&Ja(i,n),isStartResizable:!e.disableResizing&&e.isStart&&i.ui.durationEditable&&r.eventResizableFromStart,isEndResizable:!e.disableResizing&&e.isEnd&&i.ui.durationEditable,isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!e.isStart,isEnd:!!e.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return g(se,Object.assign({},e,{elRef:this.handleEl,className:k(e.className,...Ka(o),...i.ui.classNames),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.eventRange!==e.eventRange&&ar(this.el,this.props.eventRange)}}class Hl extends I{render(){const{props:e,context:n}=this,{eventRange:r}=e,{options:i}=n,s=i.eventTimeFormat||e.defaultTimeFormat,o=Ai(s,r,e.slicedStart,e.slicedEnd,e.isStart,e.isEnd,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd),a=Ei(r,n);return g(hn,Object.assign({},e,{tag:a?"a":"div",style:{borderColor:r.ui.borderColor,backgroundColor:r.ui.backgroundColor},attrs:a,defaultGenerator:Bl,timeText:o}),(l,c)=>g(B,null,g(l,{tag:"div",className:"fc-event-inner",style:{color:c.textColor}}),!!c.isStartResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Bl(t){return g(B,null,t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title-outer"},g("div",{className:"fc-event-title"},t.event.title||g(B,null," "))))}const Ll=U({day:"numeric"});class Ni extends I{constructor(){super(...arguments),this.refineRenderProps=rt(Ul)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,renderProps:e.renderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return g(se,Object.assign({},e,{className:k(e.className,Qt(i)),attrs:Object.assign(Object.assign({},e.attrs),i.isDisabled?{}:{"data-date":ri(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 Pi(t){return!!(t.dayCellContent||$t("dayCellContent",t))}function Ul(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=ui(e,t.todayRange,null,r),o=t.showDayNumber?n.format(e,i?t.monthStartFormat:Ll):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:o}),t.renderProps)}class Fl extends I{render(){let{props:e}=this,{eventRange:n}=e;return g(hn,{tag:"div",className:"fc-bg-event",style:{backgroundColor:n.ui.backgroundColor},defaultGenerator:zl,eventRange:n,isStart:e.isStart,isEnd:e.isEnd,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function zl(t){let{title:e}=t.event;return e&&g("div",{className:"fc-event-title"},t.event.title)}function Wl(t){return g("div",{className:`fc-${t}`})}const jl=t=>g(pe.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,o=n.computeWeekNumber(i),a=n.format(i,s);return g(se,Object.assign({},t,{renderProps:{num:o,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Ii,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))}),Ot=10;class Vl extends I{constructor(){super(...arguments),this.state={titleId:di()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&x(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Aa(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this;return Ys(g("div",Object.assign({},r.attrs,{id:r.id,className:k(r.className,"fc-popover",e.getClassName("popover")),"aria-labelledby":i.titleId,ref:this.handleRootEl}),g("div",{className:"fc-popover-header "+e.getClassName("popoverHeader")},g("span",{className:"fc-popover-title",id:i.titleId},r.title),g("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),g("div",{className:"fc-popover-body "+e.getClassName("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,{alignEl:n,alignParentTop:r}=this.props,{rootEl:i}=this,s=xa(n);if(s){let o=i.getBoundingClientRect(),a=r?n.closest(r).getBoundingClientRect().top:s.top,l=e?s.right-o.width:s.left;a=Math.max(a,Ot),l=Math.min(l,document.documentElement.clientWidth-Ot-o.width),l=Math.max(l,Ot);let c=i.offsetParent.getBoundingClientRect();ya(i,{top:a-c.top,left:l-c.left})}}}class Gl extends yt{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:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:o}=r,a=n.format(i,e.dayPopoverFormat);return g(Ni,{elRef:this.handleRootEl,date:i,dateProfile:o,todayRange:s},(l,c,u)=>g(Vl,{elRef:u.ref,id:r.id,title:a,attrs:u,className:k(u.className,"fc-more-popover"),parentEl:r.parentEl,alignEl:r.alignEl,alignParentTop:r.alignParentTop,onClose:r.onClose},Pi(e)&&g(l,{tag:"div",className:"fc-more-popover-misc"}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:o}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.dateSpanProps),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class Ql extends I{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:di()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&x(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=yr(n).start;function o(a){let{def:l,instance:c,range:u}=a.eventRange;return{event:new G(r,l,c),start:r.dateEnv.toDate(u.start),end:r.dateEnv.toDate(u.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.segs.map(o),hiddenSegs:n.hiddenSegs.map(o),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:n}=this;return g(pe.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:o}=r,{moreLinkText:a}=s,l=e.hiddenSegs.length,c=yr(e),u=typeof a=="function"?a.call(o,l):`+${l} ${a}`,d=Me(s.moreLinkHint,[l],u),p={num:l,shortText:`+${l}`,text:u,view:i};return g(B,null,!!l&&g(se,{tag:e.tag||"a",elRef:this.handleLinkEl,className:k(e.className,"fc-more-link"),style:e.style,attrs:Object.assign(Object.assign(Object.assign({},e.attrs),Kr(this.handleClick)),{title:d,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:p,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Zl,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&g(Gl,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,dateSpanProps:e.dateSpanProps,parentEl:this.parentEl,alignEl:e.alignElRef?e.alignElRef.current:this.linkEl,alignParentTop:e.alignParentTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=this.linkEl.closest(".fc-view-outer"))}}function Zl(t){return t.text}function yr(t){return t.allDayDate?{start:t.allDayDate,end:W(t.allDayDate,1)}:{start:ul(t.hiddenSegs),end:fl(t.hiddenSegs)}}class Yl extends I{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return g(se,Object.assign({},e,{tag:e.tag||"div",className:k(e.className,Hi(e.viewSpec)),renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Hi(t){return`fc-${t.type}-view fc-view`}const ql={id:String,defaultAllDay:Boolean,url:String,format:String,events:h,eventDataTransform:h,success:h,failure:h};function Bi(t,e,n=Li(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=sn(r,n),o=$l(i,e);if(o)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:ie(),sourceDefId:o.sourceDefId,meta:o.meta,ui:ft(i,e),extendedProps:s}}return null}function Li(t){return Object.assign(Object.assign(Object.assign({},ut),ql),t.pluginHooks.eventSourceRefiners)}function $l(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}class Jl{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){requestAnimationFrame(pi)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),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:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,o;for(let a in n)i.push(a);for(s=0;s<i.length;s+=1)if(o=n[i[s]],o&&o.singleUnit===e)return o;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:Ve(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=O(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),U(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),U(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=tl(r,i.dateEnv,O({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Wa(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),ja(e,n))}addEvent(e,n){if(e instanceof G){let o=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[o.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Vt({def:o,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof be)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=ti(r.eventSources));else if(n!=null){let o=this.getEventSourceById(n);if(!o)return console.warn(`Could not find an event source with ID "${n}"`),null;i=o.internalEventSource}let s=si(e,i,r,!1);if(s){let o=new G(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Vt(s)}),this.triggerEventAdd(o),o}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:vi(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let o=r[s];if(o.publicId===e){if(o.recurringDef)return new G(n,o,null);for(let a in i){let l=i[a];if(l.defId===o.defId)return new G(n,o,l)}}}return null}getEvents(){let e=this.getCurrentData();return un(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new be(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new be(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof be)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=Bi(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new be(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=O(e);n&&this.trigger("_timeScrollRequest",n)}}class Kl{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Xl extends Kl{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}class ec extends I{constructor(){super(...arguments),this.rootElRef=ne()}render(){const{props:e}=this;return g("div",{ref:this.rootElRef,className:"fc-sticky-footer-scrollbar"},g(pt,{horizontal:!0,ref:e.scrollerRef},g("div",{style:{minWidth:e.canvasWidth}})))}componentDidMount(){this.disconnectHeight=bt(this.rootElRef.current,e=>{x(this.props.scrollbarWidthRef,e)})}componentWillUnmount(){this.disconnectHeight(),x(this.props.scrollbarWidthRef,null)}}const tc=[],Ui={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"},Fi=Object.assign(Object.assign({},Ui),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function nc(t){let e=t.length>0?t[0].code:"en",n=tc.concat(t),r={en:Fi};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function zi(t,e){return typeof t=="object"&&!Array.isArray(t)?Wi(t.code,[t.code],t):rc(t,e)}function rc(t,e){let n=[].concat(t||[]),r=ic(n,e)||Fi;return Wi(t,n,r)}function ic(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].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 Wi(t,e,n){let r=nn([Ui,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function me(t){return{id:ie(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollerSyncerClass:t.scrollerSyncerClass||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function sc(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollerSyncerClass:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(s){for(let o of s){const a=o.name,l=n[a];l===void 0?(n[a]=o.id,i(o.deps),r=ac(r,o)):l!==o.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function oc(){let t=[],e=[],n;return(r,i)=>((!n||!De(r,t)||!De(i,e))&&(n=sc(r,i)),t=r,e=i,n)}function ac(t,e){return{premiumReleaseDate:lc(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollerSyncerClass:t.scrollerSyncerClass||e.scrollerSyncerClass,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function lc(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class oe extends je{}oe.prototype.classes={root:"fc-theme-standard",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};oe.prototype.baseIconClass="fc-icon";oe.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"};oe.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};oe.prototype.iconOverrideOption="buttonIcons";oe.prototype.iconOverrideCustomButtonOption="icon";oe.prototype.iconOverridePrefix="fc-icon-";function cc(t,e){let n={},r;for(r in t)Jt(r,n,t,e);for(r in e)Jt(r,n,t,e);return n}function Jt(t,e,n,r){if(e[t])return e[t];let i=dc(t,e,n,r);return i&&(e[t]=i),i}function dc(t,e,n,r){let i=n[t],s=r[t],o=u=>i&&i[u]!==null?i[u]:s&&s[u]!==null?s[u]:null,a=o("component"),l=o("superType"),c=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");c=Jt(l,e,n,r)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function Ar(t){return ze(t,uc)}function uc(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Er(e):n&&!(n.prototype instanceof I)&&(n=Er(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Er(t){return e=>g(pe.Consumer,null,n=>g(se,{tag:"div",className:Hi(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function fc(t,e,n,r){let i=Ar(t),s=Ar(e.views),o=cc(i,s);return ze(o,a=>hc(a,s,e,n,r))}function hc(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,o=null,a="",l="",c={};if(s&&(o=pc(s),o)){let p=Wt(o);a=p.unit,p.value===1&&(l=a,c=e[a]?e[a].rawOptions:{})}let u=p=>{let f=p.buttonText||{},b=t.defaults.buttonTextKey;return b!=null&&f[b]!=null?f[b]:f[t.type]!=null?f[t.type]:f[l]!=null?f[l]:null},d=p=>{let f=p.buttonHints||{},b=t.defaults.buttonTextKey;return b!=null&&f[b]!=null?f[b]:f[t.type]!=null?f[t.type]:f[l]!=null?f[l]:null};return{type:t.type,component:t.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(r)||u(n)||t.overrides.buttonText,buttonTextDefault:u(i)||t.defaults.buttonText||u(Oe)||t.type,buttonTitleOverride:d(r)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(i)||t.defaults.buttonHint||d(Oe)}}let _r={};function pc(t){let e=JSON.stringify(t),n=_r[e];return n===void 0&&(n=O(t),_r[e]=n),n}function gc(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function mc(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function vc(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function bc(t,e,n){let r=e?e.activeRange:null;return Vi({},wc(t,n),r,n)}function yc(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Vi(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Ec(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Gi(t,i,r):t;case"FETCH_EVENT_SOURCES":return pn(t,e.sourceIds?ei(e.sourceIds):Qi(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Dc(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Ac(t,e,n){let r=e?e.activeRange:null;return pn(t,Qi(t,n),r,!0,n)}function ji(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Vi(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Gi(i,n,r)),Object.assign(Object.assign({},t),i)}function Ec(t,e){return Se(t,n=>n.sourceId!==e)}function Gi(t,e,n){return pn(t,Se(t,r=>_c(r,e,n)),e,!1,n)}function _c(t,e,n){return Zi(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function pn(t,e,n,r,i){let s={};for(let o in t){let a=t[o];e[o]?s[o]=Sc(a,n,r,i):s[o]=a}return s}function Sc(t,e,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=ie();return o.fetch({eventSource:t,range:e,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(s,c,l.response)||c),t.success&&(c=t.success.call(s,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},l=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,l),c=!0),t.failure&&(t.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function Dc(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function Qi(t,e){return Se(t,n=>Zi(n,e))}function wc(t,e){let n=Li(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let o=Bi(s,e,n);o&&i.push(o)}return i}function Zi(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Cc(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function Rc(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Tc(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function kc(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Mc(t,e,n,r,i){let s=t.headerToolbar?Sr(t.headerToolbar,t,e,n,r,i):null,o=t.footerToolbar?Sr(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:o}}function Sr(t,e,n,r,i,s){let o={},a=[],l=!1;for(let c in t){let u=t[c],d=Oc(u,e,n,r,i,s);o[c]=d.widgets,a.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function Oc(t,e,n,r,i,s){let o=e.direction==="rtl",a=e.customButtons||{},l=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},d=e.buttonHints||{},p=t?t.split(" "):[],f=[],b=!1;return{widgets:p.map(y=>y.split(",").map(v=>{if(v==="title")return b=!0,{buttonName:v};let _,E,m,D,w,C;if(_=a[v])m=R=>{_.click&&_.click.call(R.target,R,R.target)},(D=r.getCustomButtonIconClass(_))||(D=r.getIconClass(v,o))||(w=_.text),C=_.hint||_.text;else if(E=i[v]){f.push(v),m=()=>{s.changeView(v)},(w=E.buttonTextOverride)||(D=r.getIconClass(v,o))||(w=E.buttonTextDefault);let R=E.buttonTextOverride||E.buttonTextDefault;C=Me(E.buttonTitleOverride||E.buttonTitleDefault||e.viewHint,[R,v],R)}else if(s[v])if(m=()=>{s[v]()},(w=l[v])||(D=r.getIconClass(v,o))||(w=c[v]),v==="prevYear"||v==="nextYear"){let R=v==="prevYear"?"prev":"next";C=Me(u[R]||d[R],[c.year||"year","year"],c[v])}else C=R=>Me(u[v]||d[v],[c[R]||R,R],c[v]);return{buttonName:v,buttonClick:m,buttonIcon:D,buttonText:w,buttonHint:C}})),viewsWithButtons:f,hasTitle:b}}class xc{constructor(e,n,r){this.type=e,this.getCurrentData=n,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]}}let Ic={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const Nc=me({name:"array-event-source",eventSourceDefs:[Ic]});let Pc={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;Na(i.bind(null,_i(t.range,r)),s=>e({rawEvents:s}),n)}};const Hc=me({name:"func-event-source",eventSourceDefs:[Pc]}),Bc={method:String,extraParams:h,startParam:String,endParam:String,timeZoneParam:String};let Lc={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=Fc(r,t.range,t.context);Ol(r.method,r.url,i).then(([s,o])=>{e({rawEvents:s,response:o})},n)}};const Uc=me({name:"json-event-source",eventSourceRefiners:Bc,eventSourceDefs:[Lc]});function Fc(t,e,n){let{dateEnv:r,options:i}=n,s,o,a,l,c={};return s=t.startParam,s==null&&(s=i.startParam),o=t.endParam,o==null&&(o=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(c,l),c[s]=r.formatIso(e.start),c[o]=r.formatIso(e.end),r.timeZone!=="local"&&(c[a]=r.timeZone),c}const zc={daysOfWeek:h,startTime:O,endTime:O,duration:O,startRecur:h,endRecur:h};let Wc={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=Eo(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Ue(e,{start:t.startRecur,end:t.endRecur});return r?Vc(t.daysOfWeek,t.startTime,r,n):[]}};const jc=me({name:"simple-recurring-event",recurringTypes:[Wc],eventRefiners:zc});function Vc(t,e,n,r){let i=t?ei(t):null,s=L(n.start),o=n.end,a=[];for(;s<o;){let l;(!i||i[s.getUTCDay()])&&(e?l=r.add(s,e):l=s,a.push(l)),s=W(s,1)}return a}const Gc=me({name:"change-handler",optionChangeHandlers:{events(t,e){Dr([t],e)},eventSources:Dr}});function Dr(t,e){let n=ti(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let o=0;o<n.length;o+=1)if(n[o]._raw===i){n.splice(o,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function Qc(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},_i(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Zc(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",un(t,e))}const Yc=[Nc,Hc,Uc,jc,Gc,me({name:"misc",isLoadingFuncs:[t=>ji(t.eventSources)],propSetHandlers:{dateProfile:Qc,eventStore:Zc}})];class qc{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new ht(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function $c(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,U(e.titleFormat||Jc(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Jc(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=lt(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Kc{constructor(e){this.computeCurrentViewData=M(this._computeCurrentViewData),this.organizeRawLocales=M(nc),this.buildLocale=M(zi),this.buildPluginHooks=oc(),this.buildDateEnv=M(Xc),this.buildTheme=M(ed),this.parseToolbars=M(Mc),this.buildViewSpecs=M(fc),this.buildDateProfileGenerator=rt(td),this.buildViewApi=M(nd),this.buildViewUiProps=rt(sd),this.buildEventUiBySource=M(rd,Be),this.buildEventUiBases=M(id),this.parseContextBusinessHours=rt(od),this.buildTitle=M($c),this.emitter=new gi,this.actionRunner=new qc(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=p=>{this.actionRunner.request(p)},this.props=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let o=za(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(o);re(a.activeRange,o)||(o=a.currentRange.start);let l={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let p of r.pluginHooks.contextInit)p(l);let c=bc(r.calendarOptions,a,l),u={dynamicOptionOverrides:n,currentViewType:i,currentDate:o,dateProfile:a,businessHours:this.parseContextBusinessHours(l),eventSources:c,eventUiBases:{},eventStore:he(),renderableEventStore:he(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},d=Object.assign(Object.assign({},l),u);for(let p of r.pluginHooks.reducers)Object.assign(u,p(null,null,d));xt(u,l)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=mc(r.dynamicOptionOverrides,e),o=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=gc(r.currentViewType,e),l=this.computeCurrentViewData(a,o,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let c={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:d}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(d=l.dateProfileGenerator.build(u)),u=Fa(u,e),d=vc(d,e,u,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!re(d.currentRange,u))&&(u=d.currentRange.start);let p=yc(r.eventSources,e,d,c),f=Cl(r.eventStore,e,p,d,c),A=ji(p)&&!l.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:y,selectionConfig:v}=this.buildViewUiProps(c),_=this.buildEventUiBySource(p),E=this.buildEventUiBases(A.defs,y,_),m={dynamicOptionOverrides:s,currentViewType:a,currentDate:u,dateProfile:d,eventSources:p,eventStore:f,renderableEventStore:A,selectionConfig:v,eventUiBases:E,businessHours:this.parseContextBusinessHours(c),dateSelection:Cc(r.dateSelection,e),eventSelection:Rc(r.eventSelection,e),eventDrag:Tc(r.eventDrag,e),eventResize:kc(r.eventResize,e)},D=Object.assign(Object.assign({},c),m);for(let R of o.pluginHooks.reducers)Object.assign(m,R(r,e,D));let w=xt(r,c),C=xt(m,c);!w&&C?i.trigger("loading",!0):w&&!C&&i.trigger("loading",!1),this.state=m,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),o=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),a=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=i.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=o.eventSources=Ac(o.eventSources,n.dateProfile,o),n.eventStore=o.eventStore=mr(o.eventStore,r.dateEnv,o.dateEnv),n.renderableEventStore=o.renderableEventStore=mr(o.renderableEventStore,r.dateEnv,o.dateEnv));for(let u in a)(this.optionsForHandling.indexOf(u)!==-1||l[u]!==c[u])&&a[u](c[u],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:o,availableLocaleData:a,extra:l}=this.processRawCalendarOptions(e,n);wr(l);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),u=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),d=this.buildTheme(i,s),p=this.parseToolbars(i,this.stableOptionOverrides,d,u,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:c,viewSpecs:u,theme:d,toolbarConfig:p,localeDefaults:o,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=kt([Oe,e,n]),s=this.organizeRawLocales(r),o=s.map,a=this.buildLocale(i||s.defaultCode,o).options,l=this.buildPluginHooks(e.plugins||[],Yc),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yn),qn),$n),l.listenerRefiners),l.optionRefiners),u={},d=kt([Oe,a,e,n]),p={},f=this.currentCalendarOptionsInput,b=this.currentCalendarOptionsRefined,A=!1;for(let y in d)this.optionsForRefining.indexOf(y)===-1&&(d[y]===f[y]||ae[y]&&y in f&&ae[y](f[y],d[y]))?p[y]=b[y]:c[y]?(p[y]=c[y](d[y]),A=!0):u[y]=f[y];return A&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=p,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:s,localeDefaults:a,extra:u}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);wr(a);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:o,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(e,n,r,i,s){let o=kt([Oe,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yn),qn),$n),ta),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,p={};for(let f in o)o[f]===c[f]||ae[f]&&ae[f](o[f],c[f])?l[f]=u[f]:(o[f]===this.currentCalendarOptionsInput[f]||ae[f]&&ae[f](o[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(l[f]=this.currentCalendarOptionsRefined[f]):a[f]?l[f]=a[f](o[f]):p[f]=o[f],d=!0);return d&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}}}function Xc(t,e,n,r,i,s,o,a){let l=zi(e||o.defaultCode,o.map);return new dl({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function ed(t,e){let n=e.themeClasses[t.themeSystem]||oe;return new n(t)}function td(t){let e=t.dateProfileGeneratorClass||mi;return new e(t)}function nd(t,e,n){return new xc(t,e,n)}function rd(t){return ze(t,e=>e.ui)}function id(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function sd(t){let{options:e}=t;return{eventUiSingleBase:ft({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},t),selectionConfig:ft({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function xt(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function od(t){return ga(t.options.businessHours,t)}function wr(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class ad extends I{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return g("div",{className:"fc-toolbar-section fc-toolbar-"+this.props.name},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let o of e){let{buttonName:a,buttonClick:l,buttonText:c,buttonIcon:u,buttonHint:d}=o;if(a==="title")s=!1,i.push(g("h2",{className:"fc-toolbar-title"},n.title));else{let p=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next";i.push(g("button",{type:"button",title:typeof d=="function"?d(n.navUnit):d,disabled:f,"aria-pressed":p,className:k(`fc-${a}-button`,r.getClassName("button"),p&&r.getClassName("buttonActive")),onClick:l},c||(u?g("span",{className:u,role:"img"}):"")))}}if(i.length>1){let o=s&&r.getClassName("buttonGroup")||"";return g("div",{className:o},...i)}return i[0]}}class Cr extends I{render(){let{model:e,className:n}=this.props,r=!1,i,s,o=e.sectionWidgets,a=o.center;return o.left?(r=!0,i=o.left):i=o.start,o.right?(r=!0,s=o.right):s=o.end,g("div",{className:k(n,"fc-toolbar",r&&"fc-toolbar-ltr")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return g(ad,{key:e,name:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled})}}class ld extends wi{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,o=qt(r);o&&i.isValidSegDownEl(n.target)&&s.emitter.trigger("eventClick",{el:r,event:new G(i.context,o.def,o.instance),jsEvent:n,view:s.viewApi})},this.destroy=Jr(e.el,"click",".fc-event",this.handleSegClick)}}class cd extends wi{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{qt(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=ho(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,o=qt(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new G(s,o.def,o.instance),jsEvent:n,view:s.viewApi})}}class dd extends z{render(){const{props:e}=this;return g("div",{className:k("fc-view-outer",e.height!=null?"fc-view-outer-static":e.heightLiquid?"fc-view-outer-liquid":e.aspectRatio!=null&&"fc-view-outer-aspect-ratio"),style:{height:e.height,paddingBottom:e.aspectRatio!=null?`${1/e.aspectRatio*100}%`:void 0}},e.children)}}class ud extends ge{constructor(){super(...arguments),this.buildViewContext=M(Ba),this.buildViewPropTransformers=M(hd),this.buildToolbarProps=M(fd),this.interactionsStore={},this.registerInteractiveComponent=(e,n)=>{let r=gl(e,n),s=[ld,cd];n.disableHits||(s=s.concat(this.props.pluginHooks.componentInteractions));let o=s.map(a=>new a(r));this.interactionsStore[e.uid]=o,fr[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete fr[e.uid]}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Ve(e.options.now,e.dateEnv),e.viewTitle),s,o=!1,a;e.forPrint||Re(r)||(r.height!=null?o=!0:r.contentHeight!=null?s=r.contentHeight:a=Math.max(r.aspectRatio,.5));let l=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);return g(pe.Provider,{value:l},n.header&&g(Cr,Object.assign({className:"fc-header-toolbar",model:n.header},i)),g(dd,{height:s,heightLiquid:o,aspectRatio:a},this.renderView(e),this.buildAppendContent()),n.footer&&g(Cr,Object.assign({className:"fc-footer-toolbar",model:n.footer},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e));let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return g(B,{},...n)}renderView(e){let{pluginHooks:n}=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,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let o=r.component;return g(o,Object.assign({},i))}}function fd(t,e,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),l=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!re(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function hd(t){return t.map(e=>new e)}class pd extends Jl{constructor(e,n={}){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;ke(()=>{Pe(g(ml,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,o)=>(this.setClassNames(i),this.setHeight(s),g(xi.Provider,{value:this.customContentRenderId},g(ud,Object.assign({forPrint:o},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Pe(null,this.el),this.setClassNames([]),this.setHeight(""))},oo(e),this.el=e,this.renderRunner=new ht(this.handleRenderRequest),new Kc({optionOverrides:n,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(){ke(()=>{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,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!De(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){ci(this.el,"height",e)}}const gd={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},md=Kt({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:yd(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(et(vd,{key:e.id,customRendering:e}));return et("div",{attrs:{"data-fc-render-id":this.renderId}},et(Mr,t))},mounted(){const t=new Xl;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new pd(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++})},beforeUpdate(){this.getApi().resumeRendering()},beforeUnmount(){this.getApi().destroy()},watch:bd()}),vd=Kt({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return et(vs,{to:t.containerEl},e)}});function bd(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in gd)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function yd(t){const e={};for(const n in t)e[Ad(n)]=t[n];return e}function Ad(t){return t.split("-").map((e,n)=>n?Ed(e):e).join("")}function Ed(t){return t.charAt(0).toUpperCase()+t.slice(1)}class _d extends wl{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}const Sd=U({weekday:"long"}),Dd=new Date(2592e5);function wd(...t){return[Cd(...t)]}function Cd(t,e,n,r,i,s,o){return{renderConfig:Rd(s),dataConfigs:Td(t,e,n,r,i,s,o)}}function Rd(t){const{options:e}=t;return{generatorName:"dayHeaderContent",customGenerator:e.dayHeaderContent,classNameGenerator:e.dayHeaderClassNames,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount}}function Td(t,e,n,r,i,s,o=1,a=""){const{dateEnv:l,viewApi:c,options:u}=s;return e?t.map(d=>{const p=ui(d,r,null,n),f=l.format(d,i),b=Object.assign(Object.assign({},p),{date:l.toDate(d),view:c,text:f}),A=u.navLinks&&!p.isDisabled;return{key:a+d.toUTCString(),renderProps:b,attrs:{"data-date":p.isDisabled?void 0:ri(d)},innerAttrs:A?dn(s,d):{},colSpan:o,isNavLink:A,className:Qt(p)}}):t.map(d=>{const p=d.getUTCDay(),f=W(Dd,p),b={dow:p,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},A=l.format(f,i),y=Object.assign(Object.assign({},b),{date:d,view:c,text:A});return{key:a+String(p),renderProps:y,innerAttrs:{"aria-label":l.format(f,Sd)},colSpan:o,className:Qt(b)}})}function ue(t){return Ya(t)+":"+t.start+(t.standinFor?":standin":t.isSlice?":slice":"")}function Xe(t,e){const n=[];for(let r=0;r<e;r++)n[r]=[];for(const r of t)n[r.row].push(r);return n}function Rr(t,e){const n=[];if(t){for(let r=0;r<e;r++)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(const r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r++)n[r]=null;return n}function Tr(t,e){return Object.assign(Object.assign({},t),{start:e,end:e+1,isStart:t.isStart&&t.start===e,isEnd:t.isEnd&&t.end-1===e,standinFor:t})}const Yi=U({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function qi(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.end-t.start===1&&t.isStart&&t.isEnd}class $i extends I{render(){let{props:e}=this;return g(Hl,Object.assign({},e,{className:"fc-daygrid-block-event fc-daygrid-event fc-h-event",defaultTimeFormat:Yi,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.eventRange.def.allDay}))}}class Ji extends I{render(){let{props:e,context:n}=this,{options:r}=n,{eventRange:i}=e,s=r.eventTimeFormat||Yi,o=Ai(s,i,void 0,void 0,e.isStart,e.isEnd,n,!0,e.defaultDisplayEventEnd),a=Ei(i,n);return g(hn,Object.assign({},e,{tag:a?"a":"div",attrs:a,className:"fc-daygrid-dot-event fc-daygrid-event",defaultGenerator:kd,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function kd(t){return g(B,null,g("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title"},t.event.title||g(B,null," ")))}class Md extends I{render(){let{props:e}=this;return g(Ql,{className:k("fc-daygrid-more-link",e.isBlock?"fc-daygrid-more-link-block":"fc-daygrid-more-link-button"),dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,segs:e.segs,hiddenSegs:e.hiddenSegs,alignElRef:e.alignElRef,alignParentTop:e.alignParentTop,dateSpanProps:e.dateSpanProps,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return g(B,null,e.segs.map(r=>{let{eventRange:i}=r,{instanceId:s}=i.instance;return g("div",{key:s,style:{visibility:n[s]?"hidden":""}},qi(r)?g(Ji,Object.assign({eventRange:i,isStart:r.isStart,isEnd:r.isEnd,isDragging:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},Ie(i,e.todayRange))):g($i,Object.assign({eventRange:i,isStart:r.isStart,isEnd:r.isEnd,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},Ie(i,e.todayRange))))}))}})}}class Od extends yt{constructor(){super(...arguments),this.rootElRef=ne(),this.bodyElRef=ne()}render(){let{props:e,context:n}=this,{options:r,dateEnv:i}=n;const s=e.showDayNumber&&Id(e.date,e.dateProfile.currentRange,i);return g(Ni,{tag:"div",className:k(e.className,"fc-daygrid-day fc-flex-col",e.borderStart&&"fc-border-s",e.width!=null?"":"fc-liquid"),attrs:Object.assign(Object.assign({},e.attrs),{role:"gridcell"}),style:{width:e.width},elRef:this.rootElRef,renderProps:e.renderProps,defaultGenerator:xd,date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,isMonthStart:s},(o,a)=>g(B,null,!a.isDisabled&&(e.showDayNumber||Pi(r))&&g("div",{className:"fc-daygrid-day-header"},g(o,{tag:"a",attrs:dn(n,e.date),className:k("fc-daygrid-day-number",s&&"fc-daygrid-month-start")})),g("div",{className:k("fc-daygrid-day-body",e.isTall&&"fc-daygrid-day-body-tall",e.fgLiquidHeight?"fc-liquid":"fc-grow"),ref:this.bodyElRef},g("div",{className:"fc-daygrid-day-events",style:{height:e.fgHeight}},e.fg),g(Md,{isBlock:e.isCompact,allDayDate:e.date,segs:e.segs,hiddenSegs:e.hiddenSegs,alignElRef:this.rootElRef,alignParentTop:e.showDayNumber?"[role=row]":".fc-view",dateSpanProps:e.dateSpanProps,dateProfile:e.dateProfile,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange}))))}componentDidMount(){const e=this.bodyElRef.current;this.disconnectBodyHeight=vt(e,(n,r)=>{const{props:i}=this,s=e.getBoundingClientRect(),o=this.rootElRef.current.getBoundingClientRect(),a=s.top-o.top;Fe(this.headerHeight,a)||(this.headerHeight=a,x(i.headerHeightRef,a)),i.fgLiquidHeight&&x(i.mainHeightRef,r)})}componentWillUnmount(){this.disconnectBodyHeight();const{props:e}=this;x(e.headerHeightRef,null),x(e.mainHeightRef,null)}}function xd(t){return t.dayNumberText||g(B,null," ")}function Id(t,e,n){const{start:r,end:i}=e,s=we(i,-1),o=n.getYear(r),a=n.getMonth(r),l=n.getYear(s),c=n.getMonth(s);return!(o===l&&a===c)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Nd(t,e,n,r,i,s=!0,o,a){let l,c,u;o===!0||a===!0?(l=r,u=!0):typeof o=="number"?(c=o,u=!1):typeof a=="number"&&(c=a,u=!0);const d=new Map,p=new Map,f=new Map,b=new Map;let A=new dr(t,m=>e.get(ue(m)),i,l,c,u,s);A.traverseSegs((m,D)=>{It(d,m),f.set(ue(m),D),m.isSlice&&b.set(m.eventRange,!0)});for(const m of A.hiddenSegs)It(p,m);if(b.size){f.clear(),A=new dr(Pd(t,d),m=>e.get(ue(m)),i,l,c,u),A.traverseSegs((m,D)=>{f.set(ue(m),D)});for(const m of A.hiddenSegs)It(p,m)}const y=[],v=[],_=[],E=[];for(let m=0;m<n.length;m++)y.push([]),v.push([]),_.push([]),E.push(0);for(const m of t){const{eventRange:D}=m,w=d.get(D)||[],C=p.get(D)||[],R=b.get(D)||!1;if(_[m.start].push(m),R)for(const N of w)_[N.start].push(N);for(const N of w){for(let q=N.start;q<N.end;q++){const $=Tr(N,q);y[q].push($)}const T=ue(N),V=f.get(T);if(V!=null){const q=e.get(T);for(let $=N.start;$<N.end;$++)E[$]=Math.max(E[$],V+q)}}for(const N of C)for(let T=N.start;T<N.end;T++){const V=Tr(N,T);y[T].push(V),v[T].push(V)}}return[y,v,_,f,E]}function It(t,e){let n=t.get(e.eventRange);n||t.set(e.eventRange,n=[]),n.push(e)}function Pd(t,e){const n=[];for(const r of t)n.push(...e.get(r.eventRange)||[]);return n}function Hd(t,e){let n=new vl(t.renderRange,e);return new bl(n,/year|month|week/.test(t.currentRangeUnit))}function Bd(t,e,n){return n==null?[void 0,void 0]:n/t<e?[e*t,e]:[n,void 0]}function Ld(t,e,n,r=0){let i=0;for(const s of e){const o=s[0].date,a=s[s.length-1].date,l=o.toISOString();if(t>=o&&t<=a)return i;const c=n.get(l);if(c==null)return;i+=c+r}return i}function kr(t,e,n,r){let i,s;if(e!=null)i=t.start*e,s=(n-t.end)*e;else{const o=1/n;i=Kn(t.start*o),s=Kn(1-t.end*o)}return r?{right:i,left:s}:{left:i,right:s}}function Ud(t,e,n,r,i){const s=n??e/r,o=Math.floor(t/s),a=i?r-o-1:o,l=o*s,c=l+s;return{col:a,left:l,right:c}}function Fd(t,e,n){let r=0,i=0,s=0;for(const o of e){const a=o[0].key;if(i=s,s=i+n.get(a),t<s)break;r++}return{row:r,top:i,bottom:s}}function zd(t,e){return t.querySelectorAll(":scope > [role=row]")[e]}function Wd(t,e){return t.querySelectorAll(":scope > [role=gridcell]")[e]}function jd(t,e,n){return t||Vd(e,n)}function Vd(t,e){return!t||e>10?U({weekday:"short"}):e>1?U({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):U({weekday:"long"})}class Gd extends z{constructor(){super(...arguments),this.rootElRef=ne()}render(){const{props:e}=this;return g("div",{className:k(e.className,"fc-abs"),style:e.style,ref:this.rootElRef},e.children)}componentDidMount(){const e=this.rootElRef.current;this.disconnectHeight=bt(e,n=>{x(this.props.heightRef,n)})}componentWillUnmount(){this.disconnectHeight(),x(this.props.heightRef,null)}}const Qd=U({week:"narrow"});class Zd extends I{constructor(){super(...arguments),this.headerHeightRefMap=new _e(()=>{xe(this.handleSegPositioning)}),this.mainHeightRefMap=new _e(()=>{(this.props.dayMaxEvents===!0||this.props.dayMaxEventRows===!0)&&xe(this.handleSegPositioning)}),this.segHeightRefMap=new _e(()=>{xe(this.handleSegPositioning)}),this.handleRootEl=e=>{this.rootEl=e,x(this.props.rootElRef,e)},this.handleSegPositioning=()=>{this.forceUpdate()}}render(){const{props:e,context:n,headerHeightRefMap:r,mainHeightRefMap:i}=this,{cells:s}=e,{options:o}=n,a=e.cells[0].date,l=e.dayMaxEvents===!0||e.dayMaxEventRows===!0,c=qa(e.fgEventSegs,o.eventOrder),[u,d]=this.computeFgDims(),[p,f,b,A,y]=Nd(c,this.segHeightRefMap.current,s,l?d:void 0,o.eventOrderStrict,o.eventSlicing,e.dayMaxEvents,e.dayMaxEventRows),v=[];if(u!=null){let D=0;for(const w of s){const C=r.current.get(w.key),R=u-C;v.push(y[D++]+R)}}const _=this.getHighlightSegs(),E=this.getMirrorSegs(),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return g("div",{role:"row",className:k("fc-flex-row fc-rel",e.className),style:{minHeight:e.minHeight},ref:this.handleRootEl},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(_,"highlight"),g("div",{className:"fc-flex-row fc-liquid fc-rel"},e.cells.map((D,w)=>{const C=this.renderFgSegs(u,b[w],A,e.todayRange,m);return g(Od,{key:D.key,dateProfile:e.dateProfile,todayRange:e.todayRange,date:D.date,showDayNumber:e.showDayNumbers,isCompact:e.isCompact,isTall:e.isTall,borderStart:!!w,segs:p[w],hiddenSegs:f[w],fgLiquidHeight:l,fg:g(B,null,C),eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,renderProps:D.renderProps,dateSpanProps:D.dateSpanProps,attrs:D.attrs,className:D.className,fgHeight:v[w],width:e.colWidth,headerHeightRef:r.createRef(D.key),mainHeightRef:i.createRef(D.key)})})),e.showWeekNumbers&&g(jl,{tag:"a",attrs:dn(n,a,"week"),className:"fc-daygrid-week-number",date:a,defaultFormat:Qd}),this.renderFgSegs(u,E,A,e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1))}renderFgSegs(e,n,r,i,s,o,a,l){var c;const{props:u,context:d,segHeightRefMap:p}=this,{isRtl:f}=d,{colWidth:b,eventSelection:A}=u,y=u.cells.length,v=u.cells.length===1,_=o||a||l,E=[];for(const m of n){const D=ue(m),{standinFor:w,eventRange:C}=m,{instanceId:R}=C.instance;if(w)continue;const{left:N,right:T}=kr(m,b,y,f),V=(c=r.get(w?ue(w):D))!==null&&c!==void 0?c:_?0:void 0,q=e!=null&&V!=null?e+V:void 0,$=w||s[R]||q==null;E.push(g(Gd,{key:D,className:m.start?"fc-border-transparent fc-border-s":"",style:{visibility:$?"hidden":"",top:q,left:N,right:T},heightRef:!w&&!_?p.createRef(D):null},qi(m)?g(Ji,Object.assign({eventRange:C,isStart:m.isStart,isEnd:m.isEnd,isDragging:o,isSelected:R===A,defaultDisplayEventEnd:v},Ie(C,i))):g($i,Object.assign({eventRange:C,isStart:m.isStart,isEnd:m.isEnd,isDragging:o,isResizing:a,isDateSelecting:l,isSelected:R===A,defaultDisplayEventEnd:v},Ie(C,i)))))}return E}renderFillSegs(e,n){const{props:r,context:i}=this,{isRtl:s}=i,{todayRange:o,colWidth:a}=r,l=r.cells.length,c=[];for(const u of e){const d=Xa(u.eventRange),{left:p,right:f}=kr(u,a,l,s),b=!u.standinFor;c.push(g("div",{key:d,className:"fc-fill-y",style:{visibility:b?"":"hidden",left:p,right:f}},n==="bg-event"?g(Fl,Object.assign({eventRange:u.eventRange,isStart:u.isStart,isEnd:u.isEnd},Ie(u.eventRange,o))):Wl(n)))}return g(B,{},...c)}componentDidMount(){const{rootEl:e}=this;this.disconnectHeight=bt(e,n=>{x(this.props.heightRef,n)})}componentWillUnmount(){this.disconnectHeight(),x(this.props.heightRef,null)}computeFgDims(){const{cells:e}=this.props,n=this.headerHeightRefMap.current,r=this.mainHeightRefMap.current;let i,s;for(const o of e){const a=n.get(o.key),l=r.get(o.key);if(a!=null&&((i===void 0||a>i)&&(i=a),l!=null)){const c=a+l;(s===void 0||c<s)&&(s=c)}}return[i,s!=null&&i!=null?s-i:void 0]}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}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}}class Ki extends yt{constructor(){super(...arguments),this.splitBusinessHourSegs=M(Xe),this.splitBgEventSegs=M(Xe),this.splitFgEventSegs=M(Xe),this.splitDateSelectionSegs=M(Xe),this.splitEventDrag=M(Rr),this.splitEventResize=M(Rr),this.rowHeightRefMap=new _e((e,n)=>{const{rowHeightRefMap:r}=this.props;r&&r.handleValue(e,n)}),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n,rowHeightRefMap:r}=this,{options:i}=n,s=e.cellRows.length,o=this.splitFgEventSegs(e.fgEventSegs,s),a=this.splitBgEventSegs(e.bgEventSegs,s),l=this.splitBusinessHourSegs(e.businessHourSegs,s),c=this.splitDateSelectionSegs(e.dateSelectionSegs,s),u=this.splitEventDrag(e.eventDrag,s),d=this.splitEventResize(e.eventResize,s),p=Re(i),f=!e.forPrint&&!p,[b,A]=qd(e.visibleWidth,s,p,e.forPrint,i);return g("div",{className:k(!e.forPrint&&"fc-flex-col",e.className),style:{width:e.width},ref:this.handleRootEl},e.cellRows.map((y,v)=>g(Zd,{key:y[0].key,dateProfile:e.dateProfile,todayRange:e.todayRange,cells:y,showDayNumbers:s>1,showWeekNumbers:i.weekNumbers,forPrint:e.forPrint,isCompact:A,className:k(f&&"fc-grow fc-basis0",s>1&&"fc-break-inside-avoid",v<s-1&&"fc-border-b"),fgEventSegs:o[v],bgEventSegs:a[v].filter(Yd),businessHourSegs:l[v],dateSelectionSegs:c[v],eventSelection:e.eventSelection,eventDrag:u[v],eventResize:d[v],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,colWidth:e.colWidth,minHeight:b,heightRef:r.createRef(y[0].key)})))}componentDidMount(){this.disconnectWidth=ka(this.rootEl,e=>{this.setState({width:e})})}componentWillUnmount(){this.disconnectWidth()}queryHit(e,n,r){const{props:i,context:s}=this,o=i.cellRows[0].length,{col:a,left:l,right:c}=Ud(e,r,i.colWidth,o,s.isRtl),{row:u,top:d,bottom:p}=Fd(n,i.cellRows,this.rowHeightRefMap.current),f=i.cellRows[u][a],b=f.date,A=W(b,1);return{dateProfile:i.dateProfile,dateSpan:Object.assign({range:{start:b,end:A},allDay:!0},f.dateSpanProps),dayEl:Wd(zd(this.rootEl,u),a),rect:{left:l,right:c,top:d,bottom:p},layer:0}}}function Yd(t){return t.eventRange.def.allDay}function qd(t,e,n,r,i){if(t!=null){const s=t/i.aspectRatio/6;return[r?"6em":e>6||n?s:void 0,s<70]}return[void 0,!1]}class $d extends I{constructor(){super(...arguments),this.handleInnerEl=e=>{this.disconectInnerHeight&&(this.disconectInnerHeight(),this.disconectInnerHeight=void 0),e?this.disconectInnerHeight=bt(e,n=>{x(this.props.innerHeightRef,n)}):x(this.props.innerHeightRef,null)}}render(){const{props:e}=this,{renderConfig:n,dataConfig:r}=e;return g(se,{tag:"div",attrs:r.attrs,className:k(r.className,"fc-header-cell fc-cell fc-flex-col fc-align-center",e.borderStart&&"fc-border-s",!e.isSticky&&"fc-crop",e.colWidth==null&&"fc-liquid"),style:{width:e.colWidth!=null?e.colWidth*(r.colSpan||1):void 0},renderProps:r.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:Ii,classNameGenerator:r.renderProps.isDisabled?void 0:n.classNameGenerator,didMount:n.didMount,willUnmount:n.willUnmount},i=>!r.renderProps.isDisabled&&g(i,{tag:r.isNavLink?"a":"div",attrs:r.innerAttrs,className:k("fc-cell-inner fc-flex-col fc-padding-sm",e.isSticky&&"fc-sticky-s"),elRef:this.handleInnerEl}))}}class Jd extends I{constructor(){super(...arguments),this.innerHeightRefMap=new _e(()=>{xe(this.handleInnerHeights)}),this.handleInnerHeights=()=>{const e=this.innerHeightRefMap.current;let n=0;for(const r of e.values())n=Math.max(n,r);this.currentInnerHeight!==n&&(this.currentInnerHeight=n,x(this.props.innerHeightRef,n))}}render(){const{props:e}=this;return g("div",{role:"row",className:k("fc-flex-row fc-content-box",e.className),style:{height:e.height}},e.dataConfigs.map((n,r)=>g($d,{key:n.key,renderConfig:e.renderConfig,dataConfig:n,isSticky:e.isSticky,borderStart:!!r,colWidth:e.colWidth,innerHeightRef:e.innerHeightRef})))}}class Xi extends I{render(){const{props:e}=this;return g("div",{className:k(e.className,"fc-flex-col",e.width==null&&"fc-liquid"),style:{width:e.width}},e.headerTiers.map((n,r)=>g(Jd,Object.assign({},n,{key:r,className:r?"fc-border-t":"",colWidth:e.colWidth}))))}}class Kd extends I{constructor(){super(...arguments),this.handleScroller=e=>{x(this.props.scrollerRef,e)},this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleEndScrollbarWidth=e=>{this.setState({endScrollbarWidth:e})}}render(){const{props:e,state:n,context:r}=this,{options:i}=r,s=!e.forPrint&&!Re(i),o=!e.forPrint&&ki(i);return g(B,null,i.dayHeaders&&g("div",{className:k(e.forPrint?"fc-print-header":"fc-flex-row","fc-border-b")},g(Xi,{headerTiers:e.headerTiers,className:k("fc-daygrid-header",o&&"fc-table-header-sticky")}),!!n.endScrollbarWidth&&g("div",{className:"fc-border-s fc-filler",style:{minWidth:n.endScrollbarWidth}})),g(pt,{vertical:s,clientWidthRef:this.handleClientWidth,endScrollbarWidthRef:this.handleEndScrollbarWidth,className:k("fc-daygrid-body",!e.forPrint&&"fc-flex-col",s&&"fc-liquid"),ref:this.handleScroller},g(Ki,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:"fc-grow",dayMaxEvents:e.forPrint?void 0:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,visibleWidth:n.clientWidth!=null&&n.endScrollbarWidth!=null?n.clientWidth+n.endScrollbarWidth:void 0,rowHeightRefMap:e.rowHeightRefMap})))}}class Xd extends I{constructor(){super(...arguments),this.headerScrollerRef=ne(),this.bodyScrollerRef=ne(),this.footerScrollerRef=ne(),this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleEndScrollbarWidth=e=>{this.setState({endScrollbarWidth:e})}}render(){const{props:e,state:n,context:r}=this,{options:i}=r,s=!e.forPrint&&!Re(i),o=!e.forPrint&&ki(i),a=!e.forPrint&&xl(i),l=e.cellRows[0].length,[c,u]=Bd(l,e.dayMinWidth,n.clientWidth);return g(B,null,i.dayHeaders&&g("div",{className:"fc-print-header"},g(pt,{horizontal:!0,hideScrollbars:!0,className:k("fc-daygrid-header fc-flex-row fc-border-b",o&&"fc-table-header-sticky"),ref:this.headerScrollerRef},g(Xi,{headerTiers:e.headerTiers,colWidth:u,width:c}),!!n.endScrollbarWidth&&g("div",{className:"fc-border-s fc-filler",style:{minWidth:n.endScrollbarWidth}}))),g(pt,{vertical:s,horizontal:!0,hideScrollbars:a||e.forPrint,className:k("fc-daygrid-body",!e.forPrint&&"fc-flex-col",s&&"fc-liquid"),ref:this.bodyScrollerRef,clientWidthRef:this.handleClientWidth,endScrollbarWidthRef:this.handleEndScrollbarWidth},g(Ki,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:"fc-grow",dayMaxEvents:e.forPrint?void 0:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,colWidth:u,width:c,visibleWidth:n.clientWidth!=null&&n.endScrollbarWidth!=null?n.clientWidth+n.endScrollbarWidth:void 0,rowHeightRefMap:e.rowHeightRefMap})),!!a&&g(ec,{canvasWidth:c,scrollerRef:this.footerScrollerRef}))}componentDidMount(){const e=Il(this.context.pluginHooks);this.syncedScroller=new e(!0),x(this.props.scrollerRef,this.syncedScroller),this.updateSyncedScroller()}componentDidUpdate(){this.updateSyncedScroller()}componentWillUnmount(){this.syncedScroller.destroy()}updateSyncedScroller(){this.syncedScroller.handleChildren([this.headerScrollerRef.current,this.bodyScrollerRef.current,this.footerScrollerRef.current])}}class eu extends I{constructor(){super(...arguments),this.scrollerRef=ne(),this.rowHeightRefMap=new _e(()=>{xe(this.updateScrollY)}),this.scrollDate=null,this.updateScrollY=()=>{const e=this.rowHeightRefMap.current,n=this.scrollerRef.current;if(n&&this.scrollDate){let r=Ld(this.scrollDate,this.props.cellRows,e,1);r!=null&&(r&&r++,n.scrollTo({y:r}))}},this.clearScroll=()=>{this.scrollDate=null}}render(){const{props:e,context:n}=this,{options:r}=n,i=Object.assign(Object.assign({},e),{scrollerRef:this.scrollerRef,rowHeightRefMap:this.rowHeightRefMap});return g(Yl,{viewSpec:n.viewSpec,className:k(e.className,"fc-print-root fc-border")},r.dayMinWidth?g(Xd,Object.assign({},i,{dayMinWidth:r.dayMinWidth})):g(Kd,Object.assign({},i)))}componentDidMount(){this.resetScroll(),this.scrollerRef.current.addScrollEndListener(this.clearScroll)}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset&&this.resetScroll()}componentWillUnmount(){this.scrollerRef.current.removeScrollEndListener(this.clearScroll)}resetScroll(){this.scrollDate=this.props.dateProfile.currentDate,this.updateScrollY(),this.scrollerRef.current.scrollTo({x:0})}}class tu extends I{constructor(){super(...arguments),this.buildDayTableModel=M(Hd),this.buildDateRowConfigs=M(wd),this.createDayHeaderFormatter=M(jd),this.slicer=new _d}render(){const{props:e,context:n}=this,{options:r}=n,i=this.buildDayTableModel(e.dateProfile,n.dateProfileGenerator),s=i.rowCnt===1,o=this.createDayHeaderFormatter(n.options.dayHeaderFormat,s,i.colCnt),a=this.slicer.sliceProps(e,e.dateProfile,r.nextDayThreshold,n,i);return g(Mi,{unit:"day"},(l,c)=>{const u=this.buildDateRowConfigs(i.headerDates,s,e.dateProfile,c,o,n);return g(eu,{dateProfile:e.dateProfile,todayRange:c,cellRows:i.cellRows,forPrint:e.forPrint,className:"fc-daygrid",headerTiers:u,fgEventSegs:a.fgEventSegs,bgEventSegs:a.bgEventSegs,businessHourSegs:a.businessHourSegs,dateSelectionSegs:a.dateSelectionSegs,eventDrag:a.eventDrag,eventResize:a.eventResize,eventSelection:a.eventSelection})})}}class nu extends mi{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return ru({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function ru(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=Wn(s,1))),t.fixedWeekCount){let o=e.startOfWeek(e.startOfMonth(W(n.end,-1))),a=Math.ceil(To(o,i));i=Wn(i,6-a)}return{start:r,end:i}}var iu=":root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc-daygrid-day-header{display:flex;flex-direction:row-reverse}.fc-day-other .fc-daygrid-day-header{opacity:.3}.fc-daygrid-day-number{padding:4px;position:relative}.fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc-daygrid-day-body{display:flex;flex-direction:column;margin-bottom:1px}.fc-daygrid-day-body-tall{margin-bottom:1em;min-height:2em}.fc-daygrid-day-body:only-child{margin-top:2px}.fc-daygrid-more-link{border-radius:3px;cursor:pointer;font-size:var(--fc-small-font-size);margin:0 2px 1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap}.fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc-daygrid-more-link-button{align-self:flex-start}.fc-daygrid-more-link-block{border:1px solid var(--fc-event-border-color);padding:1px}.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}.fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);margin-bottom:1px}.fc-media-print .fc-daygrid-event{overflow:hidden!important;white-space:nowrap!important}.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-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}.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-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;direction:row;display:flex;padding:2px 0;position:relative;z-index:2}.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-daygrid-dot-event .fc-event-time,.fc-daygrid-dot-event .fc-event-title{overflow:hidden;white-space:nowrap}.fc-daygrid-dot-event .fc-event-title{flex-basis:0;flex-grow:1;font-weight:700;min-height:0;min-width:0}";Yr(iu);var su=me({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:tu,dateProfileGeneratorClass:nu},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}}}}),ou={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(t){return t==="Dia"?"Hoje":(t==="Semana"?"Esta":"Este")+" "+t.toLocaleLowerCase()}},viewHint(t){return"Visualizar "+(t==="Semana"?"a":"o")+" "+t.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(t){return"mais +"+t},moreLinkHint(t){return`Mostrar mais ${t} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const au={class:"base-grid"},lu={class:"col-span-12"},cu={class:"col-span-12"},du={class:"base-grid"},uu={class:"col-span-4"},fu={class:"col-span-4"},hu={class:"col-span-2"},pu={class:"col-span-2"},gu={class:"col-span-12"},mu={key:0},vu={key:1},bu={class:"mt-8"},Iu=Kt({__name:"index",setup(t){const e=ks(),n=J([{label:"Obrigações contratuais",icon:"pi pi-calendar-clock"},{label:"Calendário",icon:"pi pi-calendar"}]),r=J({}),i=J([]),s=J([]),o=J([]),a=J([{id:"P",descricao:"Pendente"},{id:"A",descricao:"Em andamento"},{id:"E",descricao:"Encerrado"}]),l=J([{id:"A",descricao:"Anual"},{id:"T",descricao:"Semestral"},{id:"M",descricao:"Mensal"},{id:"S",descricao:"Semestral"},{id:"D",descricao:"Diario"},{id:"U",descricao:"Única"}]),c=vn("popover"),u=bn({status:"",dataPrevista:"",descricao:"",tipo:"",idCorrespondencia:0,assunto:""}),d=bn([{title:"Obrigação do dia",total:0,color:"#ffff00"},{title:"Obrigação incluída em correspondência",total:0,color:"#5f9ea0"},{title:"Obrigação em aberto, pendente",total:0,color:"#808080"},{title:"Obrigação em atraso",total:0,color:"#ff0000"},{title:"Obrigação encerrada com atraso",total:0,color:"#ffa500"},{title:"Obrigação encerrada no prazo",total:0,color:"#008000"}]),p=J({plugins:[su],initialView:"dayGridMonth",weekends:!1,locale:ou,events:[],datesSet:_,eventMouseEnter(E){u.status=E.event.extendedProps.status,u.dataPrevista=e(E.event.start).format("DD/MM/YYYY"),u.descricao=E.event.extendedProps.descricao,u.tipo=E.event.extendedProps.tipo,c.value.show(E.jsEvent,E.el)},eventMouseLeave(){c.value.hide(),u.status="",u.dataPrevista="",u.descricao="",u.tipo="",u.idCorrespondencia=0,u.assunto=""}}),f=vn("calendar"),b=bs();async function A(){try{const E=await _t.empresa.findAreas(b.empresaAtual.sigla);i.value=E}catch(E){console.error("findAreasEmpresa():",E)}}async function y(){console.log("usuarioStore.empresaAtual!.sigla",b.empresaAtual);try{const E=await _t.cadastros.tipoDocumento.findByClasse(b.empresaAtual.sigla,"OBR");o.value=E}catch(E){console.error("findTipoDocumentos():",E)}}async function v(){let E="";if(s.value.length>0)for(const C of s.value)E!==""&&(E+=","),E+=C.id;const m=f.value.getApi(),D=m.getCurrentData();r.value.datInicial=e(D.dateProfile.currentRange.start).format("YYYY-MM-DD"),r.value.datFinal=e(D.dateProfile.currentRange.end).format("YYYY-MM-DD");const w=await _t.calendario.findEventos(b.empresaAtual.sigla,"OBR",r.value.datInicial,r.value.datFinal,r.value.idClassificacao,E,r.value.status,r.value.periodiciadade);w.forEach(C=>{console.log("loadCalendario()=>row",C);const R=d.find(N=>N.title===C.statusPrazoDesc);R&&R.total++,m.addEvent({id:C.id,title:C.titulo,start:e(C.data).format("YYYY-MM-DD"),url:`/obrigacoes/${C.id}/lancamento/${C.sequencia}`,extendedProps:{status:C.statusDesc,descricao:C.descricao,tipo:C.tipoDocumento},color:R==null?void 0:R.color})}),console.log("loadCalendario()=>eventos",w)}async function _(){v()}return ys(()=>{y(),A()}),(E,m)=>{const D=Ts,w=Rs,C=Cs,R=ws,N=Or;return K(),ce("div",au,[P("div",lu,[Q(w,null,{content:ye(()=>[Q(D,{model:H(n)},null,8,["model"])]),_:1})]),P("div",cu,[Q(w,null,{content:ye(()=>[P("div",du,[P("div",uu,[m[4]||(m[4]=P("label",{for:"area",class:"block mb-2"},"Área:",-1)),Q(C,{modelValue:H(s),"onUpdate:modelValue":m[0]||(m[0]=T=>As(s)?s.value=T:null),options:H(i),"option-label":"descricao",filter:"",placeholder:"Todas","max-selected-labels":3,fluid:"",onChange:v},null,8,["modelValue","options"])]),P("div",fu,[m[5]||(m[5]=P("label",{for:"classificacao",class:"block mb-2"}," Classificação: ",-1)),Q(R,{id:"classificacao",modelValue:H(r).idClassificacao,"onUpdate:modelValue":m[1]||(m[1]=T=>H(r).idClassificacao=T),options:H(o),"option-value":"id.idTipoDocumento","option-label":"descricao",fluid:"",placeholder:"Selecione...",onChange:v},null,8,["modelValue","options"])]),P("div",hu,[m[6]||(m[6]=P("label",{for:"status",class:"block mb-2"},"Status:",-1)),Q(R,{id:"status",modelValue:H(r).status,"onUpdate:modelValue":m[2]||(m[2]=T=>H(r).status=T),options:H(a),"option-value":"id","option-label":"descricao",fluid:"",placeholder:"Selecione...",onChange:v},null,8,["modelValue","options"])]),P("div",pu,[m[7]||(m[7]=P("label",{for:"periodicidade",class:"block mb-2"}," Periodicidade: ",-1)),Q(R,{id:"periodicidade",modelValue:H(r).periodiciadade,"onUpdate:modelValue":m[3]||(m[3]=T=>H(r).periodiciadade=T),options:H(l),"option-value":"id","option-label":"descricao",fluid:"",placeholder:"Selecione...",onChange:v},null,8,["modelValue","options"])])])]),_:1})]),P("div",gu,[Q(w,null,{content:ye(()=>[Q(N,{ref_key:"popover",ref:c},{default:ye(()=>[P("div",null,[P("p",null,[m[8]||(m[8]=P("i",{class:"pi pi-clock mr-1",style:{"font-size":"1rem"}},null,-1)),Te(" "+ve(H(u).status),1)]),P("p",null,[m[9]||(m[9]=P("b",null,"Data Prevista:",-1)),Te(" "+ve(H(u).dataPrevista),1)]),H(u).descricao?(K(),ce("p",mu,[m[10]||(m[10]=P("b",null,"Descrição:",-1)),Te(" "+ve(H(u).descricao),1)])):Nt("",!0),H(u).tipo?(K(),ce("p",vu,[m[11]||(m[11]=P("b",null,"Tipo:",-1)),Te(" "+ve(H(u).tipo),1)])):Nt("",!0)])]),_:1},512),Q(H(md),{ref_key:"calendar",ref:f,options:H(p)},null,8,["options"]),P("div",bu,[(K(!0),ce(Mr,null,Es(H(d),T=>(K(),ce("div",{key:T.color,class:"mb-2"},[P("span",{class:"inline-flex h-8 w-8 items-center justify-center rounded-full",style:_s({backgroundColor:T.color})},ve(T.total),5),Te(" "+ve(T.title),1)]))),128))])]),_:1})])])}}});export{Iu as default};
