sigpro 2.0.7 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +28 -29
- package/dist/sigpro.calendar.js +1 -0
- package/dist/sigpro.chart.js +20 -0
- package/dist/sigpro.editor.js +1 -1
- package/dist/sigpro.grid.js +58 -55
- package/dist/sigpro.js +1 -1
- package/dist/sigpro.pdf.js +119 -0
- package/dist/sigpro.ui.js +1 -1
- package/dist/sigpro.utils.js +1 -0
- package/dist/sigpro.vite.js +7 -7
- package/package.json +41 -7
- package/sigpro.d.ts +25 -86
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Ji;function ur(e,t){if(Ji)try{Ji(e,t)}catch{}else console.error("[sigpro] error in",t,e)}function Mo({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:s,checkDirty:a,shallowPropagate:l};function r(c,d,u){let g=d.depsTail;if(g!==void 0&&g.dep===c)return;let f=g!==void 0?g.nextDep:d.deps;if(f!==void 0&&f.dep===c){f.version=u,d.depsTail=f;return}let p=c.subsTail;if(p!==void 0&&p.version===u&&p.sub===d)return;let m=d.depsTail=c.subsTail={version:u,dep:c,sub:d,prevDep:g,nextDep:f,prevSub:p,nextSub:void 0};if(f!==void 0)f.prevDep=m;if(g!==void 0)g.nextDep=m;else d.deps=m;if(p!==void 0)p.nextSub=m;else c.subs=m}function i(c,d=c.sub){let{dep:u,prevDep:g,nextDep:f,nextSub:p,prevSub:m}=c;if(f!==void 0)f.prevDep=g;else d.depsTail=g;if(g!==void 0)g.nextDep=f;else d.deps=f;if(p!==void 0)p.prevSub=m;else u.subsTail=m;if(m!==void 0)m.nextSub=p;else if((u.subs=p)===void 0)n(u);return f}function s(c,d){let u=c.nextSub,g;e:do{let f=c.sub,p=f.flags;if(!(p&60)){if(f.flags=p|32,d)f.flags|=8}else if(!(p&12))p=0;else if(!(p&4))f.flags=p&-9|32;else if(!(p&48)&&o(c,f))f.flags=p|8|32,p&=1;else p=0;if(p&2)t(f);if(p&1){let m=f.subs;if(m!==void 0){let b=(c=m).nextSub;if(b!==void 0)g={value:u,prev:g},u=b;continue}}if((c=u)!==void 0){u=c.nextSub;continue}while(g!==void 0)if(c=g.value,g=g.prev,c!==void 0){u=c.nextSub;continue e}break}while(!0)}function a(c,d){let u,g=0,f=!1;e:do{let p=c.dep,m=p.flags;if(d.flags&16)f=!0;else if((m&17)===17){let b=p.subs;if(e(p)){if(b.nextSub!==void 0)l(b);f=!0}}else if((m&33)===33){u={value:c,prev:u},c=p.deps,d=p,++g;continue}if(!f){let b=c.nextDep;if(b!==void 0){c=b;continue}}while(g--){if(c=u.value,u=u.prev,f){let y=d.subs;if(e(d)){if(y.nextSub!==void 0)l(y);d=c.sub;continue}f=!1}else d.flags&=-33;d=c.sub;let b=c.nextDep;if(b!==void 0){c=b;continue e}}return f&&!!d.flags}while(!0)}function l(c){do{let d=c.sub,u=d.flags;if((u&48)===32){if(d.flags=u|16,(u&6)===2)t(d)}}while((c=c.nextSub)!==void 0)}function o(c,d){let u=d.depsTail;while(u!==void 0){if(u===c)return!0;u=u.prevDep}return!1}}var fr=0,wt=0,ko=0,je=0,At=0,j,oe=[],{link:hr,unlink:Ct,propagate:Io,checkDirty:No,shallowPropagate:Oo}=Mo({update(e){if("getter"in e)return Po(e);if("currentValue"in e)return es(e);return e.flags=1,!0},notify(e){let t=At,n=t;do if(oe[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);At=t;while(n<--t){let r=oe[n];oe[n++]=oe[t],oe[t]=r}},unwatched(e){if("getter"in e){if(e.depsTail!==void 0)e.flags=17,un(e)}else if("currentValue"in e);else if("fn"in e)ns.call(e);else gr.call(e)}});function dn(e){return Lo.bind({currentValue:e,pendingValue:e,subs:void 0,subsTail:void 0,flags:1})}function re(e){if(typeof e!=="function")return console.error("[sigpro] effect() expects a function, got",typeof e),()=>{};let t={fn:e,cleanup:void 0,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:6},n=j;if(j=t,n!==void 0)hr(t,n,0),n.flags|=64;try{++wt;let r=t.fn();t.cleanup=typeof r==="function"?r:void 0}catch(r){t.flags=0,un(t),ur(r,t.fn)}finally{--wt,j=n,t.flags&=-5}return ns.bind(t)}function Ki(e){let t={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:1},n=j;if(j=t,n!==void 0)hr(t,n,0),n.flags|=64;try{e()}finally{j=n}return gr.bind(t)}function Po(e){if(e.flags&64){let n=e.depsTail;while(n!==void 0){let r=n.prevDep,i=n.dep;if(!("getter"in i)&&!("currentValue"in i))Ct(n,e);n=r}}e.depsTail=void 0,e.flags=5;let t=j;j=e;try{++fr;let n=e.value;return!Object.is(n,e.value=e.getter(n))}finally{j=t,e.flags&=-5,rs(e)}}function es(e){return e.flags=1,!Object.is(e.currentValue,e.currentValue=e.pendingValue)}function Ho(e){let t=e.flags;if(t&16||t&32&&No(e.deps,e)){if(t&64){let r=e.depsTail;while(r!==void 0){let i=r.prevDep,s=r.dep;if(!("getter"in s)&&!("currentValue"in s))Ct(r,e);r=i}}if(e.cleanup){if(ts(e),!e.flags)return}e.depsTail=void 0,e.flags=6;let n=j;j=e;try{++fr,++wt;let r=e.fn();e.cleanup=typeof r==="function"?r:void 0}catch(r){e.flags=0,un(e),ur(r,e.fn)}finally{--wt,j=n,e.flags&=-5,rs(e)}}else if(e.deps!==void 0)e.flags=2|t&64}function Bo(){try{while(je<At){let e=oe[je];oe[je++]=void 0,Ho(e)}}finally{while(je<At){let e=oe[je];oe[je++]=void 0,e.flags|=10}if(je=0,At=0,oe.length>64)oe.length=64}}function Lo(...e){if(e.length){if(!Object.is(this.pendingValue,this.pendingValue=e[0])){this.flags=17;let t=this.subs;if(t!==void 0){if(Io(t,!!wt),!ko)Bo()}}}else{if(this.flags&16){if(es(this)){let n=this.subs;if(n!==void 0)Oo(n)}}let t=j;if(t!==void 0)hr(this,t,fr);return this.currentValue}}function ts(e){let t=e.cleanup;e.cleanup=void 0;let n=j;j=void 0;try{t()}finally{j=n}}function ns(){if(gr.call(this),this.cleanup)ts(this)}function gr(){this.flags=0,un(this);let e=this.subs;if(e!==void 0)Ct(e)}function un(e){let t=e.depsTail;while(t!==void 0){let n=t.prevDep;Ct(t,e),t=n}}function rs(e){let t=e.depsTail,n=t!==void 0?t.nextDep:e.deps;while(n!==void 0)n=Ct(n,e)}function is(e){let t=j;j=void 0;try{return e()}finally{j=t}}var Ce=typeof document<"u"?document:null,Uo="http://www.w3.org/2000/svg",jo=new Set("svg path circle rect line polyline polygon g defs text textPath tspan use symbol image marker ellipse foreignObject clipPath mask linearGradient radialGradient pattern filter stop animate animateMotion animateTransform view desc metadata title switch feGaussianBlur feOffset feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feImage feMerge feMergeNode feMorphology fePointLight feSpecularLighting feSpotLight feTile feTurbulence".split(" ")),Fo=new Set(["allowFullscreen","async","autofocus","autoplay","checked","controls","defer","disabled","formNoValidate","hidden","inert","loop","multiple","muted","noValidate","open","playsInline","readOnly","required","reversed","selected"]);function on(e,t,n,r){let i=t.toLowerCase();if(i==="innerhtml"||i==="outerhtml"||i==="srcdoc")return;if(i.startsWith("on")&&n!=null&&n!==!1)return;if(/^(href|src|action|formaction|poster|data|xlink:href)$/i.test(t)&&n!=null&&n!==!1){if(typeof n!=="string")return;try{let s=new URL(n,"https://placeholder.invalid/").protocol,a=s==="data:"&&i==="src"&&/^(img|source|video|audio|track|input)$/i.test(e.tagName)&&/^data:image\/(png|jpe?g|gif|webp|avif|bmp);/i.test(n.trim());if(!/^(https?|mailto|tel|blob):$/.test(s)&&!a)return}catch{return}}if(t==="class"||t==="className"){if(r)if(n==null||n===!1)e.removeAttribute("class");else e.setAttribute("class",n===!0?"":n);else e.className=n??"";return}if(Fo.has(t)&&!r&&t in e){let s=n!=null&&n!==!1;if(e[t]=s,s)e.setAttribute(t,"");else e.removeAttribute(t);return}if(n==null||n===!1){if(t==="style")e._lastStyle=void 0;e.removeAttribute(t);return}if(t==="style"){let s=e._lastStyle;if(typeof n==="string"){if(s!==void 0)e.removeAttribute("style"),e._lastStyle=void 0;e.setAttribute("style",n);return}if(typeof n==="object"){if(s){for(let a in s)if(!(a in n))if(a.startsWith("--"))e.style.removeProperty(a);else e.style[a]=""}for(let a in n){let l=n[a];if(a.startsWith("--"))if(l==null||l===!1)e.style.removeProperty(a);else e.style.setProperty(a,String(l));else e.style[a]=l==null||l===!1?"":String(l)}e._lastStyle=n;return}}if(r){e.setAttribute(t,n===!0?"":n);return}if(t in e&&typeof e[t]!=="function")e[t]=n;else e.setAttribute(t,n===!0?"":n)}function ss(e){let t=[e];while(t.length){let n=t.pop();if(n._stopScope)n._stopScope(),n._stopScope=null;if(n._cln){for(let i of n._cln)i();n._cln=null}let r=n.childNodes;for(let i=0,s=r.length;i<s;i++)t.push(r[i])}}function cn(e,t={},...n){if(e==null)return console.error("[sigpro] h() called with no tag"),Ce.createComment("invalid tag");if(typeof e==="function"){let l,o=Ki(()=>{try{l=e(t,n)}catch(d){ur(d,e),l=Ce.createComment("error")}}),c=(d)=>{if(d instanceof Node)d._stopScope=o;else if(Array.isArray(d))d.forEach(c)};return c(l),l}if(typeof e!=="string")return console.error("[sigpro] h() tag must be string or function, got",typeof e),Ce.createComment("invalid tag");if(t instanceof Node||Array.isArray(t)||t!==null&&typeof t!=="object")n=[t,...n],t={};let r=jo.has(e),i=r?Ce.createElementNS(Uo,e):Ce.createElement(e),s;for(let l of Object.keys(t||{})){let o=t[l];if(l==="ref"){if(typeof o==="function")o(i);else if(o!=null&&typeof o==="object")o.current=i;continue}if(e==="select"&&l==="value"){s=o;continue}if(l.startsWith("on")&&typeof o==="function"){let c=l.slice(2).toLowerCase();i.addEventListener(c,o),(i._cln||(i._cln=[])).push(()=>i.removeEventListener(c,o))}else if(l.startsWith("on")&&o!=null&&o!==!1)console.error(`[sigpro] "${l}" expects a function, got ${typeof o}`);else if(typeof o==="function")re(()=>on(i,l,o(),r));else on(i,l,o,r)}if(e==="a"&&i.target==="_blank"&&!i.rel)i.rel="noopener noreferrer";let a=(l)=>{if(Array.isArray(l)){for(let o of l)a(o);return}if(l==null||l===!1||l===!0)return;if(typeof l==="function"){let o=Ce.createComment("");i.appendChild(o);let c=re(()=>{let d=l(),u=Array.isArray(d)?d:[d],g=[];for(let f of u){if(f==null||f===!1||f===!0)continue;g.push(f instanceof Node?f:Ce.createTextNode(String(f)))}for(let f of g)i.insertBefore(f,o);return()=>{for(let f of g)ss(f),f.remove()}});(i._cln||(i._cln=[])).push(c);return}i.appendChild(l instanceof Node?l:Ce.createTextNode(String(l)))};if(a(n),s!==void 0)if(typeof s==="function")re(()=>on(i,"value",s(),r));else on(i,"value",s,r);return i}var pr=dn(typeof window<"u"?window.location.hash.slice(1)||"/":"/"),zo=dn({});if(typeof window<"u")window.addEventListener("hashchange",()=>{pr(window.location.hash.slice(1)||"/")});var as=new Map,dr=dn(0);if(typeof window<"u")window.__sigpro_hmr_page__=(e,t)=>{as.set(e,t),dr(dr()+1)};var mr=(e)=>()=>{e=[...e].sort((l,o)=>(l.path==="*")-(o.path==="*")||l.path.split("/").filter((c)=>c[0]===":").length-o.path.split("/").filter((c)=>c[0]===":").length);let t=cn("div",{class:"router-hook"}),n,r,i,s=()=>{for(let l of t.childNodes)ss(l);t.replaceChildren()},a=re(()=>{dr();let l=pr(),c=l.split(/[?#]/)[0].split("/").filter(Boolean),d=e.find((f)=>{let p=f.path.split("/").filter(Boolean);return p.length===c.length&&p.every((m,b)=>m[0]===":"||m===c[b])})||e.find((f)=>f.path==="*");if(!d){if(n)n(),n=void 0;s(),r=i=void 0;return}let u={};d.path.split("/").filter(Boolean).forEach((f,p)=>{if(f[0]===":")try{u[f.slice(1)]=decodeURIComponent(c[p])}catch{u[f.slice(1)]=c[p]}});let g=as.get(d.path)??d.component;if(l===r&&g===i)return;if(r=l,i=g,n)n(),n=void 0;s(),zo(u),n=Ki(()=>{let f=typeof g==="function"?cn(g,u):g,p=f==null?[]:Array.isArray(f)?f:[f];t.replaceChildren(...p)})});return t._stopScope=()=>{if(n)n(),n=void 0;a()},t};mr.to=(e)=>{if(typeof window<"u")window.location.hash=e.replace(/^#?\/?/,"#/")};mr.back=()=>{if(typeof window<"u")window.history.back()};mr.path=()=>pr();var Oh=dn("en");var mn,D,us,yr,Je,Fe,ls,fs,hs,hn={},gs=[],Wo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _e(e,t){for(var n in t)e[n]=t[n];return e}function ps(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,i,s,a={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?mn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)a[s]===void 0&&(a[s]=e.defaultProps[s]);return fn(e,a,r,i,null)}function fn(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++us:i};return i==null&&D.vnode!=null&&D.vnode(s),s}function U(){return{current:null}}function R(e){return e.children}function Vo(e,t,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in t||gn(e,s,null,n[s],r);for(s in t)i&&typeof t[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===t[s]||gn(e,s,t[s],n[s],r)}function os(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Wo.test(t)?n:n+"px"}function gn(e,t,n,r,i){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||os(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||os(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?ds:cs,s):e.removeEventListener(t,s?ds:cs,s);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch(a){}typeof n=="function"||(n==null||n===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function cs(e){Je=!0;try{return this.l[e.type+!1](D.event?D.event(e):e)}finally{Je=!1}}function ds(e){Je=!0;try{return this.l[e.type+!0](D.event?D.event(e):e)}finally{Je=!1}}function z(e,t){this.props=e,this.context=t}function _t(e,t){if(t==null)return e.__?_t(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?_t(e):null}function ms(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ms(e)}}function Go(e){Je?setTimeout(e):fs(e)}function vr(e){(!e.__d&&(e.__d=!0)&&Fe.push(e)&&!pn.__r++||ls!==D.debounceRendering)&&((ls=D.debounceRendering)||Go)(pn)}function pn(){var e,t,n,r,i,s,a,l;for(Fe.sort(function(o,c){return o.__v.__b-c.__v.__b});e=Fe.shift();)e.__d&&(t=Fe.length,r=void 0,i=void 0,a=(s=(n=e).__v).__e,(l=n.__P)&&(r=[],(i=_e({},s)).__v=s.__v+1,br(l,s,i,n.__n,l.ownerSVGElement!==void 0,s.__h!=null?[a]:null,r,a==null?_t(s):a,s.__h),Ss(r,s),s.__e!=a&&ms(s)),Fe.length>t&&Fe.sort(function(o,c){return o.__v.__b-c.__v.__b}));pn.__r=0}function vs(e,t,n,r,i,s,a,l,o,c){var d,u,g,f,p,m,b,y=r&&r.__k||gs,E=y.length;for(n.__k=[],d=0;d<t.length;d++)if((f=n.__k[d]=(f=t[d])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?fn(null,f,null,null,f):Array.isArray(f)?fn(R,{children:f},null,null,null):f.__b>0?fn(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(g=y[d])===null||g&&f.key==g.key&&f.type===g.type)y[d]=void 0;else for(u=0;u<E;u++){if((g=y[u])&&f.key==g.key&&f.type===g.type){y[u]=void 0;break}g=null}br(e,f,g=g||hn,i,s,a,l,o,c),p=f.__e,(u=f.ref)&&g.ref!=u&&(b||(b=[]),g.ref&&b.push(g.ref,null,f),b.push(u,f.__c||p,f)),p!=null?(m==null&&(m=p),typeof f.type=="function"&&f.__k===g.__k?f.__d=o=ys(f,o,e):o=bs(e,f,g,y,p,o),typeof n.type=="function"&&(n.__d=o)):o&&g.__e==o&&o.parentNode!=e&&(o=_t(g))}for(n.__e=m,d=E;d--;)y[d]!=null&&(typeof n.type=="function"&&y[d].__e!=null&&y[d].__e==n.__d&&(n.__d=Es(r).nextSibling),As(y[d],y[d]));if(b)for(d=0;d<b.length;d++)Ds(b[d],b[++d],b[++d])}function ys(e,t,n){for(var r,i=e.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=e,t=typeof r.type=="function"?ys(r,t,n):bs(n,r,r,i,r.__e,t));return t}function Rt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Rt(n,t)}):t.push(e)),t}function bs(e,t,n,r,i,s){var a,l,o;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==e)e.appendChild(i),a=null;else{for(l=s,o=0;(l=l.nextSibling)&&o<r.length;o+=1)if(l==i)break e;e.insertBefore(i,s),a=s}return a!==void 0?a:i.nextSibling}function Es(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=Es(n)))return r}return null}function br(e,t,n,r,i,s,a,l,o){var c,d,u,g,f,p,m,b,y,E,A,_,k,I,N,T=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(c=D.__b)&&c(t);try{e:if(typeof T=="function"){if(b=t.props,y=(c=T.contextType)&&r[c.__c],E=c?y?y.props.value:c.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(("prototype"in T)&&T.prototype.render?t.__c=d=new T(b,E):(t.__c=d=new z(b,E),d.constructor=T,d.render=Yo),y&&y.sub(d),d.props=b,d.state||(d.state={}),d.context=E,d.__n=r,u=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=_e({},d.__s)),_e(d.__s,T.getDerivedStateFromProps(b,d.__s))),g=d.props,f=d.state,d.__v=t,u)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&b!==g&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,E),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(b,d.__s,E)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Q){Q&&(Q.__=t)}),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,E),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(g,f,p)})}if(d.context=E,d.props=b,d.__P=e,_=D.__r,k=0,"prototype"in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,_&&_(t),c=d.render(d.props,d.state,d.context),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[]}else do d.__d=!1,_&&_(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++k<25);d.state=d.__s,d.getChildContext!=null&&(r=_e(_e({},r),d.getChildContext())),u||d.getSnapshotBeforeUpdate==null||(p=d.getSnapshotBeforeUpdate(g,f)),N=c!=null&&c.type===R&&c.key==null?c.props.children:c,vs(e,Array.isArray(N)?N:[N],t,n,r,i,s,a,l,o),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),m&&(d.__E=d.__=null),d.__e=!1}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=qo(n.__e,t,n,r,i,s,a,o);(c=D.diffed)&&c(t)}catch(Q){t.__v=null,(o||s!=null)&&(t.__e=l,t.__h=!!o,s[s.indexOf(l)]=null),D.__e(Q,t,n)}}function Ss(e,t){D.__c&&D.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){D.__e(r,n.__v)}})}function qo(e,t,n,r,i,s,a,l){var o,c,d,u=n.props,{props:g,type:f}=t,p=0;if(f==="svg"&&(i=!0),s!=null){for(;p<s.length;p++)if((o=s[p])&&"setAttribute"in o==!!f&&(f?o.localName===f:o.nodeType===3)){e=o,s[p]=null;break}}if(e==null){if(f===null)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,g.is&&g),s=null,l=!1}if(f===null)u===g||l&&e.data===g||(e.data=g);else{if(s=s&&mn.call(e.childNodes),c=(u=n.props||hn).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!l){if(s!=null)for(u={},p=0;p<e.attributes.length;p++)u[e.attributes[p].name]=e.attributes[p].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(Vo(e,g,u,i,l),d)t.__k=[];else if(p=t.props.children,vs(e,Array.isArray(p)?p:[p],t,n,r,i&&f!=="foreignObject",s,a,s?s[0]:n.__k&&_t(n,0),l),s!=null)for(p=s.length;p--;)s[p]!=null&&ps(s[p]);l||(("value"in g)&&(p=g.value)!==void 0&&(p!==e.value||f==="progress"&&!p||f==="option"&&p!==u.value)&&gn(e,"value",p,u.value,!1),("checked"in g)&&(p=g.checked)!==void 0&&p!==e.checked&&gn(e,"checked",p,u.checked,!1))}return e}function Ds(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){D.__e(r,n)}}function As(e,t,n){var r,i;if(D.unmount&&D.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ds(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){D.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&As(r[i],t,n||typeof e.type!="function");n||e.__e==null||ps(e.__e),e.__=e.__e=e.__d=void 0}function Yo(e,t,n){return this.constructor(e,n)}function Re(e,t,n){var r,i,s;D.__&&D.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],br(t,e=(!r&&n||t).__k=h(R,null,[e]),i||hn,hn,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?mn.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r),Ss(s,e)}function vn(e,t){var n={__c:t="__cC"+hs++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(function(l){l.__e=!0,vr(l)})},this.sub=function(a){i.push(a);var l=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),l&&l.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}mn=gs.slice,D={__e:function(e,t,n,r){for(var i,s,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(l){e=l}throw e}},us=0,yr=function(e){return e!=null&&e.constructor===void 0},Je=!1,z.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_e({},this.state),typeof e=="function"&&(e=e(_e({},n),this.props)),e&&_e(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),vr(this))},z.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),vr(this))},z.prototype.render=R,Fe=[],fs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pn.__r=0,hs=0;var Zo,de,Er,ws;var ks=[],Sr=[],Cs=D.__b,_s=D.__r,Rs=D.diffed,Ts=D.__c,xs=D.unmount;function Xo(){for(var e;e=ks.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(yn),e.__H.__h.forEach(Dr),e.__H.__h=[]}catch(t){e.__H.__h=[],D.__e(t,e.__v)}}D.__b=function(e){de=null,Cs&&Cs(e)},D.__r=function(e){_s&&_s(e),Zo=0;var t=(de=e.__c).__H;t&&(Er===de?(t.__h=[],de.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Sr,n.__N=n.i=void 0})):(t.__h.forEach(yn),t.__h.forEach(Dr),t.__h=[])),Er=de},D.diffed=function(e){Rs&&Rs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ks.push(t)!==1&&ws===D.requestAnimationFrame||((ws=D.requestAnimationFrame)||$o)(Xo)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Sr&&(n.__=n.__V),n.i=void 0,n.__V=Sr})),Er=de=null},D.__c=function(e,t){t.some(function(n){try{n.__h.forEach(yn),n.__h=n.__h.filter(function(r){return!r.__||Dr(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],D.__e(r,n.__v)}}),Ts&&Ts(e,t)},D.unmount=function(e){xs&&xs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{yn(r)}catch(i){t=i}}),n.__H=void 0,t&&D.__e(t,n.__v))};var Ms=typeof requestAnimationFrame=="function";function $o(e){var t,n=function(){clearTimeout(r),Ms&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ms&&(t=requestAnimationFrame(n))}function yn(e){var t=de,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),de=t}function Dr(e){var t=de;e.__c=e.__(),de=t}function Jo(e,t){for(var n in t)e[n]=t[n];return e}function Is(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ns(e){this.props=e}(Ns.prototype=new z).isPureReactComponent=!0,Ns.prototype.shouldComponentUpdate=function(e,t){return Is(this.props,e)||Is(this.state,t)};var Os=D.__b;D.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Os&&Os(e)};var Ko=D.__e;D.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Ko(e,t,n,r)};var Ps=D.unmount;function Fs(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Jo({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Fs(r,t,n)})),e}function zs(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return zs(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Ar(){this.__u=0,this.t=null,this.__b=null}function Ws(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function bn(){this.u=null,this.o=null}D.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Ps&&Ps(e)},(Ar.prototype=new z).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Ws(r.__v),s=!1,a=function(){s||(s=!0,n.__R=null,i?i(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=zs(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},o=t.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Ar.prototype.componentWillUnmount=function(){this.t=[]},Ar.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Fs(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&h(R,null,e.fallback);return i&&(i.__h=null),[h(R,null,t.__a?null:e.children),i]};var Hs=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ec(e){return this.getChildContext=function(){return e.context},e.children}function tc(e){var t=this,n=e.i;t.componentWillUnmount=function(){Re(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Re(h(ec,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Vs(e,t){var n=h(tc,{__v:e,i:t});return n.containerInfo=t,n}(bn.prototype=new z).__a=function(e){var t=this,n=Ws(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),Hs(t,e,r)):i()};n?n(s):s()}},bn.prototype.render=function(e){this.u=null,this.o=new Map;var t=Rt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},bn.prototype.componentDidUpdate=bn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Hs(e,n,t)})};var nc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,rc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ic=typeof document<"u",sc=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(z.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Bs=D.event;function ac(){}function lc(){return this.cancelBubble}function oc(){return this.defaultPrevented}D.event=function(e){return Bs&&(e=Bs(e)),e.persist=ac,e.isPropagationStopped=lc,e.isDefaultPrevented=oc,e.nativeEvent=e};var cc,Ls={configurable:!0,get:function(){return this.class}},Us=D.vnode;D.vnode=function(e){var{type:t,props:n}=e,r=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var s in r={},n){var a=n[s];ic&&s==="children"&&t==="noscript"||s==="value"&&"defaultValue"in n&&a==null||(s==="defaultValue"&&("value"in n)&&n.value==null?s="value":s==="download"&&a===!0?a="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!sc(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&rc.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=a)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Rt(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=Rt(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),e.props=r,n.class!=n.className&&(Ls.enumerable=("className"in n),n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Ls))}e.$$typeof=nc,Us&&Us(e)};var js=D.__r;D.__r=function(e){js&&js(e),cc=e.__c};var Gs=new Set;function Lr(e){if(!Gs.has(e))Gs.add(e),console.warn(e+" Consider upgrading to FullCalendar v7: https://fullcalendar.io/docs/upgrading-from-v6")}var aa="This plugin is from FullCalendar v6, but your calendar is v7 (the current version). Fix: import plugins from your v7 package, e.g. import dayGridPlugin from '@fullcalendar/react/daygrid', then uninstall @fullcalendar/core, @fullcalendar/daygrid and the other v6 packages. Don't downgrade to v6.",la=[],Or=new Map;function ke(e){la.push(e),Or.forEach((t)=>{da(t,e)})}function oa(e){if(e.isConnected&&e.getRootNode)ca(e.getRootNode())}function ca(e){let t=Or.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){let n=e.nodeType===9,r=n?e:e.ownerDocument;t=r.createElement("style"),t.setAttribute("data-fullcalendar","");let i=uc();if(i)t.nonce=i;let s=n?r.head:e,a=n?s.querySelector("script,link[rel=stylesheet],link[as=style],style"):s.firstChild;s.insertBefore(t,a)}Or.set(e,t),dc(t)}}function dc(e){for(let t of la)da(e,t)}function da(e,t){let{sheet:n}=e;if(!n){Lr("FullCalendar could not inject its styles, possibly because of a Content Security Policy. v7 distributes plain CSS files instead of injecting styles.");return}let r=n.cssRules.length;t.split("}").forEach((i,s)=>{if(i=i.trim(),i)n.insertRule(i+"}",r+s)})}var wr;function uc(){if(wr===void 0)wr=fc();return wr}function fc(){try{let e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");let t=document.querySelector("script[nonce]");if(t)return t.nonce||""}catch(e){}return""}if(typeof document<"u")ca(document);var hc=":root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url(\"data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\") format(\"truetype\")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:\"\\e900\"}.fc-icon-chevron-right:before{content:\"\\e901\"}.fc-icon-chevrons-left:before{content:\"\\e902\"}.fc-icon-chevrons-right:before{content:\"\\e903\"}.fc-icon-minus-square:before{content:\"\\e904\"}.fc-icon-plus-square:before{content:\"\\e905\"}.fc-icon-x:before{content:\"\\e906\"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:\"\";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:\"\";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:\"\";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{flex-shrink:0;max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}";ke(hc);class nt{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){if(this.isDirty=!0,!this.isPaused())if(this.clearTimeout(),e==null)this.tryDrain();else this.timeoutId=setTimeout(this.tryDrain.bind(this),e)}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else if(n[e]-=1,n[e]<=0)delete n[e];this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){this.isRunning=!0;while(this.isDirty)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){if(this.timeoutId)clearTimeout(this.timeoutId),this.timeoutId=0}drained(){if(this.drainedOption)this.drainedOption()}}function Bt(e){if(e.parentNode)e.parentNode.removeChild(e)}function F(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Ur(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function Ur(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function ua(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(t);for(let a=0;a<s.length;a+=1)r.push(s[a])}return r}var gc=/(top|left|right|bottom|width|height)$/i;function qe(e,t){for(let n in t)jr(e,n,t[n])}function jr(e,t,n){if(n==null)e.style[t]="";else if(typeof n==="number"&&gc.test(t))e.style[t]=`${n}px`;else e.style[t]=n}function In(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}var qs=0;function ae(){return qs+=1,"fc-dom-"+qs}function Lt(e){e.preventDefault()}function pc(e,t){return(n)=>{let r=F(n.target,e);if(r)t.call(r,n,r)}}function Fr(e,t,n,r){let i=pc(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function fa(e,t,n,r){let i;return Fr(e,"mouseover",t,(s,a)=>{if(a!==i){i=a,n(s,a);let l=(o)=>{i=null,r(o,a),a.removeEventListener("mouseleave",l)};a.addEventListener("mouseleave",l)}})}var Ys=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function zr(e,t){let n=(r)=>{t(r),Ys.forEach((i)=>{e.removeEventListener(i,n)})};Ys.forEach((r)=>{e.addEventListener(r,n)})}function ha(e){return Object.assign({onClick:e},ga(e))}function ga(e){return{tabIndex:0,onKeyDown(t){if(t.key==="Enter"||t.key===" ")e(t),t.preventDefault()}}}var Qs=0;function Se(){return Qs+=1,String(Qs)}function Ut(){document.body.classList.add("fc-not-allowed")}function jt(){document.body.classList.remove("fc-not-allowed")}function Wr(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Lt)}function Vr(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Lt)}function Gr(e){e.addEventListener("contextmenu",Lt)}function qr(e){e.removeEventListener("contextmenu",Lt)}function pa(e){let t=[],n=[],r,i;if(typeof e==="string")n=e.split(/\s*,\s*/);else if(typeof e==="function")n=[e];else if(Array.isArray(e))n=e;for(r=0;r<n.length;r+=1)if(i=n[r],typeof i==="string")t.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1});else if(typeof i==="function")t.push({func:i});return t}function ma(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=mc(e,t,n[r]),i)return i;return 0}function mc(e,t,n){if(n.func)return n.func(e,t);return va(e[n.field],t[n.field])*(n.order||1)}function va(e,t){if(!e&&!t)return 0;if(t==null)return-1;if(e==null)return 1;if(typeof e==="string"||typeof t==="string")return String(e).localeCompare(String(t));return e-t}function Ve(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function rt(e,t,n){if(typeof e==="function")return e(...t);if(typeof e==="string")return t.reduce((r,i,s)=>r.replace("$"+s,i||""),e);return n}function Yr(e,t){return e-t}function xt(e){return e%1===0}function vc(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var Zs=["years","months","days","milliseconds"],yc=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function w(e,t){if(typeof e==="string")return bc(e);if(typeof e==="object"&&e)return Xs(e);if(typeof e==="number")return Xs({[t||"milliseconds"]:e});return null}function bc(e){let t=yc.exec(e);if(t){let n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*((t[3]?parseInt(t[3],10):0)*60*60*1000+(t[4]?parseInt(t[4],10):0)*60*1000+(t[5]?parseInt(t[5],10):0)*1000+(t[6]?parseInt(t[6],10):0))}}return null}function Xs(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1000+(e.minutes||e.minute||0)*60*1000+(e.seconds||e.second||0)*1000+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;if(n)t.days+=n*7,t.specifiedWeeks=!0;return t}function Ec(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Ft(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ya(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function Qr(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Sc(e){return Ke(e)/365}function Dc(e){return Ke(e)/30}function Ke(e){return X(e)/86400000}function X(e){return e.years*31536000000+e.months*2592000000+e.days*86400000+e.milliseconds}function zt(e,t){let n=null;for(let r=0;r<Zs.length;r+=1){let i=Zs[r];if(t[i]){let s=e[i]/t[i];if(!xt(s)||n!==null&&n!==s)return null;n=s}else if(e[i])return null}return n}function Mt(e){let t=e.milliseconds;if(t){if(t%1000!==0)return{unit:"millisecond",value:t};if(t%60000!==0)return{unit:"second",value:t/1000};if(t%3600000!==0)return{unit:"minute",value:t/60000};if(t)return{unit:"hour",value:t/3600000}}if(e.days){if(e.specifiedWeeks&&e.days%7===0)return{unit:"week",value:e.days/7};return{unit:"day",value:e.days}}if(e.months)return{unit:"month",value:e.months};if(e.years)return{unit:"year",value:e.years};return{unit:"millisecond",value:0}}function ce(e,t,n){if(e===t)return!0;let r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}var Ac=["sun","mon","tue","wed","thu","fri","sat"];function Nn(e,t){let n=Te(e);return n[2]+=t*7,q(n)}function P(e,t){let n=Te(e);return n[2]+=t,q(n)}function ue(e,t){let n=Te(e);return n[6]+=t,q(n)}function Zr(e,t){return he(e,t)/7}function he(e,t){return(t.valueOf()-e.valueOf())/86400000}function wc(e,t){return(t.valueOf()-e.valueOf())/3600000}function Cc(e,t){return(t.valueOf()-e.valueOf())/60000}function _c(e,t){return(t.valueOf()-e.valueOf())/1000}function ba(e,t){let n=x(e),r=x(t);return{years:0,months:0,days:Math.round(he(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Ea(e,t){let n=et(e,t);if(n!==null&&n%7===0)return n/7;return null}function et(e,t){if(xe(e)===xe(t))return Math.round(he(e,t));return null}function x(e){return q([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Rc(e){return q([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function Tc(e){return q([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function xc(e){return q([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function Mc(e,t,n){let r=e.getUTCFullYear(),i=Cr(e,r,t,n);if(i<1)return Cr(e,r-1,t,n);let s=Cr(e,r+1,t,n);if(s>=1)return Math.min(i,s);return i}function Cr(e,t,n,r){let i=q([t,0,1+kc(t,n,r)]),s=x(e),a=Math.round(he(i,s));return Math.floor(a/7)+1}function kc(e,t,n){let r=7+t-n;return-((7+q([e,0,r]).getUTCDay()-t)%7)+r-1}function $s(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Js(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Te(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function q(e){if(e.length===1)e=e.concat([0]);return new Date(Date.UTC(...e))}function Xr(e){return!isNaN(e.valueOf())}function xe(e){return e.getUTCHours()*1000*60*60+e.getUTCMinutes()*1000*60+e.getUTCSeconds()*1000+e.getUTCMilliseconds()}function On(e,t,n=!1){let r=e.toISOString();if(r=r.replace(".000",""),n)r=r.replace("T00:00:00Z","");if(r.length>10){if(t==null)r=r.replace("Z","");else if(t!==0)r=r.replace("Z",Kr(t,!0))}return r}function Ie(e){return e.toISOString().replace(/T.*$/,"")}function $r(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Jr(e){return Ve(e.getUTCHours(),2)+":"+Ve(e.getUTCMinutes(),2)+":"+Ve(e.getUTCSeconds(),2)}function Kr(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);if(t)return`${n+Ve(i,2)}:${Ve(s,2)}`;return`GMT${n}${i}${s?`:${Ve(s,2)}`:""}`}function S(e,t,n){let r,i;return function(...s){if(!r)i=e.apply(this,s);else if(!ce(r,s)){if(n)n(i);let a=e.apply(this,s);if(!t||!t(a,i))i=a}return r=s,i}}function it(e,t,n){let r,i;return(s)=>{if(!r)i=e.call(this,s);else if(!G(r,s)){if(n)n(i);let a=e.call(this,s);if(!t||!t(a,i))i=a}return r=s,i}}var _r={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},_n={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},En=/\s*([ap])\.?m\.?/i,Ic=/,/g,Nc=/\s+/g,Oc=/\u200e/g,Pc=/UTC|GMT/;class Sa{constructor(e){let t={},n={},r=9;for(let i in e)if(i in _r){if(n[i]=e[i],_r[i]<9)r=Math.min(_r[i],r)}else if(t[i]=e[i],i in _n)r=Math.min(_n[i],r);this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=S(Ks)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,a=Fc(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);let l=a;if(l>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit"))l=1;let o=this.format(e,n),c=this.format(t,n);if(o===c)return o;let d=zc(i,l),u=Ks(d,s,n),g=u(e),f=u(t),p=Wc(o,g,c,f),m=s.separator||r||n.defaultSeparator||"";if(p)return p.before+g+m+f+p.after;return o+m+c}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Ks(e,t,n){let r=Object.keys(e).length;if(r===1&&e.timeZoneName==="short")return(i)=>Kr(i.timeZoneOffset);if(r===0&&t.week)return(i)=>jc(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,t.week);return Hc(e,t,n)}function Hc(e,t,n){e=Object.assign({},e),t=Object.assign({},t),Bc(e,t),e.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){let s=Object.assign({},e);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return(s)=>{let{marker:a}=s,l;if(i&&!a.getUTCMinutes())l=i;else l=r;let o=l.format(a);return Lc(o,s,e,t,n)}}function Bc(e,t){if(e.timeZoneName){if(!e.hour)e.hour="2-digit";if(!e.minute)e.minute="2-digit"}if(e.timeZoneName==="long")e.timeZoneName="short";if(t.omitZeroMinute&&(e.second||e.millisecond))delete t.omitZeroMinute}function Lc(e,t,n,r,i){if(e=e.replace(Oc,""),n.timeZoneName==="short")e=Uc(e,i.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":Kr(t.timeZoneOffset));if(r.omitCommas)e=e.replace(Ic,"").trim();if(r.omitZeroMinute)e=e.replace(":00","");if(r.meridiem===!1)e=e.replace(En,"").trim();else if(r.meridiem==="narrow")e=e.replace(En,(s,a)=>a.toLocaleLowerCase());else if(r.meridiem==="short")e=e.replace(En,(s,a)=>`${a.toLocaleLowerCase()}m`);else if(r.meridiem==="lowercase")e=e.replace(En,(s)=>s.toLocaleLowerCase());return e=e.replace(Nc," "),e=e.trim(),e}function Uc(e,t){let n=!1;if(e=e.replace(Pc,()=>(n=!0,t)),!n)e+=` ${t}`;return e}function jc(e,t,n,r,i){let s=[];if(i==="long")s.push(n);else if(i==="short"||i==="narrow")s.push(t);if(i==="long"||i==="short")s.push(" ");if(s.push(r.simpleNumberFormat.format(e)),r.options.direction==="rtl")s.reverse();return s.join("")}function Fc(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(xe(e)!==xe(t))return 1;return 0}function zc(e,t){let n={};for(let r in e)if(!(r in _n)||_n[r]<=t)n[r]=e[r];return n}function Wc(e,t,n,r){let i=0;while(i<e.length){let s=e.indexOf(t,i);if(s===-1)break;let a=e.substr(0,s);i=s+t.length;let l=e.substr(i),o=0;while(o<n.length){let c=n.indexOf(r,o);if(c===-1)break;let d=n.substr(0,c);o=c+r.length;let u=n.substr(o);if(a===d&&l===u)return{before:a,after:l}}}return null}function ea(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Rn(e,t,n,r){let i=ea(e,n.calendarSystem),s=t?ea(t,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Da{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Rn(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,Rn(e,t,n,r))}}class Aa{constructor(e){this.func=e}format(e,t,n){return this.func(Rn(e,null,t,n))}formatRange(e,t,n,r){return this.func(Rn(e,t,n,r))}}function M(e){if(typeof e==="object"&&e)return new Sa(e);if(typeof e==="string")return new Da(e);if(typeof e==="function")return new Aa(e);return null}var ei={navLinkDayClick:v,navLinkWeekClick:v,duration:w,bootstrapFontAwesome:v,buttonIcons:v,customButtons:v,defaultAllDayEventDuration:w,defaultTimedEventDuration:w,nextDayThreshold:w,scrollTime:w,scrollTimeReset:Boolean,slotMinTime:w,slotMaxTime:w,dayPopoverFormat:M,slotDuration:w,snapDuration:w,headerToolbar:v,footerToolbar:v,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:M,dayHeaderClassNames:v,dayHeaderContent:v,dayHeaderDidMount:v,dayHeaderWillUnmount:v,dayCellClassNames:v,dayCellContent:v,dayCellDidMount:v,dayCellWillUnmount:v,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:v,weekNumbers:Boolean,weekNumberClassNames:v,weekNumberContent:v,weekNumberDidMount:v,weekNumberWillUnmount:v,editable:Boolean,viewClassNames:v,viewDidMount:v,viewWillUnmount:v,nowIndicator:Boolean,nowIndicatorSnap:v,nowIndicatorClassNames:v,nowIndicatorContent:v,nowIndicatorDidMount:v,nowIndicatorWillUnmount:v,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:v,locale:v,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:v,eventOrder:pa,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:v,contentHeight:v,direction:String,weekNumberFormat:M,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:v,initialDate:v,now:v,eventDataTransform:v,stickyHeaderDates:v,stickyFooterScrollbar:v,viewHeight:v,defaultAllDay:Boolean,eventSourceFailure:v,eventSourceSuccess:v,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:v,eventConstraint:v,eventAllow:v,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:v,eventContent:v,eventDidMount:v,eventWillUnmount:v,selectConstraint:v,selectOverlap:v,selectAllow:v,droppable:Boolean,unselectCancel:String,slotLabelFormat:v,slotLaneClassNames:v,slotLaneContent:v,slotLaneDidMount:v,slotLaneWillUnmount:v,slotLabelClassNames:v,slotLabelContent:v,slotLabelDidMount:v,slotLabelWillUnmount:v,dayMaxEvents:v,dayMaxEventRows:v,dayMinWidth:Number,slotLabelInterval:w,allDayText:String,allDayClassNames:v,allDayContent:v,allDayDidMount:v,allDayWillUnmount:v,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:M,rerenderDelay:Number,moreLinkText:v,moreLinkHint:v,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:v,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:w,hiddenDays:v,fixedWeekCount:Boolean,validRange:v,visibleRange:v,titleFormat:v,eventInteractive:Boolean,noEventsText:String,viewHint:v,navLinkHint:v,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:v,moreLinkClassNames:v,moreLinkContent:v,moreLinkDidMount:v,moreLinkWillUnmount:v,monthStartFormat:M,handleCustomRendering:v,customRenderingMetaMap:v,customRenderingReplaces:Boolean},Ne={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1000,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},ti={datesSet:v,eventsSet:v,eventAdd:v,eventChange:v,eventRemove:v,windowResize:v,eventClick:v,eventMouseEnter:v,eventMouseLeave:v,select:v,unselect:v,loading:v,_unmount:v,_beforeprint:v,_afterprint:v,_noEventDrop:v,_noEventResize:v,_resize:v,_scrollRequest:v},ni={buttonText:v,buttonHints:v,views:v,plugins:v,initialEvents:v,events:v,eventSources:v},Oe={headerToolbar:ze,footerToolbar:ze,buttonText:ze,buttonHints:ze,buttonIcons:ze,dateIncrement:ze,plugins:Tt,events:Tt,eventSources:Tt,["resources"]:Tt,validRange:ta,visibleRange:ta,hiddenDays:Tt};function ze(e,t){if(typeof e==="object"&&typeof t==="object"&&e&&t)return G(e,t);return e===t}function Tt(e,t){if(Array.isArray(e)&&Array.isArray(t))return ce(e,t);return e===t}function ta(e,t){if(typeof e==="object"&&typeof t==="object"&&e&&t)return G(e,t,Vc);return e===t}function Vc(e,t){if(e instanceof Date&&t instanceof Date)return e.valueOf()===t.valueOf();if(Array.isArray(e)&&Array.isArray(t))return ce(e,t);return e===t}var wa={type:String,component:v,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:v,usesMinMaxTime:Boolean,classNames:v,content:v,didMount:v,willUnmount:v};function Pn(e){return Bn(e,Oe)}function Hn(e,t){let n={},r={};for(let i in t)if(i in e)n[i]=t[i](e[i]);for(let i in e)if(!(i in t))r[i]=e[i];return{refined:n,extra:r}}function v(e){return e}var{hasOwnProperty:Tn}=Object.prototype;function Bn(e,t){let n={};if(t){for(let r in t)if(t[r]===ze){let i=[];for(let s=e.length-1;s>=0;s-=1){let a=e[s][r];if(typeof a==="object"&&a)i.unshift(a);else if(a!==void 0){n[r]=a;break}}if(i.length)n[r]=Bn(i)}}for(let r=e.length-1;r>=0;r-=1){let i=e[r];for(let s in i)if(!(s in n))n[s]=i[s]}return n}function Ee(e,t){let n={};for(let r in e)if(t(e[r],r))n[r]=e[r];return n}function se(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function ri(e){let t={};for(let n of e)t[n]=!0;return t}function Ln(e){let t=[];for(let n in e)t.push(e[n]);return t}function G(e,t,n){if(e===t)return!0;for(let r in e)if(Tn.call(e,r)){if(!(r in t))return!1}for(let r in t)if(Tn.call(t,r)){if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1}return!0}var Gc=/^on[A-Z]/;function qc(e,t){let n=Yc(e,t);for(let r of n)if(!Gc.test(r))return!1;return!0}function Yc(e,t){let n=[];for(let r in e)if(Tn.call(e,r)){if(!(r in t))n.push(r)}for(let r in t)if(Tn.call(t,r)){if(e[r]!==t[r])n.push(r)}return n}function wn(e,t,n={}){if(e===t)return!0;for(let r in t)if(r in e&&Qc(e[r],t[r],n[r]));else return!1;for(let r in e)if(!(r in t))return!1;return!0}function Qc(e,t,n){if(e===t||n===!0)return!0;if(n)return n(e,t);return!1}function Ca(e,t=0,n,r=1){let i=[];if(n==null)n=Object.keys(e).length;for(let s=t;s<n;s+=r){let a=e[s];if(a!==void 0)i.push(a)}return i}var _a={};function Zc(e,t){_a[e]=t}function Xc(e){return new _a[e]}class Ra{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return q(e)}markerToArray(e){return Te(e)}}Zc("gregory",Ra);var $c=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Ta(e){let t=$c.exec(e);if(t){let n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.${t[12]}`)*1000:0));if(Xr(n)){let r=null;if(t[13])r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0));return{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}class Un{constructor(e){let t=this.timeZone=e.timeZone,n=t!=="local"&&t!=="UTC";if(e.namedTimeZoneImpl&&n)this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t);if(this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=Xc(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;if(typeof e.firstDay==="number")this.weekDow=e.firstDay;if(typeof e.weekNumberCalculation==="function")this.weekNumberFunc=e.weekNumberCalculation;this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);if(t===null)return null;return t.marker}createNowMarker(){if(this.canComputeOffset)return this.timestampToMarker(new Date().valueOf());return q($s(new Date))}createMarkerMeta(e){if(typeof e==="string")return this.parse(e);let t=null;if(typeof e==="number")t=this.timestampToMarker(e);else if(e instanceof Date){if(e=e.valueOf(),!isNaN(e))t=this.timestampToMarker(e)}else if(Array.isArray(e))t=q(e);if(t===null||!Xr(t))return null;return{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=Ta(e);if(t===null)return null;let{marker:n}=t,r=null;if(t.timeZoneOffset!==null)if(this.canComputeOffset)n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1000);else r=t.timeZoneOffset;return{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;if(xe(e)===xe(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t))return n.getMarkerYear(t)-n.getMarkerYear(e);return null}diffWholeMonths(e,t){let{calendarSystem:n}=this;if(xe(e)===xe(t)&&n.getMarkerDay(e)===n.getMarkerDay(t))return n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12;return null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);if(n!==null)return{unit:"year",value:n};if(n=this.diffWholeMonths(e,t),n!==null)return{unit:"month",value:n};if(n=Ea(e,t),n!==null)return{unit:"week",value:n};if(n=et(e,t),n!==null)return{unit:"day",value:n};if(n=wc(e,t),xt(n))return{unit:"hour",value:n};if(n=Cc(e,t),xt(n))return{unit:"minute",value:n};if(n=_c(e,t),xt(n))return{unit:"second",value:n};return{unit:"millisecond",value:t.valueOf()-e.valueOf()}}countDurationsBetween(e,t,n){let r;if(n.years){if(r=this.diffWholeYears(e,t),r!==null)return r/Sc(n)}if(n.months){if(r=this.diffWholeMonths(e,t),r!==null)return r/Dc(n)}if(n.days){if(r=et(e,t),r!==null)return r/Ke(n)}return(t.valueOf()-e.valueOf())/X(n)}startOf(e,t){if(t==="year")return this.startOfYear(e);if(t==="month")return this.startOfMonth(e);if(t==="week")return this.startOfWeek(e);if(t==="day")return x(e);if(t==="hour")return Rc(e);if(t==="minute")return Tc(e);if(t==="second")return xc(e);return 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){if(this.weekNumberFunc)return this.weekNumberFunc(this.toDate(e));return Mc(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){if(r.isEndExclusive)t=ue(t,-1);return n.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo!=null?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:r.forcedEndTzo!=null?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;if(!t.omitTimeZoneOffset)if(t.forcedTzo!=null)n=t.forcedTzo;else n=this.offsetForMarker(e);return On(e,n,t.omitTime)}timestampToMarker(e){if(this.timeZone==="local")return q($s(new Date(e)));if(this.timeZone==="UTC"||!this.namedTimeZoneImpl)return new Date(e);return q(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){if(this.timeZone==="local")return-Js(Te(e)).getTimezoneOffset();if(this.timeZone==="UTC")return 0;if(this.namedTimeZoneImpl)return this.namedTimeZoneImpl.offsetForArray(Te(e));return null}toDate(e,t){if(this.timeZone==="local")return Js(Te(e));if(this.timeZone==="UTC")return new Date(e.valueOf());if(!this.namedTimeZoneImpl)return new Date(e.valueOf()-(t||0));return new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Te(e))*1000*60)}}class Pe{constructor(e){if(this.iconOverrideOption)this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if(typeof e==="object"&&e){t=Object.assign({},this.iconClasses);for(n in e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else if(e===!1)this.iconClasses={}}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;if(t&&e.indexOf(t)!==0)e=t+e;return e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;if(t&&this.rtlIconClasses)n=this.rtlIconClasses[e]||this.iconClasses[e];else n=this.iconClasses[e];if(n)return`${this.baseIconClass} ${n}`;return""}getCustomButtonIconClass(e){let t;if(this.iconOverrideCustomButtonOption){if(t=e[this.iconOverrideCustomButtonOption],t)return`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`}return""}}Pe.prototype.classes={};Pe.prototype.iconClasses={};Pe.prototype.baseIconClass="";Pe.prototype.iconOverridePrefix="";function kt(e){e();let t=D.debounceRendering,n=[];function r(i){n.push(i)}D.debounceRendering=r,Re(h(xa,{}),document.createElement("div"));while(n.length)n.shift()();D.debounceRendering=t}class xa extends z{render(){return h("div",{})}componentDidMount(){this.setState({})}}function Ma(e){let t=vn(e),n=t.Provider;return t.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=(a)=>{if(this.props.value!==a.value)s.forEach((l)=>{l.context=a.value,l.forceUpdate()})},this.sub=(a)=>{s.push(a);let l=a.componentWillUnmount;a.componentWillUnmount=()=>{s.splice(s.indexOf(a),1),l&&l.call(a)}}}return i},t}class ii{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=(i)=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){if(e&&this.scrollTimeReset)this.fireInitialScroll();else this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){if(this.queuedRequest&&this.execFunc(this.queuedRequest))this.queuedRequest=null}}var le=Ma({});function ka(e,t,n,r,i,s,a,l,o,c,d,u,g,f){return{dateEnv:i,nowManager:s,options:n,pluginHooks:l,emitter:d,dispatch:o,getCurrentData:c,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:a,isRtl:n.direction==="rtl",addResizeHandler(p){d.on("_resize",p)},removeResizeHandler(p){d.off("_resize",p)},createScrollResponder(p){return new ii(p,d,w(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:g,unregisterInteractiveComponent:f}}class De extends z{shouldComponentUpdate(e,t){return!wn(this.props,e,this.propEquality)||!wn(this.state,t,this.stateEquality)}safeSetState(e){if(!wn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality))this.setState(e)}}De.addPropsEquality=Jc;De.addStateEquality=Kc;De.contextType=le;De.prototype.propEquality={};De.prototype.stateEquality={};class C extends De{}C.contextType=le;function Jc(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function Kc(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function ee(e,t){if(typeof e==="function")e(t);else if(e)e.current=t}class jn extends C{constructor(){super(...arguments);this.id=Se(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=(e)=>{let{options:t}=this.context,{generatorName:n}=this.props;if(!t.customRenderingReplaces||!Pr(n,t))this.updateElRef(e)},this.updateElRef=(e)=>{if(this.props.elRef)ee(this.props.elRef,e)}}render(){let{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:i,renderProps:s}=e,a=si(e,[],this.handleEl),l=!1,o,c=[],d;if(r!=null){let u=typeof r==="function"?r(s,h):r;if(u===!0)l=!0;else{let g=u&&typeof u==="object";if(g&&"html"in u)a.dangerouslySetInnerHTML={__html:u.html};else if(g&&"domNodes"in u)c=Array.prototype.slice.call(u.domNodes);else if(g?yr(u):typeof u!=="function")o=u;else d=u}}else l=!Pr(e.generatorName,n);if(l&&i)o=i(s);return this.queuedDomNodes=c,this.currentGeneratorMeta=d,h(e.elTag,a,o)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;let{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=r.options;if(i){let a=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:s===null||s===void 0?void 0:s[n.generatorName];if(a)i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},n),{elClasses:(n.elClasses||[]).filter(ed)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!ce(e,t)){t.forEach(Bt);for(let r of e)n.appendChild(r);this.currentDomNodes=e}}}jn.addPropsEquality({elClasses:ce,elStyle:G,elAttrs:qc,renderProps:G});function Pr(e,t){var n;return Boolean(t.handleCustomRendering&&e&&((n=t.customRenderingMetaMap)===null||n===void 0?void 0:n[e]))}function si(e,t,n){let r=Object.assign(Object.assign({},e.elAttrs),{ref:n});if(e.elClasses||t)r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ");if(e.elStyle)r.style=e.elStyle;return r}function ed(e){return Boolean(e)}var ai=Ma(0);class L extends z{constructor(){super(...arguments);this.InnerContent=td.bind(void 0,this),this.handleEl=(e)=>{if(this.el=e,this.props.elRef){if(ee(this.props.elRef,e),e&&this.didMountMisfire)this.componentDidMount()}}}render(){let{props:e}=this,t=nd(e.classNameGenerator,e.renderProps);if(e.children){let n=si(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);if(e.elTag)return h(e.elTag,n,r);else return r}else return h(jn,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;if(this.el)(t=(e=this.props).didMount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}));else this.didMountMisfire=!0}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}L.contextType=ai;function td(e,t){let n=e.props;return h(jn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function nd(e,t){let n=typeof e==="function"?e(t):e||[];return typeof n==="string"?[n]:n}class ge extends C{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return h(L,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...li(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},()=>e.children)}}function li(e){return[`fc-${e.type}-view`,"fc-view"]}function rd(e,t){let n=null,r=null;if(e.start)n=t.createMarker(e.start);if(e.end)r=t.createMarker(e.end);if(!n&&!r)return null;if(n&&r&&r<n)return null;return{start:n,end:r}}function na(e,t){let n=[],{start:r}=t,i,s;e.sort(id);for(i=0;i<e.length;i+=1){if(s=e[i],s.start>r)n.push({start:r,end:s.start});if(s.end>r)r=s.end}if(r<t.end)n.push({start:r,end:t.end});return n}function id(e,t){return e.start.valueOf()-t.start.valueOf()}function J(e,t){let{start:n,end:r}=e,i=null;if(t.start!==null)if(n===null)n=t.start;else n=new Date(Math.max(n.valueOf(),t.start.valueOf()));if(t.end!=null)if(r===null)r=t.end;else r=new Date(Math.min(r.valueOf(),t.end.valueOf()));if(n===null||r===null||n<r)i={start:n,end:r};return i}function Ia(e,t){return(e.start===null?null:e.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(e.end===null?null:e.end.valueOf())===(t.end===null?null:t.end.valueOf())}function Fn(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function st(e,t){return(e.start===null||t.start!==null&&t.start>=e.start)&&(e.end===null||t.end!==null&&t.end<=e.end)}function ie(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function sd(e,t){if(t.start!=null&&e<t.start)return t.start;if(t.end!=null&&e>=t.end)return new Date(t.end.valueOf()-1);return e}function Na(e){let t=Math.floor(he(e.start,e.end))||1,n=x(e.start),r=P(n,t);return{start:n,end:r}}function zn(e,t=w(0)){let n=null,r=null;if(e.end){r=x(e.end);let i=e.end.valueOf()-r.valueOf();if(i&&i>=X(t))r=P(r,1)}if(e.start){if(n=x(e.start),r&&r<=n)r=P(n,1)}return{start:n,end:r}}function oi(e){let t=zn(e);return he(t.start,t.end)>1}function Me(e,t,n,r){if(r==="year")return w(n.diffWholeYears(e,t),"year");if(r==="month")return w(n.diffWholeMonths(e,t),"month");return ba(e,t)}class at{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let{props:r}=this,i,s,a,l,o,c;if(i=this.buildValidRange(),i=this.trimHiddenDays(i),n)e=sd(e,i);if(s=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),l=this.trimHiddenDays(l),o=l,!r.showNonCurrentDates)o=J(o,s.range);if(o=this.adjustActiveRange(o),o=J(o,i),c=Fn(s.range,i),!ie(l,e))e=l.start;return{currentDate:e,validRange:i,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:o,renderRange:l,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(s.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e==="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:n}=this,r=null,i=null,s=null,a;if(n.duration)r=n.duration,i=n.durationUnit,s=this.buildRangeFromDuration(e,t,r,i);else if(a=this.props.dayCount)i="day",s=this.buildRangeFromDayCount(e,t,a);else if(s=this.buildCustomVisibleRange(e))i=n.dateEnv.greatestWholeUnit(s.start,s.end).unit;else r=this.getFallbackDuration(),i=Mt(r).unit,s=this.buildRangeFromDuration(e,t,r,i);return{duration:r,unit:i,range:s}}getFallbackDuration(){return w({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:a}=e;if(n){if(Ke(r)<0)s=x(s),s=t.add(s,r);if(Ke(i)>1)a=x(a),a=P(a,-1),a=t.add(a,i)}return{start:s,end:a}}buildRangeFromDuration(e,t,n,r){let{dateEnv:i,dateAlignment:s}=this.props,a,l,o;if(!s){let{dateIncrement:d}=this.props;if(d)if(X(d)<X(n))s=Mt(d).unit;else s=r;else s=r}if(Ke(n)<=1){if(this.isHiddenDay(a))a=this.skipHiddenDays(a,t),a=x(a)}function c(){a=i.startOf(e,s),l=i.add(a,n),o={start:a,end:l}}if(c(),!this.trimHiddenDays(o))e=this.skipHiddenDays(e,t),c();return o}buildRangeFromDayCount(e,t,n){let{dateEnv:r,dateAlignment:i}=this.props,s=0,a=e,l;if(i)a=r.startOf(a,i);a=x(a),a=this.skipHiddenDays(a,t),l=a;do if(l=P(l,1),!this.isHiddenDay(l))s+=1;while(s<n);return{start:a,end:l}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r=typeof n==="function"?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);if(i&&(i.start==null||i.end==null))return null;return i}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,n;if(t)return t;if(n=this.props.dateAlignment)return w(1,n);if(e)return e;return w({days:1})}refineRange(e){if(e){let t=rd(e,this.props.dateEnv);if(t)t=zn(t);return t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],n=0,r;if(this.props.weekends===!1)e=e.concat([0,6]);for(r=0;r<7;r+=1)if(!(t[r]=e.indexOf(r)!==-1))n+=1;if(!n)throw Error("invalid hiddenDays");this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:n}=e;if(t)t=this.skipHiddenDays(t);if(n)n=this.skipHiddenDays(n,-1,!0);if(t==null||n==null||t<n)return{start:t,end:n};return null}isHiddenDay(e){if(e instanceof Date)e=e.getUTCDay();return this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7])e=P(e,t);return e}}function Wt(e,t,n,r){return{instanceId:Se(),defId:e,range:t,forcedStartTzo:n==null?null:n,forcedEndTzo:r==null?null:r}}function ad(e,t,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(e,n);if(s){let{allDay:a}=e;if(a==null){if(a=t,a==null){if(a=s.allDayGuess,a==null)a=!1}}return{allDay:a,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Ge(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:a,instances:l}=e;l=Ee(l,(o)=>!a[o.defId].recurringDef);for(let o in a){let c=a[o];if(c.recurringDef){let{duration:d}=c.recurringDef;if(!d)d=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration;let u=ld(c,d,t,r,i.recurringTypes);for(let g of u){let f=Wt(o,{start:g,end:r.add(g,d)});l[f.instanceId]=f}}}return{defs:a,instances:l}}function ld(e,t,n,r,i){let a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);if(e.allDay)a=a.map(x);return a}var Cn={id:String,groupId:String,title:String,url:String,interactive:Boolean},Oa={start:v,end:v,date:v,allDay:Boolean},od=Object.assign(Object.assign(Object.assign({},Cn),Oa),{extendedProps:v});function Pa(e,t,n,r,i=ci(n),s,a){let{refined:l,extra:o}=Wn(e,n,i),c=dd(t,n),d=ad(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let g=It(l,o,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,s);return g.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:g,instance:null}}let u=cd(l,c,n,r);if(u){let g=It(l,o,t?t.sourceId:"",u.allDay,u.hasEnd,n,s),f=Wt(g.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);if(a&&g.publicId&&a[g.publicId])f.instanceId=a[g.publicId];return{def:g,instance:f}}return null}function Wn(e,t,n=ci(t)){return Hn(e,n)}function ci(e){return Object.assign(Object.assign(Object.assign({},xn),od),e.pluginHooks.eventRefiners)}function It(e,t,n,r,i,s,a){let l={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||Se(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:lt(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(l,o(e));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function cd(e,t,n,r){let{allDay:i}=e,s,a=null,l=!1,o,c=null,d=e.start!=null?e.start:e.date;if(s=n.dateEnv.createMarkerMeta(d),s)a=s.marker;else if(!r)return null;if(e.end!=null)o=n.dateEnv.createMarkerMeta(e.end);if(i==null)if(t!=null)i=t;else i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified);if(i&&a)a=x(a);if(o){if(c=o.marker,i)c=x(c);if(a&&c<=a)c=null}if(c)l=!0;else if(!r)l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration);return{allDay:i,hasEnd:l,range:{start:a,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function dd(e,t){let n=null;if(e)n=e.defaultAllDay;if(n==null)n=t.options.defaultAllDay;return n}function Nt(e,t,n,r,i,s){let a=W(),l=ci(n);for(let o of e){let c=Pa(o,t,n,r,l,i,s);if(c)Ot(c,a)}return a}function Ot(e,t=W()){if(t.defs[e.def.defId]=e.def,e.instance)t.instances[e.instance.instanceId]=e.instance;return t}function Vt(e,t){let n=e.instances[t];if(n){let r=e.defs[n.defId],i=Gn(e,(s)=>ud(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return W()}function ud(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function W(){return{defs:{},instances:{}}}function Vn(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Gn(e,t){let n=Ee(e.defs,t),r=Ee(e.instances,(i)=>n[i.defId]);return{defs:n,instances:r}}function fd(e,t){let{defs:n,instances:r}=e,i={},s={};for(let a in n)if(!t.defs[a])i[a]=n[a];for(let a in r)if(!t.instances[a]&&i[r[a].defId])s[a]=r[a];return{defs:i,instances:s}}function hd(e,t){if(Array.isArray(e))return Nt(e,null,t,!0);if(typeof e==="object"&&e)return Nt([e],null,t,!0);if(e!=null)return String(e);return null}function Hr(e){if(Array.isArray(e))return e;if(typeof e==="string")return e.split(/\s+/);return[]}var xn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:v,overlap:v,allow:v,className:Hr,classNames:Hr,color:String,backgroundColor:String,borderColor:String,textColor:String},gd={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function lt(e,t){let n=hd(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function di(e){return e.reduce(pd,gd)}function pd(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap==="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var md={id:String,defaultAllDay:Boolean,url:String,format:String,events:v,eventDataTransform:v,success:v,failure:v};function ui(e,t,n=fi(t)){let r;if(typeof e==="string")r={url:e};else if(typeof e==="function"||Array.isArray(e))r={events:e};else if(typeof e==="object"&&e)r=e;if(r){let{refined:i,extra:s}=Hn(r,n),a=vd(i,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Se(),sourceDefId:a.sourceDefId,meta:a.meta,ui:lt(i,t),extendedProps:s}}return null}function fi(e){return Object.assign(Object.assign(Object.assign({},xn),md),e.pluginHooks.eventSourceRefiners)}function vd(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(e);if(s)return{sourceDefId:r,meta:s}}return null}function Ha(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return yd(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return bd(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return Ed(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Vn(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(r)return Ge(e,r.activeRange,i);return e;case"REMOVE_EVENTS":return fd(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return La(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Gn(e,(s)=>!s.sourceId);case"REMOVE_ALL_EVENTS":return W();default:return e}}function yd(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let a=Nt(Ba(i,t,s),t,s);if(r)a=Ge(a,r,s);return Vn(La(e,t.sourceId),a)}return e}function bd(e,t,n,r,i){let{defIdMap:s,instanceIdMap:a}=Dd(e),l=Nt(Ba(n,t,i),t,i,!1,s,a);return Ge(l,r,i)}function Ba(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;if(i)e=ra(e,i);if(r)e=ra(e,r);return e}function ra(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let i=t(r);if(i)n.push(i);else if(i==null)n.push(r)}}return n}function Ed(e,t,n,r){if(n)t=Ge(t,n,r);return Vn(e,t)}function hi(e,t,n){let{defs:r}=e,i=se(e.instances,(s)=>{if(r[s.defId].allDay)return s;return Object.assign(Object.assign({},s),{range:{start:n.createMarker(t.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(t.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo})});return{defs:r,instances:i}}function La(e,t){return Gn(e,(n)=>n.sourceId!==t)}function Sd(e,t){return{defs:e.defs,instances:Ee(e.instances,(n)=>!t[n.instanceId])}}function Dd(e){let{defs:t,instances:n}=e,r={},i={};for(let s in t){let a=t[s],{publicId:l}=a;if(l)r[l]=s}for(let s in n){let a=n[s],l=t[a.defId],{publicId:o}=l;if(o)i[o]=s}return{defIdMap:r,instanceIdMap:i}}class He{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){Ad(this.handlers,e,t)}off(e,t){wd(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let s of i)s.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Ad(e,t,n){(e[t]||(e[t]=[])).push(n)}function wd(e,t,n){if(n){if(e[t])e[t]=e[t].filter((r)=>r!==n)}else delete e[t]}var Cd={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function gi(e,t){return Nt(_d(e),null,t)}function _d(e){let t;if(e===!0)t=[{}];else if(Array.isArray(e))t=e.filter((n)=>n.daysOfWeek);else if(typeof e==="object"&&e)t=[e];else t=[];return t=t.map((n)=>Object.assign(Object.assign({},Cd),n)),t}function qn(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},pi(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Rd(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function pi(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,Ud(e,t.dateEnv)),n}function Mn(e,t,n){let{dateEnv:r,options:i}=n,s=t;if(e)s=x(s),s=r.add(s,i.defaultAllDayEventDuration);else s=r.add(s,i.defaultTimedEventDuration);return s}function Gt(e,t,n,r){let i=kn(e.defs,t),s=W();for(let a in e.defs){let l=e.defs[a];s.defs[a]=Td(l,i[a],n,r)}for(let a in e.instances){let l=e.instances[a],o=s.defs[l.defId];s.instances[a]=xd(l,o,i[l.defId],n,r)}return s}function Td(e,t,n,r){let i=n.standardProps||{};if(i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta))i.hasEnd=!0;let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});if(n.extendedProps)s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps);for(let a of r.pluginHooks.eventDefMutationAppliers)a(s,n,r);if(!s.hasEnd&&r.options.forceEventDuration)s.hasEnd=!0;return s}function xd(e,t,n,r,i){let{dateEnv:s}=i,a=r.standardProps&&r.standardProps.allDay===!0,l=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},e);if(a)o.range=Na(o.range);if(r.datesDelta&&n.startEditable)o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)};if(r.startDelta&&n.durationEditable)o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end};if(r.endDelta&&n.durationEditable)o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)};if(l)o.range={start:o.range.start,end:Mn(t.allDay,o.range.start,i)};if(t.allDay)o.range={start:x(o.range.start),end:x(o.range.end)};if(o.range.end<o.range.start)o.range.end=Mn(t.allDay,o.range.start,i);return o}class We{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class O{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Oa)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")t=Cn[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Cn)t=Cn[e](t),this.mutate({standardProps:{[e]:t}});else if(e in xn){let n=xn[e](t);if(e==="color")n={backgroundColor:t,borderColor:t};else if(e==="editable")n={startEditable:t,durationEditable:t};else n={[e]:t};this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let i=this._instance.range,s=Me(i.start,r,n,t.granularity);if(t.maintainDuration)this.mutate({datesDelta:s});else this.mutate({startDelta:s})}}setEnd(e,t={}){let{dateEnv:n}=this._context,r;if(e!=null){if(r=n.createMarker(e),!r)return}if(this._instance)if(r){let i=Me(this._instance.range.end,r,n,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let{dateEnv:r}=this._context,i={allDay:n.allDay},s=r.createMarker(e),a;if(!s)return;if(t!=null){if(a=r.createMarker(t),!a)return}if(this._instance){let l=this._instance.range;if(n.allDay===!0)l=Na(l);let o=Me(l.start,s,r,n.granularity);if(a){let c=Me(l.end,a,r,n.granularity);if(Ec(o,c))this.mutate({datesDelta:o,standardProps:i});else this.mutate({startDelta:o,endDelta:c,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:o,standardProps:i})}}moveStart(e){let t=w(e);if(t)this.mutate({startDelta:t})}moveEnd(e){let t=w(e);if(t)this.mutate({endDelta:t})}moveDates(e){let t=w(e);if(t)this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;if(r==null)r=this._context.options.allDayMaintainDuration;if(this._def.allDay!==e)n.hasEnd=r;this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=M(e);if(this._def.hasEnd)return t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo});return t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),s=Vt(i,t.instanceId);s=Gt(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let l=new O(r,n,t);this._def=s.defs[n.defId],this._instance=s.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:s}),r.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:pe(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=Ua(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;if(e)return new We(this._context,this._context.getCurrentData().eventSources[e]);return 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;if(e)return this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo});return""}get endStr(){let e=this._instance;if(e&&this._def.hasEnd)return this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo});return""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,s={allDay:t.allDay};if(t.title)s.title=t.title;if(r)s.start=r;if(i)s.end=i;if(t.publicId)s.id=t.publicId;if(t.groupId)s.groupId=t.groupId;if(t.url)s.url=t.url;if(n.display&&n.display!=="auto")s.display=n.display;if(e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor)s.color=n.backgroundColor;else{if(n.backgroundColor)s.backgroundColor=n.backgroundColor;if(n.borderColor)s.borderColor=n.borderColor}if(n.textColor)s.textColor=n.textColor;if(n.classNames.length)s.classNames=n.classNames;if(Object.keys(t.extendedProps).length)if(e.collapseExtendedProps)Object.assign(s,t.extendedProps);else s.extendedProps=t.extendedProps;return s}toJSON(){return this.toPlainObject()}}function Ua(e){let{_def:t,_instance:n}=e;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function pe(e,t,n){let{defs:r,instances:i}=e,s=[],a=n?n.instanceId:"";for(let l in i){let o=i[l],c=r[o.defId];if(o.instanceId!==a)s.push(new O(t,c,o))}return s}function tt(e,t,n,r){let i={},s={},a={},l=[],o=[],c=kn(e.defs,t);for(let d in e.defs){let u=e.defs[d];if(c[u.defId].display==="inverse-background")if(u.groupId){if(i[u.groupId]=[],!a[u.groupId])a[u.groupId]=u}else s[d]=[]}for(let d in e.instances){let u=e.instances[d],g=e.defs[u.defId],f=c[g.defId],p=u.range,m=!g.allDay&&r?zn(p,r):p,b=J(m,n);if(b){if(f.display==="inverse-background")if(g.groupId)i[g.groupId].push(b);else s[u.defId].push(b);else if(f.display!=="none")(f.display==="background"?l:o).push({def:g,ui:f,instance:u,range:b,isStart:m.start&&m.start.valueOf()===b.start.valueOf(),isEnd:m.end&&m.end.valueOf()===b.end.valueOf()})}}for(let d in i){let u=i[d],g=na(u,n);for(let f of g){let p=a[d],m=c[p.defId];l.push({def:p,ui:m,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let d in s){let u=s[d],g=na(u,n);for(let f of g)l.push({def:e.defs[d],ui:c[d],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:l,fg:o}}function mi(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function ia(e,t){e.fcSeg=t}function Ae(e){return e.fcSeg||e.parentNode.fcSeg||null}function kn(e,t){return se(e,(n)=>ja(n,t))}function ja(e,t){let n=[];if(t[""])n.push(t[""]);if(t[e.defId])n.push(t[e.defId]);return n.push(e.ui),di(n)}function Ye(e,t){let n=e.map(Md);return n.sort((r,i)=>ma(r,i,t)),n.map((r)=>r._seg)}function Md(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.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:e})}function kd(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,a=s.startEditable;for(let l of r)a=l(a,i,s,t);return a}function Id(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Nd(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Be(e,t,n,r,i,s,a){let{dateEnv:l,options:o}=n,{displayEventTime:c,displayEventEnd:d}=o,u=e.eventRange.def,g=e.eventRange.instance;if(c==null)c=r!==!1;if(d==null)d=i!==!1;let f=g.range.start,p=g.range.end,m=s||e.start||e.eventRange.range.start,b=a||e.end||e.eventRange.range.end,y=x(f).valueOf()===x(m).valueOf(),E=x(ue(p,-1)).valueOf()===x(ue(b,-1)).valueOf();if(c&&!u.allDay&&(y||E)){if(m=y?f:m,b=E?p:b,d&&u.hasEnd)return l.formatRange(m,b,t,{forcedStartTzo:s?null:g.forcedStartTzo,forcedEndTzo:a?null:g.forcedEndTzo});return l.format(m,t,{forcedTzo:s?null:g.forcedStartTzo})}return""}function te(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&ie(t,r.start)}}function Od(e){let t=["fc-event"];if(e.isMirror)t.push("fc-event-mirror");if(e.isDraggable)t.push("fc-event-draggable");if(e.isStartResizable||e.isEndResizable)t.push("fc-event-resizable");if(e.isDragging)t.push("fc-event-dragging");if(e.isResizing)t.push("fc-event-resizing");if(e.isSelected)t.push("fc-event-selected");if(e.isStart)t.push("fc-event-start");if(e.isEnd)t.push("fc-event-end");if(e.isPast)t.push("fc-event-past");if(e.isToday)t.push("fc-event-today");if(e.isFuture)t.push("fc-event-future");return t}function qt(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function ot(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:a}=t,{eventInteractive:l}=a;if(l==null){if(l=n.interactive,l==null)l=Boolean(s.hasHandlers("eventClick"))}if(l)return ga((o)=>{s.trigger("eventClick",{el:o.target,event:new O(t,n,r),jsEvent:o,view:t.viewApi})});return{}}var Pd={start:v,end:v,allDay:Boolean};function Hd(e,t,n){let r=Bd(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function Bd(e,t){let{refined:n,extra:r}=Hn(e,Pd),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;if(a==null)a=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified);return Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:a},r)}function vi(e,t){return Ia(e.range,t.range)&&e.allDay===t.allDay&&Ld(e,t)}function Ld(e,t){for(let n in t)if(n!=="range"&&n!=="allDay"){if(e[n]!==t[n])return!1}for(let n in e)if(!(n in t))return!1;return!0}function Ud(e,t){return Object.assign(Object.assign({},Fa(e.range,t,e.allDay)),{allDay:e.allDay})}function yi(e,t,n){return Object.assign(Object.assign({},Fa(e,t,n)),{timeZone:t.timeZone})}function Fa(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function jd(e,t,n){let r=Wn({editable:!1},n),i=It(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:ja(i,t),instance:Wt(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function bi(e,t,n){let r=!1,i=function(l){if(!r)r=!0,t(l)},s=function(l){if(!r)r=!0,n(l)},a=e(i,s);if(a&&typeof a.then==="function")a.then(i,s)}class Br extends Error{constructor(e,t){super(e);this.response=t}}function Ei(e,t,n){e=e.toUpperCase();let r={method:e};if(e==="GET")t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n);else r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"};return fetch(t,r).then((i)=>{if(i.ok)return i.json().then((s)=>[s,i],()=>{throw new Br("Failure parsing JSON",i)});else throw new Br("Request failed",i)})}var Rr;function Si(){if(Rr==null)Rr=Fd();return Rr}function Fd(){if(typeof document>"u")return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let n=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),n}class Yn extends C{constructor(){super(...arguments);this.state={forPrint:!1},this.handleBeforePrint=()=>{kt(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{kt(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||t.height==="auto"||t.contentHeight==="auto",i=!r&&t.height!=null?t.height:"",s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];if(!Si())s.push("fc-liquid-hack");return e.children(s,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class me{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function za(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}function Yt(e){return{[e.component.uid]:e}}var ct={};class ne extends z{constructor(e,t){super(e,t);this.handleRefresh=()=>{let n=this.computeTiming();if(n.state.nowDate.valueOf()!==this.state.nowDate.valueOf())this.setState(n.state);this.clearTimeout(),this.setTimeout(n.waitMs)},this.handleVisibilityChange=()=>{if(!document.hidden)this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){if(e.unit!==this.props.unit)this.clearTimeout(),this.setTimeout()}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:t}=this,n=t.nowManager.getDateMarker(),{nowIndicatorSnap:r}=t.options;if(r==="auto")r=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1;let i,s;if(r)i=t.dateEnv.startOf(n,e.unit),s=t.dateEnv.add(i,w(1,e.unit)).valueOf()-n.valueOf();else i=n,s=60000;return s=Math.min(86400000,s),{state:{nowDate:i,todayRange:zd(i)},waitMs:s}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{let t=this.computeTiming();this.setState(t.state,()=>{this.setTimeout(t.waitMs)})},e)}clearTimeout(){if(this.timeoutId)clearTimeout(this.timeoutId)}}ne.contextType=le;function zd(e){let t=x(e),n=P(t,1);return{start:t,end:n}}class Qn{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;if(n.currentCalendarOptionsRefiners[e])n.emitter.on(e,t);else console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n=this.getCurrentData(),r;if(t=t||"day",r=n.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),r)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r.type,dateMarker:e});else this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:n}=this.getCurrentData(),r=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]),i,s;for(let a in t)r.push(a);for(i=0;i<r.length;i+=1)if(s=t[r[i]],s){if(s.singleUnit===e)return s}return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=w(e);if(n)this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)})}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),M(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),M(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;if(t==null)if(e.start!=null)n=e;else n={start:e,end:null};else n={start:e,end:t};let r=this.getCurrentData(),i=Hd(n,r.dateEnv,w({days:1}));if(i)this.dispatch({type:"SELECT_DATES",selection:i}),qn(i,null,r)}unselect(e){let t=this.getCurrentData();if(t.dateSelection)this.dispatch({type:"UNSELECT_DATES"}),Rd(e,t)}addEvent(e,t){if(e instanceof O){let{_def:s,_instance:a}=e;if(!this.getCurrentData().eventStore.defs[s.defId])this.dispatch({type:"ADD_EVENTS",eventStore:Ot({def:s,instance:a})}),this.triggerEventAdd(e);return e}let n=this.getCurrentData(),r;if(t instanceof We)r=t.internalEventSource;else if(typeof t==="boolean"){if(t)[r]=Ln(n.eventSources)}else if(t!=null){let s=this.getEventSourceById(t);if(!s)return console.warn(`Could not find an event source with ID "${t}"`),null;r=s.internalEventSource}let i=Pa(e,r,n,!1);if(i){let s=new O(n,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ot(i)}),this.triggerEventAdd(s),s}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Ua(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new O(t,s,null);for(let a in r){let l=r[a];if(l.defId===s.defId)return new O(t,s,l)}}}return null}getEvents(){let e=this.getCurrentData();return pe(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new We(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new We(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof We){if(!t.eventSources[e.internalEventSource.sourceId])this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]});return e}let n=ui(e,t);if(n)return this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new We(t,n);return null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=w(e);if(t)this.trigger("_scrollRequest",{time:t})}}function Di(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Zn(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};if(n.left<n.right&&n.top<n.bottom)return n;return!1}function Ai(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function wi(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Ci(e,t){return{left:e.left-t.left,top:e.top-t.top}}var Tr=W();class Xn{constructor(){this.getKeysForEventDefs=S(this._getKeysForEventDefs),this.splitDateSelection=S(this._splitDateSpan),this.splitEventStore=S(this._splitEventStore),this.splitIndividualUi=S(this._splitIndividualUi),this.splitEventDrag=S(this._splitInteraction),this.splitEventResize=S(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),o={};this.eventUiBuilders=se(t,(c,d)=>this.eventUiBuilders[d]||S(Wd));for(let c in t){let d=t[c],u=s[c]||Tr,g=this.eventUiBuilders[c];o[c]={businessHours:d.businessHours||e.businessHours,dateSelection:r[c]||null,eventStore:u,eventUiBases:g(e.eventUiBases[""],d.ui,i[c]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return o}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return se(e.defs,(t)=>this.getKeysForEventDef(t))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let s in n)for(let a of t[s]){if(!i[a])i[a]=W();i[a].defs[s]=n[s]}for(let s in r){let a=r[s];for(let l of t[a.defId])if(i[l])i[l].instances[s]=a}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r]){if(!n[i])n[i]={};n[i][r]=e[r]}return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),s=(a)=>{if(!t[a])t[a]={affectedEvents:n[a]||Tr,mutatedEvents:i[a]||Tr,isEvent:e.isEvent}};for(let a in n)s(a);for(let a in i)s(a)}return t}}function Wd(e,t,n){let r=[];if(e)r.push(e);if(t)r.push(t);let i={"":di(r)};if(n)Object.assign(i,n);return i}function Qt(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&(!r.activeRange||!ie(r.activeRange,e))),isOther:Boolean(r&&!ie(r.currentRange,e)),isToday:Boolean(t&&ie(t,e)),isPast:Boolean(n?e<n:t?e<t.start:!1),isFuture:Boolean(n?e>n:t?e>=t.end:!1)}}function dt(e,t){let n=["fc-day",`fc-day-${Ac[e.dow]}`];if(e.isDisabled)n.push("fc-day-disabled");else{if(e.isToday)n.push("fc-day-today"),n.push(t.getClass("today"));if(e.isPast)n.push("fc-day-past");if(e.isFuture)n.push("fc-day-future");if(e.isOther)n.push("fc-day-other")}return n}var Vd=M({year:"numeric",month:"long",day:"numeric"}),Gd=M({week:"long"});function ve(e,t,n="day",r=!0){let{dateEnv:i,options:s,calendarApi:a}=e,l=i.format(t,n==="week"?Gd:Vd);if(s.navLinks){let o=i.toDate(t),c=(d)=>{let u=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;if(typeof u==="function")u.call(a,i.toDate(t),d);else{if(typeof u==="string")n=u;a.zoomTo(t,n)}};return Object.assign({title:rt(s.navLinkHint,[l,o],l),"data-navlink":""},r?ha(c):{onClick:c})}return{"aria-label":l}}var xr=null;function Wa(){if(xr===null)xr=qd();return xr}function qd(){let e=document.createElement("div");qe(e,{position:"absolute",top:-1000,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let n=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Bt(e),n}var Mr;function Va(){if(!Mr)Mr=Yd();return Mr}function Yd(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Ga(e);return document.body.removeChild(e),t}function Ga(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function qa(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,l=Ga(e),o=l.y-r-i,c=l.x-s-a,d={borderLeft:r,borderRight:i,borderTop:s,borderBottom:a,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};if(Wa()&&n.direction==="rtl")d.scrollbarLeft=o;else d.scrollbarRight=o;if(t)d.paddingLeft=parseInt(n.paddingLeft,10)||0,d.paddingRight=parseInt(n.paddingRight,10)||0,d.paddingTop=parseInt(n.paddingTop,10)||0,d.paddingBottom=parseInt(n.paddingBottom,10)||0;return d}function _i(e,t=!1,n){let r=n?e.getBoundingClientRect():Zt(e),i=qa(e,t),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};if(t)s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom;return s}function Zt(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function Qd(e){let t=$n(e),n=e.getBoundingClientRect();for(let r of t){let i=Zn(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function $n(e){let t=[];while(e instanceof HTMLElement){let n=window.getComputedStyle(e);if(n.position==="fixed")break;if(/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX))t.push(e);e=e.parentNode}return t}class ye{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();if(n)this.buildElHorizontals(i.left);if(r)this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let{lefts:t,rights:n}=this,r=t.length,i;for(i=0;i<r;i+=1)if(e>=t[i]&&e<n[i])return i;return}topToIndex(e){let{tops:t,bottoms:n}=this,r=t.length,i;for(i=0;i<r;i+=1)if(e>=t[i]&&e<n[i])return i;return}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Sn(this.tops||[],e.tops||[])&&Sn(this.bottoms||[],e.bottoms||[])&&Sn(this.lefts||[],e.lefts||[])&&Sn(this.rights||[],e.rights||[])}}function Sn(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class ut{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Jn extends ut{constructor(e){super();this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Kn extends ut{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class V extends C{constructor(){super(...arguments);this.uid=Se()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!F(e,".fc-event-mirror")}isValidDateDownEl(e){return!F(e,".fc-event:not(.fc-bg-event)")&&!F(e,".fc-more-link")&&!F(e,"a[data-navlink]")&&!F(e,".fc-popover")}}class ft{constructor(e=(t)=>t.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);if(this.isInsertionValid(n,e))this.insertEntryAt(e,n);else this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){let r=Object.assign(Object.assign({},t),{span:Xt(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,i=t.span;if(r.start<i.start)this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:i.start}},n);if(r.end>i.end)this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;if(t.lateral===-1)kr(r,t.level,t.levelCoord),kr(n,t.level,[e]);else kr(n[t.level],t.lateral,e);this.stackCnts[fe(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,s=t.length,a=0,l=-1,o=-1,c=null,d=0;for(let f=0;f<s;f+=1){let p=t[f];if(!r&&p>=a+this.getEntryThickness(e))break;let m=n[f],b,y=Ht(m,e.span.start,Pt),E=y[0]+y[1];while((b=m[E])&&b.span.start<e.span.end){let A=p+this.getEntryThickness(b);if(A>a)a=A,c=b,l=f,o=E;if(A===a)d=Math.max(d,i[fe(b)]+1);E+=1}}let u=0;if(c){u=l+1;while(u<s&&t[u]<a)u+=1}let g=-1;if(u<s&&t[u]===a)g=Ht(n[u],e.span.end,Pt)[0];return{touchingLevel:l,touchingLateral:o,touchingEntry:c,stackCnt:d,levelCoord:a,level:u,lateral:g}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let s=e[i],a=t[i];for(let l of s)r.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:a}))}return r}}function Pt(e){return e.span.end}function fe(e){return e.index+":"+e.span.start}function Ri(e){let t=[];for(let n of e){let r=[],i={span:n.span,entries:[n]};for(let s of t)if(Xt(s.span,i.span))i={entries:s.entries.concat(i.entries),span:Zd(s.span,i.span)};else r.push(s);r.push(i),t=r}return t}function Zd(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Xt(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);if(n<r)return{start:n,end:r};return null}function kr(e,t,n){e.splice(t,0,n)}function Ht(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];while(r<i){let s=Math.floor(r+(i-r)/2),a=n(e[s]);if(t<a)i=s;else if(t>a)r=s+1;else return[s,1]}return[r,0]}class er{constructor(e,t){this.emitter=new He}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}var $t={};function Ya(e,t){if(!e||t>10)return M({weekday:"short"});if(t>1)return M({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0});return M({weekday:"long"})}var Qa="fc-col-header-cell";function Za(e){return e.text}class Ti extends C{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:s,dateProfile:a}=i,l=Qt(s,i.todayRange,null,a),o=[Qa].concat(dt(l,n)),c=e.format(s,i.dayHeaderFormat),d=!l.isDisabled&&i.colCnt>1?ve(this.context,s):{},u=e.toDate(s);if(e.namedTimeZoneImpl)u=ue(u,3600000);let g=Object.assign(Object.assign(Object.assign({date:u,view:r},i.extraRenderProps),{text:c}),l);return h(L,{elTag:"th",elClasses:o,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":!l.isDisabled?Ie(s):void 0},i.extraDataAttrs),renderProps:g,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:Za,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(f)=>h("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&h(f,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}var Xd=M({weekday:"long"});class xi extends C{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,s=P(new Date(259200000),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=t.format(s,e.dayHeaderFormat),o=Object.assign(Object.assign(Object.assign(Object.assign({date:s},a),{view:r}),e.extraRenderProps),{text:l});return h(L,{elTag:"th",elClasses:[Qa,...dt(a,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:o,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Za,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(c)=>h("div",{className:"fc-scrollgrid-sync-inner"},h(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(s,Xd)}})))}}class ht extends C{constructor(){super(...arguments);this.createDayHeaderFormatter=S($d)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return h(ne,{unit:"day"},(a,l)=>h("tr",{role:"row"},i&&i("day"),t.map((o)=>r?h(Ti,{key:o.toISOString(),date:o,dateProfile:n,todayRange:l,colCnt:t.length,dayHeaderFormat:s}):h(xi,{key:o.getUTCDay(),dow:o.getUTCDay(),dayHeaderFormat:s}))))}}function $d(e,t,n){return e||Ya(t,n)}class gt{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],a=-1;while(n<r){if(t.isHiddenDay(n))i.push(a+0.5);else a+=1,i.push(a),s.push(n);n=P(n,1)}this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(P(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);if(r=Math.ceil(r),i=Math.floor(i),r<=i)return{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i};return null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(he(this.dates[0],e));if(n<0)return t[0]-1;if(n>=t.length)return t[t.length-1]+1;return t[n]}}class pt{constructor(e,t){let{dates:n}=e,r,i,s;if(t){i=n[0].getUTCDay();for(r=1;r<n.length;r+=1)if(n[r].getUTCDay()===i)break;s=Math.ceil(n.length/r)}else s=1,r=n.length;this.rowCnt=s,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:i,lastIndex:s}=n,a=i;while(a<=s){let l=Math.floor(a/t),o=Math.min((l+1)*t,s+1);r.push({row:l,firstCol:a%t,lastCol:(o-1)%t,isStart:n.isStart&&a===i,isEnd:n.isEnd&&o-1===s}),a=o}}return r}}class mt{constructor(){this.sliceBusinessHours=S(this._sliceBusinessHours),this.sliceDateSelection=S(this._sliceDateSpan),this.sliceEventStore=S(this._sliceEventStore),this.sliceEventDrag=S(this._sliceInteraction),this.sliceEventResize=S(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:s}=e,a=this.sliceEventStore(e.eventStore,s,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,s,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,s,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...i){return this._sliceDateSpan({range:{start:e,end:ue(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){if(!e)return[];return this._sliceEventStore(Ge(e,Dn(t,Boolean(n)),r),{},t,n,...i).bg}_sliceEventStore(e,t,n,r,...i){if(e){let s=tt(e,t,Dn(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let s=tt(e.mutatedEvents,t,Dn(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...s){if(!e)return[];let a=Dn(t,Boolean(n)),l=J(e.range,a);if(l){e=Object.assign(Object.assign({},e),{range:l});let o=jd(e,r,i),c=this.sliceRange(e.range,...s);for(let d of c)d.eventRange=o;return c}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;if(this.forceDayIfListItem&&e.ui.display==="list-item")n={start:n.start,end:P(n.start,1)};let r=this.sliceRange(n,...t);for(let i of r)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return r}}function Dn(e,t){let n=e.activeRange;if(t)return n;return{start:ue(n.start,e.slotMinTime.milliseconds),end:ue(n.end,e.slotMaxTime.milliseconds-86400000)}}function tr(e,t,n){let{instances:r}=e.mutatedEvents;for(let i in r)if(!st(t.validRange,r[i].range))return!1;return Xa({eventDrag:e},n)}function Mi(e,t,n){if(!st(t.validRange,e.range))return!1;return Xa({dateSelection:e},n)}function Xa(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||$a)(r,t)}function $a(e,t,n={},r){if(e.eventDrag&&!Jd(e,t,n,r))return!1;if(e.dateSelection&&!Kd(e,t,n,r))return!1;return!0}function Jd(e,t,n,r){let i=t.getCurrentData(),s=e.eventDrag,a=s.mutatedEvents,{defs:l,instances:o}=a,c=kn(l,s.isEvent?e.eventUiBases:{"":i.selectionConfig});if(r)c=se(c,r);let d=Sd(e.eventStore,s.affectedEvents.instances),{defs:u,instances:g}=d,f=kn(u,e.eventUiBases);for(let p in o){let m=o[p],b=m.range,y=c[m.defId],E=l[m.defId];if(!Ja(y.constraints,b,d,e.businessHours,t))return!1;let{eventOverlap:A}=t.options,_=typeof A==="function"?A:null;for(let I in g){let N=g[I];if(Fn(b,N.range)){if(f[N.defId].overlap===!1&&s.isEvent)return!1;if(y.overlap===!1)return!1;if(_&&!_(new O(t,u[N.defId],N),new O(t,E,m)))return!1}}let k=i.eventStore;for(let I of y.allows){let N=Object.assign(Object.assign({},n),{range:m.range,allDay:E.allDay}),T=k.defs[E.defId],Q=k.instances[p],H;if(T)H=new O(t,T,Q);else H=new O(t,E);if(!I(pi(N,t),H))return!1}}return!0}function Kd(e,t,n,r){let i=e.eventStore,{defs:s,instances:a}=i,l=e.dateSelection,o=l.range,{selectionConfig:c}=t.getCurrentData();if(r)c=r(c);if(!Ja(c.constraints,o,i,e.businessHours,t))return!1;let{selectOverlap:d}=t.options,u=typeof d==="function"?d:null;for(let g in a){let f=a[g];if(Fn(o,f.range)){if(c.overlap===!1)return!1;if(u&&!u(new O(t,s[f.defId],f),null))return!1}}for(let g of c.allows){let f=Object.assign(Object.assign({},n),l);if(!g(pi(f,t),null))return!1}return!0}function Ja(e,t,n,r,i){for(let s of e)if(!tu(eu(s,t,n,r,i),t))return!1;return!0}function eu(e,t,n,r,i){if(e==="businessHours")return Ir(Ge(r,t,i));if(typeof e==="string")return Ir(Gn(n,(s)=>s.groupId===e));if(typeof e==="object"&&e)return Ir(Ge(e,t,i));return[]}function Ir(e){let{instances:t}=e,n=[];for(let r in t)n.push(t[r].range);return n}function tu(e,t){for(let n of e)if(st(n,t))return!0;return!1}var An=/^(visible|hidden)$/;class Jt extends C{constructor(){super(...arguments);this.handleEl=(e)=>{this.el=e,ee(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=["fc-scroller"];if(t)if(n)i.push("fc-scroller-liquid-absolute");else i.push("fc-scroller-liquid");return h("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(An.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let r=0;r<n.length;r+=1)if(n[r].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(An.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let r=0;r<n.length;r+=1)if(n[r].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){if(An.test(this.props.overflowX))return 0;return this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){if(An.test(this.props.overflowY))return 0;return this.el.offsetWidth-this.el.clientWidth}}class K{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,n)=>{let{depths:r,currentMap:i}=this,s=!1,a=!1;if(t!==null)s=n in i,i[n]=t,r[n]=(r[n]||0)+1,a=!0;else if(r[n]-=1,!r[n])delete i[n],delete this.callbackMap[n],s=!0;if(this.masterCallback){if(s)this.masterCallback(null,String(n));if(a)this.masterCallback(t,String(n))}}}createRef(e){let t=this.callbackMap[e];if(!t)t=this.callbackMap[e]=(n)=>{this.handleValue(n,String(e))};return t}collect(e,t,n){return Ca(this.currentMap,e,t,n)}getAll(){return Ln(this.currentMap)}}function Ka(e){let t=ua(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,vc(r));return Math.ceil(n)}function ki(e,t){return e.liquid&&t.liquid}function el(e,t){return t.maxHeight!=null||ki(e,t)}function tl(e,t,n,r){let{expandRows:i}=n;return typeof t.content==="function"?t.content(n):h("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,h(r?"thead":"tbody",{role:"presentation"},typeof t.rowContent==="function"?t.rowContent(n):t.rowContent))}function nl(e,t){return ce(e,t,G)}function rl(e,t){let n=[];for(let r of e){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(h("col",{style:{width:r.width==="shrink"?il(t):r.width||"",minWidth:r.minWidth||""}}))}return h("colgroup",{},...n)}function il(e){return e==null?4:e}function sl(e){for(let t of e)if(t.width==="shrink")return!0;return!1}function al(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];if(e)n.push("fc-scrollgrid-liquid");return n}function ll(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];if(t&&e.liquid&&e.maxHeight==null)n.push("fc-scrollgrid-section-liquid");if(e.isSticky)n.push("fc-scrollgrid-section-sticky");return n}function vt(e){return h("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Qe(e){let{stickyHeaderDates:t}=e;if(t==null||t==="auto")t=e.height==="auto"||e.viewHeight==="auto";return t}function Kt(e){let{stickyFooterScrollbar:t}=e;if(t==null||t==="auto")t=e.height==="auto"||e.viewHeight==="auto";return t}class Ze extends C{constructor(){super(...arguments);this.processCols=S((e)=>e,nl),this.renderMicroColGroup=S(rl),this.scrollerRefs=new K,this.scrollerElRefs=new K(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],i=this.processCols(e.cols),s=this.renderMicroColGroup(i,t.shrinkWidth),a=al(e.liquid,n);if(e.collapsibleWidth)a.push("fc-scrollgrid-collapsible");let l=r.length,o=0,c,d=[],u=[],g=[];while(o<l&&(c=r[o]).type==="header")d.push(this.renderSection(c,s,!0)),o+=1;while(o<l&&(c=r[o]).type==="body")u.push(this.renderSection(c,s,!1)),o+=1;while(o<l&&(c=r[o]).type==="footer")g.push(this.renderSection(c,s,!0)),o+=1;let f=!Si(),p={role:"rowgroup"};return h("table",{role:"grid",className:a.join(" "),style:{height:e.height}},Boolean(!f&&d.length)&&h("thead",p,...d),Boolean(!f&&u.length)&&h("tbody",p,...u),Boolean(!f&&g.length)&&h("tfoot",p,...g),f&&h("tbody",p,...d,...u,...g))}renderSection(e,t,n){if("outerContent"in e)return h(R,{key:e.key},e.outerContent);return h("tr",{key:e.key,role:"presentation",className:ll(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:i}=this,{forceYScrollbars:s,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,o=el(i,e),c=ki(i,e),d=!i.liquid?"visible":s?"scroll":!o?"hidden":"auto",u=e.key,g=tl(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!i.collapsibleWidth&&a[u]!==void 0?a[u]:null,clientHeight:l[u]!==void 0?l[u]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return h(r?"th":"td",{ref:n.elRef,role:"presentation"},h("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},h(Jt,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:!i.liquid?"visible":"hidden",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},g)))}_handleScrollerEl(e,t){let n=nu(this.props.sections,t);if(n)ee(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return sl(this.props.cols)?Ka(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Va(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},s={};for(let a in t.currentMap){let l=t.currentMap[a];if(l&&l.needsYScrolling()){r=!0;break}}for(let a of this.props.sections){let l=a.key,o=n.currentMap[l];if(o){let c=o.parentNode;i[l]=Math.floor(c.getBoundingClientRect().width-(r?e.y:0)),s[l]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:s}}}Ze.addStateEquality({scrollerClientWidths:G,scrollerClientHeights:G});function nu(e,t){for(let n of e)if(n.key===t)return n;return null}class Le extends C{constructor(){super(...arguments);this.buildPublicEvent=S((e,t,n)=>new O(e,t,n)),this.handleEl=(e)=>{if(this.el=e,ee(this.props.elRef,e),e)ia(e,this.props.seg)}}render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:i}=r,{ui:s}=i,a={event:this.buildPublicEvent(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&kd(r,t),isStartResizable:!e.disableResizing&&Id(r,t),isEndResizable:!e.disableResizing&&Nd(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return h(L,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...Od(a),...r.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:a,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){if(this.el&&this.props.seg!==e.seg)ia(this.el,this.props.seg)}}class Xe extends C{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,s=n.eventTimeFormat||e.defaultTimeFormat,a=Be(r,s,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return h(Le,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:ot(r,t),defaultGenerator:ru,timeText:a}),(l,o)=>h(R,null,h(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:o.textColor}}),Boolean(o.isStartResizable)&&h("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(o.isEndResizable)&&h("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}Xe.addPropsEquality({seg:G});function ru(e){return h("div",{className:"fc-event-main-frame"},e.timeText&&h("div",{className:"fc-event-time"},e.timeText),h("div",{className:"fc-event-title-container"},h("div",{className:"fc-event-title fc-sticky"},e.event.title||h(R,null," "))))}var en=(e)=>h(le.Consumer,null,(t)=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return h(L,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}),iu=M({day:"numeric"});class $e extends C{constructor(){super(...arguments);this.refineRenderProps=it(su)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return h(L,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":Ie(e.date)}),elClasses:[...dt(r,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}}function yt(e){return Boolean(e.dayCellContent||Pr("dayCellContent",e))}function su(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,s=Qt(t,e.todayRange,null,r),a=e.showDayNumber?n.format(t,i?e.monthStartFormat:iu):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},s),{isMonthStart:i,dayNumberText:a}),e.extraRenderProps)}class bt extends C{render(){let{props:e}=this,{seg:t}=e;return h(Le,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:au,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function au(e){let{title:t}=e.event;return t&&h("div",{className:"fc-event-title"},e.event.title)}function tn(e){return h("div",{className:`fc-${e}`})}var nn=(e)=>h(le.Consumer,null,(t)=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,a=n.computeWeekNumber(i),l=n.format(i,s),o={num:a,text:l,date:i};return h(L,{elRef:e.elRef,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:lu,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)});function lu(e){return e.text}var Nr=10;class ol extends C{constructor(){super(...arguments);this.state={titleId:ae()},this.handleRootEl=(e)=>{if(this.rootEl=e,this.props.elRef)ee(this.props.elRef,e)},this.handleDocumentMouseDown=(e)=>{let t=In(e);if(!this.rootEl.contains(t))this.handleCloseClick()},this.handleDocumentKeyDown=(e)=>{if(e.key==="Escape")this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;if(e)e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,i=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return Vs(h("div",Object.assign({},n.extraAttrs,{id:n.id,className:i.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),h("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},h("span",{className:"fc-popover-title",id:r.titleId},n.title),h("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),h("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=Qd(t);if(i){let s=r.getBoundingClientRect(),a=n?F(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-s.width:i.left;a=Math.max(a,Nr),l=Math.min(l,document.documentElement.clientWidth-Nr-s.width),l=Math.max(l,Nr);let o=r.offsetParent.getBoundingClientRect();qe(r,{top:a-o.top,left:l-o.left})}}}class cl extends V{constructor(){super(...arguments);this.handleRootEl=(e)=>{if(this.rootEl=e,e)this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1});else this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:s}=n,a=t.format(r,e.dayPopoverFormat);return h($e,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},(l,o,c)=>h(ol,{elRef:c.ref,id:n.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},yt(e)&&h(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,t,n,r){let{rootEl:i,props:s}=this;if(e>=0&&e<n&&t>=0&&t<r)return{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1};return null}}class Et extends C{constructor(){super(...arguments);this.state={isPopoverOpen:!1,popoverId:ae()},this.handleLinkEl=(e)=>{if(this.linkEl=e,this.props.elRef)ee(this.props.elRef,e)},this.handleClick=(e)=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=sa(t).start;function s(a){let{def:l,instance:o,range:c}=a.eventRange;return{event:new O(n,l,o),start:n.dateEnv.toDate(c.start),end:n.dateEnv.toDate(c.end),isStart:a.isStart,isEnd:a.isEnd}}if(typeof r==="function")r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(s),hiddenSegs:t.hiddenSegs.map(s),jsEvent:e,view:n.viewApi});if(!r||r==="popover")this.setState({isPopoverOpen:!0});else if(typeof r==="string")n.calendarApi.zoomTo(i,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return h(le.Consumer,null,(n)=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:a}=i,{moreCnt:l}=e,o=sa(e),c=typeof a==="function"?a.call(s,l):`+${l} ${a}`,d=rt(i.moreLinkHint,[l],c),u={num:l,shortText:`+${l}`,text:c,view:r};return h(R,null,Boolean(e.moreCnt)&&h(L,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),ha(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||ou,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&h(cl,{id:t.popoverId,startDate:o.start,endDate:o.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){if(this.linkEl)this.parentEl=F(this.linkEl,".fc-view-harness")}}function ou(e){return e.text}function sa(e){if(e.allDayDate)return{start:e.allDayDate,end:P(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:nr(t),end:du(t)}}function nr(e){return e.reduce(cu).eventRange.range.start}function cu(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function du(e){return e.reduce(uu).eventRange.range.end}function uu(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var fu=[],vl={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"},yl=Object.assign(Object.assign({},vl),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function hu(e){let t=e.length>0?e[0].code:"en",n=fu.concat(e),r={en:yl};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function bl(e,t){if(typeof e==="object"&&!Array.isArray(e))return El(e.code,[e.code],e);return gu(e,t)}function gu(e,t){let n=[].concat(e||[]),r=pu(n,t)||yl;return El(e,n,r)}function pu(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(t[s])return t[s]}}return null}function El(e,t,n){let r=Bn([vl,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Y(e){return{majorVersionError:aa,id:Se(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function mu(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(s){for(let a of s){let l=a.name,o=n[l];if(o===void 0)n[l]=a.id,i(a.deps),r=yu(r,a);else if(o!==a.id)console.warn(`Duplicate plugin '${l}'`)}}if(e)i(e);return i(t),r}function vu(){let e=[],t=[],n;return(r,i)=>{if(!n||!ce(r,e)||!ce(i,t))n=mu(r,i);return e=r,t=i,n}}function yu(e,t){return{premiumReleaseDate:bu(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function bu(e,t){if(e===void 0)return t;if(t===void 0)return e;return new Date(Math.max(e.valueOf(),t.valueOf()))}class we extends Pe{}we.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};we.prototype.baseIconClass="fc-icon";we.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"};we.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};we.prototype.iconOverrideOption="buttonIcons";we.prototype.iconOverrideCustomButtonOption="icon";we.prototype.iconOverridePrefix="fc-icon-";function Eu(e,t){let n={},r;for(r in e)Ni(r,n,e,t);for(r in t)Ni(r,n,e,t);return n}function Ni(e,t,n,r){if(t[e])return t[e];let i=Su(e,t,n,r);if(i)t[e]=i;return i}function Su(e,t,n,r){let i=n[e],s=r[e],a=(d)=>i&&i[d]!==null?i[d]:s&&s[d]!==null?s[d]:null,l=a("component"),o=a("superType"),c=null;if(o){if(o===e)throw Error("Can't have a custom view type that references itself");c=Ni(o,t,n,r)}if(!l&&c)l=c.component;if(!l)return null;return{type:e,component:l,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}}function dl(e){return se(e,Du)}function Du(e){let t=typeof e==="function"?{component:e}:e,{component:n}=t;if(t.content)n=ul(t);else if(n&&!(n.prototype instanceof C))n=ul(Object.assign(Object.assign({},t),{content:n}));return{superType:t.type,component:n,rawOptions:t}}function ul(e){return(t)=>h(le.Consumer,null,(n)=>h(L,{elTag:"div",elClasses:li(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function Au(e,t,n,r){let i=dl(e),s=dl(t.views),a=Eu(i,s);return se(a,(l)=>wu(l,s,t,n,r))}function wu(e,t,n,r,i){let s=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,l="",o="",c={};if(s){if(a=Cu(s),a){let g=Mt(a);if(l=g.unit,g.value===1)o=l,c=t[l]?t[l].rawOptions:{}}}let d=(g)=>{let f=g.buttonText||{},p=e.defaults.buttonTextKey;if(p!=null&&f[p]!=null)return f[p];if(f[e.type]!=null)return f[e.type];if(f[o]!=null)return f[o];return null},u=(g)=>{let f=g.buttonHints||{},p=e.defaults.buttonTextKey;if(p!=null&&f[p]!=null)return f[p];if(f[e.type]!=null)return f[e.type];if(f[o]!=null)return f[o];return null};return{type:e.type,component:e.component,duration:a,durationUnit:l,singleUnit:o,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(Ne)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(Ne)}}var fl={};function Cu(e){let t=JSON.stringify(e),n=fl[t];if(n===void 0)n=w(e),fl[t]=n;return n}function _u(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function Ru(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function Tu(e,t,n){let r=e.initialDate;if(r!=null)return t.createMarker(r);return n.getDateMarker()}function xu(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function Mu(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function ku(e,t,n){let r=t?t.activeRange:null;return Dl({},Lu(e,n),r,n)}function Iu(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Dl(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return Ou(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(n)return Al(e,i,r);return e;case"FETCH_EVENT_SOURCES":return Hi(e,t.sourceIds?ri(t.sourceIds):wl(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Bu(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Nu(e,t,n){let r=t?t.activeRange:null;return Hi(e,wl(e,n),r,!0,n)}function Sl(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Dl(e,t,n,r){let i={};for(let s of t)i[s.sourceId]=s;if(n)i=Al(i,n,r);return Object.assign(Object.assign({},e),i)}function Ou(e,t){return Ee(e,(n)=>n.sourceId!==t)}function Al(e,t,n){return Hi(e,Ee(e,(r)=>Pu(r,t,n)),t,!1,n)}function Pu(e,t,n){if(!Cl(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}function Hi(e,t,n,r,i){let s={};for(let a in e){let l=e[a];if(t[a])s[a]=Hu(l,n,r,i);else s[a]=l}return s}function Hu(e,t,n,r){let{options:i,calendarApi:s}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],l=Se();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},(o)=>{let{rawEvents:c}=o;if(i.eventSourceSuccess)c=i.eventSourceSuccess.call(s,c,o.response)||c;if(e.success)c=e.success.call(s,c,o.response)||c;r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:c})},(o)=>{let c=!1;if(i.eventSourceFailure)i.eventSourceFailure.call(s,o),c=!0;if(e.failure)e.failure(o),c=!0;if(!c)console.warn(o.message,o);r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:o})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:l})}function Bu(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}function wl(e,t){return Ee(e,(n)=>Cl(n,t))}function Lu(e,t){let n=fi(t),r=[].concat(e.eventSources||[]),i=[];if(e.initialEvents)r.unshift(e.initialEvents);if(e.events)r.unshift(e.events);for(let s of r){let a=ui(s,t,n);if(a)i.push(a)}return i}function Cl(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Uu(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function ju(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function Fu(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function zu(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Wu(e,t,n,r,i){let s=e.headerToolbar?hl(e.headerToolbar,e,t,n,r,i):null,a=e.footerToolbar?hl(e.footerToolbar,e,t,n,r,i):null;return{header:s,footer:a}}function hl(e,t,n,r,i,s){let a={},l=[],o=!1;for(let c in e){let d=e[c],u=Vu(d,t,n,r,i,s);a[c]=u.widgets,l.push(...u.viewsWithButtons),o=o||u.hasTitle}return{sectionWidgets:a,viewsWithButtons:l,hasTitle:o}}function Vu(e,t,n,r,i,s){let a=t.direction==="rtl",l=t.customButtons||{},o=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},u=t.buttonHints||{},g=e?e.split(" "):[],f=[],p=!1;return{widgets:g.map((b)=>b.split(",").map((y)=>{if(y==="title")return p=!0,{buttonName:y};let E,A,_,k,I,N;if(E=l[y]){_=(Q)=>{if(E.click)E.click.call(Q.target,Q,Q.target)};let T=gl(E.text,y);(k=r.getCustomButtonIconClass(E))||(k=r.getIconClass(y,a))||(I=T),N=E.hint||T}else if(A=i[y]){f.push(y),_=()=>{s.changeView(y)},(I=A.buttonTextOverride)||(k=r.getIconClass(y,a))||(I=A.buttonTextDefault);let T=A.buttonTextOverride||A.buttonTextDefault;N=rt(A.buttonTitleOverride||A.buttonTitleDefault||t.viewHint,[T,y],T)}else if(s[y])if(_=()=>{s[y]()},(I=o[y])||(k=r.getIconClass(y,a))||(I=c[y]),y==="prevYear"||y==="nextYear"){let T=y==="prevYear"?"prev":"next";N=rt(d[T]||u[T],[c.year||"year","year"],c[y])}else N=(T)=>rt(d[y]||u[y],[c[T]||T,T],c[y]);return I=gl(I,y),{buttonName:y,buttonClick:_,buttonIcon:k,buttonText:I,buttonHint:N}})),viewsWithButtons:f,hasTitle:p}}function gl(e,t){if(e==null||typeof e==="string")return e;if(typeof e==="number")return String(e);return Lr(`Button text must be a string (button '${t}'). For custom button content, v7 supports the \`iconContent\` setting.`),t}class _l{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}var Gu={ignoreRange:!0,parseMeta(e){if(Array.isArray(e.events))return e.events;return null},fetch(e,t){t({rawEvents:e.eventSource.meta})}},qu=Y({name:"array-event-source",eventSourceDefs:[Gu]}),Yu={parseMeta(e){if(typeof e.events==="function")return e.events;return null},fetch(e,t,n){let{dateEnv:r}=e.context,i=e.eventSource.meta;bi(i.bind(null,yi(e.range,r)),(s)=>t({rawEvents:s}),n)}},Qu=Y({name:"func-event-source",eventSourceDefs:[Yu]}),Zu={method:String,extraParams:v,startParam:String,endParam:String,timeZoneParam:String},Xu={parseMeta(e){if(e.url&&(e.format==="json"||!e.format))return{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam};return null},fetch(e,t,n){let{meta:r}=e.eventSource,i=Ju(r,e.range,e.context);Ei(r.method,r.url,i).then(([s,a])=>{t({rawEvents:s,response:a})},n)}},$u=Y({name:"json-event-source",eventSourceRefiners:Zu,eventSourceDefs:[Xu]});function Ju(e,t,n){let{dateEnv:r,options:i}=n,s,a,l,o,c={};if(s=e.startParam,s==null)s=i.startParam;if(a=e.endParam,a==null)a=i.endParam;if(l=e.timeZoneParam,l==null)l=i.timeZoneParam;if(typeof e.extraParams==="function")o=e.extraParams();else o=e.extraParams||{};if(Object.assign(c,o),c[s]=r.formatIso(t.start),c[a]=r.formatIso(t.end),r.timeZone!=="local")c[l]=r.timeZone;return c}var Ku={daysOfWeek:v,startTime:w,endTime:w,duration:w,startRecur:v,endRecur:v},ef={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t},r;if(e.duration)r=e.duration;if(!r&&e.startTime&&e.endTime)r=ya(e.endTime,e.startTime);return{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}return null},expand(e,t,n){let r=J(t,{start:e.startRecur,end:e.endRecur});if(r)return nf(e.daysOfWeek,e.startTime,e.dateEnv,n,r);return[]}},tf=Y({name:"simple-recurring-event",recurringTypes:[ef],eventRefiners:Ku});function nf(e,t,n,r,i){let s=e?ri(e):null,a=x(i.start),l=i.end,o=[];if(t){if(t.milliseconds<0)l=P(l,1);else if(t.milliseconds>=86400000)a=P(a,-1)}while(a<l){let c;if(!s||s[a.getUTCDay()]){if(t)c=r.add(a,t);else c=a;o.push(r.createMarker(n.toDate(c)))}a=P(a,1)}return o}var rf=Y({name:"change-handler",optionChangeHandlers:{events(e,t){pl([e],t)},eventSources:pl}});function pl(e,t){let n=Ln(t.getCurrentData().eventSources);if(n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])){t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});return}let r=[];for(let i of e){let s=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===i){n.splice(a,1),s=!0;break}if(!s)r.push(i)}for(let i of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)t.calendarApi.addEventSource(i)}function sf(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},yi(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function af(e,t){let{emitter:n}=t;if(n.hasHandlers("eventsSet"))n.trigger("eventsSet",pe(e,t))}var lf=[qu,Qu,$u,tf,rf,Y({name:"misc",isLoadingFuncs:[(e)=>Sl(e.eventSources)],propSetHandlers:{dateProfile:sf,eventStore:af}})];class Rl{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new nt(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;while(e.length){let t=[],n;while(n=e.shift())this.runTask(n),t.push(n);this.drained(t)}}runTask(e){if(this.runTaskOption)this.runTaskOption(e)}drained(e){if(this.drainedOption)this.drainedOption(e)}}function of(e,t,n){let r;if(/^(year|month)$/.test(e.currentRangeUnit))r=e.currentRange;else r=e.activeRange;return n.formatRange(r.start,r.end,M(t.titleFormat||cf(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function cf(e){let{currentRangeUnit:t}=e;if(t==="year")return{year:"numeric"};if(t==="month")return{year:"numeric",month:"long"};let n=et(e.currentRange.start,e.currentRange.end);if(n!==null&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}class Oi{constructor(){this.resetListeners=new Set}handleInput(e,t){let n=this.dateEnv;if(e!==n){if(typeof t==="function")this.nowFn=t;else if(!n)this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now();if(this.dateEnv=e,n)for(let r of this.resetListeners.values())r()}}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class Tl{constructor(e){this.computeCurrentViewData=S(this._computeCurrentViewData),this.organizeRawLocales=S(hu),this.buildLocale=S(bl),this.buildPluginHooks=vu(),this.buildDateEnv=S(df),this.buildTheme=S(uf),this.parseToolbars=S(Wu),this.buildViewSpecs=S(Au),this.buildDateProfileGenerator=it(ff),this.buildViewApi=S(hf),this.buildViewUiProps=it(mf),this.buildEventUiBySource=S(gf,G),this.buildEventUiBases=S(pf),this.parseContextBusinessHours=it(vf),this.buildTitle=S(of),this.nowManager=new Oi,this.emitter=new He,this.actionRunner=new Rl(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=(u)=>{this.actionRunner.request(u)},this.props=e,this.actionRunner.pause(),this.nowManager=new Oi;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let s={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a=Tu(n.calendarOptions,n.dateEnv,this.nowManager),l=i.dateProfileGenerator.build(a);if(!ie(l.activeRange,a))a=l.currentRange.start;for(let u of n.pluginHooks.contextInit)u(s);let o=ku(n.calendarOptions,l,s),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:a,dateProfile:l,businessHours:this.parseContextBusinessHours(s),eventSources:o,eventUiBases:{},eventStore:W(),renderableEventStore:W(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},d=Object.assign(Object.assign({},s),c);for(let u of n.pluginHooks.reducers)Object.assign(c,u(null,null,d));if(Ii(c,s))this.emitter.trigger("loading",!0);this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;if(t===void 0)n.optionOverrides=e;else n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t);if(t===void 0||t.length)this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=xu(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),a=_u(n.currentViewType,e),l=this.computeCurrentViewData(a,s,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(l.options);let o={nowManager:this.nowManager,dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=n;if(this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator)d=l.dateProfileGenerator.build(c);if(c=Ru(c,e),d=Mu(d,e,c,l.dateProfileGenerator),e.type==="PREV"||e.type==="NEXT"||!ie(d.currentRange,c))c=d.currentRange.start;let u=Iu(n.eventSources,e,d,o),g=Ha(n.eventStore,e,u,d,o),p=Sl(u)&&!l.options.progressiveEventRendering?n.renderableEventStore||g:g,{eventUiSingleBase:m,selectionConfig:b}=this.buildViewUiProps(o),y=this.buildEventUiBySource(u),E=this.buildEventUiBases(p.defs,m,y),A={dynamicOptionOverrides:i,currentViewType:a,currentDate:c,dateProfile:d,eventSources:u,eventStore:g,renderableEventStore:p,selectionConfig:b,eventUiBases:E,businessHours:this.parseContextBusinessHours(o),dateSelection:Uu(n.dateSelection,e),eventSelection:ju(n.eventSelection,e),eventDrag:Fu(n.eventDrag,e),eventResize:zu(n.eventResize,e)},_=Object.assign(Object.assign({},o),A);for(let N of s.pluginHooks.reducers)Object.assign(A,N(n,e,_));let k=Ii(n,o),I=Ii(A,o);if(!k&&I)r.trigger("loading",!0);else if(k&&!I)r.trigger("loading",!1);if(this.state=A,t.onAction)t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),a=r.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,o=r.calendarOptions;if(l&&l!==o){if(l.timeZone!==o.timeZone)t.eventSources=s.eventSources=Nu(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=hi(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=hi(s.renderableEventStore,n.dateEnv,s.dateEnv);for(let c in a)if(this.optionsForHandling.indexOf(c)!==-1||l[c]!==o[c])a[c](o[c],s)}if(this.optionsForHandling=[],e.onData)e.onData(s)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:a,extra:l}=this.processRawCalendarOptions(e,t);ml(l);let o=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,a,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,this.stableOptionOverrides,d,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:o,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:a.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Pn([Ne,e,t]),i=this.organizeRawLocales(n),s=i.map,a=this.buildLocale(r||i.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],lf),o=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ei),ti),ni),l.listenerRefiners),l.optionRefiners),c={},d=Pn([Ne,a,e,t]),u={},g=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,p=!1;for(let m in d)if(this.optionsForRefining.indexOf(m)===-1&&(d[m]===g[m]||Oe[m]&&(m in g)&&Oe[m](g[m],d[m])))u[m]=f[m];else if(o[m])u[m]=o[m](d[m]),p=!0;else c[m]=g[m];if(p)this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t;return this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:i,localeDefaults:a,extra:c}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:a}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);ml(a),this.nowManager.handleInput(t.dateEnv,s.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),o=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:i,options:s,dateProfileGenerator:l,viewApi:o}}processRawViewOptions(e,t,n,r,i){let s=Pn([Ne,e.optionDefaults,n,r,e.optionOverrides,i]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ei),ti),ni),wa),t.listenerRefiners),t.optionRefiners),l={},o=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let g in s)if(s[g]===o[g]||Oe[g]&&Oe[g](s[g],o[g]))l[g]=c[g];else{if(s[g]===this.currentCalendarOptionsInput[g]||Oe[g]&&Oe[g](s[g],this.currentCalendarOptionsInput[g])){if(g in this.currentCalendarOptionsRefined)l[g]=this.currentCalendarOptionsRefined[g]}else if(a[g])l[g]=a[g](s[g]);else u[g]=s[g];d=!0}if(d)this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l;return{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function df(e,t,n,r,i,s,a,l){let o=bl(t||a.defaultCode,a.map);return new Un({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:l})}function uf(e,t){return new(t.themeClasses[e.themeSystem]||we)(e)}function ff(e){return new(e.dateProfileGeneratorClass||at)(e)}function hf(e,t,n){return new _l(e,t,n)}function gf(e){return se(e,(t)=>t.ui)}function pf(e,t,n){let r={"":t};for(let i in e){let s=e[i];if(s.sourceId&&n[s.sourceId])r[i]=n[s.sourceId]}return r}function mf(e){let{options:t}=e;return{eventUiSingleBase:lt({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap==="boolean"?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:lt({constraint:t.selectConstraint,overlap:typeof t.selectOverlap==="boolean"?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Ii(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function vf(e){return gi(e.options.businessHours,e)}function ml(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class xl extends C{render(){let e=this.props.widgetGroups.map((t)=>this.renderWidgetGroup(t));return h("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let s of e){let{buttonName:a,buttonClick:l,buttonText:o,buttonIcon:c,buttonHint:d}=s;if(a==="title")i=!1,r.push(h("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let u=a===t.activeButton,g=!t.isTodayEnabled&&a==="today"||!t.isPrevEnabled&&a==="prev"||!t.isNextEnabled&&a==="next",f=[`fc-${a}-button`,n.getClass("button")];if(u)f.push(n.getClass("buttonActive"));r.push(h("button",{type:"button",title:typeof d==="function"?d(t.navUnit):d,disabled:g,"aria-pressed":u,className:f.join(" "),onClick:l},o||(c?h("span",{className:c,role:"img"}):"")))}}if(r.length>1){let s=i&&n.getClass("buttonGroup")||"";return h("div",{className:s},...r)}return r[0]}}class Pi extends C{render(){let{model:e,extraClassName:t}=this.props,n=!1,r,i,s=e.sectionWidgets,a=s.center;if(s.left)n=!0,r=s.left;else r=s.start;if(s.right)n=!0,i=s.right;else i=s.end;return h("div",{className:[t||"","fc-toolbar",n?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",r||[]),this.renderSection("center",a||[]),this.renderSection("end",i||[]))}renderSection(e,t){let{props:n}=this;return h(xl,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class Ml extends C{constructor(){super(...arguments);this.state={availableWidth:null},this.handleEl=(e)=>{this.el=e,ee(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";if(n)if(t.availableWidth!==null)i=t.availableWidth/n;else s=`${1/n*100}%`;else i=e.height||"";return h("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){if(this.el&&this.props.aspectRatio)this.setState({availableWidth:this.el.offsetWidth})}}class kl extends me{constructor(e){super(e);this.handleSegClick=(t,n)=>{let{component:r}=this,{context:i}=r,s=Ae(n);if(s&&r.isValidSegDownEl(t.target)){let a=F(t.target,".fc-event-forced-url"),l="";if(a){let o=a.querySelector("a[href]");l=o?o.href:s.eventRange.def.url}if(i.emitter.trigger("eventClick",{el:n,event:new O(r.context,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi}),l&&!t.defaultPrevented)window.location.href=l}},this.destroy=Fr(e.el,"click",".fc-event",this.handleSegClick)}}class Il extends me{constructor(e){super(e);this.handleEventElRemove=(t)=>{if(t===this.currentSegEl)this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,n)=>{if(Ae(n))this.currentSegEl=n,this.triggerEvent("eventMouseEnter",t,n)},this.handleSegLeave=(t,n)=>{if(this.currentSegEl)this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,n)},this.removeHoverListeners=fa(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=Ae(n);if(!t||r.isValidSegDownEl(t.target))i.emitter.trigger(e,{el:n,event:new O(i,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi})}}class Nl extends De{constructor(){super(...arguments);this.buildViewContext=S(ka),this.buildViewPropTransformers=S(bf),this.buildToolbarProps=S(yf),this.headerRef=U(),this.footerRef=U(),this.interactionsStore={},this.state={viewLabelId:ae()},this.registerInteractiveComponent=(e,t)=>{let n=za(e,t),s=[kl,Il].concat(this.props.pluginHooks.componentInteractions).map((a)=>new a(n));this.interactionsStore[e.uid]=s,ct[e.uid]=n},this.unregisterInteractiveComponent=(e)=>{let t=this.interactionsStore[e.uid];if(t){for(let n of t)n.destroy();delete this.interactionsStore[e.uid]}delete ct[e.uid]},this.resizeRunner=new nt(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=(e)=>{let{options:t}=this.props;if(t.handleWindowResize&&e.target===window)this.resizeRunner.request(t.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:t,options:n}=e,r=!1,i="",s;if(e.isHeightAuto||e.forPrint)i="";else if(n.height!=null)r=!0;else if(n.contentHeight!=null)i=n.contentHeight;else s=Math.max(n.aspectRatio,0.5);let a=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=t.header&&t.header.hasTitle?this.state.viewLabelId:void 0;return h(le.Provider,{value:a},h(ne,{unit:"day"},(o)=>{let c=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,o,e.viewTitle);return h(R,null,t.header&&h(Pi,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:l},c)),h(Ml,{liquid:r,height:i,aspectRatio:s,labeledById:l},this.renderView(e),this.buildAppendContent()),t.footer&&h(Pi,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},c)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((n)=>new n(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)if(t[r]!==e[r])n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map((n)=>n(e));return h(R,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let a of i)Object.assign(r,a.transform(r,e));let s=n.component;return h(s,Object.assign({},r))}}function yf(e,t,n,r,i,s){let a=n.build(i,void 0,!1),l=n.buildPrev(t,r,!1),o=n.buildNext(t,r,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!ie(t.currentRange,i),isPrevEnabled:l.isValid,isNextEnabled:o.isValid}}function bf(e){return e.map((t)=>new t)}class rn extends Qn{constructor(e,t={}){super();this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=(n)=>{switch(n.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=(n)=>{this.currentData=n,this.renderRunner.request(n.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:n}=this;kt(()=>{Re(h(Yn,{options:n.calendarOptions,theme:n.theme,emitter:n.emitter},(r,i,s,a)=>(this.setClassNames(r),this.setHeight(i),h(ai.Provider,{value:this.customContentRenderId},h(Nl,Object.assign({isHeightAuto:s,forPrint:a},n))))),this.el)})}else if(this.isRendered)this.isRendered=!1,Re(null,this.el),this.setClassNames([]),this.setHeight("")},oa(e),this.el=e,this.renderRunner=new nt(this.handleRenderRequest),new Tl({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;if(!e)this.isRendering=!0;else this.customContentRenderId+=1;if(this.renderRunner.request(),e)this.updateSize()}destroy(){if(this.isRendering)this.isRendering=!1,this.renderRunner.request()}updateSize(){kt(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!ce(e,this.currentClassNames)){let{classList:t}=this.el;for(let n of this.currentClassNames)t.remove(n);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){jr(this.el,"height",e)}}class Pl extends V{constructor(){super(...arguments);this.headerElRef=U()}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],s=Qe(r.options);if(e)i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}});return i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),h(ge,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},h(Ze,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw Error("No ScrollGrid implementation");let{props:s,context:a}=this,l=!s.forPrint&&Qe(a.options),o=!s.forPrint&&Kt(a.options),c=[];if(e)c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]});if(c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),o)c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:vt}]});return h(ge,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},h(i,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function ir(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function rr(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function Ol(e,t){let n=[];if(!e)for(let r=0;r<t;r+=1)n[r]=null;else{for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}return n}var Hl=M({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Bl(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class Bi extends C{render(){let{props:e}=this;return h(Xe,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Hl,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Li extends C{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,i=n.eventTimeFormat||Hl,s=Be(r,i,t,!0,e.defaultDisplayEventEnd);return h(Le,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:ot(e.seg,t),defaultGenerator:Sf,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function Sf(e){return h(R,null,h("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&h("div",{className:"fc-event-time"},e.timeText),h("div",{className:"fc-event-title"},e.event.title||h(R,null," ")))}class Ll extends C{constructor(){super(...arguments);this.compileSegs=S(Df)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return h(Et,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let r=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return h(R,null,t.map((i)=>{let s=i.eventRange.instance.instanceId;return h("div",{className:"fc-daygrid-event-harness",key:s,style:{visibility:r[s]?"hidden":""}},Bl(i)?h(Li,Object.assign({seg:i,isDragging:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},te(i,e.todayRange))):h(Bi,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},te(i,e.todayRange))))}))}})}}function Df(e){let t=[],n=[];for(let r of e)if(t.push(r.seg),!r.isVisible)n.push(r.seg);return{allSegs:t,invisibleSegs:n}}var Af=M({week:"narrow"});class Ul extends V{constructor(){super(...arguments);this.rootElRef=U(),this.state={dayNumberId:ae()},this.handleRootEl=(e)=>{ee(this.rootElRef,e),ee(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i,dateEnv:s}=e,{date:a,dateProfile:l}=t,o=t.showDayNumber&&Cf(a,l.currentRange,s);return h($e,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:wf,date:a,dateProfile:l,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:o,extraRenderProps:t.extraRenderProps},(c,d)=>h("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&h(nn,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ve(e,a,"week"),date:a,defaultFormat:Af}),!d.isDisabled&&(t.showDayNumber||yt(i)||t.forceDayTop)?h("div",{className:"fc-daygrid-day-top"},h(c,{elTag:"a",elClasses:["fc-daygrid-day-number",o&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ve(e,a)),{id:n.dayNumberId})})):t.showDayNumber?h("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},h("a",{className:"fc-daygrid-day-number"}," ")):void 0,h("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,h("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},h(Ll,{allDayDate:a,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),h("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function wf(e){return e.dayNumberText||h(R,null," ")}function Cf(e,t,n){let{start:r,end:i}=t,s=ue(i,-1),a=n.getYear(r),l=n.getMonth(r),o=n.getYear(s),c=n.getMonth(s);return!(a===o&&l===c)&&Boolean(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function jl(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function Fl(e){return jl(e)+":"+e.lastCol}function _f(e,t,n,r,i,s,a){let l=new zl((y)=>{let E=e[y.index].eventRange.instance.instanceId+":"+y.span.start+":"+(y.span.end-1);return i[E]||1});if(l.allowReslicing=!0,l.strictOrder=r,t===!0||n===!0)l.maxCoord=s,l.hiddenConsumes=!0;else if(typeof t==="number")l.maxStackCnt=t;else if(typeof n==="number")l.maxStackCnt=n,l.hiddenConsumes=!0;let o=[],c=[];for(let y=0;y<e.length;y+=1){let E=e[y],A=Fl(E);if(i[A]!=null)o.push({index:y,span:{start:E.firstCol,end:E.lastCol+1}});else c.push(E)}let d=l.addSegs(o),u=l.toRects(),{singleColPlacements:g,multiColPlacements:f,leftoverMargins:p}=Rf(u,e,a),m=[],b=[];for(let y of c){f[y.firstCol].push({seg:y,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let E=y.firstCol;E<=y.lastCol;E+=1)g[E].push({seg:St(y,E,E+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let y=0;y<a.length;y+=1)m.push(0);for(let y of d){let E=e[y.index],A=y.span;f[A.start].push({seg:St(E,A.start,A.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=A.start;_<A.end;_+=1)m[_]+=1,g[_].push({seg:St(E,_,_+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let y=0;y<a.length;y+=1)b.push(p[y]);return{singleColPlacements:g,multiColPlacements:f,moreCnts:m,moreMarginTops:b}}function Rf(e,t,n){let r=Tf(e,n.length),i=[],s=[],a=[];for(let l=0;l<n.length;l+=1){let o=r[l],c=[],d=0,u=0;for(let f of o){let p=t[f.index];c.push({seg:St(p,l,l+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-d}),d=f.levelCoord+f.thickness}let g=[];d=0,u=0;for(let f of o){let p=t[f.index],m=f.span.end-f.span.start>1,b=f.span.start===l;if(u+=f.levelCoord-d,d=f.levelCoord+f.thickness,m){if(u+=f.thickness,b)g.push({seg:St(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})}else if(b)g.push({seg:St(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:u}),u=0}i.push(c),s.push(g),a.push(u)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:a}}function Tf(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function St(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,s=i.range,a=J(s,{start:r[t].date,end:P(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===s.end.valueOf()})}class zl extends ft{constructor(){super(...arguments);this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let t=super.addSegs(e),{entriesByLevel:n}=this,r=(i)=>!this.forceHidden[fe(i)];for(let i=0;i<n.length;i+=1)n[i]=n[i].filter(r);return t}handleInvalidInsertion(e,t,n){let{entriesByLevel:r,forceHidden:i}=this,{touchingEntry:s,touchingLevel:a,touchingLateral:l}=e;if(this.hiddenConsumes&&s){let o=fe(s);if(!i[o])if(this.allowReslicing){let c=Object.assign(Object.assign({},s),{span:Xt(s.span,t.span)}),d=fe(c);i[d]=!0,r[a][l]=c,n.push(c),this.splitEntry(s,t,n)}else i[o]=!0,n.push(s)}super.handleInvalidInsertion(e,t,n)}}class Ui extends V{constructor(){super(...arguments);this.cellElRefs=new K,this.frameElRefs=new K,this.fgElRefs=new K,this.segHarnessRefs=new K,this.rootElRef=U(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=(e)=>{if(e)this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,s=rr(e.businessHourSegs,i),a=rr(e.bgEventSegs,i),l=rr(this.getHighlightSegs(),i),o=rr(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:g}=_f(Ye(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),f=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return h("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((p,m)=>{let b=this.renderFgSegs(m,e.forPrint?c[m]:d[m],e.todayRange,f),y=this.renderFgSegs(m,xf(o[m],d),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return h(Ul,{key:p.key,elRef:this.cellElRefs.createRef(p.key),innerElRef:this.frameElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&m===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,moreCnt:u[m],moreMarginTop:g[m],singlePlacements:c[m],fgContentElRef:this.fgElRefs.createRef(p.key),fgContent:h(R,null,h(R,null,b),h(R,null,y)),bgContent:h(R,null,this.renderFillSegs(l[m],"highlight"),this.renderFillSegs(s[m],"non-business"),this.renderFillSegs(a[m],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!G(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;if(e.eventDrag&&e.eventDrag.segs.length)return e.eventDrag.segs;if(e.eventResize&&e.eventResize.segs.length)return e.eventResize.segs;return e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;if(e.eventResize&&e.eventResize.segs.length)return e.eventResize.segs;return[]}renderFgSegs(e,t,n,r,i,s,a){let{context:l}=this,{eventSelection:o}=this.props,{framePositions:c}=this.state,d=this.props.cells.length===1,u=i||s||a,g=[];if(c)for(let f of t){let{seg:p}=f,{instanceId:m}=p.eventRange.instance,b=f.isVisible&&!r[m],y=f.isAbsolute,E="",A="";if(y)if(l.isRtl)A=0,E=c.lefts[p.lastCol]-c.lefts[p.firstCol];else E=0,A=c.rights[p.firstCol]-c.rights[p.lastCol];g.push(h("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:jl(p),ref:u?null:this.segHarnessRefs.createRef(Fl(p)),style:{visibility:b?"":"hidden",marginTop:y?"":f.marginTop,top:y?f.absoluteTop:"",left:E,right:A}},Bl(p)?h(Li,Object.assign({seg:p,isDragging:i,isSelected:m===o,defaultDisplayEventEnd:d},te(p,n))):h(Bi,Object.assign({seg:p,isDragging:i,isResizing:s,isDateSelecting:a,isSelected:m===o,defaultDisplayEventEnd:d},te(p,n)))))}return g}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let a of e){let l=n?{right:0,left:i.lefts[a.lastCol]-i.lefts[a.firstCol]}:{left:0,right:i.rights[a.firstCol]-i.rights[a.lastCol]};s.push(h("div",{key:qt(a.eventRange),className:"fc-daygrid-bg-harness",style:l},t==="bg-event"?h(bt,Object.assign({seg:a},te(a,r))):tn(t)))}return h(R,{},...s)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let l=t.cells.map((o)=>r.currentMap[o.key]);if(l.length){let o=this.rootElRef.current,c=new ye(o,l,!0,!1);if(!n.framePositions||!n.framePositions.similarTo(c))this.setState({framePositions:new ye(o,l,!0,!1)})}}let i=this.state.segHeights,s=this.querySegHeights(),a=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),s),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t)=>e[t.key])}}Ui.addStateEquality({segHeights:G});function xf(e,t){if(!e.length)return[];let n=Mf(t);return e.map((r)=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Mf(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}class Wl extends V{constructor(){super(...arguments);this.splitBusinessHourSegs=S(ir),this.splitBgEventSegs=S(kf),this.splitFgEventSegs=S(ir),this.splitDateSelectionSegs=S(ir),this.splitEventDrag=S(Ol),this.splitEventResize=S(Ol),this.rowRefs=new K}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),i=this.splitBgEventSegs(e.bgEventSegs,n),s=this.splitFgEventSegs(e.fgEventSegs,n),a=this.splitDateSelectionSegs(e.dateSelectionSegs,n),l=this.splitEventDrag(e.eventDrag,n),o=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return h(ne,{unit:"day"},(d,u)=>h(R,null,e.cells.map((g,f)=>h(Ui,{ref:this.rowRefs.createRef(f),key:g.length?g[0].date.toISOString():f,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:g,renderIntro:e.renderRowIntro,businessHourSegs:r[f],eventSelection:e.eventSelection,bgEventSegs:i[f],fgEventSegs:s[f],dateSelectionSegs:a[f],eventDrag:l[f],eventResize:o[f],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;if(t)this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed})}}componentWillUnmount(){if(this.rootEl)this.context.unregisterInteractiveComponent(this),this.rootEl=null}prepareHits(){this.rowPositions=new ye(this.rootEl,this.rowRefs.collect().map((e)=>e.getCellEls()[0]),!1,!0),this.colPositions=new ye(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),s=r.topToIndex(t);if(s!=null&&i!=null){let a=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[s],bottom:r.bottoms[s]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,r=P(n,1);return{start:n,end:r}}}function kf(e,t){return ir(e.filter(If),t)}function If(e){return e.eventRange.def.allDay}class Vl extends V{constructor(){super(...arguments);this.elRef=U(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,i=n===!0||t===!0;if(i&&!r)i=!1,t=null,n=null;let s=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return h("div",{ref:this.elRef,className:s.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},h("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,h("tbody",{role:"presentation"},h(Wl,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){if(e.dateProfile!==this.props.dateProfile)this.requestScrollReset();else this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=Nf(this.elRef.current,this.props.dateProfile);if(e){let t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}function Nf(e,t){let n;if(t.currentRangeUnit.match(/year|month/))n=e.querySelector(`[data-date="${$r(t.currentDate)}-01"]`);if(!n)n=e.querySelector(`[data-date="${Ie(t.currentDate)}"]`);return n}class Gl extends mt{constructor(){super(...arguments);this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class sr extends V{constructor(){super(...arguments);this.slicer=new Gl,this.tableRef=U()}render(){let{props:e,context:t}=this;return h(Vl,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class ji extends Pl{constructor(){super(...arguments);this.buildDayTableModel=S(Of),this.headerRef=U(),this.tableRef=U()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&h(ht,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),s=(a)=>h(sr,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}}function Of(e,t){let n=new gt(e.renderRange,t);return new pt(n,/year|month|week/.test(e.currentRangeUnit))}class Fi extends at{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return Pf({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function Pf(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,s;if(e.snapToWeek){if(r=t.startOfWeek(r),s=t.startOfWeek(i),s.valueOf()!==i.valueOf())i=Nn(s,1)}if(e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(P(n.end,-1))),l=Math.ceil(Zr(a,i));i=Nn(i,6-l)}return{start:r,end:i}}var Hf=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';ke(Hf);var ql=Y({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:ji,dateProfileGeneratorClass:Fi},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class $l extends Xn{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){if(e.allDay)return["allDay"];return["timed"]}getKeysForEventDef(e){if(!e.allDay)return["timed"];if(mi(e))return["timed","allDay"];return["allDay"]}}var Bf=M({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Jl(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return h(le.Consumer,null,(n)=>{if(!e.isLabeled)return h("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,a=i.slotLabelFormat==null?Bf:Array.isArray(i.slotLabelFormat)?M(i.slotLabelFormat[0]):M(i.slotLabelFormat),l={level:0,time:e.time,date:r.toDate(e.date),view:s,text:r.format(e.date,a)};return h(L,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:l,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:Lf,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(o)=>h("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},h(o,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Lf(e){return e.text}class Kl extends C{render(){return this.props.slatMetas.map((e)=>h("tr",{key:e.key},h(Jl,Object.assign({},e))))}}var Uf=M({week:"short"}),jf=5;class eo extends V{constructor(){super(...arguments);this.allDaySplitter=new $l,this.headerElRef=U(),this.rootElRef=U(),this.scrollerElRef=U(),this.state={slatCoords:null},this.handleScrollTopRequest=(e)=>{let t=this.scrollerElRef.current;if(t)t.scrollTop=e},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,i=r.renderRange,a=he(i.start,i.end)===1?ve(this.context,i.start,"week"):{};if(n.weekNumbers&&e==="day")return h(nn,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:Uf},(l)=>h("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},h(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a})));return h("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},h("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=(e)=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return h(L,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:Ff,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(i)=>h("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},h(i,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=(e)=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:i}=this,s=[],a=Qe(r.options);if(e)s.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}});if(t)s.push({type:"body",key:"all-day",chunk:{content:t}}),s.push({type:"body",key:"all-day-divider",outerContent:h("tr",{role:"presentation",className:"fc-scrollgrid-section"},h("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))});return s.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),h(ge,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},h(Ze,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(e,t,n,r,i,s,a){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw Error("No ScrollGrid implementation");let{context:o,props:c}=this,d=!c.forPrint&&Qe(o.options),u=!c.forPrint&&Kt(o.options),g=[];if(e)g.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:(p)=>h("tr",{role:"presentation"},this.renderHeadAxis("day",p.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]});if(t)g.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:(p)=>h("tr",{role:"presentation"},this.renderTableRowAxis(p.rowSyncHeights[0]))},{key:"cols",content:t}]}),g.push({key:"all-day-divider",type:"body",outerContent:h("tr",{role:"presentation",className:"fc-scrollgrid-section"},h("td",{colSpan:2,className:"fc-timegrid-divider "+o.theme.getClass("tableCellShaded")}))});let f=o.options.nowIndicator;if(g.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(o.options.expandRows),chunks:[{key:"axis",content:(p)=>h("div",{className:"fc-timegrid-axis-chunk"},h("table",{"aria-hidden":!0,style:{height:p.expandRows?p.clientHeight:""}},p.tableColGroupNode,h("tbody",null,h(Kl,{slatMetas:s}))),h("div",{className:"fc-timegrid-now-indicator-container"},h(ne,{unit:f?"minute":"day"},(m)=>{let b=f&&a&&a.safeComputeTop(m);if(typeof b==="number")return h(en,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:m});return null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),u)g.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:vt},{key:"cols",content:vt}]});return h(ge,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:o.viewSpec},h(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:g}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;if(e===!0||t===!0)e=void 0,t=jf;return{dayMaxEvents:e,dayMaxEventRows:t}}}function Ff(e){return e.text}class to{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this,n=x(e),r=[n,P(n,-1),P(n,1)];for(let i of r)if(ie(t.currentRange,i)){let s=e.valueOf()-i.valueOf();if(s>=X(t.slotMinTime)&&s<X(t.slotMaxTime))return this.computeTimeTop(w(s))}return null}computeDateTop(e,t){if(!t)t=x(e);return this.computeTimeTop(w(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:n}=this,r=t.els.length,i=(e.milliseconds-X(n.slotMinTime))/X(this.slotDuration),s,a;return i=Math.max(0,i),i=Math.min(r,i),s=Math.floor(i),s=Math.min(s,r-1),a=i-s,t.tops[s]+t.getHeight(s)*a}}class no extends C{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return h("tbody",null,e.slatMetas.map((i,s)=>{let a={time:i.time,date:t.dateEnv.toDate(i.date),view:t.viewApi};return h("tr",{key:i.key,ref:r.createRef(i.key)},e.axis&&h(Jl,Object.assign({},i)),h(L,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}}class ro extends C{constructor(){super(...arguments);this.rootElRef=U(),this.slatElRefs=new K}render(){let{props:e,context:t}=this;return h("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},h("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,h(no,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){if(this.props.onCoords)this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;if(t.onCoords&&t.clientWidth!==null){if(this.rootElRef.current.offsetHeight)t.onCoords(new to(new ye(this.rootElRef.current,zf(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}}function zf(e,t){return t.map((n)=>e[n.key])}function sn(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function Yl(e,t){let n=[];if(!e)for(let r=0;r<t;r+=1)n[r]=null;else{for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.col].segs.push(r)}return n}class io extends C{render(){let{props:e}=this;return h(Et,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>ao(e.hiddenSegs,e),defaultGenerator:Wf,forceTimed:!0},(t)=>h(t,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Wf(e){return e.shortText}function Vf(e,t,n){let r=new ft;if(t!=null)r.strictOrder=t;if(n!=null)r.maxStackCnt=n;let i=r.addSegs(e),s=Ri(i),a=Gf(r);return a=Zf(a,1),{segRects:Xf(a),hiddenGroups:s}}function Gf(e){let{entriesByLevel:t}=e,n=Wi((r,i)=>r+":"+i,(r,i)=>{let s=Qf(e,r,i),a=Ql(s,n),l=t[r][i];return[Object.assign(Object.assign({},l),{nextLevelNodes:a[0]}),l.thickness+a[1]]});return Ql(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function Ql(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,s=r,a=[];while(s<i)a.push(t(n,s)),s+=1;return a.sort(qf),[a.map(Yf),a[0][1]]}function qf(e,t){return t[1]-e[1]}function Yf(e){return e[0]}function Qf(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,s=i[t][n],a=r[t]+s.thickness,l=r.length,o=t;for(;o<l&&r[o]<a;o+=1);for(;o<l;o+=1){let c=i[o],d,u=Ht(c,s.span.start,Pt),g=u[0]+u[1],f=g;while((d=c[f])&&d.span.start<s.span.end)f+=1;if(g<f)return{level:o,lateralStart:g,lateralEnd:f}}return null}function Zf(e,t){let n=Wi((r,i,s)=>fe(r),(r,i,s)=>{let{nextLevelNodes:a,thickness:l}=r,o=l+s,c=l/o,d,u=[];if(!a.length)d=t;else for(let f of a)if(d===void 0){let p=n(f,i,o);d=p[0],u.push(p[1])}else{let p=n(f,d,0);u.push(p[1])}let g=(d-i)*c;return[d-g,Object.assign(Object.assign({},r),{thickness:g,nextLevelNodes:u})]});return e.map((r)=>n(r,0,0)[1])}function Xf(e){let t=[],n=Wi((i,s,a)=>fe(i),(i,s,a)=>{let l=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:a,stackForward:0});return t.push(l),l.stackForward=r(i.nextLevelNodes,s+i.thickness,a+1)+1});function r(i,s,a){let l=0;for(let o of i)l=Math.max(n(o,s,a),l);return l}return r(e,0,0),t}function Wi(e,t){let n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function Zl(e,t,n=null,r=0){let i=[];if(n)for(let s=0;s<e.length;s+=1){let a=e[s],l=n.computeDateTop(a.start,t),o=Math.max(l+(r||0),n.computeDateTop(a.end,t));i.push({start:Math.round(l),end:Math.round(o)})}return i}function $f(e,t,n,r){let i=[],s=[];for(let c=0;c<e.length;c+=1){let d=t[c];if(d)i.push({index:c,thickness:1,span:d});else s.push(e[c])}let{segRects:a,hiddenGroups:l}=Vf(i,n,r),o=[];for(let c of a)o.push({seg:e[c.index],rect:c});for(let c of s)o.push({seg:c,rect:null});return{segPlacements:o,hiddenGroups:l}}var Jf=M({hour:"numeric",minute:"2-digit",meridiem:!1});class Vi extends C{render(){return h(Xe,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Jf}))}}class so extends C{constructor(){super(...arguments);this.sortEventSegs=S(Ye)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return h($e,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},(l)=>h("div",{className:"fc-timegrid-col-frame"},h("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),h("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,s,!1,!1,!1)),h("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),h("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),yt(n)&&h(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,r,i,s){let{props:a}=this;if(a.forPrint)return ao(e,a);return this.renderPositionedFgSegs(e,t,n,r,i,s)}renderPositionedFgSegs(e,t,n,r,i,s){let{eventMaxStack:a,eventShortHeight:l,eventOrderStrict:o,eventMinHeight:c}=this.context.options,{date:d,slatCoords:u,eventSelection:g,todayRange:f,nowDate:p}=this.props,m=n||r||i,b=Zl(e,d,u,c),{segPlacements:y,hiddenGroups:E}=$f(e,b,o,a);return h(R,null,this.renderHiddenGroups(E,e),y.map((A)=>{let{seg:_,rect:k}=A,I=_.eventRange.instance.instanceId,N=m||Boolean(!t[I]&&k),T=zi(k&&k.span),Q=!m&&k?this.computeSegHStyle(k):{left:0,right:0},H=Boolean(k)&&k.stackForward>0,B=Boolean(k)&&k.span.end-k.span.start<l;return h("div",{className:"fc-timegrid-event-harness"+(H?" fc-timegrid-event-harness-inset":""),key:s||I,style:Object.assign(Object.assign({visibility:N?"":"hidden"},T),Q)},h(Vi,Object.assign({seg:_,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:I===g,isShort:B},te(_,f,p))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:o}=this.props;return h(R,null,e.map((c)=>{let d=zi(c.span),u=Kf(c.entries,t);return h(io,{key:On(nr(u)),hiddenSegs:u,top:d.top,bottom:d.bottom,extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:o})}))}renderFillSegs(e,t){let{props:n,context:r}=this,s=Zl(e,n.date,n.slatCoords,r.options.eventMinHeight).map((a,l)=>{let o=e[l];return h("div",{key:qt(o.eventRange),className:"fc-timegrid-bg-harness",style:zi(a)},t==="bg-event"?h(bt,Object.assign({seg:o},te(o,n.todayRange,n.nowDate))):tn(t))});return h(R,null,s)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;if(!t)return null;return e.map((r,i)=>h(en,{key:i,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(r.start,n)},isAxis:!1,date:n}))}computeSegHStyle(e){let{isRtl:t,options:n}=this.context,r=n.slotEventOverlap,i=e.levelCoord,s=e.levelCoord+e.thickness,a,l;if(r)s=Math.min(1,i+(s-i)*2);if(t)a=1-s,l=i;else a=i,l=1-s;let o={zIndex:e.stackDepth+1,left:a*100+"%",right:l*100+"%"};if(r&&!e.stackForward)o[t?"marginLeft":"marginRight"]=20;return o}}function ao(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let a=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return h(R,null,e.map((l)=>{let o=l.eventRange.instance.instanceId;return h("div",{key:o,style:{visibility:a[o]?"hidden":""}},h(Vi,Object.assign({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},te(l,t,n))))}))}function zi(e){if(!e)return{top:"",bottom:""};return{top:e.start,bottom:-e.end}}function Kf(e,t){return e.map((n)=>t[n.index])}class lo extends C{constructor(){super(...arguments);this.splitFgEventSegs=S(sn),this.splitBgEventSegs=S(sn),this.splitBusinessHourSegs=S(sn),this.splitNowIndicatorSegs=S(sn),this.splitDateSelectionSegs=S(sn),this.splitEventDrag=S(Yl),this.splitEventResize=S(Yl),this.rootElRef=U(),this.cellElRefs=new K}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),a=this.splitBusinessHourSegs(e.businessHourSegs,r),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),o=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r);return h("div",{className:"fc-timegrid-cols",ref:this.rootElRef},h("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,h("tbody",{role:"presentation"},h("tr",{role:"row"},e.axis&&h("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},h("div",{className:"fc-timegrid-col-frame"},h("div",{className:"fc-timegrid-now-indicator-container"},typeof n==="number"&&h(en,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((u,g)=>h(so,{key:u.key,elRef:this.cellElRefs.createRef(u.key),dateProfile:e.dateProfile,date:u.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:u.extraRenderProps,extraDataAttrs:u.extraDataAttrs,extraClassNames:u.extraClassNames,extraDateSpan:u.extraDateSpan,fgEventSegs:i[g],bgEventSegs:s[g],businessHourSegs:a[g],nowIndicatorSegs:l[g],dateSelectionSegs:o[g],eventDrag:c[g],eventResize:d[g],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;if(e.onColCoords&&e.clientWidth!==null)e.onColCoords(new ye(this.rootElRef.current,eh(this.cellElRefs.currentMap,e.cells),!0,!1))}}function eh(e,t){return t.map((n)=>e[n.key])}class oo extends V{constructor(){super(...arguments);this.processSlotOptions=S(th),this.state={slatCoords:null},this.handleRootEl=(e)=>{if(e)this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed});else this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=(e)=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);if(r=Math.ceil(r),r)r+=1;t(r)}return!0}return!1},this.handleColCoords=(e)=>{this.colCoords=e},this.handleSlatCoords=(e)=>{if(this.setState({slatCoords:e}),this.props.onSlatCoords)this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return h("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},h(ro,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),h(lo,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:i}=this,{dateProfile:s}=this.props,{slatCoords:a}=this.state,{snapDuration:l,snapsPerSlot:o}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=i.leftToIndex(e),d=a.positions.topToIndex(t);if(c!=null&&d!=null){let u=this.props.cells[c],g=a.positions.tops[d],f=a.positions.getHeight(d),p=(t-g)/f,m=Math.floor(p*o),b=d*o+m,y=this.props.cells[c].date,E=Ft(s.slotMinTime,Qr(l,b)),A=n.add(y,E),_=n.add(A,l);return{dateProfile:s,dateSpan:Object.assign({range:{start:A,end:_},allDay:!1},u.extraDateSpan),dayEl:i.els[c],rect:{left:i.lefts[c],right:i.rights[c],top:g,bottom:g+f},layer:0}}return null}}function th(e,t){let n=t||e,r=zt(e,n);if(r===null)n=e,r=1;return{snapDuration:n,snapsPerSlot:r}}class co extends mt{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=J(e,t[r]);if(i)n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}}class uo extends V{constructor(){super(...arguments);this.buildDayRanges=S(nh),this.slicer=new co,this.timeColsRef=U()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:i,nextDayThreshold:s}=t.options,a=this.buildDayRanges(r,n,t.dateEnv);return h(ne,{unit:i?"minute":"day"},(l,o)=>h(oo,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:l,nowIndicatorSegs:i&&this.slicer.sliceNowDate(l,n,s,t,a),todayRange:o,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function nh(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}var Xl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function rh(e,t,n,r,i){let s=new Date(0),a=e,l=w(0),o=n||ih(r),c=[];while(X(a)<X(t)){let d=i.add(s,a),u=zt(l,o)!==null;c.push({date:d,time:a,key:d.toISOString(),isoTimeStr:Jr(d),isLabeled:u}),a=Ft(a,r),l=Ft(l,r)}return c}function ih(e){let t,n,r;for(t=Xl.length-1;t>=0;t-=1)if(n=w(Xl[t]),r=zt(n,e),r!==null&&r>1)return n;return e}class Gi extends eo{constructor(){super(...arguments);this.buildTimeColsModel=S(sh),this.buildSlatMetas=S(rh)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:i}=r,s=this.buildTimeColsModel(i,n),a=this.allDaySplitter.splitProps(r),l=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:o}=e,c=!o,d=o,u=e.dayHeaders&&h(ht,{dates:s.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),g=e.allDaySlot!==!1&&((p)=>h(sr,Object.assign({},a.allDay,{dateProfile:i,dayTableModel:s,nextDayThreshold:e.nextDayThreshold,tableMinWidth:p.tableMinWidth,colGroupNode:p.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:p.clientWidth,clientHeight:p.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),f=(p)=>h(uo,Object.assign({},a.timed,{dayTableModel:s,dateProfile:i,axis:c,slotDuration:e.slotDuration,slatMetas:l,forPrint:r.forPrint,tableColGroupNode:p.tableColGroupNode,tableMinWidth:p.tableMinWidth,clientWidth:p.clientWidth,clientHeight:p.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:p.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(u,g,f,s.colCnt,o,l,this.state.slatCoords):this.renderSimpleLayout(u,g,f)}}function sh(e,t){let n=new gt(e.renderRange,t);return new pt(n,!1)}var ah=".fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:\"\\00a0\"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:\"\\00a0-\\00a0\"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}";ke(ah);var lh={allDaySlot:Boolean},fo=Y({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:lh,views:{timeGrid:{component:Gi,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class ho extends C{constructor(){super(...arguments);this.state={textId:ae()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:i,dayDate:s,todayRange:a}=this.props,{textId:l}=this.state,o=Qt(s,a),c=n.listDayFormat?t.format(s,n.listDayFormat):"",d=n.listDaySideFormat?t.format(s,n.listDaySideFormat):"",u=Object.assign({date:t.toDate(s),view:r,textId:l,text:c,sideText:d,navLinkAttrs:ve(this.context,s),sideNavLinkAttrs:ve(this.context,s,"day",!1)},o);return h(L,{elTag:"tr",elClasses:["fc-list-day",...dt(o,e)],elAttrs:{"data-date":Ie(s)},renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:oh,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(g)=>h("th",{scope:"colgroup",colSpan:3,id:i,"aria-labelledby":l},h(g,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function oh(e){return h(R,null,e.text&&h("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&h("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}var ch=M({hour:"numeric",minute:"2-digit",meridiem:"short"});class go extends C{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:i,eventHeaderId:s,dateHeaderId:a}=e,l=n.eventTimeFormat||ch;return h(Le,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>dh(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(o,c)=>h(R,null,uh(r,l,t,i,a),h("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},h("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),h(o,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${s} ${a}`}})))}}function dh(e,t){let n=ot(e,t);return h("a",Object.assign({},n),e.eventRange.def.title)}function uh(e,t,n,r,i){let{options:s}=n;if(s.displayEventTime!==!1){let a=e.eventRange.def,l=e.eventRange.instance,o=!1,c;if(a.allDay)o=!0;else if(oi(e.eventRange.range))if(e.isStart)c=Be(e,t,n,null,null,l.range.start,e.end);else if(e.isEnd)c=Be(e,t,n,null,null,e.start,l.range.end);else o=!0;else c=Be(e,t,n);if(o){let d={text:n.options.allDayText,view:n.viewApi};return h(L,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:d,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:fh,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return h("td",{className:"fc-list-event-time"},c)}return null}function fh(e){return e.text}class qi extends V{constructor(){super(...arguments);this.computeDateVars=S(gh),this.eventStoreToSegs=S(this._eventStoreToSegs),this.state={timeHeaderId:ae(),eventHeaderId:ae(),dateHeaderIdRoot:ae()},this.setRootEl=(e)=>{if(e)this.context.registerInteractiveComponent(this,{el:e});else this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),i=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return h(ge,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),t.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:t.viewSpec},h(Jt,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},i.length>0?this.renderSegList(i,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return h(L,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:hh,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(r)=>h(r,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:i,eventHeaderId:s,dateHeaderIdRoot:a}=this.state,l=ph(e);return h(ne,{unit:"day"},(o,c)=>{let d=[];for(let u=0;u<l.length;u+=1){let g=l[u];if(g){let f=Ie(t[u]),p=a+"-"+f;d.push(h(ho,{key:f,cellId:p,dayDate:t[u],todayRange:c})),g=Ye(g,r.eventOrder);for(let m of g)d.push(h(go,Object.assign({key:f+":"+m.eventRange.instance.instanceId,seg:m,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:i,eventHeaderId:s,dateHeaderId:p},te(m,c,o))))}}return h("table",{className:"fc-list-table "+n.getClass("table")},h("thead",null,h("tr",null,h("th",{scope:"col",id:i},r.timeHint),h("th",{scope:"col","aria-hidden":!0}),h("th",{scope:"col",id:s},r.eventHint))),h("tbody",null,d))})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(tt(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let{dateEnv:n}=this.context,{nextDayThreshold:r}=this.context.options,i=e.range,s=e.def.allDay,a,l,o,c=[];for(a=0;a<t.length;a+=1)if(l=J(i,t[a]),l){if(o={component:this,eventRange:e,start:l.start,end:l.end,isStart:e.isStart&&l.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&l.end.valueOf()===i.end.valueOf(),dayIndex:a},c.push(o),!o.isEnd&&!s&&a+1<t.length&&i.end<n.add(t[a+1].start,r)){o.end=i.end,o.isEnd=!0;break}}return c}}function hh(e){return e.text}function gh(e){let t=x(e.renderRange.start),n=e.renderRange.end,r=[],i=[];while(t<n)r.push(t),i.push({start:t,end:P(t,1)}),t=P(t,1);return{dayDates:r,dayRanges:i}}function ph(e){let t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}var mh=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';ke(mh);var vh={listDayFormat:po,listDaySideFormat:po,noEventsClassNames:v,noEventsContent:v,noEventsDidMount:v,noEventsWillUnmount:v};function po(e){return e===!1?null:M(e)}var mo=Y({name:"@fullcalendar/list",optionRefiners:vh,views:{list:{component:qi,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});$t.touchMouseIgnoreWait=500;var Yi=0,ar=0,Qi=!1;class Zi{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=(t)=>{if(!this.shouldIgnoreMouse()&&yh(t)&&this.tryStart(t)){let n=this.createEventFromMouse(t,!0);if(this.emitter.trigger("pointerdown",n),this.initScrollWatch(n),!this.shouldIgnoreMove)document.addEventListener("mousemove",this.handleMouseMove);document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=(t)=>{let n=this.createEventFromMouse(t);this.recordCoords(n),this.emitter.trigger("pointermove",n)},this.handleMouseUp=(t)=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=(t)=>{if(this.tryStart(t)){this.isTouchDragging=!0;let n=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",n),this.initScrollWatch(n);let r=t.target;if(!this.shouldIgnoreMove)r.addEventListener("touchmove",this.handleTouchMove);r.addEventListener("touchend",this.handleTouchEnd),r.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=(t)=>{let n=this.createEventFromTouch(t);this.recordCoords(n),this.emitter.trigger("pointermove",n)},this.handleTouchEnd=(t)=>{if(this.isDragging){let n=t.target;n.removeEventListener("touchmove",this.handleTouchMove),n.removeEventListener("touchend",this.handleTouchEnd),n.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,bh()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=(t)=>{if(!this.shouldIgnoreMove){let n=window.scrollX-this.prevScrollX+this.prevPageX,r=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:n-this.origPageX,deltaY:r-this.origPageY})}},this.containerEl=e,this.emitter=new He,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Eh()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Sh()}tryStart(e){let t=this.querySubjectEl(e),n=e.target;if(t&&(!this.handleSelector||F(n,this.handleSelector)))return this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0;return!1}cleanup(){Qi=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){if(this.selector)return F(e.target,this.selector);return this.containerEl}shouldIgnoreMouse(){return Yi||this.isTouchDragging}cancelTouchScroll(){if(this.isDragging)Qi=!0}initScrollWatch(e){if(this.shouldWatchScroll)this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0)}recordCoords(e){if(this.shouldWatchScroll)this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY}destroyScrollWatch(){if(this.shouldWatchScroll)window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;if(t)this.origPageX=e.pageX,this.origPageY=e.pageY;else n=e.pageX-this.origPageX,r=e.pageY-this.origPageY;return{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n=e.touches,r,i,s=0,a=0;if(n&&n.length)r=n[0].pageX,i=n[0].pageY;else r=e.pageX,i=e.pageY;if(t)this.origPageX=r,this.origPageY=i;else s=r-this.origPageX,a=i-this.origPageY;return{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:s,deltaY:a}}}function yh(e){return e.button===0&&!e.ctrlKey}function bh(){Yi+=1,setTimeout(()=>{Yi-=1},$t.touchMouseIgnoreWait)}function Eh(){if(ar+=1,ar===1)window.addEventListener("touchmove",yo,{passive:!1})}function Sh(){if(ar-=1,!ar)window.removeEventListener("touchmove",yo,{passive:!1})}function yo(e){if(Qi)e.preventDefault()}class bo{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){if(e){if(!this.isVisible){if(this.mirrorEl)this.mirrorEl.style.display="";this.isVisible=e,this.updateElPosition()}}else if(this.isVisible){if(this.mirrorEl)this.mirrorEl.style.display="none";this.isVisible=e}}stop(e,t){let n=()=>{this.cleanup(),t()};if(e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY))this.doRevertAnimation(n,this.revertDuration);else setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",qe(n,{left:r.left,top:r.top}),zr(n,()=>{n.style.transition="",e()})}cleanup(){if(this.mirrorEl)Bt(this.mirrorEl),this.mirrorEl=null;this.sourceEl=null}updateElPosition(){if(this.sourceEl&&this.isVisible)qe(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;if(!t)t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),qe(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t);return t}}class Xi extends ut{constructor(e,t){super();if(this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening)this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){if(this.doesListening)this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){if(this.scrollController.setScrollTop(e),!this.doesListening)this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange()}setScrollLeft(e){if(this.scrollController.setScrollLeft(e),!this.doesListening)this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange()}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class $i extends Xi{constructor(e,t){super(new Jn(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return _i(this.scrollController.el)}}class Eo extends Xi{constructor(e){super(new Kn,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}var vo=typeof performance==="function"?performance.now:Date.now;class So{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=vo();this.handleSide(e,(t-this.msSinceRequest)/1000),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){if(this.isEnabled)this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t)}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,r=t-window.scrollY,i=this.pointerScreenY===null?0:r-this.pointerScreenY,s=this.pointerScreenX===null?0:n-this.pointerScreenX;if(i<0)this.everMovedUp=!0;else if(i>0)this.everMovedDown=!0;if(s<0)this.everMovedLeft=!0;else if(s>0)this.everMovedRight=!0;if(this.pointerScreenX=n,this.pointerScreenY=r,!this.isAnimating)this.isAnimating=!0,this.requestAnimation(vo())}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,i=r-e.distance,s=i*i/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*a);break}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let s of i){let a=s.clientRect,l=e-a.left,o=a.right-e,c=t-a.top,d=a.bottom-t;if(l>=0&&o>=0&&c>=0&&d>=0){if(c<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>c))r={scrollCache:s,name:"top",distance:c};if(d<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>d))r={scrollCache:s,name:"bottom",distance:d};if(l<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>l))r={scrollCache:s,name:"left",distance:l};if(o<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>o))r={scrollCache:s,name:"right",distance:o}}}return r}buildCaches(e){return this.queryScrollEls(e).map((t)=>{if(t===window)return new Eo(!1);return new $i(t,!1)})}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)if(typeof n==="object")t.push(n);else t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class Dt extends er{constructor(e,t){super(e);this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=(r)=>{if(!this.isDragging){if(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Wr(document.body),Gr(document.body),!r.isTouch)r.origEvent.preventDefault();if(this.emitter.trigger("pointerdown",r),this.isInteracting&&!this.pointer.shouldIgnoreMove){if(this.mirror.setIsVisible(!1),this.mirror.start(r.subjectEl,r.pageX,r.pageY),this.startDelay(r),!this.minDistance)this.handleDistanceSurpassed(r)}}},this.onPointerMove=(r)=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",r),!this.isDistanceSurpassed){let i=this.minDistance,s,{deltaX:a,deltaY:l}=r;if(s=a*a+l*l,s>=i*i)this.handleDistanceSurpassed(r)}if(this.isDragging){if(r.origEvent.type!=="scroll")this.mirror.handleMove(r.pageX,r.pageY),this.autoScroller.handleMove(r.pageX,r.pageY);this.emitter.trigger("dragmove",r)}}},this.onPointerUp=(r)=>{if(this.isInteracting){if(this.isInteracting=!1,Vr(document.body),qr(document.body),this.emitter.trigger("pointerup",r),this.isDragging)this.autoScroller.stop(),this.tryStopDrag(r);if(this.delayTimeoutId)clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null}};let n=this.pointer=new Zi(e);if(n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t)n.selector=t;this.mirror=new bo,this.autoScroller=new So}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){if(typeof this.delay==="number")this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay);else this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){if(this.isDelayEnded&&this.isDistanceSurpassed){if(!this.pointer.wasTouchScroll||this.touchScrollAllowed){if(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1)this.pointer.cancelTouchScroll()}}}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Do{constructor(e){this.el=e,this.origRect=Zt(e),this.scrollCaches=$n(e).map((t)=>new $i(t,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let r of this.scrollCaches)if(!Dh(r.getEventTarget())&&!Di(n,r.clientRect))return!1;return!0}}function Dh(e){let t=e.tagName;return t==="HTML"||t==="BODY"}class an{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=(n)=>{let{dragging:r}=this;if(this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(n),this.initialHit||!this.requireInitial)r.setIgnoreMove(!1),this.emitter.trigger("pointerdown",n);else r.setIgnoreMove(!0)},this.handleDragStart=(n)=>{this.emitter.trigger("dragstart",n),this.handleMove(n,!0)},this.handleDragMove=(n)=>{this.emitter.trigger("dragmove",n),this.handleMove(n)},this.handlePointerUp=(n)=>{this.releaseHits(),this.emitter.trigger("pointerup",n)},this.handleDragEnd=(n)=>{if(this.movingHit)this.emitter.trigger("hitupdate",null,!0,n);this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",n)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new He}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},n=t,r=e.subjectEl,i;if(r instanceof HTMLElement)i=Zt(r),n=Ai(n,i);let s=this.initialHit=this.queryHitForOffset(n.left,n.top);if(s){if(this.useSubjectCenter&&i){let a=Zn(i,s.rect);if(a)n=wi(a)}this.coordAdjust=Ci(n,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);if(t||!lr(this.movingHit,n))this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e)}prepareHits(){this.offsetTrackers=se(this.droppableStore,(e)=>(e.component.prepareHits(),new Do(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,i=null;for(let s in n){let a=n[s].component,l=r[s];if(l&&l.isWithinClipping(e,t)){let o=l.computeLeft(),c=l.computeTop(),d=e-o,u=t-c,{origRect:g}=l,f=g.right-g.left,p=g.bottom-g.top;if(d>=0&&d<f&&u>=0&&u<p){let m=a.queryHit(d,u,f,p);if(m&&st(m.dateProfile.activeRange,m.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(d+o-window.scrollX,u+c-window.scrollY)))&&(!i||m.layer>i.layer))m.componentId=s,m.context=a.context,m.rect.left+=o,m.rect.right+=o,m.rect.top+=c,m.rect.bottom+=c,i=m}}}return i}}function lr(e,t){if(!e&&!t)return!0;if(Boolean(e)!==Boolean(t))return!1;return vi(e.dateSpan,t.dateSpan)}function Ao(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));return Object.assign(n,Ah(e,t.dateEnv)),n}function Ah(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}class wo extends me{constructor(e){super(e);this.handlePointerDown=(n)=>{let{dragging:r}=this,i=n.origEvent.target;r.setIgnoreMove(!this.component.isValidDateDownEl(i))},this.handleDragEnd=(n)=>{let{component:r}=this,{pointer:i}=this.dragging;if(!i.wasTouchScroll){let{initialHit:s,finalHit:a}=this.hitDragging;if(s&&a&&lr(s,a)){let{context:l}=r,o=Object.assign(Object.assign({},Ao(s.dateSpan,l)),{dayEl:s.dayEl,jsEvent:n.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",o)}}},this.dragging=new Dt(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new an(this.dragging,Yt(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Co extends me{constructor(e){super(e);this.dragSelection=null,this.handlePointerDown=(s)=>{let{component:a,dragging:l}=this,{options:o}=a.context,c=o.selectable&&a.isValidDateDownEl(s.origEvent.target);l.setIgnoreMove(!c),l.delay=s.isTouch?wh(a):null},this.handleDragStart=(s)=>{this.component.context.calendarApi.unselect(s)},this.handleHitUpdate=(s,a)=>{let{context:l}=this.component,o=null,c=!1;if(s){let d=this.hitDragging.initialHit;if(!(s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)))o=Ch(d,s,l.pluginHooks.dateSelectionTransformers);if(!o||!Mi(o,s.dateProfile,l))c=!0,o=null}if(o)l.dispatch({type:"SELECT_DATES",selection:o});else if(!a)l.dispatch({type:"UNSELECT_DATES"});if(!c)jt();else Ut();if(!a)this.dragSelection=o},this.handlePointerUp=(s)=>{if(this.dragSelection)qn(this.dragSelection,s,this.component.context),this.dragSelection=null};let{component:t}=e,{options:n}=t.context,r=this.dragging=new Dt(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new an(this.dragging,Yt(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function wh(e){let{options:t}=e.context,n=t.selectLongPressDelay;if(n==null)n=t.longPressDelay;return n}function Ch(e,t,n){let r=e.dateSpan,i=t.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(Yr);let a={};for(let l of n){let o=l(e,t);if(o===!1)return null;if(o)Object.assign(a,o)}return a.range={start:s[0],end:s[3]},a.allDay=r.allDay,a}class ln extends me{constructor(e){super(e);this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=(s)=>{let a=s.origEvent.target,{component:l,dragging:o}=this,{mirror:c}=o,{options:d}=l.context,u=l.context;this.subjectEl=s.subjectEl;let g=this.subjectSeg=Ae(s.subjectEl),p=(this.eventRange=g.eventRange).instance.instanceId;if(this.relevantEvents=Vt(u.getCurrentData().eventStore,p),o.minDistance=s.isTouch?0:d.eventDragMinDistance,o.delay=s.isTouch&&p!==l.props.eventSelection?Rh(l):null,d.fixedMirrorParent)c.parentNode=d.fixedMirrorParent;else c.parentNode=F(a,".fc");c.revertDuration=d.dragRevertDuration;let m=l.isValidSegDownEl(a)&&!F(a,".fc-event-resizer");o.setIgnoreMove(!m),this.isDragging=m&&s.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=(s)=>{let a=this.component.context,l=this.eventRange,o=l.instance.instanceId;if(s.isTouch){if(o!==this.component.props.eventSelection)a.dispatch({type:"SELECT_EVENT",eventInstanceId:o})}else a.dispatch({type:"UNSELECT_EVENT"});if(this.isDragging)a.calendarApi.unselect(s),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new O(a,l.def,l.instance),jsEvent:s.origEvent,view:a.viewApi})},this.handleHitUpdate=(s,a)=>{if(!this.isDragging)return;let l=this.relevantEvents,o=this.hitDragging.initialHit,c=this.component.context,d=null,u=null,g=null,f=!1,p={affectedEvents:l,mutatedEvents:W(),isEvent:!0};if(s){d=s.context;let m=d.options;if(c===d||m.editable&&m.droppable){if(u=_h(o,s,this.eventRange.instance.range.start,d.getCurrentData().pluginHooks.eventDragMutationMassagers),u){if(g=Gt(l,d.getCurrentData().eventUiBases,u,d),p.mutatedEvents=g,!tr(p,s.dateProfile,d))f=!0,u=null,g=null,p.mutatedEvents=W()}}else d=null}if(this.displayDrag(d,p),!f)jt();else Ut();if(!a){if(c===d&&lr(o,s))u=null;this.dragging.setMirrorNeedsRevert(!u),this.dragging.setMirrorIsVisible(!s||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=d,this.validMutation=u,this.mutatedRelevantEvents=g}},this.handlePointerUp=()=>{if(!this.isDragging)this.cleanup()},this.handleDragEnd=(s)=>{if(this.isDragging){let a=this.component.context,l=a.viewApi,{receivingContext:o,validMutation:c}=this,d=this.eventRange.def,u=this.eventRange.instance,g=new O(a,d,u),f=this.relevantEvents,p=this.mutatedRelevantEvents,{finalHit:m}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:g,jsEvent:s.origEvent,view:l}),c){if(o===a){let b=new O(a,p.defs[d.defId],u?p.instances[u.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:p});let y={oldEvent:g,event:b,relatedEvents:pe(p,a,u),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:f})}},E={};for(let A of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(E,A(c,a,d));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},y),E),{el:s.subjectEl,delta:c.datesDelta,jsEvent:s.origEvent,view:l})),a.emitter.trigger("eventChange",y)}else if(o){let b={event:g,relatedEvents:pe(f,a,u),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:f})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:s.subjectEl,view:l})),a.dispatch({type:"REMOVE_EVENTS",eventStore:f}),a.emitter.trigger("eventRemove",b);let y=p.defs[d.defId],E=p.instances[u.instanceId],A=new O(o,y,E);o.dispatch({type:"MERGE_EVENTS",eventStore:p});let _={event:A,relatedEvents:pe(p,o,E),revert(){o.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};if(o.emitter.trigger("eventAdd",_),s.isTouch)o.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId});o.emitter.trigger("drop",Object.assign(Object.assign({},Ao(m.dateSpan,o)),{draggedEl:s.subjectEl,jsEvent:s.origEvent,view:m.context.viewApi})),o.emitter.trigger("eventReceive",Object.assign(Object.assign({},_),{draggedEl:s.subjectEl,view:m.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new Dt(e.el);r.pointer.selector=ln.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new an(this.dragging,ct);i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;if(r&&r!==e)if(r===n)r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:W(),isEvent:!0}});else r.dispatch({type:"UNSET_EVENT_DRAG"});if(e)e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;if(t)t.dispatch({type:"UNSET_EVENT_DRAG"});if(e!==t)e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}ln.SELECTOR=".fc-event-draggable, .fc-event-resizable";function _h(e,t,n,r){let i=e.dateSpan,s=t.dateSpan,a=i.range.start,l=s.range.start,o={};if(i.allDay!==s.allDay)if(o.allDay=s.allDay,o.hasEnd=t.context.options.allDayMaintainDuration,s.allDay)a=x(n);else a=n;let c=Me(a,l,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);if(c.milliseconds)o.allDay=!1;let d={datesDelta:c,standardProps:o};for(let u of r)u(d,e,t);return d}function Rh(e){let{options:t}=e.context,n=t.eventLongPressDelay;if(n==null)n=t.longPressDelay;return n}class _o extends me{constructor(e){super(e);this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=(i)=>{let{component:s}=this,a=this.querySegEl(i),l=Ae(a),o=this.eventRange=l.eventRange;this.dragging.minDistance=s.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(i.origEvent.target)||i.isTouch&&this.component.props.eventSelection!==o.instance.instanceId)},this.handleDragStart=(i)=>{let{context:s}=this.component,a=this.eventRange;this.relevantEvents=Vt(s.getCurrentData().eventStore,this.eventRange.instance.instanceId);let l=this.querySegEl(i);this.draggingSegEl=l,this.draggingSeg=Ae(l),s.calendarApi.unselect(),s.emitter.trigger("eventResizeStart",{el:l,event:new O(s,a.def,a.instance),jsEvent:i.origEvent,view:s.viewApi})},this.handleHitUpdate=(i,s,a)=>{let{context:l}=this.component,o=this.relevantEvents,c=this.hitDragging.initialHit,d=this.eventRange.instance,u=null,g=null,f=!1,p={affectedEvents:o,mutatedEvents:W(),isEvent:!0};if(i){if(!(i.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,i)))u=Th(c,i,a.subjectEl.classList.contains("fc-event-resizer-start"),d.range)}if(u){if(g=Gt(o,l.getCurrentData().eventUiBases,u,l),p.mutatedEvents=g,!tr(p,i.dateProfile,l))f=!0,u=null,g=null,p.mutatedEvents=null}if(g)l.dispatch({type:"SET_EVENT_RESIZE",state:p});else l.dispatch({type:"UNSET_EVENT_RESIZE"});if(!f)jt();else Ut();if(!s){if(u&&lr(c,i))u=null;this.validMutation=u,this.mutatedRelevantEvents=g}},this.handleDragEnd=(i)=>{let{context:s}=this.component,a=this.eventRange.def,l=this.eventRange.instance,o=new O(s,a,l),c=this.relevantEvents,d=this.mutatedRelevantEvents;if(s.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:o,jsEvent:i.origEvent,view:s.viewApi}),this.validMutation){let u=new O(s,d.defs[a.defId],l?d.instances[l.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:d});let g={oldEvent:o,event:u,relatedEvents:pe(d,s,l),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:c})}};s.emitter.trigger("eventResize",Object.assign(Object.assign({},g),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||w(0),endDelta:this.validMutation.endDelta||w(0),jsEvent:i.origEvent,view:s.viewApi})),s.emitter.trigger("eventChange",g)}else s.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new Dt(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new an(this.dragging,Yt(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return F(e.subjectEl,".fc-event")}}function Th(e,t,n,r){let i=e.context.dateEnv,s=e.dateSpan.range.start,a=t.dateSpan.range.start,l=Me(s,a,i,e.largeUnit);if(n){if(i.add(r.start,l)<r.end)return{startDelta:l}}else if(i.add(r.end,l)>r.start)return{endDelta:l};return null}class Ro{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=(n)=>{if(n.jsEvent)this.isRecentPointerDateSelect=!0},this.onDocumentPointerDown=(n)=>{let r=this.context.options.unselectCancel,i=In(n.origEvent);this.matchesCancel=!!F(i,r),this.matchesEvent=!!F(i,ln.SELECTOR)},this.onDocumentPointerUp=(n)=>{let{context:r}=this,{documentPointer:i}=this,s=r.getCurrentData();if(!i.wasTouchScroll){if(s.dateSelection&&!this.isRecentPointerDateSelect){let a=r.options.unselectAuto;if(a&&(!a||!this.matchesCancel))r.calendarApi.unselect(n)}if(s.eventSelection&&!this.matchesEvent)r.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Zi(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}var xh={fixedMirrorParent:v},Mh={dateClick:v,eventDragStart:v,eventDragStop:v,eventDrop:v,eventResizeStart:v,eventResizeStop:v,eventResize:v,drop:v,eventReceive:v,eventLeave:v};$t.dataAttrPrefix="";var To=Y({name:"@fullcalendar/interaction",componentInteractions:[wo,Co,ln,_o],calendarInteractions:[Ro],elementDraggingImpl:Dt,optionRefiners:xh,listenerRefiners:Mh});var kh=[ql,fo,mo,To],Ih=[["onEventClick","eventClick"],["onDateClick","dateClick"],["onSelect","select"],["onUnselect","unselect"],["onEventDrop","eventDrop"],["onEventResize","eventResize"],["onEventChange","eventChange"],["onEventDragStart","eventDragStart"],["onEventDragStop","eventDragStop"],["onEventAdd","eventAdd"],["onDatesSet","datesSet"],["onLoading","loading"],["onMoreLinkClick","moreLinkClick"]],or=(e)=>e!==void 0?typeof e==="function"?e():e:typeof document<"u"?document.documentElement.getAttribute("data-theme")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches:!1,Kg=(e)=>{let{events:t,data:n,options:r,api:i,on:s,class:a,style:l="height: 100%; width: 100%",dark:o}=e,c=()=>{let p=typeof t==="function"?t():t;if(p!=null)return p;return typeof n==="function"?n():n},d=new Set(["plugins","initialView","initialDate","headerToolbar","footerToolbar","customButtons","header","footer","eventDisplay","timeZone","editable","selectMirror","dayHoverTime","nowIndicator","slotMinTime","slotMaxTime","minHeight","contentHeight","aspectRatio","expandRows","weekends","holidays","locale","firstDay","prevText","nextText","moreLinkText","yearRange","navLinks","dayHeaders","startParam","endParam","titleFormat","eventTimeFormat","isMobile","timeGridAutoWidth","groupEvents","resourceLabelText","displayEventTime","displayEventEnd","lazyRendering","ignoreWindowResize","windowResize","dayMaxEvents","dayMaxEventRows","allDaySlot","slotDuration","snapDuration","slotLabelFormat","slotLabelClassNames","extraScroll","dateIncrement","businessHours"]),u=(p)=>{let m={};for(let[b,y]of Object.entries(p||{}))if(d.has(b))m[b]=y;return m},g=(p)=>{let m=null,b=null,y=void 0,E=!1;return re(()=>{if(!p)return;let _=p._fc_calendar;if(_){m=_;let H=c();if(b)m.removeEventSource(b),b=null;if(H!=null)b=m.addEventSource(Array.isArray(H)?H:[]);let B=typeof r==="function"?r():r;if(B)Object.entries(u(B)).forEach(([Ue,Z])=>{if(Ue==="plugins")return;try{m.setOption(Ue,Z)}catch(cr){}});let be=or(o);if(be!==y)y=be,p.classList.toggle("sigpro-calendar-dark",be);return}if(p.__sigproCalPending)return;E=!1;let k=is(()=>typeof r==="function"?r():r)||{},I=or(o),N={plugins:k.plugins??kh,initialView:k.initialView??"dayGridMonth",height:"100%",...u(k)};Ih.forEach(([H,B])=>{if(N[B]==null)N[B]=(be)=>s?.[H]?.(be,_)});let T=N.viewDidMount;if(N.viewDidMount=function(...H){if(!E&&s?.onDidMount)E=!0,s.onDidMount(m);return T?.call(this,...H)},!p.isConnected||p.clientWidth===0||p.clientHeight===0){let H={opts:N,dark:I},B=!1;p.__sigproCalPending=!0,requestAnimationFrame(()=>{if(B||!p.isConnected)return;if(delete p.__sigproCalPending,m=new rn(p,H.opts),p._fc_calendar=m,f.current=m,i)i.current=m;y=H.dark,p.classList.toggle("sigpro-calendar-dark",H.dark),m.render(),requestAnimationFrame(()=>{if(m&&p.isConnected)m.updateSize()})}),setTimeout(()=>{if(delete p.__sigproCalPending,B||!p.isConnected)return;if(m=new rn(p,H.opts),p._fc_calendar=m,f.current=m,i)i.current=m;y=H.dark,p.classList.toggle("sigpro-calendar-dark",H.dark),m.render(),requestAnimationFrame(()=>{if(m&&p.isConnected)m.updateSize()})},50),re(()=>{let Z=c();if(!m)return;if(b)m.removeEventSource(b),b=null;if(Z!=null)b=m.addEventSource(Array.isArray(Z)?Z:[])});let Ue=!0;re(()=>{let Z=typeof r==="function"?r():r;if(Ue){Ue=!1;return}if(!Z||!m)return;Object.entries(u(Z)).forEach(([cr,xo])=>{if(cr==="plugins")return;try{m.setOption(cr,xo)}catch(Nh){}})}),re(()=>{let Z=or(o);if(Z===y)return;y=Z,p.classList.toggle("sigpro-calendar-dark",Z)})}else{if(m=new rn(p,N),p._fc_calendar=m,f.current=m,i)i.current=m;y=I,p.classList.toggle("sigpro-calendar-dark",I),m.render(),re(()=>{let B=c();if(!m)return;if(b)m.removeEventSource(b),b=null;if(B!=null)b=m.addEventSource(Array.isArray(B)?B:[])});let H=!0;re(()=>{let B=typeof r==="function"?r():r;if(H){H=!1;return}if(!B||!m)return;Object.entries(u(B)).forEach(([be,Ue])=>{if(be==="plugins")return;try{m.setOption(be,Ue)}catch(Z){}})}),re(()=>{let B=or(o);if(B===y)return;y=B,p.classList.toggle("sigpro-calendar-dark",B)})}return()=>{if(delete p.__sigproCalPending,m)m.destroy();if(p._fc_calendar=null,f.current=null,i)i.current=null}})},f={};return cn("div",{class:a,style:l,ref:g})};export{Kg as Calendar};
|