fullcalendar 7.0.0-beta.0 → 7.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- FullCalendar Standard Bundle v7.0.0-beta.0
2
+ FullCalendar Standard Bundle v7.0.0-beta.3
3
3
  Docs & License: https://fullcalendar.io/docs/initialize-globals
4
4
  (c) 2024 Adam Shaw
5
5
  */
6
- var FullCalendar=function(e){"use strict";var t,n,r,i,s,o,a,l,c,d,u,h,f={},g=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function v(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 b(e,n,r){var i,s,o,a={};for(o in n)"key"==o?i=n[o]:"ref"==o?s=n[o]:a[o]=n[o];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return S(e,a,i,s,null)}function S(e,t,i,s,o){var a={type:e,props:t,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++r:o,__i:-1,__u:0};return null==o&&null!=n.vnode&&n.vnode(a),a}function E(){return{current:null}}function D(e){return e.children}function w(e,t){this.props=e,this.context=t}function A(e,t){if(null==t)return e.__?A(e.__,e.__i+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?A(e):null}function R(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 R(e)}}function C(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!x.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||a)(x)}function x(){var e,t,r,i,o,a,c,d;for(s.sort(l);e=s.shift();)e.__d&&(t=s.length,i=void 0,a=(o=(r=e).__v).__e,c=[],d=[],r.__P&&((i=v({},o)).__v=o.__v+1,n.vnode&&n.vnode(i),P(r.__P,i,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,c,null==a?A(o):a,!!(32&o.__u),d),i.__v=o.__v,i.__.__k[i.__i]=i,B(c,i,d),i.__e!=a&&R(i)),s.length>t&&s.sort(l));x.__r=0}function _(e,t,n,r,i,s,o,a,l,c,d){var u,h,p,m,v,y=r&&r.__k||g,b=t.length;for(n.__d=l,T(n,t,y),l=n.__d,u=0;u<b;u++)null!=(p=n.__k[u])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?f:y[p.__i]||f,p.__i=u,P(e,p,h,i,s,o,a,l,c,d),m=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&W(h.ref,null,p),d.push(p.ref,p.__c||m,p)),null==v&&null!=m&&(v=m),65536&p.__u||h.__k===p.__k?l=M(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:m&&(l=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=v}function T(e,t,n){var r,i,s,o,a,l=t.length,c=n.length,d=c,u=0;for(e.__k=[],r=0;r<l;r++)o=r+u,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?S(null,i,null,null,null):m(i)?S(D,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?S(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=I(i,n,o,d),i.__i=a,s=null,-1!==a&&(d--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&u--,"function"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a==o-1?u=a-o:a==o+1?u++:a>o?d>l-o?u+=a-o:u--:a<o&&u++,a!==r+u&&(i.__u|=65536))):(s=n[o])&&null==s.key&&s.__e&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=A(s)),L(s,s,!1),n[o]=null,d--);if(d)for(r=0;r<c;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=A(s)),L(s,s))}function M(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=M(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=A(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function k(e,t){return t=t||[],null==e||"boolean"==typeof e||(m(e)?e.some((function(e){k(e,t)})):t.push(e)),t}function I(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,l=t[n];if(null===l||l&&i==l.key&&s===l.type&&0==(131072&l.__u))return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function H(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function O(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||H(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||H(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=c,e.addEventListener(t,s?u:d,s)):e.removeEventListener(t,s?u:d,s);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function N(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=c++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function P(e,t,r,i,s,o,a,l,c,d){var u,h,f,g,p,y,b,S,E,A,R,C,x,T,M,k,I=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),o=[l=t.__e=r.__e]),(u=n.__b)&&u(t);e:if("function"==typeof I)try{if(S=t.props,E="prototype"in I&&I.prototype.render,A=(u=I.contextType)&&i[u.__c],R=u?A?A.props.value:u.__:i,r.__c?b=(h=t.__c=r.__c).__=h.__E:(E?t.__c=h=new I(S,R):(t.__c=h=new w(S,R),h.constructor=I,h.render=U),A&&A.sub(h),h.props=S,h.state||(h.state={}),h.context=R,h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),E&&null==h.__s&&(h.__s=h.state),E&&null!=I.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=v({},h.__s)),v(h.__s,I.getDerivedStateFromProps(S,h.__s))),g=h.props,p=h.state,h.__v=t,f)E&&null==I.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),E&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(E&&null==I.getDerivedStateFromProps&&S!==g&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(S,R),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(S,h.__s,R)||t.__v===r.__v)){for(t.__v!==r.__v&&(h.props=S,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(S,h.__s,R),E&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(g,p,y)}))}if(h.context=R,h.props=S,h.__P=e,h.__e=!1,x=n.__r,T=0,E){for(h.state=h.__s,h.__d=!1,x&&x(t),u=h.render(h.props,h.state,h.context),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[]}else do{h.__d=!1,x&&x(t),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++T<25);h.state=h.__s,null!=h.getChildContext&&(i=v(v({},i),h.getChildContext())),E&&!f&&null!=h.getSnapshotBeforeUpdate&&(y=h.getSnapshotBeforeUpdate(g,p)),_(e,m(k=null!=u&&u.type===D&&null==u.key?u.props.children:u)?k:[k],t,r,i,s,o,a,l,c,d),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),b&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=o){for(t.__u|=c?160:32;l&&8===l.nodeType&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,t.__e=l}else t.__e=r.__e,t.__k=r.__k;n.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=j(r.__e,t,r,i,s,o,a,c,d);(u=n.diffed)&&u(t)}function B(e,t,r){t.__d=void 0;for(var i=0;i<r.length;i++)W(r[i],r[++i],r[++i]);n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function j(e,n,r,i,s,o,a,l,c){var d,u,h,g,p,v,b,S=r.props,E=n.props,D=n.type;if("svg"===D?s="http://www.w3.org/2000/svg":"math"===D?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=o)for(d=0;d<o.length;d++)if((p=o[d])&&"setAttribute"in p==!!D&&(D?p.localName===D:3===p.nodeType)){e=p,o[d]=null;break}if(null==e){if(null===D)return document.createTextNode(E);e=document.createElementNS(s,D,E.is&&E),o=null,l=!1}if(null===D)S===E||l&&e.data===E||(e.data=E);else{if(o=o&&t.call(e.childNodes),S=r.props||f,!l&&null!=o)for(S={},d=0;d<e.attributes.length;d++)S[(p=e.attributes[d]).name]=p.value;for(d in S)if(p=S[d],"children"==d);else if("dangerouslySetInnerHTML"==d)h=p;else if("key"!==d&&!(d in E)){if("value"==d&&"defaultValue"in E||"checked"==d&&"defaultChecked"in E)continue;O(e,d,null,p,s)}for(d in E)p=E[d],"children"==d?g=p:"dangerouslySetInnerHTML"==d?u=p:"value"==d?v=p:"checked"==d?b=p:"key"===d||l&&"function"!=typeof p||S[d]===p||O(e,d,p,S[d],s);if(u)l||h&&(u.__html===h.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),n.__k=[];else if(h&&(e.innerHTML=""),_(e,m(g)?g:[g],n,r,i,"foreignObject"===D?"http://www.w3.org/1999/xhtml":s,o,a,o?o[0]:r.__k&&A(r,0),l,c),null!=o)for(d=o.length;d--;)null!=o[d]&&y(o[d]);l||(d="value",void 0!==v&&(v!==e[d]||"progress"===D&&!v||"option"===D&&v!==S[d])&&O(e,d,v,S[d],s),d="checked",void 0!==b&&b!==e[d]&&O(e,d,b,S[d],s))}return e}function W(e,t,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function L(e,t,r){var i,s;if(n.unmount&&n.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||W(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){n.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&L(i[s],t,r||"function"!=typeof e.type);r||null==e.__e||y(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function z(e,r,i){var s,o,a,l;n.__&&n.__(e,r),o=(s="function"==typeof i)?null:i&&i.__k||r.__k,a=[],l=[],P(r,e=(!s&&i||r).__k=b(D,null,[e]),o||f,f,r.namespaceURI,!s&&i?[i]:o?null:r.firstChild?t.call(r.childNodes):null,a,!s&&i?i:o?o.__e:r.firstChild,s,l),B(a,e,l)}t=g.slice,n={__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}},r=0,i=function(e){return null!=e&&null==e.constructor},w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},w.prototype.render=D,s=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},x.__r=0,c=0,d=N(!1),u=N(!0),h=0;var F,V,G,Q=[],Y=n,q=Y.__b,Z=Y.__r,X=Y.diffed,J=Y.__c,$=Y.unmount,K=Y.__;function ee(){for(var e;e=Q.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(ie),e.__H.__h=[]}catch(t){e.__H.__h=[],Y.__e(t,e.__v)}}Y.__b=function(e){F=null,q&&q(e)},Y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),K&&K(e,t)},Y.__r=function(e){Z&&Z(e);var t=(F=e.__c).__H;t&&(V===F?(t.__h=[],F.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(re),t.__h.forEach(ie),t.__h=[])),V=F},Y.diffed=function(e){X&&X(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Q.push(t)&&G===Y.requestAnimationFrame||((G=Y.requestAnimationFrame)||ne)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),V=F=null},Y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||ie(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Y.__e(n,e.__v)}})),J&&J(e,t)},Y.unmount=function(e){$&&$(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),n.__H=void 0,t&&Y.__e(t,n.__v))};var te="function"==typeof requestAnimationFrame;function ne(e){var t,n=function(){clearTimeout(r),te&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);te&&(t=requestAnimationFrame(n))}function re(e){var t=F,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),F=t}function ie(e){var t=F;e.__c=e.__(),F=t}function se(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 oe(e,t){this.props=e,this.context=t}(oe.prototype=new w).isPureReactComponent=!0,oe.prototype.shouldComponentUpdate=function(e,t){return se(this.props,e)||se(this.state,t)};var ae=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ae&&ae(e)};var le=n.__e;n.__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);le(e,t,n,r)};var ce=n.unmount;function de(){this.__u=0,this.t=null,this.__b=null}function ue(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function he(){this.u=null,this.o=null}n.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ce&&ce(e)},(de.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ue(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]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},de.prototype.componentWillUnmount=function(){this.t=[]},de.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&b(D,null,e.fallback);return i&&(i.__u&=-33),[b(D,null,t.__a?null:e.children),i]};var fe=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 ge(e){return this.getChildContext=function(){return e.context},e.children}function pe(e){var t=this,n=e.i;t.componentWillUnmount=function(){z(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},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)}}),z(b(ge,{context:t.context},e.__v),t.l)}function me(e,t){var n=b(pe,{__v:e,i:t});return n.containerInfo=t,n}(he.prototype=new w).__a=function(e){var t=this,n=ue(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),fe(t,e,r)):i()};n?n(s):s()}},he.prototype.render=function(e){this.u=null,this.o=new Map;var t=k(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},he.prototype.componentDidUpdate=he.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){fe(e,n,t)}))};var ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ye=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,be=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Se=/[A-Z0-9]/g,Ee="undefined"!=typeof document,De=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).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 we=n.event;function Ae(){}function Re(){return this.cancelBubble}function Ce(){return this.defaultPrevented}n.event=function(e){return we&&(e=we(e)),e.persist=Ae,e.isPropagationStopped=Re,e.isDefaultPrevented=Ce,e.nativeEvent=e};var xe={enumerable:!1,configurable:!0,get:function(){return this.class}},_e=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||Ee&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var o=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"translate"===o&&"no"===s?s=!1:"ondoubleclick"===o?i="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||De(t.type)?"onfocus"===o?i="onfocusin":"onblur"===o?i="onfocusout":be.test(i)?i=o:-1===n.indexOf("-")&&ye.test(i)?i=i.replace(Se,"-$&").toLowerCase():null===s&&(s=void 0):o=i="oninput","oninput"===o&&r[i=o]&&(i="oninputCapture"),r[i]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=k(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=k(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",xe)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=ve,_e&&_e(e)};var Te=n.__r;n.__r=function(e){Te&&Te(e),e.__c};var Me=n.diffed;n.diffed=function(e){Me&&Me(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};const ke=[],Ie=new Map;function He(e){ke.push(e),Ie.forEach(t=>{Ne(t,e)})}function Oe(e){let t=Ie.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=function(){void 0===Pe&&(Pe=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return Pe}();n&&(t.nonce=n);const r=e===document?document.head:e,i=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,i)}Ie.set(e,t),function(e){for(const t of ke)Ne(e,t)}(t)}}function Ne(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)})}let Pe;"undefined"!=typeof document&&Oe(document);He(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc{display:flex;flex-direction:column;gap:1.5em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-flex-row{display:flex;flex-direction:row}.fc-flex-column{display:flex;flex-direction:column}.fc-grow{flex-grow:1}.fc-basis0,.fc-liquid{flex-basis:0}.fc-liquid{flex-grow:1;min-height:0;min-width:0}.fc-row{display:flex;flex-direction:row}.fc-rowgroup{display:flex;flex-direction:column}.fc-row,.fc-rowdivider,.fc-rowgroup{border-color:var(--fc-border-color);border-style:solid;border-width:1px 0 0}.fc-row:first-child:not(.fc-not-first),.fc-rowdivider+.fc-row,.fc-rowdivider+.fc-rowgroup,.fc-rowdivider:first-child,.fc-rowgroup:first-child,.fc-sticky-header+.fc-row,.fc-sticky-header+.fc-rowgroup{border-top-width:0}.fc-cell,.fc-celldivider{border:0 solid var(--fc-border-color)}.fc-cell{margin:0!important;padding:0!important}.fc-cell-inner{overflow:hidden;white-space:nowrap}.fc-direction-ltr .fc-cell,.fc-direction-ltr .fc-celldivider{border-left-width:1px}.fc-direction-ltr .fc-cell:first-child:not(.fc-not-first),.fc-direction-ltr .fc-celldivider+.fc-cell{border-left-width:0}.fc-direction-ltr .fc-celldivider,.fc-direction-rtl .fc-cell,.fc-direction-rtl .fc-celldivider{border-right-width:1px}.fc-direction-rtl .fc-cell:first-child:not(.fc-not-first),.fc-direction-rtl .fc-celldivider+.fc-cell{border-right-width:0}.fc-direction-rtl .fc-celldivider{border-left-width:1px}.fc-cell:only-child{flex-basis:0;flex-grow:1;min-width:0}.fc-celldivider,.fc-rowdivider{background:var(--fc-neutral-bg-color)}.fc-celldivider{padding-left:2px}.fc-rowdivider{padding-bottom:2px}.fc-rowdivider,.fc-sticky-header{border-bottom-width:1px}.fc-rel{position:relative}.fc-abs{position:absolute}.fc-fill{bottom:0;top:0}.fc-fill,.fc-fill-x{left:0;position:absolute;right:0}.fc-fill-y{bottom:0;position:absolute;top:0}.fc-sticky-y{bottom:0;position:sticky;top:0}.fc-sticky-x{left:0;position:sticky;right:0}.fc-sticky-header{background:var(--fc-page-bg-color);position:sticky;top:0;z-index:9999}.fc-sticky-footer{bottom:0;position:sticky;z-index:9999}.fc-content-box{box-sizing:content-box}.fc-border{border:1px solid var(--fc-border-color)}.fc-offscreen{left:-10000px;position:absolute}.fc-shaded{background-color:var(--fc-neutral-bg-color)}.fc-padding-sm{padding:2px 4px}.fc-padding-md{padding:4px 5px}.fc-padding-lg{padding:8px}.fc-justify-center{justify-content:center}.fc-align-center{align-items:center}.fc-align-start{align-items:flex-start}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-view-harness{position:relative}.fc-view-harness-fixedheight,.fc-view-harness-liquid{display:flex;flex-direction:column}.fc-view-harness-fixedheight>.fc-view,.fc-view-harness-liquid,.fc-view-harness-liquid>.fc-view{flex-basis:0;flex-grow:1;min-height:0}.fc-view-harness-aspectratio>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event-selected,.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-event-inner{position:relative;z-index:2}.fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-bg-event,.fc-highlight,.fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc-non-business{background:var(--fc-non-business-color)}.fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc-highlight{background:var(--fc-highlight-color)}.fc-day-disabled{background:var(--fc-neutral-bg-color)}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:flex;flex-direction:column;position:relative}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-h-event .fc-event-inner{color:var(--fc-event-text-color);display:flex;flex-direction:row;flex-grow:1;min-width:0}.fc-h-event .fc-event-time,.fc-h-event .fc-event-title{overflow:hidden;white-space:nowrap}.fc-h-event .fc-event-title-outer{display:flex;flex-basis:0;flex-direction:row;flex-grow:1;min-width:0}.fc-h-event .fc-event-title{left:0;position:sticky;right:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc-popover-title{margin:0 2px}.fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}.fc-scroller-nobars{-ms-overflow-style:none;scrollbar-width:none}.fc-scroller-nobars::-webkit-scrollbar{display:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc-button{-webkit-appearance:button}.fc-button:not(:disabled){cursor:pointer}.fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc-button:hover{text-decoration:none}.fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc-button:disabled{opacity:.65}.fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button-primary:not(:disabled).fc-button-active,.fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc-button-primary:not(:disabled).fc-button-active:focus,.fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc-button-group>.fc-button.fc-button-active,.fc-button-group>.fc-button:active,.fc-button-group>.fc-button:focus,.fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc-toolbar{align-items:center;display:flex;flex-direction:row;gap:.75em;justify-content:space-between}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc-toolbar-chunk{display:flex;flex-direction:row;flex-shrink:0;gap:.75em}.fc-toolbar-title{font-size:1.75em;margin:0;white-space:nowrap}');class Be{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,n[e]<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function je(e){e.parentNode&&e.parentNode.removeChild(e)}function We(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Le(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Le(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}const Ue=/(top|left|right|bottom|width|height)$/i;function ze(e,t){for(let n in t)Fe(e,n,t[n])}function Fe(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Ue.test(t)?e.style[t]=n+"px":e.style[t]=n}function Ve(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 Ge=0;function Qe(){return Ge+=1,"fc-dom-"+Ge}function Ye(e){e.preventDefault()}function qe(e,t,n,r){let i=function(e,t){return n=>{let r=We(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}const Ze=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Xe(e,t){let n=r=>{t(r),Ze.forEach(t=>{e.removeEventListener(t,n)})};Ze.forEach(t=>{e.addEventListener(t,n)})}function Je(e){return Object.assign({onClick:e},$e(e))}function $e(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let Ke=0;function et(){return Ke+=1,String(Ke)}function tt(){document.body.classList.add("fc-not-allowed")}function nt(){document.body.classList.remove("fc-not-allowed")}function rt(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Ye)}function it(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Ye)}function st(e){e.addEventListener("contextmenu",Ye)}function ot(e){e.removeEventListener("contextmenu",Ye)}function at(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 lt(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=ct(e,t,n[r]),i)return i;return 0}function ct(e,t,n){return n.func?n.func(e,t):dt(e[n.field],t[n.field])*(n.order||1)}function dt(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 ut(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function ht(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function ft(e,t){return e-t}function gt(e){return e%1==0}const pt=["years","months","days","milliseconds"],mt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function vt(e,t){return"string"==typeof e?function(e){let t=mt.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}(e):"object"==typeof e&&e?yt(e):"number"==typeof e?yt({[t||"milliseconds"]:e}):null}function yt(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 bt(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function St(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Et(e){return Dt(e)/864e5}function Dt(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function wt(e,t){let n=null;for(let r=0;r<pt.length;r+=1){let i=pt[r];if(t[i]){let r=e[i]/t[i];if(!gt(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n}function At(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 Rt(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}const Ct=["sun","mon","tue","wed","thu","fri","sat"];function xt(e,t){let n=Lt(e);return n[2]+=7*t,Ut(n)}function _t(e,t){let n=Lt(e);return n[2]+=t,Ut(n)}function Tt(e,t){let n=Lt(e);return n[6]+=t,Ut(n)}function Mt(e,t){return kt(e,t)/7}function kt(e,t){return(t.valueOf()-e.valueOf())/864e5}function It(e,t){let n=Nt(e),r=Nt(t);return{years:0,months:0,days:Math.round(kt(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Ht(e,t){let n=Ot(e,t);return null!==n&&n%7==0?n/7:null}function Ot(e,t){return Ft(e)===Ft(t)?Math.round(kt(e,t)):null}function Nt(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Pt(e,t,n,r){let i=Ut([t,0,1+Bt(t,n,r)]),s=Nt(e),o=Math.round(kt(i,s));return Math.floor(o/7)+1}function Bt(e,t,n){let r=7+t-n;return-((7+Ut([e,0,r]).getUTCDay()-t)%7)+r-1}function jt(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 Ut(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function zt(e){return!isNaN(e.valueOf())}function Ft(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Vt(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",qt(t,!0)))),r}function Gt(e){return e.toISOString().replace(/T.*$/,"")}function Qt(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Yt(e){return ut(e.getUTCHours(),2)+":"+ut(e.getUTCMinutes(),2)+":"+ut(e.getUTCSeconds(),2)}function qt(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+ut(i,2)}:${ut(s,2)}`:`GMT${n}${i}${s?":"+ut(s,2):""}`}function Zt(e,t,n){let r,i;return function(...s){if(r){if(!Rt(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 Xt(e,t,n){let r,i;return s=>{if(r){if(!Tn(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}}const Jt={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},$t={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Kt=/\s*([ap])\.?m\.?/i,en=/,/g,tn=/\s+/g,nn=/\u200e/g,rn=/UTC|GMT/;class sn{constructor(e){let t={},n={},r=0;for(let i in e)i in Jt?(n[i]=e[i],r=Math.max(Jt[i],r)):(t[i]=e[i],i in $t&&(r=Math.max($t[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Zt(on)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,o=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(Ft(e)!==Ft(t))return 1;return 0}(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=on(function(e,t){let n={};for(let r in e)(!(r in $t)||$t[r]<=t)&&(n[r]=e[r]);return n}(i,a),s,n),u=d(e),h=d(t),f=function(e,t,n,r){let i=0;for(;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;for(;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}(l,u,c,h),g=s.separator||r||n.defaultSeparator||"";return f?f.before+u+g+h+f.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 on(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>qt(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,i){let s=[];"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();return s.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(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}(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;return o=r&&!a.getUTCMinutes()?r:i,function(e,t,n,r,i){e=e.replace(nn,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(rn,()=>(n=!0,t)),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":qt(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(en,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Kt,"").trim():"narrow"===r.meridiem?e=e.replace(Kt,(e,t)=>t.toLocaleLowerCase()):"short"===r.meridiem?e=e.replace(Kt,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===r.meridiem&&(e=e.replace(Kt,e=>e.toLocaleLowerCase()));return e=(e=e.replace(tn," ")).trim()}(o.format(a),s,e,t,n)}}(e,t,n)}function an(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 ln(e,t,n,r){let i=an(e,n.calendarSystem);return{date:i,start:i,end:t?an(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class cn{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,ln(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,ln(e,t,n,r))}}class dn{constructor(e){this.func=e}format(e,t,n){return this.func(ln(e,null,t,n))}formatRange(e,t,n,r){return this.func(ln(e,t,n,r))}}function un(e){return"object"==typeof e&&e?new sn(e):"string"==typeof e?new cn(e):"function"==typeof e?new dn(e):null}const hn={navLinkDayClick:Dn,navLinkWeekClick:Dn,duration:vt,bootstrapFontAwesome:Dn,buttonIcons:Dn,customButtons:Dn,defaultAllDayEventDuration:vt,defaultTimedEventDuration:vt,nextDayThreshold:vt,scrollTime:vt,scrollTimeReset:Boolean,slotMinTime:vt,slotMaxTime:vt,dayPopoverFormat:un,slotDuration:vt,snapDuration:vt,headerToolbar:Dn,footerToolbar:Dn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:un,dayHeaderClassNames:Dn,dayHeaderContent:Dn,dayHeaderDidMount:Dn,dayHeaderWillUnmount:Dn,dayCellClassNames:Dn,dayCellContent:Dn,dayCellDidMount:Dn,dayCellWillUnmount:Dn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Dn,weekNumbers:Boolean,weekNumberClassNames:Dn,weekNumberContent:Dn,weekNumberDidMount:Dn,weekNumberWillUnmount:Dn,editable:Boolean,viewClassNames:Dn,viewDidMount:Dn,viewWillUnmount:Dn,nowIndicator:Boolean,nowIndicatorClassNames:Dn,nowIndicatorContent:Dn,nowIndicatorDidMount:Dn,nowIndicatorWillUnmount:Dn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Dn,locale:Dn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Dn,eventOrder:at,eventOrderStrict:Boolean,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Dn,contentHeight:Dn,direction:String,weekNumberFormat:un,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Dn,initialDate:Dn,now:Dn,eventDataTransform:Dn,stickyHeaderDates:Dn,stickyFooterScrollbar:Dn,viewHeight:Dn,defaultAllDay:Boolean,eventSourceFailure:Dn,eventSourceSuccess:Dn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Dn,eventConstraint:Dn,eventAllow:Dn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Dn,eventContent:Dn,eventDidMount:Dn,eventWillUnmount:Dn,selectConstraint:Dn,selectOverlap:Dn,selectAllow:Dn,droppable:Boolean,unselectCancel:String,slotLabelFormat:Dn,slotLaneClassNames:Dn,slotLaneContent:Dn,slotLaneDidMount:Dn,slotLaneWillUnmount:Dn,slotLabelClassNames:Dn,slotLabelContent:Dn,slotLabelDidMount:Dn,slotLabelWillUnmount:Dn,dayMaxEvents:Dn,dayMaxEventRows:Dn,dayMinWidth:Number,slotLabelInterval:vt,allDayText:String,allDayClassNames:Dn,allDayContent:Dn,allDayDidMount:Dn,allDayWillUnmount:Dn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:un,rerenderDelay:Number,moreLinkText:Dn,moreLinkHint:Dn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Dn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:vt,hiddenDays:Dn,fixedWeekCount:Boolean,validRange:Dn,visibleRange:Dn,titleFormat:Dn,eventInteractive:Boolean,noEventsText:String,viewHint:Dn,navLinkHint:Dn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Dn,moreLinkClassNames:Dn,moreLinkContent:Dn,moreLinkDidMount:Dn,moreLinkWillUnmount:Dn,monthStartFormat:un,handleCustomRendering:Dn,customRenderingMetaMap:Dn,customRenderingReplaces:Boolean},fn={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},gn={datesSet:Dn,eventsSet:Dn,eventAdd:Dn,eventChange:Dn,eventRemove:Dn,eventClick:Dn,eventMouseEnter:Dn,eventMouseLeave:Dn,select:Dn,unselect:Dn,loading:Dn,_unmount:Dn,_beforeprint:Dn,_afterprint:Dn,_noEventDrop:Dn,_noEventResize:Dn,_timeScrollRequest:Dn},pn={buttonText:Dn,buttonHints:Dn,views:Dn,plugins:Dn,initialEvents:Dn,events:Dn,eventSources:Dn},mn={headerToolbar:vn,footerToolbar:vn,buttonText:vn,buttonHints:vn,buttonIcons:vn,dateIncrement:vn,plugins:yn,events:yn,eventSources:yn,resources:yn};function vn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Tn(e,t):e===t}function yn(e,t){return Array.isArray(e)&&Array.isArray(t)?Rt(e,t):e===t}const bn={type:String,component:Dn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Dn,usesMinMaxTime:Boolean,classNames:Dn,content:Dn,didMount:Dn,willUnmount:Dn};function Sn(e){return An(e,mn)}function En(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function Dn(e){return e}const{hasOwnProperty:wn}=Object.prototype;function An(e,t){let n={};if(t)for(let r in t)if(t[r]===vn){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]=An(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function Rn(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Cn(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function xn(e){let t={};for(let n of e)t[n]=!0;return t}function _n(e){let t=[];for(let n in e)t.push(e[n]);return t}function Tn(e,t){if(e===t)return!0;for(let n in e)if(wn.call(e,n)&&!(n in t))return!1;for(let n in t)if(wn.call(t,n)&&e[n]!==t[n])return!1;return!0}const Mn=/^on[A-Z]/;function kn(e,t){let n=[];for(let r in e)wn.call(e,r)&&(r in t||n.push(r));for(let r in t)wn.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function In(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!Hn(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function Hn(e,t,n){return e===t||!0===n||!!n&&n(e,t)}let On={};var Nn,Pn;Nn="gregory",Pn=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Ut(e)}markerToArray(e){return Lt(e)}},On[Nn]=Pn;const Bn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function jn(e){let t=Bn.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(zt(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 Wn{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=function(e){return new On[e]}(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()):Ut(jt(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=Ut(e)),null!==t&&zt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=jn(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)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Ft(e)===Ft(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 Ft(e)===Ft(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=Ht(e,t),null!==n?{unit:"week",value:n}:(n=Ot(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),gt(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),gt(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),gt(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/(Et(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return Et(e)/30}(n):n.days&&(r=Ot(e,t),null!==r)?r/Et(n):(t.valueOf()-e.valueOf())/Dt(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Nt(e):"hour"===t?function(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(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)):function(e,t,n){let r=e.getUTCFullYear(),i=Pt(e,r,t,n);if(i<1)return Pt(e,r-1,t,n);let s=Pt(e,r+1,t,n);return s>=1?Math.min(i,s):i}(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=Tt(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)),Vt(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Ut(jt(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Ut(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 Ln{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)}`:""}}function Un(e){e();let t=n.debounceRendering,r=[];for(n.debounceRendering=function(e){r.push(e)},z(b(zn,{}),document.createElement("div"));r.length;)r.shift()();n.debounceRendering=t}Ln.prototype.classes={},Ln.prototype.iconClasses={},Ln.prototype.baseIconClass="",Ln.prototype.iconOverridePrefix="";class zn extends w{render(){return b("div",{})}componentDidMount(){this.setState({})}}function Fn(e){let t=function(e,t){var n={__c:t="__cC"+h++,__: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.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,C(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(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}const Vn=Fn({});function Gn(e,t,n,r,i,s,o,a,l,c,d,u,h){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,registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class Qn extends w{shouldComponentUpdate(e,t){return this.debug&&console.log(kn(e,this.props),kn(t,this.state)),!In(this.props,e,this.propEquality)||!In(this.state,t,this.stateEquality)}safeSetState(e){In(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Qn.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Qn.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Qn.contextType=Vn,Qn.prototype.propEquality={},Qn.prototype.stateEquality={};class Yn extends Qn{}function qn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Yn.contextType=Vn;class Zn extends Yn{constructor(){super(...arguments),this.id=et(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&Xn(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&qn(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:s,renderProps:o}=e,a=Jn(e,[],this.handleEl);let l,c,d=!1,u=[];if(null!=r){const e="function"==typeof r?r(o,b):r;if(!0===e)d=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?a.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?u=Array.prototype.slice.call(e.domNodes):(t?i(e):"function"!=typeof e)?l=e:c=e}}else d=!Xn(e.generatorName,n);return d&&s&&(l=s(o)),this.queuedDomNodes=u,this.currentGeneratorMeta=c,b(e.elTag,a,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==s?void 0:s[n.generatorName];r&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter($n)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!Rt(e,t)){t.forEach(je);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Xn(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Jn(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function $n(e){return Boolean(e)}Zn.addPropsEquality({elClasses:Rt,elStyle:Tn,elAttrs:function(e,t){const n=kn(e,t);for(let e of n)if(!Mn.test(e))return!1;return!0},renderProps:Tn});const Kn=Fn(0);class er extends w{constructor(){super(...arguments),this.InnerContent=tr.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(qn(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=Jn(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?b(e.elTag,n,r):r}return b(Zn,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}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.el}))}}function tr(e,t){const n=e.props;return b(Zn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}er.contextType=Kn;class nr extends Yn{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return b(er,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...rr(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function rr(e){return[`fc-${e.type}-view`,"fc-view"]}function ir(e,t){let n,r,i=[],{start:s}=t;for(e.sort(sr),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 sr(e,t){return e.start.valueOf()-t.start.valueOf()}function or(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 ar(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function lr(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function cr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function dr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function ur(e){let t=Math.floor(kt(e.start,e.end))||1,n=Nt(e.start);return{start:n,end:_t(n,t)}}function hr(e,t=vt(0)){let n=null,r=null;if(e.end){r=Nt(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=Dt(t)&&(r=_t(r,1))}return e.start&&(n=Nt(e.start),r&&r<=n&&(r=_t(n,1))),{start:n,end:r}}function fr(e){let t=hr(e);return kt(t.start,t.end)>1}function gr(e,t,n,r){return"year"===r?vt(n.diffWholeYears(e,t),"year"):"month"===r?vt(n.diffWholeMonths(e,t),"month"):It(e,t)}function pr(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class mr{constructor(e){this.props=e,this.nowDate=pr(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;var d,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(u=r).start&&d<u.start?u.start:null!=u.end&&d>=u.end?new Date(u.end.valueOf()-1):d),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=or(a,i.range)),a=this.adjustActiveRange(a),a=or(a,r),l=lr(i.range,r),dr(o,e)||(e=o.start),{currentDate:e,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=At(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return vt({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(Et(r)<0&&(s=Nt(s),s=t.add(s,r)),Et(i)>1&&(o=Nt(o),o=_t(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&&Dt(e)<Dt(n)?At(e).unit:r}function c(){i=a.startOf(e,l),s=a.add(i,n),o={start:i,end:s}}return Et(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=Nt(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=Nt(a),a=this.skipHiddenDays(a,t),r=a;do{r=_t(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)?vt(1,t):e||vt({days:1}))}refineRange(e){if(e){let t=function(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}(e,this.props.dateEnv);return t&&(t=hr(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){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=_t(e,t);return e}}function vr(e,t,n,r){return{instanceId:et(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function yr(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;a=Rn(a,e=>!o[e.defId].recurringDef);for(let e in o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let l=br(n,o,t,r,i.recurringTypes);for(let t of l){let n=vr(e,{start:t,end:r.add(t,o)});a[n.instanceId]=n}}}return{defs:o,instances:a}}function br(e,t,n,r,i){let s=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(Nt)),s}const Sr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Er={start:Dn,end:Dn,date:Dn,allDay:Boolean},Dr=Object.assign(Object.assign(Object.assign({},Sr),Er),{extendedProps:Dn});function wr(e,t,n,r,i=Rr(n),s,o){let{refined:a,extra:l}=Ar(e,n,i),c=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),d=function(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}(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=Cr(a,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,s);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let u=function(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;null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified));o&&a&&(a=Nt(a));s&&(c=s.marker,o&&(c=Nt(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));return{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(a,c,n,r);if(u){let e=Cr(a,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,s),r=vr(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function Ar(e,t,n=Rr(t)){return En(e,n)}function Rr(e){return Object.assign(Object.assign(Object.assign({},Nr),Dr),e.pluginHooks.eventRefiners)}function Cr(e,t,n,r,i,s,o){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||et(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Br(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of s.pluginHooks.eventDefMemberAdders)Object.assign(a,t(e));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function xr(e,t,n,r,i,s){let o={defs:{},instances:{}},a=Rr(n);for(let l of e){let e=wr(l,t,n,r,a,i,s);e&&_r(e,o)}return o}function _r(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Tr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=Ir(e,e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r});return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function Mr(){return{defs:{},instances:{}}}function kr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Ir(e,t){let n=Rn(e.defs,t),r=Rn(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function Hr(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}function Or(e){return 100*e+"%"}const Nr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Dn,overlap:Dn,allow:Dn,className:Hr,classNames:Hr,color:String,backgroundColor:String,borderColor:String,textColor:String},Pr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Br(e,t){let n=function(e,t){return Array.isArray(e)?xr(e,null,t,!0):"object"==typeof e&&e?xr([e],null,t,!0):null!=e?String(e):null}(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 jr(e){return e.reduce(Wr,Pr)}function Wr(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 Lr={id:String,defaultAllDay:Boolean,url:String,format:String,events:Dn,eventDataTransform:Dn,success:Dn,failure:Dn};function Ur(e,t,n=zr(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}=En(r,n),o=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(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:et(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Br(i,t),extendedProps:s}}return null}function zr(e){return Object.assign(Object.assign(Object.assign({},Nr),Lr),e.pluginHooks.eventSourceRefiners)}function Fr(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=xr(Vr(i,t,s),t,s);return r&&(n=yr(n,r,s)),kr(Yr(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r,i){const{defIdMap:s,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},i={};for(let e in t){const n=t[e],{publicId:i}=n;i&&(r[i]=e)}for(let e in n){const r=n[e],s=t[r.defId],{publicId:o}=s;o&&(i[o]=e)}return{defIdMap:r,instanceIdMap:i}}(e);return yr(xr(Vr(n,t,i),t,i,!1,s,o),r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=yr(t,n,r));return kr(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return kr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?yr(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,i={},s={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(s[e]=r[e]);return{defs:i,instances:s}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Yr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ir(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Vr(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=Gr(e,i)),r&&(e=Gr(e,r)),e}function Gr(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 Qr(e,t,n){let{defs:r}=e,i=Cn(e.instances,e=>r[e.defId].allDay?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 Yr(e,t){return Ir(e,e=>e.sourceId!==t)}class qr{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const Zr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Xr(e,t){return xr(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):"object"==typeof e&&e?[e]:[];return t=t.map(e=>Object.assign(Object.assign({},Zr),e)),t}(e),null,t)}function Jr(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},$r(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function $r(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,i=t.dateEnv,Object.assign(Object.assign({},xi(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function Kr(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=Nt(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function ei(e,t,n,r){let i=ui(e.defs,t),s={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];s.defs[t]=ti(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=s.defs[o.defId];s.instances[t]=ni(o,a,i[o.defId],n,r)}return s}function ti(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 e of r.pluginHooks.eventDefMutationAppliers)e(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function ni(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=ur(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:Kr(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Nt(l.range.start),end:Nt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Kr(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 ii{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Er)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Sr[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Sr)t=Sr[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Nr){let n=Nr[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=gr(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=gr(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);var a,l;if(o&&((null==t||(r=i.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=ur(e));let t=gr(e.start,o,i,n.granularity);if(r){let o=gr(e.end,r,i,n.granularity);l=o,(a=t).years===l.years&&a.months===l.months&&a.days===l.days&&a.milliseconds===l.milliseconds?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=vt(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=vt(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=vt(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=un(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=Tr(i,t.instanceId);s=ei(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new ii(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:o,event:this,relatedEvents:oi(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=si(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={allDay:t.allDay};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 si(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function oi(e,t,n){let{defs:r,instances:i}=e,s=[],o=n?n.instanceId:"";for(let e in i){let n=i[e],a=r[n.defId];n.instanceId!==o&&s.push(new ii(t,a,n))}return s}function ai(e,t,n,r){let i={},s={},o={},a=[],l=[],c=ui(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[t]=[])}for(let t in e.instances){let o=e.instances[t],d=e.defs[o.defId],u=c[d.defId],h=o.range,f=!d.allDay&&r?hr(h,r):h,g=or(f,n);g&&("inverse-background"===u.display?d.groupId?i[d.groupId].push(g):s[o.defId].push(g):"none"!==u.display&&("background"===u.display?a:l).push({def:d,ui:u,instance:o,range:g,isStart:f.start&&f.start.valueOf()===g.start.valueOf(),isEnd:f.end&&f.end.valueOf()===g.end.valueOf()}))}for(let e in i){let t=ir(i[e],n);for(let n of t){let t=o[e],r=c[t.defId];a.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in s){let r=ir(s[t],n);for(let n of r)a.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function li(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function ci(e,t){e.fcSeg=t}function di(e){return e.fcSeg||e.parentNode.fcSeg||null}function ui(e,t){return Cn(e,e=>hi(e,t))}function hi(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),jr(n)}function fi(e,t){let n=e.map(gi);return n.sort((e,n)=>lt(e,n,t)),n.map(e=>e._seg)}function gi(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 pi(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,o=s.startEditable;for(let e of r)o=e(o,i,s,t);return o}function mi(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function vi(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function yi(e,t,n,r,i,s,o){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,h=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==i);let f=h.range.start,g=h.range.end,p=s||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=Nt(f).valueOf()===Nt(p).valueOf(),y=Nt(Tt(g,-1)).valueOf()===Nt(Tt(m,-1)).valueOf();return c&&!u.allDay&&(v||y)?(p=v?f:p,m=y?g:m,d&&u.hasEnd?a.formatRange(p,m,t,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:o?null:h.forcedEndTzo}):a.format(p,t,{forcedTzo:s?null:h.forcedStartTzo})):""}function bi(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&dr(t,r.start)}}function Si(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 Ei(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Di(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?$e(e=>{s.trigger("eventClick",{el:e.target,event:new ii(t,n,r),jsEvent:e,view:t.viewApi})}):{}}const wi={start:Dn,end:Dn,allDay:Boolean};function Ai(e,t,n){let r=function(e,t){let{refined:n,extra:r}=En(e,wi),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}(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 Ri(e,t){return ar(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(e,t)}function Ci(e,t,n){return Object.assign(Object.assign({},xi(e,t,n)),{timeZone:t.timeZone})}function xi(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 _i(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 Ti extends Error{constructor(e,t){super(e),this.response=t}}function Mi(e,t,n){const r={method:e=e.toUpperCase()};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 Ti("Failure parsing JSON",e)});throw new Ti("Request failed",e)})}class ki extends Yn{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Un(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Un(()=>{this.setState({forPrint:!1})})}}render(){let{props:e,state:t}=this,{options:n}=e,{forPrint:r}=t,i=["fc",r?"fc-media-print":"fc-media-screen","fc-direction-"+n.direction,e.theme.getClass("root")];return e.children(i,n.height,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Ii{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Hi(e){return{[e.component.uid]:e}}const Oi={};function Ni(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Pi(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}function Bi(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function ji(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Wi(e,t){return{left:e.left-t.left,top:e.top-t.top}}const Li={defs:{},instances:{}};class Ui{constructor(){this.getKeysForEventDefs=Zt(this._getKeysForEventDefs),this.splitDateSelection=Zt(this._splitDateSpan),this.splitEventStore=Zt(this._splitEventStore),this.splitIndividualUi=Zt(this._splitIndividualUi),this.splitEventDrag=Zt(this._splitInteraction),this.splitEventResize=Zt(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=Cn(t,(e,t)=>this.eventUiBuilders[t]||Zt(zi));for(let n in t){let c=t[n],d=s[n]||Li,u=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:d,eventUiBases:u(e.eventUiBases[""],c.ui,i[n]),eventDrag:o[n]||null,eventResize:a[n]||null,eventSelection:d.instances[e.eventSelection]?e.eventSelection:""}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return Cn(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]={defs:{},instances:{}}),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),s=r=>{t[r]||(t[r]={affectedEvents:n[r]||Li,mutatedEvents:i[r]||Li,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}}function zi(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":jr(r)};return n&&Object.assign(i,n),i}function Fi(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!dr(r.activeRange,e)),isOther:Boolean(r&&!dr(r.currentRange,e)),isToday:Boolean(t&&dr(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Vi(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"),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function Gi(e,t){for(const n in t)if(!Qi(e[n],t[n]))return!1;return!0}function Qi(e,t){return null!=e&&(e===t||Math.abs(e-t)<.01)}const Yi=new Map;let qi=new Set,Zi=!1;const Xi=new ResizeObserver(e=>{Zi=!0;for(let t of e){const e=Yi.get(t.target);t.contentBoxSize?t.contentBoxSize[0]?e(t.contentBoxSize[0].inlineSize,t.contentBoxSize[0].blockSize):e(t.contentBoxSize.inlineSize,t.contentBoxSize.blockSize):e(t.contentRect.width,t.contentRect.height)}for(const e of qi.values())e(),qi.delete(e);Zi=!1});function Ji(e,t){return Yi.set(e,t),Xi.observe(e),()=>{Yi.delete(e),Xi.unobserve(e)}}function $i(e,t){let n;return Ji(e,e=>{null!=n&&n===e||t(n=e)})}function Ki(e,t){let n;return Ji(e,(e,r)=>{null!=n&&n===r||t(n=r)})}function es(e){Zi?qi.add(e):e()}const ts=un({year:"numeric",month:"long",day:"numeric"}),ns=un({week:"long"});function rs(e,t,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=e;let a=i.format(t,"week"===n?ns:ts);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:ht(s.navLinkHint,[a,e],a),"data-navlink":""},r?Je(l):{onClick:l})}return{"aria-label":a}}let is,ss=null;function os(){return null===ss&&(ss=function(){let e=document.createElement("div");ze(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return je(e),t}()),ss}function as(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ls(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,a=as(e),l=a.y-r-i,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:o,scrollbarBottom:a.x-s-o,scrollbarLeft:0,scrollbarRight:0};return os()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function cs(e,t=!1,n){let r=n?e.getBoundingClientRect():ds(e),i=ls(e,t),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function ds(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function us(e){let t=[];for(;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}function hs(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class fs{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class gs extends fs{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class ps extends fs{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ms extends Yn{constructor(){super(...arguments),this.uid=et()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!We(e,".fc-event-mirror")}isValidDateDownEl(e){return!(We(e,".fc-event:not(.fc-bg-event)")||We(e,".fc-more-link")||We(e,"a[data-navlink]")||We(e,".fc-popover"))}}const vs=un({day:"numeric"});class ys extends Yn{constructor(){super(...arguments),this.refineRenderProps=Xt(Ss)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return b(er,Object.assign({},e,{elClasses:[...Vi(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":Gt(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function bs(e){return Boolean(e.dayCellContent||Xn("dayCellContent",e))}function Ss(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,s=Fi(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:vs):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},s),{isMonthStart:i,dayNumberText:o}),e.extraRenderProps)}class Es extends Yn{constructor(){super(...arguments),this.state={titleId:Qe()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&qn(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=Ve(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 me(b("div",Object.assign({},n.extraAttrs,{id:n.id,className:i.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),b("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},b("span",{className:"fc-popover-title",id:r.titleId},n.title),b("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),b("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=function(e){let t=us(e),n=e.getBoundingClientRect();for(let e of t){let t=Pi(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(i){let s=r.getBoundingClientRect();if(n)throw new Error("alignGridTop not supported yet");let o=n?We(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,a=e?i.right-s.width:i.left;o=Math.max(o,10),a=Math.min(a,document.documentElement.clientWidth-10-s.width),a=Math.max(a,10);let l=r.offsetParent.getBoundingClientRect();ze(r,{top:o-l.top,left:a-l.left})}}}class Ds extends ms{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 b(ys,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},(t,r,i)=>b(Es,{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},bs(e)&&b(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:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class ws extends Yn{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Qe()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&qn(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=Rs(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new ii(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.segs.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 b(Vn.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,a=e.hiddenSegs.length,l=Rs(e),c="function"==typeof o?o.call(s,a):`+${a} ${o}`,d=ht(i.moreLinkHint,[a],c),u={num:a,shortText:"+"+a,text:c,view:r};return b(D,null,Boolean(a)&&b(er,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Je(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||As,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&b(Ds,{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.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=We(this.linkEl,".fc-view-harness"))}}function As(e){return e.text}function Rs(e){return e.allDayDate?{start:e.allDayDate,end:_t(e.allDayDate,1)}:{start:Cs(e.hiddenSegs),end:(t=e.hiddenSegs,t.reduce(_s).eventRange.range.end)};var t}function Cs(e){return e.reduce(xs).eventRange.range.start}function xs(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function _s(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class Ts{constructor(e=(e=>e.thickness)){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.getEntryThickness(e);if(null==n)t.push(e);else{let r=this.findInsertion(e,n);this.isInsertionValid(r,e,n)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,t)}}isInsertionValid(e,t,n){return(-1===this.maxCoord||e.levelCoord+n<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const r=Object.assign(Object.assign({},t),{span:Os(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,i=t.span;r.start<i.start&&this.insertEntry({index:e.index,seg:e.seg,thickness:e.thickness,span:{start:r.start,end:i.start}},n),r.end>i.end&&this.insertEntry({index:e.index,seg:e.seg,thickness:e.thickness,span:{start:i.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(Ns(r,t.level,t.levelCoord),Ns(n,t.level,[e])):Ns(n[t.level],t.lateral,e),this.stackCnts[ks(e)]=t.stackCnt}findInsertion(e,t){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,o=n.length,a=0,l=-1,c=-1,d=null,u=0;for(let h=0;h<o;h+=1){const o=n[h];if(!i&&o>=a+t)break;let f,g=r[h],p=Ps(g,e.span.start,Ms),m=p[0]+p[1];for(;(f=g[m])&&f.span.start<e.span.end;){let e=o+this.getEntryThickness(f);e>a&&(a=e,d=f,l=h,c=m),e===a&&(u=Math.max(u,s[ks(f)]+1)),m+=1}}let h=0;if(d)for(h=l+1;h<o&&n[h]<a;)h+=1;let f=-1;return h<o&&n[h]===a&&(f=Ps(r[h],e.span.end,Ms)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:d,stackCnt:u,levelCoord:a,level:h,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),{thickness:this.getEntryThickness(e),levelCoord:s}))}return r}}function Ms(e){return e.span.end}function ks(e){return e.index+":"+e.span.start}function Is(e){let t=[];for(let i of e){let e=[],s={span:i.span,entries:[i]};for(let i of t)Os(i.span,s.span)?s={span:(n=i.span,r=s.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)}),entries:i.entries.concat(s.entries)}:e.push(i);e.push(s),t=e}var n,r;return t.map(e=>{const t=e.entries.map(Hs);return{key:Vt(Cs(t)),span:e.span,segs:t}})}function Hs(e){return e.seg}function Os(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 Ns(e,t,n){e.splice(t,0,n)}function Ps(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];for(;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]}class Bs{constructor(e,t){this.emitter=new qr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const js={},Ws={startTime:vt,duration:vt,create:Boolean,sourceId:String};function Ls(e){let{refined:t,extra:n}=En(e,Ws);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}}class Us{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],o=-1;for(;n<r;)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),s.push(n)),n=_t(n,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(_t(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 zs{constructor(e,t){let n,r,i,{dates:s}=e;if(t){for(r=s[0].getUTCDay(),n=1;n<s.length&&s[n].getUTCDay()!==r;n+=1);i=Math.ceil(s.length/n)}else i=1,n=s.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cellRows=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.cellRows[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;for(;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 extends ms{constructor(){super(...arguments),this.elRef={current:null}}render(){const{props:e}=this,t=e.horizontal||e.vertical?"hidden":"";return b("div",{ref:this.elRef,className:["fc-scroller",e.hideScrollbars?"fc-scroller-nobars":"",...e.elClassNames||[]].join(" "),style:Object.assign(Object.assign({},e.elStyle),{overflowX:e.horizontal?"auto":t,overflowY:e.vertical?"auto":t})},e.children)}componentDidMount(){const e=this.elRef.current;this.disconnectSize=Ji(e,(t,n)=>{const{props:r,context:i}=this,s=e.offsetHeight-e.clientHeight,o=e.offsetWidth-e.clientWidth;let a=0,l=0;i.isRtl&&Ys().leftScrollbars?l=o:a=o,Qi(this.currentWidth,t)||qn(r.widthRef,this.currentWidth=t),Qi(this.currentHeight,n)||qn(r.heightRef,this.currentHeight=n),Qi(this.currentBottomScrollbarWidth,s)||qn(r.bottomScrollbarWidthRef,this.currentBottomScrollbarWidth=s),Qi(this.currentRightScrollbarWidth,a)||qn(r.rightScrollbarWidthRef,this.currentRightScrollbarWidth=a),Qi(this.currentLeftScrollbarWidth,l)||qn(r.leftScrollbarWidthRef,this.currentLeftScrollbarWidth=l)})}componentWillUnmount(){this.disconnectSize()}get el(){return this.elRef.current}get x(){const{isRtl:e}=this.context;return Vs(this.elRef.current,e)}get y(){return this.elRef.current.scrollTop}scrollTo({x:e,y:t}){const{isRtl:n}=this.context,r=this.elRef.current;null!=t&&(r.scrollTop=t),null!=e&&Gs(r,n,e)}}function Vs(e,t){const{scrollLeft:n}=e;return t?function(e,t){switch(Ys().system){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(n,e):n}function Gs(e,t,n){e.scrollLeft=t?function(e,t){switch(Ys().system){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(n,e):n}let Qs;function Ys(){return Qs||(Qs=function(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,n=document.createElement("div");n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=50,t=e.scrollLeft>0?"reverse":"negative");let r=n.getBoundingClientRect().right<e.getBoundingClientRect().right;return je(e),{system:t,leftScrollbars:!r}}())}class qs{constructor(){this.sliceBusinessHours=Zt(this._sliceBusinessHours),this.sliceDateSelection=Zt(this._sliceDateSpan),this.sliceEventStore=Zt(this._sliceEventStore),this.sliceEventDrag=Zt(this._sliceInteraction),this.sliceEventResize=Zt(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,t,n,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,r,...i){return this._sliceDateSpan({range:{start:e,end:Tt(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(yr(e,Zs(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=ai(e,t,Zs(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=ai(e.mutatedEvents,t,Zs(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...s){if(!e)return[];let o=Zs(t,Boolean(n)),a=or(e.range,o);if(a){let t=function(e,t,n){let r=Ar({editable:!1},n),i=Cr(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:hi(i,t),instance:vr(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:a}),r,i),n=this.sliceRange(e.range,...s);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:_t(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function Zs(e,t){let n=e.activeRange;return t?n:{start:Tt(n.start,e.slotMinTime.milliseconds),end:Tt(n.end,e.slotMaxTime.milliseconds-864e5)}}function Xs(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!cr(t.validRange,r[e].range))return!1;return $s({eventDrag:e},n)}function Js(e,t,n){return!!cr(t.validRange,e.range)&&$s({dateSelection:e},n)}function $s(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Ks)(r,t)}function Ks(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let i=t.getCurrentData(),s=e.eventDrag,o=s.mutatedEvents,a=o.defs,l=o.instances,c=ui(a,s.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=Cn(c,r));let d=(g=e.eventStore,p=s.affectedEvents.instances,{defs:g.defs,instances:Rn(g.instances,e=>!p[e.instanceId])}),u=d.defs,h=d.instances,f=ui(u,e.eventUiBases);var g,p;for(let r in l){let o=l[r],g=o.range,p=c[o.defId],m=a[o.defId];if(!eo(p.constraints,g,d,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in h){let n=h[e];if(lr(g,n.range)){if(!1===f[n.defId].overlap&&s.isEvent)return!1;if(!1===p.overlap)return!1;if(y&&!y(new ii(t,u[n.defId],n),new ii(t,m,o)))return!1}}let b=i.eventStore;for(let e of p.allows){let i,s=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),a=b.defs[m.defId],l=b.instances[r];if(i=a?new ii(t,a,l):new ii(t,m),!e($r(s,t),i))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let i=e.eventStore,s=i.defs,o=i.instances,a=e.dateSelection,l=a.range,{selectionConfig:c}=t.getCurrentData();r&&(c=r(c));if(!eo(c.constraints,l,i,e.businessHours,t))return!1;let{selectOverlap:d}=t.options,u="function"==typeof d?d:null;for(let e in o){let n=o[e];if(lr(l,n.range)){if(!1===c.overlap)return!1;if(u&&!u(new ii(t,s[n.defId],n),null))return!1}}for(let e of c.allows){let r=Object.assign(Object.assign({},n),a);if(!e($r(r,t),null))return!1}return!0}(e,t,n,r))}function eo(e,t,n,r,i){for(let s of e)if(!ro(to(s,t,n,r,i),t))return!1;return!0}function to(e,t,n,r,i){return"businessHours"===e?no(yr(r,t,i)):"string"==typeof e?no(Ir(n,t=>t.groupId===e)):"object"==typeof e&&e?no(yr(e,t,i)):[]}function no(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function ro(e,t){for(let n of e)if(cr(n,t))return!0;return!1}function io(e){return"auto"===e.height||"auto"===e.viewHeight}function so(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t=io(e)),t}function oo(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t=io(e)),t}function ao(e){const t=e.scrollerSyncerClass;if(!t)throw new RangeError("Must import @fullcalendar/scrollgrid");return t}class lo{constructor(e){this.masterCallback=e,this.rev="",this.current=new Map,this.callbacks=new Map,this.handleValue=(e,t)=>{let{current:n,callbacks:r}=this;null===e?(n.delete(t),r.delete(t)):n.set(t,e),this.rev=et(),this.masterCallback&&this.masterCallback(e,t)}}createRef(e){let t=this.callbacks.get(e);return t||(t=t=>{this.handleValue(t,e)},this.callbacks.set(e,t)),t}}class co extends w{constructor(e,t){super(e,t),this.initialNowDate=pr(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=Tt(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,vt(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:uo(r)},nextState:{nowDate:i,todayRange:uo(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 uo(e){let t=Nt(e);return{start:t,end:_t(t,1)}}co.contextType=Vn;class ho{constructor(e){this._handleScroll=e,this.handleScroll=e=>{this.queuedScroll=e,this.drain()}}drain(){this.queuedScroll&&this._handleScroll(this.queuedScroll)&&(this.queuedScroll=void 0)}}class fo extends Yn{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&ci(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 ii(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&pi(r,t),isStartResizable:!e.disableResizing&&mi(r,t),isEndResizable:!e.disableResizing&&vi(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 b(er,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Si(o),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&ci(this.el,this.props.seg)}}class go extends Yn{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,s=yi(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return b(fo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Di(r,t),defaultGenerator:po,timeText:s}),(e,t)=>b(D,null,b(e,{elTag:"div",elClasses:["fc-event-inner"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&b("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&b("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function po(e){return b(D,null,e.timeText&&b("div",{className:"fc-event-time"},e.timeText),b("div",{className:"fc-event-title-outer"},b("div",{className:"fc-event-title"},e.event.title||b(D,null," "))))}const mo=e=>b(Vn.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return b(er,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))});class vo extends Yn{render(){let{props:e}=this,{seg:t}=e;return b(fo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:yo,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 yo(e){let{title:t}=e.event;return t&&b("div",{className:"fc-event-title"},e.event.title)}function bo(e){return b("div",{className:"fc-"+e})}const So=e=>b(Vn.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,o={num:n.computeWeekNumber(i),text:n.format(i,s),date:i};return b(er,Object.assign({},e,{renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Eo,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function Eo(e){return e.text}class Do{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){console.warn("Doesnt do anything!")}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):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().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 e in r)s.push(e);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:pr(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=vt(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),un(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),un(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=Ai(n,r.dateEnv,vt({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Jr(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof ii){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:_r({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]=_n(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=wr(e,n,r,!1);if(i){let e=new ii(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:_r(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:si(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 ii(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new ii(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return oi(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=Ur(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=vt(e);t&&this.trigger("_timeScrollRequest",t)}}var wo={__proto__:null,BASE_OPTION_DEFAULTS:fn,BaseComponent:Yn,BgEvent:vo,CalendarImpl:Do,CalendarRoot:ki,ContentContainer:er,CustomRenderingStore:class extends class{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)}}{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)}},DateComponent:ms,DateEnv:Wn,DateProfileGenerator:mr,DayCellContainer:ys,DaySeriesModel:Us,DayTableModel:zs,DelayedRunner:Be,ElementDragging:Bs,ElementScrollController:gs,Emitter:qr,EventContainer:fo,EventImpl:ii,Interaction:Ii,MoreLinkContainer:ws,NamedTimeZoneImpl:class{constructor(e){this.timeZoneName=e}},NowIndicatorContainer:mo,NowTimer:co,PositionCache:class{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]}similarTo(e){return hs(this.tops||[],e.tops||[])&&hs(this.bottoms||[],e.bottoms||[])&&hs(this.lefts||[],e.lefts||[])&&hs(this.rights||[],e.rights||[])}},RefMap:lo,ScrollController:fs,ScrollResponder:ho,Scroller:Fs,SegHierarchy:Ts,Slicer:qs,Splitter:Ui,StandardEvent:go,Theme:Ln,ViewContainer:nr,ViewContextType:Vn,WeekNumberContainer:So,WindowScrollController:ps,addDays:_t,addDurations:bt,addMs:Tt,addWeeks:xt,afterSize:es,allowContextMenu:ot,allowSelection:it,applyMutationToEventStore:ei,applyStyle:ze,asCleanDays:function(e){return e.years||e.months||e.milliseconds?0:e.days},asRoughMinutes:function(e){return Dt(e)/6e4},asRoughMs:Dt,asRoughSeconds:function(e){return Dt(e)/1e3},binarySearch:Ps,buildElAttrs:Jn,buildEntryKey:ks,buildEventApis:oi,buildEventRangeKey:Ei,buildIsoString:Vt,buildNavLinkAttrs:rs,buildSegTimeText:yi,collectFromHash:function(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},combineEventUis:jr,compareByFieldSpecs:lt,compareNumbers:ft,compareObjs:In,computeEarliestSegStart:Cs,computeEdges:ls,computeInnerRect:cs,computeRect:ds,computeVisibleDayRange:hr,config:js,constrainPoint:Bi,createDuration:vt,createEmptyEventStore:Mr,createEventInstance:vr,createEventUi:Br,createFormatter:un,diffDates:gr,diffDayAndTime:It,diffDays:kt,diffPoints:Wi,diffWeeks:Mt,diffWholeDays:Ot,diffWholeWeeks:Ht,disableCursor:tt,elementClosest:We,elementMatches:Le,enableCursor:nt,eventTupleToStore:_r,filterHash:Rn,findDirectChildren:function(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].children;for(let e=0;e<i.length;e+=1){let n=i[e];t&&!Le(n,t)||r.push(n)}}return r},findElements:function(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].querySelectorAll(t);for(let e=0;e<i.length;e+=1)r.push(i[e])}return r},flexibleCompare:dt,formatDayString:Gt,formatIsoMonthStr:Qt,formatIsoTimeString:Yt,fracToCssDim:Or,getClippingParents:us,getDateMeta:Fi,getDayClassNames:Vi,getDefaultEventEnd:Kr,getElSeg:di,getEntrySpanEnd:Ms,getEventTargetViaRoot:Ve,getIsHeightAuto:io,getIsRtlScrollbarOnLeft:os,getNormalizedScrollX:Vs,getRectCenter:ji,getRelevantEvents:Tr,getScrollbarWidths:function(){return is||(is=function(){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=as(e);return document.body.removeChild(e),t}()),is},getScrollerSyncerClass:ao,getSegAnchorAttrs:Di,getSegMeta:bi,getSlotClassNames:function(e,t){let n=["fc-slot","fc-slot-"+Ct[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&n.push("fc-slot-today"),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n},getStickyFooterScrollbar:oo,getStickyHeaderDates:so,getUniqueDomId:Qe,greatestDurationDenominator:At,groupIntersectingEntries:Is,guid:et,hasBgRendering:li,hasCustomDayCellContent:bs,identity:Dn,injectStyles:He,interactionSettingsStore:Oi,interactionSettingsToStore:Hi,intersectRanges:or,intersectRects:Pi,intersectSpans:Os,isArraysEqual:Rt,isDateSelectionValid:Js,isDateSpansEqual:Ri,isDimMapsEqual:Gi,isDimsEqual:Qi,isInt:gt,isInteractionValid:Xs,isMultiDayRange:fr,isPropsEqual:Tn,isPropsValid:Ks,isValidDate:zt,mapHash:Cn,memoize:Zt,memoizeArraylike:function(e,t,n){let r=[],i=[];return s=>{let o=r.length,a=s.length,l=0;for(;l<o;l+=1)if(s[l]){if(!Rt(r[l],s[l])){n&&n(i[l]);let r=e.apply(this,s[l]);t&&t(r,i[l])||(i[l]=r)}}else n&&n(i[l]);for(;l<a;l+=1)i[l]=e.apply(this,s[l]);return r=s,i.splice(a),i}},memoizeHashlike:function(e,t,n){let r={},i={};return s=>{let o={};for(let a in s)if(i[a])if(Rt(r[a],s[a]))o[a]=i[a];else{n&&n(i[a]);let r=e.apply(this,s[a]);o[a]=t&&t(r,i[a])?i[a]:r}else o[a]=e.apply(this,s[a]);return r=s,i=o,o}},memoizeObjArg:Xt,mergeEventStores:kr,multiplyDuration:St,padStart:ut,parseBusinessHours:Xr,parseClassNames:Hr,parseDragMeta:Ls,parseEventDef:Cr,parseFieldSpecs:at,parseMarker:jn,pointInsideRect:Ni,preventContextMenu:st,preventDefault:Ye,preventSelection:rt,rangeContainsMarker:dr,rangeContainsRange:cr,rangesEqual:ar,rangesIntersect:lr,refineEventDef:Ar,refineProps:En,removeElement:je,removeExact:function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n},renderFill:bo,requestJson:Mi,setNormalizedScrollX:Gs,setRef:qn,setStateDimMap:function(e,t,n){const r=e.state[t];r&&Gi(r,n)||e.setState({[t]:n})},sliceEventStore:ai,sortEventSegs:fi,startOfDay:Nt,translateRect:function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},triggerDateSelect:Jr,unpromisify:_i,watchHeight:Ki,watchSize:Ji,watchWidth:$i,whenTransitionDone:Xe,wholeDivideDurations:wt},Ao={__proto__:null,createPortal:me,createContext:Fn,flushSync:Un,Component:w,Fragment:D,cloneElement:function(e,n,r){var i,s,o,a,l=v({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),n)"key"==o?i=n[o]:"ref"==o?s=n[o]:l[o]=void 0===n[o]&&void 0!==a?a[o]:n[o];return arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):r),S(e.type,l,i||e.key,s||e.ref,null)},createElement:b,createRef:E,h:b,hydrate:function e(t,n){z(t,n,e)},get isValidElement(){return i},get options(){return n},render:z,toChildArray:k};const Ro=[],Co={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"},xo=Object.assign(Object.assign({},Co),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":"This "+e},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function _o(e){let t=e.length>0?e[0].code:"en",n=Ro.concat(e),r={en:xo};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function To(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(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}(n,t)||xo;return Mo(e,n,r)}(e,t):Mo(e.code,[e.code],e)}function Mo(e,t,n){let r=An([Co,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 ko(e){return{id:et(),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||{},scrollerSyncerClass:e.scrollerSyncerClass||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Io(){let e,t=[],n=[];return(r,i)=>(e&&Rt(r,t)&&Rt(i,n)||(e=function(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:{},scrollerSyncerClass:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let o of e){const e=o.name,a=n[e];void 0===a?(n[e]=o.id,i(o.deps),s=o,r={premiumReleaseDate:Ho((t=r).premiumReleaseDate,s.premiumReleaseDate),reducers:t.reducers.concat(s.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:t.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),s.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(s.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),s.views),viewPropsTransformers:t.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(s.calendarInteractions),componentInteractions:t.componentInteractions.concat(s.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),s.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||s.initialView,elementDraggingImpl:t.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),s.optionChangeHandlers),scrollerSyncerClass:t.scrollerSyncerClass||s.scrollerSyncerClass,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),s.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),s.propSetHandlers)}):a!==o.id&&console.warn(`Duplicate plugin '${e}'`)}var t,s}return e&&i(e),i(t),r}(r,i)),t=r,n=i,e)}function Ho(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class Oo extends Ln{}function No(e,t,n,r){if(t[e])return t[e];let i=function(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=No(l,t,n,r)}!a&&c&&(a=c.component);if(!a)return null;return{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:{})}}(e,t,n,r);return i&&(t[e]=i),i}function Po(e){return Cn(e,Bo)}function Bo(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=jo(t):!n||n.prototype instanceof Yn||(n=jo(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function jo(e){return t=>b(Vn.Consumer,null,n=>b(er,{elTag:"div",elClasses:rr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function Wo(e,t,n,r){let i=Po(e),s=Po(t.views);return Cn(function(e,t){let n,r={};for(n in e)No(n,r,e,t);for(n in t)No(n,r,e,t);return r}(i,s),e=>function(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=function(e){let t=JSON.stringify(e),n=Lo[t];void 0===n&&(n=vt(e),Lo[t]=n);return n}(s),o)){let e=At(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(fn)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(fn)}}(e,s,t,n,r))}Oo.prototype.classes={root:"fc-theme-standard",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Oo.prototype.baseIconClass="fc-icon",Oo.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"},Oo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Oo.prototype.iconOverrideOption="buttonIcons",Oo.prototype.iconOverrideCustomButtonOption="icon",Oo.prototype.iconOverridePrefix="fc-icon-";let Lo={};function Uo(e,t,n){let r=t?t.activeRange:null;return Vo({},function(e,t){let n=zr(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=Ur(e,t,n);r&&i.push(r)}return i}(e,n),r,n)}function zo(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Vo(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return s=e,o=t.sourceId,Rn(s,e=>e.sourceId!==o);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Go(e,i,r):e;case"FETCH_EVENT_SOURCES":return Qo(e,t.sourceIds?xn(t.sourceIds):qo(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var s,o}function Fo(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Vo(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=Go(i,n,r)),Object.assign(Object.assign({},e),i)}function Go(e,t,n){return Qo(e,Rn(e,e=>function(e,t,n){if(!Zo(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)),t,!1,n)}function Qo(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=Yo(a,n,r,i):s[o]=a}return s}function Yo(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=et();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||console.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 qo(e,t){return Rn(e,e=>Zo(e,t))}function Zo(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Xo(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Jo(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function $o(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 Ko(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 ea(e,t,n,r,i){return{header:e.headerToolbar?ta(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?ta(e.footerToolbar,e,t,n,r,i):null}}function ta(e,t,n,r,i,s){let o={},a=[],l=!1;for(let c in e){let d=na(e[c],t,n,r,i,s);o[c]=d.widgets,a.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function na(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||{},h=e?e.split(" "):[],f=[],g=!1;return{widgets:h.map(e=>e.split(",").map(e=>{if("title"===e)return g=!0,{buttonName:e};let n,h,p,m,v,y;if(n=a[e])p=e=>{n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),y=n.hint||n.text;else if(h=i[e]){f.push(e),p=()=>{s.changeView(e)},(v=h.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;y=ht(h.buttonTitleOverride||h.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(p=()=>{s[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=ht(d[t]||u[t],[c.year||"year","year"],c[e])}else y=t=>ht(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:p,buttonIcon:m,buttonText:v,buttonHint:y}})),viewsWithButtons:f,hasTitle:g}}class ra{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]}}function ia(e,t){let n=_n(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const sa=[ko({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),ko({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;_i(e.eventSource.meta.bind(null,Ci(e.range,r)),e=>t({rawEvents:e}),n)}}]}),ko({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Dn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!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=function(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,c={};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);return c}(r,e.range,e.context);Mi(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),ko({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let i,s={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&&(i=e.duration),!i&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,i={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:s}}var n,r;return null},expand(e,t,n){let r=or(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let i=e?xn(e):null,s=Nt(n.start),o=n.end,a=[];for(;s<o;){let e;i&&!i[s.getUTCDay()]||(e=t?r.add(s,t):s,a.push(e)),s=_t(s,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:Dn,startTime:vt,endTime:vt,duration:vt,startRecur:Dn,endRecur:Dn}}),ko({name:"change-handler",optionChangeHandlers:{events(e,t){ia([e],t)},eventSources:ia}}),ko({name:"misc",isLoadingFuncs:[e=>Fo(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Ci(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",oi(e,t))}}})];class oa{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Be(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;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 aa(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,un(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=Ot(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class la{constructor(e){this.computeCurrentViewData=Zt(this._computeCurrentViewData),this.organizeRawLocales=Zt(_o),this.buildLocale=Zt(To),this.buildPluginHooks=Io(),this.buildDateEnv=Zt(ca),this.buildTheme=Zt(da),this.parseToolbars=Zt(ea),this.buildViewSpecs=Zt(Wo),this.buildDateProfileGenerator=Xt(ua),this.buildViewApi=Zt(ha),this.buildViewUiProps=Xt(pa),this.buildEventUiBySource=Zt(fa,Tn),this.buildEventUiBases=Zt(ga),this.parseContextBusinessHours=Xt(va),this.buildTitle=Zt(aa),this.emitter=new qr,this.actionRunner=new oa(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=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=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):pr(e.now,t)}(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);dr(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 e of n.pluginHooks.contextInit)e(a);let l=Uo(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,d));ma(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=function(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(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=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(c,e),d=function(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}return e}(d,e,c,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&dr(d.currentRange,c)||(c=d.currentRange.start);let u=zo(n.eventSources,e,d,l),h=Fr(n.eventStore,e,u,d,l),f=Fo(u)&&!a.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:g,selectionConfig:p}=this.buildViewUiProps(l),m=this.buildEventUiBySource(u),v={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:d,eventSources:u,eventStore:h,renderableEventStore:f,selectionConfig:p,eventUiBases:this.buildEventUiBases(f.defs,g,m),businessHours:this.parseContextBusinessHours(l),dateSelection:Xo(n.dateSelection,e),eventSelection:Jo(n.eventSelection,e),eventDrag:$o(n.eventDrag,e),eventResize:Ko(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of s.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=ma(n,l),S=ma(v,l);!b&&S?r.trigger("loading",!0):b&&!S&&r.trigger("loading",!1),this.state=v,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=function(e,t,n){let r=t?t.activeRange:null;return Qo(e,qo(e,n),r,!0,n)}(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=Qr(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=Qr(s.renderableEventStore,n.dateEnv,s.dateEnv));for(let e in o)-1===this.optionsForHandling.indexOf(e)&&a[e]===l[e]||o[e](l[e],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,t);ya(a);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,this.stableOptionOverrides,d,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Sn([fn,e,t]),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],sa),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hn),gn),pn),a.listenerRefiners),a.optionRefiners),c={},d=Sn([fn,o,e,t]),u={},h=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,g=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===h[e]||mn[e]&&e in h&&mn[e](h[e],d[e]))?u[e]=f[e]:l[e]?(u[e]=l[e](d[e]),g=!0):c[e]=h[e];return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{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);return ya(o),{viewSpec:i,options:s,dateProfileGenerator: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,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let s=Sn([fn,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hn),gn),pn),bn),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let e in s)s[e]===l[e]||mn[e]&&mn[e](s[e],l[e])?a[e]=c[e]:(s[e]===this.currentCalendarOptionsInput[e]||mn[e]&&mn[e](s[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(a[e]=this.currentCalendarOptionsRefined[e]):o[e]?a[e]=o[e](s[e]):u[e]=s[e],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function ca(e,t,n,r,i,s,o,a){let l=To(t||o.defaultCode,o.map);return new Wn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function da(e,t){return new(t.themeClasses[e.themeSystem]||Oo)(e)}function ua(e){return new(e.dateProfileGeneratorClass||mr)(e)}function ha(e,t,n){return new ra(e,t,n)}function fa(e){return Cn(e,e=>e.ui)}function ga(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function pa(e){let{options:t}=e;return{eventUiSingleBase:Br({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:Br({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ma(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function va(e){return Xr(e.options.businessHours,e)}function ya(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class ba extends Yn{render(){let e=this.props.widgetGroups.map(e=>this.renderWidgetGroup(e));return b("div",{className:"fc-toolbar-chunk fc-toolbar-"+this.props.name},...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(b("h2",{className:"fc-toolbar-title"},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(b("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":i,className:d.join(" "),onClick:o},a||(l?b("span",{className:l,role:"img"}):"")))}}if(r.length>1){return b("div",{className:i&&n.getClass("buttonGroup")||""},...r)}return r[0]}}class Sa extends Yn{render(){let e,t,{model:n,extraClassName:r}=this.props,i=!1,s=n.sectionWidgets,o=s.center;return s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end,b("div",{className:[r||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return b(ba,{key:e,name:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})}}class Ea extends Ii{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=di(t);if(i&&n.isValidSegDownEl(e.target)){let s=We(e.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new ii(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=qe(e.el,"click",".fc-event",this.handleSegClick)}}class Da extends Ii{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{di(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=function(e,t,n,r){let i;return qe(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)}})}(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=di(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new ii(i,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi})}}class wa extends w{render(){const{props:e}=this;return b("div",{className:["fc-view-harness",null!=e.height?"fc-view-harness-fixedheight":e.heightLiquid?"fc-view-harness-liquid":null!=e.aspectRatio?"fc-view-harness-aspectratio":""].join(" "),style:{height:e.height,paddingBottom:null!=e.aspectRatio?1/e.aspectRatio*100+"%":void 0}},e.children)}}class Aa extends Qn{constructor(){super(...arguments),this.buildViewContext=Zt(Gn),this.buildViewPropTransformers=Zt(Ca),this.buildToolbarProps=Zt(Ra),this.interactionsStore={},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[Ea,Da].concat(this.props.pluginHooks.componentInteractions).map(e=>new e(n));this.interactionsStore[e.uid]=r,Oi[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 Oi[e.uid]}}render(){let e,t,{props:n}=this,{toolbarConfig:r,options:i}=n,s=this.buildToolbarProps(n.viewSpec,n.dateProfile,n.dateProfileGenerator,n.currentDate,pr(n.options.now,n.dateEnv),n.viewTitle),o=!1;n.forPrint||io(i)||(null!=i.height?o=!0:null!=i.contentHeight?e=i.contentHeight:t=Math.max(i.aspectRatio,.5));let a=this.buildViewContext(n.viewSpec,n.viewApi,n.options,n.dateProfileGenerator,n.dateEnv,n.theme,n.pluginHooks,n.dispatch,n.getCurrentData,n.emitter,n.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return b(Vn.Provider,{value:a},r.header&&b(Sa,Object.assign({extraClassName:"fc-header-toolbar",model:r.header},s)),b(wa,{height:e,heightLiquid:o,aspectRatio:t},this.renderView(n),this.buildAppendContent()),r.footer&&b(Sa,Object.assign({extraClassName:"fc-footer-toolbar",model:r.footer},s)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e));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(){for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return b(D,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}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,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of i)Object.assign(r,t.transform(r,e));return b(n.component,Object.assign({},r))}}function Ra(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&&!dr(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function Ca(e){return e.map(e=>new e)}function xa(e){let t=To(e.locale||"en",_o([]).map);return new Wn(Object.assign(Object.assign({timeZone:fn.timeZone,calendarSystem:"gregory"},e),{locale:t}))}js.touchMouseIgnoreWait=500;let _a=0,Ta=0,Ma=!1;class ka{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,_a+=1,setTimeout(()=>{_a-=1},js.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new qr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Ta+=1,1===Ta&&window.addEventListener("touchmove",Ia,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Ta-=1,Ta||window.removeEventListener("touchmove",Ia,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!We(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){Ma=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?We(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return _a||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Ma=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,i=e.touches,s=0,o=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(s=n-this.origPageX,o=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:s,deltaY:o}}}function Ia(e){Ma&&e.preventDefault()}class Ha{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",ze(n,{left:r.left,top:r.top}),Xe(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(je(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&ze(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),ze(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class Oa extends fs{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Na extends Oa{constructor(e,t){super(new gs(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return cs(this.scrollController.el)}}class Pa extends Oa{constructor(e){super(new ps,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Ba="function"==typeof performance?performance.now:Date.now;class ja{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=Ba();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,r=t-window.scrollY,i=null===this.pointerScreenY?0:r-this.pointerScreenY,s=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ba()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,i=r-e.distance,s=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*o)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let s of i){let i=s.clientRect,o=e-i.left,a=i.right-e,l=t-i.top,c=i.bottom-t;o>=0&&a>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:s,name:"top",distance:l}),c<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:s,name:"left",distance:o}),a<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>a)&&(r={scrollCache:s,name:"right",distance:a}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new Pa(!1):new Na(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class Wa extends Bs{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,rt(document.body),st(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:r,deltaY:i}=e;t=r*r+i*i,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,it(document.body),ot(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new ka(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new Ha,this.autoScroller=new ja}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class La{constructor(e){this.el=e,this.origRect=ds(e),this.scrollCaches=us(e).map(e=>new Na(e,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!Ua(e.getEventTarget())&&!Ni(n,e.clientRect))return!1;return!0}}function Ua(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class za{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new qr}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i instanceof HTMLElement&&(t=ds(i),r=Bi(r,t));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&t){let e=Pi(t,s.rect);e&&(r=ji(e))}this.coordAdjust=Wi(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&Fa(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=Cn(this.droppableStore,e=>(e.component.prepareHits(),new La(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,i=null;for(let s in n){let o=n[s].component,a=r[s];if(a&&a.isWithinClipping(e,t)){let n=a.computeLeft(),r=a.computeTop(),l=e-n,c=t-r,{origRect:d}=a,u=d.right-d.left,h=d.bottom-d.top;if(l>=0&&l<u&&c>=0&&c<h){let e=o.queryHit(l,c,u,h);e&&cr(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||a.el.contains(a.el.getRootNode().elementFromPoint(l+n-window.scrollX,c+r-window.scrollY)))&&(!i||e.layer>i.layer)&&(e.componentId=s,e.context=o.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,i=e)}}}return i}}function Fa(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Ri(e.dateSpan,t.dateSpan)}function Va(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,{date:(i=t.dateEnv).toDate(r.range.start),dateStr:i.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class Ga extends Ii{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:i}=r,{options:s}=n.context,o=n.context;this.subjectEl=e.subjectEl;let a=this.subjectSeg=di(e.subjectEl),l=(this.eventRange=a.eventRange).instance.instanceId;this.relevantEvents=Tr(o.getCurrentData().eventStore,l),r.minDistance=e.isTouch?0:s.eventDragMinDistance,r.delay=e.isTouch&&l!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,s.fixedMirrorParent?i.parentNode=s.fixedMirrorParent:i.parentNode=We(t,".fc"),i.revertDuration=s.dragRevertDuration;let c=n.isValidSegDownEl(t)&&!We(t,".fc-event-resizer");r.setIgnoreMove(!c),this.isDragging=c&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new ii(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,i=this.component.context,s=null,o=null,a=null,l=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){s=e.context;let t=s.options;i===s||t.editable&&t.droppable?(o=function(e,t,n,r){let i=e.dateSpan,s=t.dateSpan,o=i.range.start,a=s.range.start,l={};i.allDay!==s.allDay&&(l.allDay=s.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,o=s.allDay?Nt(n):n);let c=gr(o,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(l.allDay=!1);let d={datesDelta:c,standardProps:l};for(let n of r)n(d,e,t);return d}(r,e,this.eventRange.instance.range.start,s.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(a=ei(n,s.getCurrentData().eventUiBases,o,s),c.mutatedEvents=a,Xs(c,e.dateProfile,s)||(l=!0,o=null,a=null,c.mutatedEvents={defs:{},instances:{}}))):s=null}this.displayDrag(s,c),l?tt():nt(),t||(i===s&&Fa(r,e)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=s,this.validMutation=o,this.mutatedRelevantEvents=a)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:i}=this,s=this.eventRange.def,o=this.eventRange.instance,a=new ii(t,s,o),l=this.relevantEvents,c=this.mutatedRelevantEvents,{finalHit:d}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:a,jsEvent:e.origEvent,view:n}),i){if(r===t){let r=new ii(t,c.defs[s.defId],o?c.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});let d={oldEvent:a,event:r,relatedEvents:oi(c,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},u={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(u,e(i,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},d),u),{el:e.subjectEl,delta:i.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",d)}else if(r){let i={event:a,relatedEvents:oi(l,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},i),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:l}),t.emitter.trigger("eventRemove",i);let u=c.defs[s.defId],h=c.instances[o.instanceId],f=new ii(r,u,h);r.dispatch({type:"MERGE_EVENTS",eventStore:c});let g={event:f,relatedEvents:oi(c,r,h),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};r.emitter.trigger("eventAdd",g),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},Va(d.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:d.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},g),{draggedEl:e.subjectEl,view:d.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new Wa(e.el);r.pointer.selector=Ga.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new za(this.dragging,Oi);i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}Ga.SELECTOR=".fc-event-draggable, .fc-event-resizable";const Qa={fixedMirrorParent:Dn},Ya={dateClick:Dn,eventDragStart:Dn,eventDragStop:Dn,eventDrop:Dn,eventResizeStart:Dn,eventResizeStop:Dn,eventResize:Dn,drop:Dn,eventReceive:Dn,eventLeave:Dn};class qa{constructor(e,t){this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=e=>{this.dragMeta=this.buildDragMeta(e.subjectEl)},this.handleHitUpdate=(e,t,n)=>{let{dragging:r}=this.hitDragging,i=null,s=null,o=!1,a={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:this.dragMeta.create};e&&(i=e.context,this.canDropElOnCalendar(n.subjectEl,i)&&(s=function(e,t,n){let r=Object.assign({},t.leftoverProps);for(let i of n.pluginHooks.externalDefTransforms)Object.assign(r,i(e,t));let{refined:i,extra:s}=Ar(r,n),o=Cr(i,s,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),a=e.range.start;e.allDay&&t.startTime&&(a=n.dateEnv.add(a,t.startTime));let l=t.duration?n.dateEnv.add(a,t.duration):Kr(e.allDay,a,n),c=vr(o.defId,{start:a,end:l});return{def:o,instance:c}}(e.dateSpan,this.dragMeta,i),a.mutatedEvents=_r(s),o=!Xs(a,e.dateProfile,i),o&&(a.mutatedEvents={defs:{},instances:{}},s=null))),this.displayDrag(i,a),r.setMirrorIsVisible(t||!s||!document.querySelector(".fc-event-mirror")),o?tt():nt(),t||(r.setMirrorNeedsRevert(!s),this.receivingContext=i,this.droppableEvent=s)},this.handleDragEnd=e=>{let{receivingContext:t,droppableEvent:n}=this;if(this.clearDrag(),t&&n){let r=this.hitDragging.finalHit,i=r.context.viewApi,s=this.dragMeta;if(t.emitter.trigger("drop",Object.assign(Object.assign({},Va(r.dateSpan,t)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:i})),s.create){let r=_r(n);t.dispatch({type:"MERGE_EVENTS",eventStore:r}),e.isTouch&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:n.instance.instanceId}),t.emitter.trigger("eventReceive",{event:new ii(t,n.def,n.instance),relatedEvents:[],revert(){t.dispatch({type:"REMOVE_EVENTS",eventStore:r})},draggedEl:e.subjectEl,view:i})}}this.receivingContext=null,this.droppableEvent=null};let n=this.hitDragging=new za(e,Oi);n.requireInitial=!1,n.emitter.on("dragstart",this.handleDragStart),n.emitter.on("hitupdate",this.handleHitUpdate),n.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}buildDragMeta(e){return"object"==typeof this.suppliedDragMeta?Ls(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?Ls(this.suppliedDragMeta(e)):function(e){let t=function(e,t){let n=js.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event");return Ls(t?JSON.parse(t):{create:!1})}(e)}displayDrag(e,t){let n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})}canDropElOnCalendar(e,t){let n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean(Le(e,n))}}js.dataAttrPrefix="";class Za extends Bs{constructor(e){super(e),this.shouldIgnoreMove=!1,this.mirrorSelector="",this.currentMirrorEl=null,this.handlePointerDown=e=>{this.emitter.trigger("pointerdown",e),this.shouldIgnoreMove||this.emitter.trigger("dragstart",e)},this.handlePointerMove=e=>{this.shouldIgnoreMove||this.emitter.trigger("dragmove",e)},this.handlePointerUp=e=>{this.emitter.trigger("pointerup",e),this.shouldIgnoreMove||this.emitter.trigger("dragend",e)};let t=this.pointer=new ka(e);t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("pointermove",this.handlePointerMove),t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}setIgnoreMove(e){this.shouldIgnoreMove=e}setMirrorIsVisible(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{let e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;e&&(this.currentMirrorEl=e,e.style.visibility="hidden")}}}var Xa=ko({name:"@fullcalendar/interaction",componentInteractions:[class extends Ii{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&Fa(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},Va(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new Wa(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new za(this.dragging,Hi(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends Ii{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,i=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,i=t.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(ft);let o={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(o,n)}return o.range={start:s[0],end:s[3]},o.allDay=r.allDay,o}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&Js(r,e.dateProfile,n)||(i=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),i?tt():nt(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(Jr(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new Wa(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new za(this.dragging,Hi(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},Ga,class extends Ii{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=di(this.querySegEl(e)),r=this.eventRange=n.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=Tr(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=di(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new ii(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,i=this.relevantEvents,s=this.hitDragging.initialHit,o=this.eventRange.instance,a=null,l=null,c=!1,d={affectedEvents:i,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){e.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,e)||(a=function(e,t,n,r){let i=e.context.dateEnv,s=e.dateSpan.range.start,o=t.dateSpan.range.start,a=gr(s,o,i,e.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}(s,e,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))}a&&(l=ei(i,r.getCurrentData().eventUiBases,a,r),d.mutatedEvents=l,Xs(d,e.dateProfile,r)||(c=!0,a=null,l=null,d.mutatedEvents=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:d}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),c?tt():nt(),t||(a&&Fa(s,e)&&(a=null),this.validMutation=a,this.mutatedRelevantEvents=l)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,i=new ii(t,n,r),s=this.relevantEvents,o=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let a=new ii(t,o.defs[n.defId],r?o.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:o});let l={oldEvent:i,event:a,relatedEvents:oi(o,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},l),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||vt(0),endDelta:this.validMutation.endDelta||vt(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",l)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new Wa(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new za(this.dragging,Hi(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return We(e.subjectEl,".fc-event")}}],calendarInteractions:[class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=Ve(e.origEvent);this.matchesCancel=!!We(n,t),this.matchesEvent=!!We(n,Ga.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new ka(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:Wa,optionRefiners:Qa,listenerRefiners:Ya});He(":root{--fc-daygrid-event-dot-width:8px}.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-daygrid-cell.fc-day-today{background-color:var(--fc-today-bg-color)}.fc-daygrid-row-spacious .fc-daygrid-cell-inner{min-height:3em}.fc-daygrid-cell-header{display:flex;flex-direction:row-reverse}.fc-day-other .fc-daygrid-cell-header{opacity:.3}.fc-daygrid-cell-number{padding:4px;position:relative;z-index:4}.fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc-daygrid-cell-footer{align-items:flex-start;display:flex;flex-direction:column;font-size:.85em;margin:0 2px}.fc-daygrid-row-spacious .fc-daygrid-cell-footer{margin-bottom:1em!important}.fc-daygrid-row-compact .fc-daygrid-cell-footer{align-items:stretch}.fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc-daygrid-row-compact .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);padding:1px}.fc-daygrid-cell .fc-non-business{z-index:1}.fc-daygrid-cell .fc-bg-event{z-index:2}.fc-daygrid-cell .fc-highlight{z-index:3}.fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);margin-top:1px;z-index:6}.fc-daygrid-event.fc-event-mirror{z-index:7}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;direction:row;display:flex;padding:2px 0;position:relative}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-daygrid-dot-event .fc-event-time,.fc-daygrid-dot-event .fc-event-title{overflow:hidden;white-space:nowrap}.fc-daygrid-dot-event .fc-event-title{flex-basis:0;flex-grow:1;font-weight:700;min-width:0}");class Ja extends qs{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class $a extends mr{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return Ka({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function Ka(e){let t,{dateEnv:n,currentRange:r}=e,{start:i,end:s}=r;if(e.snapToWeek&&(i=n.startOfWeek(i),t=n.startOfWeek(s),t.valueOf()!==s.valueOf()&&(s=xt(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(_t(r.end,-1)));s=xt(s,6-Math.ceil(Mt(e,s)))}return{start:i,end:s}}function el(e){return e.text}function tl(e,t){let n=new Us(e.renderRange,t);return new zs(n,/year|month|week/.test(e.currentRangeUnit))}function nl(e,t,n){if(null==n)return[void 0,void 0];return n/e<t?[t*e,t]:[n,void 0]}function rl(e,t){return[t?e.map(e=>({colSpan:1,date:e})):e.map(e=>({colSpan:1,dow:e.getUTCDay()}))]}function il(e,t,n,r){let i,s,o;if(null!=t)o=(e.lastCol-e.firstCol+1)*t,r?s=e.firstCol*t:i=e.firstCol*t;else{const t=1/n;o=Or((e.lastCol-e.firstCol+1)*t),r?s=Or(e.firstCol*t):i=Or(e.firstCol*t)}return{left:i,right:s,width:o}}function sl(e,t,n,r,i){const s=null!=n?n:t/r,o=Math.floor(e/s),a=o*s;return{col:i?r-o-1:o,left:a,right:a+s}}function ol(e,t){return e.querySelectorAll(":scope > [role=row]")[t]}function al(e,t){return e.querySelectorAll(":scope > [role=gridcell]")[t]}class ll extends Yn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{dateProfile:n,date:r,extraRenderProps:i,extraDataAttrs:s}=e,{dateEnv:o,options:a,theme:l,viewApi:c}=t,d=Fi(r,e.todayRange,null,n),u=o.format(r,e.dayHeaderFormat),h=!d.isDisabled&&e.navLink?rs(t,r):{},f=Object.assign(Object.assign(Object.assign({date:o.toDate(r),view:c},i),{text:u}),d);return b(er,{elTag:"div",elClasses:[...Vi(d),...e.extraClassNames||[],"fc-header-cell","fc-cell",null!=e.colWidth?"":"fc-liquid","fc-flex-column","fc-align-center"],elAttrs:Object.assign({"data-date":d.isDisabled?void 0:Gt(r)},s),elStyle:{width:null!=e.colWidth?e.colWidth*(e.colSpan||1):void 0},renderProps:f,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:el,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},t=>b("div",{ref:this.innerElRef,className:["fc-flex-column",e.isSticky?"fc-sticky-x":""].join(" ")},!d.isDisabled&&b(t,{elTag:"a",elAttrs:h,elClasses:["fc-cell-inner","fc-padding-sm"]})))}componentDidMount(){const e=this.innerElRef.current;this.disconectInnerHeight=Ki(e,e=>{qn(this.props.innerHeightRef,e)})}componentWillUnmount(){this.disconectInnerHeight()}}function cl(e,t){const n=[];for(let e=0;e<t;e++)n[e]=[];for(const t of e)n[t.row].push(t);return n}function dl(e,t){const n=[];if(e){for(let r=0;r<t;r++)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(const t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e++)n[e]=null;return n}function ul(e,t){let n=[];for(let e=0;e<t;e++)n.push([]);for(let t of e)for(let e=t.firstCol;e<=t.lastCol;e++)t.firstCol!==e&&(t=Object.assign(Object.assign({},t),{firstCol:e,lastCol:e,isStart:!1,isEnd:t.isEnd&&t.lastCol===e,isStandin:!0})),n[e].push(t);return n}const hl=un({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function fl(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 gl extends Yn{render(){let{props:e}=this;return b(go,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:hl,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class pl extends Yn{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,i=yi(r,n.eventTimeFormat||hl,t,!0,e.defaultDisplayEventEnd);return b(fo,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Di(e.seg,t),defaultGenerator:ml,timeText:i,isResizing:!1,isDateSelecting:!1}))}}function ml(e){return b(D,null,b("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&b("div",{className:"fc-event-time"},e.timeText),b("div",{className:"fc-event-title"},e.event.title||b(D,null," ")))}class vl extends Yn{render(){let{props:e}=this;return b(ws,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,segs:e.segs,hiddenSegs:e.hiddenSegs,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return b(D,null,e.segs.map(n=>{let r=n.eventRange.instance.instanceId;return b("div",{key:r,style:{visibility:t[r]?"hidden":""}},fl(n)?b(pl,Object.assign({seg:n,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},bi(n,e.todayRange))):b(gl,Object.assign({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},bi(n,e.todayRange))))}))}})}}class yl extends ms{constructor(){super(...arguments),this.innerElRef={current:null},this.headerWrapElRef={current:null}}render(){let{props:e,context:t}=this,{options:n,dateEnv:r}=t;const i=e.showDayNumber&&function(e,t,n){const{start:r,end:i}=t,s=Tt(i,-1),o=n.getYear(r),a=n.getMonth(r),l=n.getYear(s),c=n.getMonth(s);return!(o===l&&a===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<i.valueOf())}(e.date,e.dateProfile.currentRange,r);return b(ys,{elTag:"div",elClasses:["fc-daygrid-cell","fc-cell",null!=e.width?"":"fc-liquid","fc-flex-column",...e.extraClassNames||[]],elAttrs:Object.assign(Object.assign({},e.extraDataAttrs),{role:"gridcell"}),elStyle:{width:e.width},extraRenderProps:e.extraRenderProps,defaultGenerator:bl,date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,isMonthStart:i},(r,s)=>b("div",{ref:this.innerElRef,className:["fc-daygrid-cell-inner",e.fgLiquidHeight?"fc-liquid":""].join(" ")},b("div",{ref:this.headerWrapElRef,className:"fc-flex-column"},!s.isDisabled&&(e.showDayNumber||bs(n))&&b("div",{className:"fc-daygrid-cell-header"},b(r,{elTag:"a",elClasses:["fc-daygrid-cell-number",i&&"fc-daygrid-month-start"],elAttrs:rs(t,e.date)}))),b("div",{className:"fc-daygrid-cell-main",style:{height:e.fgLiquidHeight?"":e.fgHeight}},e.fg),b("div",{className:"fc-daygrid-cell-footer",style:e.fgLiquidHeight?{position:"relative",top:e.fgHeight}:{}},b(vl,{allDayDate:e.date,segs:e.segs,hiddenSegs:e.hiddenSegs,alignmentElRef:this.innerElRef,alignGridTop:!e.showDayNumber,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange})),e.bg))}componentDidMount(){const e=this.innerElRef.current,t=this.headerWrapElRef.current;this.detachInnerHeight=Ki(e,e=>{qn(this.props.innerHeightRef,e)}),this.detachHeaderHeight=Ki(t,e=>{qn(this.props.headerHeightRef,e)})}componentWillUnmount(){this.detachInnerHeight(),this.detachHeaderHeight(),qn(this.props.innerHeightRef,null),qn(this.props.headerHeightRef,null)}}function bl(e){return e.dayNumberText||b(D,null," ")}function Sl(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function El(e){return Sl(e)+":"+e.lastCol}class Dl extends Ts{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[ks(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].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=ks(s);if(!i[e])if(this.allowReslicing){const e=Object.assign(Object.assign({},s),{span:Os(s.span,t.span)});i[ks(e)]=!0,r[o][a]=e,n.push(e),this.splitEntry(s,t,n)}else i[e]=!0,n.push(s)}super.handleInvalidInsertion(e,t,n)}}class wl extends w{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return b("div",{className:"fc-abs",style:e.style,ref:this.rootElRef},e.children)}componentDidMount(){const e=this.rootElRef.current;this.detachHeight=Ki(e,e=>{qn(this.props.heightRef,e)})}componentWillUnmount(){this.detachHeight()}}const Al=un({week:"narrow"});class Rl extends Yn{constructor(){super(...arguments),this.cellInnerHeightRefMap=new lo(()=>{es(this.handleInnerHeights)}),this.cellHeaderHeightRefMap=new lo(()=>{es(this.handleHeaderHeights)}),this.segHeightRefMap=new lo(()=>{es(this.handleSegHeights)}),this.handleRootEl=e=>{this.rootEl=e,qn(this.props.rootElRef,e)},this.handleHeaderHeights=()=>{const e=this.cellHeaderHeightRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);this.state.headerHeight!==t&&this.setState({headerHeight:t})},this.handleInnerHeights=()=>{const{props:e}=this,t=!0===e.dayMaxEvents||!0===e.dayMaxEventRows,n=this.cellInnerHeightRefMap.current;let r=0;for(const e of n.values())r=Math.max(r,e);t?this.state.innerHeight!==r&&this.setState({innerHeight:r}):qn(e.innerHeightRef,r)},this.handleSegHeights=()=>{this.setState({segHeightRev:this.segHeightRefMap.rev})}}render(){const{props:e,state:t,context:n,cellInnerHeightRefMap:r,cellHeaderHeightRefMap:i}=this,{cells:s}=e,{options:o}=n,a=e.cells[0].date,l=e.cells.length,c=!0===e.dayMaxEvents||!0===e.dayMaxEventRows,d=fi(e.fgEventSegs,o.eventOrder),u=ul(d,l),h=ul(e.bgEventSegs,l),f=ul(e.businessHourSegs,l),g=ul(this.getHighlightSegs(),l),p=ul(this.getMirrorSegs(),l),[m,v,y]=function(e,t,n,r,i,s,o,a){const l=n.length,c=[],d=[];for(let e=0;e<l;e++)c.push([]),d.push(0);const u=e.map((e,t)=>({index:t,seg:e,span:{start:e.firstCol,end:e.lastCol+1}}));let h=new Dl(n=>t.get(El(e[n.index])));h.allowReslicing=!1,h.strictOrder=s,!0===o||!0===a?(h.maxCoord=i,h.hiddenConsumes=!0):"number"==typeof o?h.maxStackCnt=o:"number"==typeof a&&(h.maxStackCnt=a,h.hiddenConsumes=!0);const f=h.addSegs(u),g=h.toRects(),p={};for(const t of g){p[Sl(e[t.index])]=r+t.levelCoord;let{start:n,end:i}=t.span;for(;n<i;n++)d[n]=Math.max(d[n],t.levelCoord+t.thickness)}for(const t of f){const{span:n}=t,r=e[t.index];for(let e=n.start;e<n.end;e++)c[e].push(r)}return[p,d,c]}(d,this.segHeightRefMap.current,s,t.headerHeight,c&&null!=t.innerHeight&&null!=t.headerHeight?t.innerHeight-t.headerHeight:void 0,o.eventOrderStrict,e.dayMaxEvents,e.dayMaxEventRows),S=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return b("div",{role:e.cellGroup?void 0:"row",className:["fc-daygrid-row",e.forceVSpacing?"fc-daygrid-row-spacious":e.compact?"fc-daygrid-row-compact":"",e.cellGroup?"fc-flex-row":"fc-row","fc-rel",e.className||""].join(" "),style:{minHeight:e.minHeight},ref:this.handleRootEl},e.cells.map((t,n)=>{const s=this.renderFgSegs(u[n],m,e.todayRange,S),o=this.renderFgSegs(p[n],m,e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1);return b(yl,{key:t.key,dateProfile:e.dateProfile,todayRange:e.todayRange,date:t.date,showDayNumber:e.showDayNumbers,segs:u[n],hiddenSegs:y[n],fgLiquidHeight:c,fg:b(D,null,b(D,null,s),b(D,null,o)),bg:b(D,null,this.renderFillSegs(g[n],"highlight"),this.renderFillSegs(f[n],"non-business"),this.renderFillSegs(h[n],"bg-event")),eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,extraRenderProps:t.extraRenderProps,extraDateSpan:t.extraDateSpan,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,fgHeight:v[n],width:e.colWidth,innerHeightRef:r.createRef(t.key),headerHeightRef:i.createRef(t.key)})}),e.showWeekNumbers&&b(So,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:rs(n,a,"week"),date:a,defaultFormat:Al}))}renderFgSegs(e,t,n,r,i,s,o){const{props:a,context:l,segHeightRefMap:c}=this,{isRtl:d}=l,{colWidth:u,eventSelection:h}=a,f=a.cells.length,g=1===a.cells.length,p=i||s||o,m=[];for(const a of e){const{left:e,right:l,width:v}=il(a,u,f,d),{instanceId:y}=a.eventRange.instance,S=El(a),E=t[Sl(a)],D=!a.isStandin&&null!=E&&!r[y];m.push(b(wl,{key:S,style:{visibility:D?"":"hidden",top:E,left:e,right:l,width:v},heightRef:p||a.isStandin?null:c.createRef(S)},fl(a)?b(pl,Object.assign({seg:a,isDragging:i,isSelected:y===h,defaultDisplayEventEnd:g},bi(a,n))):b(gl,Object.assign({seg:a,isDragging:i,isResizing:s,isDateSelecting:o,isSelected:y===h,defaultDisplayEventEnd:g},bi(a,n)))))}return m}renderFillSegs(e,t){const{props:n,context:r}=this,{isRtl:i}=r,{todayRange:s,colWidth:o}=n,a=n.cells.length,l=[];for(const n of e){const{left:e,right:r,width:c}=il(n,o,a,i),d=!n.isStandin;l.push(b("div",{key:Ei(n.eventRange),className:"fc-fill-y",style:{visibility:d?"":"hidden",left:e,right:r,width:c}},"bg-event"===t?b(vo,Object.assign({seg:n},bi(n,s))):bo(t)))}return b(D,{},...l)}componentDidMount(){const{rootEl:e}=this;this.disconnectHeight=Ki(e,e=>{qn(this.props.heightRef,e)})}componentWillUnmount(){this.disconnectHeight(),qn(this.props.heightRef,null),qn(this.props.innerHeightRef,null)}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}}class Cl extends ms{constructor(){super(...arguments),this.splitBusinessHourSegs=Zt(cl),this.splitBgEventSegs=Zt(cl),this.splitFgEventSegs=Zt(cl),this.splitDateSelectionSegs=Zt(cl),this.splitEventDrag=Zt(dl),this.splitEventResize=Zt(dl),this.rowHeightRefMap=new lo((e,t)=>{const{rowHeightRefMap:n}=this.props;n&&n.handleValue(e,t)}),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,state:t,context:n,rowHeightRefMap:r}=this,{options:i}=n,s=e.cellRows.length,o=this.splitFgEventSegs(e.fgEventSegs,s),a=this.splitBgEventSegs(e.bgEventSegs,s),l=this.splitBusinessHourSegs(e.businessHourSegs,s),c=this.splitDateSelectionSegs(e.dateSelectionSegs,s),d=this.splitEventDrag(e.eventDrag,s),u=this.splitEventResize(e.eventResize,s),h=io(i),f=null!=t.width&&(s>=7||h)?t.width/n.options.aspectRatio/6:null;return b("div",{className:"fc-grow fc-flex-column",style:{width:e.width},ref:this.handleRootEl},e.cellRows.map((n,g)=>b(Rl,{key:n[0].key,dateProfile:e.dateProfile,todayRange:e.todayRange,cells:n,showDayNumbers:s>1,showWeekNumbers:i.weekNumbers,forPrint:e.forPrint,compact:null!=t.width&&t.width/n.length<80,className:h?"":"fc-grow fc-basis0",fgEventSegs:o[g],bgEventSegs:a[g].filter(xl),businessHourSegs:l[g],dateSelectionSegs:c[g],eventSelection:e.eventSelection,eventDrag:d[g],eventResize:u[g],dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,colWidth:e.colWidth,minHeight:f,heightRef:r.createRef(n[0].key)})))}componentDidMount(){this.unwatchWidth=$i(this.rootEl,e=>{this.setState({width:e})})}componentWillUnmount(){this.unwatchWidth()}queryHit(e,t,n){const{props:r,context:i}=this,s=r.cellRows[0].length,{col:o,left:a,right:l}=sl(e,n,r.colWidth,s,i.isRtl),{row:c,top:d,bottom:u}=function(e,t,n){let r=0,i=0,s=0;for(const o of t){const t=o[0].key;if(i=s,s=i+n.get(t),e<s)break;r++}return{row:r,top:i,bottom:s}}(t,r.cellRows,this.rowHeightRefMap.current),h=r.cellRows[c][o],f=h.date,g=_t(f,1);return{dateProfile:r.dateProfile,dateSpan:Object.assign({range:{start:f,end:g},allDay:!0},h.extraDateSpan),dayEl:al(ol(this.rootEl,c),o),rect:{left:a,right:l,top:d,bottom:u},layer:0}}}function xl(e){return e.eventRange.def.allDay}class _l extends Yn{render(){const{props:e}=this;return b("div",{role:e.cellGroup?void 0:"row",className:[e.cellGroup?"fc-flex-row":"fc-row",e.className||""].join(" ")},e.cells.map(t=>b(D,{key:e.getHeaderModelKey(t)},e.renderHeaderContent(t,e.tierNum,void 0,e.colWidth))))}}function Tl(e){return b("div",{className:["fc-rowgroup","fc-content-box",...e.extraClassNames||[]].join(" "),style:{width:e.width,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight}},e.headerTiers.map((t,n)=>b(_l,{key:n,tierNum:n,cells:t,renderHeaderContent:e.renderHeaderContent,getHeaderModelKey:e.getHeaderModelKey,colWidth:e.colWidth})))}class Ml extends Yn{constructor(){super(...arguments),this.handleScroller=e=>{qn(this.props.scrollerRef,e)},this.handleLeftScrollbarWidth=e=>{this.setState({leftScrollbarWidth:e})},this.handleRightScrollbarWidth=e=>{this.setState({rightScrollbarWidth:e})}}render(){const{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&!io(r),s=!e.forPrint&&so(r);return b(D,null,r.dayHeaders&&b(Tl,{headerTiers:e.headerTiers,renderHeaderContent:e.renderHeaderContent,getHeaderModelKey:e.getHeaderModelKey,extraClassNames:["fc-daygrid-header",s?"fc-sticky-header":""],paddingLeft:t.leftScrollbarWidth,paddingRight:t.rightScrollbarWidth}),b(Fs,{vertical:i,leftScrollbarWidthRef:this.handleLeftScrollbarWidth,rightScrollbarWidthRef:this.handleRightScrollbarWidth,elClassNames:["fc-daygrid-body","fc-rowgroup","fc-flex-column",i?"fc-liquid":""],ref:this.handleScroller},b(Cl,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,rowHeightRefMap:e.rowHeightRefMap})))}}class kl extends Yn{constructor(){super(...arguments),this.headerScrollerRef={current:null},this.bodyScrollerRef={current:null},this.footerScrollerRef={current:null},this.handleWidth=e=>{this.setState({width:e})},this.handleLeftScrollbarWidth=e=>{this.setState({leftScrollbarWidth:e})},this.handleRightScrollbarWidth=e=>{this.setState({rightScrollbarWidth:e})}}render(){const{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&!io(r),s=!e.forPrint&&so(r),o=!e.forPrint&&oo(r),a=e.cellRows[0].length,[l,c]=nl(a,e.dayMinWidth,t.width);return b(D,null,r.dayHeaders&&b(Fs,{horizontal:!0,hideScrollbars:!0,elClassNames:["fc-daygrid-header","fc-rowgroup",s?"fc-sticky-header":""],ref:this.headerScrollerRef},b(Tl,{headerTiers:e.headerTiers,renderHeaderContent:e.renderHeaderContent,getHeaderModelKey:e.getHeaderModelKey,colWidth:c,width:l,paddingLeft:t.leftScrollbarWidth,paddingRight:t.rightScrollbarWidth})),b(Fs,{vertical:i,horizontal:!0,hideScrollbars:o,widthRef:this.handleWidth,leftScrollbarWidthRef:this.handleLeftScrollbarWidth,rightScrollbarWidthRef:this.handleRightScrollbarWidth,elClassNames:["fc-daygrid-body","fc-rowgroup","fc-flex-column",i?"fc-liquid":""],ref:this.bodyScrollerRef},b(Cl,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,colWidth:c,width:l,rowHeightRefMap:e.rowHeightRefMap})),Boolean(o)&&b(Fs,{ref:this.footerScrollerRef,horizontal:!0,elClassNames:["fc-sticky-footer"],elStyle:{marginTop:"-1px"}},b("div",{style:{width:l,height:"1px"}})))}componentDidMount(){const e=ao(this.context.pluginHooks);this.syncedScroller=new e(!0),qn(this.props.scrollerRef,this.syncedScroller),this.updateSyncedScroller()}componentDidUpdate(){this.updateSyncedScroller()}componentWillUnmount(){this.syncedScroller.destroy()}updateSyncedScroller(){const{isRtl:e}=this.context;this.syncedScroller.handleChildren([this.headerScrollerRef.current,this.bodyScrollerRef.current,this.footerScrollerRef.current],e)}}class Il extends Yn{constructor(){super(...arguments),this.scrollerRef={current:null},this.rowHeightRefMap=new lo,this.timeScrollResponder=new ho(e=>{const t=this.rowHeightRefMap.current,n=this.scrollerRef.current,r=function(e,t,n){let r=0;for(const i of t){const t=i[0].date,s=i[i.length-1].date,o=t.toISOString();if(e>=t&&e<=s)return r;const a=n.get(o);if(null==a)return;r+=a}return r}(this.props.dateProfile.currentDate,this.props.cellRows,t);return null!=r&&(n.scrollTo({y:r}),!0)})}render(){const{props:e,context:t}=this,{options:n}=t,r=Object.assign(Object.assign({},e),{scrollerRef:this.scrollerRef,rowHeightRefMap:this.rowHeightRefMap});return b(nr,{viewSpec:t.viewSpec,elClasses:[e.className,"fc-flex-column","fc-border"]},n.dayMinWidth?b(kl,Object.assign({},r,{dayMinWidth:n.dayMinWidth})):b(Ml,Object.assign({},r)))}componentDidMount(){const{context:e}=this,{options:t}=e;e.emitter.on("_timeScrollRequest",this.timeScrollResponder.handleScroll),this.timeScrollResponder.handleScroll(t.scrollTime)}componentDidUpdate(e){const{options:t}=this.context;e.dateProfile!==this.props.dateProfile&&t.scrollTimeReset?this.timeScrollResponder.handleScroll(t.scrollTime):this.timeScrollResponder.drain()}componentWillUnmount(){this.context.emitter.off("_timeScrollRequest",this.timeScrollResponder.handleScroll)}}const Hl=un({weekday:"long"});class Ol extends Yn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=t,o=_t(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(o,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:o},a),{view:i}),e.extraRenderProps),{text:l});return b(er,{elTag:"div",elClasses:[...Vi(a),...e.extraClassNames||[],"fc-header-cell","fc-cell",null!=e.colWidth?"":"fc-liquid","fc-flex-column","fc-align-center"],elAttrs:e.extraDataAttrs,elStyle:{width:null!=e.colWidth?e.colWidth*(e.colSpan||1):void 0},renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:el,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},t=>b("div",{ref:this.innerElRef,className:["fc-flex-column",e.isSticky?"fc-sticky-x":""].join(" ")},b(t,{elTag:"a",elClasses:["fc-cell-inner","fc-padding-sm"],elAttrs:{"aria-label":n.format(o,Hl)}})))}componentDidMount(){const e=this.innerElRef.current;this.disconectInnerHeight=Ki(e,e=>{qn(this.props.innerHeightRef,e)})}componentWillUnmount(){this.disconectInnerHeight()}}function Nl(e,t,n){return e||function(e,t){if(!e||t>10)return un({weekday:"short"});if(t>1)return un({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0});return un({weekday:"long"})}(t,n)}class Pl extends Yn{constructor(){super(...arguments),this.innerHeightRefMap=new lo(()=>{es(this.handleInnerHeights)}),this.handleInnerHeights=()=>{const e=this.innerHeightRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);this.currentInnerHeight!==t&&(this.currentInnerHeight=t,qn(this.props.innerHeightRef,t))}}render(){const{props:e}=this;return b("div",{role:"row",className:"fc-row",style:{height:e.height}},e.cells.map(t=>{const n=e.getHeaderModelKey(t);return b(D,{key:e.getHeaderModelKey(t)},e.renderHeaderContent(t,e.tierNum,this.innerHeightRefMap.createRef(n),e.colWidth))}))}}var Bl=ko({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends Yn{constructor(){super(...arguments),this.buildDayTableModel=Zt(tl),this.buildHeaderTiers=Zt(rl),this.createDayHeaderFormatter=Zt(Nl),this.slicer=new Ja}render(){const{props:e,context:t}=this,{options:n}=t,r=this.buildDayTableModel(e.dateProfile,t.dateProfileGenerator),i=1===r.rowCnt,s=this.buildHeaderTiers(r.headerDates,i),o=this.slicer.sliceProps(e,e.dateProfile,n.nextDayThreshold,t,r),a=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,r.colCnt);return b(co,{unit:"day"},(t,n)=>b(Il,{dateProfile:e.dateProfile,todayRange:n,cellRows:r.cellRows,forPrint:e.forPrint,className:"fc-daygrid-view",headerTiers:s,renderHeaderContent:(t,i,s,o)=>t.date?b(ll,Object.assign({},t,{dateProfile:e.dateProfile,todayRange:n,navLink:r.colCnt>1,dayHeaderFormat:a,colSpan:t.colSpan,colWidth:o})):b(Ol,Object.assign({},t,{dayHeaderFormat:a,colSpan:t.colSpan,colWidth:o})),getHeaderModelKey:e=>e.date?e.date.toUTCString():e.dow,fgEventSegs:o.fgEventSegs,bgEventSegs:o.bgEventSegs,businessHourSegs:o.businessHourSegs,dateSelectionSegs:o.dateSelectionSegs,eventDrag:o.eventDrag,eventResize:o.eventResize,eventSelection:o.eventSelection}))}},dateProfileGeneratorClass:$a},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});function jl(e,t){let n=new Us(e.renderRange,t);return new zs(n,!1)}function Wl(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}function Ll(e,t,n,r){if(!n||!r)return[void 0,!1];const i=n+1,s=r/t;let o,a;return e&&s>=i?(o=!0,a=s):(o=!1,a=i),[a,o]}function Ul(e,t,n){return n||(n=Nt(e)),zl(vt(e.valueOf()-n.valueOf()),t)}function zl(e,t){const n=Dt(t.slotMinTime),r=Dt(t.slotMaxTime);let i=(e.milliseconds-n)/(r-n);return i=Math.max(0,i),i=Math.min(1,i),i}function Fl(e){return["fc-row","fc-timegrid-slot",e.isLabeled?"":"fc-timegrid-slot-minor"].join(" ")}class Vl extends Ui{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?li(e)?["timed","allDay"]:["allDay"]:["timed"]}}class Gl extends qs{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=or(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}}function Ql(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function Yl(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.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}const ql=un({week:"short"});class Zl extends Yn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,n=e.dateProfile.renderRange,r=1===kt(n.start,n.end)?rs(t,n.start,"week"):{};return b(So,{elTag:"div",elClasses:["fc-timegrid-weeknumber","fc-timegrid-axis","fc-cell","fc-content-box"],elStyle:{width:e.width},date:n.start,defaultFormat:ql},e=>b("div",{ref:this.innerElRef,className:"fc-flex-column"},b(e,{elTag:"a",elClasses:["fc-timegrid-axis-inner","fc-cell-inner","fc-padding-sm"],elAttrs:r})))}componentDidMount(){const e=this.innerElRef.current;this.detachInnerSize=Ji(e,(e,t)=>{qn(this.props.innerWidthRef,e),qn(this.props.innerHeightRef,t)})}componentWillUnmount(){this.detachInnerSize()}}const Xl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Jl(e,t,n,r,i){let s=new Date(0),o=e,a=vt(0),l=n||function(e){let t,n,r;for(t=Xl.length-1;t>=0;t-=1)if(n=vt(Xl[t]),r=wt(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;Dt(o)<Dt(t);){let e=i.add(s,o),t=null!==wt(a,l);c.push({date:e,time:o,key:e.toISOString(),isoTimeStr:Yt(e),isLabeled:t}),o=bt(o,r),a=bt(a,r)}return c}class $l extends Yn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e}=this,{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return b(er,{elTag:"div",elClasses:["fc-timegrid-allday-label","fc-timegrid-axis","fc-cell","fc-content-box"],elStyle:{width:e.width},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:Kl,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},e=>b("div",{ref:this.innerElRef,className:"fc-flex-column"},b(e,{elTag:"span",elClasses:["fc-timegrid-axis-inner","fc-cell-inner","fc-padding-sm"]})))}componentDidMount(){const e=this.innerElRef.current;this.disconnectInnerSize=Ji(e,(e,t)=>{qn(this.props.innerWidthRef,e),qn(this.props.innerHeightRef,t)})}componentWillUnmount(){this.disconnectInnerSize()}}function Kl(e){return e.text}class ec extends ms{constructor(){super(...arguments),this.heightRef={current:null},this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){return b(Rl,Object.assign({},this.props,{cellGroup:!0,className:this.props.className,forceVSpacing:!0,rootElRef:this.handleRootEl,heightRef:this.heightRef}))}queryHit(e,t,n){const{props:r,context:i,heightRef:s}=this,o=r.cells.length,{col:a,left:l,right:c}=sl(e,n,r.colWidth,o,i.isRtl),d=r.cells[a],u=d.date,h=_t(u,1);return{dateProfile:r.dateProfile,dateSpan:Object.assign({range:{start:u,end:h},allDay:!0},d.extraDateSpan),dayEl:al(this.rootEl,a),rect:{left:l,right:c,top:0,bottom:s.current},layer:0}}}function tc(e){return b(mo,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:Or(Ul(e.nowDate,e.dateProfile))},isAxis:!0,date:e.nowDate})}const nc=un({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});class rc extends Yn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{dateEnv:n,options:r,viewApi:i}=t,s=["fc-timegrid-slot-label","fc-timegrid-axis","fc-header-cell","fc-cell","fc-content-box"];if(!e.isLabeled)return b("div",{"data-time":e.isoTimeStr,className:s.join(" "),style:{width:e.width}});let o=null==r.slotLabelFormat?nc:Array.isArray(r.slotLabelFormat)?un(r.slotLabelFormat[0]):un(r.slotLabelFormat),a={level:0,time:e.time,date:n.toDate(e.date),view:i,text:n.format(e.date,o)};return b(er,{elTag:"div",elClasses:s,elAttrs:{"data-time":e.isoTimeStr},elStyle:{width:e.width},renderProps:a,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:ic,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},e=>b("div",{ref:this.innerElRef,className:"fc-flex-column"},b(e,{elTag:"div",elClasses:["fc-timegrid-axis-inner","fc-cell-inner","fc-padding-sm"]})))}componentDidMount(){const e=this.innerElRef.current;e&&(this.detachInnerSize=Ji(e,(e,t)=>{qn(this.props.innerWidthRef,e),qn(this.props.innerHeightRef,t)}))}componentWillUnmount(){this.detachInnerSize&&this.detachInnerSize()}}function ic(e){return e.text}class sc extends Yn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{options:n}=t,r={time:e.time,date:t.dateEnv.toDate(e.date),view:t.viewApi};return b(er,{elTag:"div",elClasses:["fc-cell","fc-liquid"],elAttrs:{"data-time":e.isoTimeStr},renderProps:r,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},e=>b("div",{ref:this.innerElRef,className:"fc-flex-column"},b(e,{elTag:"div",elClasses:["fc-cell-inner"]})))}componentDidMount(){const e=this.innerElRef.current;this.detachInnerHeight=Ki(e,e=>{qn(this.props.innerHeightRef,e)})}componentWillUnmount(){this.detachInnerHeight()}}function oc(e,t,n){let r=new Ts;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);let i=Is(r.addSegs(e)),s=function(e){const{entriesByLevel:t}=e,n=dc((e,t)=>e+":"+t,(r,i)=>{let s=ac(function(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,s=i[t][n],o=r[t]+s.thickness,a=r.length,l=t;for(;l<a&&r[l]<o;l+=1);for(;l<a;l+=1){let e,t=i[l],n=Ps(t,s.span.start,Ms),r=n[0]+n[1],o=r;for(;(e=t[o])&&e.span.start<s.span.end;)o+=1;if(r<o)return{level:l,lateralStart:r,lateralEnd:o}}return null}(e,r,i),n),o=t[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:s[0]}),o.thickness+s[1]]});return ac(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);return s=function(e,t){const n=dc((e,t,n)=>ks(e),(e,r,i)=>{let s,{nextLevelNodes:o,thickness:a}=e,l=a+i,c=a/l,d=[];if(o.length)for(let e of o)if(void 0===s){let t=n(e,r,l);s=t[0],d.push(t[1])}else{let t=n(e,s,0);d.push(t[1])}else s=t;let u=(s-r)*c;return[s-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:d})]});return e.map(e=>n(e,0,0)[1])}(s,1),[function(e){let t=[];const n=dc((e,t,n)=>ks(e),(e,n,i)=>{let s=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(s),s.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1});function r(e,t,r){let i=0;for(let s of e)i=Math.max(n(s,t,r),i);return i}return r(e,0,0),t}(s),i]}function ac(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,s=r,o=[];for(;s<i;)o.push(t(n,s)),s+=1;return o.sort(lc),[o.map(cc),o[0][1]]}function lc(e,t){return t[1]-e[1]}function cc(e){return e[0]}function dc(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function uc(e,t,n,r,i,s,o){const a=[];for(const l of e){const e=Ul(l.start,t,n);let c=Ul(l.end,t,n)-e,d=!1;if(void 0!==i){const e=i*r;let t=c*e;null!=s&&t<s&&(t=s,c=t/e),d=null!=o&&t<o}a.push({start:e,end:e+c,size:c,isShort:d})}return a}const hc=un({hour:"numeric",minute:"2-digit",meridiem:!1});class fc extends Yn{render(){const{props:e}=this;return b(go,Object.assign({},e,{elClasses:["fc-timegrid-event","fc-v-event",e.isShort?"fc-timegrid-event-short":"",e.isInset?"fc-timegrid-event-inset":""],defaultTimeFormat:hc}))}}class gc extends Yn{render(){let{props:e}=this;return b(ws,{elClasses:["fc-timegrid-more-link","fc-abs"],elStyle:{top:e.top,height:e.height},allDayDate:null,segs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>yc(e.hiddenSegs,e),defaultGenerator:pc,forceTimed:!0},e=>b(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky-y"]}))}}function pc(e){return e.shortText}function mc(e){return b("div",{className:"fc-timegrid-now-indicator-container"},b(mo,{elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:Or(Ul(e.nowDate,e.dateProfile,e.dayDate))},isAxis:!1,date:e.nowDate}))}class vc extends Yn{constructor(){super(...arguments),this.sortEventSegs=Zt(fi)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,n.eventOrder),a=null!=e.slatHeight?e.slatHeight*e.slatCnt:void 0;return b(ys,{elTag:"div",elClasses:["fc-flex-column","fc-cell",null!=e.width?"":"fc-liquid","fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),elStyle:{width:e.width},date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},t=>b("div",{className:"fc-rel fc-flex-column",style:{height:a}},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight"),b("div",{className:"fc-liquid fc-rel fc-timegrid-col-fg"},this.renderFgSegs(o,s,!1,!1,!1),this.renderFgSegs(i,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),this.renderNowIndicator(e.nowIndicatorSegs),bs(n)&&b(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,r,i,s){let{props:o}=this;return o.forPrint?yc(e,o):this.renderPositionedFgSegs(e,t,n,r,i,s)}renderPositionedFgSegs(e,t,n,r,i,s){let{props:o,context:a}=this,{date:l,dateProfile:c,eventSelection:d,todayRange:u,nowDate:h}=o,{eventMaxStack:f,eventShortHeight:g,eventOrderStrict:p,eventMinHeight:m}=a.options,v=uc(e,c,l,o.slatCnt,o.slatHeight,m,g),[y,S]=function(e,t,n,r){const i=e.map((e,n)=>({index:n,seg:e,thickness:1,span:t[n]})),[s,o]=oc(i,n,r),a=[];for(const e of s)a[e.index]=e;return[a,o]}(e,v,p,f),E=n||r||i;return b(D,null,this.renderHiddenGroups(S,e),e.map((e,o)=>{let a=e.eventRange.instance.instanceId,l=v[o],c=y[o],f=!E&&c?this.computeSegHStyle(c):{left:0,right:0},g=E||c&&!t[a],p=c&&c.stackForward>0;return b("div",{className:"fc-abs",key:s||a,style:Object.assign({visibility:g?"":"hidden",top:Or(l.start),height:Or(l.size)},f)},b(fc,Object.assign({seg:e,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:a===d,isShort:l.isShort,isInset:p},bi(e,u,h))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:o,eventDrag:a,eventResize:l}=this.props;return b(D,null,e.map(e=>{let t=e.span.start,c=e.span.end-t;return b(gc,{key:e.key,hiddenSegs:e.segs,top:Or(t),height:Or(c),extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:o,eventDrag:a,eventResize:l})}))}renderFillSegs(e,t){let{props:n,context:r}=this,i=uc(e,n.dateProfile,n.date,n.slatCnt,n.slatHeight,r.options.eventMinHeight);return b(D,null,e.map((e,r)=>{const s=i[r];return b("div",{key:Ei(e.eventRange),className:"fc-timegrid-bg-harness fc-fill-x",style:{top:Or(s.start),height:Or(s.size)}},"bg-event"===t?b(vo,Object.assign({seg:e},bi(e,n.todayRange,n.nowDate))):bo(t))}))}renderNowIndicator(e){let{date:t,dateProfile:n}=this.props;return e.map(e=>b(mc,{nowDate:e.start,dayDate:t,dateProfile:n}))}computeSegHStyle(e){let t,n,{isRtl:r,options:i}=this.context,s=i.slotEventOverlap,o=e.levelCoord,a=e.levelCoord+e.thickness;s&&(a=Math.min(1,o+2*(a-o))),r?(t=1-a,n=o):(t=o,n=1-a);let l={zIndex:e.stackDepth+1,left:Or(t),right:Or(n)};return s&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function yc(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let o=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return b(D,null,e.map(e=>{let i=e.eventRange.instance.instanceId;return b("div",{key:i,className:"fc-timegrid-harness-plain",style:{visibility:o[i]?"hidden":""}},b(fc,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===r,isShort:!1,isInset:!1},bi(e,t,n))))}))}class bc extends ms{constructor(){super(...arguments),this.processSlotOptions=Zt(Sc),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){const{props:e}=this;return b("div",{className:["fc-flex-row",e.className||""].join(" "),ref:this.handleRootEl},e.cells.map((t,n)=>b(vc,{key:t.key,dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,date:t.date,slatCnt:e.slatCnt,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraDateSpan:t.extraDateSpan,forPrint:e.forPrint,fgEventSegs:e.fgEventSegsByCol[n],bgEventSegs:e.bgEventSegsByCol[n],businessHourSegs:e.businessHourSegsByCol[n],nowIndicatorSegs:e.nowIndicatorSegsByCol[n],dateSelectionSegs:e.dateSelectionSegsByCol[n],eventDrag:e.eventDragByCol[n],eventResize:e.eventResizeByCol[n],eventSelection:e.eventSelection,width:e.colWidth,slatHeight:e.slatHeight})))}queryHit(e,t,n){const{dateProfile:r,cells:i,colWidth:s,slatHeight:o}=this.props,{dateEnv:a,options:l,isRtl:c}=this.context,{snapDuration:d,snapsPerSlot:u}=this.processSlotOptions(l.slotDuration,l.snapDuration),h=i.length,{col:f,left:g,right:p}=sl(e,n,s,h,c),m=i[f],v=Math.floor(t/o),y=v*o,b=(t-y)/o,S=v+Math.floor(b*u)*u,E=bt(r.slotMinTime,St(d,S)),D=a.add(m.date,E),w=a.add(D,d);return{dateProfile:r,dateSpan:Object.assign({range:{start:D,end:w},allDay:!1},m.extraDateSpan),dayEl:al(this.rootEl,f),rect:{left:g,right:p,top:y,bottom:y+o},layer:0}}}function Sc(e,t){let n=t||e,r=wt(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class Ec extends Yn{constructor(){super(...arguments),this.state={headerTierHeights:[]},this.headerLabelInnerWidthRefMap=new lo(()=>{es(this.handleAxisWidths)}),this.headerLabelInnerHeightRefMap=new lo(()=>{es(this.handleHeaderHeights)}),this.headerMainInnerHeightRefMap=new lo(()=>{es(this.handleHeaderHeights)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,es(this.handleAxisWidths)},this.handleAllDayLabelInnerHeight=e=>{this.allDayLabelInnerHeight=e,es(this.handleAllDayHeights)},this.handleAllDayMainInnerHeight=e=>{this.allDayMainInnerHeight=e,es(this.handleAllDayHeights)},this.slatLabelInnerWidthRefMap=new lo(()=>{es(this.handleAxisWidths)}),this.slatLabelInnerHeightRefMap=new lo(()=>{es(this.handleSlatInnerHeights)}),this.slatMainInnerHeightRefMap=new lo(()=>{es(this.handleSlatInnerHeights)}),this.headerScrollerRef={current:null},this.allDayScrollerRef={current:null},this.mainScrollerRef={current:null},this.footScrollerRef={current:null},this.axisScrollerRef={current:null},this.handleScrollerWidth=e=>{this.setState({scrollerWidth:e})},this.handleScrollerHeight=e=>{this.setState({scrollerHeight:e})},this.handleLeftScrollbarWidth=e=>{this.setState({leftScrollbarWidth:e})},this.handleRightScrollbarWidth=e=>{this.setState({rightScrollbarWidth:e})},this.handleBottomScrollbarWidth=e=>{this.setState({bottomScrollbarWidth:e})},this.handleHeaderHeights=()=>{const e=this.headerLabelInnerHeightRefMap.current,t=this.headerMainInnerHeightRefMap.current,n=[];for(const[r,i]of t.entries())n[r]=Math.max(e.get(r)||0,i);const{headerTierHeights:r}=this.state;Rt(r,n)||this.setState({headerTierHeights:n})},this.handleAllDayHeights=()=>{let e=Math.max(this.allDayLabelInnerHeight,this.allDayMainInnerHeight);this.state.allDayHeight!==e&&this.setState({allDayHeight:e})},this.handleSlatInnerHeights=()=>{const e=this.slatLabelInnerHeightRefMap.current,t=this.slatMainInnerHeightRefMap.current;let n=0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.slatInnerHeight!==n&&this.setState({slatInnerHeight:n})},this.handleAxisWidths=()=>{const e=this.headerLabelInnerWidthRefMap.current,t=this.slatLabelInnerWidthRefMap.current;let n=this.allDayLabelInnerWidth||0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.axisWidth!==n&&this.setState({axisWidth:n})}}render(){const{props:e,state:t,context:n,headerLabelInnerWidthRefMap:r,headerLabelInnerHeightRefMap:i,headerMainInnerHeightRefMap:s,slatLabelInnerWidthRefMap:o,slatLabelInnerHeightRefMap:a,slatMainInnerHeightRefMap:l}=this,{nowDate:c,headerTiers:d}=e,{axisWidth:u}=t,{options:h}=n,f=!e.forPrint&&!io(h),g=!e.forPrint&&so(h),p=!e.forPrint&&oo(h),m=e.cells.length,[v,y]=nl(m,e.dayMinWidth,t.scrollerWidth),S=e.slatMetas.length,[E,w]=Ll(f&&h.expandRows,S,t.slatInnerHeight,t.scrollerHeight);return this.slatHeight=E,b(D,null,h.dayHeaders&&b("div",{className:["fc-timegrid-header","fc-row",g?"fc-sticky-header":""].join(" ")},b("div",{className:"fc-cell fc-content-box",style:{width:u}},d.map((n,s)=>b("div",{key:s,className:"fc-row",style:{height:t.headerTierHeights[s]}},e.renderHeaderLabel(s,r.createRef(s),i.createRef(s),void 0)))),b(Fs,{horizontal:!0,hideScrollbars:!0,elClassNames:["fc-cell fc-liquid"],ref:this.headerScrollerRef},b("div",{className:"fc-content-box",style:{width:v,paddingLeft:t.leftScrollbarWidth,paddingRight:t.rightScrollbarWidth}},e.headerTiers.map((n,r)=>b(Pl,{key:r,tierNum:r,cells:n,renderHeaderContent:e.renderHeaderContent,getHeaderModelKey:e.getHeaderModelKey,innerHeightRef:s.createRef(r),height:t.headerTierHeights[r],colWidth:y}))))),h.allDaySlot&&b(D,null,b("div",{className:"fc-timegrid-allday fc-row",style:{height:t.allDayHeight}},b($l,{innerWidthRef:this.handleAllDayLabelInnerWidth,innerHeightRef:this.handleAllDayLabelInnerHeight,width:u}),b(Fs,{horizontal:!0,hideScrollbars:!0,elClassNames:["fc-cell","fc-liquid"],ref:this.allDayScrollerRef},b("div",{className:"fc-content-box",style:{width:v,paddingLeft:t.leftScrollbarWidth,paddingRight:t.rightScrollbarWidth}},b(ec,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,compact:null!=t.scrollerWidth&&t.scrollerWidth/e.cells.length<80,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,innerHeightRef:this.handleAllDayMainInnerHeight,colWidth:y})))),b("div",{className:"fc-rowdivider"})),b("div",{className:["fc-timegrid-body fc-row",f?"fc-liquid":""].join(" ")},b(Fs,{vertical:f,hideScrollbars:!0,elClassNames:["fc-cell","fc-flex-column","fc-content-box"],elStyle:{width:u},ref:this.axisScrollerRef},b("div",{className:"fc-timegrid-slots fc-grow fc-flex-column fc-rel",style:{paddingBottom:t.bottomScrollbarWidth}},e.slatMetas.map(e=>b("div",{key:e.key,className:[Fl(e),w?"fc-liquid":""].join(" "),style:{height:w?"":E}},b(rc,Object.assign({},e,{width:void 0,innerWidthRef:o.createRef(e.key),innerHeightRef:a.createRef(e.key)})))),h.nowIndicator&&dr(e.dateProfile.currentRange,c)&&b(tc,{nowDate:c,dateProfile:e.dateProfile}))),b("div",{className:"fc-cell fc-liquid fc-flex-column"},b(Fs,{vertical:f,horizontal:!0,hideScrollbars:p,elClassNames:[f?"fc-liquid":"","fc-flex-column"],ref:this.mainScrollerRef,widthRef:this.handleScrollerWidth,heightRef:this.handleScrollerHeight,leftScrollbarWidthRef:this.handleLeftScrollbarWidth,rightScrollbarWidthRef:this.handleRightScrollbarWidth,bottomScrollbarWidthRef:this.handleBottomScrollbarWidth},b("div",{className:"fc-grow fc-flex-column fc-rel",style:{width:v}},b("div",{className:"fc-grow fc-flex-column"},e.slatMetas.map(e=>b("div",{key:e.key,className:[Fl(e),w?"fc-liquid":""].join(" "),style:{height:w?"":E}},b(sc,Object.assign({},e,{innerHeightRef:l.createRef(e.key)}))))),b(bc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:S,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:"fc-fill fc-liquid",fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,colWidth:y,slatHeight:E}))),Boolean(p)&&b(Fs,{horizontal:!0,elClassNames:["fc-sticky-footer"],elStyle:{marginTop:"-1px"},ref:this.footScrollerRef},b("div",{style:{width:v,height:"1px"}})))))}componentDidMount(){this.initScrollers(),this.updateSlatHeight()}componentDidUpdate(){this.updateScrollers(),this.updateSlatHeight()}componentWillUnmount(){this.destroyScrollers()}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&qn(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}initScrollers(){const e=ao(this.context.pluginHooks);this.dayScroller=new e(!0),this.timeScroller=new e,qn(this.props.dayScrollerRef,this.dayScroller),qn(this.props.timeScrollerRef,this.timeScroller),this.updateScrollers()}updateScrollers(){const{isRtl:e}=this.context;this.dayScroller.handleChildren([this.headerScrollerRef.current,this.allDayScrollerRef.current,this.mainScrollerRef.current,this.footScrollerRef.current],e),this.timeScroller.handleChildren([this.axisScrollerRef.current,this.mainScrollerRef.current],e)}destroyScrollers(){qn(this.props.dayScrollerRef,null),qn(this.props.timeScrollerRef,null)}}class Dc extends Yn{constructor(){super(...arguments),this.headerLabelInnerWidthRefMap=new lo(()=>{es(this.handleAxisInnerWidths)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,es(this.handleAxisInnerWidths)},this.slatLabelInnerWidthRefMap=new lo(()=>{es(this.handleAxisInnerWidths)}),this.slatLabelInnerHeightRefMap=new lo(()=>{es(this.handleSlatInnerHeights)}),this.slatInnerMainHeightRefMap=new lo(()=>{es(this.handleSlatInnerHeights)}),this.handleScrollerWidth=e=>{this.setState({scrollerWidth:e})},this.handleScrollerHeight=e=>{this.setState({scrollerHeight:e})},this.handleLeftScrollbarWidth=e=>{this.setState({leftScrollbarWidth:e})},this.handleRightScrollbarWidth=e=>{this.setState({rightScrollbarWidth:e})},this.handleAxisInnerWidths=()=>{const e=this.headerLabelInnerWidthRefMap.current,t=this.slatLabelInnerWidthRefMap.current;let n=this.allDayLabelInnerWidth||0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.axisWidth!==n&&this.setState({axisWidth:n})},this.handleSlatInnerHeights=()=>{const e=this.slatLabelInnerHeightRefMap.current,t=this.slatInnerMainHeightRefMap.current;let n=0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.slatInnerHeight!==n&&this.setState({slatInnerHeight:n})}}render(){const{props:e,state:t,context:n,slatLabelInnerWidthRefMap:r,slatLabelInnerHeightRefMap:i,slatInnerMainHeightRefMap:s,headerLabelInnerWidthRefMap:o}=this,{nowDate:a}=e,{axisWidth:l}=t,{options:c}=n,d=!e.forPrint&&!io(c),u=!e.forPrint&&so(c),h=e.slatMetas.length,[f,g]=Ll(d&&c.expandRows,h,t.slatInnerHeight,t.scrollerHeight);return this.slatHeight=f,b(D,null,c.dayHeaders&&b("div",{className:["fc-timegrid-header","fc-rowgroup",u?"fc-sticky-header":""].join(" "),style:{paddingLeft:t.leftScrollbarWidth,paddingRight:t.rightScrollbarWidth}},e.headerTiers.map((t,n)=>b("div",{key:n,className:"fc-row"},e.renderHeaderLabel(n,o.createRef(n),void 0,l),b(_l,{tierNum:n,cells:t,renderHeaderContent:e.renderHeaderContent,getHeaderModelKey:e.getHeaderModelKey,cellGroup:!0,className:"fc-cell fc-liquid"})))),c.allDaySlot&&b(D,null,b("div",{className:"fc-timegrid-allday fc-row",style:{paddingLeft:t.leftScrollbarWidth,paddingRight:t.rightScrollbarWidth}},b($l,{width:l,innerWidthRef:this.handleAllDayLabelInnerWidth}),b(ec,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:"fc-liquid fc-cell",compact:null!=t.scrollerWidth&&null!=t.axisWidth&&(t.scrollerWidth-t.axisWidth)/e.cells.length<80,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows})),b("div",{className:"fc-rowdivider"})),b(Fs,{vertical:d,elClassNames:["fc-timegrid-body","fc-rowgroup",d?"fc-liquid":""],ref:e.timeScrollerRef,widthRef:this.handleScrollerWidth,heightRef:this.handleScrollerHeight,leftScrollbarWidthRef:this.handleLeftScrollbarWidth,rightScrollbarWidthRef:this.handleRightScrollbarWidth},b("div",{className:"fc-flex-column fc-grow fc-rel"},b("div",{className:"fc-timegrid-slots fc-flex-column fc-grow"},e.slatMetas.map(e=>b("div",{key:e.key,className:[Fl(e),g?"fc-liquid":""].join(" "),style:{height:g?"":f}},b(rc,Object.assign({},e,{innerWidthRef:r.createRef(e.key),innerHeightRef:i.createRef(e.key),width:l})),b(sc,Object.assign({},e,{innerHeightRef:s.createRef(e.key)}))))),b("div",{className:"fc-fill fc-flex-row"},b("div",{className:"fc-cell fc-content-box",style:{width:l}},c.nowIndicator&&dr(e.dateProfile.currentRange,a)&&b(tc,{nowDate:a,dateProfile:e.dateProfile})),b(bc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:h,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:"fc-liquid fc-cell",fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,slatHeight:f})))))}componentDidMount(){this.updateSlatHeight()}componentDidUpdate(){this.updateSlatHeight()}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&qn(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}}class wc extends Yn{constructor(){super(...arguments),this.buildSlatMetas=Zt(Jl),this.dayScrollerRef={current:null},this.timeScrollerRef={current:null},this.handleSlatHeight=e=>{this.slatHeight=e,es(this.handleSize)},this.handleSize=()=>{this.timeScrollResponder.drain()},this.timeScrollResponder=new ho(e=>{const t=this.dayScrollerRef.current,n=this.timeScrollerRef.current,{slatHeight:r}=this;if(null!=r){let i=zl(e,this.props.dateProfile)*(r*this.currentSlatCnt)+(this.context.isRtl?-1:1);return i&&i++,n.scrollTo({y:i}),t&&t.scrollTo({x:0}),!0}return!1})}render(){const{props:e,context:t}=this,{dateProfile:n}=e,{options:r,dateEnv:i}=t,{dayMinWidth:s}=r,o=this.buildSlatMetas(n.slotMinTime,n.slotMaxTime,r.slotLabelInterval,r.slotDuration,i);this.currentSlatCnt=o.length;const a=Object.assign(Object.assign({dateProfile:n,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatMetas:o,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,headerTiers:e.headerTiers,renderHeaderLabel:e.renderHeaderLabel,renderHeaderContent:e.renderHeaderContent,getHeaderModelKey:e.getHeaderModelKey,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize},function(e){let{dayMaxEvents:t,dayMaxEventRows:n}=e;!0!==t&&!0!==n||(t=void 0,n=5);return{dayMaxEvents:t,dayMaxEventRows:n}}(r)),{fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,timeScrollerRef:this.timeScrollerRef,slatHeightRef:this.handleSlatHeight});return b(nr,{elClasses:[e.className,"fc-flex-column","fc-border"],viewSpec:t.viewSpec},s?b(Ec,Object.assign({},a,{dayMinWidth:s,dayScrollerRef:this.dayScrollerRef})):b(Dc,Object.assign({},a)))}componentDidMount(){const{context:e}=this,{options:t}=e;e.emitter.on("_timeScrollRequest",this.timeScrollResponder.handleScroll),this.timeScrollResponder.handleScroll(t.scrollTime)}componentDidUpdate(e){const{options:t}=this.context;e.dateProfile!==this.props.dateProfile&&t.scrollTimeReset?this.timeScrollResponder.handleScroll(t.scrollTime):this.handleSize()}componentWillUnmount(){this.context.emitter.off("_timeScrollRequest",this.timeScrollResponder.handleScroll)}}He('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:flex;flex-direction:column;position:relative}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-inner{color:var(--fc-event-text-color);display:flex;flex-direction:column;flex-grow:1;min-width:0}.fc-v-event .fc-event-time{white-space:nowrap}.fc-v-event .fc-event-time,.fc-v-event .fc-event-title{overflow:hidden}.fc-v-event .fc-event-title-outer{display:flex;flex-direction:column;flex-grow:1;min-width:0}.fc-v-event .fc-event-title{bottom:0;position:sticky;top:0}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-timegrid-axis{align-items:flex-end}.fc-timegrid-axis,.fc-timegrid-axis-inner{display:flex;flex-direction:column;justify-content:center}.fc-timegrid-axis-inner{min-height:1.5em}.fc-timegrid-slot-minor{border-style:dotted}.fc-timegrid-col{position:relative}.fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc-timegrid-bg-harness .fc-non-business{z-index:1}.fc-timegrid-bg-harness .fc-bg-event{z-index:2}.fc-timegrid-bg-harness .fc-highlight,.fc-timegrid-col-fg{z-index:3}.fc-direction-ltr .fc-timegrid-col-fg{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-fg{margin:0 2px 0 2.5%}.fc-timegrid-event{border-radius:3px;bottom:0;font-size:var(--fc-small-font-size);left:0;margin-bottom:1px;position:absolute;right:0;top:0;z-index:3}.fc-timegrid-event-inset,.fc-timegrid-event.fc-event-mirror{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-harness-plain>.fc-timegrid-event{position:static}.fc-timegrid-event .fc-event-inner{padding:1px 1px 0}.fc-timegrid-event-short .fc-event-inner{flex-direction:row;overflow:hidden}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title,.fc-timegrid-more-link{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);border-radius:3px;box-shadow:0 0 0 1px var(--fc-page-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;z-index:9999}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc-timegrid-more-link-inner{padding:3px 2px}.fc-timegrid-now-indicator-container{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.fc-timegrid-now-indicator-arrow,.fc-timegrid-now-indicator-line{pointer-events:none}.fc-timegrid-now-indicator-line{border-width:1px 0 0;left:0;right:0}.fc-timegrid-now-indicator-arrow,.fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;position:absolute;z-index:4}.fc-timegrid-now-indicator-arrow{margin-top:-5px}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var Ac=ko({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends ms{constructor(){super(...arguments),this.createDayHeaderFormatter=Zt(Nl),this.buildTimeColsModel=Zt(jl),this.buildDayRanges=Zt(Wl),this.splitFgEventSegs=Zt(Ql),this.splitBgEventSegs=Zt(Ql),this.splitBusinessHourSegs=Zt(Ql),this.splitNowIndicatorSegs=Zt(Ql),this.splitDateSelectionSegs=Zt(Ql),this.splitEventDrag=Zt(Yl),this.splitEventResize=Zt(Yl),this.allDaySplitter=new Vl,this.dayTableSlicer=new Ja,this.dayTimeColsSlicer=new Gl}render(){const{props:e,context:t}=this,{dateProfile:n}=e,{options:r,dateProfileGenerator:i}=t,s=this.buildTimeColsModel(n,i),o=this.buildDayRanges(s,n,t.dateEnv),a=this.allDaySplitter.splitProps(e),l=this.dayTableSlicer.sliceProps(a.allDay,n,r.nextDayThreshold,t,s),c=this.dayTimeColsSlicer.sliceProps(a.timed,n,null,t,o),d=this.createDayHeaderFormatter(t.options.dayHeaderFormat,!0,s.colCnt);return b(co,{unit:r.nowIndicator?"minute":"day"},(i,a)=>{const u=s.cellRows[0].length,h=r.nowIndicator&&this.dayTimeColsSlicer.sliceNowDate(i,n,r.nextDayThreshold,t,o),f=this.splitFgEventSegs(c.fgEventSegs,u),g=this.splitBgEventSegs(c.bgEventSegs,u),p=this.splitBusinessHourSegs(c.businessHourSegs,u),m=this.splitNowIndicatorSegs(h,u),v=this.splitDateSelectionSegs(c.dateSelectionSegs,u),y=this.splitEventDrag(c.eventDrag,u),S=this.splitEventResize(c.eventResize,u);return b(wc,{dateProfile:n,nowDate:i,todayRange:a,cells:s.cellRows[0],forPrint:e.forPrint,className:"fc-timegrid-view",headerTiers:s.cellRows,renderHeaderLabel:(e,t,i,s)=>r.weekNumbers?b(Zl,{dateProfile:n,innerWidthRef:t,innerHeightRef:i,width:s}):b("div",{className:"fc-timegrid-axis fc-cell fc-content-box",style:{width:s}}),renderHeaderContent:(e,t,r,i)=>b(ll,Object.assign({},e,{dateProfile:n,todayRange:a,navLink:s.colCnt>1,dayHeaderFormat:d,innerHeightRef:r,colWidth:i})),getHeaderModelKey:e=>e.key,fgEventSegs:l.fgEventSegs,bgEventSegs:l.bgEventSegs,businessHourSegs:l.businessHourSegs,dateSelectionSegs:l.dateSelectionSegs,eventDrag:l.eventDrag,eventResize:l.eventResize,fgEventSegsByCol:f,bgEventSegsByCol:g,businessHourSegsByCol:p,nowIndicatorSegsByCol:m,dateSelectionSegsByCol:v,eventDragByCol:y,eventResizeByCol:S,eventSelection:e.eventSelection})})}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class Rc extends Yn{constructor(){super(...arguments),this.state={textId:Qe()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:i,dayDate:s,todayRange:o}=this.props,{textId:a}=this.state,l=!this.props.forPrint&&so(n),c=Fi(s,o),d=n.listDayFormat?t.format(s,n.listDayFormat):"",u=n.listDaySideFormat?t.format(s,n.listDaySideFormat):"",h=Object.assign({date:t.toDate(s),view:r,textId:a,text:d,sideText:u,navLinkAttrs:rs(this.context,s),sideNavLinkAttrs:rs(this.context,s,"day",!1)},c);return b(er,{elTag:"tr",elClasses:["fc-list-day",...Vi(c)],elAttrs:{"data-date":Gt(s)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Cc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},e=>b(e,{elTag:"th",elAttrs:{id:i,colSpan:3,"aria-labelledby":a},elClasses:["fc-list-day-cell",l?"fc-list-day-cell-sticky":""]}))}}function Cc(e){return b("div",{className:"fc-list-day-inner"},e.text&&b("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&b("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const xc=un({hour:"numeric",minute:"2-digit",meridiem:"short"});class _c extends Yn{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:i,eventHeaderId:s,dateHeaderId:o}=e,a=n.eventTimeFormat||xc;return b(fo,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function(e,t){let n=Di(e,t);return b("a",Object.assign({},n),e.eventRange.def.title)}(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(e,n)=>b(D,null,function(e,t,n,r,i){let{options:s}=n;if(!1!==s.displayEventTime){let o,a=e.eventRange.def,l=e.eventRange.instance,c=!1;if(a.allDay?c=!0:fr(e.eventRange.range)?e.isStart?o=yi(e,t,n,null,null,l.range.start,e.end):e.isEnd?o=yi(e,t,n,null,null,e.start,l.range.end):c=!0:o=yi(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return b(er,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:e,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:Tc,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return b("td",{className:"fc-list-event-time"},o)}return null}(r,a,t,i,o),b("td",{"aria-hidden":!0,className:"fc-list-event-dot-cell"},b("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),b(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${s} ${o}`}})))}}function Tc(e){return e.text}function Mc(e){return e.text}function kc(e){let t=Nt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:_t(t,1)}),t=_t(t,1);return{dayDates:r,dayRanges:i}}He(":root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-table{border-spacing:0;width:100%}.fc-table>*>*>*{border-color:var(--fc-border-color);border-style:solid;border-width:0 0 1px;padding:0}.fc-table>:last-child>:last-child>*{border-bottom-width:0}.fc-list-day-inner,.fc-list-event-dot-cell,.fc-list-event-time,.fc-list-event-title{padding:8px 14px}.fc-direction-ltr .fc-list-event-dot-cell{padding-right:0}.fc-direction-rtl .fc-list-event-dot-cell{padding-left:0}.fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc-list-empty-inner{margin:5em 0}.fc-list-day-cell-sticky{background:var(--fc-page-bg-color);position:sticky;top:0}.fc-list-day-inner{background:var(--fc-neutral-bg-color);display:flex;justify-content:space-between}.fc-list-event.fc-event-forced-url{cursor:pointer}.fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc-list-event-dot-cell,.fc-list-event-time{white-space:nowrap;width:1px}.fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc-list-event-title a{color:inherit;text-decoration:none}.fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}");function Ic(e){return!1===e?null:un(e)}var Hc=ko({name:"@fullcalendar/list",optionRefiners:{listDayFormat:Ic,listDaySideFormat:Ic,noEventsClassNames:Dn,noEventsContent:Dn,noEventsDidMount:Dn,noEventsWillUnmount:Dn},views:{list:{component:class extends ms{constructor(){super(...arguments),this.computeDateVars=Zt(kc),this.eventStoreToSegs=Zt(this._eventStoreToSegs),this.state={timeHeaderId:Qe(),eventHeaderId:Qe(),dateHeaderIdRoot:Qe()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{options:n}=t,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i),o=!e.forPrint&&!io(n);return b(nr,{elRef:this.setRootEl,elClasses:["fc-list-view","fc-flex-column","fc-border"],viewSpec:t.viewSpec},b(Fs,{vertical:o,elClassNames:[o?"fc-liquid":""]},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return b(er,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Mc,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>b(e,{elTag:"div",elClasses:["fc-list-empty-inner"]}))}renderSegList(e,t){let{options:n}=this.context,{timeHeaderId:r,eventHeaderId:i,dateHeaderIdRoot:s}=this.state,o=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return b(co,{unit:"day"},(e,a)=>{let l=[];for(let c=0;c<o.length;c+=1){let d=o[c];if(d){let o=Gt(t[c]),u=s+"-"+o;l.push(b(Rc,{key:o,forPrint:this.props.forPrint,cellId:u,dayDate:t[c],todayRange:a})),d=fi(d,n.eventOrder);for(let t of d)l.push(b(_c,Object.assign({key:o+":"+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:r,eventHeaderId:i,dateHeaderId:u},bi(t,a,e))))}}return b("table",{className:"fc-table"},b("thead",{className:"fc-offscreen"},b("tr",null,b("th",{scope:"col",id:r},n.timeHint),b("th",{scope:"col","aria-hidden":!0}),b("th",{scope:"col",id:i},n.eventHint))),b("tbody",null,l))})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(ai(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,i,{dateEnv:s}=this.context,{nextDayThreshold:o}=this.context.options,a=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if(r=or(a,t[n]),r&&(i={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===a.end.valueOf(),dayIndex:n},c.push(i),!i.isEnd&&!l&&n+1<t.length&&a.end<s.add(t[n+1].start,o))){i.end=a.end,i.isEnd=!0;break}return c}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class Oc extends ms{constructor(){super(...arguments),this.slicer=new Ja,this.buildDayTableModel=Zt(tl),this.createDayHeaderFormatter=Zt(Nl)}render(){const{props:e,context:t}=this,{dateProfile:n,forPrint:r}=e,{options:i}=t,s=this.buildDayTableModel(n,t.dateProfileGenerator),o=this.slicer.sliceProps(e,n,i.nextDayThreshold,t,s),a="number"==typeof e.width?e.width/i.aspectRatio:null,l=s.cellRows.length,c=null!=a?a/l:null,d=this.createDayHeaderFormatter(t.options.dayHeaderFormat,!1,s.colCnt);return b("div",{"data-date":e.isoDateStr,role:"grid",className:"fc-multimonth-month fc-grow",style:{width:e.width}},b("div",{className:"fc-multimonth-header",style:{marginBottom:c},role:"presentation"},b("div",{className:"fc-multimonth-title"},t.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),b("div",{className:"fc-multimonth-header-row fc-flex-row"},s.headerDates.map(e=>b(Ol,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:d,colWidth:void 0})))),b("div",{className:"fc-multimonth-body fc-flex-column",style:{marginTop:-c,height:r?"":a}},b(Cl,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:s.cellRows,forPrint:e.forPrint,fgEventSegs:o.fgEventSegs,bgEventSegs:o.bgEventSegs,businessHourSegs:o.businessHourSegs,dateSelectionSegs:o.dateSelectionSegs,eventDrag:o.eventDrag,eventResize:o.eventResize,eventSelection:o.eventSelection})))}}const Nc=vt(1,"month");function Pc(e,t,n,r,i){const{start:s,end:o}=t.currentRange;let a=s;const l=[];for(;a.valueOf()<o.valueOf();){const s=n.add(a,Nc),o={start:e.skipHiddenDays(a),end:e.skipHiddenDays(s,-1,!0)};let c=Ka({currentRange:o,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});c={start:e.skipHiddenDays(c.start),end:e.skipHiddenDays(c.end,-1,!0)};const d=t.activeRange?or(t.activeRange,i?c:o):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:c,activeRange:d,currentRange:o,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),a=s}return l}const Bc=un({year:"numeric",month:"long"}),jc=un({month:"long"});function Wc(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?Bc:jc)}const Lc={multiMonthTitleFormat:un,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};He(".fc-multimonth-scroll{overflow-x:hidden;overflow-y:scroll}.fc-multimonth-inner{display:flex;flex-wrap:wrap}.fc-multimonth-multicol .fc-multimonth-month{margin:0 1.2em 1.2em}.fc-multimonth-multicol .fc-multimonth-title{padding:1em 0}.fc-multimonth-singlecol .fc-multimonth-title{padding:.5em 0}.fc-multimonth-title{font-size:1.2em;font-weight:700;text-align:center}.fc-multimonth-header-row{border-top:1px solid var(--fc-border-color)}.fc-multimonth-header-row,.fc-multimonth-month{border-bottom:1px solid var(--fc-border-color)}.fc-multimonth-singlecol .fc-multimonth-month:last-child{border-bottom:0}.fc-multimonth-multicol .fc-multimonth-body,.fc-multimonth-multicol .fc-multimonth-header-row{border-left:1px solid var(--fc-border-color);border-right:1px solid var(--fc-border-color);font-size:.9em;line-height:1}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:sticky;top:0;z-index:2}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-body{position:relative;z-index:1}");var Uc=ko({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:Lc,views:{multiMonth:{component:class extends ms{constructor(){super(...arguments),this.splitDateProfileByMonth=Zt(Pc),this.buildMonthFormat=Zt(Wc),this.rootElRef={current:null},this.innerElRef={current:null},this.handleClientWidth=e=>{let{xGap:t,xPadding:n}=this.state;if(null==t){const r=this.innerElRef.current.childNodes;if(r.length>1){const i=r[0].getBoundingClientRect(),s=r[1].getBoundingClientRect();let o;[t,o]=[Math.abs(i.left-s.right),Math.abs(i.right-s.left)].sort(ft),n=e-o}}this.setState({clientWidth:e,xGap:t,xPadding:n})},this.timeScrollResponder=new ho(e=>{if(null!=this.state.clientWidth){const{currentDate:e}=this.props.dateProfile,t=this.rootElRef.current,n=this.innerElRef.current,r=n.querySelector(`[data-date="${Qt(e)}"]`);return t.scrollTop=Math.ceil(r.getBoundingClientRect().top-n.getBoundingClientRect().top),!0}return!1})}render(){const{context:e,props:t,state:n}=this,{options:r}=e,i=null==n.clientWidth?2:Math.min(r.multiMonthMaxColumns,Math.floor((n.clientWidth-n.xPadding+n.xGap)/(r.multiMonthMinWidth+n.xGap))),s=null==n.clientWidth?"34%":Math.floor((n.clientWidth-n.xPadding-n.xGap*(i-1))/i),o=this.splitDateProfileByMonth(e.dateProfileGenerator,t.dateProfile,e.dateEnv,r.fixedWeekCount,r.showNonCurrentDates),a=this.buildMonthFormat(r.multiMonthTitleFormat,o),l=["fc-multimonth-view",1===i?"fc-multimonth-singlecol":"fc-multimonth-multicol",io(r)?"":"fc-multimonth-scroll","fc-border"];return b(co,{unit:"day"},(n,r)=>b(nr,{elRef:this.rootElRef,elClasses:l,viewSpec:e.viewSpec},b("div",{ref:this.innerElRef,className:"fc-multimonth-inner"},o.map((e,n)=>{const i=Qt(e.currentRange.start);return b(Oc,Object.assign({},t,{key:i,todayRange:r,isoDateStr:i,titleFormat:a,dateProfile:e,width:s}))}))))}componentDidMount(){const{context:e}=this,{options:t}=e;this.unwatchWidth=$i(this.rootElRef.current,this.handleClientWidth),e.emitter.on("_timeScrollRequest",this.timeScrollResponder.handleScroll),this.timeScrollResponder.handleScroll(t.scrollTime)}componentDidUpdate(e){const{options:t}=this.context;e.dateProfile!==this.props.dateProfile&&t.scrollTimeReset?this.timeScrollResponder.handleScroll(t.scrollTime):this.timeScrollResponder.drain()}componentWillUnmount(){this.unwatchWidth(),this.context.emitter.off("_timeScrollRequest",this.timeScrollResponder.handleScroll)}},dateProfileGeneratorClass:$a,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}});return sa.push(Xa,Bl,Ac,Hc,Uc),e.Calendar=class extends Do{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;Un(()=>{z(b(ki,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r)=>(this.setClassNames(t),this.setHeight(n),b(Kn.Provider,{value:this.customContentRenderId},b(Aa,Object.assign({forPrint:r},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,z(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&Oe(e.getRootNode())}(e),this.el=e,this.renderRunner=new Be(this.handleRenderRequest),new la({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(){Un(()=>{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(!Rt(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){Fe(this.el,"height",e)}},e.Draggable=class{constructor(e,t={}){this.handlePointerDown=e=>{let{dragging:t}=this,{minDistance:n,longPressDelay:r}=this.settings;t.minDistance=null!=n?n:e.isTouch?0:fn.eventDragMinDistance,t.delay=e.isTouch?null!=r?r:fn.longPressDelay:0},this.handleDragStart=e=>{e.isTouch&&this.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&this.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;let n=this.dragging=new Wa(e);n.touchScrollAllowed=!1,null!=t.itemSelector&&(n.pointer.selector=t.itemSelector),null!=t.appendTo&&(n.mirror.parentNode=t.appendTo),n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragstart",this.handleDragStart),new qa(n,t.eventData)}destroy(){this.dragging.destroy()}},e.Internal=wo,e.JsonRequestError=Ti,e.Preact=Ao,e.ThirdPartyDraggable=class{constructor(e,t){let n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};let r=this.dragging=new Za(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new qa(r,t.eventData).hitDragging.disablePointCheck=!0}destroy(){this.dragging.destroy()}},e.createPlugin=ko,e.formatDate=function(e,t={}){let n=xa(t),r=un(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatRange=function(e,t,n){let r=xa("object"==typeof n&&n?n:{}),i=un(n),s=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return s&&o?r.formatRange(s.marker,o.marker,i,{forcedStartTzo:s.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:fn.defaultRangeSeparator}):""},e.globalLocales=Ro,e.globalPlugins=sa,e.sliceEvents=function(e,t){return ai(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="7.0.0-beta.0",Object.defineProperty(e,"__esModule",{value:!0}),e}({});
6
+ var FullCalendar=function(e){"use strict";var t,n,r,i,s,o,a,l,c,d,u,h,f={},g=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function v(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 b(e,n,r){var i,s,o,a={};for(o in n)"key"==o?i=n[o]:"ref"==o?s=n[o]:a[o]=n[o];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return S(e,a,i,s,null)}function S(e,t,i,s,o){var a={type:e,props:t,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++r:o,__i:-1,__u:0};return null==o&&null!=n.vnode&&n.vnode(a),a}function E(){return{current:null}}function D(e){return e.children}function w(e,t){this.props=e,this.context=t}function A(e,t){if(null==t)return e.__?A(e.__,e.__i+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?A(e):null}function R(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 R(e)}}function _(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!C.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||a)(C)}function C(){var e,t,r,i,o,a,c,d;for(s.sort(l);e=s.shift();)e.__d&&(t=s.length,i=void 0,a=(o=(r=e).__v).__e,c=[],d=[],r.__P&&((i=v({},o)).__v=o.__v+1,n.vnode&&n.vnode(i),P(r.__P,i,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,c,null==a?A(o):a,!!(32&o.__u),d),i.__v=o.__v,i.__.__k[i.__i]=i,B(c,i,d),i.__e!=a&&R(i)),s.length>t&&s.sort(l));C.__r=0}function x(e,t,n,r,i,s,o,a,l,c,d){var u,h,p,m,v,y=r&&r.__k||g,b=t.length;for(n.__d=l,T(n,t,y),l=n.__d,u=0;u<b;u++)null!=(p=n.__k[u])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?f:y[p.__i]||f,p.__i=u,P(e,p,h,i,s,o,a,l,c,d),m=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&j(h.ref,null,p),d.push(p.ref,p.__c||m,p)),null==v&&null!=m&&(v=m),65536&p.__u||h.__k===p.__k?l=M(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:m&&(l=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=v}function T(e,t,n){var r,i,s,o,a,l=t.length,c=n.length,d=c,u=0;for(e.__k=[],r=0;r<l;r++)o=r+u,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?S(null,i,null,null,null):m(i)?S(D,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?S(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=I(i,n,o,d),i.__i=a,s=null,-1!==a&&(d--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&u--,"function"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a==o-1?u=a-o:a==o+1?u++:a>o?d>l-o?u+=a-o:u--:a<o&&u++,a!==r+u&&(i.__u|=65536))):(s=n[o])&&null==s.key&&s.__e&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=A(s)),L(s,s,!1),n[o]=null,d--);if(d)for(r=0;r<c;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=A(s)),L(s,s))}function M(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=M(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=A(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function k(e,t){return t=t||[],null==e||"boolean"==typeof e||(m(e)?e.some((function(e){k(e,t)})):t.push(e)),t}function I(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,l=t[n];if(null===l||l&&i==l.key&&s===l.type&&0==(131072&l.__u))return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function O(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(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=c,e.addEventListener(t,s?u:d,s)):e.removeEventListener(t,s?u:d,s);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function H(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=c++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function P(e,t,r,i,s,o,a,l,c,d){var u,h,f,g,p,y,b,S,E,A,R,_,C,T,M,k,I=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),o=[l=t.__e=r.__e]),(u=n.__b)&&u(t);e:if("function"==typeof I)try{if(S=t.props,E="prototype"in I&&I.prototype.render,A=(u=I.contextType)&&i[u.__c],R=u?A?A.props.value:u.__:i,r.__c?b=(h=t.__c=r.__c).__=h.__E:(E?t.__c=h=new I(S,R):(t.__c=h=new w(S,R),h.constructor=I,h.render=U),A&&A.sub(h),h.props=S,h.state||(h.state={}),h.context=R,h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),E&&null==h.__s&&(h.__s=h.state),E&&null!=I.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=v({},h.__s)),v(h.__s,I.getDerivedStateFromProps(S,h.__s))),g=h.props,p=h.state,h.__v=t,f)E&&null==I.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),E&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(E&&null==I.getDerivedStateFromProps&&S!==g&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(S,R),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(S,h.__s,R)||t.__v===r.__v)){for(t.__v!==r.__v&&(h.props=S,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(S,h.__s,R),E&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(g,p,y)}))}if(h.context=R,h.props=S,h.__P=e,h.__e=!1,C=n.__r,T=0,E){for(h.state=h.__s,h.__d=!1,C&&C(t),u=h.render(h.props,h.state,h.context),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[]}else do{h.__d=!1,C&&C(t),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++T<25);h.state=h.__s,null!=h.getChildContext&&(i=v(v({},i),h.getChildContext())),E&&!f&&null!=h.getSnapshotBeforeUpdate&&(y=h.getSnapshotBeforeUpdate(g,p)),x(e,m(k=null!=u&&u.type===D&&null==u.key?u.props.children:u)?k:[k],t,r,i,s,o,a,l,c,d),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),b&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=o){for(t.__u|=c?160:32;l&&8===l.nodeType&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,t.__e=l}else t.__e=r.__e,t.__k=r.__k;n.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=W(r.__e,t,r,i,s,o,a,c,d);(u=n.diffed)&&u(t)}function B(e,t,r){t.__d=void 0;for(var i=0;i<r.length;i++)j(r[i],r[++i],r[++i]);n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function W(e,n,r,i,s,o,a,l,c){var d,u,h,g,p,v,b,S=r.props,E=n.props,D=n.type;if("svg"===D?s="http://www.w3.org/2000/svg":"math"===D?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=o)for(d=0;d<o.length;d++)if((p=o[d])&&"setAttribute"in p==!!D&&(D?p.localName===D:3===p.nodeType)){e=p,o[d]=null;break}if(null==e){if(null===D)return document.createTextNode(E);e=document.createElementNS(s,D,E.is&&E),o=null,l=!1}if(null===D)S===E||l&&e.data===E||(e.data=E);else{if(o=o&&t.call(e.childNodes),S=r.props||f,!l&&null!=o)for(S={},d=0;d<e.attributes.length;d++)S[(p=e.attributes[d]).name]=p.value;for(d in S)if(p=S[d],"children"==d);else if("dangerouslySetInnerHTML"==d)h=p;else if("key"!==d&&!(d in E)){if("value"==d&&"defaultValue"in E||"checked"==d&&"defaultChecked"in E)continue;O(e,d,null,p,s)}for(d in E)p=E[d],"children"==d?g=p:"dangerouslySetInnerHTML"==d?u=p:"value"==d?v=p:"checked"==d?b=p:"key"===d||l&&"function"!=typeof p||S[d]===p||O(e,d,p,S[d],s);if(u)l||h&&(u.__html===h.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),n.__k=[];else if(h&&(e.innerHTML=""),x(e,m(g)?g:[g],n,r,i,"foreignObject"===D?"http://www.w3.org/1999/xhtml":s,o,a,o?o[0]:r.__k&&A(r,0),l,c),null!=o)for(d=o.length;d--;)null!=o[d]&&y(o[d]);l||(d="value",void 0!==v&&(v!==e[d]||"progress"===D&&!v||"option"===D&&v!==S[d])&&O(e,d,v,S[d],s),d="checked",void 0!==b&&b!==e[d]&&O(e,d,b,S[d],s))}return e}function j(e,t,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function L(e,t,r){var i,s;if(n.unmount&&n.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||j(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){n.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&L(i[s],t,r||"function"!=typeof e.type);r||null==e.__e||y(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function z(e,r,i){var s,o,a,l;n.__&&n.__(e,r),o=(s="function"==typeof i)?null:i&&i.__k||r.__k,a=[],l=[],P(r,e=(!s&&i||r).__k=b(D,null,[e]),o||f,f,r.namespaceURI,!s&&i?[i]:o?null:r.firstChild?t.call(r.childNodes):null,a,!s&&i?i:o?o.__e:r.firstChild,s,l),B(a,e,l)}t=g.slice,n={__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}},r=0,i=function(e){return null!=e&&null==e.constructor},w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},w.prototype.render=D,s=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,c=0,d=H(!1),u=H(!0),h=0;var F,V,G,Q=[],Y=n,q=Y.__b,Z=Y.__r,X=Y.diffed,J=Y.__c,$=Y.unmount,K=Y.__;function ee(){for(var e;e=Q.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(ie),e.__H.__h=[]}catch(t){e.__H.__h=[],Y.__e(t,e.__v)}}Y.__b=function(e){F=null,q&&q(e)},Y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),K&&K(e,t)},Y.__r=function(e){Z&&Z(e);var t=(F=e.__c).__H;t&&(V===F?(t.__h=[],F.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(re),t.__h.forEach(ie),t.__h=[])),V=F},Y.diffed=function(e){X&&X(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Q.push(t)&&G===Y.requestAnimationFrame||((G=Y.requestAnimationFrame)||ne)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),V=F=null},Y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||ie(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Y.__e(n,e.__v)}})),J&&J(e,t)},Y.unmount=function(e){$&&$(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),n.__H=void 0,t&&Y.__e(t,n.__v))};var te="function"==typeof requestAnimationFrame;function ne(e){var t,n=function(){clearTimeout(r),te&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);te&&(t=requestAnimationFrame(n))}function re(e){var t=F,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),F=t}function ie(e){var t=F;e.__c=e.__(),F=t}function se(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 oe(e,t){this.props=e,this.context=t}(oe.prototype=new w).isPureReactComponent=!0,oe.prototype.shouldComponentUpdate=function(e,t){return se(this.props,e)||se(this.state,t)};var ae=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ae&&ae(e)};var le=n.__e;n.__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);le(e,t,n,r)};var ce=n.unmount;function de(){this.__u=0,this.t=null,this.__b=null}function ue(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function he(){this.u=null,this.o=null}n.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ce&&ce(e)},(de.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ue(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]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},de.prototype.componentWillUnmount=function(){this.t=[]},de.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&b(D,null,e.fallback);return i&&(i.__u&=-33),[b(D,null,t.__a?null:e.children),i]};var fe=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 ge(e){return this.getChildContext=function(){return e.context},e.children}function pe(e){var t=this,n=e.i;t.componentWillUnmount=function(){z(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},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)}}),z(b(ge,{context:t.context},e.__v),t.l)}function me(e,t){var n=b(pe,{__v:e,i:t});return n.containerInfo=t,n}(he.prototype=new w).__a=function(e){var t=this,n=ue(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),fe(t,e,r)):i()};n?n(s):s()}},he.prototype.render=function(e){this.u=null,this.o=new Map;var t=k(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},he.prototype.componentDidUpdate=he.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){fe(e,n,t)}))};var ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ye=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,be=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Se=/[A-Z0-9]/g,Ee="undefined"!=typeof document,De=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).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 we=n.event;function Ae(){}function Re(){return this.cancelBubble}function _e(){return this.defaultPrevented}n.event=function(e){return we&&(e=we(e)),e.persist=Ae,e.isPropagationStopped=Re,e.isDefaultPrevented=_e,e.nativeEvent=e};var Ce={enumerable:!1,configurable:!0,get:function(){return this.class}},xe=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||Ee&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var o=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"translate"===o&&"no"===s?s=!1:"ondoubleclick"===o?i="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||De(t.type)?"onfocus"===o?i="onfocusin":"onblur"===o?i="onfocusout":be.test(i)?i=o:-1===n.indexOf("-")&&ye.test(i)?i=i.replace(Se,"-$&").toLowerCase():null===s&&(s=void 0):o=i="oninput","oninput"===o&&r[i=o]&&(i="oninputCapture"),r[i]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=k(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=k(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Ce)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=ve,xe&&xe(e)};var Te=n.__r;n.__r=function(e){Te&&Te(e),e.__c};var Me=n.diffed;function ke(e){e();let t=n.debounceRendering,r=[];for(n.debounceRendering=function(e){r.push(e)},z(b(Ie,{}),document.createElement("div"));r.length;)r.shift()();n.debounceRendering=t}n.diffed=function(e){Me&&Me(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};class Ie extends w{render(){return b("div",{})}componentDidMount(){this.setState({})}}function Ne(e){let t=function(e,t){var n={__c:t="__cC"+h++,__: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.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(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}const Oe=n,He=[],Pe=new Map;function Be(e){He.push(e),Pe.forEach(t=>{je(t,e)})}function We(e){let t=Pe.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=function(){void 0===Le&&(Le=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return Le}();n&&(t.nonce=n);const r=e===document?document.head:e,i=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,i)}Pe.set(e,t),function(e){for(const t of He)je(e,t)}(t)}}function je(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)})}let Le;"undefined"!=typeof document&&We(document);function Ue(e){e.preventDefault()}function ze(e,t,n,r){let i=function(e,t){return n=>{let r=n.target.closest(e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}Be(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc{display:flex;flex-direction:column;gap:1.5em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-border,.fc-border-b,.fc-border-e,.fc-border-s,.fc-border-t{border:0 solid var(--fc-border-color)}.fc-border-transparent{border-color:transparent}.fc-border{border-width:1px}.fc-border-t{border-top-width:1px}.fc-border-b{border-bottom-width:1px}.fc-direction-ltr .fc-border-s,.fc-direction-rtl .fc-border-e{border-left-width:1px}.fc-direction-ltr .fc-border-e,.fc-direction-rtl .fc-border-s{border-right-width:1px}.fc-flex-row{display:flex;flex-direction:row}.fc-flex-col{display:flex;flex-direction:column}.fc-grow{flex-grow:1}.fc-basis0,.fc-liquid{flex-basis:0}.fc-liquid{flex-grow:1;min-height:0;min-width:0}.fc-media-screen .fc-print-header,.fc-media-screen .fc-print-root{display:flex;flex-direction:column}.fc-cell{margin:0!important;padding:0!important}.fc-cell-inner{flex-shrink:0;overflow:hidden;white-space:nowrap}.fc-celldivider,.fc-rowdivider{border:0 solid var(--fc-border-color)}.fc-rowdivider{border-width:1px 0}.fc-celldivider{border-width:0 1px}.fc-celldivider,.fc-rowdivider{background:var(--fc-neutral-bg-color)}.fc-celldivider{padding-left:2px}.fc-rowdivider{padding-bottom:2px}.fc-crop{overflow:hidden}.fc-rel{position:relative}.fc-abs{position:absolute}.fc-fill{bottom:0;top:0}.fc-fill,.fc-fill-x{left:0;position:absolute;right:0}.fc-fill-y{bottom:0;position:absolute;top:0}.fc-sticky-t{position:sticky;top:0}.fc-sticky-s{left:0;position:sticky;right:0}.fc-table-header-sticky{background:var(--fc-page-bg-color);position:sticky;top:0;z-index:5}.fc-sticky-footer-scrollbar{bottom:0;position:sticky;z-index:5}.fc-sticky-footer-scrollbar>.fc-scroller{margin-top:-1px}.fc-sticky-footer-scrollbar>.fc-scroller>*{height:1px}.fc-content-box{box-sizing:content-box}.fc-offscreen{left:-10000px;position:absolute}.fc-shaded{background-color:var(--fc-neutral-bg-color)}.fc-filler{opacity:.5}.fc-padding-sm{padding:2px 4px}.fc-padding-md{padding:4px 5px}.fc-padding-lg{padding:8px}.fc-justify-center{justify-content:center}.fc-align-center{align-items:center}.fc-align-start{align-items:flex-start}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-view-outer{position:relative}.fc-view-outer-liquid,.fc-view-outer-static{display:flex;flex-direction:column}.fc-view-outer-liquid,.fc-view-outer-liquid>.fc-view,.fc-view-outer-static>.fc-view{flex-basis:0;flex-grow:1;min-height:0;min-width:0}.fc-view-outer-aspect-ratio>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event-selected:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-event-inner{position:relative;z-index:2}.fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-bg-event,.fc-highlight,.fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc-non-business{background:var(--fc-non-business-color)}.fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc-highlight{background:var(--fc-highlight-color)}.fc-day-disabled{background:var(--fc-neutral-bg-color)}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:flex;flex-direction:column;position:relative}.fc-h-event.fc-event-mirror{z-index:3}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-h-event .fc-event-inner{color:var(--fc-event-text-color);display:flex;flex-direction:row}.fc-h-event .fc-event-time,.fc-h-event .fc-event-title{overflow:hidden;white-space:nowrap}.fc-h-event .fc-event-title-outer{display:flex;flex-basis:0;flex-direction:row;flex-grow:1;min-height:0;min-width:0}.fc-h-event .fc-event-title{left:0;position:sticky;right:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:6}.fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc-popover-title{margin:0 2px}.fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}.fc-scroller{padding:0!important}.fc-scroller-no-bars{-ms-overflow-style:none;scrollbar-width:none}.fc-scroller-no-bars::-webkit-scrollbar{display:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc-button{-webkit-appearance:button}.fc-button:not(:disabled){cursor:pointer}.fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc-button:hover{text-decoration:none}.fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc-button:disabled{opacity:.65}.fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button-primary:not(:disabled).fc-button-active,.fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc-button-primary:not(:disabled).fc-button-active:focus,.fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc-button-group>.fc-button.fc-button-active,.fc-button-group>.fc-button:active,.fc-button-group>.fc-button:focus,.fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc-toolbar{align-items:center;display:flex;flex-direction:row;gap:.75em;justify-content:space-between}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc-toolbar-section{display:flex;flex-direction:row;flex-shrink:0;gap:.75em}.fc-toolbar-title{font-size:1.75em;margin:0;white-space:nowrap}');const Fe=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ve(e,t){let n=r=>{t(r),Fe.forEach(t=>{e.removeEventListener(t,n)})};Fe.forEach(t=>{e.addEventListener(t,n)})}function Ge(e){return Object.assign({onClick:e},Qe(e))}function Qe(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let Ye=0;function qe(){return Ye+=1,String(Ye)}function Ze(){document.body.classList.add("fc-not-allowed")}function Xe(){document.body.classList.remove("fc-not-allowed")}function Je(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Ue)}function $e(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Ue)}function Ke(e){e.addEventListener("contextmenu",Ue)}function et(e){e.removeEventListener("contextmenu",Ue)}function tt(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 nt(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=rt(e,t,n[r]),i)return i;return 0}function rt(e,t,n){return n.func?n.func(e,t):it(e[n.field],t[n.field])*(n.order||1)}function it(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 st(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function ot(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function at(e,t){return e-t}function lt(e){return e%1==0}const ct=["years","months","days","milliseconds"],dt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ut(e,t){return"string"==typeof e?function(e){let t=dt.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}(e):"object"==typeof e&&e?ht(e):"number"==typeof e?ht({[t||"milliseconds"]:e}):null}function ht(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 ft(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function gt(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function pt(e){return mt(e)/864e5}function mt(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function vt(e,t){let n=null;for(let r=0;r<ct.length;r+=1){let i=ct[r];if(t[i]){let r=e[i]/t[i];if(!lt(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n}function yt(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}}const{hasOwnProperty:bt}=Object.prototype;function St(e,t){let n={};if(t)for(let r in t)if(t[r]===Dn){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]=St(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function Et(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Dt(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function wt(e){let t={};for(let n of e)t[n]=!0;return t}function At(e){let t=[];for(let n in e)t.push(e[n]);return t}function Rt(e,t){if(e===t)return!0;for(let n in e)if(bt.call(e,n)&&!(n in t))return!1;for(let n in t)if(bt.call(t,n)&&e[n]!==t[n])return!1;return!0}const _t=/^on[A-Z]/;function Ct(e,t){let n=[];for(let r in e)bt.call(e,r)&&(r in t||n.push(r));for(let r in t)bt.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function xt(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!Tt(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function Tt(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Mt(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}const kt=["sun","mon","tue","wed","thu","fri","sat"];function It(e,t){let n=Gt(e);return n[2]+=7*t,Qt(n)}function Nt(e,t){let n=Gt(e);return n[2]+=t,Qt(n)}function Ot(e,t){let n=Gt(e);return n[6]+=t,Qt(n)}function Ht(e,t){return Pt(e,t)/7}function Pt(e,t){return(t.valueOf()-e.valueOf())/864e5}function Bt(e,t){let n=Lt(e),r=Lt(t);return{years:0,months:0,days:Math.round(Pt(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Wt(e,t){let n=jt(e,t);return null!==n&&n%7==0?n/7:null}function jt(e,t){return qt(e)===qt(t)?Math.round(Pt(e,t)):null}function Lt(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Ut(e,t,n,r){let i=Qt([t,0,1+zt(t,n,r)]),s=Lt(e),o=Math.round(Pt(i,s));return Math.floor(o/7)+1}function zt(e,t,n){let r=7+t-n;return-((7+Qt([e,0,r]).getUTCDay()-t)%7)+r-1}function Ft(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Vt(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 Gt(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 Yt(e){return!isNaN(e.valueOf())}function qt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Zt(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",Kt(t,!0)))),r}function Xt(e){return e.toISOString().replace(/T.*$/,"")}function Jt(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function $t(e){return st(e.getUTCHours(),2)+":"+st(e.getUTCMinutes(),2)+":"+st(e.getUTCSeconds(),2)}function Kt(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+st(i,2)}:${st(s,2)}`:`GMT${n}${i}${s?":"+st(s,2):""}`}function en(e,t,n){let r,i;return function(...s){if(r){if(!Mt(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 tn(e,t,n){let r,i;return s=>{if(r){if(!Rt(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}}const nn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},rn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},sn=/\s*([ap])\.?m\.?/i,on=/,/g,an=/\s+/g,ln=/\u200e/g,cn=/UTC|GMT/;class dn{constructor(e){let t={},n={},r=0;for(let i in e)i in nn?(n[i]=e[i],r=Math.max(nn[i],r)):(t[i]=e[i],i in rn&&(r=Math.max(rn[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=en(un)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=this,o=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(qt(e)!==qt(t))return 1;return 0}(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=un(function(e,t){let n={};for(let r in e)(!(r in rn)||rn[r]<=t)&&(n[r]=e[r]);return n}(i,a),s,n),u=d(e),h=d(t),f=function(e,t,n,r){let i=0;for(;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;for(;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}(l,u,c,h),g=s.separator||r||n.defaultSeparator||"";return f?f.before+u+g+h+f.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 un(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>Kt(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,i){let s=[];"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();return s.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(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}(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;return o=r&&!a.getUTCMinutes()?r:i,function(e,t,n,r,i){e=e.replace(ln,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(cn,()=>(n=!0,t)),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Kt(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(on,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(sn,"").trim():"narrow"===r.meridiem?e=e.replace(sn,(e,t)=>t.toLocaleLowerCase()):"short"===r.meridiem?e=e.replace(sn,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===r.meridiem&&(e=e.replace(sn,e=>e.toLocaleLowerCase()));return e=(e=e.replace(an," ")).trim()}(o.format(a),s,e,t,n)}}(e,t,n)}function hn(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 fn(e,t,n,r){let i=hn(e,n.calendarSystem);return{date:i,start:i,end:t?hn(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class gn{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,fn(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,fn(e,t,n,r))}}class pn{constructor(e){this.func=e}format(e,t,n){return this.func(fn(e,null,t,n))}formatRange(e,t,n,r){return this.func(fn(e,t,n,r))}}function mn(e){return"object"==typeof e&&e?new dn(e):"string"==typeof e?new gn(e):"function"==typeof e?new pn(e):null}const vn={navLinkDayClick:Cn,navLinkWeekClick:Cn,duration:ut,bootstrapFontAwesome:Cn,buttonIcons:Cn,customButtons:Cn,defaultAllDayEventDuration:ut,defaultTimedEventDuration:ut,nextDayThreshold:ut,scrollTime:ut,scrollTimeReset:Boolean,slotMinTime:ut,slotMaxTime:ut,dayPopoverFormat:mn,slotDuration:ut,snapDuration:ut,headerToolbar:Cn,footerToolbar:Cn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:mn,dayHeaderClassNames:Cn,dayHeaderContent:Cn,dayHeaderDidMount:Cn,dayHeaderWillUnmount:Cn,dayCellClassNames:Cn,dayCellContent:Cn,dayCellDidMount:Cn,dayCellWillUnmount:Cn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Cn,weekNumbers:Boolean,weekNumberClassNames:Cn,weekNumberContent:Cn,weekNumberDidMount:Cn,weekNumberWillUnmount:Cn,editable:Boolean,viewClassNames:Cn,viewDidMount:Cn,viewWillUnmount:Cn,nowIndicator:Boolean,nowIndicatorClassNames:Cn,nowIndicatorContent:Cn,nowIndicatorDidMount:Cn,nowIndicatorWillUnmount:Cn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Cn,locale:Cn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Cn,eventOrder:tt,eventOrderStrict:Boolean,eventSlicing:Boolean,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Cn,contentHeight:Cn,direction:String,weekNumberFormat:mn,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Cn,initialDate:Cn,now:Cn,eventDataTransform:Cn,stickyHeaderDates:Cn,stickyFooterScrollbar:Cn,viewHeight:Cn,defaultAllDay:Boolean,eventSourceFailure:Cn,eventSourceSuccess:Cn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Cn,eventConstraint:Cn,eventAllow:Cn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Cn,eventContent:Cn,eventDidMount:Cn,eventWillUnmount:Cn,selectConstraint:Cn,selectOverlap:Cn,selectAllow:Cn,droppable:Boolean,unselectCancel:String,slotLabelFormat:Cn,slotLaneClassNames:Cn,slotLaneContent:Cn,slotLaneDidMount:Cn,slotLaneWillUnmount:Cn,slotLabelClassNames:Cn,slotLabelContent:Cn,slotLabelDidMount:Cn,slotLabelWillUnmount:Cn,dayMaxEvents:Cn,dayMaxEventRows:Cn,dayMinWidth:Number,slotLabelInterval:ut,allDayText:String,allDayClassNames:Cn,allDayContent:Cn,allDayDidMount:Cn,allDayWillUnmount:Cn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:mn,rerenderDelay:Number,moreLinkText:Cn,moreLinkHint:Cn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Cn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ut,hiddenDays:Cn,fixedWeekCount:Boolean,validRange:Cn,visibleRange:Cn,titleFormat:Cn,eventInteractive:Boolean,noEventsText:String,viewHint:Cn,navLinkHint:Cn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Cn,moreLinkClassNames:Cn,moreLinkContent:Cn,moreLinkDidMount:Cn,moreLinkWillUnmount:Cn,monthStartFormat:mn,handleCustomRendering:Cn,customRenderingMetaMap:Cn,customRenderingReplaces:Boolean},yn={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},bn={datesSet:Cn,eventsSet:Cn,eventAdd:Cn,eventChange:Cn,eventRemove:Cn,eventClick:Cn,eventMouseEnter:Cn,eventMouseLeave:Cn,select:Cn,unselect:Cn,loading:Cn,_unmount:Cn,_beforeprint:Cn,_afterprint:Cn,_noEventDrop:Cn,_noEventResize:Cn,_timeScrollRequest:Cn},Sn={buttonText:Cn,buttonHints:Cn,views:Cn,plugins:Cn,initialEvents:Cn,events:Cn,eventSources:Cn},En={headerToolbar:Dn,footerToolbar:Dn,buttonText:Dn,buttonHints:Dn,buttonIcons:Dn,dateIncrement:Dn,plugins:wn,events:wn,eventSources:wn,resources:wn};function Dn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Rt(e,t):e===t}function wn(e,t){return Array.isArray(e)&&Array.isArray(t)?Mt(e,t):e===t}const An={type:String,component:Cn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Cn,usesMinMaxTime:Boolean,classNames:Cn,content:Cn,didMount:Cn,willUnmount:Cn};function Rn(e){return St(e,En)}function _n(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function Cn(e){return e}function xn(e,t,n,r){return{instanceId:qe(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Tn(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;a=Et(a,e=>!o[e.defId].recurringDef);for(let e in o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let l=Mn(n,o,t,r,i.recurringTypes);for(let t of l){let n=xn(e,{start:t,end:r.add(t,o)});a[n.instanceId]=n}}}return{defs:o,instances:a}}function Mn(e,t,n,r,i){let s=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(Lt)),s}function kn(e,t,n,r,i,s){let o={defs:{},instances:{}},a=Xn(n);for(let l of e){let e=qn(l,t,n,r,a,i,s);e&&In(e,o)}return o}function In(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Nn(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=Pn(e,e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r});return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function On(){return{defs:{},instances:{}}}function Hn(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Pn(e,t){let n=Et(e.defs,t),r=Et(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function Bn(...e){return e.filter(Boolean).join(" ")}function Wn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}function jn(e){return 100*e+"%"}const Ln={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Cn,overlap:Cn,allow:Cn,className:Wn,classNames:Wn,color:String,backgroundColor:String,borderColor:String,textColor:String},Un={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function zn(e,t){let n=function(e,t){return Array.isArray(e)?kn(e,null,t,!0):"object"==typeof e&&e?kn([e],null,t,!0):null!=e?String(e):null}(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 Fn(e){return e.reduce(Vn,Un)}function Vn(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 Gn={id:String,groupId:String,title:String,url:String,interactive:Boolean},Qn={start:Cn,end:Cn,date:Cn,allDay:Boolean},Yn=Object.assign(Object.assign(Object.assign({},Gn),Qn),{extendedProps:Cn});function qn(e,t,n,r,i=Xn(n),s,o){let{refined:a,extra:l}=Zn(e,n,i),c=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),d=function(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}(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=Jn(a,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,s);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let u=function(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;null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified));o&&a&&(a=Lt(a));s&&(c=s.marker,o&&(c=Lt(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));return{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(a,c,n,r);if(u){let e=Jn(a,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,s),r=xn(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function Zn(e,t,n=Xn(t)){return _n(e,n)}function Xn(e){return Object.assign(Object.assign(Object.assign({},Ln),Yn),e.pluginHooks.eventRefiners)}function Jn(e,t,n,r,i,s,o){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||qe(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:zn(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of s.pluginHooks.eventDefMemberAdders)Object.assign(a,t(e));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}const $n={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Kn(e,t){return kn(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):"object"==typeof e&&e?[e]:[];return t=t.map(e=>Object.assign(Object.assign({},$n),e)),t}(e),null,t)}function er(e){let t=Math.floor(Pt(e.start,e.end))||1,n=Lt(e.start);return{start:n,end:Nt(n,t)}}function tr(e,t=ut(0)){let n=null,r=null;if(e.end){r=Lt(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=mt(t)&&(r=Nt(r,1))}return e.start&&(n=Lt(e.start),r&&r<=n&&(r=Nt(n,1))),{start:n,end:r}}function nr(e,t,n,r){return"year"===r?ut(n.diffWholeYears(e,t),"year"):"month"===r?ut(n.diffWholeMonths(e,t),"month"):Bt(e,t)}function rr(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function ir(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}function sr(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function or(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function ar(e,t){return{left:e.left-t.left,top:e.top-t.top}}const lr=/(top|left|right|bottom|width|height)$/i;function cr(e,t){for(let n in t)dr(e,n,t[n])}function dr(e,t,n){null==n?e.style[t]="":"number"==typeof n&&lr.test(t)?e.style[t]=n+"px":e.style[t]=n}function ur(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 hr=0;function fr(){return hr+=1,"fc-dom-"+hr}const gr={defs:{},instances:{}};class pr{constructor(){this.getKeysForEventDefs=en(this._getKeysForEventDefs),this.splitDateSelection=en(this._splitDateSpan),this.splitEventStore=en(this._splitEventStore),this.splitIndividualUi=en(this._splitIndividualUi),this.splitEventDrag=en(this._splitInteraction),this.splitEventResize=en(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=Dt(t,(e,t)=>this.eventUiBuilders[t]||en(mr));for(let n in t){let c=t[n],d=s[n]||gr,u=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:d,eventUiBases:u(e.eventUiBases[""],c.ui,i[n]),eventDrag:o[n]||null,eventResize:a[n]||null,eventSelection:d.instances[e.eventSelection]?e.eventSelection:""}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return Dt(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]={defs:{},instances:{}}),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),s=r=>{t[r]||(t[r]={affectedEvents:n[r]||gr,mutatedEvents:i[r]||gr,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}}function mr(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":Fn(r)};return n&&Object.assign(i,n),i}function vr(e,t){let n,r,i=[],{start:s}=t;for(e.sort(yr),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 yr(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 Sr(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function Er(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Dr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function wr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Ar(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!wr(r.activeRange,e)),isOther:Boolean(r&&!wr(r.currentRange,e)),isToday:Boolean(t&&wr(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Rr(e){return Bn("fc-day","fc-day-"+kt[e.dow],e.isDisabled?"fc-day-disabled":Bn(e.isToday&&"fc-day-today",e.isPast&&"fc-day-past",e.isFuture&&"fc-day-future",e.isOther&&"fc-day-other"))}function _r(e,t){return null!=e&&(e===t||Math.abs(e-t)<.01)}const Cr=new Map,xr=new Set;let Tr=!1;function Mr(e){Tr?xr.add(e):e()}function kr(){for(const e of xr.values())e(),xr.delete(e)}function Ir(){if(!Tr){Tr=!0;const e=[];for(const[t,n]of Cr.entries()){let r,i;n.client?(r=t.clientWidth,i=t.clientHeight):({width:r,height:i}=t.getBoundingClientRect()),Nr(n,r,i)&&e.push(n)}for(const t of e)t.callback(t.width,t.height);kr(),Tr=!1}}function Nr(e,t,n){let r=!1;return _r(e.width,t)||(e.width=t,r=e.watchWidth),_r(e.height,n)||(e.height=n,r||(r=e.watchHeight)),r}const Or=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Hr={capture:!0,passive:!0};const Pr=()=>{};const[Br,Wr]="undefined"!=typeof ResizeObserver?function(){const e=new ResizeObserver(e=>{Tr=!0;for(let t of e){const e=t.target,n=Cr.get(e);let r,i;if(n.client)r=e.clientWidth,i=e.clientHeight;else if(t.borderBoxSize){const e=t.borderBoxSize[0]||t.borderBoxSize;r=e.inlineSize,i=e.blockSize}else({width:r,height:i}=e.getBoundingClientRect());Nr(n,r,i)&&n.callback(r,i)}kr(),Tr=!1});return[function(t,n,r,i=!0,s=!0){return Cr.set(t,{callback:n,client:r,watchWidth:i,watchHeight:s}),e.observe(t,{box:r?void 0:"border-box"}),()=>{Cr.delete(t),e.unobserve(t)}},Ir]}():function(){let e,t=!1;const[n,r]=function(e,t){let n,r,i;return[function(){i?r=Date.now()-n:function t(s){n=Date.now(),r=0,i=setTimeout(()=>{r?t(r):(i=void 0,e())},s)}(t)},function(){i&&(clearTimeout(i),i=void 0)}]}(Ir,100);function i(){r(),Ir()}function s(){e.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function o(){e.disconnect()}function a(){t||(t=!0,Cr.size&&o())}function l(){t&&(t=!1,Cr.size&&s())}const c=Oe.__r||Pr,d=Oe.__c||Pr;let u=!1;return Oe.__r=function(){a(),c.apply(this,arguments)},Oe.__c=function(){u||(u=!0,requestAnimationFrame(()=>{i(),l(),u=!1})),d.apply(this,arguments)},[function(r,i,a,l=!0,c=!0){return Cr.size||function(){e=new MutationObserver(n),t||s();for(const e of Or)window.addEventListener(e,n,Hr)}(),Cr.set(r,{callback:i,client:a,watchWidth:l,watchHeight:c}),n(),()=>{Cr.delete(r),Cr.size||function(){t||o();for(const e of Or)window.removeEventListener(e,n,Hr)}()}},i]}();function jr(e,t){return Br(e,t,!0)}function Lr(e,t){return Br(e,(e,n)=>t(n),!1,!0)}const Ur=mn({year:"numeric",month:"long",day:"numeric"}),zr=mn({week:"long"});function Fr(e,t,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=e;let a=i.format(t,"week"===n?zr:Ur);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:ot(s.navLinkHint,[a,e],a),"data-navlink":""},r?Ge(l):{onClick:l})}return{"aria-label":a}}let Vr,Gr=null;function Qr(){return null===Gr&&(Gr=function(){let e=document.createElement("div");cr(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return e.remove(),t}()),Gr}function Yr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function qr(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,a=Yr(e),l=a.y-r-i,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:o,scrollbarBottom:a.x-s-o,scrollbarLeft:0,scrollbarRight:0};return Qr()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function Zr(e,t=!1,n){let r=n?e.getBoundingClientRect():Xr(e),i=qr(e,t),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function Xr(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function Jr(e){let t=[];for(;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}function $r(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 Kr{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function ei(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class ti{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class ni extends ti{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class ri extends ti{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ii{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}getClassName(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)}`:""}}ii.prototype.classes={},ii.prototype.iconClasses={},ii.prototype.baseIconClass="",ii.prototype.iconOverridePrefix="";const si=Ne({});function oi(e,t,n,r,i,s,o,a,l,c,d,u,h){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,registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class ai extends w{shouldComponentUpdate(e,t){return this.debug&&console.log(Ct(e,this.props),Ct(t,this.state)),!xt(this.props,e,this.propEquality)||!xt(this.state,t,this.stateEquality)}}ai.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},ai.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},ai.contextType=si,ai.prototype.propEquality={},ai.prototype.stateEquality={};class li extends ai{}function ci(e,t){"function"==typeof e?e(t):e&&(e.current=t)}li.contextType=si;class di extends li{constructor(){super(...arguments),this.uid=qe()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!e.closest(".fc-event-mirror")}isValidDateDownEl(e){return!(e.closest(".fc-event:not(.fc-bg-event)")||e.closest(".fc-more-link")||e.closest("a[data-navlink]")||e.closest(".fc-popover"))}}function ui(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class hi{constructor(e){this.props=e,this.nowDate=ui(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;var d,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(u=r).start&&d<u.start?u.start:null!=u.end&&d>=u.end?new Date(u.end.valueOf()-1):d),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=Er(i.range,r),wr(o,e)||(e=o.start),{currentDate:e,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=yt(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return ut({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(pt(r)<0&&(s=Lt(s),s=t.add(s,r)),pt(i)>1&&(o=Lt(o),o=Nt(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&&mt(e)<mt(n)?yt(e).unit:r}function c(){i=a.startOf(e,l),s=a.add(i,n),o={start:i,end:s}}return pt(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=Lt(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=Lt(a),a=this.skipHiddenDays(a,t),r=a;do{r=Nt(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)?ut(1,t):e||ut({days:1}))}refineRange(e){if(e){let t=function(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}(e,this.props.dateEnv);return t&&(t=tr(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){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=Nt(e,t);return e}}function fi(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},gi(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function gi(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,i=t.dateEnv,Object.assign(Object.assign({},zi(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function pi(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=Lt(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function mi(e,t,n,r){let i=xi(e.defs,t),s={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];s.defs[t]=vi(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=s.defs[o.defId];s.instances[t]=yi(o,a,i[o.defId],n,r)}return s}function vi(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 e of r.pluginHooks.eventDefMutationAppliers)e(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function yi(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:pi(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Lt(l.range.start),end:Lt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=pi(t.allDay,l.range.start,i)),l}class bi{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 Si{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Qn)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Gn[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Gn)t=Gn[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Ln){let n=Ln[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=nr(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=nr(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);var a,l;if(o&&((null==t||(r=i.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=er(e));let t=nr(e.start,o,i,n.granularity);if(r){let o=nr(e.end,r,i,n.granularity);l=o,(a=t).years===l.years&&a.months===l.months&&a.days===l.days&&a.milliseconds===l.milliseconds?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=ut(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=ut(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=ut(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=mn(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=Nn(i,t.instanceId);s=mi(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new Si(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:o,event:this,relatedEvents:Di(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=Ei(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 bi(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={allDay:t.allDay};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 Ei(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Di(e,t,n){let{defs:r,instances:i}=e,s=[],o=n?n.instanceId:"";for(let e in i){let n=i[e],a=r[n.defId];n.instanceId!==o&&s.push(new Si(t,a,n))}return s}function wi(e){return e.eventRange.instance.instanceId}function Ai(e,t,n,r){let i={},s={},o={},a=[],l=[],c=xi(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[t]=[])}for(let t in e.instances){let o=e.instances[t],d=e.defs[o.defId],u=c[d.defId],h=o.range,f=!d.allDay&&r?tr(h,r):h,g=br(f,n);g&&("inverse-background"===u.display?d.groupId?i[d.groupId].push(g):s[o.defId].push(g):"none"!==u.display&&("background"===u.display?a:l).push({def:d,ui:u,instance:o,range:g,isStart:f.start&&f.start.valueOf()===g.start.valueOf(),isEnd:f.end&&f.end.valueOf()===g.end.valueOf()}))}for(let e in i){let t=vr(i[e],n);for(let n of t){let t=o[e],r=c[t.defId];a.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in s){let r=vr(s[t],n);for(let n of r)a.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function Ri(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function _i(e,t){e.fcEventRange=t}function Ci(e){return e.fcEventRange||e.parentNode.fcEventRange||null}function xi(e,t){return Dt(e,e=>Ti(e,t))}function Ti(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Fn(n)}function Mi(e,t){let n=e.map(ki);return n.sort((e,n)=>nt(e,n,t)),n.map(e=>e._seg)}function ki(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 Ii(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e,o=s.startEditable;for(let e of r)o=e(o,i,s,t);return o}function Ni(e,t,n,r,i,s,o,a=!0,l=!0){const{dateEnv:c,options:d}=o,{def:u,instance:h}=t;let{displayEventTime:f,displayEventEnd:g}=d;null==f&&(f=!1!==a),null==g&&(g=!1!==l);const p=!i&&n?n:t.instance.range.start,m=!s&&r?r:t.instance.range.end;if(f&&!u.allDay){if(g&&(i||s)&&u.hasEnd)return c.formatRange(p,m,e,{forcedStartTzo:i?h.forcedStartTzo:null,forcedEndTzo:s?h.forcedEndTzo:null});if(i)return c.format(p,e,{forcedTzo:h.forcedStartTzo})}return""}function Oi(e,t,n){let r=e.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&wr(t,r.start)}}function Hi(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 Pi(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Bi(e,t){let{def:n,instance:r}=e,{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?Qe(e=>{s.trigger("eventClick",{el:e.target,event:new Si(t,n,r),jsEvent:e,view:t.viewApi})}):void 0}const Wi={start:Cn,end:Cn,allDay:Boolean};function ji(e,t,n){let r=function(e,t){let{refined:n,extra:r}=_n(e,Wi),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}(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 Li(e,t){return Sr(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(e,t)}function Ui(e,t,n){return Object.assign(Object.assign({},zi(e,t,n)),{timeZone:t.timeZone})}function zi(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})}}let Fi={};var Vi,Gi;Vi="gregory",Gi=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Qt(e)}markerToArray(e){return Gt(e)}},Fi[Vi]=Gi;const Qi=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Yi(e){let t=Qi.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(Yt(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 qi{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=function(e){return new Fi[e]}(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&&Yt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=Yi(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)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return qt(e)===qt(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 qt(e)===qt(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=Wt(e,t),null!==n?{unit:"week",value:n}:(n=jt(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),lt(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),lt(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),lt(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/(pt(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return pt(e)/30}(n):n.days&&(r=jt(e,t),null!==r)?r/pt(n):(t.valueOf()-e.valueOf())/mt(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Lt(e):"hour"===t?function(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return Qt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(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)):function(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}(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=Ot(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)),Zt(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?-Vt(Gt(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Gt(e)):null}toDate(e,t){return"local"===this.timeZone?Vt(Gt(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Gt(e))*60):new Date(e.valueOf()-(t||0))}}function Zi(e,t){const n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);if(n<r)return{start:n,end:r,isStart:e.isStart&&n===e.start,isEnd:e.isEnd&&r===e.end}}function Xi(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Ji(e){return e.end}function $i(e){return e.reduce(es).eventRange.range.start}function Ki(e){return e.reduce(ts).eventRange.range.end}function es(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function ts(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class ns{constructor(e,t=(e=>1),n=!1,r,i,s=!1,o=!1){this.getSegThickness=t,this.strictOrder=n,this.maxCoord=r,this.maxDepth=i,this.hiddenConsumes=s,this.allowSlicing=o,this.placementsByLevel=[],this.levelCoords=[],this.hiddenSegs=[];for(const t of e)this.insertSeg(t,this.getSegThickness(t))}insertSeg(e,t,n){if(null!=t){const r=this.findInsertion(e,t);if(this.isInsertionValid(r,t))this.insertSegAt(e,r,t,n);else{const{touchingPlacement:n}=r;if(n){if(this.hiddenConsumes&&!n.isZombie&&(n.isZombie=!0,this.hiddenSegs.push(n),this.allowSlicing)){const t=Object.assign({},n);Object.assign(n,Zi(n,e)),n.isSlice=!0,this.splitSeg(t,n.thickness,n)}this.allowSlicing?(this.hiddenSegs.push(Object.assign(Object.assign({},e),Zi(e,n))),this.splitSeg(e,t,n)):this.hiddenSegs.push(e)}else this.hiddenSegs.push(e)}}}isInsertionValid(e,t){return(null==this.maxCoord||e.levelCoord+t<=this.maxCoord)&&(null==this.maxDepth||e.depth<this.maxDepth)}splitSeg(e,t,n){e.start<n.start&&this.insertSeg(Object.assign(Object.assign({},e),{end:n.start,isEnd:!1}),t,!0),e.end>n.end&&this.insertSeg(Object.assign(Object.assign({},e),{start:n.end,isStart:!1}),t,!0)}insertSegAt(e,t,n,r){const i=Object.assign(Object.assign({},e),{thickness:n,depth:t.depth,isSlice:r||e.isSlice||!1,isZombie:!1});-1===t.lateralIndex?(is(this.placementsByLevel,t.levelIndex,[i]),is(this.levelCoords,t.levelIndex,t.levelCoord)):is(this.placementsByLevel[t.levelIndex],t.lateralIndex,i)}findInsertion(e,t){let n,r,{placementsByLevel:i,levelCoords:s}=this,o=i.length,a=0,l=0;for(let c=0;c<o;c+=1){const o=s[c];if(!this.strictOrder&&o>=a+t)break;let d,u=i[c],[h,f]=ss(u,e.start,Ji),g=h+f;for(;(d=u[g])&&d.start<e.end;){let e=o+d.thickness;e>a&&(a=e,n=d,r=c),e===a&&(l=Math.max(l,d.depth+1)),g+=1}}let c=0;if(n)for(c=r+1;c<o&&s[c]<a;)c+=1;let d=-1;return c<o&&s[c]===a&&([d]=ss(i[c],e.end,Ji)),{touchingPlacement:n,levelCoord:a,levelIndex:c,lateralIndex:d,depth:l}}traverseSegs(e){const{placementsByLevel:t,levelCoords:n}=this;for(let r=0;r<t.length;r++){const i=t[r],s=n[r];for(const t of i)t.isZombie||e(t,s)}}}function rs(e){let t=[];for(let i of e){let e=[],s={segs:[i],start:i.start,end:i.end};for(let i of t)r=s,(n=i).end>r.start&&n.start<r.end?s=Object.assign(Object.assign({},Xi(i,s)),{segs:i.segs.concat(s.segs)}):e.push(i);e.push(s),t=e}var n,r;return t.map(t=>Object.assign({key:Zt($i(e))},t))}function is(e,t,n){e.splice(t,0,n)}function ss(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];for(;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]}class os{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function as(e){return{[e.component.uid]:e}}const ls={};class cs{constructor(e,t){this.emitter=new Kr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ds={},us={startTime:ut,duration:ut,create:Boolean,sourceId:String};function hs(e){let{refined:t,extra:n}=_n(e,us);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}}class fs extends li{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0}),ke(()=>{}),Wr(),ke(()=>{})},this.handleAfterPrint=()=>{this.setState({forPrint:!1}),ke(()=>{})}}render(){let{props:e,state:t}=this,{options:n}=e,{forPrint:r}=t,i=["fc",r?"fc-media-print":"fc-media-screen","fc-direction-"+n.direction,e.theme.getClassName("root")];return e.children(i,n.height,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class gs{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],o=-1;for(;n<r;)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),s.push(n)),n=Nt(n,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Nt(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?{start:r,end:i+1,isStart:t===r,isEnd:n===i}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(Pt(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class ps{constructor(e,t){let n,r,i,{dates:s}=e;if(t){for(r=s[0].getUTCDay(),n=1;n<s.length&&s[n].getUTCDay()!==r;n+=1);i=Math.ceil(s.length/n)}else i=1,n=s.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cellRows=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.cellRows[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){const{start:e,end:i}=n;let s=e;for(;s<i;){let o=Math.floor(s/t),a=Math.min((o+1)*t,i);r.push({row:o,start:s%t,end:(a-1)%t+1,isStart:n.isStart&&s===e,isEnd:n.isEnd&&a===i}),s=a}}return r}}class ms{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,n[e]<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}const vs="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class ys{constructor(e){this.el=e,this.emitter=new Kr,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new ms(this._handleWheelWaited.bind(this)),this.scrollWaiter=new ms(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of vs)e.addEventListener(t,this.handleWheel,{passive:!0})}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of vs)e.removeEventListener(t,this.handleWheel,{passive:!0})}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class bs extends di{constructor(){super(...arguments),this.handleEl=e=>{const{props:t}=this;this.el&&(this.el=null,this.listener.destroy(),this.disconnectSize(),ci(t.clientWidthRef,null),ci(t.clientHeightRef,null),ci(t.endScrollbarWidthRef,null),ci(t.bottomScrollbarWidthRef,null)),e&&(this.el=e,this.listener=new ys(e),this.disconnectSize=Br(e,(t,n)=>{const{props:r}=this,i=e.offsetWidth-t,s=e.offsetHeight-n;this.currentClientWidth!==t&&ci(r.clientWidthRef,this.currentClientWidth=t),this.currentClientHeight!==n&&ci(r.clientHeightRef,this.currentClientHeight=n),_r(this.currentBottomScrollbarWidth,s)||ci(r.bottomScrollbarWidthRef,this.currentBottomScrollbarWidth=s),_r(this.currentEndScrollbarWidth,i)||ci(r.endScrollbarWidthRef,this.currentEndScrollbarWidth=i)},!0))}}render(){const{props:e}=this,t=e.horizontal||e.vertical?"hidden":"";return b("div",{ref:this.handleEl,className:Bn(e.className,"fc-scroller",e.hideScrollbars&&"fc-scroller-no-bars"),style:Object.assign(Object.assign({},e.style),{overflowX:e.horizontal?"auto":t,overflowY:e.vertical?"auto":t})},e.children)}endScroll(){this.listener.endScroll()}get x(){const{isRtl:e}=this.context,{el:t}=this;return t?Ss(t,e):0}get y(){const{el:e}=this;return e?e.scrollTop:0}scrollTo({x:e,y:t}){const{isRtl:n}=this.context,{el:r}=this;r&&(null!=t&&(r.scrollTop=t),null!=e&&Es(r,n,e))}addScrollEndListener(e){this.listener.emitter.on("scrollEnd",e)}removeScrollEndListener(e){this.listener.emitter.off("scrollEnd",e)}}function Ss(e,t){const{scrollLeft:n}=e;return t?function(e,t){switch(ws()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(n,e):n}function Es(e,t,n){e.scrollLeft=t?function(e,t){switch(ws()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(n,e):n}let Ds;function ws(){return Ds||(Ds=function(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,n=document.createElement("div");n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=50,t=e.scrollLeft>0?"reverse":"negative");return e.remove(),t}())}class As{constructor(){this.sliceBusinessHours=en(this._sliceBusinessHours),this.sliceDateSelection=en(this._sliceDateSpan),this.sliceEventStore=en(this._sliceEventStore),this.sliceEventDrag=en(this._sliceInteraction),this.sliceEventResize=en(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,t,n,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,r,...i){return this._sliceDateSpan({range:{start:e,end:Ot(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(Tn(e,Rs(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=Ai(e,t,Rs(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=Ai(e.mutatedEvents,t,Rs(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...s){if(!e)return[];let o=Rs(t,Boolean(n)),a=br(e.range,o);if(a){let t=function(e,t,n){let r=Zn({editable:!1},n),i=Jn(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Ti(i,t),instance:xn(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:a}),r,i),n=this.sliceRange(e.range,...s);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:Nt(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function Rs(e,t){let n=e.activeRange;return t?n:{start:Ot(n.start,e.slotMinTime.milliseconds),end:Ot(n.end,e.slotMaxTime.milliseconds-864e5)}}function _s(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=kn(Cs(i,t,s),t,s);return r&&(n=Tn(n,r,s)),Hn(Ms(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r,i){const{defIdMap:s,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},i={};for(let e in t){const n=t[e],{publicId:i}=n;i&&(r[i]=e)}for(let e in n){const r=n[e],s=t[r.defId],{publicId:o}=s;o&&(i[o]=e)}return{defIdMap:r,instanceIdMap:i}}(e);return Tn(kn(Cs(n,t,i),t,i,!1,s,o),r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Tn(t,n,r));return Hn(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Hn(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Tn(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,i={},s={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(s[e]=r[e]);return{defs:i,instances:s}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Ms(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Pn(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Cs(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=xs(e,i)),r&&(e=xs(e,r)),e}function xs(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 Ts(e,t,n){let{defs:r}=e,i=Dt(e.instances,e=>r[e.defId].allDay?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 Ms(e,t){return Pn(e,e=>e.sourceId!==t)}function ks(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!Dr(t.validRange,r[e].range))return!1;return Ns({eventDrag:e},n)}function Is(e,t,n){return!!Dr(t.validRange,e.range)&&Ns({dateSelection:e},n)}function Ns(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Os)(r,t)}function Os(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let i=t.getCurrentData(),s=e.eventDrag,o=s.mutatedEvents,a=o.defs,l=o.instances,c=xi(a,s.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=Dt(c,r));let d=(g=e.eventStore,p=s.affectedEvents.instances,{defs:g.defs,instances:Et(g.instances,e=>!p[e.instanceId])}),u=d.defs,h=d.instances,f=xi(u,e.eventUiBases);var g,p;for(let r in l){let o=l[r],g=o.range,p=c[o.defId],m=a[o.defId];if(!Hs(p.constraints,g,d,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in h){let n=h[e];if(Er(g,n.range)){if(!1===f[n.defId].overlap&&s.isEvent)return!1;if(!1===p.overlap)return!1;if(y&&!y(new Si(t,u[n.defId],n),new Si(t,m,o)))return!1}}let b=i.eventStore;for(let e of p.allows){let i,s=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),a=b.defs[m.defId],l=b.instances[r];if(i=a?new Si(t,a,l):new Si(t,m),!e(gi(s,t),i))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let i=e.eventStore,s=i.defs,o=i.instances,a=e.dateSelection,l=a.range,{selectionConfig:c}=t.getCurrentData();r&&(c=r(c));if(!Hs(c.constraints,l,i,e.businessHours,t))return!1;let{selectOverlap:d}=t.options,u="function"==typeof d?d:null;for(let e in o){let n=o[e];if(Er(l,n.range)){if(!1===c.overlap)return!1;if(u&&!u(new Si(t,s[n.defId],n),null))return!1}}for(let e of c.allows){let r=Object.assign(Object.assign({},n),a);if(!e(gi(r,t),null))return!1}return!0}(e,t,n,r))}function Hs(e,t,n,r,i){for(let s of e)if(!Ws(Ps(s,t,n,r,i),t))return!1;return!0}function Ps(e,t,n,r,i){return"businessHours"===e?Bs(Tn(r,t,i)):"string"==typeof e?Bs(Pn(n,t=>t.groupId===e)):"object"==typeof e&&e?Bs(Tn(e,t,i)):[]}function Bs(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function Ws(e,t){for(let n of e)if(Dr(n,t))return!0;return!1}class js extends Error{constructor(e,t){super(e),this.response=t}}function Ls(e,t,n){const r={method:e=e.toUpperCase()};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 js("Failure parsing JSON",e)});throw new js("Request failed",e)})}function Us(e){return"auto"===e.height||"auto"===e.viewHeight}function zs(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t=Us(e)),t}function Fs(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t=Us(e)),t}function Vs(e){const t=e.scrollerSyncerClass;if(!t)throw new RangeError("Must import @fullcalendar/scrollgrid");return t}class Gs{constructor(e){this.masterCallback=e,this.rev="",this.current=new Map,this.callbacks=new Map,this.handleValue=(e,t)=>{let{current:n,callbacks:r}=this;null===e?(n.delete(t),r.delete(t)):n.set(t,e),this.rev=qe(),this.masterCallback&&this.masterCallback(e,t)}}createRef(e){let t=this.callbacks.get(e);return t||(t=t=>{this.handleValue(t,e)},this.callbacks.set(e,t)),t}}class Qs extends w{constructor(e,t){super(e,t),this.initialNowDate=ui(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=Ot(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,ut(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:Ys(r)},nextState:{nowDate:i,todayRange:Ys(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 Ys(e){let t=Lt(e);return{start:t,end:Nt(t,1)}}Qs.contextType=si;class qs extends li{constructor(){super(...arguments),this.id=qe(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&Zs(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&ci(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:s,renderProps:o}=e,a=Xs(e,"",this.handleEl);let l,c,d=!1,u=[];if(null!=r){const e="function"==typeof r?r(o,b):r;if(!0===e)d=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?a.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?u=Array.prototype.slice.call(e.domNodes):(t?i(e):"function"!=typeof e)?l=e:c=e}}else d=!Zs(e.generatorName,n);return d&&s&&(l=s(o)),this.queuedDomNodes=u,this.currentGeneratorMeta=c,b(e.tag,a,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==s?void 0:s[n.generatorName];r&&i(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!Mt(e,t)){for(const e of t)e.remove();for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Zs(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Xs(e,t,n){const r=Object.assign(Object.assign({},e.attrs),{ref:n});return(e.className||t)&&(r.className=Bn(t,e.className,r.className)),e.style&&(r.style=e.style),r}qs.addPropsEquality({renderProps:Rt,attrs:function(e,t){const n=Ct(e,t);for(let e of n)if(!_t.test(e))return!1;return!0},style:Rt});const Js=Ne(0);class $s extends w{constructor(){super(...arguments),this.InnerContent=Ks.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(ci(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?n:n.join(" ")}(e.classNameGenerator,e.renderProps);if(e.children){const n=Xs(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.tag?b(e.tag,n,r):r}return b(qs,Object.assign(Object.assign({},e),{elRef:this.handleEl,tag:e.tag||"div",className:Bn(e.className,t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}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.el}))}}function Ks(e,t){const n=e.props;return b(qs,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function eo(e){return e.text}$s.contextType=Js;class to extends li{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&_i(e,this.props.eventRange)}}render(){const{props:e,context:t}=this,{options:n}=t,{eventRange:r}=e,{ui:i}=r,s={event:new Si(t,r.def,r.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&Ii(r,t),isStartResizable:!e.disableResizing&&e.isStart&&r.ui.durationEditable&&n.eventResizableFromStart,isEndResizable:!e.disableResizing&&e.isEnd&&r.ui.durationEditable,isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(e.isStart),isEnd:Boolean(e.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 b($s,Object.assign({},e,{elRef:this.handleEl,className:Bn(e.className,...Hi(s),...r.ui.classNames),renderProps:s,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.eventRange!==e.eventRange&&_i(this.el,this.props.eventRange)}}class no extends li{render(){const{props:e,context:t}=this,{eventRange:n}=e,{options:r}=t,i=Ni(r.eventTimeFormat||e.defaultTimeFormat,n,e.slicedStart,e.slicedEnd,e.isStart,e.isEnd,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd),s=Bi(n,t);return b(to,Object.assign({},e,{tag:s?"a":"div",style:{borderColor:n.ui.borderColor,backgroundColor:n.ui.backgroundColor},attrs:s,defaultGenerator:ro,timeText:i}),(e,t)=>b(D,null,b(e,{tag:"div",className:"fc-event-inner",style:{color:t.textColor}}),Boolean(t.isStartResizable)&&b("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&b("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function ro(e){return b(D,null,e.timeText&&b("div",{className:"fc-event-time"},e.timeText),b("div",{className:"fc-event-title-outer"},b("div",{className:"fc-event-title"},e.event.title||b(D,null," "))))}const io=e=>b(si.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return b($s,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),so=mn({day:"numeric"});class oo extends li{constructor(){super(...arguments),this.refineRenderProps=tn(lo)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,renderProps:e.renderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return b($s,Object.assign({},e,{className:Bn(e.className,Rr(r)),attrs:Object.assign(Object.assign({},e.attrs),r.isDisabled?{}:{"data-date":Xt(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function ao(e){return Boolean(e.dayCellContent||Zs("dayCellContent",e))}function lo(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,s=Ar(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:so):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},s),{isMonthStart:i,dayNumberText:o}),e.renderProps)}class co extends li{render(){let{props:e}=this,{eventRange:t}=e;return b(to,{tag:"div",className:"fc-bg-event",style:{backgroundColor:t.ui.backgroundColor},defaultGenerator:uo,eventRange:t,isStart:e.isStart,isEnd:e.isEnd,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function uo(e){let{title:t}=e.event;return t&&b("div",{className:"fc-event-title"},e.event.title)}function ho(e){return b("div",{className:"fc-"+e})}const fo=e=>b(si.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,o={num:n.computeWeekNumber(i),text:n.format(i,s),date:i};return b($s,Object.assign({},e,{renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:eo,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});class go extends li{constructor(){super(...arguments),this.state={titleId:fr()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ci(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=ur(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;return me(b("div",Object.assign({},n.attrs,{id:n.id,className:Bn(n.className,"fc-popover",e.getClassName("popover")),"aria-labelledby":r.titleId,ref:this.handleRootEl}),b("div",{className:"fc-popover-header "+e.getClassName("popoverHeader")},b("span",{className:"fc-popover-title",id:r.titleId},n.title),b("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),b("div",{className:"fc-popover-body "+e.getClassName("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,{alignEl:t,alignParentTop:n}=this.props,{rootEl:r}=this,i=function(e){let t=Jr(e),n=e.getBoundingClientRect();for(let e of t){let t=ir(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(i){let s=r.getBoundingClientRect(),o=n?t.closest(n).getBoundingClientRect().top:i.top,a=e?i.right-s.width:i.left;o=Math.max(o,10),a=Math.min(a,document.documentElement.clientWidth-10-s.width),a=Math.max(a,10);let l=r.offsetParent.getBoundingClientRect();cr(r,{top:o-l.top,left:a-l.left})}}}class po extends di{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 b(oo,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},(t,r,i)=>b(go,{elRef:i.ref,id:n.id,title:o,attrs:i,className:Bn(i.className,"fc-more-popover"),parentEl:n.parentEl,alignEl:n.alignEl,alignParentTop:n.alignParentTop,onClose:n.onClose},ao(e)&&b(t,{tag:"div",className:"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:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.dateSpanProps),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class mo extends li{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:fr()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&ci(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=yo(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new Si(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.segs.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 b(si.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,a=e.hiddenSegs.length,l=yo(e),c="function"==typeof o?o.call(s,a):`+${a} ${o}`,d=ot(i.moreLinkHint,[a],c),u={num:a,shortText:"+"+a,text:c,view:r};return b(D,null,Boolean(a)&&b($s,{tag:e.tag||"a",elRef:this.handleLinkEl,className:Bn(e.className,"fc-more-link"),style:e.style,attrs:Object.assign(Object.assign(Object.assign({},e.attrs),Ge(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||vo,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&b(po,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,dateSpanProps:e.dateSpanProps,parentEl:this.parentEl,alignEl:e.alignElRef?e.alignElRef.current:this.linkEl,alignParentTop:e.alignParentTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=this.linkEl.closest(".fc-view-outer"))}}function vo(e){return e.text}function yo(e){return e.allDayDate?{start:e.allDayDate,end:Nt(e.allDayDate,1)}:{start:$i(e.hiddenSegs),end:Ki(e.hiddenSegs)}}class bo extends li{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return b($s,Object.assign({},e,{tag:e.tag||"div",className:Bn(e.className,So(e.viewSpec)),renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function So(e){return`fc-${e.type}-view fc-view`}const Eo={id:String,defaultAllDay:Boolean,url:String,format:String,events:Cn,eventDataTransform:Cn,success:Cn,failure:Cn};function Do(e,t,n=wo(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}=_n(r,n),o=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(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:qe(),sourceDefId:o.sourceDefId,meta:o.meta,ui:zn(i,t),extendedProps:s}}return null}function wo(e){return Object.assign(Object.assign(Object.assign({},Ln),Eo),e.pluginHooks.eventSourceRefiners)}class Ao{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){requestAnimationFrame(Wr)}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):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().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 e in r)s.push(e);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:ui(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=ut(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),mn(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),mn(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=ji(n,r.dateEnv,ut({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),fi(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof Si){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:In({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof bi)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=At(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=qn(e,n,r,!1);if(i){let e=new Si(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:In(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:Ei(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 Si(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new Si(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return Di(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 bi(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 bi(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof bi)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=Do(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new bi(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=ut(e);t&&this.trigger("_timeScrollRequest",t)}}class Ro extends li{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return b("div",{ref:this.rootElRef,className:"fc-sticky-footer-scrollbar"},b(bs,{horizontal:!0,ref:e.scrollerRef},b("div",{style:{minWidth:e.canvasWidth}})))}componentDidMount(){this.disconnectHeight=Lr(this.rootElRef.current,e=>{ci(this.props.scrollbarWidthRef,e)})}componentWillUnmount(){this.disconnectHeight(),ci(this.props.scrollbarWidthRef,null)}}var _o={__proto__:null,BASE_OPTION_DEFAULTS:yn,BaseComponent:li,BgEvent:co,CalendarImpl:Ao,CalendarRoot:fs,ContentContainer:$s,CustomRenderingStore:class extends class{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)}}{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)}},DateComponent:di,DateEnv:qi,DateProfileGenerator:hi,DayCellContainer:oo,DaySeriesModel:gs,DayTableModel:ps,DelayedRunner:ms,ElementDragging:cs,ElementScrollController:ni,Emitter:Kr,EventContainer:to,EventImpl:Si,Interaction:os,MoreLinkContainer:mo,NamedTimeZoneImpl:class{constructor(e){this.timeZoneName=e}},NowIndicatorContainer:io,NowTimer:Qs,PositionCache:class{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]}similarTo(e){return ei(this.tops||[],e.tops||[])&&ei(this.bottoms||[],e.bottoms||[])&&ei(this.lefts||[],e.lefts||[])&&ei(this.rights||[],e.rights||[])}},RefMap:Gs,ScrollController:ti,Scroller:bs,SegHierarchy:ns,Slicer:As,Splitter:pr,StandardEvent:no,StickyFooterScrollbar:Ro,Theme:ii,ViewContainer:bo,ViewContextType:si,WeekNumberContainer:fo,WindowScrollController:ri,addDays:Nt,addDurations:ft,addMs:Ot,addWeeks:It,afterSize:Mr,allowContextMenu:et,allowSelection:$e,applyMutationToEventStore:mi,applyStyle:cr,asCleanDays:function(e){return e.years||e.months||e.milliseconds?0:e.days},asRoughMinutes:function(e){return mt(e)/6e4},asRoughMs:mt,asRoughSeconds:function(e){return mt(e)/1e3},binarySearch:ss,buildElAttrs:Xs,buildEventApis:Di,buildEventRangeKey:Pi,buildEventRangeTimeText:Ni,buildIsoString:Zt,buildNavLinkAttrs:Fr,collectFromHash:function(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},combineEventUis:Fn,compareByFieldSpecs:nt,compareNumbers:at,compareObjs:xt,computeEarliestStart:$i,computeEdges:qr,computeInnerRect:Zr,computeLatestEnd:Ki,computeRect:Xr,computeVisibleDayRange:tr,config:ds,constrainPoint:sr,createDuration:ut,createEmptyEventStore:On,createEventInstance:xn,createEventUi:zn,createFormatter:mn,diffDates:nr,diffDayAndTime:Bt,diffDays:Pt,diffPoints:ar,diffWeeks:Ht,diffWholeDays:jt,diffWholeWeeks:Wt,disableCursor:Ze,enableCursor:Xe,eventTupleToStore:In,filterHash:Et,flexibleCompare:it,formatDayString:Xt,formatIsoMonthStr:Jt,formatIsoTimeString:$t,fracToCssDim:jn,getClippingParents:Jr,getCoordRangeEnd:Ji,getDateMeta:Ar,getDayClassName:Rr,getDefaultEventEnd:pi,getElEventRange:Ci,getEventKey:wi,getEventRangeAnchorAttrs:Bi,getEventRangeMeta:Oi,getEventTargetViaRoot:ur,getIsHeightAuto:Us,getIsRtlScrollbarOnLeft:Qr,getNormalizedScrollX:Ss,getRectCenter:or,getRelevantEvents:Nn,getScrollbarWidths:function(){return Vr||(Vr=function(){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=Yr(e);return document.body.removeChild(e),t}()),Vr},getScrollerSyncerClass:Vs,getSlotClassName:function(e){return Bn("fc-slot","fc-slot-"+kt[e.dow],e.isDisabled?"fc-slot-disabled":Bn(e.isToday&&"fc-slot-today",e.isPast&&"fc-slot-past",e.isFuture&&"fc-slot-future"))},getStickyFooterScrollbar:Fs,getStickyHeaderDates:zs,getUniqueDomId:fr,greatestDurationDenominator:yt,groupIntersectingSegs:rs,guid:qe,hasBgRendering:Ri,hasCustomDayCellContent:ao,identity:Cn,injectStyles:Be,interactionSettingsStore:ls,interactionSettingsToStore:as,intersectRanges:br,intersectRects:ir,isArraysEqual:Mt,isDateSelectionValid:Is,isDateSpansEqual:Li,isDimsEqual:_r,isInt:lt,isInteractionValid:ks,isPropsEqual:Rt,isPropsValid:Os,isValidDate:Yt,joinClassNames:Bn,mapHash:Dt,memoize:en,memoizeArraylike:function(e,t,n){let r=[],i=[];return s=>{let o=r.length,a=s.length,l=0;for(;l<o;l+=1)if(s[l]){if(!Mt(r[l],s[l])){n&&n(i[l]);let r=e.apply(this,s[l]);t&&t(r,i[l])||(i[l]=r)}}else n&&n(i[l]);for(;l<a;l+=1)i[l]=e.apply(this,s[l]);return r=s,i.splice(a),i}},memoizeHashlike:function(e,t,n){let r={},i={};return s=>{let o={};for(let a in s)if(i[a])if(Mt(r[a],s[a]))o[a]=i[a];else{n&&n(i[a]);let r=e.apply(this,s[a]);o[a]=t&&t(r,i[a])?i[a]:r}else o[a]=e.apply(this,s[a]);return r=s,i=o,o}},memoizeObjArg:tn,mergeEventStores:Hn,multiplyDuration:gt,padStart:st,parseBusinessHours:Kn,parseClassNames:Wn,parseDragMeta:hs,parseEventDef:Jn,parseFieldSpecs:tt,parseMarker:Yi,pointInsideRect:rr,preventContextMenu:Ke,preventDefault:Ue,preventSelection:Je,rangeContainsMarker:wr,rangeContainsRange:Dr,rangesEqual:Sr,rangesIntersect:Er,refineEventDef:Zn,refineProps:_n,removeExact:function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n},renderFill:ho,renderText:eo,requestJson:Ls,setNormalizedScrollX:Es,setRef:ci,sliceEventStore:Ai,sortEventSegs:Mi,startOfDay:Lt,translateRect:function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},triggerDateSelect:fi,unpromisify:$r,watchHeight:Lr,watchSize:Br,watchWidth:jr,whenTransitionDone:Ve,wholeDivideDurations:vt},Co={__proto__:null,createPortal:me,createContext:Ne,flushSync:ke,preactOptions:Oe,Component:w,Fragment:D,cloneElement:function(e,n,r){var i,s,o,a,l=v({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),n)"key"==o?i=n[o]:"ref"==o?s=n[o]:l[o]=void 0===n[o]&&void 0!==a?a[o]:n[o];return arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):r),S(e.type,l,i||e.key,s||e.ref,null)},createElement:b,createRef:E,h:b,hydrate:function e(t,n){z(t,n,e)},get isValidElement(){return i},get options(){return n},render:z,toChildArray:k};const xo=[],To={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"},Mo=Object.assign(Object.assign({},To),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":"This "+e},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function ko(e){let t=e.length>0?e[0].code:"en",n=xo.concat(e),r={en:Mo};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function Io(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(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}(n,t)||Mo;return No(e,n,r)}(e,t):No(e.code,[e.code],e)}function No(e,t,n){let r=St([To,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 Oo(e){return{id:qe(),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||{},scrollerSyncerClass:e.scrollerSyncerClass||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Ho(){let e,t=[],n=[];return(r,i)=>(e&&Mt(r,t)&&Mt(i,n)||(e=function(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:{},scrollerSyncerClass:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let o of e){const e=o.name,a=n[e];void 0===a?(n[e]=o.id,i(o.deps),s=o,r={premiumReleaseDate:Po((t=r).premiumReleaseDate,s.premiumReleaseDate),reducers:t.reducers.concat(s.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:t.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),s.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(s.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),s.views),viewPropsTransformers:t.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(s.calendarInteractions),componentInteractions:t.componentInteractions.concat(s.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),s.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||s.initialView,elementDraggingImpl:t.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),s.optionChangeHandlers),scrollerSyncerClass:t.scrollerSyncerClass||s.scrollerSyncerClass,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),s.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),s.propSetHandlers)}):a!==o.id&&console.warn(`Duplicate plugin '${e}'`)}var t,s}return e&&i(e),i(t),r}(r,i)),t=r,n=i,e)}function Po(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class Bo extends ii{}function Wo(e,t,n,r){if(t[e])return t[e];let i=function(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=Wo(l,t,n,r)}!a&&c&&(a=c.component);if(!a)return null;return{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:{})}}(e,t,n,r);return i&&(t[e]=i),i}function jo(e){return Dt(e,Lo)}function Lo(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=Uo(t):!n||n.prototype instanceof li||(n=Uo(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Uo(e){return t=>b(si.Consumer,null,n=>b($s,{tag:"div",className:So(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function zo(e,t,n,r){let i=jo(e),s=jo(t.views);return Dt(function(e,t){let n,r={};for(n in e)Wo(n,r,e,t);for(n in t)Wo(n,r,e,t);return r}(i,s),e=>function(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=function(e){let t=JSON.stringify(e),n=Fo[t];void 0===n&&(n=ut(e),Fo[t]=n);return n}(s),o)){let e=yt(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(yn)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(yn)}}(e,s,t,n,r))}Bo.prototype.classes={root:"fc-theme-standard",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Bo.prototype.baseIconClass="fc-icon",Bo.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"},Bo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Bo.prototype.iconOverrideOption="buttonIcons",Bo.prototype.iconOverrideCustomButtonOption="icon",Bo.prototype.iconOverridePrefix="fc-icon-";let Fo={};function Vo(e,t,n){let r=t?t.activeRange:null;return Yo({},function(e,t){let n=wo(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=Do(e,t,n);r&&i.push(r)}return i}(e,n),r,n)}function Go(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Yo(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return s=e,o=t.sourceId,Et(s,e=>e.sourceId!==o);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?qo(e,i,r):e;case"FETCH_EVENT_SOURCES":return Zo(e,t.sourceIds?wt(t.sourceIds):Jo(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var s,o}function Qo(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Yo(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=qo(i,n,r)),Object.assign(Object.assign({},e),i)}function qo(e,t,n){return Zo(e,Et(e,e=>function(e,t,n){if(!$o(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)),t,!1,n)}function Zo(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=Xo(a,n,r,i):s[o]=a}return s}function Xo(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=qe();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||console.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 Jo(e,t){return Et(e,e=>$o(e,t))}function $o(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Ko(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function ea(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function ta(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 na(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 ra(e,t,n,r,i){return{header:e.headerToolbar?ia(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?ia(e.footerToolbar,e,t,n,r,i):null}}function ia(e,t,n,r,i,s){let o={},a=[],l=!1;for(let c in e){let d=sa(e[c],t,n,r,i,s);o[c]=d.widgets,a.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function sa(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||{},h=e?e.split(" "):[],f=[],g=!1;return{widgets:h.map(e=>e.split(",").map(e=>{if("title"===e)return g=!0,{buttonName:e};let n,h,p,m,v,y;if(n=a[e])p=e=>{n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),y=n.hint||n.text;else if(h=i[e]){f.push(e),p=()=>{s.changeView(e)},(v=h.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;y=ot(h.buttonTitleOverride||h.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(p=()=>{s[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=ot(d[t]||u[t],[c.year||"year","year"],c[e])}else y=t=>ot(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:p,buttonIcon:m,buttonText:v,buttonHint:y}})),viewsWithButtons:f,hasTitle:g}}class oa{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]}}function aa(e,t){let n=At(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const la=[Oo({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),Oo({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;$r(e.eventSource.meta.bind(null,Ui(e.range,r)),e=>t({rawEvents:e}),n)}}]}),Oo({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Cn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!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=function(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,c={};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);return c}(r,e.range,e.context);Ls(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),Oo({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let i,s={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&&(i=e.duration),!i&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,i={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:s}}var n,r;return null},expand(e,t,n){let r=br(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let i=e?wt(e):null,s=Lt(n.start),o=n.end,a=[];for(;s<o;){let e;i&&!i[s.getUTCDay()]||(e=t?r.add(s,t):s,a.push(e)),s=Nt(s,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:Cn,startTime:ut,endTime:ut,duration:ut,startRecur:Cn,endRecur:Cn}}),Oo({name:"change-handler",optionChangeHandlers:{events(e,t){aa([e],t)},eventSources:aa}}),Oo({name:"misc",isLoadingFuncs:[e=>Qo(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Ui(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Di(e,t))}}})];class ca{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new ms(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;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 da(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,mn(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=jt(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class ua{constructor(e){this.computeCurrentViewData=en(this._computeCurrentViewData),this.organizeRawLocales=en(ko),this.buildLocale=en(Io),this.buildPluginHooks=Ho(),this.buildDateEnv=en(ha),this.buildTheme=en(fa),this.parseToolbars=en(ra),this.buildViewSpecs=en(zo),this.buildDateProfileGenerator=tn(ga),this.buildViewApi=en(pa),this.buildViewUiProps=tn(ya),this.buildEventUiBySource=en(ma,Rt),this.buildEventUiBases=en(va),this.parseContextBusinessHours=tn(Sa),this.buildTitle=en(da),this.emitter=new Kr,this.actionRunner=new ca(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=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=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):ui(e.now,t)}(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);wr(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 e of n.pluginHooks.contextInit)e(a);let l=Vo(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},d=Object.assign(Object.assign({},a),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,d));ba(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=function(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(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=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(c,e),d=function(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}return e}(d,e,c,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&wr(d.currentRange,c)||(c=d.currentRange.start);let u=Go(n.eventSources,e,d,l),h=_s(n.eventStore,e,u,d,l),f=Qo(u)&&!a.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:g,selectionConfig:p}=this.buildViewUiProps(l),m=this.buildEventUiBySource(u),v={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:d,eventSources:u,eventStore:h,renderableEventStore:f,selectionConfig:p,eventUiBases:this.buildEventUiBases(f.defs,g,m),businessHours:this.parseContextBusinessHours(l),dateSelection:Ko(n.dateSelection,e),eventSelection:ea(n.eventSelection,e),eventDrag:ta(n.eventDrag,e),eventResize:na(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of s.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=ba(n,l),S=ba(v,l);!b&&S?r.trigger("loading",!0):b&&!S&&r.trigger("loading",!1),this.state=v,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=function(e,t,n){let r=t?t.activeRange:null;return Zo(e,Jo(e,n),r,!0,n)}(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=Ts(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=Ts(s.renderableEventStore,n.dateEnv,s.dateEnv));for(let e in o)-1===this.optionsForHandling.indexOf(e)&&a[e]===l[e]||o[e](l[e],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o,extra:a}=this.processRawCalendarOptions(e,t);Ea(a);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),d=this.buildTheme(r,i),u=this.parseToolbars(r,this.stableOptionOverrides,d,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Rn([yn,e,t]),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],la),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vn),bn),Sn),a.listenerRefiners),a.optionRefiners),c={},d=Rn([yn,o,e,t]),u={},h=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,g=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===h[e]||En[e]&&e in h&&En[e](h[e],d[e]))?u[e]=f[e]:l[e]?(u[e]=l[e](d[e]),g=!0):c[e]=h[e];return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{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);return Ea(o),{viewSpec:i,options:s,dateProfileGenerator: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,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let s=Rn([yn,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vn),bn),Sn),An),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let e in s)s[e]===l[e]||En[e]&&En[e](s[e],l[e])?a[e]=c[e]:(s[e]===this.currentCalendarOptionsInput[e]||En[e]&&En[e](s[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(a[e]=this.currentCalendarOptionsRefined[e]):o[e]?a[e]=o[e](s[e]):u[e]=s[e],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function ha(e,t,n,r,i,s,o,a){let l=Io(t||o.defaultCode,o.map);return new qi({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function fa(e,t){return new(t.themeClasses[e.themeSystem]||Bo)(e)}function ga(e){return new(e.dateProfileGeneratorClass||hi)(e)}function pa(e,t,n){return new oa(e,t,n)}function ma(e){return Dt(e,e=>e.ui)}function va(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function ya(e){let{options:t}=e;return{eventUiSingleBase:zn({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:zn({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ba(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Sa(e){return Kn(e.options.businessHours,e)}function Ea(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class Da extends li{render(){let e=this.props.widgetGroups.map(e=>this.renderWidgetGroup(e));return b("div",{className:"fc-toolbar-section fc-toolbar-"+this.props.name},...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(b("h2",{className:"fc-toolbar-title"},t.title));else{let i=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e;r.push(b("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":i,className:Bn(`fc-${e}-button`,n.getClassName("button"),i&&n.getClassName("buttonActive")),onClick:o},a||(l?b("span",{className:l,role:"img"}):"")))}}if(r.length>1){return b("div",{className:i&&n.getClassName("buttonGroup")||""},...r)}return r[0]}}class wa extends li{render(){let e,t,{model:n,className:r}=this.props,i=!1,s=n.sectionWidgets,o=s.center;return s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end,b("div",{className:Bn(r,"fc-toolbar",i&&"fc-toolbar-ltr")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return b(Da,{key:e,name:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})}}class Aa extends os{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=Ci(t);i&&n.isValidSegDownEl(e.target)&&r.emitter.trigger("eventClick",{el:t,event:new Si(n.context,i.def,i.instance),jsEvent:e,view:r.viewApi})},this.destroy=ze(e.el,"click",".fc-event",this.handleSegClick)}}class Ra extends os{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Ci(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=function(e,t,n,r){let i;return ze(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)}})}(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=Ci(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new Si(i,s.def,s.instance),jsEvent:t,view:i.viewApi})}}class _a extends w{render(){const{props:e}=this;return b("div",{className:Bn("fc-view-outer",null!=e.height?"fc-view-outer-static":e.heightLiquid?"fc-view-outer-liquid":null!=e.aspectRatio&&"fc-view-outer-aspect-ratio"),style:{height:e.height,paddingBottom:null!=e.aspectRatio?1/e.aspectRatio*100+"%":void 0}},e.children)}}class Ca extends ai{constructor(){super(...arguments),this.buildViewContext=en(oi),this.buildViewPropTransformers=en(Ta),this.buildToolbarProps=en(xa),this.interactionsStore={},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[Aa,Ra];t.disableHits||(r=r.concat(this.props.pluginHooks.componentInteractions));let i=r.map(e=>new e(n));this.interactionsStore[e.uid]=i,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]}}render(){let e,t,{props:n}=this,{toolbarConfig:r,options:i}=n,s=this.buildToolbarProps(n.viewSpec,n.dateProfile,n.dateProfileGenerator,n.currentDate,ui(n.options.now,n.dateEnv),n.viewTitle),o=!1;n.forPrint||Us(i)||(null!=i.height?o=!0:null!=i.contentHeight?e=i.contentHeight:t=Math.max(i.aspectRatio,.5));let a=this.buildViewContext(n.viewSpec,n.viewApi,n.options,n.dateProfileGenerator,n.dateEnv,n.theme,n.pluginHooks,n.dispatch,n.getCurrentData,n.emitter,n.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return b(si.Provider,{value:a},r.header&&b(wa,Object.assign({className:"fc-header-toolbar",model:r.header},s)),b(_a,{height:e,heightLiquid:o,aspectRatio:t},this.renderView(n),this.buildAppendContent()),r.footer&&b(wa,Object.assign({className:"fc-footer-toolbar",model:r.footer},s)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e));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(){for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return b(D,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}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,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of i)Object.assign(r,t.transform(r,e));return b(n.component,Object.assign({},r))}}function xa(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&&!wr(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function Ta(e){return e.map(e=>new e)}function Ma(e){let t=Io(e.locale||"en",ko([]).map);return new qi(Object.assign(Object.assign({timeZone:yn.timeZone,calendarSystem:"gregory"},e),{locale:t}))}ds.touchMouseIgnoreWait=500;let ka=0,Ia=0,Na=!1;class Oa{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,ka+=1,setTimeout(()=>{ka-=1},ds.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new Kr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Ia+=1,1===Ia&&window.addEventListener("touchmove",Ha,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Ia-=1,Ia||window.removeEventListener("touchmove",Ha,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!n.closest(this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){Na=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?e.target.closest(this.selector):this.containerEl}shouldIgnoreMouse(){return ka||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Na=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,i=e.touches,s=0,o=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(s=n-this.origPageX,o=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:s,deltaY:o}}}function Ha(e){Na&&e.preventDefault()}class Pa{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",cr(n,{left:r.left,top:r.top}),Ve(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(this.mirrorEl.remove(),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&cr(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),cr(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class Ba extends ti{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Wa extends Ba{constructor(e,t){super(new ni(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Zr(this.scrollController.el)}}class ja extends Ba{constructor(e){super(new ri,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const La="function"==typeof performance?performance.now:Date.now;class Ua{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=La();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,r=t-window.scrollY,i=null===this.pointerScreenY?0:r-this.pointerScreenY,s=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(La()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,i=r-e.distance,s=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+s*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+s*o)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let s of i){let i=s.clientRect,o=e-i.left,a=i.right-e,l=t-i.top,c=i.bottom-t;o>=0&&a>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:s,name:"top",distance:l}),c<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:s,name:"left",distance:o}),a<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>a)&&(r={scrollCache:s,name:"right",distance:a}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new ja(!1):new Wa(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class za extends cs{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Je(document.body),Ke(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:r,deltaY:i}=e;t=r*r+i*i,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,$e(document.body),et(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new Oa(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new Pa,this.autoScroller=new Ua}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Fa{constructor(e){this.el=e,this.origRect=Xr(e),this.scrollCaches=Jr(e).map(e=>new Wa(e,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!Va(e.getEventTarget())&&!rr(n,e.clientRect))return!1;return!0}}function Va(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class Ga{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Kr}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i instanceof HTMLElement&&(t=Xr(i),r=sr(r,t));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&t){let e=ir(t,s.rect);e&&(r=or(e))}this.coordAdjust=ar(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&Qa(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=Dt(this.droppableStore,e=>(e.component.prepareHits(),new Fa(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,i=null;for(let s in n){let o=n[s].component,a=r[s];if(a&&a.isWithinClipping(e,t)){let n=a.computeLeft(),r=a.computeTop(),l=e-n,c=t-r,{origRect:d}=a,u=d.right-d.left,h=d.bottom-d.top;if(l>=0&&l<u&&c>=0&&c<h){let e=o.queryHit(l,c,u,h);e&&Dr(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||a.el.contains(a.el.getRootNode().elementFromPoint(l+n-window.scrollX,c+r-window.scrollY)))&&(!i||e.layer>i.layer)&&(e.componentId=s,e.context=o.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,i=e)}}}return i}}function Qa(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Li(e.dateSpan,t.dateSpan)}function Ya(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,{date:(i=t.dateEnv).toDate(r.range.start),dateStr:i.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class qa extends os{constructor(e){super(e),this.subjectEl=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:i}=r,{options:s}=n.context,o=n.context;this.subjectEl=e.subjectEl;let a=(this.eventRange=Ci(e.subjectEl)).instance.instanceId;this.relevantEvents=Nn(o.getCurrentData().eventStore,a),r.minDistance=e.isTouch?0:s.eventDragMinDistance,r.delay=e.isTouch&&a!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,s.fixedMirrorParent?i.parentNode=s.fixedMirrorParent:i.parentNode=t.closest(".fc"),i.revertDuration=s.dragRevertDuration;let l=n.isValidSegDownEl(t)&&!t.closest(".fc-event-resizer");r.setIgnoreMove(!l),this.isDragging=l&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new Si(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,i=this.component.context,s=null,o=null,a=null,l=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){s=e.context;let t=s.options;i===s||t.editable&&t.droppable?(o=function(e,t,n,r){let i=e.dateSpan,s=t.dateSpan,o=i.range.start,a=s.range.start,l={};i.allDay!==s.allDay&&(l.allDay=s.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,o=s.allDay?Lt(n):n);let c=nr(o,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(l.allDay=!1);let d={datesDelta:c,standardProps:l};for(let n of r)n(d,e,t);return d}(r,e,this.eventRange.instance.range.start,s.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(a=mi(n,s.getCurrentData().eventUiBases,o,s),c.mutatedEvents=a,ks(c,e.dateProfile,s)||(l=!0,o=null,a=null,c.mutatedEvents={defs:{},instances:{}}))):s=null}this.displayDrag(s,c),l?Ze():Xe(),t||(i===s&&Qa(r,e)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=s,this.validMutation=o,this.mutatedRelevantEvents=a)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:i}=this,s=this.eventRange.def,o=this.eventRange.instance,a=new Si(t,s,o),l=this.relevantEvents,c=this.mutatedRelevantEvents,{finalHit:d}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:a,jsEvent:e.origEvent,view:n}),i){if(r===t){let r=new Si(t,c.defs[s.defId],o?c.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});let d={oldEvent:a,event:r,relatedEvents:Di(c,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},u={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(u,e(i,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},d),u),{el:e.subjectEl,delta:i.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",d)}else if(r){let i={event:a,relatedEvents:Di(l,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},i),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:l}),t.emitter.trigger("eventRemove",i);let u=c.defs[s.defId],h=c.instances[o.instanceId],f=new Si(r,u,h);r.dispatch({type:"MERGE_EVENTS",eventStore:c});let g={event:f,relatedEvents:Di(c,r,h),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};r.emitter.trigger("eventAdd",g),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},Ya(d.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:d.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},g),{draggedEl:e.subjectEl,view:d.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new za(e.el);r.pointer.selector=qa.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Ga(this.dragging,ls);i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}qa.SELECTOR=".fc-event-draggable, .fc-event-resizable";const Za={fixedMirrorParent:Cn},Xa={dateClick:Cn,eventDragStart:Cn,eventDragStop:Cn,eventDrop:Cn,eventResizeStart:Cn,eventResizeStop:Cn,eventResize:Cn,drop:Cn,eventReceive:Cn,eventLeave:Cn};class Ja{constructor(e,t){this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=e=>{this.dragMeta=this.buildDragMeta(e.subjectEl)},this.handleHitUpdate=(e,t,n)=>{let{dragging:r}=this.hitDragging,i=null,s=null,o=!1,a={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:this.dragMeta.create};e&&(i=e.context,this.canDropElOnCalendar(n.subjectEl,i)&&(s=function(e,t,n){let r=Object.assign({},t.leftoverProps);for(let i of n.pluginHooks.externalDefTransforms)Object.assign(r,i(e,t));let{refined:i,extra:s}=Zn(r,n),o=Jn(i,s,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),a=e.range.start;e.allDay&&t.startTime&&(a=n.dateEnv.add(a,t.startTime));let l=t.duration?n.dateEnv.add(a,t.duration):pi(e.allDay,a,n),c=xn(o.defId,{start:a,end:l});return{def:o,instance:c}}(e.dateSpan,this.dragMeta,i),a.mutatedEvents=In(s),o=!ks(a,e.dateProfile,i),o&&(a.mutatedEvents={defs:{},instances:{}},s=null))),this.displayDrag(i,a),r.setMirrorIsVisible(t||!s||!document.querySelector(".fc-event-mirror")),o?Ze():Xe(),t||(r.setMirrorNeedsRevert(!s),this.receivingContext=i,this.droppableEvent=s)},this.handleDragEnd=e=>{let{receivingContext:t,droppableEvent:n}=this;if(this.clearDrag(),t&&n){let r=this.hitDragging.finalHit,i=r.context.viewApi,s=this.dragMeta;if(t.emitter.trigger("drop",Object.assign(Object.assign({},Ya(r.dateSpan,t)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:i})),s.create){let r=In(n);t.dispatch({type:"MERGE_EVENTS",eventStore:r}),e.isTouch&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:n.instance.instanceId}),t.emitter.trigger("eventReceive",{event:new Si(t,n.def,n.instance),relatedEvents:[],revert(){t.dispatch({type:"REMOVE_EVENTS",eventStore:r})},draggedEl:e.subjectEl,view:i})}}this.receivingContext=null,this.droppableEvent=null};let n=this.hitDragging=new Ga(e,ls);n.requireInitial=!1,n.emitter.on("dragstart",this.handleDragStart),n.emitter.on("hitupdate",this.handleHitUpdate),n.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}buildDragMeta(e){return"object"==typeof this.suppliedDragMeta?hs(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?hs(this.suppliedDragMeta(e)):function(e){let t=function(e,t){let n=ds.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event");return hs(t?JSON.parse(t):{create:!1})}(e)}displayDrag(e,t){let n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})}canDropElOnCalendar(e,t){let n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||e.matches(n)}}ds.dataAttrPrefix="";class $a extends cs{constructor(e){super(e),this.shouldIgnoreMove=!1,this.mirrorSelector="",this.currentMirrorEl=null,this.handlePointerDown=e=>{this.emitter.trigger("pointerdown",e),this.shouldIgnoreMove||this.emitter.trigger("dragstart",e)},this.handlePointerMove=e=>{this.shouldIgnoreMove||this.emitter.trigger("dragmove",e)},this.handlePointerUp=e=>{this.emitter.trigger("pointerup",e),this.shouldIgnoreMove||this.emitter.trigger("dragend",e)};let t=this.pointer=new Oa(e);t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("pointermove",this.handlePointerMove),t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}setIgnoreMove(e){this.shouldIgnoreMove=e}setMirrorIsVisible(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{let e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;e&&(this.currentMirrorEl=e,e.style.visibility="hidden")}}}var Ka=Oo({name:"@fullcalendar/interaction",componentInteractions:[class extends os{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&Qa(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},Ya(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new za(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Ga(this.dragging,as(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends os{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,i=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,i=t.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(at);let o={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(o,n)}return o.range={start:s[0],end:s[3]},o.allDay=r.allDay,o}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&Is(r,e.dateProfile,n)||(i=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),i?Ze():Xe(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(fi(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new za(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Ga(this.dragging,as(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},qa,class extends os{constructor(e){super(e),this.draggingSegEl=null,this.draggingEventRange=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=this.querySegEl(e),r=this.eventRange=Ci(n);this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=Nn(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingEventRange=Ci(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new Si(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,i=this.relevantEvents,s=this.hitDragging.initialHit,o=this.eventRange.instance,a=null,l=null,c=!1,d={affectedEvents:i,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){e.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,e)||(a=function(e,t,n,r){let i=e.context.dateEnv,s=e.dateSpan.range.start,o=t.dateSpan.range.start,a=nr(s,o,i,e.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}(s,e,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))}a&&(l=mi(i,r.getCurrentData().eventUiBases,a,r),d.mutatedEvents=l,ks(d,e.dateProfile,r)||(c=!0,a=null,l=null,d.mutatedEvents=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:d}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),c?Ze():Xe(),t||(a&&Qa(s,e)&&(a=null),this.validMutation=a,this.mutatedRelevantEvents=l)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,i=new Si(t,n,r),s=this.relevantEvents,o=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let a=new Si(t,o.defs[n.defId],r?o.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:o});let l={oldEvent:i,event:a,relatedEvents:Di(o,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},l),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ut(0),endDelta:this.validMutation.endDelta||ut(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",l)}else t.emitter.trigger("_noEventResize");this.draggingEventRange=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new za(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new Ga(this.dragging,as(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return e.subjectEl.closest(".fc-event")}}],calendarInteractions:[class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=ur(e.origEvent);this.matchesCancel=!!n.closest(t),this.matchesEvent=!!n.closest(qa.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Oa(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:za,optionRefiners:Za,listenerRefiners:Xa});class el extends As{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}const tl=mn({weekday:"long"}),nl=new Date(2592e5);function rl(...e){return[il(...e)]}function il(e,t,n,r,i,s,o){return{renderConfig:sl(s),dataConfigs:ol(e,t,n,r,i,s,o)}}function sl(e){const{options:t}=e;return{generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount}}function ol(e,t,n,r,i,s,o=1,a=""){const{dateEnv:l,viewApi:c,options:d}=s;return t?e.map(e=>{const t=Ar(e,r,null,n),u=l.format(e,i),h=Object.assign(Object.assign({},t),{date:l.toDate(e),view:c,text:u}),f=d.navLinks&&!t.isDisabled;return{key:a+e.toUTCString(),renderProps:h,attrs:{"data-date":t.isDisabled?void 0:Xt(e)},innerAttrs:f?Fr(s,e):{},colSpan:o,isNavLink:f,className:Rr(t)}}):e.map(e=>{const t=e.getUTCDay(),n=Nt(nl,t),r={dow:t,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=l.format(n,i),d=Object.assign(Object.assign({},r),{date:e,view:c,text:s});return{key:a+String(t),renderProps:d,innerAttrs:{"aria-label":l.format(n,tl)},colSpan:o,className:Rr(r)}})}function al(e){return wi(e)+":"+e.start+(e.standinFor?":standin":e.isSlice?":slice":"")}function ll(e,t){const n=[];for(let e=0;e<t;e++)n[e]=[];for(const t of e)n[t.row].push(t);return n}function cl(e,t){const n=[];if(e){for(let r=0;r<t;r++)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(const t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e++)n[e]=null;return n}function dl(e,t){return Object.assign(Object.assign({},e),{start:t,end:t+1,isStart:e.isStart&&e.start===t,isEnd:e.isEnd&&e.end-1===t,standinFor:e})}const ul=mn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function hl(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.end-e.start==1&&e.isStart&&e.isEnd}class fl extends li{render(){let{props:e}=this;return b(no,Object.assign({},e,{className:"fc-daygrid-block-event fc-daygrid-event fc-h-event",defaultTimeFormat:ul,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.eventRange.def.allDay}))}}class gl extends li{render(){let{props:e,context:t}=this,{options:n}=t,{eventRange:r}=e,i=Ni(n.eventTimeFormat||ul,r,void 0,void 0,e.isStart,e.isEnd,t,!0,e.defaultDisplayEventEnd),s=Bi(r,t);return b(to,Object.assign({},e,{tag:s?"a":"div",attrs:s,className:"fc-daygrid-dot-event fc-daygrid-event",defaultGenerator:pl,timeText:i,isResizing:!1,isDateSelecting:!1}))}}function pl(e){return b(D,null,b("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&b("div",{className:"fc-event-time"},e.timeText),b("div",{className:"fc-event-title"},e.event.title||b(D,null," ")))}class ml extends li{render(){let{props:e}=this;return b(mo,{className:Bn("fc-daygrid-more-link",e.isBlock?"fc-daygrid-more-link-block":"fc-daygrid-more-link-button"),dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,segs:e.segs,hiddenSegs:e.hiddenSegs,alignElRef:e.alignElRef,alignParentTop:e.alignParentTop,dateSpanProps:e.dateSpanProps,popoverContent:()=>{let t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return b(D,null,e.segs.map(n=>{let{eventRange:r}=n,{instanceId:i}=r.instance;return b("div",{key:i,style:{visibility:t[i]?"hidden":""}},hl(n)?b(gl,Object.assign({eventRange:r,isStart:n.isStart,isEnd:n.isEnd,isDragging:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},Oi(r,e.todayRange))):b(fl,Object.assign({eventRange:r,isStart:n.isStart,isEnd:n.isEnd,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},Oi(r,e.todayRange))))}))}})}}class vl extends di{constructor(){super(...arguments),this.rootElRef={current:null},this.bodyElRef={current:null}}render(){let{props:e,context:t}=this,{options:n,dateEnv:r}=t;const i=e.showDayNumber&&function(e,t,n){const{start:r,end:i}=t,s=Ot(i,-1),o=n.getYear(r),a=n.getMonth(r),l=n.getYear(s),c=n.getMonth(s);return!(o===l&&a===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<i.valueOf())}(e.date,e.dateProfile.currentRange,r);return b(oo,{tag:"div",className:Bn(e.className,"fc-daygrid-day fc-flex-col",e.borderStart&&"fc-border-s",null!=e.width?"":"fc-liquid"),attrs:Object.assign(Object.assign({},e.attrs),{role:"gridcell"}),style:{width:e.width},elRef:this.rootElRef,renderProps:e.renderProps,defaultGenerator:yl,date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,isMonthStart:i},(r,s)=>b(D,null,!s.isDisabled&&(e.showDayNumber||ao(n))&&b("div",{className:"fc-daygrid-day-header"},b(r,{tag:"a",attrs:Fr(t,e.date),className:Bn("fc-daygrid-day-number",i&&"fc-daygrid-month-start")})),b("div",{className:Bn("fc-daygrid-day-body",e.isTall&&"fc-daygrid-day-body-tall",e.fgLiquidHeight?"fc-liquid":"fc-grow"),ref:this.bodyElRef},b("div",{className:"fc-daygrid-day-events",style:{height:e.fgHeight}},e.fg),b(ml,{isBlock:e.isCompact,allDayDate:e.date,segs:e.segs,hiddenSegs:e.hiddenSegs,alignElRef:this.rootElRef,alignParentTop:e.showDayNumber?"[role=row]":".fc-view",dateSpanProps:e.dateSpanProps,dateProfile:e.dateProfile,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange}))))}componentDidMount(){const e=this.bodyElRef.current;this.disconnectBodyHeight=Br(e,(t,n)=>{const{props:r}=this,i=e.getBoundingClientRect(),s=this.rootElRef.current.getBoundingClientRect(),o=i.top-s.top;_r(this.headerHeight,o)||(this.headerHeight=o,ci(r.headerHeightRef,o)),r.fgLiquidHeight&&ci(r.mainHeightRef,n)})}componentWillUnmount(){this.disconnectBodyHeight();const{props:e}=this;ci(e.headerHeightRef,null),ci(e.mainHeightRef,null)}}function yl(e){return e.dayNumberText||b(D,null," ")}function bl(e,t){let n=e.get(t.eventRange);n||e.set(t.eventRange,n=[]),n.push(t)}function Sl(e,t){let n=new gs(e.renderRange,t);return new ps(n,/year|month|week/.test(e.currentRangeUnit))}function El(e,t,n){if(null==n)return[void 0,void 0];return n/e<t?[t*e,t]:[n,void 0]}function Dl(e,t,n,r){let i,s;if(null!=t)i=e.start*t,s=(n-e.end)*t;else{const t=1/n;i=jn(e.start*t),s=jn(1-e.end*t)}return r?{right:i,left:s}:{left:i,right:s}}function wl(e,t,n,r,i){const s=null!=n?n:t/r,o=Math.floor(e/s),a=o*s;return{col:i?r-o-1:o,left:a,right:a+s}}function Al(e,t){return e.querySelectorAll(":scope > [role=row]")[t]}function Rl(e,t){return e.querySelectorAll(":scope > [role=gridcell]")[t]}function _l(e,t,n){return e||function(e,t){if(!e||t>10)return mn({weekday:"short"});if(t>1)return mn({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0});return mn({weekday:"long"})}(t,n)}class Cl extends w{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return b("div",{className:Bn(e.className,"fc-abs"),style:e.style,ref:this.rootElRef},e.children)}componentDidMount(){const e=this.rootElRef.current;this.disconnectHeight=Lr(e,e=>{ci(this.props.heightRef,e)})}componentWillUnmount(){this.disconnectHeight(),ci(this.props.heightRef,null)}}const xl=mn({week:"narrow"});class Tl extends li{constructor(){super(...arguments),this.headerHeightRefMap=new Gs(()=>{Mr(this.handleSegPositioning)}),this.mainHeightRefMap=new Gs(()=>{(!0===this.props.dayMaxEvents||!0===this.props.dayMaxEventRows)&&Mr(this.handleSegPositioning)}),this.segHeightRefMap=new Gs(()=>{Mr(this.handleSegPositioning)}),this.handleRootEl=e=>{this.rootEl=e,ci(this.props.rootElRef,e)},this.handleSegPositioning=()=>{this.forceUpdate()}}render(){const{props:e,context:t,headerHeightRefMap:n,mainHeightRefMap:r}=this,{cells:i}=e,{options:s}=t,o=e.cells[0].date,a=!0===e.dayMaxEvents||!0===e.dayMaxEventRows,l=Mi(e.fgEventSegs,s.eventOrder),[c,d]=this.computeFgDims(),[u,h,f,g,p]=function(e,t,n,r,i,s=!0,o,a){let l,c,d;!0===o||!0===a?(l=r,d=!0):"number"==typeof o?(c=o,d=!1):"number"==typeof a&&(c=a,d=!0);const u=new Map,h=new Map,f=new Map,g=new Map;let p=new ns(e,e=>t.get(al(e)),i,l,c,d,s);p.traverseSegs((e,t)=>{bl(u,e),f.set(al(e),t),e.isSlice&&g.set(e.eventRange,!0)});for(const e of p.hiddenSegs)bl(h,e);if(g.size){f.clear(),p=new ns(function(e,t){const n=[];for(const r of e)n.push(...t.get(r.eventRange)||[]);return n}(e,u),e=>t.get(al(e)),i,l,c,d),p.traverseSegs((e,t)=>{f.set(al(e),t)});for(const e of p.hiddenSegs)bl(h,e)}const m=[],v=[],y=[],b=[];for(let e=0;e<n.length;e++)m.push([]),v.push([]),y.push([]),b.push(0);for(const n of e){const{eventRange:e}=n,r=u.get(e)||[],i=h.get(e)||[],s=g.get(e)||!1;if(y[n.start].push(n),s)for(const e of r)y[e.start].push(e);for(const e of r){for(let t=e.start;t<e.end;t++){const n=dl(e,t);m[t].push(n)}const n=al(e),r=f.get(n);if(null!=r){const i=t.get(n);for(let t=e.start;t<e.end;t++)b[t]=Math.max(b[t],r+i)}}for(const e of i)for(let t=e.start;t<e.end;t++){const n=dl(e,t);m[t].push(n),v[t].push(n)}}return[m,v,y,f,b]}(l,this.segHeightRefMap.current,i,a?d:void 0,s.eventOrderStrict,s.eventSlicing,e.dayMaxEvents,e.dayMaxEventRows),m=[];if(null!=c){let e=0;for(const t of i){const r=n.current.get(t.key),i=c-r;m.push(p[e++]+i)}}const v=this.getHighlightSegs(),y=this.getMirrorSegs(),S=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return b("div",{role:"row",className:Bn("fc-flex-row fc-rel",e.className),style:{minHeight:e.minHeight},ref:this.handleRootEl},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(v,"highlight"),b("div",{className:"fc-flex-row fc-liquid fc-rel"},e.cells.map((t,i)=>{const s=this.renderFgSegs(c,f[i],g,e.todayRange,S);return b(vl,{key:t.key,dateProfile:e.dateProfile,todayRange:e.todayRange,date:t.date,showDayNumber:e.showDayNumbers,isCompact:e.isCompact,isTall:e.isTall,borderStart:Boolean(i),segs:u[i],hiddenSegs:h[i],fgLiquidHeight:a,fg:b(D,null,s),eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,renderProps:t.renderProps,dateSpanProps:t.dateSpanProps,attrs:t.attrs,className:t.className,fgHeight:m[i],width:e.colWidth,headerHeightRef:n.createRef(t.key),mainHeightRef:r.createRef(t.key)})})),e.showWeekNumbers&&b(fo,{tag:"a",attrs:Fr(t,o,"week"),className:"fc-daygrid-week-number",date:o,defaultFormat:xl}),this.renderFgSegs(c,y,g,e.todayRange,{},Boolean(e.eventDrag),Boolean(e.eventResize),!1))}renderFgSegs(e,t,n,r,i,s,o,a){var l;const{props:c,context:d,segHeightRefMap:u}=this,{isRtl:h}=d,{colWidth:f,eventSelection:g}=c,p=c.cells.length,m=1===c.cells.length,v=s||o||a,y=[];for(const c of t){const t=al(c),{standinFor:d,eventRange:S}=c,{instanceId:E}=S.instance;if(d)continue;const{left:D,right:w}=Dl(c,f,p,h),A=null!==(l=n.get(d?al(d):t))&&void 0!==l?l:v?0:void 0,R=null!=e&&null!=A?e+A:void 0,_=d||i[E]||null==R;y.push(b(Cl,{key:t,className:c.start?"fc-border-transparent fc-border-s":"",style:{visibility:_?"hidden":"",top:R,left:D,right:w},heightRef:d||v?null:u.createRef(t)},hl(c)?b(gl,Object.assign({eventRange:S,isStart:c.isStart,isEnd:c.isEnd,isDragging:s,isSelected:E===g,defaultDisplayEventEnd:m},Oi(S,r))):b(fl,Object.assign({eventRange:S,isStart:c.isStart,isEnd:c.isEnd,isDragging:s,isResizing:o,isDateSelecting:a,isSelected:E===g,defaultDisplayEventEnd:m},Oi(S,r)))))}return y}renderFillSegs(e,t){const{props:n,context:r}=this,{isRtl:i}=r,{todayRange:s,colWidth:o}=n,a=n.cells.length,l=[];for(const n of e){const e=Pi(n.eventRange),{left:r,right:c}=Dl(n,o,a,i),d=!n.standinFor;l.push(b("div",{key:e,className:"fc-fill-y",style:{visibility:d?"":"hidden",left:r,right:c}},"bg-event"===t?b(co,Object.assign({eventRange:n.eventRange,isStart:n.isStart,isEnd:n.isEnd},Oi(n.eventRange,s))):ho(t)))}return b(D,{},...l)}componentDidMount(){const{rootEl:e}=this;this.disconnectHeight=Lr(e,e=>{ci(this.props.heightRef,e)})}componentWillUnmount(){this.disconnectHeight(),ci(this.props.heightRef,null)}computeFgDims(){const{cells:e}=this.props,t=this.headerHeightRefMap.current,n=this.mainHeightRefMap.current;let r,i;for(const s of e){const e=t.get(s.key),o=n.get(s.key);if(null!=e&&((void 0===r||e>r)&&(r=e),null!=o)){const t=e+o;(void 0===i||t<i)&&(i=t)}}return[r,null!=i&&null!=r?i-r:void 0]}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}}class Ml extends di{constructor(){super(...arguments),this.splitBusinessHourSegs=en(ll),this.splitBgEventSegs=en(ll),this.splitFgEventSegs=en(ll),this.splitDateSelectionSegs=en(ll),this.splitEventDrag=en(cl),this.splitEventResize=en(cl),this.rowHeightRefMap=new Gs((e,t)=>{const{rowHeightRefMap:n}=this.props;n&&n.handleValue(e,t)}),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t,rowHeightRefMap:n}=this,{options:r}=t,i=e.cellRows.length,s=this.splitFgEventSegs(e.fgEventSegs,i),o=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitBusinessHourSegs(e.businessHourSegs,i),l=this.splitDateSelectionSegs(e.dateSelectionSegs,i),c=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i),u=Us(r),h=!e.forPrint&&!u,[f,g]=Il(e.visibleWidth,i,u,e.forPrint,r);return b("div",{className:Bn(!e.forPrint&&"fc-flex-col",e.className),style:{width:e.width},ref:this.handleRootEl},e.cellRows.map((t,u)=>b(Tl,{key:t[0].key,dateProfile:e.dateProfile,todayRange:e.todayRange,cells:t,showDayNumbers:i>1,showWeekNumbers:r.weekNumbers,forPrint:e.forPrint,isCompact:g,className:Bn(h&&"fc-grow fc-basis0",i>1&&"fc-break-inside-avoid",u<i-1&&"fc-border-b"),fgEventSegs:s[u],bgEventSegs:o[u].filter(kl),businessHourSegs:a[u],dateSelectionSegs:l[u],eventSelection:e.eventSelection,eventDrag:c[u],eventResize:d[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,colWidth:e.colWidth,minHeight:f,heightRef:n.createRef(t[0].key)})))}componentDidMount(){this.disconnectWidth=jr(this.rootEl,e=>{this.setState({width:e})})}componentWillUnmount(){this.disconnectWidth()}queryHit(e,t,n){const{props:r,context:i}=this,s=r.cellRows[0].length,{col:o,left:a,right:l}=wl(e,n,r.colWidth,s,i.isRtl),{row:c,top:d,bottom:u}=function(e,t,n){let r=0,i=0,s=0;for(const o of t){const t=o[0].key;if(i=s,s=i+n.get(t),e<s)break;r++}return{row:r,top:i,bottom:s}}(t,r.cellRows,this.rowHeightRefMap.current),h=r.cellRows[c][o],f=h.date,g=Nt(f,1);return{dateProfile:r.dateProfile,dateSpan:Object.assign({range:{start:f,end:g},allDay:!0},h.dateSpanProps),dayEl:Rl(Al(this.rootEl,c),o),rect:{left:a,right:l,top:d,bottom:u},layer:0}}}function kl(e){return e.eventRange.def.allDay}function Il(e,t,n,r,i){if(null!=e){const s=e/i.aspectRatio/6;return[r?"6em":t>6||n?s:void 0,s<70]}return[void 0,!1]}class Nl extends li{constructor(){super(...arguments),this.handleInnerEl=e=>{this.disconectInnerHeight&&(this.disconectInnerHeight(),this.disconectInnerHeight=void 0),e?this.disconectInnerHeight=Lr(e,e=>{ci(this.props.innerHeightRef,e)}):ci(this.props.innerHeightRef,null)}}render(){const{props:e}=this,{renderConfig:t,dataConfig:n}=e;return b($s,{tag:"div",attrs:n.attrs,className:Bn(n.className,"fc-header-cell fc-cell fc-flex-col fc-align-center",e.borderStart&&"fc-border-s",!e.isSticky&&"fc-crop",null==e.colWidth&&"fc-liquid"),style:{width:null!=e.colWidth?e.colWidth*(n.colSpan||1):void 0},renderProps:n.renderProps,generatorName:t.generatorName,customGenerator:t.customGenerator,defaultGenerator:eo,classNameGenerator:n.renderProps.isDisabled?void 0:t.classNameGenerator,didMount:t.didMount,willUnmount:t.willUnmount},t=>!n.renderProps.isDisabled&&b(t,{tag:n.isNavLink?"a":"div",attrs:n.innerAttrs,className:Bn("fc-cell-inner fc-flex-col fc-padding-sm",e.isSticky&&"fc-sticky-s"),elRef:this.handleInnerEl}))}}class Ol extends li{constructor(){super(...arguments),this.innerHeightRefMap=new Gs(()=>{Mr(this.handleInnerHeights)}),this.handleInnerHeights=()=>{const e=this.innerHeightRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);this.currentInnerHeight!==t&&(this.currentInnerHeight=t,ci(this.props.innerHeightRef,t))}}render(){const{props:e}=this;return b("div",{role:"row",className:Bn("fc-flex-row fc-content-box",e.className),style:{height:e.height}},e.dataConfigs.map((t,n)=>b(Nl,{key:t.key,renderConfig:e.renderConfig,dataConfig:t,isSticky:e.isSticky,borderStart:Boolean(n),colWidth:e.colWidth,innerHeightRef:e.innerHeightRef})))}}class Hl extends li{render(){const{props:e}=this;return b("div",{className:Bn(e.className,"fc-flex-col",null==e.width&&"fc-liquid"),style:{width:e.width}},e.headerTiers.map((t,n)=>b(Ol,Object.assign({},t,{key:n,className:n?"fc-border-t":"",colWidth:e.colWidth}))))}}class Pl extends li{constructor(){super(...arguments),this.handleScroller=e=>{ci(this.props.scrollerRef,e)},this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleEndScrollbarWidth=e=>{this.setState({endScrollbarWidth:e})}}render(){const{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&!Us(r),s=!e.forPrint&&zs(r);return b(D,null,r.dayHeaders&&b("div",{className:Bn(e.forPrint?"fc-print-header":"fc-flex-row","fc-border-b")},b(Hl,{headerTiers:e.headerTiers,className:Bn("fc-daygrid-header",s&&"fc-table-header-sticky")}),Boolean(t.endScrollbarWidth)&&b("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}})),b(bs,{vertical:i,clientWidthRef:this.handleClientWidth,endScrollbarWidthRef:this.handleEndScrollbarWidth,className:Bn("fc-daygrid-body",!e.forPrint&&"fc-flex-col",i&&"fc-liquid"),ref:this.handleScroller},b(Ml,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:"fc-grow",dayMaxEvents:e.forPrint?void 0:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,visibleWidth:null!=t.clientWidth&&null!=t.endScrollbarWidth?t.clientWidth+t.endScrollbarWidth:void 0,rowHeightRefMap:e.rowHeightRefMap})))}}class Bl extends li{constructor(){super(...arguments),this.headerScrollerRef={current:null},this.bodyScrollerRef={current:null},this.footerScrollerRef={current:null},this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleEndScrollbarWidth=e=>{this.setState({endScrollbarWidth:e})}}render(){const{props:e,state:t,context:n}=this,{options:r}=n,i=!e.forPrint&&!Us(r),s=!e.forPrint&&zs(r),o=!e.forPrint&&Fs(r),a=e.cellRows[0].length,[l,c]=El(a,e.dayMinWidth,t.clientWidth);return b(D,null,r.dayHeaders&&b("div",{className:"fc-print-header"},b(bs,{horizontal:!0,hideScrollbars:!0,className:Bn("fc-daygrid-header fc-flex-row fc-border-b",s&&"fc-table-header-sticky"),ref:this.headerScrollerRef},b(Hl,{headerTiers:e.headerTiers,colWidth:c,width:l}),Boolean(t.endScrollbarWidth)&&b("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}}))),b(bs,{vertical:i,horizontal:!0,hideScrollbars:o||e.forPrint,className:Bn("fc-daygrid-body",!e.forPrint&&"fc-flex-col",i&&"fc-liquid"),ref:this.bodyScrollerRef,clientWidthRef:this.handleClientWidth,endScrollbarWidthRef:this.handleEndScrollbarWidth},b(Ml,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:e.cellRows,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,className:"fc-grow",dayMaxEvents:e.forPrint?void 0:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,colWidth:c,width:l,visibleWidth:null!=t.clientWidth&&null!=t.endScrollbarWidth?t.clientWidth+t.endScrollbarWidth:void 0,rowHeightRefMap:e.rowHeightRefMap})),Boolean(o)&&b(Ro,{canvasWidth:l,scrollerRef:this.footerScrollerRef}))}componentDidMount(){const e=Vs(this.context.pluginHooks);this.syncedScroller=new e(!0),ci(this.props.scrollerRef,this.syncedScroller),this.updateSyncedScroller()}componentDidUpdate(){this.updateSyncedScroller()}componentWillUnmount(){this.syncedScroller.destroy()}updateSyncedScroller(){this.syncedScroller.handleChildren([this.headerScrollerRef.current,this.bodyScrollerRef.current,this.footerScrollerRef.current])}}class Wl extends li{constructor(){super(...arguments),this.scrollerRef={current:null},this.rowHeightRefMap=new Gs(()=>{Mr(this.updateScrollY)}),this.scrollDate=null,this.updateScrollY=()=>{const e=this.rowHeightRefMap.current,t=this.scrollerRef.current;if(t&&this.scrollDate){let n=function(e,t,n,r=0){let i=0;for(const s of t){const t=s[0].date,o=s[s.length-1].date,a=t.toISOString();if(e>=t&&e<=o)return i;const l=n.get(a);if(null==l)return;i+=l+r}return i}(this.scrollDate,this.props.cellRows,e,1);null!=n&&(n&&n++,t.scrollTo({y:n}))}},this.clearScroll=()=>{this.scrollDate=null}}render(){const{props:e,context:t}=this,{options:n}=t,r=Object.assign(Object.assign({},e),{scrollerRef:this.scrollerRef,rowHeightRefMap:this.rowHeightRefMap});return b(bo,{viewSpec:t.viewSpec,className:Bn(e.className,"fc-print-root fc-border")},n.dayMinWidth?b(Bl,Object.assign({},r,{dayMinWidth:n.dayMinWidth})):b(Pl,Object.assign({},r)))}componentDidMount(){this.resetScroll(),this.scrollerRef.current.addScrollEndListener(this.clearScroll)}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset&&this.resetScroll()}componentWillUnmount(){this.scrollerRef.current.removeScrollEndListener(this.clearScroll)}resetScroll(){this.scrollDate=this.props.dateProfile.currentDate,this.updateScrollY();this.scrollerRef.current.scrollTo({x:0})}}class jl extends hi{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return Ll({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function Ll(e){let t,{dateEnv:n,currentRange:r}=e,{start:i,end:s}=r;if(e.snapToWeek&&(i=n.startOfWeek(i),t=n.startOfWeek(s),t.valueOf()!==s.valueOf()&&(s=It(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(Nt(r.end,-1)));s=It(s,6-Math.ceil(Ht(e,s)))}return{start:i,end:s}}Be(":root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc-daygrid-day-header{display:flex;flex-direction:row-reverse}.fc-day-other .fc-daygrid-day-header{opacity:.3}.fc-daygrid-day-number{padding:4px;position:relative}.fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc-daygrid-day-body{display:flex;flex-direction:column;margin-bottom:1px}.fc-daygrid-day-body-tall{margin-bottom:1em;min-height:2em}.fc-daygrid-day-body:only-child{margin-top:2px}.fc-daygrid-more-link{border-radius:3px;cursor:pointer;font-size:var(--fc-small-font-size);margin:0 2px 1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap}.fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc-daygrid-more-link-button{align-self:flex-start}.fc-daygrid-more-link-block{border:1px solid var(--fc-event-border-color);padding:1px}.fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0}.fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);margin-bottom:1px}.fc-media-print .fc-daygrid-event{overflow:hidden!important;white-space:nowrap!important}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;direction:row;display:flex;padding:2px 0;position:relative;z-index:2}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-daygrid-dot-event .fc-event-time,.fc-daygrid-dot-event .fc-event-title{overflow:hidden;white-space:nowrap}.fc-daygrid-dot-event .fc-event-title{flex-basis:0;flex-grow:1;font-weight:700;min-height:0;min-width:0}");var Ul=Oo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends li{constructor(){super(...arguments),this.buildDayTableModel=en(Sl),this.buildDateRowConfigs=en(rl),this.createDayHeaderFormatter=en(_l),this.slicer=new el}render(){const{props:e,context:t}=this,{options:n}=t,r=this.buildDayTableModel(e.dateProfile,t.dateProfileGenerator),i=1===r.rowCnt,s=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,r.colCnt),o=this.slicer.sliceProps(e,e.dateProfile,n.nextDayThreshold,t,r);return b(Qs,{unit:"day"},(n,a)=>{const l=this.buildDateRowConfigs(r.headerDates,i,e.dateProfile,a,s,t);return b(Wl,{dateProfile:e.dateProfile,todayRange:a,cellRows:r.cellRows,forPrint:e.forPrint,className:"fc-daygrid",headerTiers:l,fgEventSegs:o.fgEventSegs,bgEventSegs:o.bgEventSegs,businessHourSegs:o.businessHourSegs,dateSelectionSegs:o.dateSelectionSegs,eventDrag:o.eventDrag,eventResize:o.eventResize,eventSelection:o.eventSelection})})}},dateProfileGeneratorClass:jl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class zl extends pr{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Ri(e)?["timed","allDay"]:["allDay"]:["timed"]}}class Fl extends As{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=br(e,t[r]);i&&n.push({startDate:i.start,endDate:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}}function Vl(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function Gl(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.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}const Ql=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Yl(e,t,n,r,i){let s=new Date(0),o=e,a=ut(0),l=n||function(e){let t,n,r;for(t=Ql.length-1;t>=0;t-=1)if(n=ut(Ql[t]),r=vt(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;mt(o)<mt(t);){let e=i.add(s,o),t=null!==vt(a,l);c.push({date:e,time:o,key:e.toISOString(),isoTimeStr:$t(e),isLabeled:t}),o=ft(o,r),a=ft(a,r)}return c}class ql extends li{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e}=this,{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return b($s,{tag:"div",className:"fc-timegrid-allday-label fc-timegrid-axis fc-cell fc-content-box",style:{width:e.width},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:Zl,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},e=>b(e,{tag:"span",className:"fc-timegrid-axis-inner fc-cell-inner fc-padding-sm",elRef:this.innerElRef}))}componentDidMount(){const{props:e}=this,t=this.innerElRef.current;this.disconnectInnerWidth=jr(t,t=>{ci(e.innerWidthRef,t)})}componentWillUnmount(){this.disconnectInnerWidth(),ci(this.props.innerWidthRef,null)}}function Zl(e){return e.text}class Xl extends di{constructor(){super(...arguments),this.heightRef={current:null},this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){return b(Tl,Object.assign({},this.props,{isTall:!0,rootElRef:this.handleRootEl,heightRef:this.heightRef}))}queryHit(e,t,n){const{props:r,context:i,heightRef:s}=this,o=r.cells.length,{col:a,left:l,right:c}=wl(e,n,r.colWidth,o,i.isRtl),d=r.cells[a],u=d.date,h=Nt(u,1);return{dateProfile:r.dateProfile,dateSpan:Object.assign({range:{start:u,end:h},allDay:!0},d.dateSpanProps),dayEl:Rl(this.rootEl,a),rect:{left:l,right:c,top:0,bottom:s.current},layer:0}}}function Jl(e,t){let n=new gs(e.renderRange,t);return new ps(n,!1)}function $l(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}function Kl(e,t,n,r){if(!n||!r)return[void 0,!1];const i=n+1,s=r/t;let o,a;return e&&s>=i?(o=!0,a=s):(o=!1,a=i),[a,o]}function ec(e,t,n){return n||(n=Lt(e)),tc(ut(e.valueOf()-n.valueOf()),t)}function tc(e,t){const n=mt(t.slotMinTime),r=mt(t.slotMaxTime);let i=(e.milliseconds-n)/(r-n);return i=Math.max(0,i),i=Math.min(1,i),i}function nc(e){return["fc-timegrid-slot",e.isLabeled?"":"fc-timegrid-slot-minor","fc-flex-row"]}function rc(e,t,n,r,i,s,o){const a=[];if(null!=i){const l=i*r;for(const r of e){const e=ec(r.startDate,t,n)*l;let i=ec(r.endDate,t,n)*l,c=i-e;null!=s&&c<s&&(c=s,i=e+c),a.push({start:e,end:i,size:c,isShort:null!=o&&c<o})}}return a}function ic(e,t,n,r){const i=[];for(let n=0;n<e.length;n++){const r=t[n];r&&i.push(Object.assign(Object.assign({},e[n]),{start:r.start,end:r.end}))}const s=new ns(i,void 0,n,void 0,r);let o=function(e){const{placementsByLevel:t}=e,n=lc((e,t)=>e+":"+t,(r,i)=>{let s=function(e,t,n){let{levelCoords:r,placementsByLevel:i}=e,s=i[t][n],o=r[t]+s.thickness,a=r.length,l=t;for(;l<a&&r[l]<o;l+=1);for(;l<a;l+=1){let e,t=i[l],n=ss(t,s.start,Ji),r=n[0]+n[1],o=r;for(;(e=t[o])&&e.start<s.end;)o+=1;if(r<o)return{level:l,lateralStart:r,lateralEnd:o}}return null}(e,r,i),[o,a]=sc(s,n),l=t[r][i];return[Object.assign(Object.assign({},l),{nextLevelNodes:o}),l.thickness+a]}),[r]=sc(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n);return r}(s);o=function(e,t){const n=lc((e,t,n)=>wi(e),(e,r,i)=>{let s,{nextLevelNodes:o,thickness:a}=e,l=a+i,c=a/l,d=[];if(o.length)for(let e of o)if(void 0===s){let t=n(e,r,l);s=t[0],d.push(t[1])}else{let t=n(e,s,0);d.push(t[1])}else s=t;let u=(s-r)*c;return[s-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:d})]});return e.map(e=>n(e,0,0)[1])}(o,1);return[function(e){let t=new Map;const n=lc((e,t,n)=>wi(e),(e,n,i)=>{let s=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.set(s.eventRange.instance.instanceId,s),s.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)});function r(e,t,r){let i=0;for(let s of e)i=Math.max(n(s,t,r)+1,i);return i}return r(e,0,0),t}(o),rs(s.hiddenSegs)]}function sc(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,s=r,o=[];for(;s<i;)o.push(t(n,s)),s+=1;return o.sort(oc),[o.map(ac),o[0][1]]}function oc(e,t){return t[1]-e[1]}function ac(e){return e[0]}function lc(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}const cc=mn({hour:"numeric",minute:"2-digit",meridiem:!1});class dc extends li{render(){const{props:e}=this;return b(no,Object.assign({},e,{className:Bn("fc-timegrid-event",e.isShort&&"fc-timegrid-event-short",e.isInset&&"fc-timegrid-event-inset","fc-v-event",e.isLiquid&&"fc-liquid"),defaultTimeFormat:cc}))}}class uc extends li{render(){let{props:e}=this;return b(mo,{className:"fc-timegrid-more-link fc-abs",style:{top:e.top,height:e.height},allDayDate:null,segs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,dateSpanProps:e.dateSpanProps,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>mc(e.hiddenSegs,e),defaultGenerator:hc,forceTimed:!0},e=>b(e,{tag:"div",className:"fc-timegrid-more-link-inner fc-sticky-t"}))}}function hc(e){return e.shortText}function fc(e){return b("div",{className:"fc-timegrid-now-indicator-container"},b(io,{className:"fc-timegrid-now-indicator-line",style:{top:null!=e.totalHeight?e.totalHeight*ec(e.nowDate,e.dateProfile,e.dayDate):void 0},isAxis:!1,date:e.nowDate}))}const gc=navigator.userAgent.toLowerCase().includes("firefox");class pc extends li{constructor(){super(...arguments),this.sortEventSegs=en(Mi)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return b(oo,{tag:"div",attrs:Object.assign({role:"gridcell"},e.attrs),className:Bn(e.className,"fc-timegrid-day fc-flex-col fc-rel",e.borderStart&&"fc-border-s",null==e.width&&"fc-liquid"),style:{width:e.width},date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,renderProps:e.renderProps},t=>b(D,null,this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight"),ao(n)&&b(t,{tag:"div",className:"fc-timegrid-day-misc fc-rel"}),b("div",{className:Bn("fc-timegrid-day-events",e.forPrint&&gc?"fc-timegrid-day-events-simple":"fc-fill")},this.renderFgSegs(o,s,!1,!1,!1)),Boolean(i.length)&&b("div",{className:"fc-timegrid-day-events fc-fill"},this.renderFgSegs(i,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r),"mirror")),this.renderNowIndicator(e.nowIndicatorSegs)))}renderFgSegs(e,t,n,r,i,s){const{props:o}=this;return o.forPrint&&gc?mc(e,o):this.renderPositionedFgSegs(e,t,n,r,i,s)}renderPositionedFgSegs(e,t,n,r,i,s){let{props:o,context:a}=this,{date:l,dateProfile:c,eventSelection:d,todayRange:u,nowDate:h}=o,{eventMaxStack:f,eventShortHeight:g,eventOrderStrict:p,eventMinHeight:m}=a.options,v=rc(e,c,l,o.slatCnt,o.slatHeight,m,g),[y,S]=ic(e,v,p,f),E=n||r||i;return b(D,null,e.map((e,o)=>{let{eventRange:a}=e,l=a.instance.instanceId,c=v[o]||{},f=y.get(l),g=!E&&f?this.computeSegHStyle(f):{left:0,right:0},p=E||f&&!t[l],m=f&&Boolean(f.stackDepth);return b("div",{className:"fc-abs fc-flex-col",key:s||l,style:Object.assign({visibility:p?"":"hidden",top:c.start,height:c.size},g)},b(dc,Object.assign({eventRange:a,slicedStart:e.startDate,slicedEnd:e.endDate,isStart:e.isStart,isEnd:e.isEnd,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:l===d,isShort:c.isShort||!1,isInset:m,isLiquid:!0},Oi(a,u,h))))}),this.renderHiddenGroups(S))}renderHiddenGroups(e){let{dateSpanProps:t,dateProfile:n,todayRange:r,nowDate:i,eventSelection:s,eventDrag:o,eventResize:a}=this.props;return b(D,null,e.map(e=>b(uc,{key:e.key,hiddenSegs:e.segs,top:e.start,height:e.end-e.start,dateSpanProps:t,dateProfile:n,todayRange:r,nowDate:i,eventSelection:s,eventDrag:o,eventResize:a})))}renderFillSegs(e,t){let{props:n,context:r}=this,i=rc(e,n.dateProfile,n.date,n.slatCnt,n.slatHeight,r.options.eventMinHeight);return b(D,null,e.map((e,r)=>{const{eventRange:s}=e,o=i[r]||{};return b("div",{key:Pi(s),className:"fc-fill-x",style:{top:o.start,height:o.size}},"bg-event"===t?b(co,Object.assign({eventRange:s,isStart:e.isStart,isEnd:e.isEnd},Oi(s,n.todayRange,n.nowDate))):ho(t))}))}renderNowIndicator(e){let{props:t}=this;if(!t.forPrint||!gc)return e.map(e=>b(fc,{nowDate:e.startDate,dayDate:t.date,dateProfile:t.dateProfile,totalHeight:null!=t.slatHeight?t.slatHeight*t.slatCnt:void 0}))}computeSegHStyle(e){let t,n,{isRtl:r,options:i}=this.context,s=i.slotEventOverlap,o=e.levelCoord,a=e.levelCoord+e.thickness;s&&(a=Math.min(1,o+2*(a-o))),r?(t=1-a,n=o):(t=o,n=1-a);let l={zIndex:e.stackDepth+1,left:jn(t),right:jn(n)};return s&&e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function mc(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let o=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return b(D,null,e.map(e=>{let{eventRange:i}=e,{instanceId:s}=i.instance;return b("div",{key:s,className:"fc-break-inside-avoid",style:{visibility:o[s]?"hidden":""}},b(dc,Object.assign({eventRange:i,slicedStart:e.startDate,slicedEnd:e.endDate,isStart:e.isStart,isEnd:e.isEnd,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===r,isShort:!1,isInset:!1},Oi(i,t,n))))}))}class vc extends di{constructor(){super(...arguments),this.processSlotOptions=en(yc),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){const{props:e}=this;return b("div",{className:Bn(e.className,"fc-flex-row"),style:e.style,ref:this.handleRootEl},e.cells.map((t,n)=>b(pc,{key:t.key,dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,date:t.date,slatCnt:e.slatCnt,renderProps:t.renderProps,attrs:t.attrs,dateSpanProps:t.dateSpanProps,forPrint:e.forPrint,borderStart:Boolean(n),fgEventSegs:e.fgEventSegsByCol[n],bgEventSegs:e.bgEventSegsByCol[n],businessHourSegs:e.businessHourSegsByCol[n],nowIndicatorSegs:e.nowIndicatorSegsByCol[n],dateSelectionSegs:e.dateSelectionSegsByCol[n],eventDrag:e.eventDragByCol[n],eventResize:e.eventResizeByCol[n],eventSelection:e.eventSelection,width:e.colWidth,slatHeight:e.slatHeight})))}queryHit(e,t,n){const{dateProfile:r,cells:i,colWidth:s,slatHeight:o}=this.props,{dateEnv:a,options:l,isRtl:c}=this.context,{snapDuration:d,snapsPerSlot:u}=this.processSlotOptions(l.slotDuration,l.snapDuration),h=i.length,{col:f,left:g,right:p}=wl(e,n,s,h,c),m=i[f],v=Math.floor(t/o),y=v*o,b=(t-y)/o,S=v+Math.floor(b*u)*u,E=ft(r.slotMinTime,gt(d,S)),D=a.add(m.date,E),w=a.add(D,d);return{dateProfile:r,dateSpan:Object.assign({range:{start:D,end:w},allDay:!1},m.dateSpanProps),dayEl:Rl(this.rootEl,f),rect:{left:g,right:p,top:y,bottom:y+o},layer:0}}}function yc(e,t){let n=t||e,r=vt(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}function bc(e){return b("div",{className:"fc-timegrid-now-indicator-container"},b(io,{className:"fc-timegrid-now-indicator-arrow",style:{top:null!=e.totalHeight?e.totalHeight*ec(e.nowDate,e.dateProfile):void 0},isAxis:!0,date:e.nowDate}))}vc.addPropsEquality({style:Rt});const Sc=mn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});class Ec extends li{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{dateEnv:n,options:r,viewApi:i}=t,s=Bn("fc-timegrid-slot-label fc-timegrid-axis fc-header-cell fc-cell",e.isLiquid?"fc-liquid":"fc-content-box");if(!e.isLabeled)return b("div",{"data-time":e.isoTimeStr,className:s,style:{width:e.width}});let o=null==r.slotLabelFormat?Sc:Array.isArray(r.slotLabelFormat)?mn(r.slotLabelFormat[0]):mn(r.slotLabelFormat),a={level:0,time:e.time,date:n.toDate(e.date),view:i,text:n.format(e.date,o)};return b($s,{tag:"div",attrs:{"data-time":e.isoTimeStr},className:s,style:{width:e.width},renderProps:a,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:Dc,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},e=>b(e,{tag:"div",className:"fc-timegrid-axis-inner fc-cell-inner fc-padding-sm",elRef:this.innerElRef}))}componentDidMount(){const{props:e}=this,t=this.innerElRef.current;t&&(this.disconnectInnerSize=Br(t,(t,n)=>{ci(e.innerWidthRef,t),ci(e.innerHeightRef,n)}))}componentWillUnmount(){const{props:e}=this;this.disconnectInnerSize&&(this.disconnectInnerSize(),ci(e.innerWidthRef,null),ci(e.innerHeightRef,null))}}function Dc(e){return e.text}class wc extends li{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{options:n}=t,r={time:e.time,date:t.dateEnv.toDate(e.date),view:t.viewApi};return b($s,{tag:"div",className:Bn("fc-cell fc-liquid",e.borderStart&&"fc-border-s"),attrs:{"data-time":e.isoTimeStr},renderProps:r,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},e=>b(e,{tag:"div",className:"fc-cell-inner",elRef:this.innerElRef}))}componentDidMount(){const e=this.innerElRef.current;this.disconnectInnerHeight=Lr(e,e=>{ci(this.props.innerHeightRef,e)})}componentWillUnmount(){this.disconnectInnerHeight(),ci(this.props.innerHeightRef,null)}}const Ac=mn({week:"short"});class Rc extends li{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,n=e.dateProfile.renderRange,r=1===Pt(n.start,n.end)?Fr(t,n.start,"week"):{};return b(fo,{tag:"div",className:Bn("fc-timegrid-weeknumber fc-timegrid-axis fc-cell",e.isLiquid?"fc-liquid":"fc-content-box"),style:{width:e.width},date:n.start,defaultFormat:Ac},e=>b(e,{tag:"a",attrs:r,className:"fc-timegrid-axis-inner fc-cell-inner fc-padding-sm",elRef:this.innerElRef}))}componentDidMount(){const{props:e}=this,t=this.innerElRef.current;this.disconnectInnerSize=Br(t,(t,n)=>{ci(e.innerWidthRef,t),ci(e.innerHeightRef,n)})}componentWillUnmount(){const{props:e}=this;this.disconnectInnerSize(),ci(e.innerWidthRef,null),ci(e.innerHeightRef,null)}}function _c(e){return b("div",{className:Bn("fc-timegrid-axis",e.isLiquid?"fc-liquid":"fc-content-box"),style:{width:e.width}})}class Cc extends li{constructor(){super(...arguments),this.state={headerTierHeights:[]},this.headerLabelInnerWidthRefMap=new Gs(()=>{Mr(this.handleAxisWidths)}),this.headerLabelInnerHeightRefMap=new Gs(()=>{Mr(this.handleHeaderHeights)}),this.headerMainInnerHeightRefMap=new Gs(()=>{Mr(this.handleHeaderHeights)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,Mr(this.handleAxisWidths)},this.slatLabelInnerWidthRefMap=new Gs(()=>{Mr(this.handleAxisWidths)}),this.slatLabelInnerHeightRefMap=new Gs(()=>{Mr(this.handleSlatInnerHeights)}),this.slatMainInnerHeightRefMap=new Gs(()=>{Mr(this.handleSlatInnerHeights)}),this.headerScrollerRef={current:null},this.allDayScrollerRef={current:null},this.mainScrollerRef={current:null},this.footScrollerRef={current:null},this.axisScrollerRef={current:null},this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleClientHeight=e=>{this.setState({clientHeight:e})},this.handleEndScrollbarWidth=e=>{this.setState({endScrollbarWidth:e})},this.handleBottomScrollbarWidth=e=>{this.setState({bottomScrollbarWidth:e})},this.handleHeaderHeights=()=>{const e=this.headerLabelInnerHeightRefMap.current,t=this.headerMainInnerHeightRefMap.current,n=[];for(const[r,i]of t.entries())n[r]=Math.max(e.get(r)||0,i);const{headerTierHeights:r}=this.state;Mt(r,n)||this.setState({headerTierHeights:n})},this.handleSlatInnerHeights=()=>{const e=this.slatLabelInnerHeightRefMap.current,t=this.slatMainInnerHeightRefMap.current;let n=0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.slatInnerHeight!==n&&this.setState({slatInnerHeight:n})},this.handleAxisWidths=()=>{const e=this.headerLabelInnerWidthRefMap.current,t=this.slatLabelInnerWidthRefMap.current;let n=this.allDayLabelInnerWidth||0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.axisWidth!==n&&this.setState({axisWidth:n})}}render(){const{props:e,state:t,context:n,headerLabelInnerWidthRefMap:r,headerLabelInnerHeightRefMap:i,headerMainInnerHeightRefMap:s,slatLabelInnerWidthRefMap:o,slatLabelInnerHeightRefMap:a,slatMainInnerHeightRefMap:l}=this,{nowDate:c,headerTiers:d,forPrint:u}=e,{axisWidth:h}=t,{options:f}=n,g=!u&&!Us(f),p=!u&&zs(f),m=!u&&Fs(f),v=u&&!gc,y=u&&gc,S=e.cells.length,[E,w]=El(S,e.dayMinWidth,t.clientWidth),A=e.slatMetas.length,[R,_]=Kl(g&&f.expandRows,A,t.slatInnerHeight,t.clientHeight);this.slatHeight=R;const C=(R||0)*A,x=v?C:void 0,T=g&&!f.expandRows&&null!=t.clientHeight&&t.clientHeight>C;return b(D,null,f.dayHeaders&&b("div",{className:Bn("fc-timegrid-header fc-flex-row fc-border-b",p&&"fc-table-header-sticky")},b("div",{className:"fc-content-box",style:{width:h}},d.map((n,s)=>b("div",{key:s,className:Bn("fc-flex-row fc-content-box",s&&"fc-border-t"),style:{height:t.headerTierHeights[s]}},s===d.length-1?b(Rc,{dateProfile:e.dateProfile,innerWidthRef:r.createRef(s),innerHeightRef:i.createRef(s),width:void 0,isLiquid:!0}):b(_c,{width:void 0,isLiquid:!0})))),b(bs,{horizontal:!0,hideScrollbars:!0,className:"fc-flex-row fc-border-s fc-liquid",ref:this.headerScrollerRef},b("div",{className:null==E?"fc-liquid":"",style:{width:E}},e.headerTiers.map((e,n)=>b(Ol,Object.assign({},e,{key:n,className:n?"fc-border-t":"",height:t.headerTierHeights[n],colWidth:w,innerHeightRef:s.createRef(n)})))),Boolean(t.endScrollbarWidth)&&b("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}}))),f.allDaySlot&&b(D,null,b("div",{className:"fc-timegrid-allday fc-flex-row"},b(ql,{width:h,innerWidthRef:this.handleAllDayLabelInnerWidth}),b(bs,{horizontal:!0,hideScrollbars:!0,className:"fc-border-s fc-flex-row fc-liquid",ref:this.allDayScrollerRef},b("div",{className:"fc-flex-col",style:{width:E}},b(Xl,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:u,isHitComboAllowed:e.isHitComboAllowed,isCompact:Il(t.clientWidth,1,!0,u,f)[1],fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,colWidth:w})),Boolean(t.endScrollbarWidth)&&b("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}}))),b("div",{className:"fc-rowdivider"})),b("div",{className:Bn("fc-timegrid-body fc-flex-row",g&&"fc-liquid")},b(bs,{vertical:g,hideScrollbars:!0,className:"fc-flex-col fc-content-box",style:{width:h},ref:this.axisScrollerRef},!y&&b(D,null,b("div",{className:Bn("fc-flex-col fc-grow",v&&"fc-rel"),style:{height:x}},b("div",{className:Bn("fc-timegrid-slots-axis fc-flex-col",g&&f.expandRows&&"fc-grow",v&&"fc-fill-x")},e.slatMetas.map((e,t)=>b("div",{key:e.key,className:Bn(...nc(e),t&&"fc-border-t",_&&"fc-liquid"),style:{height:_?"":R}},b(Ec,Object.assign({},e,{isLiquid:!0,innerWidthRef:o.createRef(e.key),innerHeightRef:a.createRef(e.key)}))))),f.nowIndicator&&wr(e.dateProfile.currentRange,c)&&b(bc,{nowDate:c,dateProfile:e.dateProfile,totalHeight:null!=R?R*A:void 0}),Boolean(T||t.bottomScrollbarWidth)&&b("div",{class:Bn("fc-border-t fc-filler",T&&"fc-liquid"),style:{minHeight:t.bottomScrollbarWidth}})))),b("div",{className:"fc-border-s fc-flex-col fc-liquid"},b(bs,{vertical:g,horizontal:!0,hideScrollbars:m||u,className:Bn("fc-flex-col",g&&"fc-liquid"),ref:this.mainScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight,endScrollbarWidthRef:this.handleEndScrollbarWidth,bottomScrollbarWidthRef:this.handleBottomScrollbarWidth},b("div",{className:"fc-flex-col fc-grow fc-rel",style:{width:E,height:x}},b(vc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:A,forPrint:u,isHitComboAllowed:e.isHitComboAllowed,className:y?"":"fc-fill",fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,colWidth:w,slatHeight:R}),!y&&b(D,null,b("div",{className:Bn("fc-timegrid-slots fc-flex-col",g&&f.expandRows&&"fc-grow",v?"fc-fill-x":"fc-rel")},e.slatMetas.map((e,t)=>b("div",{key:e.key,className:Bn(...nc(e),t&&"fc-border-t",_&&"fc-liquid"),style:{height:_?"":R}},b(wc,Object.assign({},e,{innerHeightRef:l.createRef(e.key)}))))),T&&b("div",{class:"fc-liquid fc-border-t fc-filler"})))),Boolean(m)&&b(Ro,{canvasWidth:E,scrollerRef:this.footScrollerRef,scrollbarWidthRef:this.handleBottomScrollbarWidth}))))}componentDidMount(){this.initScrollers(),this.updateSlatHeight()}componentDidUpdate(){this.updateScrollers(),this.updateSlatHeight()}componentWillUnmount(){this.destroyScrollers()}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&ci(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}initScrollers(){const e=Vs(this.context.pluginHooks);this.dayScroller=new e(!0),this.timeScroller=new e,ci(this.props.dayScrollerRef,this.dayScroller),ci(this.props.timeScrollerRef,this.timeScroller),this.updateScrollers()}updateScrollers(){this.dayScroller.handleChildren([this.headerScrollerRef.current,this.allDayScrollerRef.current,this.mainScrollerRef.current,this.footScrollerRef.current]),this.timeScroller.handleChildren([this.axisScrollerRef.current,this.mainScrollerRef.current])}destroyScrollers(){ci(this.props.dayScrollerRef,null),ci(this.props.timeScrollerRef,null)}}class xc extends li{constructor(){super(...arguments),this.headerLabelInnerWidthRefMap=new Gs(()=>{Mr(this.handleAxisInnerWidths)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,Mr(this.handleAxisInnerWidths)},this.slatLabelInnerWidthRefMap=new Gs(()=>{Mr(this.handleAxisInnerWidths)}),this.slatLabelInnerHeightRefMap=new Gs(()=>{Mr(this.handleSlatInnerHeights)}),this.slatInnerMainHeightRefMap=new Gs(()=>{Mr(this.handleSlatInnerHeights)}),this.handleClientWidth=e=>{this.setState({clientWidth:e})},this.handleClientHeight=e=>{this.setState({clientHeight:e})},this.handleEndScrollbarWidth=e=>{this.setState({endScrollbarWidth:e})},this.handleAxisInnerWidths=()=>{const e=this.headerLabelInnerWidthRefMap.current,t=this.slatLabelInnerWidthRefMap.current;let n=this.allDayLabelInnerWidth||0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.axisWidth!==n&&this.setState({axisWidth:n})},this.handleSlatInnerHeights=()=>{const e=this.slatLabelInnerHeightRefMap.current,t=this.slatInnerMainHeightRefMap.current;let n=0;for(const t of e.values())n=Math.max(n,t);for(const e of t.values())n=Math.max(n,e);this.state.slatInnerHeight!==n&&this.setState({slatInnerHeight:n})}}render(){const{props:e,state:t,context:n,slatLabelInnerWidthRefMap:r,slatLabelInnerHeightRefMap:i,slatInnerMainHeightRefMap:s,headerLabelInnerWidthRefMap:o}=this,{nowDate:a,forPrint:l}=e,{axisWidth:c}=t,{options:d}=n,u=!l&&!Us(d),h=!l&&zs(d),f=e.slatMetas.length,[g,p]=Kl(u&&d.expandRows,f,t.slatInnerHeight,t.clientHeight);this.slatHeight=g;const m=(g||0)*f,v=u&&!d.expandRows&&null!=t.clientHeight&&t.clientHeight>m,y=l&&!gc,S=l&&gc,E=y?m:void 0,w=n.isRtl?{marginRight:c}:{marginLeft:c};return b(D,null,d.dayHeaders&&b("div",{className:Bn("fc-timegrid-header fc-flex-col fc-border-b",h&&"fc-table-header-sticky")},e.headerTiers.map((n,r)=>b("div",{key:r,className:Bn("fc-flex-row",r&&"fc-border-t")},r===e.headerTiers.length-1?b(Rc,{dateProfile:e.dateProfile,innerHeightRef:o.createRef(r),width:c,isLiquid:!1}):b(_c,{width:c,isLiquid:!1}),b(Ol,Object.assign({},n,{className:"fc-border-s fc-liquid"})),Boolean(t.endScrollbarWidth)&&b("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}})))),d.allDaySlot&&b(D,null,b("div",{className:"fc-timegrid-allday fc-flex-col"},b("div",{className:"fc-flex-row"},b(ql,{width:c,innerWidthRef:this.handleAllDayLabelInnerWidth}),b(Xl,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:l,isHitComboAllowed:e.isHitComboAllowed,className:"fc-border-s fc-liquid",isCompact:Il(t.clientWidth,1,!0,l,d)[1],fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows}),Boolean(t.endScrollbarWidth)&&b("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}}))),b("div",{className:"fc-rowdivider"})),b(bs,{vertical:u,className:Bn("fc-timegrid-body fc-flex-col",u&&"fc-liquid"),ref:e.timeScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight,endScrollbarWidthRef:this.handleEndScrollbarWidth},b("div",{className:"fc-flex-col fc-grow fc-rel",style:{height:E}},b(vc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:f,forPrint:l,isHitComboAllowed:e.isHitComboAllowed,className:Bn("fc-border-s",!S&&"fc-fill"),style:w,fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,slatHeight:g}),!S&&b(D,null,b("div",{className:Bn("fc-timegrid-slots fc-flex-col",u&&d.expandRows&&"fc-grow",y?"fc-fill-x":"fc-rel")},e.slatMetas.map((e,t)=>b("div",{key:e.key,className:Bn(...nc(e),t&&"fc-border-t",p&&"fc-liquid"),style:{height:p?"":g}},b(Ec,Object.assign({},e,{innerWidthRef:r.createRef(e.key),innerHeightRef:i.createRef(e.key),width:c})),b(wc,Object.assign({},e,{borderStart:!0,innerHeightRef:s.createRef(e.key)}))))),v&&b("div",{class:"fc-liquid fc-border-t fc-filler"}),d.nowIndicator&&wr(e.dateProfile.currentRange,a)&&b(bc,{nowDate:a,dateProfile:e.dateProfile,totalHeight:null!=g?g*f:void 0})))))}componentDidMount(){this.updateSlatHeight()}componentDidUpdate(){this.updateSlatHeight()}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&ci(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}}class Tc extends li{constructor(){super(...arguments),this.buildSlatMetas=en(Yl),this.dayScrollerRef={current:null},this.timeScrollerRef={current:null},this.scrollState={},this.handleSlatHeight=e=>{this.slatHeight=e,Mr(this.applyTimeScroll)},this.handleTimeScrollRequest=e=>{this.scrollState.time=e,this.scrollState.y=void 0,this.applyTimeScroll()},this.handleTimeScrollEnd=()=>{this.props.forPrint||(this.scrollState.y=this.timeScrollerRef.current.y,this.scrollState.time=void 0)},this.applyTimeScroll=()=>{const e=this.timeScrollerRef.current,{slatHeight:t,scrollState:n}=this;let{y:r,time:i}=n;null==r&&i&&null!=t&&e&&(r=tc(i,this.props.dateProfile)*(t*this.currentSlatCnt)+1,r&&r++,n.y=r),null!=r&&e.scrollTo({y:r})}}render(){const{props:e,context:t}=this,{dateProfile:n}=e,{options:r,dateEnv:i}=t,{dayMinWidth:s}=r,o=this.buildSlatMetas(n.slotMinTime,n.slotMaxTime,r.slotLabelInterval,r.slotDuration,i);this.currentSlatCnt=o.length;const a=Object.assign(Object.assign({dateProfile:n,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatMetas:o,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,headerTiers:e.headerTiers,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize},function(e){let{dayMaxEvents:t,dayMaxEventRows:n}=e;!0!==t&&!0!==n||(t=void 0,n=5);return{dayMaxEvents:t,dayMaxEventRows:n}}(r)),{fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,timeScrollerRef:this.timeScrollerRef,timeScrollState:this.scrollState,slatHeightRef:this.handleSlatHeight});return b(bo,{className:Bn(e.className,"fc-border",!e.forPrint&&"fc-flex-col"),viewSpec:t.viewSpec},s?b(Cc,Object.assign({},a,{dayMinWidth:s,dayScrollerRef:this.dayScrollerRef})):b(xc,Object.assign({},a)))}componentDidMount(){this.resetScroll(),this.context.emitter.on("_timeScrollRequest",this.handleTimeScrollRequest),this.timeScrollerRef.current.addScrollEndListener(this.handleTimeScrollEnd)}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset?this.resetScroll():e.forPrint&&!this.props.forPrint&&this.applyTimeScroll()}componentWillUnmount(){this.context.emitter.off("_timeScrollRequest",this.handleTimeScrollRequest),this.timeScrollerRef.current.removeScrollEndListener(this.handleTimeScrollEnd)}resetScroll(){this.handleTimeScrollRequest(this.context.options.scrollTime);const e=this.dayScrollerRef.current;e&&e.scrollTo({x:0})}}Be('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:flex;flex-direction:column}.fc-v-event.fc-event-mirror{z-index:3}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-inner{color:var(--fc-event-text-color);display:flex;flex-direction:column;flex-grow:1;min-height:0}.fc-v-event .fc-event-time{flex-shrink:0;white-space:nowrap}.fc-v-event .fc-event-time,.fc-v-event .fc-event-title{overflow:hidden}.fc-v-event .fc-event-title-outer{display:flex;flex-direction:column;flex-grow:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;position:sticky;top:0}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-timegrid-slots{z-index:1}.fc-timegrid-slot-minor{border-style:dotted}.fc-timegrid-axis{align-items:flex-end}.fc-timegrid-axis,.fc-timegrid-axis-inner{display:flex;flex-direction:column;justify-content:center}.fc-timegrid-axis-inner{min-height:1.5em}.fc-timegrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc-timegrid-day-events{z-index:2}.fc-direction-ltr .fc-timegrid-day-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-day-events{margin:0 2px 0 2.5%}.fc-timegrid-day-events.fc-timegrid-day-events-simple{margin:4px}.fc-timegrid-event{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event-inset,.fc-timegrid-event.fc-event-mirror{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event.fc-event-end{margin-bottom:1px}.fc-timegrid-event .fc-event-inner{padding:1px 1px 0}.fc-timegrid-event-short .fc-event-inner{flex-direction:row;overflow:hidden}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title-outer{flex-basis:0;flex-grow:1;min-height:0;min-width:0}.fc-timegrid-event-short .fc-event-title,.fc-timegrid-more-link{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);border-radius:3px;box-shadow:0 0 0 1px var(--fc-page-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;z-index:9999}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc-timegrid-more-link-inner{padding:3px 2px}.fc-timegrid-now-indicator-container{bottom:0;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;z-index:4}.fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-bottom:5px solid transparent;border-left-style:solid;border-left-width:6px;border-right-style:solid;border-right-width:6px;border-top:5px solid transparent;height:0;margin-top:-5px;position:absolute;width:0}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-right:0;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-left:0;right:0}.fc-timegrid-now-indicator-line{border-top:1px solid var(--fc-now-indicator-color);left:0;position:absolute;right:0}');var Mc=Oo({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends di{constructor(){super(...arguments),this.createDayHeaderFormatter=en(_l),this.buildTimeColsModel=en(Jl),this.buildDayRanges=en($l),this.buildDateRowConfigs=en(rl),this.splitFgEventSegs=en(Vl),this.splitBgEventSegs=en(Vl),this.splitBusinessHourSegs=en(Vl),this.splitNowIndicatorSegs=en(Vl),this.splitDateSelectionSegs=en(Vl),this.splitEventDrag=en(Gl),this.splitEventResize=en(Gl),this.allDaySplitter=new zl,this.dayTableSlicer=new el,this.dayTimeColsSlicer=new Fl}render(){const{props:e,context:t}=this,{dateProfile:n}=e,{options:r,dateProfileGenerator:i}=t,s=this.buildTimeColsModel(n,i),o=this.buildDayRanges(s,n,t.dateEnv),a=this.allDaySplitter.splitProps(e),l=this.dayTableSlicer.sliceProps(a.allDay,n,r.nextDayThreshold,t,s),c=this.dayTimeColsSlicer.sliceProps(a.timed,n,null,t,o),d=this.createDayHeaderFormatter(t.options.dayHeaderFormat,!0,s.colCnt);return b(Qs,{unit:r.nowIndicator?"minute":"day"},(i,a)=>{const u=s.cellRows[0].length,h=r.nowIndicator&&this.dayTimeColsSlicer.sliceNowDate(i,n,r.nextDayThreshold,t,o),f=this.splitFgEventSegs(c.fgEventSegs,u),g=this.splitBgEventSegs(c.bgEventSegs,u),p=this.splitBusinessHourSegs(c.businessHourSegs,u),m=this.splitNowIndicatorSegs(h,u),v=this.splitDateSelectionSegs(c.dateSelectionSegs,u),y=this.splitEventDrag(c.eventDrag,u),S=this.splitEventResize(c.eventResize,u),E=this.buildDateRowConfigs(s.headerDates,!0,e.dateProfile,a,d,t);return b(Tc,{dateProfile:n,nowDate:i,todayRange:a,cells:s.cellRows[0],forPrint:e.forPrint,className:"fc-timegrid",headerTiers:E,fgEventSegs:l.fgEventSegs,bgEventSegs:l.bgEventSegs,businessHourSegs:l.businessHourSegs,dateSelectionSegs:l.dateSelectionSegs,eventDrag:l.eventDrag,eventResize:l.eventResize,fgEventSegsByCol:f,bgEventSegsByCol:g,businessHourSegsByCol:p,nowIndicatorSegsByCol:m,dateSelectionSegsByCol:v,eventDragByCol:y,eventResizeByCol:S,eventSelection:e.eventSelection})})}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class kc extends li{render(){let{dateEnv:e,options:t,viewApi:n}=this.context,{dayDate:r,todayRange:i}=this.props,s=!this.props.forPrint&&zs(t),o=Ar(r,i),a=t.listDayFormat?e.format(r,t.listDayFormat):"",l=t.listDaySideFormat?e.format(r,t.listDaySideFormat):"",c=Object.assign({date:e.toDate(r),view:n,text:a,sideText:l,navLinkAttrs:Fr(this.context,r),sideNavLinkAttrs:Fr(this.context,r,"day",!1)},o);return b("div",{className:Bn("fc-list-day-outer",s&&"fc-list-day-outer-sticky")},b($s,{tag:"div",className:Bn("fc-list-day",Rr(o)),attrs:{"data-date":Xt(r)},renderProps:c,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:Ic,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount}))}}function Ic(e){return b(D,null,e.text&&b("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&b("a",Object.assign({className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const Nc=mn({hour:"numeric",minute:"2-digit",meridiem:"short"});class Oc extends li{constructor(){super(...arguments),this.handleTitleEl=e=>{this.disconnectTitleWidth&&this.disconnectTitleWidth(),e&&(this.disconnectTitleWidth=jr(e,e=>{ci(this.props.timeWidthRef,e)}))}}render(){let{props:e,context:t}=this,{eventRange:n}=e,{options:r}=t,i=r.eventTimeFormat||Nc,s=Bi(n,t);return b(to,Object.assign({},e,{tag:s?"a":"div",attrs:s,className:"fc-list-event",defaultGenerator:Hc,eventRange:n,timeText:"",disableDragging:!0,disableResizing:!0}),(r,s)=>b(D,null,b("div",{className:"fc-list-event-time-outer",style:{width:e.timeOuterWidth}},this.buildTimeContent(n,e.slicedStart,e.slicedEnd,e.isStart,e.isEnd,i,t)),b("div",{className:"fc-list-event-dot-outer"},b("span",{className:"fc-list-event-dot",style:{borderColor:s.borderColor||s.backgroundColor}})),b(r,{tag:"div",className:"fc-list-event-title"})))}buildTimeContent(e,t,n,r,i,s,o){let{options:a}=o;if(!1!==a.displayEventTime){if(e.def.allDay||!r&&!i){let e={text:o.options.allDayText,view:o.viewApi};return b($s,{tag:"div",className:"fc-list-event-time",renderProps:e,elRef:this.handleTitleEl,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:Pc,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return b("div",{className:"fc-list-event-time",ref:this.handleTitleEl},Ni(s,e,t,n,r,i,o))}return null}componentWillUnmount(){ci(this.props.timeWidthRef,null)}}function Hc(e){return e.event.title}function Pc(e){return e.text}class Bc extends li{constructor(){super(...arguments),this.sortEventSegs=en(Mi),this.timeWidthRefMap=new Gs(()=>{Mr(this.handleTimeWidths)}),this.handleTimeWidths=()=>{const e=this.timeWidthRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);ci(this.props.timeWidthRef,t)}}render(){const{props:e,context:t,timeWidthRefMap:n}=this,{nowDate:r,todayRange:i}=e,{options:s}=t,o=this.sortEventSegs(e.segs,s.eventOrder);return b("div",{className:"fc-list-day-and-events"},b(kc,{dayDate:e.dayDate,todayRange:i,forPrint:e.forPrint}),o.map(t=>{const s=wi(t);return b(Oc,Object.assign({key:s,eventRange:t.eventRange,slicedStart:t.slicedStart,slicedEnd:t.slicedEnd,isStart:t.isStart,isEnd:t.isEnd,timeWidthRef:n.createRef(s),timeOuterWidth:e.timeOuterWidth,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1},Oi(t.eventRange,i,r)))}))}componentWillUnmount(){ci(this.props.timeWidthRef,null)}}function Wc(e){return e.text}function jc(e){let t=Lt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:Nt(t,1)}),t=Nt(t,1);return{dayDates:r,dayRanges:i}}Be(":root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-list-day,.fc-list-event-dot-outer,.fc-list-event-time,.fc-list-event-title{padding:8px 14px}.fc-direction-ltr .fc-list-event-dot-outer{padding-right:0}.fc-direction-rtl .fc-list-event-dot-outer{padding-left:0}.fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc-list-empty-inner{margin:5em 0}.fc-list-day,.fc-list-event:not(.fc-list-day-and-events:last-child .fc-list-event:last-child){border-bottom:1px solid var(--fc-border-color)}.fc-list-day-outer-sticky{background:var(--fc-page-bg-color);position:sticky;top:0}.fc-list-day{background:var(--fc-neutral-bg-color);display:flex;font-weight:700;justify-content:space-between}.fc-list-event{display:flex;flex-direction:row}a.fc-list-event{color:inherit;text-decoration:none}.fc-list-event:hover{background-color:var(--fc-list-event-hover-bg-color)}.fc-list-event-time-outer{display:flex;flex-direction:row}.fc-list-event-dot-outer,.fc-list-event-time{white-space:nowrap}.fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}a.fc-list-event:hover .fc-list-event-title{text-decoration:underline}");function Lc(e){return!1===e?null:mn(e)}var Uc=Oo({name:"@fullcalendar/list",optionRefiners:{listDayFormat:Lc,listDaySideFormat:Lc,noEventsClassNames:Cn,noEventsContent:Cn,noEventsDidMount:Cn,noEventsWillUnmount:Cn},views:{list:{component:class extends di{constructor(){super(...arguments),this.computeDateVars=en(jc),this.eventStoreToSegs=en(this._eventStoreToSegs),this.timeWidthRefMap=new Gs(()=>{Mr(this.handleTimeWidths)}),this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,disableHits:!0}):this.context.unregisterInteractiveComponent(this)},this.handleTimeWidths=()=>{const e=this.timeWidthRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);this.setState({timeOuterWidth:t})}}render(){let{props:e,context:t}=this,{options:n}=t,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i),o=!e.forPrint&&!Us(n);return b(bo,{elRef:this.setRootEl,className:"fc-list fc-flex-col fc-border",viewSpec:t.viewSpec},b(bs,{vertical:o,className:o?"fc-liquid":""},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return b($s,{tag:"div",className:"fc-list-empty",renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Wc,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>b(e,{tag:"div",className:"fc-list-empty-inner"}))}renderSegList(e,t){let n=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return b(Qs,{unit:"day"},(e,r)=>{const i=[];for(let s=0;s<n.length;s+=1){let o=n[s];if(o){const n=t[s],a=Xt(n);i.push(b(Bc,{key:a,dayDate:n,nowDate:e,todayRange:r,segs:o,forPrint:this.props.forPrint,timeWidthRef:this.timeWidthRefMap.createRef(a),timeOuterWidth:this.state.timeOuterWidth}))}}return b(D,null,i)})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(Ai(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r=e.range,i=[];for(n=0;n<t.length;n+=1){const s=br(r,t[n]);s&&i.push({eventRange:e,slicedStart:s.start,slicedEnd:s.end,isStart:e.isStart&&r.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===s.end.valueOf(),dayIndex:n})}return i}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class zc extends di{constructor(){super(...arguments),this.buildDayTableModel=en(Sl),this.createDayHeaderFormatter=en(_l),this.buildDateRowConfig=en(il),this.slicer=new el}render(){const{props:e,context:t}=this,{dateProfile:n,forPrint:r}=e,{options:i}=t,s=this.buildDayTableModel(n,t.dateProfileGenerator),o=this.slicer.sliceProps(e,n,i.nextDayThreshold,t,s),a=this.createDayHeaderFormatter(i.dayHeaderFormat,!1,s.colCnt),l=this.buildDateRowConfig(s.headerDates,!1,n,e.todayRange,a,t),c=1/i.aspectRatio,d=c/s.rowCnt,u=!r,h=!r||e.hasLateralSiblings;return b("div",{"data-date":e.isoDateStr,className:Bn("fc-multimonth-month",e.hasLateralSiblings&&"fc-break-inside-avoid"),style:{width:e.width}},b("div",{className:"fc-multimonth-header",style:{marginBottom:u?jn(d):void 0}},b("div",{className:"fc-multimonth-title"},t.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),b(Ol,Object.assign({},l,{className:"fc-multimonth-header-row"}))),b("div",{className:Bn("fc-multimonth-body",h&&"fc-rel"),style:{marginTop:u?jn(-d):void 0,paddingBottom:h?jn(c):void 0}},b(Ml,{dateProfile:e.dateProfile,todayRange:e.todayRange,cellRows:s.cellRows,className:h?"fc-fill":"",forPrint:r&&!e.hasLateralSiblings,dayMaxEvents:r?void 0:i.dayMaxEvents,dayMaxEventRows:r&&e.hasLateralSiblings?1:i.dayMaxEventRows,fgEventSegs:o.fgEventSegs,bgEventSegs:o.bgEventSegs,businessHourSegs:o.businessHourSegs,dateSelectionSegs:o.dateSelectionSegs,eventDrag:o.eventDrag,eventResize:o.eventResize,eventSelection:o.eventSelection,visibleWidth:e.visibleWidth})))}}const Fc=ut(1,"month");function Vc(e,t,n,r,i){const{start:s,end:o}=t.currentRange;let a=s;const l=[];for(;a.valueOf()<o.valueOf();){const s=n.add(a,Fc),o={start:e.skipHiddenDays(a),end:e.skipHiddenDays(s,-1,!0)};let c=Ll({currentRange:o,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});c={start:e.skipHiddenDays(c.start),end:e.skipHiddenDays(c.end,-1,!0)};const d=t.activeRange?br(t.activeRange,i?c:o):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:c,activeRange:d,currentRange:o,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),a=s}return l}const Gc=mn({year:"numeric",month:"long"}),Qc=mn({month:"long"});function Yc(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?Gc:Qc)}const qc={multiMonthTitleFormat:mn,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};Be('.fc-media-screen .fc-multimonth-inner{display:flex;flex-direction:row;flex-wrap:wrap}.fc-media-print.fc-direction-ltr .fc-multimonth-inner>*{float:left}.fc-media-print.fc-direction-rtl .fc-multimonth-inner>*{float:right}.fc-media-print .fc-multimonth-inner:after{clear:both;content:"";display:block}.fc-multimonth-multicol .fc-multimonth-month{padding:1.2em}.fc-multimonth-singlecol .fc-multimonth-title{padding:.5em 0}.fc-multimonth-multicol .fc-multimonth-title{padding-bottom:1em}.fc-multimonth-title{font-size:1.2em;font-weight:700;text-align:center}.fc-multimonth-header-row{border-top:1px solid var(--fc-border-color)}.fc-multimonth-body:not(.fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-body),.fc-multimonth-header-row{border-bottom:1px solid var(--fc-border-color)}.fc-multimonth-multicol .fc-multimonth-body,.fc-multimonth-multicol .fc-multimonth-header-row{border-left:1px solid var(--fc-border-color);border-right:1px solid var(--fc-border-color);font-size:.9em;line-height:1}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:sticky;top:0;z-index:2}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-body{position:relative;z-index:1}');var Zc=Oo({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:qc,views:{multiMonth:{component:class extends di{constructor(){super(...arguments),this.splitDateProfileByMonth=en(Vc),this.buildMonthFormat=en(Yc),this.scrollerRef={current:null},this.innerElRef={current:null},this.scrollDate=null,this.updateScroll=()=>{if(null!=this.scrollDate&&null!=this.state.innerWidth){const e=this.scrollerRef.current,t=this.innerElRef.current,n=t.querySelector(`[data-date="${Jt(this.scrollDate)}"]`),r=Math.ceil(n.getBoundingClientRect().top-t.getBoundingClientRect().top);e.scrollTo({y:r})}},this.clearScroll=()=>{this.scrollDate=null}}render(){const{context:e,props:t,state:n}=this,{options:r}=e,i=!t.forPrint&&!Us(r),s=this.splitDateProfileByMonth(e.dateProfileGenerator,t.dateProfile,e.dateEnv,r.fixedWeekCount,r.showNonCurrentDates),o=this.buildMonthFormat(r.multiMonthTitleFormat,s),{multiMonthMinWidth:a,multiMonthMaxColumns:l}=r,{innerWidth:c}=n;let d,u,h,f=!1;return null!=c&&(d=Math.max(1,Math.min(l,Math.floor(c/a))),t.forPrint&&(d=Math.min(d,2)),u=c/d,h=jn(1/d),f=d>1),b(Qs,{unit:"day"},(n,r)=>b(bo,{className:Bn("fc-multimonth fc-border",1===d?"fc-multimonth-singlecol":"fc-multimonth-multicol",!t.forPrint&&"fc-flex-col"),viewSpec:e.viewSpec},b(bs,{vertical:i,className:i?"fc-liquid":"",ref:this.scrollerRef},b("div",{ref:this.innerElRef,className:"fc-multimonth-inner"},s.map(e=>{const n=Jt(e.currentRange.start);return b(zc,Object.assign({},t,{key:n,todayRange:r,isoDateStr:n,titleFormat:o,dateProfile:e,width:h,visibleWidth:u,hasLateralSiblings:f}))})))))}componentDidMount(){this.resetScroll(),this.scrollerRef.current.addScrollEndListener(this.clearScroll),this.disconnectInnerWidth=jr(this.innerElRef.current,e=>{Mr(()=>{this.setState({innerWidth:e})})})}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset?this.resetScroll():this.updateScroll()}componentWillUnmount(){this.scrollerRef.current.removeScrollEndListener(this.clearScroll),this.disconnectInnerWidth()}resetScroll(){this.scrollDate=this.props.dateProfile.currentDate,this.updateScroll()}},dateProfileGeneratorClass:jl,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}});return la.push(Ka,Ul,Mc,Uc,Zc),e.Calendar=class extends Ao{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;ke(()=>{z(b(fs,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r)=>(this.setClassNames(t),this.setHeight(n),b(Js.Provider,{value:this.customContentRenderId},b(Ca,Object.assign({forPrint:r},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,z(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&We(e.getRootNode())}(e),this.el=e,this.renderRunner=new ms(this.handleRenderRequest),new ua({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(){ke(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!Mt(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){dr(this.el,"height",e)}},e.Draggable=class{constructor(e,t={}){this.handlePointerDown=e=>{let{dragging:t}=this,{minDistance:n,longPressDelay:r}=this.settings;t.minDistance=null!=n?n:e.isTouch?0:yn.eventDragMinDistance,t.delay=e.isTouch?null!=r?r:yn.longPressDelay:0},this.handleDragStart=e=>{e.isTouch&&this.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&this.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;let n=this.dragging=new za(e);n.touchScrollAllowed=!1,null!=t.itemSelector&&(n.pointer.selector=t.itemSelector),null!=t.appendTo&&(n.mirror.parentNode=t.appendTo),n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragstart",this.handleDragStart),new Ja(n,t.eventData)}destroy(){this.dragging.destroy()}},e.Internal=_o,e.JsonRequestError=js,e.Preact=Co,e.ThirdPartyDraggable=class{constructor(e,t){let n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};let r=this.dragging=new $a(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new Ja(r,t.eventData).hitDragging.disablePointCheck=!0}destroy(){this.dragging.destroy()}},e.createPlugin=Oo,e.formatDate=function(e,t={}){let n=Ma(t),r=mn(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatRange=function(e,t,n){let r=Ma("object"==typeof n&&n?n:{}),i=mn(n),s=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return s&&o?r.formatRange(s.marker,o.marker,i,{forcedStartTzo:s.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:yn.defaultRangeSeparator}):""},e.globalLocales=xo,e.globalPlugins=la,e.sliceEvents=function(e,t){return Ai(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="7.0.0-beta.3",Object.defineProperty(e,"__esModule",{value:!0}),e}({});