mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
2 lines
190 KiB
JavaScript
2 lines
190 KiB
JavaScript
"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[8170],{70026:function(e,t){t["Z"]={data(){return{header:{initialized:!1,marginTop:0,calendar_previousScrollPosition:0,isVisible:!0}}},unmounted(){this.$refs.page?.querySelector(".vuecal__bg")?.removeEventListener("scroll",this.handleScroll)},methods:{_initScrollListener(e=0){if(this.initialized&&e>0)return;const t=this.$refs.page?.querySelector(".vuecal__bg");if(!t)return setTimeout((()=>{e<20&&this._initScrollListener(e+1)}),200);t.addEventListener("scroll",this._handleScroll),this.initialized=!0,this.header.calendar_previousScrollPosition=t.scrollTop},_handleScroll(e){const t=document.querySelector("div.subheader");this.initialized?(this.header.calendar_previousScrollPosition>e.target.scrollTop?this.header.isVisible||this.showHeader():(t.offsetHeight,Math.abs(e.target.scrollTop),this.header.isVisible&&this.hideHeader()),this.header.calendar_previousScrollPosition=e.target.scrollTop):this.header.calendar_previousScrollPosition=e.target.scrollTop},hideHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop=`-${e.offsetHeight}px`,this.header.isVisible=!1,setTimeout((()=>{e.style.transition=""}),500)},showHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop="0",this.header.isVisible=!0,setTimeout((()=>{e.style.transition=""}),500)}}}},98170:function(e,t,n){n.r(t),n.d(t,{default:function(){return Oc}});var r=n(73396);const i={ref:"page"};function s(e,t,n,s,o,a){const l=(0,r.up)("A-project-filter"),c=(0,r.up)("A-project-calendar"),d=(0,r.up)("W-loadable");return(0,r.wg)(),(0,r.iD)("div",i,[e.$store.getters["tm/isInitialized"]?((0,r.wg)(),(0,r.j4)(l,{key:0,onFilterChanged:a.onFilterChanged},null,8,["onFilterChanged"])):(0,r.kq)("",!0),(0,r.Wm)(d,{class:"non-projects",content:a.filteredProjects,emptyMessage:"Nenašli sa žiadne vyhovujúce projekty"},{default:(0,r.w5)((()=>[(0,r.Wm)(c,{events:a.filteredProjects,month:o.filter.month,year:o.filter.year,onOpenDetail:a.openMasterTaskModal},null,8,["events","month","year","onOpenDetail"])])),_:1},8,["content"])],512)}const o={id:"calendar",class:"mb-12"};function a(e,t,n,i,s,a){const l=(0,r.up)("V-full-calendar");return(0,r.wg)(),(0,r.iD)("div",o,[(0,r.Wm)(l,{ref:"fullCalendar",options:a.calendarOptions},null,8,["options"])])}n(57658),n(30541);var l,c,d,u,f,h,p,g={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function A(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return _(e,o,r,i,null)}function _(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++d:i};return null==i&&null!=c.vnode&&c.vnode(s),s}function E(){return{current:null}}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?D(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function R(e){(!e.__d&&(e.__d=!0)&&f.push(e)&&!k.__r++||h!==c.debounceRendering)&&((h=c.debounceRendering)||setTimeout)(k)}function k(){for(var e;k.__r=f.length;)e=f.sort((function(e,t){return e.__v.__b-t.__v.__b})),f=[],e.some((function(e){var t,n,r,i,s,o;e.__d&&(s=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(r=b({},i)).__v=i.__v+1,j(o,i,r,t.__n,void 0!==o.ownerSVGElement,null!=i.__h?[s]:null,n,null==s?D(i):s,i.__h),z(n,i),i.__e!=s&&S(i)))}))}function T(e,t,n,r,i,s,o,a,l,c){var d,u,f,h,p,v,b,y=r&&r.__k||m,A=y.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(h=n.__k[d]=null==(h=t[d])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?_(null,h,null,null,h):Array.isArray(h)?_(C,{children:h},null,null,null):h.__b>0?_(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=y[d])||f&&h.key==f.key&&h.type===f.type)y[d]=void 0;else for(u=0;u<A;u++){if((f=y[u])&&h.key==f.key&&h.type===f.type){y[u]=void 0;break}f=null}j(e,h,f=f||g,i,s,o,a,l,c),p=h.__e,(u=h.ref)&&f.ref!=u&&(b||(b=[]),f.ref&&b.push(f.ref,null,h),b.push(u,h.__c||p,h)),null!=p?(null==v&&(v=p),"function"==typeof h.type&&h.__k===f.__k?h.__d=l=x(h,l,e):l=I(e,h,f,y,p,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=D(f))}for(n.__e=v,d=A;d--;)null!=y[d]&&F(y[d],y[d]);if(b)for(d=0;d<b.length;d++)V(b[d],b[++d],b[++d])}function x(e,t,n){for(var r,i=e.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=e,t="function"==typeof r.type?x(r,t,n):I(n,r,r,i,r.__e,t));return t}function O(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){O(e,t)})):t.push(e)),t}function I(e,t,n,r,i,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=s||null==i.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(i),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;e.insertBefore(i,s),o=s}return void 0!==o?o:i.nextSibling}function M(e,t,n,r,i){var s;for(s in n)"children"===s||"key"===s||s in t||P(e,s,null,n[s],r);for(s in t)i&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||P(e,s,t[s],n[s],r)}function N(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||v.test(t)?n:n+"px"}function P(e,t,n,r,i){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||N(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||N(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?H:B,s):e.removeEventListener(t,s?H:B,s);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function B(e){this.l[e.type+!1](c.event?c.event(e):e)}function H(e){this.l[e.type+!0](c.event?c.event(e):e)}function j(e,t,n,r,i,s,o,a,l){var d,u,f,h,p,g,m,v,y,A,_,E,D,S,R,k=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(d=c.__b)&&d(t);try{e:if("function"==typeof k){if(v=t.props,y=(d=k.contextType)&&r[d.__c],A=d?y?y.props.value:d.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?t.__c=u=new k(v,A):(t.__c=u=new w(v,A),u.constructor=k,u.render=W),y&&y.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=k.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=b({},u.__s)),b(u.__s,k.getDerivedStateFromProps(v,u.__s))),h=u.props,p=u.state,f)null==k.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==k.getDerivedStateFromProps&&v!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,A),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,A)||t.__v===n.__v){for(u.props=v,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<u._sb.length;_++)u.__h.push(u._sb[_]);u._sb=[],u.__h.length&&o.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,A),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(h,p,g)}))}if(u.context=A,u.props=v,u.__v=t,u.__P=e,E=c.__r,D=0,"prototype"in k&&k.prototype.render){for(u.state=u.__s,u.__d=!1,E&&E(t),d=u.render(u.props,u.state,u.context),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[]}else do{u.__d=!1,E&&E(t),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++D<25);u.state=u.__s,null!=u.getChildContext&&(r=b(b({},r),u.getChildContext())),f||null==u.getSnapshotBeforeUpdate||(g=u.getSnapshotBeforeUpdate(h,p)),R=null!=d&&d.type===C&&null==d.key?d.props.children:d,T(e,Array.isArray(R)?R:[R],t,n,r,i,s,o,a,l),u.base=t.__e,t.__h=null,u.__h.length&&o.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=U(n.__e,t,n,r,i,s,o,l);(d=c.diffed)&&d(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=a,t.__h=!!l,s[s.indexOf(a)]=null),c.__e(e,t,n)}}function z(e,t){c.__c&&c.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){c.__e(e,t.__v)}}))}function U(e,t,n,r,i,s,o,a){var c,d,u,f=n.props,h=t.props,p=t.type,m=0;if("svg"===p&&(i=!0),null!=s)for(;m<s.length;m++)if((c=s[m])&&"setAttribute"in c==!!p&&(p?c.localName===p:3===c.nodeType)){e=c,s[m]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),s=null,a=!1}if(null===p)f===h||a&&e.data===h||(e.data=h);else{if(s=s&&l.call(e.childNodes),d=(f=n.props||g).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!a){if(null!=s)for(f={},m=0;m<e.attributes.length;m++)f[e.attributes[m].name]=e.attributes[m].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(M(e,h,f,i,a),u)t.__k=[];else if(m=t.props.children,T(e,Array.isArray(m)?m:[m],t,n,r,i&&"foreignObject"!==p,s,o,s?s[0]:n.__k&&D(n,0),a),null!=s)for(m=s.length;m--;)null!=s[m]&&y(s[m]);a||("value"in h&&void 0!==(m=h.value)&&(m!==e.value||"progress"===p&&!m||"option"===p&&m!==f.value)&&P(e,"value",m,f.value,!1),"checked"in h&&void 0!==(m=h.checked)&&m!==e.checked&&P(e,"checked",m,f.checked,!1))}return e}function V(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){c.__e(e,n)}}function F(e,t,n){var r,i;if(c.unmount&&c.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||V(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){c.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&F(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function L(e,t,n){var r,i,s;c.__&&c.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],j(t,e=(!r&&n||t).__k=A(C,null,[e]),i||g,g,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?l.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r),z(s,e)}function Q(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(R)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}l=m.slice,c={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},d=0,u=function(e){return null!=e&&void 0===e.constructor},w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),R(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},w.prototype.render=C,f=[],k.__r=0,p=0;var G,Z,q,Y=[],$=[],J=c.__b,X=c.__r,K=c.diffed,ee=c.__c,te=c.unmount;function ne(){for(var e;e=Y.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(se),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(p){e.__H.__h=[],c.__e(p,e.__v)}}c.__b=function(e){G=null,J&&J(e)},c.__r=function(e){X&&X(e),0;var t=(G=e.__c).__H;t&&(Z===G?(t.__h=[],G.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=$,e.__N=e.i=void 0}))):(t.__h.forEach(se),t.__h.forEach(oe),t.__h=[])),Z=G},c.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Y.push(t)&&q===c.requestAnimationFrame||((q=c.requestAnimationFrame)||ie)(ne)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==$&&(e.__=e.__V),e.i=void 0,e.__V=$}))),Z=G=null},c.__c=function(e,t){t.some((function(e){try{e.__h.forEach(se),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(d){t.some((function(e){e.__h&&(e.__h=[])})),t=[],c.__e(d,e.__v)}})),ee&&ee(e,t)},c.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{se(e)}catch(e){t=e}})),n.__H=void 0,t&&c.__e(t,n.__v))};var re="function"==typeof requestAnimationFrame;function ie(e){var t,n=function(){clearTimeout(r),re&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);re&&(t=requestAnimationFrame(n))}function se(e){var t=G,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),G=t}function oe(e){var t=G;e.__c=e.__(),G=t}function ae(e,t){for(var n in t)e[n]=t[n];return e}function le(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ce(e){this.props=e}(ce.prototype=new w).isPureReactComponent=!0,ce.prototype.shouldComponentUpdate=function(e,t){return le(this.props,e)||le(this.state,t)};var de=c.__b;c.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),de&&de(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var ue=c.__e;c.__e=function(e,t,n,r){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);ue(e,t,n,r)};var fe=c.unmount;function he(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=ae({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return he(e,t,n)}))),e}function pe(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return pe(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function ge(){this.__u=0,this.t=null,this.__b=null}function me(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ve(){this.u=null,this.o=null}c.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),fe&&fe(e)},(ge.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=me(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=pe(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},ge.prototype.componentWillUnmount=function(){this.t=[]},ge.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=he(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&A(C,null,e.fallback);return i&&(i.__h=null),[A(C,null,t.__a?null:e.children),i]};var be=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ye(e){return this.getChildContext=function(){return e.context},e.children}function Ae(e){var t=this,n=e.i;t.componentWillUnmount=function(){L(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),L(A(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function _e(e,t){var n=A(Ae,{__v:e,i:t});return n.containerInfo=t,n}(ve.prototype=new w).__a=function(e){var t=this,n=me(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),be(t,e,r)):i()};n?n(s):s()}},ve.prototype.render=function(e){this.u=null,this.o=new Map;var t=O(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ve.prototype.componentDidUpdate=ve.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){be(e,n,t)}))};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ce=/^(?: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]/,we="undefined"!=typeof document,De=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Se=c.event;function Re(){}function ke(){return this.cancelBubble}function Te(){return this.defaultPrevented}c.event=function(e){return Se&&(e=Se(e)),e.persist=Re,e.isPropagationStopped=ke,e.isDefaultPrevented=Te,e.nativeEvent=e};var xe={configurable:!0,get:function(){return this.class}},Oe=c.vnode;c.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var s in r={},n){var o=n[s];we&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==o||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===o?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&!De(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&Ce.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=O(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=O(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(xe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",xe))}e.$$typeof=Ee,Oe&&Oe(e)};var Ie=c.__r;c.__r=function(e){Ie&&Ie(e),e.__c};var Me=n(15941);function Ne(e){if(!e||"undefined"===typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}class Pe{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1;let t=n[e];t<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){this.isRunning=!0;while(this.isDirty)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}const{hasOwnProperty:Be}=Object.prototype;function He(e,t){let n={};if(t)for(let r in t){let t=[];for(let i=e.length-1;i>=0;i-=1){let s=e[i][r];if("object"===typeof s&&s)t.unshift(s);else if(void 0!==s){n[r]=s;break}}t.length&&(n[r]=He(t))}for(let r=e.length-1;r>=0;r-=1){let t=e[r];for(let e in t)e in n||(n[e]=t[e])}return n}function je(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ze(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function Ue(e){let t={};for(let n of e)t[n]=!0;return t}function Ve(e){let t=[];for(let n in e)t.push(e[n]);return t}function Fe(e,t){if(e===t)return!0;for(let n in e)if(Be.call(e,n)&&!(n in t))return!1;for(let n in t)if(Be.call(t,n)&&e[n]!==t[n])return!1;return!0}const We=/^on[A-Z]/;function Le(e,t){const n=Qe(e,t);for(let r of n)if(!We.test(r))return!1;return!0}function Qe(e,t){let n=[];for(let r in e)Be.call(e,r)&&(r in t||n.push(r));for(let r in t)Be.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Ge(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!Ze(e[r],t[r],n[r]))return!1;for(let r in e)if(!(r in t))return!1;return!0}function Ze(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function qe(e,t=0,n,r=1){let i=[];null==n&&(n=Object.keys(e).length);for(let s=t;s<n;s+=r){let t=e[s];void 0!==t&&i.push(t)}return i}function Ye(e,t,n){if(e===t)return!0;let r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function $e(e,t,n){let r,i;return function(...s){if(r){if(!Ye(r,s)){n&&n(i);let r=e.apply(this,s);t&&t(r,i)||(i=r)}}else i=e.apply(this,s);return r=s,i}}function Je(e,t,n){let r,i;return s=>{if(r){if(!Fe(r,s)){n&&n(i);let r=e.call(this,s);t&&t(r,i)||(i=r)}}else i=e.call(this,s);return r=s,i}}function Xe(e){e.parentNode&&e.parentNode.removeChild(e)}function Ke(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(et(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function et(e,t){let n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function tt(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let e=n[i].querySelectorAll(t);for(let t=0;t<e.length;t+=1)r.push(e[t])}return r}const nt=/(top|left|right|bottom|width|height)$/i;function rt(e,t){for(let n in t)it(e,n,t[n])}function it(e,t,n){null==n?e.style[t]="":"number"===typeof n&&nt.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function st(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}let ot=0;function at(){return ot+=1,"fc-dom-"+ot}function lt(e,t){return n=>{let r=Ke(n.target,e);r&&t.call(r,n,r)}}function ct(e,t,n,r){let i=lt(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function dt(e,t,n,r){let i;return ct(e,"mouseover",t,((e,t)=>{if(t!==i){i=t,n(e,t);let s=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",s)};t.addEventListener("mouseleave",s)}}))}function ut(e){return Object.assign({onClick:e},ft(e))}function ft(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let ht=0;function pt(){return ht+=1,String(ht)}function gt(e){let t,n,r=[],i=[];for("string"===typeof e?i=e.split(/\s*,\s*/):"function"===typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)n=i[t],"string"===typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"===typeof n&&r.push({func:n});return r}function mt(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=vt(e,t,n[r]),i)return i;return 0}function vt(e,t,n){return n.func?n.func(e,t):bt(e[n.field],t[n.field])*(n.order||1)}function bt(e,t){return e||t?null==t?-1:null==e?1:"string"===typeof e||"string"===typeof t?String(e).localeCompare(String(t)):e-t:0}function yt(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function At(e,t,n){return"function"===typeof e?e(...t):"string"===typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function _t(e){return e%1===0}function Et(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const Ct=["sun","mon","tue","wed","thu","fri","sat"];function wt(e,t){let n=Lt(e);return n[2]+=7*t,Qt(n)}function Dt(e,t){let n=Lt(e);return n[2]+=t,Qt(n)}function St(e,t){let n=Lt(e);return n[6]+=t,Qt(n)}function Rt(e,t){return kt(e,t)/7}function kt(e,t){return(t.valueOf()-e.valueOf())/864e5}function Tt(e,t){return(t.valueOf()-e.valueOf())/36e5}function xt(e,t){return(t.valueOf()-e.valueOf())/6e4}function Ot(e,t){return(t.valueOf()-e.valueOf())/1e3}function It(e,t){let n=Pt(e),r=Pt(t);return{years:0,months:0,days:Math.round(kt(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Mt(e,t){let n=Nt(e,t);return null!==n&&n%7===0?n/7:null}function Nt(e,t){return Zt(e)===Zt(t)?Math.round(kt(e,t)):null}function Pt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Bt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function Ht(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function jt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function zt(e,t,n){let r=e.getUTCFullYear(),i=Ut(e,r,t,n);if(i<1)return Ut(e,r-1,t,n);let s=Ut(e,r+1,t,n);return s>=1?Math.min(i,s):i}function Ut(e,t,n,r){let i=Qt([t,0,1+Vt(t,n,r)]),s=Pt(e),o=Math.round(kt(i,s));return Math.floor(o/7)+1}function Vt(e,t,n){let r=7+t-n,i=(7+Qt([e,0,r]).getUTCDay()-t)%7;return-i+r-1}function Ft(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Wt(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Lt(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Qt(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Gt(e){return!isNaN(e.valueOf())}function Zt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}let qt={};function Yt(e,t){qt[e]=t}function $t(e){return new qt[e]}class Jt{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Qt(e)}markerToArray(e){return Lt(e)}}Yt("gregory",Jt);const Xt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Kt(e,t){return"string"===typeof e?en(e):"object"===typeof e&&e?tn(e):"number"===typeof e?tn({[t||"milliseconds"]:e}):null}function en(e){let t=Xt.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function tn(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function nn(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function rn(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function sn(e){return an(e)/365}function on(e){return an(e)/30}function an(e){return ln(e)/864e5}function ln(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function cn(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%6e4!==0)return{unit:"second",value:t/1e3};if(t%36e5!==0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function dn(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",fn(t,!0)))),r}function un(e){return e.toISOString().replace(/T.*$/,"")}function fn(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+yt(i,2)}:${yt(s,2)}`:`GMT${n}${i}${s?`:${yt(s,2)}`:""}`}const hn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function pn(e){let t=hn.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number(`0.${t[12]}`):0));if(Gt(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class gn{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=$t(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"===typeof e.firstDay&&(this.weekDow=e.firstDay),"function"===typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Qt(Ft(new Date))}createMarkerMeta(e){if("string"===typeof e)return this.parse(e);let t=null;return"number"===typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Qt(e)),null!==t&&Gt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=pn(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Zt(e)===Zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Zt(e)===Zt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=Mt(e,t),null!==n?{unit:"week",value:n}:(n=Nt(e,t),null!==n?{unit:"day",value:n}:(n=Tt(e,t),_t(n)?{unit:"hour",value:n}:(n=xt(e,t),_t(n)?{unit:"minute",value:n}:(n=Ot(e,t),_t(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/sn(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/on(n):n.days&&(r=Nt(e,t),null!==r)?r/an(n):(t.valueOf()-e.valueOf())/ln(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Pt(e):"hour"===t?Bt(e):"minute"===t?Ht(e):"second"===t?jt(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):zt(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=St(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),dn(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Qt(Ft(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Qt(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-Wt(Lt(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Lt(e)):null}toDate(e,t){return"local"===this.timeZone?Wt(Lt(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Lt(e))*60):new Date(e.valueOf()-(t||0))}}class mn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"===typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}mn.prototype.classes={},mn.prototype.iconClasses={},mn.prototype.baseIconClass="",mn.prototype.iconOverridePrefix="";const vn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},bn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},yn=/\s*([ap])\.?m\.?/i,An=/,/g,_n=/\s+/g,En=/\u200e/g,Cn=/UTC|GMT/;class wn{constructor(e){let t={},n={},r=0;for(let i in e)i in vn?(n[i]=e[i],r=Math.max(vn[i],r)):(t[i]=e[i],i in bn&&(r=Math.max(bn[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=$e(Dn)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,o=On(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let a=o;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);let l=this.format(e,n),c=this.format(t,n);if(l===c)return l;let d=In(i,a),u=Dn(d,s,n),f=u(e),h=u(t),p=Mn(l,f,c,h),g=s.separator||r||n.defaultSeparator||"";return p?p.before+f+g+h+p.after:l+g+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Dn(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>fn(e.timeZoneOffset):0===r&&t.week?e=>xn(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):Sn(e,t,n)}function Sn(e,t,n){e=Object.assign({},e),t=Object.assign({},t),Rn(e,t),e.timeZone="UTC";let r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return s=>{let o,{marker:a}=s;o=r&&!a.getUTCMinutes()?r:i;let l=o.format(a);return kn(l,s,e,t,n)}}function Rn(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function kn(e,t,n,r,i){return e=e.replace(En,""),"short"===n.timeZoneName&&(e=Tn(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":fn(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(An,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(yn,"").trim():"narrow"===r.meridiem?e=e.replace(yn,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(yn,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(yn,(e=>e.toLocaleLowerCase()))),e=e.replace(_n," "),e=e.trim(),e}function Tn(e,t){let n=!1;return e=e.replace(Cn,(()=>(n=!0,t))),n||(e+=` ${t}`),e}function xn(e,t,n,r,i){let s=[];return"long"===i?s.push(n):"short"!==i&&"narrow"!==i||s.push(t),"long"!==i&&"short"!==i||s.push(" "),s.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&s.reverse(),s.join("")}function On(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:Zt(e)!==Zt(t)?1:0}function In(e,t){let n={};for(let r in e)(!(r in bn)||bn[r]<=t)&&(n[r]=e[r]);return n}function Mn(e,t,n,r){let i=0;while(i<e.length){let s=e.indexOf(t,i);if(-1===s)break;let o=e.substr(0,s);i=s+t.length;let a=e.substr(i),l=0;while(l<n.length){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let i=n.substr(l);if(o===t&&a===i)return{before:o,after:a}}}return null}function Nn(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Pn(e,t,n,r){let i=Nn(e,n.calendarSystem),s=t?Nn(t,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Bn{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Pn(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,Pn(e,t,n,r))}}class Hn{constructor(e){this.func=e}format(e,t,n){return this.func(Pn(e,null,t,n))}formatRange(e,t,n,r){return this.func(Pn(e,t,n,r))}}function jn(e){return"object"===typeof e&&e?new wn(e):"string"===typeof e?new Bn(e):"function"===typeof e?new Hn(e):null}const zn={navLinkDayClick:qn,navLinkWeekClick:qn,duration:Kt,bootstrapFontAwesome:qn,buttonIcons:qn,customButtons:qn,defaultAllDayEventDuration:Kt,defaultTimedEventDuration:Kt,nextDayThreshold:Kt,scrollTime:Kt,scrollTimeReset:Boolean,slotMinTime:Kt,slotMaxTime:Kt,dayPopoverFormat:jn,slotDuration:Kt,snapDuration:Kt,headerToolbar:qn,footerToolbar:qn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:jn,dayHeaderClassNames:qn,dayHeaderContent:qn,dayHeaderDidMount:qn,dayHeaderWillUnmount:qn,dayCellClassNames:qn,dayCellContent:qn,dayCellDidMount:qn,dayCellWillUnmount:qn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:qn,weekNumbers:Boolean,weekNumberClassNames:qn,weekNumberContent:qn,weekNumberDidMount:qn,weekNumberWillUnmount:qn,editable:Boolean,viewClassNames:qn,viewDidMount:qn,viewWillUnmount:qn,nowIndicator:Boolean,nowIndicatorClassNames:qn,nowIndicatorContent:qn,nowIndicatorDidMount:qn,nowIndicatorWillUnmount:qn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:qn,locale:qn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:qn,eventOrder:gt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:qn,contentHeight:qn,direction:String,weekNumberFormat:jn,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:qn,initialDate:qn,now:qn,eventDataTransform:qn,stickyHeaderDates:qn,stickyFooterScrollbar:qn,viewHeight:qn,defaultAllDay:Boolean,eventSourceFailure:qn,eventSourceSuccess:qn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:qn,eventConstraint:qn,eventAllow:qn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:qn,eventContent:qn,eventDidMount:qn,eventWillUnmount:qn,selectConstraint:qn,selectOverlap:qn,selectAllow:qn,droppable:Boolean,unselectCancel:String,slotLabelFormat:qn,slotLaneClassNames:qn,slotLaneContent:qn,slotLaneDidMount:qn,slotLaneWillUnmount:qn,slotLabelClassNames:qn,slotLabelContent:qn,slotLabelDidMount:qn,slotLabelWillUnmount:qn,dayMaxEvents:qn,dayMaxEventRows:qn,dayMinWidth:Number,slotLabelInterval:Kt,allDayText:String,allDayClassNames:qn,allDayContent:qn,allDayDidMount:qn,allDayWillUnmount:qn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:jn,rerenderDelay:Number,moreLinkText:qn,moreLinkHint:qn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:qn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Kt,hiddenDays:qn,monthMode:Boolean,fixedWeekCount:Boolean,validRange:qn,visibleRange:qn,titleFormat:qn,eventInteractive:Boolean,noEventsText:String,viewHint:qn,navLinkHint:qn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:qn,moreLinkClassNames:qn,moreLinkContent:qn,moreLinkDidMount:qn,moreLinkWillUnmount:qn,handleCustomRendering:qn,customRenderingMetaMap:qn,customRenderingReplacesEl:Boolean},Un={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},Vn={datesSet:qn,eventsSet:qn,eventAdd:qn,eventChange:qn,eventRemove:qn,windowResize:qn,eventClick:qn,eventMouseEnter:qn,eventMouseLeave:qn,select:qn,unselect:qn,loading:qn,_unmount:qn,_beforeprint:qn,_afterprint:qn,_noEventDrop:qn,_noEventResize:qn,_resize:qn,_scrollRequest:qn},Fn={buttonText:qn,buttonHints:qn,views:qn,plugins:qn,initialEvents:qn,events:qn,eventSources:qn},Wn={headerToolbar:Ln,footerToolbar:Ln,buttonText:Ln,buttonHints:Ln,buttonIcons:Ln,dateIncrement:Ln};function Ln(e,t){return"object"===typeof e&&"object"===typeof t&&e&&t?Fe(e,t):e===t}const Qn={type:String,component:qn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:qn,usesMinMaxTime:Boolean,classNames:qn,content:qn,didMount:qn,willUnmount:qn};function Gn(e){return He(e,Wn)}function Zn(e,t){let n={},r={};for(let i in t)i in e&&(n[i]=t[i](e[i]));for(let i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function qn(e){return e}function Yn(e){e();let t=c.debounceRendering,n=[];function r(e){n.push(e)}c.debounceRendering=r,L(A($n,{}),document.createElement("div"));while(n.length)n.shift()();c.debounceRendering=t}class $n extends w{render(){return A("div",{})}componentDidMount(){this.setState({})}}function Jn(e){let t=Q(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Xn{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Kn=Jn({});function er(e,t,n,r,i,s,o,a,l,c,d,u,f){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:a,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder(e){return new Xn(e,c,Kt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:f}}class tr extends w{shouldComponentUpdate(e,t){return this.debug&&Me.log(Qe(e,this.props),Qe(t,this.state)),!Ge(this.props,e,this.propEquality)||!Ge(this.state,t,this.stateEquality)}safeSetState(e){Ge(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}tr.addPropsEquality=rr,tr.addStateEquality=ir,tr.contextType=Kn,tr.prototype.propEquality={},tr.prototype.stateEquality={};class nr extends tr{}function rr(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function ir(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function sr(e,t){"function"===typeof e?e(t):e&&(e.current=t)}nr.contextType=Kn;class or extends nr{constructor(){super(...arguments),this.id=pt(),this.currentDomNodes=[],this.queuedDomNodes=[],this.handleEl=e=>{this.props.elRef&&sr(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{generator:r,renderProps:i}=e,s=lr(e);let o,a=[];if(ar(e.generatorName,n))n.customRenderingReplacesEl&&delete s.elRef;else{const e="function"===typeof r?r(i,A):r;"string"===typeof e||u(e)||Array.isArray(e)?o=e:"object"===typeof e&&("html"in e?s.dangerouslySetInnerHTML={__html:e.html}:"domNodes"in e&&(a=Array.prototype.slice.call(e.domNodes)))}return this.queuedDomNodes=a,A(e.elTag,s,o)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){const{props:t,context:n}=this,{handleCustomRendering:r,customRenderingMetaMap:i}=n.options;if(r){const n=null===i||void 0===i?void 0:i[t.generatorName];n&&r(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:n},t))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!Ye(e,t)){t.forEach(Xe);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function ar(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function lr(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}or.addPropsEquality({elClasses:Ye,elStyle:Fe,elAttrs:Le,renderProps:Fe});const cr=Jn(0);class dr extends w{constructor(){super(...arguments),this.InnerContent=ur.bind(void 0,this)}render(){const{props:e}=this,t=fr(e.classNameGenerator,e.renderProps);if(e.children){const n=lr(e,t),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?A(e.elTag,n,r):r}return A(or,Object.assign(Object.assign({},e),{elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}function ur(e,t){const n=e.props;return A(or,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,generator:n.generator,renderId:e.context},t))}function fr(e,t){const n="function"===typeof e?e(t):e||[];return"string"===typeof n?[n]:n}dr.contextType=cr;class hr extends nr{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return A(dr,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...pr(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,generator:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function pr(e){return[`fc-${e.type}-view`,"fc-view"]}function gr(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function mr(e,t){let n,r,i=[],{start:s}=t;for(e.sort(vr),n=0;n<e.length;n+=1)r=e[n],r.start>s&&i.push({start:s,end:r.start}),r.end>s&&(s=r.end);return s<t.end&&i.push({start:s,end:t.end}),i}function vr(e,t){return e.start.valueOf()-t.start.valueOf()}function br(e,t){let{start:n,end:r}=e,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function yr(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Ar(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function _r(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function Er(e){let t=Math.floor(kt(e.start,e.end))||1,n=Pt(e.start),r=Dt(n,t);return{start:n,end:r}}function Cr(e,t=Kt(0)){let n=null,r=null;if(e.end){r=Pt(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=ln(t)&&(r=Dt(r,1))}return e.start&&(n=Pt(e.start),r&&r<=n&&(r=Dt(n,1))),{start:n,end:r}}function wr(e,t,n,r){return"year"===r?Kt(n.diffWholeYears(e,t),"year"):"month"===r?Kt(n.diffWholeMonths(e,t),"month"):It(e,t)}function Dr(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function Sr(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):Rr(e.now,t)}function Rr(e,t){return"function"===typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class kr{constructor(e){this.props=e,this.nowDate=Rr(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,s,o,a,l,{props:c}=this;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=_r(e,r)),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),o=this.trimHiddenDays(o),a=o,c.showNonCurrentDates||(a=br(a,i.range)),a=this.adjustActiveRange(a),a=br(a,r),l=yr(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"===typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,s=null,o=null;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=cn(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return Kt({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(an(r)<0&&(s=Pt(s),s=t.add(s,r)),an(i)>1&&(o=Pt(o),o=Dt(o,-1),o=t.add(o,i))),{start:s,end:o}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:a,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&ln(e)<ln(n)?cn(e).unit:r}function c(){i=a.startOf(e,l),s=a.add(i,n),o={start:i,end:s}}return an(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=Pt(i)),c(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),c()),o}buildRangeFromDayCount(e,t,n){let r,{dateEnv:i,dateAlignment:s}=this.props,o=0,a=e;s&&(a=i.startOf(a,s)),a=Pt(a),a=this.skipHiddenDays(a,t),r=a;do{r=Dt(r,1),this.isHiddenDay(r)||(o+=1)}while(o<n);return{start:a,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"===typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?Kt(1,t):e||Kt({days:1}))}refineRange(e){if(e){let t=gr(e,this.props.dateEnv);return t&&(t=Cr(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7])e=Dt(e,t);return e}}function Tr(e,t,n,r){return{instanceId:pt(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function xr(e,t,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(e,n);if(s){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=s.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Or(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;a=je(a,(e=>!o[e.defId].recurringDef));for(let l in o){let e=o[l];if(e.recurringDef){let{duration:n}=e.recurringDef;n||(n=e.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let o=Ir(e,n,t,r,i.recurringTypes);for(let e of o){let t=Tr(l,{start:e,end:r.add(e,n)});a[t.instanceId]=t}}}return{defs:o,instances:a}}function Ir(e,t,n,r,i){let s=i[e.recurringDef.typeId],o=s.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(Pt)),o}const Mr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Nr={start:qn,end:qn,date:qn,allDay:Boolean},Pr=Object.assign(Object.assign(Object.assign({},Mr),Nr),{extendedProps:qn});function Br(e,t,n,r,i=jr(n)){let{refined:s,extra:o}=Hr(e,n,i),a=Vr(t,n),l=xr(s,a,n.dateEnv,n.pluginHooks.recurringTypes);if(l){let e=zr(s,o,t?t.sourceId:"",l.allDay,Boolean(l.duration),n);return e.recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:e,instance:null}}let c=Ur(s,a,n,r);if(c){let e=zr(s,o,t?t.sourceId:"",c.allDay,c.hasEnd,n),r=Tr(e.defId,c.range,c.forcedStartTzo,c.forcedEndTzo);return{def:e,instance:r}}return null}function Hr(e,t,n=jr(t)){return Zn(e,n)}function jr(e){return Object.assign(Object.assign(Object.assign({},Xr),Pr),e.pluginHooks.eventRefiners)}function zr(e,t,n,r,i,s){let o={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:pt(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:ei(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let a of s.pluginHooks.eventDefMemberAdders)Object.assign(o,a(e));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function Ur(e,t,n,r){let i,s,{allDay:o}=e,a=null,l=!1,c=null,d=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(d),i)a=i.marker;else if(!r)return null;return null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end)),null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),o&&a&&(a=Pt(a)),s&&(c=s.marker,o&&(c=Pt(c)),a&&c<=a&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}function Vr(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function Fr(e,t,n,r){let i=Gr(),s=jr(n);for(let o of e){let e=Br(o,t,n,r,s);e&&Wr(e,i)}return i}function Wr(e,t=Gr()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Lr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qr(e,(e=>Qr(t,e)));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return Gr()}function Qr(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Gr(){return{defs:{},instances:{}}}function Zr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qr(e,t){let n=je(e.defs,t),r=je(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function Yr(e,t){let{defs:n,instances:r}=e,i={},s={};for(let o in n)t.defs[o]||(i[o]=n[o]);for(let o in r)!t.instances[o]&&i[r[o].defId]&&(s[o]=r[o]);return{defs:i,instances:s}}function $r(e,t){return Array.isArray(e)?Fr(e,null,t,!0):"object"===typeof e&&e?Fr([e],null,t,!0):null!=e?String(e):null}function Jr(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}const Xr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:qn,overlap:qn,allow:qn,className:Jr,classNames:Jr,color:String,backgroundColor:String,borderColor:String,textColor:String},Kr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ei(e,t){let n=$r(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function ti(e){return e.reduce(ni,Kr)}function ni(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"===typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const ri={id:String,defaultAllDay:Boolean,url:String,format:String,events:qn,eventDataTransform:qn,success:qn,failure:qn};function ii(e,t,n=si(t)){let r;if("string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){let{refined:i,extra:s}=Zn(r,n),o=oi(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:pt(),sourceDefId:o.sourceDefId,meta:o.meta,ui:ei(i,t),extendedProps:s}}return null}function si(e){return Object.assign(Object.assign(Object.assign({},Xr),ri),e.pluginHooks.eventSourceRefiners)}function oi(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let t=n[r],i=t.parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function ai(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return li(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return ui(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Zr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Or(e,r.activeRange,i):e;case"REMOVE_EVENTS":return Yr(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return hi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return qr(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return Gr();default:return e}}function li(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=Fr(ci(i,t,s),t,s);return r&&(n=Or(n,r,s)),Zr(hi(e,t.sourceId),n)}return e}function ci(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=di(e,i)),r&&(e=di(e,r)),e}function di(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function ui(e,t,n,r){return n&&(t=Or(t,n,r)),Zr(e,t)}function fi(e,t,n){let{defs:r}=e,i=ze(e.instances,(e=>{let i=r[e.defId];return i.allDay||i.recurringDef?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:i}}function hi(e,t){return qr(e,(e=>e.sourceId!==t))}class pi{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){gi(this.handlers,e,t)}off(e,t){mi(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let s of i)s.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function gi(e,t,n){(e[t]||(e[t]=[])).push(n)}function mi(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}const vi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function bi(e,t){return Fr(yi(e),null,t)}function yi(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"===typeof e&&e?[e]:[],t=t.map((e=>Object.assign(Object.assign({},vi),e))),t}function Ai(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Ei(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function _i(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function Ei(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,Yi(e,t.dateEnv)),n}function Ci(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=Pt(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function wi(e,t,n,r){let i=Ni(e.defs,t),s=Gr();for(let o in e.defs){let t=e.defs[o];s.defs[o]=Di(t,i[o],n,r)}for(let o in e.instances){let t=e.instances[o],a=s.defs[t.defId];s.instances[o]=Si(t,a,i[t.defId],n,r)}return s}function Di(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let o of r.pluginHooks.eventDefMutationAppliers)o(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Si(e,t,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return o&&(l.range=Er(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:s.add(l.range.start,r.datesDelta),end:s.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:s.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:Ci(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Pt(l.range.start),end:Pt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Ci(t.allDay,l.range.start,i)),l}class Ri{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class ki{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Nr)Me.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Mr[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Mr)t=Mr[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Xr){let n=Xr[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else Me.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=this._instance.range,i=wr(e.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=wr(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:i}=this._context,s={allDay:n.allDay},o=i.createMarker(e);if(o&&(null==t||(r=i.createMarker(t),r))&&this._instance){let e=this._instance.range;!0===n.allDay&&(e=Er(e));let t=wr(e.start,o,i,n.granularity);if(r){let o=wr(e.end,r,i,n.granularity);nn(t,o)?this.mutate({datesDelta:t,standardProps:s}):this.mutate({startDelta:t,endDelta:o,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:t,standardProps:s})}}moveStart(e){let t=Kt(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=Kt(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=Kt(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=jn(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),s=Lr(i,t.instanceId),o={"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};s=wi(s,o,e,r);let a=new ki(r,n,t);this._def=s.defs[n.defId],this._instance=s.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:s}),r.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:xi(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=Ti(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new Ri(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,s={};return t.title&&(s.title=t.title),r&&(s.start=r),i&&(s.end=i),t.publicId&&(s.id=t.publicId),t.groupId&&(s.groupId=t.groupId),t.url&&(s.url=t.url),n.display&&"auto"!==n.display&&(s.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,t.extendedProps):s.extendedProps=t.extendedProps),s}toJSON(){return this.toPlainObject()}}function Ti(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function xi(e,t,n){let{defs:r,instances:i}=e,s=[],o=n?n.instanceId:"";for(let a in i){let e=i[a],n=r[e.defId];e.instanceId!==o&&s.push(new ki(t,n,e))}return s}function Oi(e,t,n,r){let i={},s={},o={},a=[],l=[],c=Ni(e.defs,t);for(let d in e.defs){let t=e.defs[d],n=c[t.defId];"inverse-background"===n.display&&(t.groupId?(i[t.groupId]=[],o[t.groupId]||(o[t.groupId]=t)):s[d]=[])}for(let d in e.instances){let t=e.instances[d],o=e.defs[t.defId],u=c[o.defId],f=t.range,h=!o.allDay&&r?Cr(f,r):f,p=br(h,n);p&&("inverse-background"===u.display?o.groupId?i[o.groupId].push(p):s[t.defId].push(p):"none"!==u.display&&("background"===u.display?a:l).push({def:o,ui:u,instance:t,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()}))}for(let d in i){let e=i[d],t=mr(e,n);for(let n of t){let e=o[d],t=c[e.defId];a.push({def:e,ui:t,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let d in s){let t=s[d],r=mr(t,n);for(let n of r)a.push({def:e.defs[d],ui:c[d],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function Ii(e,t){e.fcSeg=t}function Mi(e){return e.fcSeg||e.parentNode.fcSeg||null}function Ni(e,t){return ze(e,(e=>Pi(e,t)))}function Pi(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ti(n)}function Bi(e,t){let n=e.map(Hi);return n.sort(((e,n)=>mt(e,n,t))),n.map((e=>e._seg))}function Hi(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:e})}function ji(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,o=s.startEditable;for(let a of r)o=a(o,i,s,t);return o}function zi(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Ui(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Vi(e,t,n,r,i,s,o){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==i);let h=f.range.start,p=f.range.end,g=s||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=Pt(h).valueOf()===Pt(g).valueOf(),b=Pt(St(p,-1)).valueOf()===Pt(St(m,-1)).valueOf();return c&&!u.allDay&&(v||b)?(g=v?h:g,m=b?p:m,d&&u.hasEnd?a.formatRange(g,m,t,{forcedStartTzo:s?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):a.format(g,t,{forcedTzo:s?null:f.forcedStartTzo})):""}function Fi(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ar(t,r.start)}}function Wi(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Li(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Qi(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=t,{eventInteractive:a}=o;return null==a&&(a=n.interactive,null==a&&(a=Boolean(s.hasHandlers("eventClick")))),a?ft((e=>{s.trigger("eventClick",{el:e.target,event:new ki(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const Gi={start:qn,end:qn,allDay:Boolean};function Zi(e,t,n){let r=qi(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function qi(e,t){let{refined:n,extra:r}=Zn(e,Gi),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;return null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}function Yi(e,t){return Object.assign(Object.assign({},Ji(e.range,t,e.allDay)),{allDay:e.allDay})}function $i(e,t,n){return Object.assign(Object.assign({},Ji(e,t,n)),{timeZone:t.timeZone})}function Ji(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function Xi(e,t,n){let r=Hr({editable:!1},n),i=zr(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Pi(i,t),instance:Tr(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Ki(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},s=function(e){r||(r=!0,n(e))},o=e(i,s);o&&"function"===typeof o.then&&o.then(i,s)}class es extends Error{constructor(e,t){super(e),this.response=t}}function ts(e,t,n){e=e.toUpperCase();const r={method:e};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new es("Failure parsing JSON",e)}));throw new es("Request failed",e)}))}let ns;function rs(){return null==ns&&(ns=is()),ns}function is(){if("undefined"===typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div"),n=t.offsetHeight>0;return document.body.removeChild(e),n}class ss extends nr{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return rs()||s.push("fc-liquid-hack"),e.children(s,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class os{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function as(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}const ls={};class cs{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):Me.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let n,r=this.getCurrentData();t=t||"day",n=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let o in r)s.push(o);for(t=0;t<s.length;t+=1)if(n=r[s[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Rr(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=Kt(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),jn(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),jn(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),i=Zi(n,r.dateEnv,Kt({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Ai(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),_i(e,t))}addEvent(e,t){if(e instanceof ki){let t=e._def,n=e._instance,r=this.getCurrentData();return r.eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Wr({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof Ri)n=t.internalEventSource;else if("boolean"===typeof t)t&&([n]=Ve(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return Me.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=Br(e,n,r,!1);if(i){let e=new ki(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Wr(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Ti(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new ki(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new ki(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return xi(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new Ri(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new Ri(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Ri)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=ii(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Ri(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Kt(e);t&&this.trigger("_scrollRequest",{time:t})}}function ds(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}Gr();function us(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Ar(r.activeRange,e)),isOther:Boolean(r&&!Ar(r.currentRange,e)),isToday:Boolean(t&&Ar(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function fs(e,t){let n=["fc-day",`fc-day-${Ct[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const hs=jn({year:"numeric",month:"long",day:"numeric"}),ps=jn({week:"long"});function gs(e,t,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=e;let a=i.format(t,"week"===n?ps:hs);if(s.navLinks){let e=i.toDate(t);const l=e=>{let r="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"===typeof r?r.call(o,i.toDate(t),e):("string"===typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:At(s.navLinkHint,[a,e],a),"data-navlink":""},r?ut(l):{onClick:l})}return{"aria-label":a}}let ms;function vs(){return ms||(ms=bs()),ms}function bs(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=ys(e);return document.body.removeChild(e),t}function ys(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function As(e){let t=_s(e),n=e.getBoundingClientRect();for(let r of t){let e=ds(n,r.getBoundingClientRect());if(!e)return null;n=e}return n}function _s(e){let t=[];while(e instanceof HTMLElement){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class Es{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}}class Cs extends nr{constructor(){super(...arguments),this.uid=pt()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Ke(e,".fc-event-mirror")}isValidDateDownEl(e){return!Ke(e,".fc-event:not(.fc-bg-event)")&&!Ke(e,".fc-more-link")&&!Ke(e,"a[data-navlink]")&&!Ke(e,".fc-popover")}}class ws{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)}splitEntry(e,t,n){let r=0,i=[],s=e.span,o=t.span;return s.start<o.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:o.start}},i)),s.end>o.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:s.end}},i)),r?(n.push({index:e.index,thickness:e.thickness,span:Rs(o,s)},...i),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(ks(r,t.level,t.levelCoord),ks(n,t.level,[e])):ks(n[t.level],t.lateral,e),this.stackCnts[Ss(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,s=t.length,o=0,a=-1,l=-1,c=null,d=0;for(let h=0;h<s;h+=1){let s=t[h];if(!r&&s>=o+e.thickness)break;let u,f=n[h],p=Ts(f,e.span.start,Ds),g=p[0]+p[1];while((u=f[g])&&u.span.start<e.span.end){let e=s+u.thickness;e>o&&(o=e,c=u,a=h,l=g),e===o&&(d=Math.max(d,i[Ss(u)]+1)),g+=1}}let u=0;if(c){u=a+1;while(u<s&&t[u]<o)u+=1}let f=-1;return u<s&&t[u]===o&&(f=Ts(n[u],e.span.end,Ds)[0]),{touchingLevel:a,touchingLateral:l,touchingEntry:c,stackCnt:d,levelCoord:o,level:u,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],s=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{levelCoord:s}))}return r}}function Ds(e){return e.span.end}function Ss(e){return e.index+":"+e.span.start}function Rs(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function ks(e,t,n){e.splice(t,0,n)}function Ts(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];while(r<i){let s=Math.floor(r+(i-r)/2),o=n(e[s]);if(t<o)i=s;else{if(!(t>o))return[s,1];r=s+1}}return[r,0]}Boolean;function xs(e,t){return jn(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}const Os="fc-col-header-cell";function Is(e){return e.text}class Ms extends nr{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:s,dateProfile:o}=i,a=us(s,i.todayRange,null,o),l=[Os].concat(fs(a,n)),c=e.format(s,i.dayHeaderFormat),d=!a.isDisabled&&i.colCnt>1?gs(this.context,s):{},u=Object.assign(Object.assign(Object.assign({date:e.toDate(s),view:r},i.extraRenderProps),{text:c}),a);return A(dr,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":a.isDisabled?void 0:un(s)},i.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",generator:t.dayHeaderContent||Is,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},(e=>A("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&A(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]}))))}}const Ns=jn({weekday:"long"});class Ps extends nr{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,s=Dt(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=t.format(s,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:s},o),{view:r}),e.extraRenderProps),{text:a});return A(dr,{elTag:"th",elClasses:[Os,...fs(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",generator:i.dayHeaderContent||Is,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(n=>A("div",{className:"fc-scrollgrid-sync-inner"},A(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(s,Ns)}}))))}}class Bs extends w{constructor(e,t){super(e,t),this.initialNowDate=Rr(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=St(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,Kt(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:Hs(r)},nextState:{nowDate:i,todayRange:Hs(i)},waitMs:s}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Hs(e){let t=Pt(e),n=Dt(t,1);return{start:t,end:n}}Bs.contextType=Kn;class js extends nr{constructor(){super(...arguments),this.createDayHeaderFormatter=$e(zs)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return A(Bs,{unit:"day"},((e,o)=>A("tr",{role:"row"},i&&i("day"),t.map((e=>r?A(Ms,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:s}):A(Ps,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s}))))))}}function zs(e,t,n){return e||xs(t,n)}class Us{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],o=-1;while(n<r)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),s.push(n)),n=Dt(n,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Dt(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(kt(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class Vs{constructor(e,t){let n,r,i,{dates:s}=e;if(t){for(r=s[0].getUTCDay(),n=1;n<s.length;n+=1)if(s[n].getUTCDay()===r)break;i=Math.ceil(s.length/n)}else i=1,n=s.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:i}=n,s=e;while(s<=i){let o=Math.floor(s/t),a=Math.min((o+1)*t,i+1);r.push({row:o,firstCol:s%t,lastCol:(a-1)%t,isStart:n.isStart&&s===e,isEnd:n.isEnd&&a-1===i}),s=a}}return r}}class Fs{constructor(){this.sliceBusinessHours=$e(this._sliceBusinessHours),this.sliceDateSelection=$e(this._sliceDateSpan),this.sliceEventStore=$e(this._sliceEventStore),this.sliceEventDrag=$e(this._sliceInteraction),this.sliceEventResize=$e(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:s}=e,o=this.sliceEventStore(e.eventStore,s,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,s,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,s,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,...n){return this._sliceDateSpan({range:{start:e,end:St(e,1)},allDay:!1},{},t,...n)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(Or(e,Ws(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=Oi(e,t,Ws(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let s=Oi(e.mutatedEvents,t,Ws(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,...r){if(!e)return[];let i=Xi(e,t,n),s=this.sliceRange(e.range,...r);for(let o of s)o.eventRange=i;return s}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:Dt(n.start,1)});let r=this.sliceRange(n,...t);for(let i of r)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return r}}function Ws(e,t){let n=e.activeRange;return t?n:{start:St(n.start,e.slotMinTime.milliseconds),end:St(n.end,e.slotMaxTime.milliseconds-864e5)}}const Ls=/^(visible|hidden)$/;class Qs extends nr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,sr(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),A("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Ls.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let r=0;r<n.length;r+=1){let e=n[r];if(e.getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if(Ls.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let r=0;r<n.length;r+=1){let e=n[r];if(e.getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return Ls.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Ls.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Gs{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,s=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,s=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),s&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return qe(this.currentMap,e,t,n)}getAll(){return Ve(this.currentMap)}}function Zs(e){let t=tt(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,Et(r));return Math.ceil(n)}function qs(e,t){return e.liquid&&t.liquid}function Ys(e,t){return null!=t.maxHeight||qs(e,t)}function $s(e,t,n,r){let{expandRows:i}=n,s="function"===typeof t.content?t.content(n):A("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,A(r?"thead":"tbody",{role:"presentation"},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent));return s}function Js(e,t){return Ye(e,t,Fe)}function Xs(e,t){let n=[];for(let r of e){let e=r.span||1;for(let i=0;i<e;i+=1)n.push(A("col",{style:{width:"shrink"===r.width?Ks(t):r.width||"",minWidth:r.minWidth||""}}))}return A("colgroup",{},...n)}function Ks(e){return null==e?4:e}function eo(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function to(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function no(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function ro(e){return A("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function io(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function so(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class oo extends nr{constructor(){super(...arguments),this.processCols=$e((e=>e),Js),this.renderMicroColGroup=$e(Xs),this.scrollerRefs=new Gs,this.scrollerElRefs=new Gs(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],i=this.processCols(e.cols),s=this.renderMicroColGroup(i,t.shrinkWidth),o=to(e.liquid,n);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let a,l=r.length,c=0,d=[],u=[],f=[];while(c<l&&"header"===(a=r[c]).type)d.push(this.renderSection(a,s,!0)),c+=1;while(c<l&&"body"===(a=r[c]).type)u.push(this.renderSection(a,s,!1)),c+=1;while(c<l&&"footer"===(a=r[c]).type)f.push(this.renderSection(a,s,!0)),c+=1;let h=!rs();const p={role:"rowgroup"};return A("table",{role:"grid",className:o.join(" "),style:{height:e.height}},Boolean(!h&&d.length)&&A("thead",p,...d),Boolean(!h&&u.length)&&A("tbody",p,...u),Boolean(!h&&f.length)&&A("tfoot",p,...f),h&&A("tbody",p,...d,...u,...f))}renderSection(e,t,n){return"outerContent"in e?A(C,{key:e.key},e.outerContent):A("tr",{key:e.key,role:"presentation",className:no(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:i}=this,{forceYScrollbars:s,scrollerClientWidths:o,scrollerClientHeights:a}=this.state,l=Ys(i,e),c=qs(i,e),d=i.liquid?s?"scroll":l?"auto":"hidden":"visible",u=e.key,f=$s(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===o[u]?null:o[u],clientHeight:void 0!==a[u]?a[u]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return A(r?"th":"td",{ref:n.elRef,role:"presentation"},A("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},A(Qs,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=ao(this.props.sections,t);n&&sr(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return eo(this.props.cols)?Zs(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=vs(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},s={};for(let o in t.currentMap){let e=t.currentMap[o];if(e&&e.needsYScrolling()){r=!0;break}}for(let o of this.props.sections){let t=o.key,a=n.currentMap[t];if(a){let n=a.parentNode;i[t]=Math.floor(n.getBoundingClientRect().width-(r?e.y:0)),s[t]=Math.floor(n.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:s}}}function ao(e,t){for(let n of e)if(n.key===t)return n;return null}oo.addStateEquality({scrollerClientWidths:Fe,scrollerClientHeights:Fe});class lo extends nr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Ii(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:i}=r,{ui:s}=i,o={event:new ki(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&ji(r,t),isStartResizable:!e.disableResizing&&zi(r,t),isEndResizable:!e.disableResizing&&Ui(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return A(dr,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Wi(o),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",generator:n.eventContent||e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ii(this.el,this.props.seg)}}class co extends nr{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,s=n.eventTimeFormat||e.defaultTimeFormat,o=Vi(r,s,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return A(lo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Qi(r,t),defaultGenerator:uo,timeText:o}),((e,t)=>A(C,null,A(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&A("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&A("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function uo(e){return A("div",{className:"fc-event-main-frame"},e.timeText&&A("div",{className:"fc-event-time"},e.timeText),A("div",{className:"fc-event-title-container"},A("div",{className:"fc-event-title fc-sticky"},e.event.title||A(C,null," "))))}const fo=jn({day:"numeric"});class ho extends nr{constructor(){super(...arguments),this.refineRenderProps=Je(go)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return A(dr,Object.assign({},e,{elClasses:[...fs(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":un(e.date)}),renderProps:r,generatorName:"dayCellContent",generator:n.dayCellContent||e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function po(e){return Boolean(e.dayCellContent||ar("dayCellContent",e))}function go(e){let{date:t,dateEnv:n}=e,r=us(t,e.todayRange,null,e.dateProfile);return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,fo):""}),e.extraRenderProps)}class mo extends nr{render(){let{props:e}=this,{seg:t}=e;return A(lo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:vo,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function vo(e){let{title:t}=e.event;return t&&A("div",{className:"fc-event-title"},e.event.title)}function bo(e){return A("div",{className:`fc-${e}`})}const yo=e=>A(Kn.Consumer,null,(t=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,o=n.computeWeekNumber(i),a=n.format(i,s),l={num:o,text:a,date:i};return A(dr,Object.assign({},e,{renderProps:l,generatorName:"weekNumberContent",generator:r.weekNumberContent||Ao,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))}));function Ao(e){return e.text}const _o=10;class Eo extends nr{constructor(){super(...arguments),this.state={titleId:at()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&sr(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=st(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,i=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return _e(A("div",Object.assign({},n.extraAttrs,{id:n.id,className:i.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),A("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},A("span",{className:"fc-popover-title",id:r.titleId},n.title),A("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),A("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=As(t);if(i){let s=r.getBoundingClientRect(),o=n?Ke(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,a=e?i.right-s.width:i.left;o=Math.max(o,_o),a=Math.min(a,document.documentElement.clientWidth-_o-s.width),a=Math.max(a,_o);let l=r.offsetParent.getBoundingClientRect();rt(r,{top:o-l.top,left:a-l.left})}}}class Co extends Cs{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:s}=n,o=t.format(r,e.dayPopoverFormat);return A(ho,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},((t,r,i)=>A(Eo,{elRef:i.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(i.className||[]),extraAttrs:i,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},po(e)&&A(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:i,props:s}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!0,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class wo extends nr{constructor(){super(...arguments),this.linkElRef=E(),this.state={isPopoverOpen:!1,popoverId:at()},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=So(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new ki(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof r&&(r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(s),hiddenSegs:t.hiddenSegs.map(s),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"===typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return A(Kn.Consumer,null,(n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,{moreCnt:a}=e,l=So(e),c="function"===typeof o?o.call(s,a):`+${a} ${o}`,d=At(i.moreLinkHint,[a],c),u={num:a,shortText:`+${a}`,text:c,view:r};return A(C,null,Boolean(e.moreCnt)&&A(dr,{elTag:e.elTag||"a",elRef:this.linkElRef,elClasses:[...e.elClasses||[],"fc-more-link"],elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),ut(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",generator:i.moreLinkContent||e.defaultGenerator||Do,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&A(Co,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkElRef.current,alignGridTop:e.alignGridTop,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkElRef.current&&(this.parentEl=Ke(this.linkElRef.current,".fc-view-harness"))}}function Do(e){return e.text}function So(e){if(e.allDayDate)return{start:e.allDayDate,end:Dt(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Ro(t),end:To(t)}}function Ro(e){return e.reduce(ko).eventRange.range.start}function ko(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function To(e){return e.reduce(xo).eventRange.range.end}function xo(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class Oo{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class Io extends Oo{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}var Mo=n(15941),No=':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-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.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::-moz-focus-inner{border-style:none;padding:0}.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)}';Ne(No);const Po=[],Bo={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"},Ho=Object.assign(Object.assign({},Bo),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return"day"===t?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${1===e?"":"s"}`}});function jo(e){let t=e.length>0?e[0].code:"en",n=Po.concat(e),r={en:Ho};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function zo(e,t){return"object"!==typeof e||Array.isArray(e)?Uo(e,t):Fo(e.code,[e.code],e)}function Uo(e,t){let n=[].concat(e||[]),r=Vo(n,t)||Ho;return Fo(e,n,r)}function Vo(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}function Fo(e,t,n){let r=He([Bo,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Wo(e){return{id:pt(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Lo(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){const e=t.name,s=n[e];void 0===s?(n[e]=t.id,i(t.deps),r=Go(r,t)):s!==t.id&&Mo.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}function Qo(){let e,t=[],n=[];return(r,i)=>(e&&Ye(r,t)&&Ye(i,n)||(e=Lo(r,i)),t=r,n=i,e)}function Go(e,t){return{premiumReleaseDate:Zo(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function Zo(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class qo extends mn{}function Yo(e,t){let n,r={};for(n in e)$o(n,r,e,t);for(n in t)$o(n,r,e,t);return r}function $o(e,t,n,r){if(t[e])return t[e];let i=Jo(e,t,n,r);return i&&(t[e]=i),i}function Jo(e,t,n,r){let i=n[e],s=r[e],o=e=>i&&null!==i[e]?i[e]:s&&null!==s[e]?s[e]:null,a=o("component"),l=o("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=$o(l,t,n,r)}return!a&&c&&(a=c.component),a?{type:e,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function Xo(e){return ze(e,Ko)}function Ko(e){let t="function"===typeof e?{component:e}:e,{component:n}=t;return t.content&&(n=ea(t)),{superType:t.type,component:n,rawOptions:t}}function ea(e){return t=>A(Kn.Consumer,null,(n=>A(dr,{elTag:"div",elClasses:pr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,generator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})))}function ta(e,t,n,r){let i=Xo(e),s=Xo(t.views),o=Yo(i,s);return ze(o,(e=>na(e,s,t,n,r)))}function na(e,t,n,r,i){let s=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,a="",l="",c={};if(s&&(o=ia(s),o)){let e=cn(o);a=e.unit,1===e.value&&(l=a,c=t[a]?t[a].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},u=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(Un)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(Un)}}qo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},qo.prototype.baseIconClass="fc-icon",qo.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"},qo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},qo.prototype.iconOverrideOption="buttonIcons",qo.prototype.iconOverrideCustomButtonOption="icon",qo.prototype.iconOverridePrefix="fc-icon-";let ra={};function ia(e){let t=JSON.stringify(e),n=ra[t];return void 0===n&&(n=Kt(e),ra[t]=n),n}function sa(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function oa(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function aa(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function la(e,t,n){let r=t?t.activeRange:null;return fa({},Aa(e,n),r,n)}function ca(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return fa(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return ha(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?pa(e,i,r):e;case"FETCH_EVENT_SOURCES":return ma(e,t.sourceIds?Ue(t.sourceIds):ya(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ba(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function da(e,t,n){let r=t?t.activeRange:null;return ma(e,ya(e,n),r,!0,n)}function ua(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function fa(e,t,n,r){let i={};for(let s of t)i[s.sourceId]=s;return n&&(i=pa(i,n,r)),Object.assign(Object.assign({},e),i)}function ha(e,t){return je(e,(e=>e.sourceId!==t))}function pa(e,t,n){return ma(e,je(e,(e=>ga(e,t,n))),t,!1,n)}function ga(e,t,n){return _a(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function ma(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=va(a,n,r,i):s[o]=a}return s}function va(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=pt();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(s,o,n.response)||o),e.success&&(o=e.success.call(s,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:o})}),(n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,n),o=!0),e.failure&&(e.failure(n),o=!0),o||Mo.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function ba(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function ya(e,t){return je(e,(e=>_a(e,t)))}function Aa(e,t){let n=si(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let s of r){let e=ii(s,t,n);e&&i.push(e)}return i}function _a(e,t){let n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function Ea(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Ca(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function wa(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Da(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Sa(e,t,n,r,i){let s=e.headerToolbar?Ra(e.headerToolbar,e,t,n,r,i):null,o=e.footerToolbar?Ra(e.footerToolbar,e,t,n,r,i):null;return{header:s,footer:o}}function Ra(e,t,n,r,i,s){let o={},a=[],l=!1;for(let c in e){let d=e[c],u=ka(d,t,n,r,i,s);o[c]=u.widgets,a.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function ka(e,t,n,r,i,s){let o="rtl"===t.direction,a=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},u=t.buttonHints||{},f=e?e.split(" "):[],h=[],p=!1,g=f.map((e=>e.split(",").map((e=>{if("title"===e)return p=!0,{buttonName:e};let n,f,g,m,v,b;if(n=a[e])g=e=>{n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),b=n.hint||n.text;else if(f=i[e]){h.push(e),g=()=>{s.changeView(e)},(v=f.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;b=At(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(g=()=>{s[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";b=At(d[t]||u[t],[c.year||"year","year"],c[e])}else b=t=>At(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:g,buttonIcon:m,buttonText:v,buttonHint:b}}))));return{widgets:g,viewsWithButtons:h,hasTitle:p}}class Ta{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let xa={ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}};const Oa=Wo({name:"array-event-source",eventSourceDefs:[xa]});let Ia={parseMeta(e){return"function"===typeof e.events?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,i=e.eventSource.meta;Ki(i.bind(null,$i(e.range,r)),(e=>t({rawEvents:e})),n)}};const Ma=Wo({name:"func-event-source",eventSourceDefs:[Ia]}),Na={method:String,extraParams:qn,startParam:String,endParam:String,timeZoneParam:String};let Pa={parseMeta(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch(e,t,n){const{meta:r}=e.eventSource,i=Ha(r,e.range,e.context);ts(r.method,r.url,i).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}};const Ba=Wo({name:"json-event-source",eventSourceRefiners:Na,eventSourceDefs:[Pa]});function Ha(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),i=e.endParam,null==i&&(i=l.endParam),s=e.timeZoneParam,null==s&&(s=l.timeZoneParam),o="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,o),c[r]=a.formatIso(t.start),c[i]=a.formatIso(t.end),"local"!==a.timeZone&&(c[s]=a.timeZone),c}const ja={daysOfWeek:qn,startTime:Kt,endTime:Kt,duration:Kt,startRecur:qn,endRecur:qn};let za={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,r={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=rn(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:r}}return null},expand(e,t,n){let r=br(t,{start:e.startRecur,end:e.endRecur});return r?Va(e.daysOfWeek,e.startTime,r,n):[]}};const Ua=Wo({name:"simple-recurring-event",recurringTypes:[za],eventRefiners:ja});function Va(e,t,n,r){let i=e?Ue(e):null,s=Pt(n.start),o=n.end,a=[];while(s<o){let e;i&&!i[s.getUTCDay()]||(e=t?r.add(s,t):s,a.push(e)),s=Dt(s,1)}return a}const Fa=Wo({name:"change-handler",optionChangeHandlers:{events(e,t){Wa([e],t)},eventSources:Wa}});function Wa(e,t){let n=Ve(t.getCurrentData().eventSources),r=[];for(let i of e){let e=!1;for(let t=0;t<n.length;t+=1)if(n[t]._raw===i){n.splice(t,1),e=!0;break}e||r.push(i)}for(let i of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)t.calendarApi.addEventSource(i)}function La(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},$i(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function Qa(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",xi(e,t))}const Ga=[Oa,Ma,Ba,Ua,Fa,Wo({name:"misc",isLoadingFuncs:[e=>ua(e.eventSources)],propSetHandlers:{dateProfile:La,eventStore:Qa}})];class Za{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Pe(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;while(e.length){let t,n=[];while(t=e.shift())this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function qa(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,jn(t.titleFormat||Ya(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Ya(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=Nt(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class $a{constructor(e){this.computeOptionsData=$e(this._computeOptionsData),this.computeCurrentViewData=$e(this._computeCurrentViewData),this.organizeRawLocales=$e(jo),this.buildLocale=$e(zo),this.buildPluginHooks=Qo(),this.buildDateEnv=$e(Ja),this.buildTheme=$e(Xa),this.parseToolbars=$e(Sa),this.buildViewSpecs=$e(ta),this.buildDateProfileGenerator=Je(Ka),this.buildViewApi=$e(el),this.buildViewUiProps=Je(rl),this.buildEventUiBySource=$e(tl,Fe),this.buildEventUiBases=$e(nl),this.parseContextBusinessHours=Je(sl),this.buildTitle=$e(qa),this.emitter=new pi,this.actionRunner=new Za(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let s=Sr(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);Ar(o.activeRange,s)||(s=o.currentRange.start);let a={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let u of n.pluginHooks.contextInit)u(a);let l=la(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:Gr(),renderableEventStore:Gr(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let u of n.pluginHooks.reducers)Object.assign(c,u(null,null,d));il(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;n.optionOverrides=t?Object.assign(Object.assign({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=oa(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=sa(n.currentViewType,e),a=this.computeCurrentViewData(o,s,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(a.options);let l={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(d=a.dateProfileGenerator.build(c)),c=Dr(c,e),d=aa(d,e,c,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ar(d.currentRange,c)||(c=d.currentRange.start);let u=ca(n.eventSources,e,d,l),f=ai(n.eventStore,e,u,d,l),h=ua(u),p=h&&!a.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:g,selectionConfig:m}=this.buildViewUiProps(l),v=this.buildEventUiBySource(u),b=this.buildEventUiBases(p.defs,g,v),y={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:d,eventSources:u,eventStore:f,renderableEventStore:p,selectionConfig:m,eventUiBases:b,businessHours:this.parseContextBusinessHours(l),dateSelection:Ea(n.dateSelection,e),eventSelection:Ca(n.eventSelection,e),eventDrag:wa(n.eventDrag,e),eventResize:Da(n.eventResize,e)},A=Object.assign(Object.assign({},l),y);for(let C of s.pluginHooks.reducers)Object.assign(y,C(n,e,A));let _=il(n,l),E=il(y,l);!_&&E?r.trigger("loading",!0):_&&!E&&r.trigger("loading",!1),this.state=y,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),o=r.pluginHooks.optionChangeHandlers,a=n&&n.calendarOptions,l=r.calendarOptions;if(a&&a!==l){a.timeZone!==l.timeZone&&(t.eventSources=s.eventSources=da(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=fi(s.eventStore,n.dateEnv,s.dateEnv));for(let e in o)a[e]!==l[e]&&o[e](l[e],s)}e.onData&&e.onData(s)}_computeOptionsData(e,t,n){let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,t);ol(a);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,e,t,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,e,d,c,n);return{calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Gn([Un,e,t]),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],Ga),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn),Vn),Fn),a.listenerRefiners),a.optionRefiners),c={},d=Gn([Un,o,e,t]),u={},f=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,p=!1;for(let g in d)"plugins"!==g&&(d[g]===f[g]||Wn[g]&&g in f&&Wn[g](f[g],d[g])?u[g]=h[g]:l[g]?(u[g]=l[g](d[g]),p=!0):c[g]=f[g]);return p&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o,extra:c}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:o}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);ol(o);let a=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,monthMode:s.monthMode,fixedWeekCount:s.fixedWeekCount}),l=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:i,options:s,dateProfileGenerator:a,viewApi:l}}processRawViewOptions(e,t,n,r,i){let s=Gn([Un,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn),Vn),Fn),Qn),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let f in s)s[f]===l[f]||Wn[f]&&Wn[f](s[f],l[f])?a[f]=c[f]:(s[f]===this.currentCalendarOptionsInput[f]||Wn[f]&&Wn[f](s[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(a[f]=this.currentCalendarOptionsRefined[f]):o[f]?a[f]=o[f](s[f]):u[f]=s[f],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function Ja(e,t,n,r,i,s,o,a){let l=zo(t||o.defaultCode,o.map);return new gn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Xa(e,t){let n=t.themeClasses[e.themeSystem]||qo;return new n(e)}function Ka(e){let t=e.dateProfileGeneratorClass||kr;return new t(e)}function el(e,t,n){return new Ta(e,t,n)}function tl(e){return ze(e,(e=>e.ui))}function nl(e,t,n){let r={"":t};for(let i in e){let t=e[i];t.sourceId&&n[t.sourceId]&&(r[i]=n[t.sourceId])}return r}function rl(e){let{options:t}=e;return{eventUiSingleBase:ei({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"===typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:ei({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function il(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function sl(e){return bi(e.options.businessHours,e)}function ol(e,t){for(let n in e)Mo.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class al extends nr{render(){let e=this.props.widgetGroups.map((e=>this.renderWidgetGroup(e)));return A("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let s of e){let{buttonName:e,buttonClick:o,buttonText:a,buttonIcon:l,buttonHint:c}=s;if("title"===e)i=!1,r.push(A("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let i=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];i&&d.push(n.getClass("buttonActive")),r.push(A("button",{type:"button",title:"function"===typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":i,className:d.join(" "),onClick:o},a||(l?A("span",{className:l}):"")))}}if(r.length>1){let e=i&&n.getClass("buttonGroup")||"";return A("div",{className:e},...r)}return r[0]}}class ll extends nr{render(){let e,t,{model:n,extraClassName:r}=this.props,i=!1,s=n.sectionWidgets,o=s.center;s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end;let a=[r||"","fc-toolbar",i?"fc-toolbar-ltr":""];return A("div",{className:a.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return A(al,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class cl extends nr{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,sr(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return n?null!==t.availableWidth?i=t.availableWidth/n:s=1/n*100+"%":i=e.height||"",A("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class dl extends os{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=Mi(t);if(i&&n.isValidSegDownEl(e.target)){let s=Ke(e.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new ki(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=ct(e.el,"click",".fc-event",this.handleSegClick)}}class ul extends os{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Mi(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=dt(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=Mi(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new ki(i,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi})}}class fl extends tr{constructor(){super(...arguments),this.buildViewContext=$e(er),this.buildViewPropTransformers=$e(pl),this.buildToolbarProps=$e(hl),this.headerRef=E(),this.footerRef=E(),this.interactionsStore={},this.state={viewLabelId:at()},this.registerInteractiveComponent=(e,t)=>{let n=as(e,t),r=[dl,ul],i=r.concat(this.props.pluginHooks.componentInteractions),s=i.map((e=>new e(n)));this.interactionsStore[e.uid]=s,ls[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete ls[e.uid]},this.resizeRunner=new Pe((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Rr(t.options.now,t.dateEnv),t.viewTitle),s=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?s=!0:null!=r.contentHeight?o=r.contentHeight:e=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return A(Kn.Provider,{value:a},n.header&&A(ll,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),A(cl,{liquid:s,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&A(ll,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map((t=>t(e)));return A(C,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let o of i)Object.assign(r,o.transform(r,e));let s=n.component;return A(s,Object.assign({},r))}}function hl(e,t,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!Ar(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function pl(e){return e.map((e=>new e))}class gl extends cs{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;Yn((()=>{L(A(ss,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,i)=>(this.setClassNames(t),this.setHeight(n),A(cr.Provider,{value:this.customContentRenderId},A(fl,Object.assign({isHeightAuto:r,forPrint:i},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,L(null,this.el),this.setClassNames([]),this.setHeight(""))},this.el=e,this.renderRunner=new Pe(this.handleRenderRequest),new $a({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Yn((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!Ye(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){it(this.el,"height",e)}}const ml={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};function vl(e){return"object"===typeof e&&(Array.isArray(e)?e=Array.prototype.slice.call(e):e&&(e={...e})),e}const bl=(0,r.aZ)({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return Al(this).calendar},buildOptions(e){return{...e,customRenderingMetaMap:this.$slots,handleCustomRendering:Al(this).handleCustomRendering}}},render(){const e=[];for(const t of this.customRenderingMap.values())e.push((0,r.h)(r.lR,{key:t.id,to:t.containerEl},t.generatorMeta(t.renderProps)));return(0,r.h)("div",{attrs:{"data-fc-render-id":this.renderId}},(0,r.h)(r.HY,e))},mounted(){const e=new Io;Al(this).handleCustomRendering=e.handle.bind(e);const t=this.buildOptions(this.options),n=new gl(this.$el,t);Al(this).calendar=n,n.render(),e.subscribe((e=>{this.customRenderingMap=e,this.renderId++,Al(this).needCustomRenderingResize=!0}))},beforeUpdate(){this.getApi().resumeRendering()},updated(){Al(this).needCustomRenderingResize&&(Al(this).needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:_l()});var yl=bl;function Al(e){return e}function _l(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let t in ml)e[`options.${t}`]={deep:!0,handler(e){if(void 0!==e){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:vl(e)},!0),this.renderId++}}};return e}var El=yl;class Cl extends Cs{constructor(){super(...arguments),this.headerElRef=E()}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],s=io(r.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),A(hr,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},A(oo,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:s,context:o}=this,a=!s.forPrint&&io(o.options),l=!s.forPrint&&so(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:ro}]}),A(hr,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},A(i,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function wl(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function Dl(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function Sl(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const Rl=jn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function kl(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class Tl extends nr{render(){let{props:e}=this;return A(co,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Rl,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class xl extends nr{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,i=n.eventTimeFormat||Rl,s=Vi(r,i,t,!0,e.defaultDisplayEventEnd);return A(lo,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Qi(e.seg,t),defaultGenerator:Ol,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function Ol(e){return A(C,null,A("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&A("div",{className:"fc-event-time"},e.timeText),A("div",{className:"fc-event-title"},e.event.title||A(C,null," ")))}class Il extends nr{constructor(){super(...arguments),this.compileSegs=$e(Ml)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return A(wo,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return A(C,null,t.map((t=>{let r=t.eventRange.instance.instanceId;return A("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},kl(t)?A(xl,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Fi(t,e.todayRange))):A(Tl,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Fi(t,e.todayRange))))})))}})}}function Ml(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const Nl=jn({week:"narrow"});class Pl extends Cs{constructor(){super(...arguments),this.rootElRef=E(),this.state={dayNumberId:at()},this.handleRootEl=e=>{sr(this.rootElRef,e),sr(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i}=e,{date:s,dateProfile:o}=t;return A(ho,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Bl,date:s,dateProfile:o,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps},((o,a)=>A("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&A(yo,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:gs(e,s,"week"),date:s,defaultFormat:Nl}),Boolean(!a.isDisabled&&(t.showDayNumber||po(i)||t.forceDayTop))&&A("div",{className:"fc-daygrid-day-top"},A(o,{elTag:"a",elClasses:["fc-daygrid-day-number"],elAttrs:Object.assign(Object.assign({},gs(e,s)),{id:n.dayNumberId})})),A("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,A("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},A(Il,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),A("div",{className:"fc-daygrid-day-bg"},t.bgContent))))}}function Bl(e){return e.dayNumberText||A(C,null," ")}function Hl(e,t,n,r,i,s,o){let a=new Vl;a.allowReslicing=!0,a.strictOrder=r,!0===t||!0===n?(a.maxCoord=s,a.hiddenConsumes=!0):"number"===typeof t?a.maxStackCnt=t:"number"===typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let v=0;v<e.length;v+=1){let t=e[v],{instanceId:n}=t.eventRange.instance,r=i[n];null!=r?l.push({index:v,thickness:r,span:{start:t.firstCol,end:t.lastCol+1}}):c.push(t)}let d=a.addSegs(l),u=a.toRects(),{singleColPlacements:f,multiColPlacements:h,leftoverMargins:p}=jl(u,e,o),g=[],m=[];for(let v of c){h[v.firstCol].push({seg:v,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=v.firstCol;e<=v.lastCol;e+=1)f[e].push({seg:Ul(v,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let v=0;v<o.length;v+=1)g.push(0);for(let v of d){let t=e[v.index],n=v.span;h[n.start].push({seg:Ul(t,n.start,n.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=n.start;e<n.end;e+=1)g[e]+=1,f[e].push({seg:Ul(t,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let v=0;v<o.length;v+=1)m.push(p[v]);return{singleColPlacements:f,multiColPlacements:h,moreCnts:g,moreMarginTops:m}}function jl(e,t,n){let r=zl(e,n.length),i=[],s=[],o=[];for(let a=0;a<n.length;a+=1){let e=r[a],l=[],c=0,d=0;for(let r of e){let e=t[r.index];l.push({seg:Ul(e,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let u=[];c=0,d=0;for(let r of e){let e=t[r.index],i=r.span.end-r.span.start>1,s=r.span.start===a;d+=r.levelCoord-c,c=r.levelCoord+r.thickness,i?(d+=r.thickness,s&&u.push({seg:Ul(e,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):s&&(u.push({seg:Ul(e,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:d}),d=0)}i.push(l),s.push(u),o.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:o}}function zl(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let e=r.span.start;e<r.span.end;e+=1)n[e].push(r);return n}function Ul(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,s=i.range,o=br(s,{start:r[t].date,end:Dt(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf()})}class Vl extends ws{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[Ss(e)];for(let i=0;i<n.length;i+=1)n[i]=n[i].filter(r);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:r,forceHidden:i}=this,{touchingEntry:s,touchingLevel:o,touchingLateral:a}=e;if(this.hiddenConsumes&&s){const e=Ss(s);if(!i[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},s),{span:Rs(s.span,t.span)}),l=Ss(e);i[l]=!0,r[o][a]=e,this.splitEntry(s,t,n)}else i[e]=!0,n.push(s)}return super.handleInvalidInsertion(e,t,n)}}class Fl extends Cs{constructor(){super(...arguments),this.cellElRefs=new Gs,this.frameElRefs=new Gs,this.fgElRefs=new Gs,this.segHarnessRefs=new Gs,this.rootElRef=E(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,s=Dl(e.businessHourSegs,i),o=Dl(e.bgEventSegs,i),a=Dl(this.getHighlightSegs(),i),l=Dl(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:f}=Hl(Bi(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.eventInstanceHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return A("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map(((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:d[n],e.todayRange,h),i=this.renderFgSegs(n,Wl(l[n],d),e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return A(Pl,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:f[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:A(C,null,A(C,null,r),A(C,null,i)),bgContent:A(C,null,this.renderFillSegs(a[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event"))})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Fe(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,i,s,o){let{context:a}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,d=1===this.props.cells.length,u=i||s||o,f=[];if(c)for(let h of t){let{seg:t}=h,{instanceId:p}=t.eventRange.instance,g=p+":"+e,m=h.isVisible&&!r[p],v=h.isAbsolute,b="",y="";v&&(a.isRtl?(y=0,b=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(b=0,y=c.rights[t.firstCol]-c.rights[t.lastCol])),f.push(A("div",{className:"fc-daygrid-event-harness"+(v?" fc-daygrid-event-harness-abs":""),key:g,ref:u?null:this.segHarnessRefs.createRef(g),style:{visibility:m?"":"hidden",marginTop:v?"":h.marginTop,top:v?h.absoluteTop:"",left:b,right:y}},kl(t)?A(xl,Object.assign({seg:t,isDragging:i,isSelected:p===l,defaultDisplayEventEnd:d},Fi(t,n))):A(Tl,Object.assign({seg:t,isDragging:i,isResizing:s,isDateSelecting:o,isSelected:p===l,defaultDisplayEventEnd:d},Fi(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let o of e){let e=n?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};s.push(A("div",{key:Li(o.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?A(mo,Object.assign({seg:o},Fi(o,r))):bo(t)))}return A(C,{},...s)}updateSizing(e){let{props:t,frameElRefs:n}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map((e=>n.currentMap[e.key]));if(e.length){let t=this.rootElRef.current;this.setState({framePositions:new Es(t,e,!0,!1)})}}const r=this.state.eventInstanceHeights,i=this.queryEventInstanceHeights(),s=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},r),i),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height),i=n.split(":")[0];t[i]=Math.max(t[i]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map((t=>e[t.key]))}}function Wl(e,t){if(!e.length)return[];let n=Ll(t);return e.map((e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0})))}function Ll(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}Fl.addStateEquality({eventInstanceHeights:Fe});class Ql extends Cs{constructor(){super(...arguments),this.splitBusinessHourSegs=$e(wl),this.splitBgEventSegs=$e(wl),this.splitFgEventSegs=$e(wl),this.splitDateSelectionSegs=$e(wl),this.splitEventDrag=$e(Sl),this.splitEventResize=$e(Sl),this.rowRefs=new Gs,this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e}=this,{dateProfile:t,dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=e.cells.length,o=this.splitBusinessHourSegs(e.businessHourSegs,s),a=this.splitBgEventSegs(e.bgEventSegs,s),l=this.splitFgEventSegs(e.fgEventSegs,s),c=this.splitDateSelectionSegs(e.dateSelectionSegs,s),d=this.splitEventDrag(e.eventDrag,s),u=this.splitEventResize(e.eventResize,s),f=!0===r||!0===n;f&&!i&&(f=!1,n=null,r=null);let h=["fc-daygrid-body",f?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return A("div",{className:h.join(" "),ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},A(Bs,{unit:"day"},((f,h)=>A(C,null,A("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,A("tbody",{role:"presentation"},e.cells.map(((i,f)=>A(Fl,{ref:this.rowRefs.createRef(f),key:i.length?i[0].date.toISOString():f,showDayNumbers:s>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:t,cells:i,renderIntro:e.renderRowIntro,businessHourSegs:o[f],eventSelection:e.eventSelection,bgEventSegs:a[f].filter(Gl),fgEventSegs:l[f],dateSelectionSegs:c[f],eventDrag:d[f],eventResize:u[f],dayMaxEvents:r,dayMaxEventRows:n,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint})))))))))}prepareHits(){this.rowPositions=new Es(this.rootEl,this.rowRefs.collect().map((e=>e.getCellEls()[0])),!1,!0),this.colPositions=new Es(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),s=r.topToIndex(t);if(null!=s&&null!=i){let e=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[s],bottom:r.bottoms[s]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,r=Dt(n,1);return{start:n,end:r}}}function Gl(e){return e.eventRange.def.allDay}class Zl extends Fs{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class ql extends Cs{constructor(){super(...arguments),this.slicer=new Zl,this.tableRef=E()}render(){let{props:e,context:t}=this;return A(Ql,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Yl extends Cl{constructor(){super(...arguments),this.buildDayTableModel=$e($l),this.headerRef=E(),this.tableRef=E()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&A(js,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),s=t=>A(ql,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}}function $l(e,t){let n=new Us(e.renderRange,t);return new Vs(n,/year|month|week/.test(e.currentRangeUnit))}class Jl extends kr{buildRenderRange(e,t,n){let r,{dateEnv:i}=this.props,s=super.buildRenderRange(e,t,n),o=s.start,a=s.end;if(/^(year|month)$/.test(t)&&(o=i.startOfWeek(o),r=i.startOfWeek(a),r.valueOf()!==a.valueOf()&&(a=wt(r,1))),this.props.monthMode&&this.props.fixedWeekCount){let e=Math.ceil(Rt(o,a));a=wt(a,6-e)}return{start:o,end:a}}}var Xl=':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-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;padding:2px 3px 0}.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{cursor:pointer;position:relative;z-index:4}.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-week-number{border-radius:0 0 3px 0;left:0}.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}';Ne(Xl);var Kl=Wo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Yl,dateProfileGeneratorClass:Jl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),ec={emits:["open-detail"],components:{VFullCalendar:El},props:{events:{required:!0},month:{required:!0},year:{required:!0}},computed:{calendarOptions(){return{plugins:[Kl],initialView:"dayGridMonth",headerToolbar:!1,locale:"sk",height:650,firstDay:1,dayHeaderClassNames:["w-day-header"],events:this.events,eventContent:e=>({html:e.event.extendedProps.title_html}),eventClick:e=>this.$emit("open-detail",e.event._def.publicId)}}},mounted(){const e="string"==typeof this.month?parseInt(this.month)-1:this.month-1;this.calendarOptions.events=this.events,this.$refs.fullCalendar?.getApi().gotoDate(new Date(this.year,e,1))},watch:{month(e){this.$refs.fullCalendar?.getApi().gotoDate(new Date(this.year,e,1))},year(e){this.$refs.fullCalendar?.getApi().gotoDate(new Date(e,this.month,1))}}},tc=n(40089);const nc=(0,tc.Z)(ec,[["render",a],["__scopeId","data-v-41d277ae"]]);var rc=nc,ic=n(60988),sc=n(16824),oc=n(10240),ac=n(86193),lc=n(49114),cc=n(13173),dc=n(16791),uc=n(84870),fc=n(8717),hc=n(44870),pc=n(80320),gc=n(17514),mc=n(89888),vc=n(131);const bc=(0,pc.a)({name:"VSwitch",inheritAttrs:!1,props:{indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...(0,lc.co)(),...(0,ac.$9)()},emits:{"update:focused":e=>!0,"update:modelValue":()=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const s=(0,fc.z)(e,"indeterminate"),o=(0,fc.z)(e,"modelValue"),{loaderClasses:a}=(0,dc.U2)(e),{isFocused:l,focus:c,blur:d}=(0,uc.K)(e),u=(0,r.Fl)((()=>"string"===typeof e.loading&&""!==e.loading?e.loading:e.color)),f=(0,gc.sq)(),h=(0,r.Fl)((()=>e.id||`switch-${f}`));function p(){s.value&&(s.value=!1)}return(0,mc.L)((()=>{const[t,f]=(0,vc.An)(n),[g,m]=(0,lc.PE)(e),[v,b]=(0,ac.fU)(e),y=(0,hc.iH)();function A(){var e,t;null==(e=y.value)||null==(t=e.input)||t.click()}return(0,r.Wm)(lc.q8,(0,r.dG)({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":s.value},a.value]},t,g,{id:h.value,focused:l.value}),{...i,default:t=>{let{id:n,isDisabled:a,isReadonly:l,isValid:h}=t;return(0,r.Wm)(ac.g5,(0,r.dG)({ref:y},v,{modelValue:o.value,"onUpdate:modelValue":[e=>o.value=e,p],id:n.value,type:"checkbox","aria-checked":s.value?"mixed":void 0,disabled:a.value,readonly:l.value,onFocus:c,onBlur:d},f),{...i,default:()=>(0,r.Wm)("div",{class:"v-switch__track",onClick:A},null),input:t=>{let{textColorClasses:n,textColorStyles:s}=t;return(0,r.Wm)("div",{class:["v-switch__thumb",n.value],style:s.value},[e.loading&&(0,r.Wm)(dc.rD,{name:"v-switch",active:!0,color:!1===h.value?void 0:u.value},{default:e=>i.loader?i.loader(e):(0,r.Wm)(cc.L,{active:e.isActive,color:e.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})})),{}}}),yc=e=>((0,r.dD)("data-v-131adb64"),e=e(),(0,r.Cn)(),e),Ac={class:"subheader-input switch"},_c=yc((()=>(0,r._)("p",{class:"switch-label"},"Zobraziť ukončené",-1)));function Ec(e,t,n,i,s,o){return(0,r.wg)(),(0,r.j4)(sc.o,{class:"px-10 py-8 subheader"},{default:(0,r.w5)((()=>[(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.projectId,"onUpdate:modelValue":t[0]||(t[0]=e=>s.filter.projectId=e),class:"subheader-input","no-data-text":"reset",items:[{id:null,code:""},...o.projectsOptions],"item-title":"code","item-value":"id",label:"Projekt",variant:"outlined","onUpdate:search":t[1]||(t[1]=e=>s.projectCodeSearch=e)},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.teamId,"onUpdate:modelValue":t[2]||(t[2]=e=>s.filter.teamId=e),class:"subheader-input",items:[{id:null,name:""},...e.teams],"item-title":"name","item-value":"id",label:"Tím",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.employeeId,"onUpdate:modelValue":t[3]||(t[3]=e=>s.filter.employeeId=e),class:"subheader-input",items:[{id:null,_fullName:""},...e.enrichedEmployees],"item-title":"_fullName","item-value":"id",label:"Zamestnanec",variant:"outlined"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(ic.f,{"custom-filter":e.customFilter,"match-any":!0,modelValue:s.filter.createdById,"onUpdate:modelValue":t[4]||(t[4]=e=>s.filter.createdById=e),class:"subheader-input",items:[{id:null,_fullName:""},...e.enrichedEmployees],label:"Vytvoril",variant:"outlined","item-title":"_fullName","item-value":"id"},null,8,["custom-filter","modelValue","items"]),(0,r.Wm)(oc.r,{modelValue:s.filter.month,"onUpdate:modelValue":t[5]||(t[5]=e=>s.filter.month=e),class:"subheader-input",items:s.months,label:"Mesiac",variant:"outlined"},null,8,["modelValue","items"]),(0,r.Wm)(oc.r,{modelValue:s.filter.year,"onUpdate:modelValue":t[6]||(t[6]=e=>s.filter.year=e),class:"subheader-input",items:o.years,label:"Rok",variant:"outlined"},null,8,["modelValue","items"]),(0,r._)("div",Ac,[_c,(0,r.Wm)(bc,{modelValue:s.filter.isFinished,"onUpdate:modelValue":t[7]||(t[7]=e=>s.filter.isFinished=e),color:"#6200EE","hide-details":""},null,8,["modelValue"])])])),_:1})}var Cc=n(83299),wc=n(20065),Dc={mixins:[Cc.Z],emits:["filterChanged"],data(){return{months:[{title:"Január",value:"01"},{title:"Február",value:"02"},{title:"Marec",value:"03"},{title:"Apríl",value:"04"},{title:"Máj",value:"05"},{title:"Jún",value:"06"},{title:"Júl",value:"07"},{title:"August",value:"08"},{title:"September",value:"09"},{title:"Október",value:"10"},{title:"November",value:"11"},{title:"December",value:"12"}],projectCodeSearch:null,filter:{projectId:null,teamId:null,employeeId:null,createdById:null,month:null,year:(new Date).getFullYear(),isFinished:!1}}},mounted(){const e=(new Date).getMonth();this.filter.month=e<9?`0${e+1}`:`${e+1}`;const t=localStorage.getItem("savedTeamMT"),n=localStorage.getItem("savedCreatedBy"),r=localStorage.getItem("savedEmployee");t&&(this.filter.teamId=JSON.parse(t)),n&&(this.filter.createdById=JSON.parse(n)),r&&(this.filter.employeeId=JSON.parse(r))},computed:{...(0,wc.Se)("tm",["teams","projects","enrichedEmployees"]),projectsOptions(){const e=/[^a-zA-Z0-9 ]/g,t=this.projectCodeSearch?this.projectCodeSearch.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,""):"",n=this.projects.filter((n=>{const r=n.code.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(e,"");return r.toLowerCase().includes(t.toLowerCase())}));return n?.length?n.slice(0,10):this.projects.slice(0,10)},years(){const e=[],t=(new Date).getFullYear();for(let n=0;n<100;n++)e.push({title:t-n,value:t-n});return e}},watch:{filter:{handler(){this.$emit("filterChanged",this.filter),localStorage.setItem("savedTeamMT",this.filter.teamId),localStorage.setItem("savedCreatedBy",this.filter.createdById),localStorage.setItem("savedEmployee",this.filter.employeeId)},deep:!0}}};const Sc=(0,tc.Z)(Dc,[["render",Ec],["__scopeId","data-v-131adb64"]]);var Rc=Sc,kc=n(70026),Tc={mixins:[kc.Z],components:{AProjectCalendar:rc,AProjectFilter:Rc},data(){return{mastertasks:null,filter:null}},computed:{filteredProjects(){return this.mastertasks?this.mastertasks.map((e=>({id:e.id,title:`${e.project_code} - ${e.name}`,title_html:`${e.project_code} - <b>${e.name}</b>`,start:new Date(e.starts_at),end:new Date(e.deadline),is_finished:e.is_finished,project_code:e.project_code,backgroundColor:`${e.color}`,borderColor:e.color}))):null}},mounted(){this.$events.on("on-mastertask-edited",(()=>this.onFilterChanged(this.filter))),this.$events.on("on-mastertask-deleted",(()=>this.onFilterChanged(this.filter)))},unmounted(){this.$events.off("on-mastertask-edited"),this.$events.off("on-mastertask-deleted")},methods:{async onFilterChanged(e){this.mastertasks=null,this.filter=e;const t={};e.employeeId&&(t.employee_id=e.employeeId),e.projectId&&(t.project_id=e.projectId),e.teamId&&(t.team_id=e.teamId),e.createdById&&(t.created_by=e.createdById),e.isFinished&&(t.is_finished=e.isFinished?1:0),e.month&&(t.month=e.month),e.year&&(t.year=e.year);const n=new URLSearchParams(t).toString();try{const{mastertasks:e}=await this.$axios.get_auth(`v1/mastertasks?${n}`);this.mastertasks=e}catch(r){this.$toast.error("Nepodarilo sa nacitat data!")}setTimeout((()=>{this._initScrollListener()}),100)},openMasterTaskModal(e){const t=this.mastertasks.find((t=>t.id==e));this.$events.emit("show-mastertask-modal",{mastertask:t,editMode:!1})}}};const xc=(0,tc.Z)(Tc,[["render",s],["__scopeId","data-v-affe3dca"]]);var Oc=xc}}]);
|
||
//# sourceMappingURL=8170.57efbdde.js.map
|