(()=>{var _t,A,Vr,pn,Ie,Ee,zr,Gr,Qr,yt={},qr=[],oa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function oe(t,e){for(var n in e)t[n]=e[n];return t}function Yr(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,n){var r,s,i,a={};for(i in e)i=="key"?r=e[i]:i=="ref"?s=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?_t.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return bt(t,a,r,s,null)}function bt(t,e,n,r,s){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Vr:s};return s==null&&A.vnode!=null&&A.vnode(i),i}function O(){return{current:null}}function w(t){return t.children}function ca(t,e,n,r,s){var i;for(i in n)i==="children"||i==="key"||i in e||At(t,i,null,n[i],r);for(i in e)s&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===e[i]||At(t,i,e[i],n[i],r)}function Lr(t,e,n){e[0]==="-"?t.setProperty(e,n==null?"":n):t[e]=n==null?"":typeof n!="number"||oa.test(e)?n:n+"px"}function At(t,e,n,r,s){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Lr(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Lr(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?jr:Wr,i):t.removeEventListener(e,i?jr:Wr,i);else if(e!=="dangerouslySetInnerHTML"){if(s)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n==null?"":n;break e}catch(a){}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Wr(t){Ie=!0;try{return this.l[t.type+!1](A.event?A.event(t):t)}finally{Ie=!1}}function jr(t){Ie=!0;try{return this.l[t.type+!0](A.event?A.event(t):t)}finally{Ie=!1}}function x(t,e){this.props=t,this.context=e}function qe(t,e){if(e==null)return t.__?qe(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&Ee.sort(function(o,u){return o.__v.__b-u.__v.__b}));Et.__r=0}function $r(t,e,n,r,s,i,a,l,o,u){var c,g,h,f,m,y,v,b=r&&r.__k||qr,E=b.length;for(n.__k=[],c=0;c0?bt(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=b[c])===null||h&&f.key==h.key&&f.type===h.type)b[c]=void 0;else for(g=0;g=0;e--)if((n=t.__k[e])&&(r=Xr(n)))return r}return null}function mn(t,e,n,r,s,i,a,l,o){var u,c,g,h,f,m,y,v,b,E,R,D,Y,B,L,I=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,l=e.__e=n.__e,e.__h=null,i=[l]),(u=A.__b)&&u(e);try{e:if(typeof I=="function"){if(v=e.props,b=(u=I.contextType)&&r[u.__c],E=u?b?b.props.value:u.__:r,n.__c?y=(c=e.__c=n.__c).__=c.__E:("prototype"in I&&I.prototype.render?e.__c=c=new I(v,E):(e.__c=c=new x(v,E),c.constructor=I,c.render=fa),b&&b.sub(c),c.props=v,c.state||(c.state={}),c.context=E,c.__n=r,g=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),I.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=oe({},c.__s)),oe(c.__s,I.getDerivedStateFromProps(v,c.__s))),h=c.props,f=c.state,c.__v=e,g)I.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(I.getDerivedStateFromProps==null&&v!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,E),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,E)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(vt){vt&&(vt.__=e)}),R=0;R3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),ce(d(ya,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Ss(t,e){var n=d(Aa,{__v:t,i:e});return n.containerInfo=e,n}(Ct.prototype=new x).__a=function(t){var e=this,n=_s(e.__v),r=e.o.get(t);return r[0]++,function(s){var i=function(){e.props.revealOrder?(r.push(s),ps(e,t,r)):s()};n?n(i):i()}},Ct.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ye(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Ct.prototype.componentDidUpdate=Ct.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ps(t,n,e)})};var Ea=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,_a=/^(?: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]/,Sa=typeof document!="undefined",Da=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(x.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var ms=A.event;function Ca(){}function Ra(){return this.cancelBubble}function wa(){return this.defaultPrevented}A.event=function(t){return ms&&(t=ms(t)),t.persist=Ca,t.isPropagationStopped=Ra,t.isDefaultPrevented=wa,t.nativeEvent=t};var Ta,vs={configurable:!0,get:function(){return this.class}},bs=A.vnode;A.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var s=e.indexOf("-")===-1;for(var i in r={},n){var a=n[i];Sa&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in n&&a==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!Da(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():s&&_a.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ye(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Ye(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),t.props=r,n.class!=n.className&&(vs.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",vs))}t.$$typeof=Ea,bs&&bs(t)};var ys=A.__r;A.__r=function(t){ys&&ys(t),Ta=t.__c};var Hs=[],Tn=new Map;function pe(t){Hs.push(t),Tn.forEach(e=>{Us(e,t)})}function Ps(t){t.isConnected&&t.getRootNode&&Bs(t.getRootNode())}function Bs(t){let e=Tn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");let n=Ma();n&&(e.nonce=n);let r=t===document?document.head:t,s=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,s)}Tn.set(t,e),Ia(e)}}function Ia(t){for(let e of Hs)Us(t,e)}function Us(t,e){let{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((s,i)=>{s=s.trim(),s&&n.insertRule(s+"}",r+i)})}var En;function Ma(){return En===void 0&&(En=ka()),En}function ka(){let t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");let e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document!="undefined"&&Bs(document);var xa=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';pe(xa);var Se=class{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}};function Fs(t){t.parentNode&&t.parentNode.removeChild(t)}function G(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(zs(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function zs(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Ls(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let s=0;s{let r=G(n.target,t);r&&e.call(r,n,r)}}function Wn(t,e,n,r){let s=Oa(n,r);return t.addEventListener(e,s),()=>{t.removeEventListener(e,s)}}function Vs(t,e,n,r){let s;return Wn(t,"mouseover",e,(i,a)=>{if(a!==s){s=a,n(i,a);let l=o=>{s=null,r(o,a),a.removeEventListener("mouseleave",l)};a.addEventListener("mouseleave",l)}})}function Gs(t){return Object.assign({onClick:t},Qs(t))}function Qs(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}var Cs=0;function ie(){return Cs+=1,String(Cs)}function qs(t){let e=[],n=[],r,s;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;rr.replace("$"+i,s||""),t):n}function xt(t){return t%1===0}function Pa(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}var Ba=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function S(t,e){return typeof t=="string"?Ua(t):typeof t=="object"&&t?Rs(t):typeof t=="number"?Rs({[e||"milliseconds"]:t}):null}function Ua(t){let e=Ba.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Rs(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Fa(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function $s(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function za(t){return Me(t)/365}function La(t){return Me(t)/30}function Me(t){return ke(t)/864e5}function ke(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function $e(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function ee(t,e,n){if(t===e)return!0;let r=t.length,s;if(r!==e.length)return!1;for(s=0;s=1?Math.min(s,i):s}function _n(t,e,n,r){let s=U([e,0,1+$a(e,n,r)]),i=M(t),a=Math.round(me(s,i));return Math.floor(a/7)+1}function $a(t,e,n){let r=7+e-n;return-((7+U([t,0,r]).getUTCDay()-e)%7)+r-1}function ws(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ts(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function de(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function U(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Vn(t){return!isNaN(t.valueOf())}function fe(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Xs(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",Gn(e,!0)))),r}function ve(t){return t.toISOString().replace(/T.*$/,"")}function ze(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Gn(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),s=Math.floor(r/60),i=Math.round(r%60);return e?`${n+kt(s,2)}:${kt(i,2)}`:`GMT${n}${s}${i?`:${kt(i,2)}`:""}`}function _(t,e,n){let r,s;return function(...i){if(!r)s=t.apply(this,i);else if(!ee(r,i)){n&&n(s);let a=t.apply(this,i);(!e||!e(a,s))&&(s=a)}return r=i,s}}function Le(t,e,n){let r,s;return i=>{if(!r)s=t.call(this,i);else if(!H(r,i)){n&&n(s);let a=t.call(this,i);(!e||!e(a,s))&&(s=a)}return r=i,s}}var Sn={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Ht={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Rt=/\s*([ap])\.?m\.?/i,Ja=/,/g,Ka=/\s+/g,Xa=/\u200e/g,el=/UTC|GMT/,In=class{constructor(e){let n={},r={},s=9;for(let i in e)i in Sn?(r[i]=e[i],Sn[i]<9&&(s=Math.min(Sn[i],s))):(n[i]=e[i],i in Ht&&(s=Math.min(Ht[i],s)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=s,this.buildFormattingFunc=_(Is)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,s){let{standardDateProps:i,extendedSettings:a}=this,l=al(e.marker,n.marker,r.calendarSystem);if(!l)return this.format(e,r);let o=l;o>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit")&&(o=1);let u=this.format(e,r),c=this.format(n,r);if(u===c)return u;let g=ll(i,o),h=Is(g,a,r),f=h(e),m=h(n),y=ol(u,f,c,m),v=a.separator||s||r.defaultSeparator||"";return y?y.before+f+v+m+y.after:u+v+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 Is(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?s=>Gn(s.timeZoneOffset):r===0&&e.week?s=>il(n.computeWeekNumber(s.marker),n.weekText,n.weekTextLong,n.locale,e.week):tl(t,e,n)}function tl(t,e,n){t=Object.assign({},t),e=Object.assign({},e),nl(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),s;if(e.omitZeroMinute){let i=Object.assign({},t);delete i.minute,s=new Intl.DateTimeFormat(n.locale.codes,i)}return i=>{let{marker:a}=i,l;s&&!a.getUTCMinutes()?l=s:l=r;let o=l.format(a);return rl(o,i,t,e,n)}}function nl(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function rl(t,e,n,r,s){return t=t.replace(Xa,""),n.timeZoneName==="short"&&(t=sl(t,s.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Gn(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Ja,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Rt,"").trim():r.meridiem==="narrow"?t=t.replace(Rt,(i,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Rt,(i,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Rt,i=>i.toLocaleLowerCase())),t=t.replace(Ka," "),t=t.trim(),t}function sl(t,e){let n=!1;return t=t.replace(el,()=>(n=!0,e)),n||(t+=` ${e}`),t}function il(t,e,n,r,s){let i=[];return s==="long"?i.push(n):(s==="short"||s==="narrow")&&i.push(e),(s==="long"||s==="short")&&i.push(" "),i.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&i.reverse(),i.join("")}function al(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:fe(t)!==fe(e)?1:0}function ll(t,e){let n={};for(let r in t)(!(r in Ht)||Ht[r]<=e)&&(n[r]=t[r]);return n}function ol(t,e,n,r){let s=0;for(;s=0;i-=1){let a=t[i][r];if(typeof a=="object"&&a)s.unshift(a);else if(a!==void 0){n[r]=a;break}}s.length&&(n[r]=Yt(s))}}for(let r=t.length-1;r>=0;r-=1){let s=t[r];for(let i in s)i in n||(n[i]=s[i])}return n}function he(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function Te(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Zn(t){let e={};for(let n of t)e[n]=!0;return e}function Zt(t){let e=[];for(let n in t)e.push(t[n]);return e}function H(t,e){if(t===e)return!0;for(let n in t)if(Bt.call(t,n)&&!(n in e))return!1;for(let n in e)if(Bt.call(e,n)&&t[n]!==e[n])return!1;return!0}var cl=/^on[A-Z]/;function ul(t,e){let n=dl(t,e);for(let r of n)if(!cl.test(r))return!1;return!0}function dl(t,e){let n=[];for(let r in t)Bt.call(t,r)&&(r in e||n.push(r));for(let r in e)Bt.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Nt(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&fl(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function fl(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function ti(t,e=0,n,r=1){let s=[];n==null&&(n=Object.keys(t).length);for(let i=e;i{this.props.value!==a.value&&i.forEach(l=>{l.context=a.value,l.forceUpdate()})},this.sub=a=>{i.push(a);let l=a.componentWillUnmount;a.componentWillUnmount=()=>{i.splice(i.indexOf(a),1),l&&l.call(a)}}}return s},e}var Ut=class{constructor(e,n,r,s){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=s,this.handleScrollRequest=i=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}},ae=si({});function ii(t,e,n,r,s,i,a,l,o,u,c,g,h,f){return{dateEnv:s,nowManager:i,options:n,pluginHooks:l,emitter:c,dispatch:o,getCurrentData:u,calendarApi:g,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:a,isRtl:n.direction==="rtl",addResizeHandler(m){c.on("_resize",m)},removeResizeHandler(m){c.off("_resize",m)},createScrollResponder(m){return new Ut(m,c,S(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:f}}var K=class extends x{shouldComponentUpdate(e,n){return!Nt(this.props,e,this.propEquality)||!Nt(this.state,n,this.stateEquality)}safeSetState(e){Nt(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}};K.addPropsEquality=ml;K.addStateEquality=vl;K.contextType=ae;K.prototype.propEquality={};K.prototype.stateEquality={};var C=class extends K{};C.contextType=ae;function ml(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function vl(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function j(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var Xe=class extends C{constructor(){super(...arguments),this.id=ie(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!On(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&j(this.props.elRef,e)}}render(){let{props:e,context:n}=this,{options:r}=n,{customGenerator:s,defaultGenerator:i,renderProps:a}=e,l=$n(e,[],this.handleEl),o=!1,u,c=[],g;if(s!=null){let h=typeof s=="function"?s(a,d):s;if(h===!0)o=!0;else{let f=h&&typeof h=="object";f&&"html"in h?l.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?c=Array.prototype.slice.call(h.domNodes):(f?pn(h):typeof h!="function")?u=h:g=h}}else o=!On(e.generatorName,r);return o&&i&&(u=i(a)),this.queuedDomNodes=c,this.currentGeneratorMeta=g,d(e.elTag,l,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;let{props:r,context:s}=this,{handleCustomRendering:i,customRenderingMetaMap:a}=s.options;if(i){let l=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];l&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:l},r),{elClasses:(r.elClasses||[]).filter(bl)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!ee(e,n)){n.forEach(Fs);for(let s of e)r.appendChild(s);this.currentDomNodes=e}}};Xe.addPropsEquality({elClasses:ee,elStyle:H,elAttrs:ul,renderProps:H});function On(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function $n(t,e,n){let r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function bl(t){return!!t}var Jn=si(0),N=class extends x{constructor(){super(...arguments),this.InnerContent=yl.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(j(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:e}=this,n=Al(e.classNameGenerator,e.renderProps);if(e.children){let r=$n(e,n,this.handleEl),s=e.children(this.InnerContent,e.renderProps,r);return e.elTag?d(e.elTag,r,s):s}else return d(Xe,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}};N.contextType=Jn;function yl(t,e){let n=t.props;return d(Xe,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Al(t,e){let n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}var X=class extends C{render(){let{props:e,context:n}=this,{options:r}=n,s={view:n.viewApi};return d(N,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Kn(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}};function Kn(t){return[`fc-${t.type}-view`,"fc-view"]}function El(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&rr&&n.push({start:r,end:i.start}),i.end>r&&(r=i.end);return re.start)&&(t.start===null||e.end===null||t.start=t.start)&&(t.end===null||e=e.end?new Date(e.end.valueOf()-1):t}function li(t){let e=Math.floor(me(t.start,t.end))||1,n=M(t.start),r=k(n,e);return{start:n,end:r}}function $t(t,e=S(0)){let n=null,r=null;if(t.end){r=M(t.end);let s=t.end.valueOf()-r.valueOf();s&&s>=ke(e)&&(r=k(r,1))}return t.start&&(n=M(t.start),r&&r<=n&&(r=k(n,1))),{start:n,end:r}}function Xn(t){let e=$t(t);return me(e.start,e.end)>1}function Ze(t,e,n,r){return r==="year"?S(n.diffWholeYears(t,e),"year"):r==="month"?S(n.diffWholeMonths(t,e),"month"):Js(t,e)}var De=class{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:s}=this.props,i=s.subtract(s.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,r)}buildNext(e,n,r){let{dateEnv:s}=this.props,i=s.add(s.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,r)}build(e,n,r=!0){let{props:s}=this,i,a,l,o,u,c;return i=this.buildValidRange(),i=this.trimHiddenDays(i),r&&(e=Sl(e,i)),a=this.buildCurrentRangeInfo(e,n),l=/^(year|month|week|day)$/.test(a.unit),o=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,l),o=this.trimHiddenDays(o),u=o,s.showNonCurrentDates||(u=W(u,a.range)),u=this.adjustActiveRange(u),u=W(u,i),c=ai(a.range,i),$(o,e)||(e=o.start),{currentDate:e,validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:l,activeRange:u,renderRange:o,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,s=null,i=null,a=null,l;return r.duration?(s=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,n,s,i)):(l=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,n,l)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(s=this.getFallbackDuration(),i=$e(s).unit,a=this.buildRangeFromDuration(e,n,s,i)),{duration:s,unit:i,range:a}}getFallbackDuration(){return S({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:s,slotMaxTime:i}=this.props,{start:a,end:l}=e;return r&&(Me(s)<0&&(a=M(a),a=n.add(a,s)),Me(i)>1&&(l=M(l),l=k(l,-1),l=n.add(l,i))),{start:a,end:l}}buildRangeFromDuration(e,n,r,s){let{dateEnv:i,dateAlignment:a}=this.props,l,o,u;if(!a){let{dateIncrement:g}=this.props;g&&ke(g)!a[o.defId].recurringDef);for(let o in a){let u=a[o];if(u.recurringDef){let{duration:c}=u.recurringDef;c||(c=u.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let g=Cl(u,c,e,r,s.recurringTypes);for(let h of g){let f=Jt(o,{start:h,end:r.add(h,c)});l[f.instanceId]=f}}}return{defs:a,instances:l}}function Cl(t,e,n,r,s){let a=s[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(a=a.map(M)),a}var Ot={id:String,groupId:String,title:String,url:String,interactive:Boolean},oi={start:p,end:p,date:p,allDay:Boolean},Rl=Object.assign(Object.assign(Object.assign({},Ot),oi),{extendedProps:p});function ci(t,e,n,r,s=tr(n),i,a){let{refined:l,extra:o}=er(t,n,s),u=Tl(e,n),c=Dl(l,u,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let h=Ft(l,o,e?e.sourceId:"",c.allDay,!!c.duration,n,i);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let g=wl(l,u,n,r);if(g){let h=Ft(l,o,e?e.sourceId:"",g.allDay,g.hasEnd,n,i),f=Jt(h.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return a&&h.publicId&&a[h.publicId]&&(f.instanceId=a[h.publicId]),{def:h,instance:f}}return null}function er(t,e,n=tr(e)){return qt(t,n)}function tr(t){return Object.assign(Object.assign(Object.assign({},Lt),Rl),t.pluginHooks.eventRefiners)}function Ft(t,e,n,r,s,i,a){let l={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||ie(),sourceId:n,allDay:r,hasEnd:s,interactive:t.interactive,ui:We(t,i),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of i.pluginHooks.eventDefMemberAdders)Object.assign(l,o(t));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function wl(t,e,n,r){let{allDay:s}=t,i,a=null,l=!1,o,u=null,c=t.start!=null?t.start:t.date;if(i=n.dateEnv.createMarkerMeta(c),i)a=i.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),s==null&&(e!=null?s=e:s=(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),s&&a&&(a=M(a)),o&&(u=o.marker,s&&(u=M(u)),a&&u<=a&&(u=null)),u?l=!0:r||(l=n.options.forceEventDuration||!1,u=n.dateEnv.add(a,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:s,hasEnd:l,range:{start:a,end:u},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function Tl(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function et(t,e,n,r,s,i){let a=te(),l=tr(n);for(let o of t){let u=ci(o,e,n,r,l,s,i);u&&zt(u,a)}return a}function zt(t,e=te()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function ui(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],s=nr(t,i=>Il(r,i));return s.defs[r.defId]=r,s.instances[n.instanceId]=n,s}return te()}function Il(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function te(){return{defs:{},instances:{}}}function Kt(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function nr(t,e){let n=he(t.defs,e),r=he(t.instances,s=>n[s.defId]);return{defs:n,instances:r}}function Ml(t,e){let{defs:n,instances:r}=t,s={},i={};for(let a in n)e.defs[a]||(s[a]=n[a]);for(let a in r)!e.instances[a]&&s[r[a].defId]&&(i[a]=r[a]);return{defs:s,instances:i}}function kl(t,e){return Array.isArray(t)?et(t,null,e,!0):typeof t=="object"&&t?et([t],null,e,!0):t!=null?String(t):null}function Hn(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}var Lt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:p,overlap:p,allow:p,className:Hn,classNames:Hn,color:String,backgroundColor:String,borderColor:String,textColor:String},xl={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function We(t,e){let n=kl(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function di(t){return t.reduce(Nl,xl)}function Nl(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}var Ol={id:String,defaultAllDay:Boolean,url:String,format:String,events:p,eventDataTransform:p,success:p,failure:p};function rr(t,e,n=sr(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:s,extra:i}=qt(r,n),a=Hl(s,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:ie(),sourceDefId:a.sourceDefId,meta:a.meta,ui:We(s,e),extendedProps:i}}return null}function sr(t){return Object.assign(Object.assign(Object.assign({},Lt),Ol),t.pluginHooks.eventSourceRefiners)}function Hl(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let i=n[r].parseMeta(t);if(i)return{sourceDefId:r,meta:i}}return null}function fi(t,e,n,r,s){switch(e.type){case"RECEIVE_EVENTS":return Pl(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,s);case"RESET_RAW_EVENTS":return Bl(t,n[e.sourceId],e.rawEvents,r.activeRange,s);case"ADD_EVENTS":return Ul(t,e.eventStore,r?r.activeRange:null,s);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Kt(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?ut(t,r.activeRange,s):t;case"REMOVE_EVENTS":return Ml(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return gi(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return nr(t,i=>!i.sourceId);case"REMOVE_ALL_EVENTS":return te();default:return t}}function Pl(t,e,n,r,s,i){if(e&&n===e.latestFetchId){let a=et(hi(s,e,i),e,i);return r&&(a=ut(a,r,i)),Kt(gi(t,e.sourceId),a)}return t}function Bl(t,e,n,r,s){let{defIdMap:i,instanceIdMap:a}=Fl(t),l=et(hi(n,e,s),e,s,!1,i,a);return ut(l,r,s)}function hi(t,e,n){let r=n.options.eventDataTransform,s=e?e.eventDataTransform:null;return s&&(t=xs(t,s)),r&&(t=xs(t,r)),t}function xs(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let s=e(r);s?n.push(s):s==null&&n.push(r)}}return n}function Ul(t,e,n,r){return n&&(e=ut(e,n,r)),Kt(t,e)}function ir(t,e,n){let{defs:r}=t,s=Te(t.instances,i=>r[i.defId].allDay?i:Object.assign(Object.assign({},i),{range:{start:n.createMarker(e.toDate(i.range.start,i.forcedStartTzo)),end:n.createMarker(e.toDate(i.range.end,i.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:i.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:i.forcedEndTzo}));return{defs:r,instances:s}}function gi(t,e){return nr(t,n=>n.sourceId!==e)}function Fl(t){let{defs:e,instances:n}=t,r={},s={};for(let i in e){let a=e[i],{publicId:l}=a;l&&(r[l]=i)}for(let i in n){let a=n[i],l=e[a.defId],{publicId:o}=l;o&&(s[o]=i)}return{defIdMap:r,instanceIdMap:s}}var tt=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){zl(this.handlers,e,n)}off(e,n){Ll(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],s=this.options&&this.options[e],i=[].concat(s||[],r);for(let a of i)a.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}};function zl(t,e,n){(t[e]||(t[e]=[])).push(n)}function Ll(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}var Wl={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ar(t,e){return et(jl(t),null,e)}function jl(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},Wl),n)),e}function pi(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Gl(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Vl(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Gl(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,no(t,e.dateEnv)),n}function Pn(t,e,n){let{dateEnv:r,options:s}=n,i=e;return t?(i=M(i),i=r.add(i,s.defaultAllDayEventDuration)):i=r.add(i,s.defaultTimedEventDuration),i}function mi(t,e,n,r){let s=bi(t.defs,e),i=te();for(let a in t.defs){let l=t.defs[a];i.defs[a]=Ql(l,s[a],n,r)}for(let a in t.instances){let l=t.instances[a],o=i.defs[l.defId];i.instances[a]=ql(l,o,s[l.defId],n,r)}return i}function Ql(t,e,n,r){let s=n.standardProps||{};s.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(s.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},t),s),{ui:Object.assign(Object.assign({},t.ui),s.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function ql(t,e,n,r,s){let{dateEnv:i}=s,a=r.standardProps&&r.standardProps.allDay===!0,l=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return a&&(o.range=li(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:i.add(o.range.start,r.datesDelta),end:i.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:i.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:i.add(o.range.end,r.endDelta)}),l&&(o.range={start:o.range.start,end:Pn(e.allDay,o.range.start,s)}),e.allDay&&(o.range={start:M(o.range.start),end:M(o.range.end)}),o.range.endyi(n,e))}function yi(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),di(n)}function ht(t,e){let n=t.map(Yl);return n.sort((r,s)=>Ys(r,s,e)),n.map(r=>r._seg)}function Yl(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,s=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:s,end:i,duration:i-s,allDay:Number(n.allDay),_seg:t})}function Zl(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:s,ui:i}=t.eventRange,a=i.startEditable;for(let l of r)a=l(a,s,i,e);return a}function $l(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Jl(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function ye(t,e,n,r,s,i,a){let{dateEnv:l,options:o}=n,{displayEventTime:u,displayEventEnd:c}=o,g=t.eventRange.def,h=t.eventRange.instance;u==null&&(u=r!==!1),c==null&&(c=s!==!1);let f=h.range.start,m=h.range.end,y=i||t.start||t.eventRange.range.start,v=a||t.end||t.eventRange.range.end,b=M(f).valueOf()===M(y).valueOf(),E=M(J(m,-1)).valueOf()===M(J(v,-1)).valueOf();return u&&!g.allDay&&(b||E)?(y=b?f:y,v=E?m:v,c&&g.hasEnd?l.formatRange(y,v,e,{forcedStartTzo:i?null:h.forcedStartTzo,forcedEndTzo:a?null:h.forcedEndTzo}):l.format(y,e,{forcedTzo:i?null:h.forcedStartTzo})):""}function le(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&$(e,r.start)}}function Kl(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function lr(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function je(t,e){let{def:n,instance:r}=t.eventRange,{url:s}=n;if(s)return{href:s};let{emitter:i,options:a}=e,{eventInteractive:l}=a;return l==null&&(l=n.interactive,l==null&&(l=!!i.hasHandlers("eventClick"))),l?Qs(o=>{i.trigger("eventClick",{el:o.target,event:new F(e,n,r),jsEvent:o,view:e.viewApi})}):{}}var Xl={start:p,end:p,allDay:Boolean};function eo(t,e,n){let r=to(t,e),{range:s}=r;if(!s.start)return null;if(!s.end){if(n==null)return null;s.end=e.add(s.start,n)}return r}function to(t,e){let{refined:n,extra:r}=qt(t,Xl),s=n.start?e.createMarkerMeta(n.start):null,i=n.end?e.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=s&&s.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:s?s.marker:null,end:i?i.marker:null},allDay:a},r)}function no(t,e){return Object.assign(Object.assign({},Ai(t.range,e,t.allDay)),{allDay:t.allDay})}function or(t,e,n){return Object.assign(Object.assign({},Ai(t,e,n)),{timeZone:e.timeZone})}function Ai(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function ro(t,e,n){let r=er({editable:!1},n),s=Ft(r.refined,r.extra,"",t.allDay,!0,n);return{def:s,ui:yi(s,e),instance:Jt(s.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function cr(t,e,n){let r=!1,s=function(l){r||(r=!0,e(l))},i=function(l){r||(r=!0,n(l))},a=t(s,i);a&&typeof a.then=="function"&&a.then(s,i)}var Wt=class extends Error{constructor(e,n){super(e),this.response=n}};function ur(t,e,n){t=t.toUpperCase();let r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(s=>{if(s.ok)return s.json().then(i=>[i,s],()=>{throw new Wt("Failure parsing JSON",s)});throw new Wt("Request failed",s)})}var Dn;function dr(){return Dn==null&&(Dn=so()),Dn}function so(){if(typeof document=="undefined")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="
",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}var nt=class extends C{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Ke(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Ke(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,s=r||n.height==="auto"||n.contentHeight==="auto",i=!s&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return dr()||a.push("fc-liquid-hack"),e.children(a,i,s,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}},Oe=class{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}};function Ei(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}var Xt={},Q=class extends x{constructor(e,n){super(e,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:s}=n.options;s==="auto"&&(s=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let i,a;return s?(i=n.dateEnv.startOf(r,e.unit),a=n.dateEnv.add(i,S(1,e.unit)).valueOf()-r.valueOf()):(i=r,a=1e3*60),a=Math.min(1e3*60*60*24,a),{state:{nowDate:i,todayRange:io(i)},waitMs:a}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{let n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}};Q.contextType=ae;function io(t){let e=M(t),n=k(e,1);return{start:e,end:n}}var rt=class{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,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),s;n=n||"day",s=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),s?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:s.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),s=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),i,a;for(let l in n)s.push(l);for(i=0;i{this.dispatch({type:"REMOVE_EVENTS",eventStore:vi(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:s}=n.eventStore;e=String(e);for(let i in r){let a=r[i];if(a.publicId===e){if(a.recurringDef)return new F(n,a,null);for(let l in s){let o=s[l];if(o.defId===a.defId)return new F(n,a,o)}}}return null}getEvents(){let e=this.getCurrentData();return dt(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let s in n)r.push(new ue(e,n[s]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let s in r)if(r[s].publicId===e)return new ue(n,r[s]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof ue)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=rr(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new ue(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=S(e);n&&this.trigger("_scrollRequest",{time:n})}};function _i(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.leftn:e&&t>=e.end)}}function Ve(t,e){let n=["fc-day",`fc-day-${Wa[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}var ao=T({year:"numeric",month:"long",day:"numeric"}),lo=T({week:"long"});function Ae(t,e,n="day",r=!0){let{dateEnv:s,options:i,calendarApi:a}=t,l=s.format(e,n==="week"?lo:ao);if(i.navLinks){let o=s.toDate(e),u=c=>{let g=n==="day"?i.navLinkDayClick:n==="week"?i.navLinkWeekClick:null;typeof g=="function"?g.call(a,s.toDate(e),c):(typeof g=="string"&&(n=g),a.zoomTo(e,n))};return Object.assign({title:Fe(i.navLinkHint,[l,o],l),"data-navlink":""},r?Gs(u):{onClick:u})}return{"aria-label":l}}var Cn;function Si(){return Cn||(Cn=oo()),Cn}function oo(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=co(t);return document.body.removeChild(t),e}function co(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function uo(t){let e=Di(t),n=t.getBoundingClientRect();for(let r of e){let s=_i(n,r.getBoundingClientRect());if(s)n=s;else return null}return n}function Di(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}var ge=class{constructor(e,n,r,s){this.els=n;let i=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(i.left),s&&this.buildElVerticals(i.top)}buildElHorizontals(e){let n=[],r=[];for(let s of this.els){let i=s.getBoundingClientRect();n.push(i.left-e),r.push(i.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let s of this.els){let i=s.getBoundingClientRect();n.push(i.top-e),r.push(i.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,s=n.length,i;for(i=0;i=n[i]&&e=n[i]&&en.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 n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnti.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:s.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:s}=this;n.lateral===-1?(Rn(s,n.level,n.levelCoord),Rn(r,n.level,[e])):Rn(r[n.level],n.lateral,e),this.stackCnts[Ce(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:s,stackCnts:i}=this,a=n.length,l=0,o=-1,u=-1,c=null,g=0;for(let m=0;m=l+this.getEntryThickness(e))break;let v=r[m],b,E=Un(v,e.span.start,Bn),R=E[0]+E[1];for(;(b=v[R])&&b.span.startl&&(l=D,c=b,o=m,u=R),D===l&&(g=Math.max(g,i[Ce(b)]+1)),R+=1}}let h=0;if(c)for(h=o+1;hn(t[s-1]))return[s,0];for(;ra)r=i+1;else return[i,1]}return[r,0]}function Ci(t,e){return!t||e>10?T({weekday:"short"}):e>1?T({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):T({weekday:"long"})}var Ri="fc-col-header-cell";function wi(t){return t.text}var jt=class extends C{render(){let{dateEnv:e,options:n,theme:r,viewApi:s}=this.context,{props:i}=this,{date:a,dateProfile:l}=i,o=gt(a,i.todayRange,null,l),u=[Ri].concat(Ve(o,r)),c=e.format(a,i.dayHeaderFormat),g=!o.isDisabled&&i.colCnt>1?Ae(this.context,a):{},h=e.toDate(a);e.namedTimeZoneImpl&&(h=J(h,36e5));let f=Object.assign(Object.assign(Object.assign({date:h,view:s},i.extraRenderProps),{text:c}),o);return d(N,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":o.isDisabled?void 0:ve(a)},i.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:wi,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},m=>d("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&d(m,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}},fo=T({weekday:"long"}),Vt=class extends C{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:s,options:i}=this.context,a=k(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(a,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:a},l),{view:s}),e.extraRenderProps),{text:o});return d(N,{elTag:"th",elClasses:[Ri,...Ve(l,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:wi,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},c=>d("div",{className:"fc-scrollgrid-sync-inner"},d(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,fo)}})))}},Re=class extends C{constructor(){super(...arguments),this.createDayHeaderFormatter=_(ho)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:s,renderIntro:i}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,s,n.length);return d(Q,{unit:"day"},(l,o)=>d("tr",{role:"row"},i&&i("day"),n.map(u=>s?d(jt,{key:u.toISOString(),date:u,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:a}):d(Vt,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:a}))))}};function ho(t,e,n){return t||Ci(e,n)}var it=class{constructor(e,n){let r=e.start,{end:s}=e,i=[],a=[],l=-1;for(;r=n.length?n[n.length-1]+1:n[r]}},at=class{constructor(e,n){let{dates:r}=e,s,i,a;if(n){for(i=r[0].getUTCDay(),s=1;s{this.el=e,j(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,s=n&&r,i=["fc-scroller"];return n&&(r?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),d("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:s&&-(e.overcomeLeft||0)||"",right:s&&-(e.overcomeRight||0)||"",bottom:s&&-(e.overcomeBottom||0)||"",marginLeft:!s&&-(e.overcomeLeft||0)||"",marginRight:!s&&-(e.overcomeRight||0)||"",marginBottom:!s&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Mt.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let s=0;sn)return!0;return!1}needsYScrolling(){if(Mt.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let s=0;sn)return!0;return!1}getXScrollbarWidth(){return Mt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Mt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}},q=class{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:s,currentMap:i}=this,a=!1,l=!1;n!==null?(a=r in i,i[r]=n,s[r]=(s[r]||0)+1,l=!0):(s[r]-=1,s[r]||(delete i[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),l&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return ti(this.currentMap,e,n,r)}getAll(){return Zt(this.currentMap)}};function Ti(t){let e=Ls(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Pa(r));return Math.ceil(n)}function fr(t,e){return t.liquid&&e.liquid}function Ii(t,e){return e.maxHeight!=null||fr(t,e)}function Mi(t,e,n,r){let{expandRows:s}=n;return typeof e.content=="function"?e.content(n):d("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:s?n.clientHeight:""}},n.tableColGroupNode,d(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function ki(t,e){return ee(t,e,H)}function xi(t,e){let n=[];for(let r of t){let s=r.span||1;for(let i=0;ie,ki),this.renderMicroColGroup=_(xi),this.scrollerRefs=new q,this.scrollerElRefs=new q(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:n,context:r}=this,s=e.sections||[],i=this.processCols(e.cols),a=this.renderMicroColGroup(i,n.shrinkWidth),l=Hi(e.liquid,r);e.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");let o=s.length,u=0,c,g=[],h=[],f=[];for(;u{}},s);return d(s?"th":"td",{ref:r.elRef,role:"presentation"},d("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},d(He,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:g,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let r=go(this.props.sections,n);r&&j(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Oi(this.props.cols)?Ti(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Si(),{scrollerRefs:n,scrollerElRefs:r}=this,s=!1,i={},a={};for(let l in n.currentMap){let o=n.currentMap[l];if(o&&o.needsYScrolling()){s=!0;break}}for(let l of this.props.sections){let o=l.key,u=r.currentMap[o];if(u){let c=u.parentNode;i[o]=Math.floor(c.getBoundingClientRect().width-(s?e.y:0)),a[o]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:s,scrollerClientWidths:i,scrollerClientHeights:a}}};Pe.addStateEquality({scrollerClientWidths:H,scrollerClientHeights:H});function go(t,e){for(let n of t)if(n.key===e)return n;return null}var se=class extends C{constructor(){super(...arguments),this.buildPublicEvent=_((e,n,r)=>new F(e,n,r)),this.handleEl=e=>{this.el=e,j(this.props.elRef,e),e&&Ns(e,this.props.seg)}}render(){let{props:e,context:n}=this,{options:r}=n,{seg:s}=e,{eventRange:i}=s,{ui:a}=i,l={event:this.buildPublicEvent(n,i.def,i.instance),view:n.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Zl(s,n),isStartResizable:!e.disableResizing&&$l(s,n),isEndResizable:!e.disableResizing&&Jl(s),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!s.isStart,isEnd:!!s.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return d(N,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...Kl(l),...s.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:l,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ns(this.el,this.props.seg)}},Be=class extends C{render(){let{props:e,context:n}=this,{options:r}=n,{seg:s}=e,{ui:i}=s.eventRange,a=r.eventTimeFormat||e.defaultTimeFormat,l=ye(s,a,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return d(se,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:je(s,n),defaultGenerator:po,timeText:l}),(o,u)=>d(w,null,d(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&d("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&d("div",{className:"fc-event-resizer fc-event-resizer-end"})))}};Be.addPropsEquality({seg:H});function po(t){return d("div",{className:"fc-event-main-frame"},t.timeText&&d("div",{className:"fc-event-time"},t.timeText),d("div",{className:"fc-event-title-container"},d("div",{className:"fc-event-title fc-sticky"},t.event.title||d(w,null,"\xA0"))))}var mo=T({day:"numeric"}),Ue=class extends C{constructor(){super(...arguments),this.refineRenderProps=Le(vo)}render(){let{props:e,context:n}=this,{options:r}=n,s=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return d(N,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),s.isDisabled?{}:{"data-date":ve(e.date)}),elClasses:[...Ve(s,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:s.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}};function nn(t){return!!(t.dayCellContent||On("dayCellContent",t))}function vo(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:s}=t,i=gt(e,t.todayRange,null,r),a=t.showDayNumber?n.format(e,s?t.monthStartFormat:mo):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},i),{isMonthStart:s,dayNumberText:a}),t.extraRenderProps)}var ot=class extends C{render(){let{props:e}=this,{seg:n}=e;return d(se,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:bo,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}};function bo(t){let{title:e}=t.event;return e&&d("div",{className:"fc-event-title"},t.event.title)}function pr(t){return d("div",{className:`fc-${t}`})}var mr=t=>d(ae.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:s}=t,i=r.weekNumberFormat||t.defaultFormat,a=n.computeWeekNumber(s),l=n.format(s,i),o={num:a,text:l,date:s};return d(N,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:yo,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function yo(t){return t.text}var wn=10,Fn=class extends C{constructor(){super(...arguments),this.state={titleId:z()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&j(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let n=js(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:s}=this,i=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Ss(d("div",Object.assign({},r.extraAttrs,{id:r.id,className:i.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),d("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},d("span",{className:"fc-popover-title",id:s.titleId},r.title),d("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),d("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:s}=this,i=uo(n);if(i){let a=s.getBoundingClientRect(),l=r?G(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,o=e?i.right-a.width:i.left;l=Math.max(l,wn),o=Math.min(o,document.documentElement.clientWidth-wn-a.width),o=Math.max(o,wn);let u=s.offsetParent.getBoundingClientRect();Ws(s,{top:l-u.top,left:o-u.left})}}},zn=class extends P{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:s,todayRange:i,dateProfile:a}=r,l=n.format(s,e.dayPopoverFormat);return d(Ue,{elRef:this.handleRootEl,date:s,dateProfile:a,todayRange:i},(o,u,c)=>d(Fn,{elRef:c.ref,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},nn(e)&&d(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,s){let{rootEl:i,props:a}=this;return e>=0&&e=0&&n{this.linkEl=e,this.props.elRef&&j(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:s}=r.options,i=Os(n).start;function a(l){let{def:o,instance:u,range:c}=l.eventRange;return{event:new F(r,o,u),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:l.isStart,isEnd:l.isEnd}}typeof s=="function"&&(s=s({date:i,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:e,view:r.viewApi})),!s||s==="popover"?this.setState({isPopoverOpen:!0}):typeof s=="string"&&r.calendarApi.zoomTo(i,s)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return d(ae.Consumer,null,r=>{let{viewApi:s,options:i,calendarApi:a}=r,{moreLinkText:l}=i,{moreCnt:o}=e,u=Os(e),c=typeof l=="function"?l.call(a,o):`+${o} ${l}`,g=Fe(i.moreLinkHint,[o],c),h={num:o,shortText:`+${o}`,text:c,view:s};return d(w,null,!!e.moreCnt&&d(N,{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),Gs(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||Ao,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),n.isPopoverOpen&&d(zn,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=G(this.linkEl,".fc-view-harness"))}};function Ao(t){return t.text}function Os(t){if(t.allDayDate)return{start:t.allDayDate,end:k(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Bi(e),end:_o(e)}}function Bi(t){return t.reduce(Eo).eventRange.range.start}function Eo(t,e){return t.eventRange.range.starte.eventRange.range.end?t:e}var Do=[],Vi={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"},Gi=Object.assign(Object.assign({},Vi),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Co(t){let e=t.length>0?t[0].code:"en",n=Do.concat(t),r={en:Gi};for(let s of n)r[s.code]=s;return{map:r,defaultCode:e}}function Qi(t,e){return typeof t=="object"&&!Array.isArray(t)?qi(t.code,[t.code],t):Ro(t,e)}function Ro(t,e){let n=[].concat(t||[]),r=wo(n,e)||Gi;return qi(t,n,r)}function wo(t,e){for(let n=0;n0;s-=1){let i=r.slice(0,s).join("-");if(e[i])return e[i]}}return null}function qi(t,e,n){let r=Yt([Vi,n],["buttonText"]);delete r.code;let{week:s}=r;return delete r.week,{codeArg:t,codes:e,week:s,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function V(t){return{id:ie(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function To(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function s(i){for(let a of i){let l=a.name,o=n[l];o===void 0?(n[l]=a.id,s(a.deps),r=Mo(r,a)):o!==a.id&&console.warn(`Duplicate plugin '${l}'`)}}return t&&s(t),s(e),r}function Io(){let t=[],e=[],n;return(r,s)=>((!n||!ee(r,t)||!ee(s,e))&&(n=To(r,s)),t=r,e=s,n)}function Mo(t,e){return{premiumReleaseDate:ko(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function ko(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}var ne=class extends re{};ne.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ne.prototype.baseIconClass="fc-icon";ne.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"};ne.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ne.prototype.iconOverrideOption="buttonIcons";ne.prototype.iconOverrideCustomButtonOption="icon";ne.prototype.iconOverridePrefix="fc-icon-";function xo(t,e){let n={},r;for(r in t)br(r,n,t,e);for(r in e)br(r,n,t,e);return n}function br(t,e,n,r){if(e[t])return e[t];let s=No(t,e,n,r);return s&&(e[t]=s),s}function No(t,e,n,r){let s=n[t],i=r[t],a=c=>s&&s[c]!==null?s[c]:i&&i[c]!==null?i[c]:null,l=a("component"),o=a("superType"),u=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");u=br(o,e,n,r)}return!l&&u&&(l=u.component),l?{type:t,component:l,defaults:Object.assign(Object.assign({},u?u.defaults:{}),s?s.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),i?i.rawOptions:{})}:null}function Ui(t){return Te(t,Oo)}function Oo(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Fi(e):n&&!(n.prototype instanceof C)&&(n=Fi(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Fi(t){return e=>d(ae.Consumer,null,n=>d(N,{elTag:"div",elClasses:Kn(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Ho(t,e,n,r){let s=Ui(t),i=Ui(e.views),a=xo(s,i);return Te(a,l=>Po(l,i,e,n,r))}function Po(t,e,n,r,s){let i=t.overrides.duration||t.defaults.duration||r.duration||n.duration,a=null,l="",o="",u={};if(i&&(a=Bo(i),a)){let h=$e(a);l=h.unit,h.value===1&&(o=l,u=e[l]?e[l].rawOptions:{})}let c=h=>{let f=h.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&f[m]!=null?f[m]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},g=h=>{let f=h.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&f[m]!=null?f[m]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:a,durationUnit:l,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(s)||t.defaults.buttonText||c(we)||t.type,buttonTitleOverride:g(r)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(s)||t.defaults.buttonHint||g(we)}}var zi={};function Bo(t){let e=JSON.stringify(t),n=zi[e];return n===void 0&&(n=S(t),zi[e]=n),n}function Uo(t,e){return e.type==="CHANGE_VIEW_TYPE"&&(t=e.viewType),t}function Fo(t,e){return e.type==="CHANGE_DATE"?e.dateMarker:t}function zo(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function Lo(t,e){return e.type==="SET_OPTION"?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t}function Wo(t,e,n,r){let s;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(s=r.buildPrev(t,n),s.isValid)return s;break;case"NEXT":if(s=r.buildNext(t,n),s.isValid)return s;break}return t}function jo(t,e,n){let r=e?e.activeRange:null;return Zi({},$o(t,n),r,n)}function Vo(t,e,n,r){let s=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Zi(t,e.sources,s,r);case"REMOVE_EVENT_SOURCE":return Qo(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?$i(t,s,r):t;case"FETCH_EVENT_SOURCES":return wr(t,e.sourceIds?Zn(e.sourceIds):Ji(t,r),s,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Zo(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Go(t,e,n){let r=e?e.activeRange:null;return wr(t,Ji(t,n),r,!0,n)}function Yi(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Zi(t,e,n,r){let s={};for(let i of e)s[i.sourceId]=i;return n&&(s=$i(s,n,r)),Object.assign(Object.assign({},t),s)}function Qo(t,e){return he(t,n=>n.sourceId!==e)}function $i(t,e,n){return wr(t,he(t,r=>qo(r,e,n)),e,!1,n)}function qo(t,e,n){return Ki(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.startt.fetchRange.end:!t.latestFetchId}function wr(t,e,n,r,s){let i={};for(let a in t){let l=t[a];e[a]?i[a]=Yo(l,n,r,s):i[a]=l}return i}function Yo(t,e,n,r){let{options:s,calendarApi:i}=r,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],l=ie();return a.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:u}=o;s.eventSourceSuccess&&(u=s.eventSourceSuccess.call(i,u,o.response)||u),t.success&&(u=t.success.call(i,u,o.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:l,fetchRange:e,rawEvents:u})},o=>{let u=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(i,o),u=!0),t.failure&&(t.failure(o),u=!0),u||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:l,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:l})}function Zo(t,e,n,r){let s=t[e];return s&&n===s.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},s),{isFetching:!1,fetchRange:r})}):t}function Ji(t,e){return he(t,n=>Ki(n,e))}function $o(t,e){let n=sr(e),r=[].concat(t.eventSources||[]),s=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let i of r){let a=rr(i,e,n);a&&s.push(a)}return s}function Ki(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Jo(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function Ko(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Xo(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function ec(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function tc(t,e,n,r,s){let i=t.headerToolbar?Li(t.headerToolbar,t,e,n,r,s):null,a=t.footerToolbar?Li(t.footerToolbar,t,e,n,r,s):null;return{header:i,footer:a}}function Li(t,e,n,r,s,i){let a={},l=[],o=!1;for(let u in t){let c=t[u],g=nc(c,e,n,r,s,i);a[u]=g.widgets,l.push(...g.viewsWithButtons),o=o||g.hasTitle}return{sectionWidgets:a,viewsWithButtons:l,hasTitle:o}}function nc(t,e,n,r,s,i){let a=e.direction==="rtl",l=e.customButtons||{},o=n.buttonText||{},u=e.buttonText||{},c=n.buttonHints||{},g=e.buttonHints||{},h=t?t.split(" "):[],f=[],m=!1;return{widgets:h.map(v=>v.split(",").map(b=>{if(b==="title")return m=!0,{buttonName:b};let E,R,D,Y,B,L;if(E=l[b])D=I=>{E.click&&E.click.call(I.target,I,I.target)},(Y=r.getCustomButtonIconClass(E))||(Y=r.getIconClass(b,a))||(B=E.text),L=E.hint||E.text;else if(R=s[b]){f.push(b),D=()=>{i.changeView(b)},(B=R.buttonTextOverride)||(Y=r.getIconClass(b,a))||(B=R.buttonTextDefault);let I=R.buttonTextOverride||R.buttonTextDefault;L=Fe(R.buttonTitleOverride||R.buttonTitleDefault||e.viewHint,[I,b],I)}else if(i[b])if(D=()=>{i[b]()},(B=o[b])||(Y=r.getIconClass(b,a))||(B=u[b]),b==="prevYear"||b==="nextYear"){let I=b==="prevYear"?"prev":"next";L=Fe(c[I]||g[I],[u.year||"year","year"],u[b])}else L=I=>Fe(c[b]||g[b],[u[I]||I,I],u[b]);return{buttonName:b,buttonClick:D,buttonIcon:Y,buttonText:B,buttonHint:L}})),viewsWithButtons:f,hasTitle:m}}var yr=class{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}},rc={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}},sc=V({name:"array-event-source",eventSourceDefs:[rc]}),ic={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){let{dateEnv:r}=t.context,s=t.eventSource.meta;cr(s.bind(null,or(t.range,r)),i=>e({rawEvents:i}),n)}},ac=V({name:"func-event-source",eventSourceDefs:[ic]}),lc={method:String,extraParams:p,startParam:String,endParam:String,timeZoneParam:String},oc={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){let{meta:r}=t.eventSource,s=uc(r,t.range,t.context);ur(r.method,r.url,s).then(([i,a])=>{e({rawEvents:i,response:a})},n)}},cc=V({name:"json-event-source",eventSourceRefiners:lc,eventSourceDefs:[oc]});function uc(t,e,n){let{dateEnv:r,options:s}=n,i,a,l,o,u={};return i=t.startParam,i==null&&(i=s.startParam),a=t.endParam,a==null&&(a=s.endParam),l=t.timeZoneParam,l==null&&(l=s.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(u,o),u[i]=r.formatIso(e.start),u[a]=r.formatIso(e.end),r.timeZone!=="local"&&(u[l]=r.timeZone),u}var dc={daysOfWeek:p,startTime:S,endTime:S,duration:S,startRecur:p,endRecur:p},fc={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null,dateEnv:e},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=$s(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=W(e,{start:t.startRecur,end:t.endRecur});return r?gc(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}},hc=V({name:"simple-recurring-event",recurringTypes:[fc],eventRefiners:dc});function gc(t,e,n,r,s){let i=t?Zn(t):null,a=M(s.start),l=s.end,o=[];for(e&&(e.milliseconds<0?l=k(l,1):e.milliseconds>=1e3*60*60*24&&(a=k(a,-1)));aYi(t.eventSources)],propSetHandlers:{dateProfile:mc,eventStore:vc}})],Ar=class{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Se(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}};function yc(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,T(e.titleFormat||Ac(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Ac(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=xe(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var rn=class{constructor(){this.resetListeners=new Set}handleInput(e,n){let r=this.dateEnv;if(e!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=e.toDate(n?e.createMarker(n):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,r))for(let s of this.resetListeners.values())s()}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)}},Er=class{constructor(e){this.computeCurrentViewData=_(this._computeCurrentViewData),this.organizeRawLocales=_(Co),this.buildLocale=_(Qi),this.buildPluginHooks=Io(),this.buildDateEnv=_(Ec),this.buildTheme=_(_c),this.parseToolbars=_(tc),this.buildViewSpecs=_(Ho),this.buildDateProfileGenerator=Le(Sc),this.buildViewApi=_(Dc),this.buildViewUiProps=Le(wc),this.buildEventUiBySource=_(Cc,H),this.buildEventUiBases=_(Rc),this.parseContextBusinessHours=Le(Tc),this.buildTitle=_(yc),this.nowManager=new rn,this.emitter=new tt,this.actionRunner=new Ar(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause(),this.nowManager=new rn;let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),s=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(s,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let a={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},l=zo(r.calendarOptions,r.dateEnv,this.nowManager),o=i.dateProfileGenerator.build(l);$(o.activeRange,l)||(l=o.currentRange.start);for(let h of r.pluginHooks.contextInit)h(a);let u=jo(r.calendarOptions,o,a),c={dynamicOptionOverrides:n,currentViewType:s,currentDate:l,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:u,eventUiBases:{},eventStore:te(),renderableEventStore:te(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},g=Object.assign(Object.assign({},a),c);for(let h of r.pluginHooks.reducers)Object.assign(c,h(null,null,g));vr(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:s}=this,i=Lo(r.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),l=Uo(r.currentViewType,e),o=this.computeCurrentViewData(l,a,n.optionOverrides,i);n.calendarApi.currentDataManager=this,s.setThisContext(n.calendarApi),s.setOptions(o.options);let u={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:s,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(g=o.dateProfileGenerator.build(c)),c=Fo(c,e),g=Wo(g,e,c,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!$(g.currentRange,c))&&(c=g.currentRange.start);let h=Vo(r.eventSources,e,g,u),f=fi(r.eventStore,e,h,g,u),y=Yi(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:v,selectionConfig:b}=this.buildViewUiProps(u),E=this.buildEventUiBySource(h),R=this.buildEventUiBases(y.defs,v,E),D={dynamicOptionOverrides:i,currentViewType:l,currentDate:c,dateProfile:g,eventSources:h,eventStore:f,renderableEventStore:y,selectionConfig:b,eventUiBases:R,businessHours:this.parseContextBusinessHours(u),dateSelection:Jo(r.dateSelection,e),eventSelection:Ko(r.eventSelection,e),eventDrag:Xo(r.eventDrag,e),eventResize:ec(r.eventResize,e)},Y=Object.assign(Object.assign({},u),D);for(let I of a.pluginHooks.reducers)Object.assign(D,I(r,e,Y));let B=vr(r,u),L=vr(D,u);!B&&L?s.trigger("loading",!0):B&&!L&&s.trigger("loading",!1),this.state=D,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,s=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(n.currentViewType,s,e.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,i.options,s.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),i),n),l=s.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,u=s.calendarOptions;if(o&&o!==u){o.timeZone!==u.timeZone&&(n.eventSources=a.eventSources=Go(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=ir(a.eventStore,r.dateEnv,a.dateEnv),n.renderableEventStore=a.renderableEventStore=ir(a.renderableEventStore,r.dateEnv,a.dateEnv));for(let c in l)(this.optionsForHandling.indexOf(c)!==-1||o[c]!==u[c])&&l[c](u[c],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:s,pluginHooks:i,localeDefaults:a,availableLocaleData:l,extra:o}=this.processRawCalendarOptions(e,n);ji(o);let u=this.buildDateEnv(s.timeZone,s.locale,s.weekNumberCalculation,s.firstDay,s.weekText,i,l,s.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),g=this.buildTheme(s,i),h=this.parseToolbars(s,this.stableOptionOverrides,g,c,r);return this.stableCalendarOptionsData={calendarOptions:s,pluginHooks:i,dateEnv:u,viewSpecs:c,theme:g,toolbarConfig:h,localeDefaults:a,availableRawLocales:l.map}}processRawCalendarOptions(e,n){let{locales:r,locale:s}=Qt([we,e,n]),i=this.organizeRawLocales(r),a=i.map,l=this.buildLocale(s||i.defaultCode,a).options,o=this.buildPluginHooks(e.plugins||[],bc),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn),qn),Yn),o.listenerRefiners),o.optionRefiners),c={},g=Qt([we,l,e,n]),h={},f=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,y=!1;for(let v in g)this.optionsForRefining.indexOf(v)===-1&&(g[v]===f[v]||be[v]&&v in f&&be[v](f[v],g[v]))?h[v]=m[v]:u[v]?(h[v]=u[v](g[v]),y=!0):c[v]=f[v];return y&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:i,localeDefaults:l,extra:c}}_computeCurrentViewData(e,n,r,s){let i=n.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:l}=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,r,s);ji(l),this.nowManager.handleInput(n.dateEnv,a.now);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:i,options:a,dateProfileGenerator:o,viewApi:u}}processRawViewOptions(e,n,r,s,i){let a=Qt([we,e.optionDefaults,r,s,e.optionOverrides,i]),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn),qn),Yn),ei),n.listenerRefiners),n.optionRefiners),o={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,g=!1,h={};for(let f in a)a[f]===u[f]||be[f]&&be[f](a[f],u[f])?o[f]=c[f]:(a[f]===this.currentCalendarOptionsInput[f]||be[f]&&be[f](a[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):l[f]?o[f]=l[f](a[f]):h[f]=a[f],g=!0);return g&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}};function Ec(t,e,n,r,s,i,a,l){let o=Qi(e||a.defaultCode,a.map);return new Je({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:s,cmdFormatter:i.cmdFormatter,defaultSeparator:l})}function _c(t,e){let n=e.themeClasses[t.themeSystem]||ne;return new n(t)}function Sc(t){let e=t.dateProfileGeneratorClass||De;return new e(t)}function Dc(t,e,n){return new yr(t,e,n)}function Cc(t){return Te(t,e=>e.ui)}function Rc(t,e,n){let r={"":e};for(let s in t){let i=t[s];i.sourceId&&n[i.sourceId]&&(r[s]=n[i.sourceId])}return r}function wc(t){let{options:e}=t;return{eventUiSingleBase:We({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:We({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function vr(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Tc(t){return ar(t.options.businessHours,t)}function ji(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}var _r=class extends C{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return d("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,s=[],i=!0;for(let a of e){let{buttonName:l,buttonClick:o,buttonText:u,buttonIcon:c,buttonHint:g}=a;if(l==="title")i=!1,s.push(d("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=l===n.activeButton,f=!n.isTodayEnabled&&l==="today"||!n.isPrevEnabled&&l==="prev"||!n.isNextEnabled&&l==="next",m=[`fc-${l}-button`,r.getClass("button")];h&&m.push(r.getClass("buttonActive")),s.push(d("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:f,"aria-pressed":h,className:m.join(" "),onClick:o},u||(c?d("span",{className:c,role:"img"}):"")))}}if(s.length>1){let a=i&&r.getClass("buttonGroup")||"";return d("div",{className:a},...s)}return s[0]}},sn=class extends C{render(){let{model:e,extraClassName:n}=this.props,r=!1,s,i,a=e.sectionWidgets,l=a.center;return a.left?(r=!0,s=a.left):s=a.start,a.right?(r=!0,i=a.right):i=a.end,d("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",s||[]),this.renderSection("center",l||[]),this.renderSection("end",i||[]))}renderSection(e,n){let{props:r}=this;return d(_r,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}},Sr=class extends C{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,j(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,s=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",a="";return r?n.availableWidth!==null?i=n.availableWidth/r:a=`${1/r*100}%`:i=e.height||"",d("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:s.join(" "),style:{height:i,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}},Dr=class extends Oe{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:s}=this,{context:i}=s,a=ft(r);if(a&&s.isValidSegDownEl(n.target)){let l=G(n.target,".fc-event-forced-url"),o=l?l.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:r,event:new F(s.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:i.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=Wn(e.el,"click",".fc-event",this.handleSegClick)}},Cr=class extends Oe{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{ft(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=Vs(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:s}=this,{context:i}=s,a=ft(r);(!n||s.isValidSegDownEl(n.target))&&i.emitter.trigger(e,{el:r,event:new F(i,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:i.viewApi})}},Rr=class extends K{constructor(){super(...arguments),this.buildViewContext=_(ii),this.buildViewPropTransformers=_(Mc),this.buildToolbarProps=_(Ic),this.headerRef=O(),this.footerRef=O(),this.interactionsStore={},this.state={viewLabelId:z()},this.registerInteractiveComponent=(e,n)=>{let r=Ei(e,n),a=[Dr,Cr].concat(this.props.pluginHooks.componentInteractions).map(l=>new l(r));this.interactionsStore[e.uid]=a,Xt[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete Xt[e.uid]},this.resizeRunner=new Se(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,s=!1,i="",a;e.isHeightAuto||e.forPrint?i="":r.height!=null?s=!0:r.contentHeight!=null?i=r.contentHeight:a=Math.max(r.aspectRatio,.5);let l=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),o=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return d(ae.Provider,{value:l},d(Q,{unit:"day"},u=>{let c=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,u,e.viewTitle);return d(w,null,n.header&&d(sn,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:o},c)),d(Sr,{liquid:s,height:i,aspectRatio:a,labeledById:o},this.renderView(e),this.buildAppendContent()),n.footer&&d(sn,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},c)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let s in r)n[s]!==e[s]&&r[s](n[s],n)}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,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return d(w,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,s={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(n.viewPropsTransformers);for(let l of i)Object.assign(s,l.transform(s,e));let a=r.component;return d(a,Object.assign({},s))}};function Ic(t,e,n,r,s,i){let a=n.build(s,void 0,!1),l=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:i,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!$(e.currentRange,s),isPrevEnabled:l.isValid,isNextEnabled:o.isValid}}function Mc(t){return t.map(e=>new e)}var an=class extends rt{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;Ke(()=>{ce(d(nt,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(s,i,a,l)=>(this.setClassNames(s),this.setHeight(i),d(Jn.Provider,{value:this.customContentRenderId},d(Rr,Object.assign({isHeightAuto:a,forPrint:l},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ce(null,this.el),this.setClassNames([]),this.setHeight(""))},Ps(e),this.el=e,this.renderRunner=new Se(this.handleRenderRequest),new Er({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Ke(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!ee(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Ln(this.el,"height",e)}};var Tr=class extends P{constructor(){super(...arguments),this.headerElRef=O()}renderSimpleLayout(e,n){let{props:r,context:s}=this,i=[],a=tn(s.options);return e&&i.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),d(X,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},d(Pe,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,n,r,s){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:a,context:l}=this,o=!a.forPrint&&tn(l.options),u=!a.forPrint&&gr(l.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),u&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:hr}]}),d(X,{elClasses:["fc-daygrid"],viewSpec:l.viewSpec},d(i,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:s}]}],sections:c}))}};function on(t,e){let n=[];for(let r=0;r{let s=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return d(w,null,n.map(i=>{let a=i.eventRange.instance.instanceId;return d("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:s[a]?"hidden":""}},ta(i)?d(un,Object.assign({seg:i,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},le(i,e.todayRange))):d(cn,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},le(i,e.todayRange))))}))}})}};function xc(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}var Nc=T({week:"narrow"}),Mr=class extends P{constructor(){super(...arguments),this.rootElRef=O(),this.state={dayNumberId:z()},this.handleRootEl=e=>{j(this.rootElRef,e),j(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:s}=this,{options:i,dateEnv:a}=e,{date:l,dateProfile:o}=n,u=n.showDayNumber&&Hc(l,o.currentRange,a);return d(Ue,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Oc,date:l,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:u,extraRenderProps:n.extraRenderProps},(c,g)=>d("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&d(mr,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Ae(e,l,"week"),date:l,defaultFormat:Nc}),!g.isDisabled&&(n.showDayNumber||nn(i)||n.forceDayTop)?d("div",{className:"fc-daygrid-day-top"},d(c,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Ae(e,l)),{id:r.dayNumberId})})):n.showDayNumber?d("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},d("a",{className:"fc-daygrid-day-number"},"\xA0")):void 0,d("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,d("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},d(Ir,{allDayDate:l,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:s,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),d("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}};function Oc(t){return t.dayNumberText||d(w,null,"\xA0")}function Hc(t,e,n){let{start:r,end:s}=e,i=J(s,-1),a=n.getYear(r),l=n.getMonth(r),o=n.getYear(i),u=n.getMonth(i);return!(a===o&&l===u)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf(){let E=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return s[E]||1});l.allowReslicing=!0,l.strictOrder=r,e===!0||n===!0?(l.maxCoord=i,l.hiddenConsumes=!0):typeof e=="number"?l.maxStackCnt=e:typeof n=="number"&&(l.maxStackCnt=n,l.hiddenConsumes=!0);let o=[],u=[];for(let b=0;b1,v=f.span.start===l;g+=f.levelCoord-c,c=f.levelCoord+f.thickness,y?(g+=f.thickness,v&&h.push({seg:Ge(m,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):v&&(h.push({seg:Ge(m,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:g}),g=0)}s.push(u),i.push(h),a.push(g)}return{singleColPlacements:s,multiColPlacements:i,leftoverMargins:a}}function Uc(t,e){let n=[];for(let r=0;r!this.forceHidden[Ce(i)];for(let i=0;i{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:s}=r,i=e.cells.length,a=ln(e.businessHourSegs,i),l=ln(e.bgEventSegs,i),o=ln(this.getHighlightSegs(),i),u=ln(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:g,moreCnts:h,moreMarginTops:f}=Pc(ht(e.fgEventSegs,s.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,s.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return d("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((y,v)=>{let b=this.renderFgSegs(v,e.forPrint?c[v]:g[v],e.todayRange,m),E=this.renderFgSegs(v,Fc(u[v],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return d(Mr,{key:y.key,elRef:this.cellElRefs.createRef(y.key),innerElRef:this.frameElRefs.createRef(y.key),dateProfile:e.dateProfile,date:y.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:y.extraRenderProps,extraDataAttrs:y.extraDataAttrs,extraClassNames:y.extraClassNames,extraDateSpan:y.extraDateSpan,moreCnt:h[v],moreMarginTop:f[v],singlePlacements:c[v],fgContentElRef:this.fgElRefs.createRef(y.key),fgContent:d(w,null,d(w,null,b),d(w,null,E)),bgContent:d(w,null,this.renderFillSegs(o[v],"highlight"),this.renderFillSegs(a[v],"non-business"),this.renderFillSegs(l[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!H(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,s,i,a,l){let{context:o}=this,{eventSelection:u}=this.props,{framePositions:c}=this.state,g=this.props.cells.length===1,h=i||a||l,f=[];if(c)for(let m of n){let{seg:y}=m,{instanceId:v}=y.eventRange.instance,b=m.isVisible&&!s[v],E=m.isAbsolute,R="",D="";E&&(o.isRtl?(D=0,R=c.lefts[y.lastCol]-c.lefts[y.firstCol]):(R=0,D=c.rights[y.firstCol]-c.rights[y.lastCol])),f.push(d("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:na(y),ref:h?null:this.segHarnessRefs.createRef(ra(y)),style:{visibility:b?"":"hidden",marginTop:E?"":m.marginTop,top:E?m.absoluteTop:"",left:R,right:D}},ta(y)?d(un,Object.assign({seg:y,isDragging:i,isSelected:v===u,defaultDisplayEventEnd:g},le(y,r))):d(cn,Object.assign({seg:y,isDragging:i,isResizing:a,isDateSelecting:l,isSelected:v===u,defaultDisplayEventEnd:g},le(y,r)))))}return f}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:s}=this.props,{framePositions:i}=this.state,a=[];if(i)for(let l of e){let o=r?{right:0,left:i.lefts[l.lastCol]-i.lefts[l.firstCol]}:{left:0,right:i.rights[l.firstCol]-i.rights[l.lastCol]};a.push(d("div",{key:lr(l.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?d(ot,Object.assign({seg:l},le(l,s))):pr(n)))}return d(w,{},...a)}updateSizing(e){let{props:n,state:r,frameElRefs:s}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(u=>s.currentMap[u.key]);if(o.length){let u=this.rootElRef.current,c=new ge(u,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new ge(u,o,!0,!1)})}}let i=this.state.segHeights,a=this.querySegHeights(),l=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),a),maxContentHeight:l?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let s=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,s)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}};dn.addStateEquality({segHeights:H});function Fc(t,e){if(!t.length)return[];let n=zc(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function zc(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}var pt=class extends P{constructor(){super(...arguments),this.splitBusinessHourSegs=_(on),this.splitBgEventSegs=_(Lc),this.splitFgEventSegs=_(on),this.splitDateSelectionSegs=_(on),this.splitEventDrag=_(Xi),this.splitEventResize=_(Xi),this.rowRefs=new q}render(){let{props:e,context:n}=this,r=e.cells.length,s=this.splitBusinessHourSegs(e.businessHourSegs,r),i=this.splitBgEventSegs(e.bgEventSegs,r),a=this.splitFgEventSegs(e.fgEventSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return d(Q,{unit:"day"},(g,h)=>d(w,null,e.cells.map((f,m)=>d(dn,{ref:this.rowRefs.createRef(m),key:f.length?f[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:s[m],eventSelection:e.eventSelection,bgEventSegs:i[m],fgEventSegs:a[m],dateSelectionSegs:l[m],eventDrag:o[m],eventResize:u[m],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],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new ge(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new ge(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:s}=this,i=r.leftToIndex(e),a=s.topToIndex(n);if(a!=null&&i!=null){let l=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,i),allDay:!0},l.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:r.lefts[i],right:r.rights[i],top:s.tops[a],bottom:s.bottoms[a]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,s=k(r,1);return{start:r,end:s}}};function Lc(t,e){return on(t.filter(Wc),e)}function Wc(t){return t.eventRange.def.allDay}var xr=class extends P{constructor(){super(...arguments),this.elRef=O(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:s}=e,i=r===!0||n===!0;i&&!s&&(i=!1,n=null,r=null);let a=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"];return d("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},d("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:s?e.clientHeight:""}},e.colGroupNode,d("tbody",{role:"presentation"},d(pt,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=jc(this.elRef.current,this.props.dateProfile);if(e){let n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),s=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=s?s+1:0}this.needsScrollReset=!1}}};function jc(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${ze(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${ve(e.currentDate)}"]`)),n}var mt=class extends lt{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}},Nr=class extends P{constructor(){super(...arguments),this.slicer=new mt,this.tableRef=O()}render(){let{props:e,context:n}=this;return d(xr,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,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}))}},fn=class extends Tr{constructor(){super(...arguments),this.buildDayTableModel=_(Or),this.headerRef=O(),this.tableRef=O()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,s=this.buildDayTableModel(r.dateProfile,n),i=e.dayHeaders&&d(Re,{ref:this.headerRef,dateProfile:r.dateProfile,dates:s.headerDates,datesRepDistinctDays:s.rowCnt===1}),a=l=>d(Nr,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:s,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:l.tableColGroupNode,tableMinWidth:l.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:l.clientWidth,clientHeight:l.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,a,s.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,a)}};function Or(t,e){let n=new it(t.renderRange,e);return new at(n,/year|month|week/.test(t.currentRangeUnit))}var Qe=class extends De{buildRenderRange(e,n,r){let s=super.buildRenderRange(e,n,r),{props:i}=this;return Hr({currentRange:s,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}};function Hr(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:s}=n,i;if(t.snapToWeek&&(r=e.startOfWeek(r),i=e.startOfWeek(s),i.valueOf()!==s.valueOf()&&(s=Gt(i,1))),t.fixedWeekCount){let a=e.startOfWeek(e.startOfMonth(k(n.end,-1))),l=Math.ceil(jn(a,s));s=Gt(s,6-l)}return{start:r,end:s}}var Vc=':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}';pe(Vc);var sa=V({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:fn,dateProfileGeneratorClass:Qe},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}}}});var Pr=class extends C{constructor(){super(...arguments),this.state={textId:z()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:s}=this.context,{cellId:i,dayDate:a,todayRange:l}=this.props,{textId:o}=this.state,u=gt(a,l),c=r.listDayFormat?n.format(a,r.listDayFormat):"",g=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(a),view:s,textId:o,text:c,sideText:g,navLinkAttrs:Ae(this.context,a),sideNavLinkAttrs:Ae(this.context,a,"day",!1)},u);return d(N,{elTag:"tr",elClasses:["fc-list-day",...Ve(u,e)],elAttrs:{"data-date":ve(a)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Gc,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},f=>d("th",{scope:"colgroup",colSpan:3,id:i,"aria-labelledby":o},d(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}};function Gc(t){return d(w,null,t.text&&d("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&d("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}var Qc=T({hour:"numeric",minute:"2-digit",meridiem:"short"}),Br=class extends C{render(){let{props:e,context:n}=this,{options:r}=n,{seg:s,timeHeaderId:i,eventHeaderId:a,dateHeaderId:l}=e,o=r.eventTimeFormat||Qc;return d(se,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",s.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>qc(s,n),seg:s,timeText:"",disableDragging:!0,disableResizing:!0}),(u,c)=>d(w,null,Yc(s,o,n,i,l),d("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},d("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),d(u,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${l}`}})))}};function qc(t,e){let n=je(t,e);return d("a",Object.assign({},n),t.eventRange.def.title)}function Yc(t,e,n,r,s){let{options:i}=n;if(i.displayEventTime!==!1){let a=t.eventRange.def,l=t.eventRange.instance,o=!1,u;if(a.allDay?o=!0:Xn(t.eventRange.range)?t.isStart?u=ye(t,e,n,null,null,l.range.start,t.end):t.isEnd?u=ye(t,e,n,null,null,t.start,l.range.end):o=!0:u=ye(t,e,n),o){let c={text:n.options.allDayText,view:n.viewApi};return d(N,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${s}`},renderProps:c,generatorName:"allDayContent",customGenerator:i.allDayContent,defaultGenerator:Zc,classNameGenerator:i.allDayClassNames,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount})}return d("td",{className:"fc-list-event-time"},u)}return null}function Zc(t){return t.text}var hn=class extends P{constructor(){super(...arguments),this.computeDateVars=_(Jc),this.eventStoreToSegs=_(this._eventStoreToSegs),this.state={timeHeaderId:z(),eventHeaderId:z(),dateHeaderIdRoot:z()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:s}=this.computeDateVars(e.dateProfile),i=this.eventStoreToSegs(e.eventStore,e.eventUiBases,s);return d(X,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},d(He,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},i.length>0?this.renderSegList(i,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return d(N,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:$c,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},s=>d(s,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:s}=this.context,{timeHeaderId:i,eventHeaderId:a,dateHeaderIdRoot:l}=this.state,o=Kc(e);return d(Q,{unit:"day"},(u,c)=>{let g=[];for(let h=0;h{e&&this.updateSize()}}render(){let{context:e,props:n,state:r}=this,{options:s}=e,{clientWidth:i,clientHeight:a}=r,l=r.monthHPadding||0,o=Math.min(i!=null?Math.floor(i/(s.multiMonthMinWidth+l)):1,s.multiMonthMaxColumns)||1,u=100/o+"%",c=i==null?null:i/o-l,g=i!=null&&o===1,h=this.splitDateProfileByMonth(e.dateProfileGenerator,n.dateProfile,e.dateEnv,g?!1:s.fixedWeekCount,s.showNonCurrentDates),f=this.buildMonthFormat(s.multiMonthTitleFormat,h),m=["fc-multimonth",g?"fc-multimonth-singlecol":"fc-multimonth-multicol",c!=null&&c<400?"fc-multimonth-compact":"",n.isHeightAuto?"":"fc-scroller"];return d(X,{elRef:this.scrollElRef,elClasses:m,viewSpec:e.viewSpec},h.map((y,v)=>{let b=ze(y.currentRange.start);return d(Ur,Object.assign({},n,{key:b,isoDateStr:b,elRef:v===0?this.firstMonthElRef:void 0,titleFormat:f,dateProfile:y,width:u,tableWidth:c,clientWidth:i,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){H(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){let e=this.scrollElRef.current,n=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),n&&e&&this.state.monthHPadding==null&&this.setState({monthHPadding:e.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){let{currentDate:e}=this.props.dateProfile,n=this.scrollElRef.current,r=n.querySelector(`[data-date="${ze(e)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}},tu=S(1,"month");function nu(t,e,n,r,s){let{start:i,end:a}=e.currentRange,l=i,o=[];for(;l.valueOf()