fullcalendar 7.0.0-beta.4 → 7.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/{index.cjs → cjs/index.cjs} +14 -9
- package/{index.d.ts → esm/index.d.ts} +1 -0
- package/esm/index.js +12 -0
- package/{index.global.js → global.js} +7853 -7267
- package/global.min.js +6 -0
- package/package.json +27 -20
- package/skeleton.css +477 -0
- package/skeleton.min.css +1 -0
- package/skeleton.styles.js +30 -0
- package/index.global.min.js +0 -6
- package/index.js +0 -10
package/index.global.min.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
FullCalendar Standard Bundle v7.0.0-beta.4
|
|
3
|
-
Docs & License: https://fullcalendar.io/docs/initialize-globals
|
|
4
|
-
(c) 2024 Adam Shaw
|
|
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 b(e){var t=e.parentNode;t&&t.removeChild(e)}function y(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 w(e){return e.children}function D(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,b=r&&r.__k||g,y=t.length;for(n.__d=l,T(n,t,b),l=n.__d,u=0;u<y;u++)null!=(p=n.__k[u])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?f:b[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(w,{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,b,y,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?y=(h=t.__c=r.__c).__=h.__E:(E?t.__c=h=new I(S,R):(t.__c=h=new D(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,b)}))}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&&(b=h.getSnapshotBeforeUpdate(g,p)),x(e,m(k=null!=u&&u.type===w&&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),y&&(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,y,S=r.props,E=n.props,w=n.type;if("svg"===w?s="http://www.w3.org/2000/svg":"math"===w?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==!!w&&(w?p.localName===w:3===p.nodeType)){e=p,o[d]=null;break}if(null==e){if(null===w)return document.createTextNode(E);e=document.createElementNS(s,w,E.is&&E),o=null,l=!1}if(null===w)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?y=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"===w?"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]&&b(o[d]);l||(d="value",void 0!==v&&(v!==e[d]||"progress"===w&&!v||"option"===w&&v!==S[d])&&O(e,d,v,S[d],s),d="checked",void 0!==y&&y!==e[d]&&O(e,d,y,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||b(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=y(w,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},D.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))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},D.prototype.render=w,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 D).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 D).__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&&y(w,null,e.fallback);return i&&(i.__u&=-33),[y(w,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(y(ge,{context:t.context},e.__v),t.l)}function me(e,t){var n=y(pe,{__v:e,i:t});return n.containerInfo=t,n}(he.prototype=new D).__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,be=/^(?: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]/,ye=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Se=/[A-Z0-9]/g,Ee="undefined"!=typeof document,we=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};D.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(D.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var De=n.event;function Ae(){}function Re(){return this.cancelBubble}function _e(){return this.defaultPrevented}n.event=function(e){return De&&(e=De(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||we(t.type)?"onfocus"===o?i="onfocusin":"onblur"===o?i="onfocusout":ye.test(i)?i=o:-1===n.indexOf("-")&&be.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(y(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 D{render(){return y("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);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 [data-navlink]{cursor:pointer}.fc [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;justify-content:space-between}.fc-toolbar,.fc-toolbar-section{display:flex;flex-direction:row;gap:.75em}.fc-toolbar-section{flex-shrink:0}.fc-toolbar-title{font-size:1.75em;font-weight:700;white-space:nowrap}');class Ue{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 ze(e){e.preventDefault()}function Fe(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)}}const Ve=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ge(e,t){let n=r=>{t(r),Ve.forEach(t=>{e.removeEventListener(t,n)})};Ve.forEach(t=>{e.addEventListener(t,n)})}function Qe(e){return Object.assign({onClick:e},Ye(e))}function Ye(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let qe=0;function Ze(){return qe+=1,String(qe)}function Xe(){document.body.classList.add("fc-not-allowed")}function Je(){document.body.classList.remove("fc-not-allowed")}function $e(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",ze)}function Ke(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",ze)}function et(e){e.addEventListener("contextmenu",ze)}function tt(e){e.removeEventListener("contextmenu",ze)}function nt(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 rt(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=it(e,t,n[r]),i)return i;return 0}function it(e,t,n){return n.func?n.func(e,t):st(e[n.field],t[n.field])*(n.order||1)}function st(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 ot(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function at(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function lt(e,t){return e-t}function ct(e){return e%1==0}const dt=["years","months","days","milliseconds"],ut=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ht(e,t){return"string"==typeof e?function(e){let t=ut.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?ft(e):"number"==typeof e?ft({[t||"milliseconds"]:e}):null}function ft(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 gt(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function pt(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function mt(e){return vt(e)/864e5}function vt(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function bt(e,t){let n=null;for(let r=0;r<dt.length;r+=1){let i=dt[r];if(t[i]){let r=e[i]/t[i];if(!ct(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}}function St(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 Et=["sun","mon","tue","wed","thu","fri","sat"];function wt(e,t){let n=Ht(e);return n[2]+=7*t,Pt(n)}function Dt(e,t){let n=Ht(e);return n[2]+=t,Pt(n)}function At(e,t){let n=Ht(e);return n[6]+=t,Pt(n)}function Rt(e,t){return _t(e,t)/7}function _t(e,t){return(t.valueOf()-e.valueOf())/864e5}function Ct(e,t){let n=Mt(e),r=Mt(t);return{years:0,months:0,days:Math.round(_t(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function xt(e,t){let n=Tt(e,t);return null!==n&&n%7==0?n/7:null}function Tt(e,t){return Wt(e)===Wt(t)?Math.round(_t(e,t)):null}function Mt(e){return Pt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function kt(e,t,n,r){let i=Pt([t,0,1+It(t,n,r)]),s=Mt(e),o=Math.round(_t(i,s));return Math.floor(o/7)+1}function It(e,t,n){let r=7+t-n;return-((7+Pt([e,0,r]).getUTCDay()-t)%7)+r-1}function Nt(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Ot(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 Ht(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Pt(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Bt(e){return!isNaN(e.valueOf())}function Wt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function jt(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",Ft(t,!0)))),r}function Lt(e){return e.toISOString().replace(/T.*$/,"")}function Ut(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function zt(e){return ot(e.getUTCHours(),2)+":"+ot(e.getUTCMinutes(),2)+":"+ot(e.getUTCSeconds(),2)}function Ft(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+ot(i,2)}:${ot(s,2)}`:`GMT${n}${i}${s?":"+ot(s,2):""}`}function Vt(e,t,n){let r,i;return function(...s){if(r){if(!St(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 Gt(e,t,n){let r,i;return s=>{if(r){if(!An(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 Qt={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Yt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},qt=/\s*([ap])\.?m\.?/i,Zt=/,/g,Xt=/\s+/g,Jt=/\u200e/g,$t=/UTC|GMT/;class Kt{constructor(e){let t={},n={},r=0;for(let i in e)i in Qt?(n[i]=e[i],r=Math.max(Qt[i],r)):(t[i]=e[i],i in Yt&&(r=Math.max(Yt[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Vt(en)}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(Wt(e)!==Wt(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=en(function(e,t){let n={};for(let r in e)(!(r in Yt)||Yt[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 en(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>Ft(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(Jt,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace($t,()=>(n=!0,t)),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Ft(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Zt,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(qt,"").trim():"narrow"===r.meridiem?e=e.replace(qt,(e,t)=>t.toLocaleLowerCase()):"short"===r.meridiem?e=e.replace(qt,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===r.meridiem&&(e=e.replace(qt,e=>e.toLocaleLowerCase()));return e=(e=e.replace(Xt," ")).trim()}(o.format(a),s,e,t,n)}}(e,t,n)}function tn(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 nn(e,t,n,r){let i=tn(e,n.calendarSystem);return{date:i,start:i,end:t?tn(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class rn{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,nn(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,nn(e,t,n,r))}}class sn{constructor(e){this.func=e}format(e,t,n){return this.func(nn(e,null,t,n))}formatRange(e,t,n,r){return this.func(nn(e,t,n,r))}}function on(e){return"object"==typeof e&&e?new Kt(e):"string"==typeof e?new rn(e):"function"==typeof e?new sn(e):null}const an={navLinkDayClick:vn,navLinkWeekClick:vn,duration:ht,bootstrapFontAwesome:vn,buttonIcons:vn,customButtons:vn,defaultAllDayEventDuration:ht,defaultTimedEventDuration:ht,nextDayThreshold:ht,scrollTime:ht,scrollTimeReset:Boolean,slotMinTime:ht,slotMaxTime:ht,dayPopoverFormat:on,slotDuration:ht,snapDuration:ht,headerToolbar:vn,footerToolbar:vn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:on,dayHeaderClassNames:vn,dayHeaderContent:vn,dayHeaderDidMount:vn,dayHeaderWillUnmount:vn,dayCellClassNames:vn,dayCellContent:vn,dayCellDidMount:vn,dayCellWillUnmount:vn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:vn,weekNumbers:Boolean,weekNumberClassNames:vn,weekNumberContent:vn,weekNumberDidMount:vn,weekNumberWillUnmount:vn,editable:Boolean,viewClassNames:vn,viewDidMount:vn,viewWillUnmount:vn,nowIndicator:Boolean,nowIndicatorClassNames:vn,nowIndicatorContent:vn,nowIndicatorDidMount:vn,nowIndicatorWillUnmount:vn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:vn,locale:vn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:vn,eventOrder:nt,eventOrderStrict:Boolean,eventSlicing:Boolean,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:vn,contentHeight:vn,direction:String,weekNumberFormat:on,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:vn,initialDate:vn,now:vn,eventDataTransform:vn,stickyHeaderDates:vn,stickyFooterScrollbar:vn,viewHeight:vn,defaultAllDay:Boolean,eventSourceFailure:vn,eventSourceSuccess:vn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:vn,eventConstraint:vn,eventAllow:vn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:vn,eventContent:vn,eventDidMount:vn,eventWillUnmount:vn,selectConstraint:vn,selectOverlap:vn,selectAllow:vn,droppable:Boolean,unselectCancel:String,slotLabelFormat:vn,slotLaneClassNames:vn,slotLaneContent:vn,slotLaneDidMount:vn,slotLaneWillUnmount:vn,slotLabelClassNames:vn,slotLabelContent:vn,slotLabelDidMount:vn,slotLabelWillUnmount:vn,dayMaxEvents:vn,dayMaxEventRows:vn,dayMinWidth:Number,slotLabelInterval:ht,allDayText:String,allDayClassNames:vn,allDayContent:vn,allDayDidMount:vn,allDayWillUnmount:vn,timedText:String,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:on,rerenderDelay:Number,moreLinkText:vn,moreLinkHint:vn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:vn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ht,hiddenDays:vn,fixedWeekCount:Boolean,validRange:vn,visibleRange:vn,titleFormat:vn,eventInteractive:Boolean,noEventsText:String,viewHint:vn,viewChangeHint:String,navLinkHint:vn,closeHint:String,eventsHint:String,headingLevel:Number,moreLinkClick:vn,moreLinkClassNames:vn,moreLinkContent:vn,moreLinkDidMount:vn,moreLinkWillUnmount:vn,monthStartFormat:on,handleCustomRendering:vn,customRenderingMetaMap:vn,customRenderingReplaces:Boolean},ln={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"},headingLevel:2},cn={datesSet:vn,eventsSet:vn,eventAdd:vn,eventChange:vn,eventRemove:vn,eventClick:vn,eventMouseEnter:vn,eventMouseLeave:vn,select:vn,unselect:vn,loading:vn,_unmount:vn,_beforeprint:vn,_afterprint:vn,_noEventDrop:vn,_noEventResize:vn,_timeScrollRequest:vn},dn={buttonText:vn,buttonHints:vn,views:vn,plugins:vn,initialEvents:vn,events:vn,eventSources:vn},un={headerToolbar:hn,footerToolbar:hn,buttonText:hn,buttonHints:hn,buttonIcons:hn,dateIncrement:hn,plugins:fn,events:fn,eventSources:fn,resources:fn};function hn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?An(e,t):e===t}function fn(e,t){return Array.isArray(e)&&Array.isArray(t)?St(e,t):e===t}const gn={type:String,component:vn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:vn,usesMinMaxTime:Boolean,classNames:vn,content:vn,didMount:vn,willUnmount:vn};function pn(e){return yn(e,un)}function mn(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 vn(e){return e}const{hasOwnProperty:bn}=Object.prototype;function yn(e,t){let n={};if(t)for(let r in t)if(t[r]===hn){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]=yn(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 Sn(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function En(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function wn(e){let t={};for(let n of e)t[n]=!0;return t}function Dn(e){let t=[];for(let n in e)t.push(e[n]);return t}function An(e,t){if(e===t)return!0;for(let n in e)if(bn.call(e,n)&&!(n in t))return!1;for(let n in t)if(bn.call(t,n)&&e[n]!==t[n])return!1;return!0}const Rn=/^on[A-Z]/;function _n(e,t){let n=[];for(let r in e)bn.call(e,r)&&(r in t||n.push(r));for(let r in t)bn.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Cn(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!xn(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function xn(e,t,n){return e===t||!0===n||!!n&&n(e,t)}let Tn={};var Mn,kn;Mn="gregory",kn=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Pt(e)}markerToArray(e){return Ht(e)}},Tn[Mn]=kn;const In=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Nn(e){let t=In.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(Bt(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 On{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 Tn[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()):Pt(Nt(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=Pt(e)),null!==t&&Bt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=Nn(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 Wt(e)===Wt(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 Wt(e)===Wt(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=xt(e,t),null!==n?{unit:"week",value:n}:(n=Tt(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),ct(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),ct(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),ct(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/(mt(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return mt(e)/30}(n):n.days&&(r=Tt(e,t),null!==r)?r/mt(n):(t.valueOf()-e.valueOf())/vt(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Mt(e):"hour"===t?function(e){return Pt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return Pt([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return Pt([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=kt(e,r,t,n);if(i<1)return kt(e,r-1,t,n);let s=kt(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=At(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)),jt(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Pt(Nt(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Pt(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-Ot(Ht(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ht(e)):null}toDate(e,t){return"local"===this.timeZone?Ot(Ht(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Ht(e))*60):new Date(e.valueOf()-(t||0))}}class Hn{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)}`:""}}Hn.prototype.classes={},Hn.prototype.iconClasses={},Hn.prototype.baseIconClass="",Hn.prototype.iconOverridePrefix="";const Pn=Ne({});function Bn(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 Wn extends D{shouldComponentUpdate(e,t){return this.debug&&console.log(_n(e,this.props),_n(t,this.state)),!Cn(this.props,e,this.propEquality)||!Cn(this.state,t,this.stateEquality)}}Wn.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Wn.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Wn.contextType=Pn,Wn.prototype.propEquality={},Wn.prototype.stateEquality={};class jn extends Wn{}function Ln(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Un(...e){return e.filter(Boolean).join(" ")}function zn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}function Fn(e){return 100*e+"%"}jn.contextType=Pn;class Vn extends jn{constructor(){super(...arguments),this.id=Ze(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&Gn(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&Ln(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:s,renderProps:o}=e,a=Qn(e,"",this.handleEl);let l,c,d=!1,u=[];if(null!=r){const e="function"==typeof r?r(o,y):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=!Gn(e.generatorName,n);return d&&s&&(l=s(o)),this.queuedDomNodes=u,this.currentGeneratorMeta=c,y(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(!St(e,t)){for(const e of t)e.remove();for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Gn(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Qn(e,t,n){const r=Object.assign(Object.assign({},e.attrs),{ref:n});return(e.className||t)&&(r.className=Un(t,e.className,r.className)),e.style&&(r.style=e.style),r}Vn.addPropsEquality({renderProps:An,attrs:function(e,t){const n=_n(e,t);for(let e of n)if(!Rn.test(e))return!1;return!0},style:An});const Yn=Ne(0);class qn extends D{constructor(){super(...arguments),this.InnerContent=Zn.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(Ln(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=Qn(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.tag?y(e.tag,n,r):r}return y(Vn,Object.assign(Object.assign({},e),{elRef:this.handleEl,tag:e.tag||"div",className:Un(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 Zn(e,t){const n=e.props;return y(Vn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function Xn(e){return e.text}qn.contextType=Yn;class Jn extends jn{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return y(qn,Object.assign({},e,{tag:e.tag||"div",attrs:e.attrs,className:Un(e.className,$n(e.viewSpec)),renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function $n(e){return`fc-${e.type}-view fc-view`}function Kn(e,t){let n,r,i=[],{start:s}=t;for(e.sort(er),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 er(e,t){return e.start.valueOf()-t.start.valueOf()}function tr(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 nr(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 rr(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function ir(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function sr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function or(e){let t=Math.floor(_t(e.start,e.end))||1,n=Mt(e.start);return{start:n,end:Dt(n,t)}}function ar(e,t=ht(0)){let n=null,r=null;if(e.end){r=Mt(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=vt(t)&&(r=Dt(r,1))}return e.start&&(n=Mt(e.start),r&&r<=n&&(r=Dt(n,1))),{start:n,end:r}}function lr(e,t,n,r){return"year"===r?ht(n.diffWholeYears(e,t),"year"):"month"===r?ht(n.diffWholeMonths(e,t),"month"):Ct(e,t)}function cr(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class dr{constructor(e){this.props=e,this.nowDate=cr(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=tr(a,i.range)),a=this.adjustActiveRange(a),a=tr(a,r),l=rr(i.range,r),sr(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 ht({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(mt(r)<0&&(s=Mt(s),s=t.add(s,r)),mt(i)>1&&(o=Mt(o),o=Dt(o,-1),o=t.add(o,i))),{start:s,end:o}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:a,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&vt(e)<vt(n)?yt(e).unit:r}function c(){i=a.startOf(e,l),s=a.add(i,n),o={start:i,end:s}}return mt(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=Mt(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=Mt(a),a=this.skipHiddenDays(a,t),r=a;do{r=Dt(r,1),this.isHiddenDay(r)||(o+=1)}while(o<n);return{start:a,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?ht(1,t):e||ht({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=ar(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=Dt(e,t);return e}}function ur(e,t,n,r){return{instanceId:Ze(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function hr(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;a=Sn(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=fr(n,o,t,r,i.recurringTypes);for(let t of l){let n=ur(e,{start:t,end:r.add(t,o)});a[n.instanceId]=n}}}return{defs:o,instances:a}}function fr(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(Mt)),s}const gr={id:String,groupId:String,title:String,url:String,interactive:Boolean},pr={start:vn,end:vn,date:vn,allDay:Boolean},mr=Object.assign(Object.assign(Object.assign({},gr),pr),{extendedProps:vn});function vr(e,t,n,r,i=yr(n),s,o){let{refined:a,extra:l}=br(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=Sr(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=Mt(a));s&&(c=s.marker,o&&(c=Mt(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=Sr(a,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,s),r=ur(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 br(e,t,n=yr(t)){return mn(e,n)}function yr(e){return Object.assign(Object.assign(Object.assign({},Cr),mr),e.pluginHooks.eventRefiners)}function Sr(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]:"")||Ze(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Tr(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 Er(e,t,n,r,i,s){let o={defs:{},instances:{}},a=yr(n);for(let l of e){let e=vr(l,t,n,r,a,i,s);e&&wr(e,o)}return o}function wr(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Dr(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=_r(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 Ar(){return{defs:{},instances:{}}}function Rr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function _r(e,t){let n=Sn(e.defs,t),r=Sn(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}const Cr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:vn,overlap:vn,allow:vn,className:zn,classNames:zn,color:String,backgroundColor:String,borderColor:String,textColor:String},xr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Tr(e,t){let n=function(e,t){return Array.isArray(e)?Er(e,null,t,!0):"object"==typeof e&&e?Er([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 Mr(e){return e.reduce(kr,xr)}function kr(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 Ir={id:String,defaultAllDay:Boolean,url:String,format:String,events:vn,eventDataTransform:vn,success:vn,failure:vn};function Nr(e,t,n=Or(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}=mn(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:Ze(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Tr(i,t),extendedProps:s}}return null}function Or(e){return Object.assign(Object.assign(Object.assign({},Cr),Ir),e.pluginHooks.eventSourceRefiners)}function Hr(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=Er(Pr(i,t,s),t,s);return r&&(n=hr(n,r,s)),Rr(jr(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 hr(Er(Pr(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=hr(t,n,r));return Rr(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Rr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?hr(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 jr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return _r(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Pr(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=Br(e,i)),r&&(e=Br(e,r)),e}function Br(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 Wr(e,t,n){let{defs:r}=e,i=En(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 jr(e,t){return _r(e,e=>e.sourceId!==t)}class Lr{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 Ur={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function zr(e,t){return Er(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({},Ur),e)),t}(e),null,t)}function Fr(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Vr(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Vr(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({},bi(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function Gr(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=Mt(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Qr(e,t,n,r){let i=ii(e.defs,t),s={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];s.defs[t]=Yr(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=s.defs[o.defId];s.instances[t]=qr(o,a,i[o.defId],n,r)}return s}function Yr(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 qr(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=or(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:Gr(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Mt(l.range.start),end:Mt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Gr(t.allDay,l.range.start,i)),l}class Zr{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 Xr{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in pr)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=gr[e](t),this.mutate({standardProps:{publicId:t}});else if(e in gr)t=gr[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Cr){let n=Cr[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=lr(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=lr(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=or(e));let t=lr(e.start,o,i,n.granularity);if(r){let o=lr(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=ht(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=ht(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=ht(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=on(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=Dr(i,t.instanceId);s=Qr(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new Xr(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:$r(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=Jr(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 Zr(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 Jr(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function $r(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 Xr(t,a,n))}return s}function Kr(e){return e.eventRange.instance.instanceId}function ei(e,t,n,r){let i={},s={},o={},a=[],l=[],c=ii(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?ar(h,r):h,g=tr(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=Kn(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=Kn(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 ti(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function ni(e,t){e.fcEventRange=t}function ri(e){return e.fcEventRange||e.parentNode.fcEventRange||null}function ii(e,t){return En(e,e=>si(e,t))}function si(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Mr(n)}function oi(e,t){let n=e.map(ai);return n.sort((e,n)=>rt(e,n,t)),n.map(e=>e._seg)}function ai(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 li(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 ci(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 di(e,t,n){let r=e.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&sr(t,r.start)}}function ui(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 hi(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function fi(e,t){let{def:n,instance:r}=e,{url:i}=n;if(i)return["a",{href:i}];let s,{emitter:o,options:a}=t,{eventInteractive:l}=a;return null==l&&(l=n.interactive,null==l&&(l=Boolean(o.hasHandlers("eventClick")))),l&&(s=Ye(e=>{o.trigger("eventClick",{el:e.target,event:new Xr(t,n,r),jsEvent:e,view:t.viewApi})}),s=Object.assign({role:"button"},s)),["div",s]}const gi={start:vn,end:vn,allDay:Boolean};function pi(e,t,n){let r=function(e,t){let{refined:n,extra:r}=mn(e,gi),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 mi(e,t){return nr(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 vi(e,t,n){return Object.assign(Object.assign({},bi(e,t,n)),{timeZone:t.timeZone})}function bi(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 yi(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 Si extends Error{constructor(e,t){super(e),this.response=t}}function Ei(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 Si("Failure parsing JSON",e)});throw new Si("Request failed",e)})}function wi(e,t){return null!=e&&(e===t||Math.abs(e-t)<.01)}const Di=new Map,Ai=new Set;let Ri=!1;function _i(e){Ri?Ai.add(e):e()}function Ci(){for(const e of Ai.values())e(),Ai.delete(e)}function xi(){if(!Ri){Ri=!0;const e=[];for(const[t,n]of Di.entries()){let r,i;n.client?(r=t.clientWidth,i=t.clientHeight):({width:r,height:i}=t.getBoundingClientRect()),Ti(n,r,i)&&e.push(n)}for(const t of e)t.callback(t.width,t.height);Ci(),Ri=!1}}function Ti(e,t,n){let r=!1;return wi(e.width,t)||(e.width=t,r=e.watchWidth),wi(e.height,n)||(e.height=n,r||(r=e.watchHeight)),r}const Mi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ki={capture:!0,passive:!0};const Ii=()=>{};const[Ni,Oi]="undefined"!=typeof ResizeObserver?function(){const e=new ResizeObserver(e=>{Ri=!0;for(let t of e){const e=t.target,n=Di.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());Ti(n,r,i)&&n.callback(r,i)}Ci(),Ri=!1});return[function(t,n,r,i=!0,s=!0){return Di.set(t,{callback:n,client:r,watchWidth:i,watchHeight:s}),e.observe(t,{box:r?void 0:"border-box"}),()=>{Di.delete(t),e.unobserve(t)}},xi]}():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)}]}(xi,100);function i(){r(),xi()}function s(){e.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function o(){e.disconnect()}function a(){t||(t=!0,Di.size&&o())}function l(){t&&(t=!1,Di.size&&s())}const c=Oe.__r||Ii,d=Oe.__c||Ii;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 Di.size||function(){e=new MutationObserver(n),t||s();for(const e of Mi)window.addEventListener(e,n,ki)}(),Di.set(r,{callback:i,client:a,watchWidth:l,watchHeight:c}),n(),()=>{Di.delete(r),Di.size||function(){t||o();for(const e of Mi)window.removeEventListener(e,n,ki)}()}},i]}();function Hi(e,t){return Ni(e,t,!0)}function Pi(e,t){return Ni(e,(e,n)=>t(n),!1,!0)}class Bi extends jn{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0}),ke(()=>{}),Oi(),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 Wi{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function ji(e){return{[e.component.uid]:e}}const Li={},Ui=/(top|left|right|bottom|width|height)$/i;function zi(e,t){for(let n in t)Fi(e,n,t[n])}function Fi(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Ui.test(t)?e.style[t]=n+"px":e.style[t]=n}function Vi(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 Gi=0;function Qi(){return Gi+=1,"fc-dom-"+Gi}function Yi(e){return"auto"===e.height||"auto"===e.viewHeight}function qi(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t=Yi(e)),t}function Zi(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t=Yi(e)),t}function Xi(e){const t=e.scrollerSyncerClass;if(!t)throw new RangeError("Must import @fullcalendar/scrollgrid");return t}class Ji{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){requestAnimationFrame(Oi)}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:cr(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=ht(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),on(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),on(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=pi(n,r.dateEnv,ht({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Fr(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 Xr){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:wr({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof Zr)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=Dn(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=vr(e,n,r,!1);if(i){let e=new Xr(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:wr(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Jr(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 Xr(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new Xr(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return $r(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 Zr(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 Zr(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Zr)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=Nr(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Zr(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=ht(e);t&&this.trigger("_timeScrollRequest",t)}}function $i(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Ki(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 es(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 ts(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function ns(e,t){return{left:e.left-t.left,top:e.top-t.top}}const rs={defs:{},instances:{}};class is{constructor(){this.getKeysForEventDefs=Vt(this._getKeysForEventDefs),this.splitDateSelection=Vt(this._splitDateSpan),this.splitEventStore=Vt(this._splitEventStore),this.splitIndividualUi=Vt(this._splitIndividualUi),this.splitEventDrag=Vt(this._splitInteraction),this.splitEventResize=Vt(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=En(t,(e,t)=>this.eventUiBuilders[t]||Vt(ss));for(let n in t){let c=t[n],d=s[n]||rs,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 En(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]||rs,mutatedEvents:i[r]||rs,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}}function ss(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":Mr(r)};return n&&Object.assign(i,n),i}function os(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!sr(r.activeRange,e)),isOther:Boolean(r&&!sr(r.currentRange,e)),isToday:Boolean(t&&sr(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function as(e){return Un("fc-day",e.isDisabled?"fc-day-disabled":Un("fc-day-"+Et[e.dow],e.isToday&&"fc-day-today",e.isPast&&"fc-day-past",e.isFuture&&"fc-day-future",e.isOther&&"fc-day-other"))}const ls=on({year:"numeric",month:"long",day:"numeric"}),cs=on({week:"long"});function ds(e,t,n="day"){return e.dateEnv.format(t,"week"===n?cs:ls)}function us(e,t,n="day",r=ds(e,t,n),i=!0){const{dateEnv:s,options:o,calendarApi:a}=e,l=s.toDate(t),c=e=>{let r="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof r?r.call(a,s.toDate(t),e):("string"==typeof r&&(n=r),a.zoomTo(t,n))};return Object.assign({role:"link","aria-label":at(o.navLinkHint,[r,l],r),"data-navlink":""},i?Qe(c):{onClick:c})}let hs,fs=null;function gs(){return null===fs&&(fs=function(){let e=document.createElement("div");zi(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}()),fs}function ps(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ms(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=ps(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 gs()&&"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 vs(e,t=!1,n){let r=n?e.getBoundingClientRect():bs(e),i=ms(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 bs(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 ys(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 Ss(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 Es{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 ws extends Es{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 Ds extends Es{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 As extends jn{constructor(){super(...arguments),this.uid=Ze()}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("[data-navlink]")||e.closest(".fc-popover"))}}function Rs(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 _s(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Cs(e){return e.end}function xs(e){return e.reduce(Ms).eventRange.range.start}function Ts(e){return e.reduce(ks).eventRange.range.end}function Ms(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function ks(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class Is{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,Rs(n,e)),n.isSlice=!0,this.splitSeg(t,n.thickness,n)}this.allowSlicing?(this.hiddenSegs.push(Object.assign(Object.assign({},e),Rs(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?(Os(this.placementsByLevel,t.levelIndex,[i]),Os(this.levelCoords,t.levelIndex,t.levelCoord)):Os(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]=Hs(u,e.start,Cs),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]=Hs(i[c],e.end,Cs)),{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 Ns(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({},_s(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:jt(xs(e))},t))}function Os(e,t,n){e.splice(t,0,n)}function Hs(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 Ps{constructor(e,t){this.emitter=new Lr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Bs={},Ws={startTime:ht,duration:ht,create:Boolean,sourceId:String};function js(e){let{refined:t,extra:n}=mn(e,Ws);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}}class Ls{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=Dt(n,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Dt(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{start:r,end:i+1,isStart:t===r,isEnd:n===i}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(_t(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class Us{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 zs{constructor(e){this.el=e,this.emitter=new Lr,this.isScroll=!1,this.isScrollRecent=!1,this.isWheelRecent=!1,this.isMouseDown=!1,this.isTouchDown=!1,this.isMouse=!1,this.isTouch=!1,this.isWheel=!1,this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.getIsUser()),this.isScrollRecent=!0,this.isMouseDown&&(this.isMouse=!0),this.isTouchDown&&(this.isTouch=!0),this.isWheelRecent&&(this.isWheel=!0),this.scrollWaiter.request(500)},this.handleScrollWait=()=>{this.isScrollRecent=!1,this.isTouchDown||this.endScroll()},this.handleWheel=()=>{this.isWheelRecent=!0,this.wheelWaiter.request(500)},this.handleWheelWait=()=>{this.isWheelRecent=!1},this.handleMouseDown=()=>{this.isMouseDown=!0},this.handleMouseUp=()=>{this.isMouseDown=!1},this.handleTouchStart=()=>{this.isTouchDown=!0},this.handleTouchEnd=()=>{this.isTouchDown=!1,this.isScrollRecent||this.endScroll()},this.wheelWaiter=new Ue(this.handleWheelWait),this.scrollWaiter=new Ue(this.handleScrollWait),e.addEventListener("scroll",this.handleScroll),e.addEventListener("wheel",this.handleWheel,{passive:!0}),e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("mouseup",this.handleMouseUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("wheel",this.handleWheel,{passive:!0}),e.removeEventListener("mousedown",this.handleMouseDown),e.removeEventListener("mouseup",this.handleMouseUp),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd)}startScroll(){this.isScroll||(this.isScroll=!0,this.emitter.trigger("scrollStart",this.getIsUser()))}endScroll(){this.isScroll&&(this.scrollWaiter.clear(),this.wheelWaiter.clear(),this.isScroll=!1,this.isWheelRecent=!1,this.emitter.trigger("scrollEnd",this.getIsUser()),this.isMouse=!1,this.isTouch=!1,this.isWheel=!1)}getIsUser(){return this.isWheel||this.isMouse||this.isTouch}}class Fs extends As{constructor(){super(...arguments),this.handleEl=e=>{const{props:t}=this;this.el&&(this.el=null,this.listener.destroy(),this.disconnectSize(),Ln(t.clientWidthRef,null),Ln(t.clientHeightRef,null),Ln(t.endScrollbarWidthRef,null),Ln(t.bottomScrollbarWidthRef,null)),e&&(this.el=e,this.listener=new zs(e),this.disconnectSize=Ni(e,(t,n)=>{const{props:r}=this,i=e.offsetWidth-t,s=e.offsetHeight-n;this.currentClientWidth!==t&&Ln(r.clientWidthRef,this.currentClientWidth=t),this.currentClientHeight!==n&&Ln(r.clientHeightRef,this.currentClientHeight=n),wi(this.currentBottomScrollbarWidth,s)||Ln(r.bottomScrollbarWidthRef,this.currentBottomScrollbarWidth=s),wi(this.currentEndScrollbarWidth,i)||Ln(r.endScrollbarWidthRef,this.currentEndScrollbarWidth=i)},!0))}}render(){const{props:e}=this,t=e.horizontal||e.vertical?"hidden":"";return y("div",{ref:this.handleEl,className:Un(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?Vs(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&&Gs(r,n,e))}addScrollEndListener(e){this.listener.emitter.on("scrollEnd",e)}removeScrollEndListener(e){this.listener.emitter.off("scrollEnd",e)}}function Vs(e,t){const{scrollLeft:n}=e;return t?function(e,t){switch(Ys()){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()){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");return e.remove(),t}())}class qs{constructor(){this.sliceBusinessHours=Vt(this._sliceBusinessHours),this.sliceDateSelection=Vt(this._sliceDateSpan),this.sliceEventStore=Vt(this._sliceEventStore),this.sliceEventDrag=Vt(this._sliceInteraction),this.sliceEventResize=Vt(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:At(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(hr(e,Zs(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=ei(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=ei(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=tr(e.range,o);if(a){let t=function(e,t,n){let r=br({editable:!1},n),i=Sr(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:si(i,t),instance:ur(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:Dt(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:At(n.start,e.slotMinTime.milliseconds),end:At(n.end,e.slotMaxTime.milliseconds-864e5)}}function Xs(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!ir(t.validRange,r[e].range))return!1;return $s({eventDrag:e},n)}function Js(e,t,n){return!!ir(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=ii(a,s.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=En(c,r));let d=(g=e.eventStore,p=s.affectedEvents.instances,{defs:g.defs,instances:Sn(g.instances,e=>!p[e.instanceId])}),u=d.defs,h=d.instances,f=ii(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,b="function"==typeof v?v:null;for(let e in h){let n=h[e];if(rr(g,n.range)){if(!1===f[n.defId].overlap&&s.isEvent)return!1;if(!1===p.overlap)return!1;if(b&&!b(new Xr(t,u[n.defId],n),new Xr(t,m,o)))return!1}}let y=i.eventStore;for(let e of p.allows){let i,s=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),a=y.defs[m.defId],l=y.instances[r];if(i=a?new Xr(t,a,l):new Xr(t,m),!e(Vr(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(rr(l,n.range)){if(!1===c.overlap)return!1;if(u&&!u(new Xr(t,s[n.defId],n),null))return!1}}for(let e of c.allows){let r=Object.assign(Object.assign({},n),a);if(!e(Vr(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(hr(r,t,i)):"string"==typeof e?no(_r(n,t=>t.groupId===e)):"object"==typeof e&&e?no(hr(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(ir(n,t))return!0;return!1}class io{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=Ze(),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 so extends D{constructor(e,t){super(e,t),this.initialNowDate=cr(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=At(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,ht(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:oo(r)},nextState:{nowDate:i,todayRange:oo(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 oo(e){let t=Mt(e);return{start:t,end:Dt(t,1)}}so.contextType=Pn;class ao extends jn{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&ni(e,this.props.eventRange)}}render(){const{props:e,context:t}=this,{options:n}=t,{eventRange:r}=e,{ui:i}=r,s={event:new Xr(t,r.def,r.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&li(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 y(qn,Object.assign({},e,{elRef:this.handleEl,className:Un(e.className,...ui(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&&ni(this.el,this.props.eventRange)}}class lo extends jn{render(){const{props:e,context:t}=this,{eventRange:n}=e,{options:r}=t,i=ci(r.eventTimeFormat||e.defaultTimeFormat,n,e.slicedStart,e.slicedEnd,e.isStart,e.isEnd,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd),[s,o]=fi(n,t);return y(ao,Object.assign({},e,{tag:s,style:{borderColor:n.ui.borderColor,backgroundColor:n.ui.backgroundColor},attrs:o,defaultGenerator:co,timeText:i}),(e,t)=>y(w,null,y(e,{tag:"div",className:"fc-event-inner",style:{color:t.textColor}}),Boolean(t.isStartResizable)&&y("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&y("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function co(e){return y(w,null,e.timeText&&y("div",{className:"fc-event-time"},e.timeText),y("div",{className:"fc-event-title-outer"},y("div",{className:"fc-event-title"},e.event.title||y(w,null," "))))}const uo=e=>y(Pn.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return y(qn,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),ho=on({day:"numeric"});class fo extends jn{constructor(){super(...arguments),this.refineRenderProps=Gt(po)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateMeta:e.dateMeta,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,renderProps:e.renderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return y(qn,Object.assign({},e,{className:Un(e.className,as(r)),attrs:Object.assign(Object.assign(Object.assign({},e.attrs),{"data-date":Lt(e.date)}),r.isToday?{"aria-current":"date"}:{}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function go(e){return Boolean(e.dayCellContent||Gn("dayCellContent",e))}function po(e){let{date:t,dateEnv:n,isMonthStart:r}=e,i=e.showDayNumber?n.format(t,r?e.monthStartFormat:ho):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},e.dateMeta),{isMonthStart:r,dayNumberText:i}),e.renderProps)}class mo extends jn{render(){let{props:e}=this,{eventRange:t}=e;return y(ao,{tag:"div",className:"fc-bg-event",style:{backgroundColor:t.ui.backgroundColor},defaultGenerator:vo,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 vo(e){let{title:t}=e.event;return t&&y("div",{className:"fc-event-title"},e.event.title)}function bo(e){return y("div",{className:"fc-"+e})}const yo=e=>y(Pn.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 y(qn,Object.assign({},e,{renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Xn,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});class So extends jn{constructor(){super(...arguments),this.closeRef={current:null},this.focusStartRef={current:null},this.focusEndRef={current:null},this.titleId=Qi(),this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&Ln(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=Vi(e);this.rootEl.contains(t)||this.handleClose()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleClose()},this.handleClose=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n}=this;return me(y("div",Object.assign({},n.attrs,{id:n.id,role:"dialog","aria-labelledby":this.titleId,className:Un(n.className,"fc-popover",e.getClassName("popover")),ref:this.handleRootEl}),y("div",{tabIndex:0,style:{outline:"none"},ref:this.focusStartRef}),y("div",{className:"fc-popover-header "+e.getClassName("popoverHeader")},y("span",{className:"fc-popover-title",id:this.titleId},n.title),y("span",Object.assign({role:"button","aria-label":t.closeHint,className:"fc-popover-close "+e.getIconClass("close")},Qe(this.handleClose),{ref:this.closeRef}))),y("div",{className:"fc-popover-body "+e.getClassName("popoverContent")},n.children),y("div",{tabIndex:0,style:{outline:"none"},ref:this.focusEndRef})),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.addEventListener("focus",this.handleClose),this.focusEndRef.current.addEventListener("focus",this.handleClose),this.closeRef.current.focus({preventScroll:!0}),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.removeEventListener("focus",this.handleClose),this.focusEndRef.current.removeEventListener("focus",this.handleClose)}updateSize(){let{isRtl:e}=this.context,{alignEl:t,alignParentTop:n}=this.props,{rootEl:r}=this,i=function(e){let t=ys(e),n=e.getBoundingClientRect();for(let e of t){let t=Ki(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();zi(r,{top:o-l.top,left:a-l.left})}}}class Eo extends As{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=os(r,i,null,s),a=t.format(r,e.dayPopoverFormat);return y(fo,{elRef:this.handleRootEl,date:r,dateMeta:o},(t,r,i)=>y(So,{elRef:i.ref,id:n.id,title:a,attrs:i,className:Un(i.className,"fc-more-popover"),parentEl:n.parentEl,alignEl:n.alignEl,alignParentTop:n.alignParentTop,onClose:n.onClose},go(e)&&y(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 wo extends jn{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Qi()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Ln(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=Ao(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new Xr(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.linkEl&&this.linkEl.focus(),this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return y(Pn.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,a=e.hiddenSegs.length,l=Ao(e),c="function"==typeof o?o.call(s,a):`+${a} ${o}`,d=at(i.moreLinkHint,[a],c),u={num:a,shortText:"+"+a,text:c,view:r};return y(w,null,Boolean(a)&&y(qn,{tag:"div",elRef:this.handleLinkEl,className:Un(e.className,"fc-more-link"),style:e.style,attrs:Object.assign(Object.assign(Object.assign({},e.attrs),Qe(this.handleClick)),{title:d,role:"button","aria-haspopup":"dialog","aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:void 0}),renderProps:u,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||Do,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&y(Eo,{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 Do(e){return e.text}function Ao(e){return e.allDayDate?{start:e.allDayDate,end:Dt(e.allDayDate,1)}:{start:xs(e.hiddenSegs),end:Ts(e.hiddenSegs)}}class Ro extends jn{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return y("div",{ref:this.rootElRef,className:"fc-sticky-footer-scrollbar"},y(Fs,{horizontal:!0,ref:e.scrollerRef},y("div",{style:{minWidth:e.canvasWidth}})))}componentDidMount(){this.disconnectHeight=Pi(this.rootElRef.current,e=>{Ln(this.props.scrollbarWidthRef,e)})}componentWillUnmount(){this.disconnectHeight(),Ln(this.props.scrollbarWidthRef,null)}}var _o={__proto__:null,BASE_OPTION_DEFAULTS:ln,BaseComponent:jn,BgEvent:mo,CalendarImpl:Ji,CalendarRoot:Bi,ContentContainer:qn,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:As,DateEnv:On,DateProfileGenerator:dr,DayCellContainer:fo,DaySeriesModel:Ls,DayTableModel:Us,DelayedRunner:Ue,ElementDragging:Ps,ElementScrollController:ws,Emitter:Lr,EventContainer:ao,EventImpl:Xr,Interaction:Wi,MoreLinkContainer:wo,NamedTimeZoneImpl:class{constructor(e){this.timeZoneName=e}},NowIndicatorContainer:uo,NowTimer:so,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 Ss(this.tops||[],e.tops||[])&&Ss(this.bottoms||[],e.bottoms||[])&&Ss(this.lefts||[],e.lefts||[])&&Ss(this.rights||[],e.rights||[])}},RefMap:io,ScrollController:Es,Scroller:Fs,SegHierarchy:Is,Slicer:qs,Splitter:is,StandardEvent:lo,StickyFooterScrollbar:Ro,Theme:Hn,ViewContainer:Jn,ViewContextType:Pn,WeekNumberContainer:yo,WindowScrollController:Ds,addDays:Dt,addDurations:gt,addMs:At,addWeeks:wt,afterSize:_i,allowContextMenu:tt,allowSelection:Ke,applyMutationToEventStore:Qr,applyStyle:zi,asCleanDays:function(e){return e.years||e.months||e.milliseconds?0:e.days},asRoughMinutes:function(e){return vt(e)/6e4},asRoughMs:vt,asRoughSeconds:function(e){return vt(e)/1e3},binarySearch:Hs,buildDateStr:ds,buildElAttrs:Qn,buildEventApis:$r,buildEventRangeKey:hi,buildEventRangeTimeText:ci,buildIsoString:jt,buildNavLinkAttrs:us,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:Mr,compareByFieldSpecs:rt,compareNumbers:lt,compareObjs:Cn,computeEarliestStart:xs,computeEdges:ms,computeInnerRect:vs,computeLatestEnd:Ts,computeRect:bs,computeVisibleDayRange:ar,config:Bs,constrainPoint:es,createDuration:ht,createEmptyEventStore:Ar,createEventInstance:ur,createEventUi:Tr,createFormatter:on,diffDates:lr,diffDayAndTime:Ct,diffDays:_t,diffPoints:ns,diffWeeks:Rt,diffWholeDays:Tt,diffWholeWeeks:xt,disableCursor:Xe,enableCursor:Je,eventTupleToStore:wr,filterHash:Sn,flexibleCompare:st,formatDayString:Lt,formatIsoMonthStr:Ut,formatIsoTimeString:zt,fracToCssDim:Fn,getClippingParents:ys,getCoordRangeEnd:Cs,getDateMeta:os,getDayClassName:as,getDefaultEventEnd:Gr,getElEventRange:ri,getEventKey:Kr,getEventRangeMeta:di,getEventTagAndAttrs:fi,getEventTargetViaRoot:Vi,getIsHeightAuto:Yi,getIsRtlScrollbarOnLeft:gs,getNormalizedScrollX:Vs,getRectCenter:ts,getRelevantEvents:Dr,getScrollbarWidths:function(){return hs||(hs=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=ps(e);return document.body.removeChild(e),t}()),hs},getScrollerSyncerClass:Xi,getSlotClassName:function(e){return Un("fc-slot",e.isDisabled?"fc-slot-disabled":Un("fc-slot-"+Et[e.dow],e.isToday&&"fc-slot-today",e.isPast&&"fc-slot-past",e.isFuture&&"fc-slot-future"))},getStickyFooterScrollbar:Zi,getStickyHeaderDates:qi,getUniqueDomId:Qi,greatestDurationDenominator:yt,groupIntersectingSegs:Ns,guid:Ze,hasBgRendering:ti,hasCustomDayCellContent:go,identity:vn,injectStyles:Be,interactionSettingsStore:Li,interactionSettingsToStore:ji,intersectRanges:tr,intersectRects:Ki,isArraysEqual:St,isDateSelectionValid:Js,isDateSpansEqual:mi,isDimsEqual:wi,isInt:ct,isInteractionValid:Xs,isPropsEqual:An,isPropsValid:Ks,isValidDate:Bt,joinClassNames:Un,mapHash:En,memoize:Vt,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(!St(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(St(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:Gt,mergeEventStores:Rr,multiplyDuration:pt,padStart:ot,parseBusinessHours:zr,parseClassNames:zn,parseDragMeta:js,parseEventDef:Sr,parseFieldSpecs:nt,parseMarker:Nn,pointInsideRect:$i,preventContextMenu:et,preventDefault:ze,preventSelection:$e,rangeContainsMarker:sr,rangeContainsRange:ir,rangesEqual:nr,rangesIntersect:rr,refineEventDef:br,refineProps:mn,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,renderText:Xn,requestJson:Ei,setNormalizedScrollX:Gs,setRef:Ln,sliceEventStore:ei,sortEventSegs:oi,startOfDay:Mt,translateRect:function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},triggerDateSelect:Fr,unpromisify:yi,watchHeight:Pi,watchSize:Ni,watchWidth:Hi,whenTransitionDone:Ge,wholeDivideDurations:bt},Co={__proto__:null,createPortal:me,createContext:Ne,flushSync:ke,preactOptions:Oe,Component:D,Fragment:w,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:y,createRef:E,h:y,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",eventsHint:"Events",allDayText:"all-day",timedText:"timed",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",viewChangeHint:"Change 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=yn([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:Ze(),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&&St(r,t)&&St(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 Hn{}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 En(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 jn||(n=Uo(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Uo(e){return t=>y(Pn.Consumer,null,n=>y(qn,{tag:"div",className:$n(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 En(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=ht(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(ln)||e.type,buttonTitleOverride:u(r)||u(n)||e.overrides.buttonHint,buttonTitleDefault:u(i)||e.defaults.buttonHint||u(ln)}}(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=Or(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=Nr(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,Sn(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?wn(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,Sn(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=Ze();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 Sn(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="rtl"===t.direction,a=[],l=!1;function c(e){let o=function(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,b,y=!1;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),b=n.hint||n.text;else if(h=i[e]){y=!0,f.push(e),p=()=>{s.changeView(e)},(v=h.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;b=at(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";b=at(d[t]||u[t],[c.year||"year","year"],c[e])}else b=t=>at(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:p,buttonIcon:m,buttonText:v,buttonHint:b,isView:y}})),viewsWithButtons:f,hasTitle:g}}(e,t,n,r,i,s);return a.push(...o.viewsWithButtons),l=l||o.hasTitle,o.widgets}return{sectionWidgets:{start:c(e[o?"right":"left"]||e.start||""),center:c(e.center||""),end:c(e[o?"left":"right"]||e.end||"")},viewsWithButtons:a,hasTitle:l}}class sa{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 oa(e,t){let n=Dn(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 aa=[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;yi(e.eventSource.meta.bind(null,vi(e.range,r)),e=>t({rawEvents:e}),n)}}]}),Oo({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:vn,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);Ei(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=tr(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let i=e?wn(e):null,s=Mt(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=Dt(s,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:vn,startTime:ht,endTime:ht,duration:ht,startRecur:vn,endRecur:vn}}),Oo({name:"change-handler",optionChangeHandlers:{events(e,t){oa([e],t)},eventSources:oa}}),Oo({name:"misc",isLoadingFuncs:[e=>Qo(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},vi(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",$r(e,t))}}})];class la{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Ue(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 ca(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,on(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=Tt(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 da{constructor(e){this.computeCurrentViewData=Vt(this._computeCurrentViewData),this.organizeRawLocales=Vt(ko),this.buildLocale=Vt(Io),this.buildPluginHooks=Ho(),this.buildDateEnv=Vt(ua),this.buildTheme=Vt(ha),this.parseToolbars=Vt(ra),this.buildViewSpecs=Vt(zo),this.buildDateProfileGenerator=Gt(fa),this.buildViewApi=Vt(ga),this.buildViewUiProps=Gt(va),this.buildEventUiBySource=Vt(pa,An),this.buildEventUiBases=Vt(ma),this.parseContextBusinessHours=Gt(ya),this.buildTitle=Vt(ca),this.emitter=new Lr,this.actionRunner=new la(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):cr(e.now,t)}(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);sr(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&&sr(d.currentRange,c)||(c=d.currentRange.start);let u=Go(n.eventSources,e,d,l),h=Hr(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)},b=Object.assign(Object.assign({},l),v);for(let t of s.pluginHooks.reducers)Object.assign(v,t(n,e,b));let y=ba(n,l),S=ba(v,l);!y&&S?r.trigger("loading",!0):y&&!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=Wr(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=Wr(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);Sa(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}=pn([ln,e,t]),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],aa),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an),cn),dn),a.listenerRefiners),a.optionRefiners),c={},d=pn([ln,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]||un[e]&&e in h&&un[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 Sa(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=pn([ln,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an),cn),dn),gn),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let e in s)s[e]===l[e]||un[e]&&un[e](s[e],l[e])?a[e]=c[e]:(s[e]===this.currentCalendarOptionsInput[e]||un[e]&&un[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 ua(e,t,n,r,i,s,o,a){let l=Io(t||o.defaultCode,o.map);return new On({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function ha(e,t){return new(t.themeClasses[e.themeSystem]||Bo)(e)}function fa(e){return new(e.dateProfileGeneratorClass||dr)(e)}function ga(e,t,n){return new sa(e,t,n)}function pa(e){return En(e,e=>e.ui)}function ma(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 va(e){let{options:t}=e;return{eventUiSingleBase:Tr({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:Tr({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 ya(e){return zr(e.options.businessHours,e)}function Sa(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class Ea extends jn{render(){let e=this.props.widgetGroups.map(e=>this.renderWidgetGroup(e));return y("div",{className:"fc-toolbar-section fc-toolbar-"+this.props.name},...e)}renderWidgetGroup(e){let{props:t,context:n}=this,{options:r,theme:i}=n,s=[],o=!0,a=!0;for(const t of e){const{buttonName:e,isView:n}=t;"title"===e?o=!1:n||(a=!1)}for(let n of e){let{buttonName:e,buttonClick:l,buttonText:c,buttonIcon:d,buttonHint:u}=n;if("title"===e)s.push(y("div",{role:"heading","aria-level":r.headingLevel,id:t.titleId,className:"fc-toolbar-title"},t.title));else{let n=e===t.activeButton,r=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e;s.push(y("button",Object.assign({type:"button",disabled:r},o&&a?{role:"tab","aria-selected":n}:{"aria-pressed":n},{"aria-label":"function"==typeof u?u(t.navUnit):u,className:Un(`fc-${e}-button`,i.getClassName("button"),n&&i.getClassName("buttonActive")),onClick:l}),c||(d?y("span",{className:d,"aria-hidden":!0}):"")))}}return s.length>1?y("div",{role:o&&a?"tablist":void 0,"aria-label":o&&a?r.viewChangeHint:void 0,className:o?i.getClassName("buttonGroup"):void 0},...s):s[0]}}class wa extends jn{render(){let{model:e,className:t}=this.props,{sectionWidgets:n}=e;return y("div",{className:Un(t,"fc-toolbar")},this.renderSection("start",n.start),this.renderSection("center",n.center),this.renderSection("end",n.end))}renderSection(e,t){let{props:n}=this;return y(Ea,{key:e,name:e,widgetGroups:t,title:n.title,titleId:n.titleId,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})}}class Da extends Wi{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=ri(t);i&&n.isValidSegDownEl(e.target)&&r.emitter.trigger("eventClick",{el:t,event:new Xr(n.context,i.def,i.instance),jsEvent:e,view:r.viewApi})},this.destroy=Fe(e.el,"click",".fc-event",this.handleSegClick)}}class Aa extends Wi{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{ri(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 Fe(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=ri(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new Xr(i,s.def,s.instance),jsEvent:t,view:i.viewApi})}}class Ra extends D{render(){const{props:e}=this;return y("div",{className:Un("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 _a extends Wn{constructor(){super(...arguments),this.buildViewContext=Vt(Bn),this.buildViewPropTransformers=Vt(xa),this.buildToolbarProps=Vt(Ca),this.interactionsStore={},this.viewTitleId=Qi(),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=[Da,Aa];t.disableHits||(r=r.concat(this.props.pluginHooks.componentInteractions));let i=r.map(e=>new e(n));this.interactionsStore[e.uid]=i,Li[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 Li[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,cr(n.options.now,n.dateEnv),n.viewTitle),o=!1;n.forPrint||Yi(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 y(Pn.Provider,{value:a},r.header&&y(wa,Object.assign({className:"fc-header-toolbar",model:r.header,titleId:this.viewTitleId},s)),y(Ra,{height:e,heightLiquid:o,aspectRatio:t},this.renderView(n,s.title),this.buildAppendContent()),r.footer&&y(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 y(w,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e,t){let{pluginHooks:n}=e,{viewSpec:r,toolbarConfig:i}=e,s={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,forPrint:e.forPrint,labelId:i.header&&i.header.hasTitle?this.viewTitleId:void 0,labelStr:i.header&&i.header.hasTitle?void 0:t},o=this.buildViewPropTransformers(n.viewPropsTransformers);for(let t of o)Object.assign(s,t.transform(s,e));return y(r.component,Object.assign({},s))}}function Ca(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&&!sr(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function xa(e){return e.map(e=>new e)}function Ta(e){let t=Io(e.locale||"en",ko([]).map);return new On(Object.assign(Object.assign({timeZone:ln.timeZone,calendarSystem:"gregory"},e),{locale:t}))}Bs.touchMouseIgnoreWait=500;let Ma=0,ka=0,Ia=!1;class Na{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=>{if(this.isDragging){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,Ma+=1,setTimeout(()=>{Ma-=1},Bs.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 Lr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),ka+=1,1===ka&&window.addEventListener("touchmove",Oa,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),ka-=1,ka||window.removeEventListener("touchmove",Oa,{passive:!1})}cancel(){this.isDragging&&this.cleanup()}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(){Ia=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?e.target.closest(this.selector):this.containerEl}shouldIgnoreMouse(){return Ma||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Ia=!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 Oa(e){Ia&&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",zi(n,{left:r.left,top:r.top}),Ge(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(this.mirrorEl.remove(),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&zi(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"),zi(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 Pa extends Es{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 Ba extends Pa{constructor(e,t){super(new ws(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return vs(this.scrollController.el)}}class Wa extends Pa{constructor(e){super(new Ds,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 ja="function"==typeof performance?performance.now:Date.now;class La{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=ja();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(ja()))}}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 Wa(!1):new Ba(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 Ua extends Ps{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,this.emitter.trigger("pointerdown",e),this.isInteracting&&($e(document.body),et(document.body),e.isTouch||e.origEvent.preventDefault(),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,Ke(document.body),tt(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 Na(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 La}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)}cancel(){this.isInteracting&&(this.isInteracting=!1,this.pointer.cancel())}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class za{constructor(e){this.el=e,this.origRect=bs(e),this.scrollCaches=ys(e).map(e=>new Ba(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(!Fa(e.getEventTarget())&&!$i(n,e.clientRect))return!1;return!0}}function Fa(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class Va{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?this.emitter.trigger("pointerdown",e):t.cancel()},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 Lr}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i instanceof HTMLElement&&(t=bs(i),r=es(r,t));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&t){let e=Ki(t,s.rect);e&&(r=ts(e))}this.coordAdjust=ns(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&&Ga(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=En(this.droppableStore,e=>(e.component.prepareHits(),new za(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&&ir(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 Ga(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&mi(e.dateSpan,t.dateSpan)}function Qa(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 Ya extends Wi{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=ri(e.subjectEl)).instance.instanceId;this.relevantEvents=Dr(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,n.isValidSegDownEl(t)&&!t.closest(".fc-event-resizer")?this.isDragging=e.subjectEl.classList.contains("fc-event-draggable"):r.cancel()},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 Xr(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?Mt(n):n);let c=lr(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=Qr(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?Xe():Je(),t||(i===s&&Ga(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 Xr(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 Xr(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:$r(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:$r(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 Xr(r,u,h);r.dispatch({type:"MERGE_EVENTS",eventStore:c});let g={event:f,relatedEvents:$r(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({},Qa(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 Ua(e.el);r.pointer.selector=Ya.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Va(this.dragging,Li);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}}Ya.SELECTOR=".fc-event-draggable, .fc-event-resizable";const qa={fixedMirrorParent:vn},Za={dateClick:vn,eventDragStart:vn,eventDragStop:vn,eventDrop:vn,eventResizeStart:vn,eventResizeStop:vn,eventResize:vn,drop:vn,eventReceive:vn,eventLeave:vn};class Xa{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}=br(r,n),o=Sr(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):Gr(e.allDay,a,n),c=ur(o.defId,{start:a,end:l});return{def:o,instance:c}}(e.dateSpan,this.dragMeta,i),a.mutatedEvents=wr(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?Xe():Je(),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({},Qa(r.dateSpan,t)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:i})),s.create){let r=wr(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 Xr(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 Va(e,Li);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?js(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?js(this.suppliedDragMeta(e)):function(e){let t=function(e,t){let n=Bs.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event");return js(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)}}Bs.dataAttrPrefix="";class Ja extends Ps{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 Na(e);t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("pointermove",this.handlePointerMove),t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}cancel(){this.shouldIgnoreMove=!0}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 $a=Oo({name:"@fullcalendar/interaction",componentInteractions:[class extends Wi{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;this.component.context.emitter.hasHandlers("dateClick")&&this.component.isValidDateDownEl(n)||t.cancel()},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&Ga(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},Qa(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new Ua(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Va(this.dragging,ji(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends Wi{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context;r.selectable&&t.isValidDateDownEl(e.origEvent.target)?n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null:n.cancel()},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(lt);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?Xe():Je(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(Fr(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new Ua(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Va(this.dragging,ji(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()}},Ya,class extends Wi{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=ri(n);this.dragging.minDistance=t.context.options.eventDragMinDistance;this.component.isValidSegDownEl(e.origEvent.target)&&!(e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)||this.dragging.cancel()},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=Dr(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingEventRange=ri(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new Xr(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=lr(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=Qr(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?Xe():Je(),t||(a&&Ga(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 Xr(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 Xr(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:$r(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||ht(0),endDelta:this.validMutation.endDelta||ht(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 Ua(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new Va(this.dragging,ji(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=Vi(e.origEvent);this.matchesCancel=!!n.closest(t),this.matchesEvent=!!n.closest(Ya.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 Na(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:Ua,optionRefiners:qa,listenerRefiners:Za});class Ka extends qs{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}const el=on({weekday:"long"}),tl=new Date(2592e5);function nl(...e){return[rl(...e)]}function rl(e,t,n,r,i,s,o){return{renderConfig:il(s),dataConfigs:sl(e,t,n,r,i,s,o)}}function il(e){const{options:t}=e;return{generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount}}function sl(e,t,n,r,i,s,o=1,a=""){const{dateEnv:l,viewApi:c,options:d}=s;return t?e.map(e=>{const t=os(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,g=ds(s,e);return{key:a+e.toUTCString(),renderProps:h,attrs:Object.assign(Object.assign({"aria-label":g},t.isToday?{"aria-current":"date"}:{}),{"data-date":Lt(e)}),innerAttrs:f?us(s,e,void 0,g):{"aria-hidden":!0},colSpan:o,isNavLink:f,className:as(t)}}):e.map(e=>{const t=e.getUTCDay(),n=Dt(tl,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}),u=l.format(n,el);return{key:a+String(t),renderProps:d,attrs:{"aria-label":u},innerAttrs:{"aria-hidden":!0},colSpan:o,className:as(r)}})}function ol(e){return Kr(e)+":"+e.start+(e.standinFor?":standin":e.isSlice?":slice":"")}function al(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 ll(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 cl(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 dl=on({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function ul(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 hl extends jn{render(){let{props:e}=this;return y(lo,Object.assign({},e,{className:"fc-daygrid-block-event fc-daygrid-event fc-h-event",defaultTimeFormat:dl,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.eventRange.def.allDay}))}}class fl extends jn{render(){let{props:e,context:t}=this,{options:n}=t,{eventRange:r}=e,i=ci(n.eventTimeFormat||dl,r,void 0,void 0,e.isStart,e.isEnd,t,!0,e.defaultDisplayEventEnd),[s,o]=fi(r,t);return y(ao,Object.assign({},e,{tag:s,attrs:o,className:"fc-daygrid-dot-event fc-daygrid-event",defaultGenerator:gl,timeText:i,isResizing:!1,isDateSelecting:!1}))}}function gl(e){return y(w,null,y("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&y("div",{className:"fc-event-time"},e.timeText),y("div",{className:"fc-event-title"},e.event.title||y(w,null," ")))}class pl extends jn{render(){let{props:e}=this;return y(wo,{className:Un("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 y(w,null,e.segs.map(n=>{let{eventRange:r}=n,{instanceId:i}=r.instance;return y("div",{key:i,style:{visibility:t[i]?"hidden":""}},ul(n)?y(fl,Object.assign({eventRange:r,isStart:n.isStart,isEnd:n.isEnd,isDragging:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},di(r,e.todayRange))):y(hl,Object.assign({eventRange:r,isStart:n.isStart,isEnd:n.isEnd,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},di(r,e.todayRange))))}))}})}}class ml extends As{constructor(){super(...arguments),this.rootElRef={current:null},this.handleBodyEl=e=>{this.disconnectBodyHeight&&(this.disconnectBodyHeight(),this.disconnectBodyHeight=void 0,Ln(this.props.headerHeightRef,null),Ln(this.props.mainHeightRef,null)),e&&(this.disconnectBodyHeight=Ni(e,(t,n)=>{const{props:r}=this,i=e.getBoundingClientRect(),s=this.rootElRef.current.getBoundingClientRect(),o=i.top-s.top;wi(this.headerHeight,o)||(this.headerHeight=o,Ln(r.headerHeightRef,o)),r.fgLiquidHeight&&Ln(r.mainHeightRef,n)}))}}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=At(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),s=os(e.date,e.todayRange,null,e.dateProfile),o=Un("fc-daygrid-day",e.borderStart&&"fc-border-s",null!=e.width?"":"fc-liquid","fc-flex-col");if(s.isDisabled)return y("div",{role:"gridcell","aria-disabled":!0,className:Un(o,"fc-day-disabled"),style:{width:e.width}});const a=e.showDayNumber||go(n),l=n.navLinks,c=ds(t,e.date);return y(fo,{tag:"div",className:Un(o,e.className),attrs:Object.assign(Object.assign({},e.attrs),{role:"gridcell","aria-label":c}),style:{width:e.width},elRef:this.rootElRef,renderProps:e.renderProps,defaultGenerator:vl,date:e.date,dateMeta:s,showDayNumber:e.showDayNumber,isMonthStart:i},n=>y(w,null,a&&y("div",{className:"fc-daygrid-day-header"},y(n,{tag:"div",attrs:l?us(t,e.date,void 0,c):{"aria-hidden":!0},className:Un("fc-daygrid-day-number",i&&"fc-daygrid-month-start")})),y("div",{className:Un("fc-daygrid-day-body",e.isTall&&"fc-daygrid-day-body-tall",e.fgLiquidHeight?"fc-liquid":"fc-grow"),ref:this.handleBodyEl},y("div",{className:"fc-daygrid-day-events",style:{height:e.fgHeight}},e.fg),y(pl,{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}))))}}function vl(e){return e.dayNumberText||y(w,null," ")}function bl(e,t){let n=e.get(t.eventRange);n||e.set(t.eventRange,n=[]),n.push(t)}function yl(e,t){let n=new Ls(e.renderRange,t);return new Us(n,/year|month|week/.test(e.currentRangeUnit))}function Sl(e,t,n){if(null==n)return[void 0,void 0];return n/e<t?[t*e,t]:[n,void 0]}function El(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=Fn(e.start*t),s=Fn(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 Dl(e,t){return e.querySelectorAll(":scope > [role=row]")[t]}function Al(e,t){return e.querySelectorAll(":scope > [role=gridcell]")[t]}function Rl(e,t,n){return e||function(e,t){if(!e||t>10)return on({weekday:"short"});if(t>1)return on({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0});return on({weekday:"long"})}(t,n)}class _l extends D{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return y("div",{className:Un(e.className,"fc-abs"),style:e.style,ref:this.rootElRef},e.children)}componentDidMount(){const e=this.rootElRef.current;this.disconnectHeight=Pi(e,e=>{Ln(this.props.heightRef,e)})}componentWillUnmount(){this.disconnectHeight(),Ln(this.props.heightRef,null)}}const Cl=on({week:"narrow"});class xl extends jn{constructor(){super(...arguments),this.headerHeightRefMap=new io(()=>{_i(this.handleSegPositioning)}),this.mainHeightRefMap=new io(()=>{(!0===this.props.dayMaxEvents||!0===this.props.dayMaxEventRows)&&_i(this.handleSegPositioning)}),this.segHeightRefMap=new io(()=>{_i(this.handleSegPositioning)}),this.handleRootEl=e=>{this.rootEl=e,Ln(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=oi(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 Is(e,e=>t.get(ol(e)),i,l,c,d,s);p.traverseSegs((e,t)=>{bl(u,e),f.set(ol(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 Is(function(e,t){const n=[];for(const r of e)n.push(...t.get(r.eventRange)||[]);return n}(e,u),e=>t.get(ol(e)),i,l,c,d),p.traverseSegs((e,t)=>{f.set(ol(e),t)});for(const e of p.hiddenSegs)bl(h,e)}const m=[],v=[],b=[],y=[];for(let e=0;e<n.length;e++)m.push([]),v.push([]),b.push([]),y.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(b[n.start].push(n),s)for(const e of r)b[e.start].push(e);for(const e of r){for(let t=e.start;t<e.end;t++){const n=cl(e,t);m[t].push(n)}const n=ol(e),r=f.get(n);if(null!=r){const i=t.get(n);for(let t=e.start;t<e.end;t++)y[t]=Math.max(y[t],r+i)}}for(const e of i)for(let t=e.start;t<e.end;t++){const n=cl(e,t);m[t].push(n),v[t].push(n)}}return[m,v,b,f,y]}(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(),b=this.getMirrorSegs(),S=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},E=s.navLinks,D=ds(t,o,"week");return y("div",{role:e.role,"aria-label":"row"===e.role?D:void 0,className:Un("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"),y("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 y(ml,{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:y(w,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&&y(yo,{tag:"div",attrs:Object.assign(Object.assign({},E?us(t,o,"week",D,!1):{}),{role:void 0,"aria-hidden":!0}),className:"fc-daygrid-week-number",date:o,defaultFormat:Cl}),this.renderFgSegs(c,b,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,b=[];for(const c of t){const t=ol(c),{standinFor:d,eventRange:S}=c,{instanceId:E}=S.instance;if(d)continue;const{left:w,right:D}=El(c,f,p,h),A=null!==(l=n.get(d?ol(d):t))&&void 0!==l?l:v?0:void 0,R=null!=e&&null!=A?e+A:void 0,_=d||i[E]||null==R;b.push(y(_l,{key:t,className:c.start?"fc-border-transparent fc-border-s":"",style:{visibility:_?"hidden":"",top:R,left:w,right:D},heightRef:d||v?null:u.createRef(t)},ul(c)?y(fl,Object.assign({eventRange:S,isStart:c.isStart,isEnd:c.isEnd,isDragging:s,isSelected:E===g,defaultDisplayEventEnd:m},di(S,r))):y(hl,Object.assign({eventRange:S,isStart:c.isStart,isEnd:c.isEnd,isDragging:s,isResizing:o,isDateSelecting:a,isSelected:E===g,defaultDisplayEventEnd:m},di(S,r)))))}return b}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=hi(n.eventRange),{left:r,right:c}=El(n,o,a,i),d=!n.standinFor;l.push(y("div",{key:e,className:"fc-fill-y",style:{visibility:d?"":"hidden",left:r,right:c}},"bg-event"===t?y(mo,Object.assign({eventRange:n.eventRange,isStart:n.isStart,isEnd:n.isEnd},di(n.eventRange,s))):bo(t)))}return y(w,{},...l)}componentDidMount(){const{rootEl:e}=this;this.disconnectHeight=Pi(e,e=>{Ln(this.props.heightRef,e)})}componentWillUnmount(){this.disconnectHeight(),Ln(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 Tl extends As{constructor(){super(...arguments),this.splitBusinessHourSegs=Vt(al),this.splitBgEventSegs=Vt(al),this.splitFgEventSegs=Vt(al),this.splitDateSelectionSegs=Vt(al),this.splitEventDrag=Vt(ll),this.splitEventResize=Vt(ll),this.rowHeightRefMap=new io((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=Yi(r),h=!e.forPrint&&!u,[f,g]=kl(e.visibleWidth,i,u,e.forPrint,r);return y("div",{role:"rowgroup",className:Un(!e.forPrint&&"fc-flex-col",e.className),style:{width:e.width},ref:this.handleRootEl},e.cellRows.map((t,u)=>y(xl,{key:t[0].key,role:"row",dateProfile:e.dateProfile,todayRange:e.todayRange,cells:t,showDayNumbers:i>1,showWeekNumbers:i>1&&r.weekNumbers,forPrint:e.forPrint,isCompact:g,className:Un(h&&"fc-grow fc-basis0",i>1&&"fc-break-inside-avoid",u<i-1&&"fc-border-b"),fgEventSegs:s[u],bgEventSegs:o[u].filter(Ml),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=Hi(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=Dt(f,1);return{dateProfile:r.dateProfile,dateSpan:Object.assign({range:{start:f,end:g},allDay:!0},h.dateSpanProps),dayEl:Al(Dl(this.rootEl,c),o),rect:{left:a,right:l,top:d,bottom:u},layer:0}}}function Ml(e){return e.eventRange.def.allDay}function kl(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 Il extends jn{constructor(){super(...arguments),this.handleInnerEl=e=>{this.disconectInnerHeight&&(this.disconectInnerHeight(),this.disconectInnerHeight=void 0),e?this.disconectInnerHeight=Pi(e,e=>{Ln(this.props.innerHeightRef,e)}):Ln(this.props.innerHeightRef,null)}}render(){const{props:e}=this,{renderConfig:t,dataConfig:n}=e,r=n.renderProps.isDisabled;return y(qn,{tag:"div",attrs:Object.assign({role:"columnheader","aria-colspan":n.colSpan},n.attrs),className:Un("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",n.className),style:{width:null!=e.colWidth?e.colWidth*(n.colSpan||1):void 0},renderProps:n.renderProps,generatorName:t.generatorName,customGenerator:t.customGenerator,defaultGenerator:Xn,classNameGenerator:r?void 0:t.classNameGenerator,didMount:t.didMount,willUnmount:t.willUnmount},t=>y(t,{tag:"div",attrs:n.innerAttrs,className:Un("fc-cell-inner fc-flex-col fc-padding-sm",e.isSticky&&"fc-sticky-s"),elRef:this.handleInnerEl}))}}class Nl extends jn{constructor(){super(...arguments),this.innerHeightRefMap=new io(()=>{_i(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,Ln(this.props.innerHeightRef,t))}}render(){const{props:e}=this;return y("div",{role:e.role,"aria-rowindex":null!=e.rowIndex?1+e.rowIndex:void 0,className:Un("fc-flex-row fc-content-box",e.className),style:{height:e.height}},e.dataConfigs.map((t,n)=>y(Il,{key:t.key,renderConfig:e.renderConfig,dataConfig:t,isSticky:e.isSticky,borderStart:Boolean(n),colWidth:e.colWidth,innerHeightRef:e.innerHeightRef})))}}class Ol extends jn{render(){const{props:e}=this;return y("div",{role:"rowgroup",className:Un(e.className,"fc-flex-col",null==e.width&&"fc-liquid"),style:{width:e.width}},e.headerTiers.map((t,n)=>y(Nl,Object.assign({},t,{key:n,role:"row",className:n?"fc-border-t":"",colWidth:e.colWidth}))))}}class Hl extends jn{constructor(){super(...arguments),this.handleScroller=e=>{Ln(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&&!Yi(r),s=!e.forPrint&&qi(r);return y(w,null,r.dayHeaders&&y("div",{className:Un(e.forPrint?"fc-print-header":"fc-flex-row","fc-border-b")},y(Ol,{headerTiers:e.headerTiers,className:Un("fc-daygrid-header",s&&"fc-table-header-sticky")}),Boolean(t.endScrollbarWidth)&&y("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}})),y(Fs,{vertical:i,clientWidthRef:this.handleClientWidth,endScrollbarWidthRef:this.handleEndScrollbarWidth,className:Un("fc-daygrid-body",!e.forPrint&&"fc-flex-col",i&&"fc-liquid"),ref:this.handleScroller},y(Tl,{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 Pl extends jn{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&&!Yi(r),s=!e.forPrint&&qi(r),o=!e.forPrint&&Zi(r),a=e.cellRows[0].length,[l,c]=Sl(a,e.dayMinWidth,t.clientWidth);return y(w,null,r.dayHeaders&&y("div",{className:"fc-print-header"},y(Fs,{horizontal:!0,hideScrollbars:!0,className:Un("fc-daygrid-header fc-flex-row fc-border-b",s&&"fc-table-header-sticky"),ref:this.headerScrollerRef},y(Ol,{headerTiers:e.headerTiers,colWidth:c,width:l}),Boolean(t.endScrollbarWidth)&&y("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}}))),y(Fs,{vertical:i,horizontal:!0,hideScrollbars:o||e.forPrint,className:Un("fc-daygrid-body",!e.forPrint&&"fc-flex-col",i&&"fc-liquid"),ref:this.bodyScrollerRef,clientWidthRef:this.handleClientWidth,endScrollbarWidthRef:this.handleEndScrollbarWidth},y(Tl,{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)&&y(Ro,{canvasWidth:l,scrollerRef:this.footerScrollerRef}))}componentDidMount(){const e=Xi(this.context.pluginHooks);this.syncedScroller=new e(!0),Ln(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 Bl extends jn{constructor(){super(...arguments),this.scrollerRef={current:null},this.rowHeightRefMap=new io(()=>{_i(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.handleScrollEnd=({isUser:e})=>{e&&(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 y(Jn,{viewSpec:t.viewSpec,attrs:{role:"grid","aria-rowcount":e.headerTiers.length+e.cellRows.length,"aria-colcount":e.cellRows[0].length,"aria-labelledby":e.labelId,"aria-label":e.labelStr},className:Un(e.className,"fc-print-root fc-border")},n.dayMinWidth?y(Pl,Object.assign({},r,{dayMinWidth:n.dayMinWidth})):y(Hl,Object.assign({},r)))}componentDidMount(){this.resetScroll(),this.scrollerRef.current.addScrollEndListener(this.handleScrollEnd)}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset&&this.resetScroll()}componentWillUnmount(){this.scrollerRef.current.removeScrollEndListener(this.handleScrollEnd)}resetScroll(){this.scrollDate=this.props.dateProfile.currentDate,this.updateScrollY();this.scrollerRef.current.scrollTo({x:0})}}class Wl extends dr{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return jl({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}function jl(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=wt(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(Dt(r.end,-1)));s=wt(s,6-Math.ceil(Rt(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 Ll=Oo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class extends jn{constructor(){super(...arguments),this.buildDayTableModel=Vt(yl),this.buildDateRowConfigs=Vt(nl),this.createDayHeaderFormatter=Vt(Rl),this.slicer=new Ka}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 y(so,{unit:"day"},(n,a)=>{const l=this.buildDateRowConfigs(r.headerDates,i,e.dateProfile,a,s,t);return y(Bl,{labelId:e.labelId,labelStr:e.labelStr,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:Wl},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 Ul extends is{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?ti(e)?["timed","allDay"]:["allDay"]:["timed"]}}class zl extends qs{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=tr(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 Fl(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 Vl(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 Gl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Ql(e,t,n,r,i){let s=new Date(0),o=e,a=ht(0),l=n||function(e){let t,n,r;for(t=Gl.length-1;t>=0;t-=1)if(n=ht(Gl[t]),r=bt(n,e),null!==r&&r>1)return n;return e}(r),c=[];for(;vt(o)<vt(t);){let e=i.add(s,o),t=null!==bt(a,l);c.push({date:e,time:o,key:e.toISOString(),isoTimeStr:zt(e),isLabeled:t}),o=gt(o,r),a=gt(a,r)}return c}class Yl extends jn{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 y(qn,{tag:"div",attrs:{role:"rowheader"},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:ql,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},e=>y(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=Hi(t,t=>{Ln(e.innerWidthRef,t)})}componentWillUnmount(){this.disconnectInnerWidth(),Ln(this.props.innerWidthRef,null)}}function ql(e){return e.text}class Zl extends As{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 y(xl,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=Dt(u,1);return{dateProfile:r.dateProfile,dateSpan:Object.assign({range:{start:u,end:h},allDay:!0},d.dateSpanProps),dayEl:Al(this.rootEl,a),rect:{left:l,right:c,top:0,bottom:s.current},layer:0}}}function Xl(e,t){let n=new Ls(e.renderRange,t);return new Us(n,!1)}function Jl(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 $l(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 Kl(e,t,n){return n||(n=Mt(e)),ec(ht(e.valueOf()-n.valueOf()),t)}function ec(e,t){const n=vt(t.slotMinTime),r=vt(t.slotMaxTime);let i=(e.milliseconds-n)/(r-n);return i=Math.max(0,i),i=Math.min(1,i),i}function tc(e){return["fc-timegrid-slot",e.isLabeled?"":"fc-timegrid-slot-minor","fc-flex-row"]}function nc(e,t,n,r,i,s,o){const a=[];if(null!=i){const l=i*r;for(const r of e){const e=Kl(r.startDate,t,n)*l;let i=Kl(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 rc(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 Is(i,void 0,n,void 0,r);let o=function(e){const{placementsByLevel:t}=e,n=ac((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=Hs(t,s.start,Cs),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]=ic(s,n),l=t[r][i];return[Object.assign(Object.assign({},l),{nextLevelNodes:o}),l.thickness+a]}),[r]=ic(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n);return r}(s);o=function(e,t){const n=ac((e,t,n)=>Kr(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=ac((e,t,n)=>Kr(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),Ns(s.hiddenSegs)]}function ic(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(sc),[o.map(oc),o[0][1]]}function sc(e,t){return t[1]-e[1]}function oc(e){return e[0]}function ac(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}const lc=on({hour:"numeric",minute:"2-digit",meridiem:!1});class cc extends jn{render(){const{props:e}=this;return y(lo,Object.assign({},e,{className:Un("fc-timegrid-event",e.isShort&&"fc-timegrid-event-short",e.isInset&&"fc-timegrid-event-inset","fc-v-event",e.isLiquid&&"fc-liquid"),defaultTimeFormat:lc}))}}class dc extends jn{render(){let{props:e}=this;return y(wo,{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:()=>pc(e.hiddenSegs,e),defaultGenerator:uc,forceTimed:!0},e=>y(e,{tag:"div",className:"fc-timegrid-more-link-inner fc-sticky-t"}))}}function uc(e){return e.shortText}function hc(e){return y("div",{className:"fc-timegrid-now-indicator-container"},y(uo,{className:"fc-timegrid-now-indicator-line",style:{top:null!=e.totalHeight?e.totalHeight*Kl(e.nowDate,e.dateProfile,e.dayDate):void 0},isAxis:!1,date:e.nowDate}))}const fc="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes("firefox");class gc extends jn{constructor(){super(...arguments),this.sortEventSegs=Vt(oi)}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=os(e.date,e.todayRange,null,e.dateProfile);const a=Un("fc-timegrid-day",e.borderStart&&"fc-border-s",null==e.width&&"fc-liquid","fc-flex-col fc-rel");if(o.isDisabled)return y("div",{role:"gridcell","aria-disabled":!0,className:Un(a,"fc-day-disabled"),style:{width:e.width}});let l=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return y(fo,{tag:"div",attrs:Object.assign(Object.assign({},e.attrs),{role:"gridcell"}),className:a,style:{width:e.width},date:e.date,dateMeta:o,renderProps:e.renderProps},t=>y(w,null,this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight"),go(n)&&y(t,{tag:"div",className:"fc-timegrid-day-misc fc-rel"}),y("div",{className:Un("fc-timegrid-day-events",e.forPrint&&fc?"fc-timegrid-day-events-simple":"fc-fill")},this.renderFgSegs(l,s,!1,!1,!1)),Boolean(i.length)&&y("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&&fc?pc(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=nc(e,c,l,o.slatCnt,o.slatHeight,m,g),[b,S]=rc(e,v,p,f),E=n||r||i;return y(w,null,e.map((e,o)=>{let{eventRange:a}=e,l=a.instance.instanceId,c=v[o]||{},f=b.get(l),g=!E&&f?this.computeSegHStyle(f):{left:0,right:0},p=E||f&&!t[l],m=f&&Boolean(f.stackDepth);return y("div",{className:"fc-abs fc-flex-col",key:s||l,style:Object.assign({visibility:p?"":"hidden",top:c.start,height:c.size},g)},y(cc,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},di(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 y(w,null,e.map(e=>y(dc,{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=nc(e,n.dateProfile,n.date,n.slatCnt,n.slatHeight,r.options.eventMinHeight);return y(w,null,e.map((e,r)=>{const{eventRange:s}=e,o=i[r]||{};return y("div",{key:hi(s),className:"fc-fill-x",style:{top:o.start,height:o.size}},"bg-event"===t?y(mo,Object.assign({eventRange:s,isStart:e.isStart,isEnd:e.isEnd},di(s,n.todayRange,n.nowDate))):bo(t))}))}renderNowIndicator(e){let{props:t}=this;if(!t.forPrint||!fc)return e.map(e=>y(hc,{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:Fn(t),right:Fn(n)};return s&&e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function pc(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let o=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return y(w,null,e.map(e=>{let{eventRange:i}=e,{instanceId:s}=i.instance;return y("div",{key:s,className:"fc-break-inside-avoid",style:{visibility:o[s]?"hidden":""}},y(cc,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},di(i,t,n))))}))}class mc extends As{constructor(){super(...arguments),this.processSlotOptions=Vt(vc),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 y("div",{role:e.role,className:Un(e.className,"fc-flex-row"),ref:this.handleRootEl},e.cells.map((t,n)=>y(gc,{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),b=v*o,y=(t-b)/o,S=v+Math.floor(y*u)*u,E=gt(r.slotMinTime,pt(d,S)),w=a.add(m.date,E),D=a.add(w,d);return{dateProfile:r,dateSpan:Object.assign({range:{start:w,end:D},allDay:!1},m.dateSpanProps),dayEl:Al(this.rootEl,f),rect:{left:g,right:p,top:b,bottom:b+o},layer:0}}}function vc(e,t){let n=t||e,r=bt(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}function bc(e){return y("div",{className:"fc-timegrid-now-indicator-container"},y(uo,{className:"fc-timegrid-now-indicator-arrow",style:{top:null!=e.totalHeight?e.totalHeight*Kl(e.nowDate,e.dateProfile):void 0},isAxis:!0,date:e.nowDate}))}mc.addPropsEquality({style:An});const yc=on({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});class Sc extends jn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,{dateEnv:n,options:r,viewApi:i}=t,s=Un("fc-timegrid-slot-label fc-timegrid-axis fc-header-cell fc-cell",e.isLiquid?"fc-liquid":"fc-content-box");if(!e.isLabeled)return y("div",{"data-time":e.isoTimeStr,className:s,style:{width:e.width}});let o=null==r.slotLabelFormat?yc:Array.isArray(r.slotLabelFormat)?on(r.slotLabelFormat[0]):on(r.slotLabelFormat),a={level:0,time:e.time,date:n.toDate(e.date),view:i,text:n.format(e.date,o)};return y(qn,{tag:"div",attrs:{"data-time":e.isoTimeStr},className:s,style:{width:e.width},renderProps:a,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:Ec,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},e=>y(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=Ni(t,(t,n)=>{Ln(e.innerWidthRef,t),Ln(e.innerHeightRef,n)}))}componentWillUnmount(){const{props:e}=this;this.disconnectInnerSize&&(this.disconnectInnerSize(),Ln(e.innerWidthRef,null),Ln(e.innerHeightRef,null))}}function Ec(e){return e.text}class wc extends jn{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 y(qn,{tag:"div",className:Un("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=>y(e,{tag:"div",className:"fc-cell-inner",elRef:this.innerElRef}))}componentDidMount(){const e=this.innerElRef.current;this.disconnectInnerHeight=Pi(e,e=>{Ln(this.props.innerHeightRef,e)})}componentWillUnmount(){this.disconnectInnerHeight(),Ln(this.props.innerHeightRef,null)}}const Dc=on({week:"short"});class Ac extends jn{constructor(){super(...arguments),this.innerElRef={current:null}}render(){let{props:e,context:t}=this,n=e.dateProfile.renderRange,r=1===_t(n.start,n.end)&&t.options.navLinks,i=ds(t,n.start,"week");return y(yo,{tag:"div",attrs:{role:"gridcell","aria-label":i},className:Un("fc-timegrid-weeknumber fc-timegrid-axis fc-cell",e.isLiquid?"fc-liquid":"fc-content-box"),style:{width:e.width},date:n.start,defaultFormat:Dc},e=>y(e,{tag:"div",attrs:r?us(t,n.start,"week",i):{"aria-label":i},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=Ni(t,(t,n)=>{Ln(e.innerWidthRef,t),Ln(e.innerHeightRef,n)})}componentWillUnmount(){const{props:e}=this;this.disconnectInnerSize(),Ln(e.innerWidthRef,null),Ln(e.innerHeightRef,null)}}function Rc(e){return y("div",{role:"gridcell",className:Un("fc-timegrid-axis",e.isLiquid?"fc-liquid":"fc-content-box"),style:{width:e.width}})}class _c extends jn{constructor(){super(...arguments),this.state={headerTierHeights:[]},this.headerLabelInnerWidthRefMap=new io(()=>{_i(this.handleAxisWidths)}),this.headerLabelInnerHeightRefMap=new io(()=>{_i(this.handleHeaderHeights)}),this.headerMainInnerHeightRefMap=new io(()=>{_i(this.handleHeaderHeights)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,_i(this.handleAxisWidths)},this.slatLabelInnerWidthRefMap=new io(()=>{_i(this.handleAxisWidths)}),this.slatLabelInnerHeightRefMap=new io(()=>{_i(this.handleSlatInnerHeights)}),this.slatMainInnerHeightRefMap=new io(()=>{_i(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;St(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&&!Yi(f),p=!u&&qi(f),m=!u&&Zi(f),v=u&&!fc,b=u&&fc,S=e.cells.length,[E,D]=Sl(S,e.dayMinWidth,t.clientWidth),A=e.slatMetas.length,[R,_]=$l(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,M=f.dayHeaders?d.length+1:1;return y(w,null,f.dayHeaders&&y("div",{className:Un("fc-timegrid-header fc-flex-row fc-border-b",p&&"fc-table-header-sticky")},y("div",{role:"rowgroup",className:"fc-content-box",style:{width:h}},d.map((n,s)=>y("div",{key:s,role:"row","aria-rowindex":s+1,className:Un("fc-flex-row fc-content-box",s&&"fc-border-t"),style:{height:t.headerTierHeights[s]}},f.weekNumbers&&s===d.length-1?y(Ac,{dateProfile:e.dateProfile,innerWidthRef:r.createRef(s),innerHeightRef:i.createRef(s),width:void 0,isLiquid:!0}):y(Rc,{width:void 0,isLiquid:!0})))),y(Fs,{horizontal:!0,hideScrollbars:!0,className:"fc-flex-row fc-border-s fc-liquid",ref:this.headerScrollerRef},y("div",{role:"rowgroup",className:null==E?"fc-liquid":"",style:{width:E}},e.headerTiers.map((e,n)=>y(Nl,Object.assign({},e,{key:n,role:"row",rowIndex:n,className:n?"fc-border-t":"",height:t.headerTierHeights[n],colWidth:D,innerHeightRef:s.createRef(n)})))),Boolean(t.endScrollbarWidth)&&y("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}}))),y("div",{role:"rowgroup",className:Un("fc-flex-col",g&&"fc-liquid")},f.allDaySlot&&y(w,null,y("div",{role:"row","aria-rowindex":M,className:"fc-timegrid-allday fc-flex-row"},y(Yl,{width:h,innerWidthRef:this.handleAllDayLabelInnerWidth}),y(Fs,{horizontal:!0,hideScrollbars:!0,className:"fc-border-s fc-flex-row fc-liquid",ref:this.allDayScrollerRef},y("div",{className:"fc-flex-col",style:{width:E}},y(Zl,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:u,isHitComboAllowed:e.isHitComboAllowed,isCompact:kl(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:D})),Boolean(t.endScrollbarWidth)&&y("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}}))),y("div",{className:"fc-rowdivider"})),y("div",{role:"row","aria-rowindex":M+(f.allDaySlot?1:0),className:Un("fc-timegrid-body fc-flex-row",g&&"fc-liquid")},y(Fs,{vertical:g,hideScrollbars:!0,className:"fc-flex-col fc-content-box",style:{width:h},ref:this.axisScrollerRef},!b&&y(w,null,y("div",{role:"rowheader","aria-label":f.timedText,className:Un("fc-flex-col fc-grow",v&&"fc-rel"),style:{height:x}},y("div",{"aria-hidden":!0,className:Un("fc-timegrid-slots-axis fc-flex-col",g&&f.expandRows&&"fc-grow",v&&"fc-fill-x")},e.slatMetas.map((e,t)=>y("div",{key:e.key,className:Un(...tc(e),t&&"fc-border-t",_&&"fc-liquid"),style:{height:_?"":R}},y(Sc,Object.assign({},e,{isLiquid:!0,innerWidthRef:o.createRef(e.key),innerHeightRef:a.createRef(e.key)}))))),f.nowIndicator&&sr(e.dateProfile.currentRange,c)&&y(bc,{nowDate:c,dateProfile:e.dateProfile,totalHeight:null!=R?R*A:void 0}),Boolean(T||t.bottomScrollbarWidth)&&y("div",{class:Un("fc-border-t fc-filler",T&&"fc-liquid"),style:{minHeight:t.bottomScrollbarWidth}})))),y("div",{className:"fc-border-s fc-flex-col fc-liquid"},y(Fs,{vertical:g,horizontal:!0,hideScrollbars:m||u,className:Un("fc-flex-col",g&&"fc-liquid"),ref:this.mainScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight,endScrollbarWidthRef:this.handleEndScrollbarWidth,bottomScrollbarWidthRef:this.handleBottomScrollbarWidth},y("div",{className:"fc-flex-col fc-grow fc-rel",style:{width:E,height:x}},y(mc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:A,forPrint:u,isHitComboAllowed:e.isHitComboAllowed,className:b?"":"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:D,slatHeight:R}),!b&&y(w,null,y("div",{"aria-hidden":!0,className:Un("fc-timegrid-slots fc-flex-col",g&&f.expandRows&&"fc-grow",v?"fc-fill-x":"fc-rel")},e.slatMetas.map((e,t)=>y("div",{key:e.key,className:Un(...tc(e),t&&"fc-border-t",_&&"fc-liquid"),style:{height:_?"":R}},y(wc,Object.assign({},e,{innerHeightRef:l.createRef(e.key)}))))),T&&y("div",{class:"fc-liquid fc-border-t fc-filler"})))),Boolean(m)&&y(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&&Ln(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}initScrollers(){const e=Xi(this.context.pluginHooks);this.dayScroller=new e(!0),this.timeScroller=new e,Ln(this.props.dayScrollerRef,this.dayScroller),Ln(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(){Ln(this.props.dayScrollerRef,null),Ln(this.props.timeScrollerRef,null)}}class Cc extends jn{constructor(){super(...arguments),this.headerLabelInnerWidthRefMap=new io(()=>{_i(this.handleAxisInnerWidths)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,_i(this.handleAxisInnerWidths)},this.slatLabelInnerWidthRefMap=new io(()=>{_i(this.handleAxisInnerWidths)}),this.slatLabelInnerHeightRefMap=new io(()=>{_i(this.handleSlatInnerHeights)}),this.slatInnerMainHeightRefMap=new io(()=>{_i(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&&!Yi(d),h=!l&&qi(d),f=e.slatMetas.length,[g,p]=$l(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,b=l&&!fc,S=l&&fc,E=b?m:void 0;return y(w,null,d.dayHeaders&&y("div",{role:"rowgroup",className:Un("fc-timegrid-header fc-flex-col fc-border-b",h&&"fc-table-header-sticky")},e.headerTiers.map((n,r)=>y("div",{key:r,role:"row",className:Un("fc-flex-row",r&&"fc-border-t")},d.weekNumbers&&r===e.headerTiers.length-1?y(Ac,{dateProfile:e.dateProfile,innerHeightRef:o.createRef(r),width:c,isLiquid:!1}):y(Rc,{width:c,isLiquid:!1}),y(Nl,Object.assign({},n,{className:"fc-border-s fc-liquid"})),Boolean(t.endScrollbarWidth)&&y("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}})))),y("div",{role:"rowgroup",className:Un("fc-flex-col",u&&"fc-liquid")},d.allDaySlot&&y(w,null,y("div",{role:"row",className:"fc-timegrid-allday fc-flex-row"},y(Yl,{width:c,innerWidthRef:this.handleAllDayLabelInnerWidth}),y(Zl,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:l,isHitComboAllowed:e.isHitComboAllowed,className:"fc-border-s fc-liquid",isCompact:kl(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)&&y("div",{className:"fc-border-s fc-filler",style:{minWidth:t.endScrollbarWidth}})),y("div",{className:"fc-rowdivider"})),y(Fs,{vertical:u,className:Un("fc-timegrid-body fc-flex-col",u&&"fc-liquid"),ref:e.timeScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight,endScrollbarWidthRef:this.handleEndScrollbarWidth},y("div",{className:"fc-flex-col fc-grow fc-rel",style:{height:E}},y("div",{role:"row",className:Un("fc-flex-row",!S&&"fc-fill")},y("div",{role:"rowheader","aria-label":d.timedText,className:"fc-content-box",style:{width:c}}),y(mc,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:f,forPrint:l,isHitComboAllowed:e.isHitComboAllowed,className:"fc-liquid fc-border-s",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&&y(w,null,y("div",{"aria-hidden":!0,className:Un("fc-timegrid-slots fc-flex-col",u&&d.expandRows&&"fc-grow",b?"fc-fill-x":"fc-rel")},e.slatMetas.map((e,t)=>y("div",{key:e.key,className:Un(...tc(e),t&&"fc-border-t",p&&"fc-liquid"),style:{height:p?"":g}},y(Sc,Object.assign({},e,{innerWidthRef:r.createRef(e.key),innerHeightRef:i.createRef(e.key),width:c})),y(wc,Object.assign({},e,{borderStart:!0,innerHeightRef:s.createRef(e.key)}))))),v&&y("div",{class:"fc-liquid fc-border-t fc-filler"}),d.nowIndicator&&sr(e.dateProfile.currentRange,a)&&y(bc,{nowDate:a,dateProfile:e.dateProfile,totalHeight:null!=g?g*f:void 0}))))))}componentDidMount(){this.updateSlatHeight()}componentDidUpdate(){this.updateSlatHeight()}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&Ln(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}}class xc extends jn{constructor(){super(...arguments),this.buildSlatMetas=Vt(Ql),this.dayScrollerRef={current:null},this.timeScrollerRef={current:null},this.scrollState={},this.handleSlatHeight=e=>{this.slatHeight=e,_i(this.applyTimeScroll)},this.handleTimeScrollRequest=e=>{this.scrollState.time=e,this.scrollState.y=void 0,this.applyTimeScroll()},this.handleTimeScrollEnd=({y:e,isUser:t})=>{t&&(this.props.forPrint||(this.scrollState.y=e,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=ec(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 y(Jn,{attrs:{role:"grid","aria-colcount":e.cells.length,"aria-labelledby":e.labelId,"aria-label":e.labelStr},className:Un(e.className,"fc-border",!e.forPrint&&"fc-flex-col"),viewSpec:t.viewSpec},s?y(_c,Object.assign({},a,{dayMinWidth:s,dayScrollerRef:this.dayScrollerRef})):y(Cc,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 Tc=Oo({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class extends As{constructor(){super(...arguments),this.createDayHeaderFormatter=Vt(Rl),this.buildTimeColsModel=Vt(Xl),this.buildDayRanges=Vt(Jl),this.buildDateRowConfigs=Vt(nl),this.splitFgEventSegs=Vt(Fl),this.splitBgEventSegs=Vt(Fl),this.splitBusinessHourSegs=Vt(Fl),this.splitNowIndicatorSegs=Vt(Fl),this.splitDateSelectionSegs=Vt(Fl),this.splitEventDrag=Vt(Vl),this.splitEventResize=Vt(Vl),this.allDaySplitter=new Ul,this.dayTableSlicer=new Ka,this.dayTimeColsSlicer=new zl}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 y(so,{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),b=this.splitEventDrag(c.eventDrag,u),S=this.splitEventResize(c.eventResize,u),E=this.buildDateRowConfigs(s.headerDates,!0,e.dateProfile,a,d,t);return y(xc,{labelId:e.labelId,labelStr:e.labelStr,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:b,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 Mc extends jn{render(){let{dateEnv:e,options:t,viewApi:n}=this.context,{dayDate:r,todayRange:i}=this.props,s=!this.props.forPrint&&qi(t),o=os(r,i),a=t.listDayFormat?e.format(r,t.listDayFormat):"",l=t.listDaySideFormat?e.format(r,t.listDaySideFormat):"",c=t.navLinks,d=Object.assign({date:e.toDate(r),view:n,text:a,sideText:l,navLinkAttrs:c?us(this.context,r,void 0,a):{},sideNavLinkAttrs:c?us(this.context,r,void 0,l,!1):{}},o);return y("div",{className:Un("fc-list-day-outer",s&&"fc-list-day-outer-sticky")},y(qn,{tag:"div",className:Un("fc-list-day",as(o)),attrs:Object.assign({"data-date":Lt(r)},o.isToday?{"aria-current":"date"}:{}),renderProps:d,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:kc,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount}))}}function kc(e){return y(w,null,e.text&&y("div",Object.assign({className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&y("div",Object.assign({className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const Ic=on({hour:"numeric",minute:"2-digit",meridiem:"short"});class Nc extends jn{constructor(){super(...arguments),this.handleTitleEl=e=>{this.disconnectTitleWidth&&this.disconnectTitleWidth(),e&&(this.disconnectTitleWidth=Hi(e,e=>{Ln(this.props.timeWidthRef,e)}))}}render(){let{props:e,context:t}=this,{eventRange:n}=e,{options:r}=t,i=r.eventTimeFormat||Ic,[s,o]=fi(n,t);return y(ao,Object.assign({},e,{tag:s,attrs:Object.assign({role:"listitem"},o),className:"fc-list-event",defaultGenerator:Oc,eventRange:n,timeText:"",disableDragging:!0,disableResizing:!0}),(r,s)=>y(w,null,y("div",{className:"fc-list-event-time-outer",style:{width:e.timeOuterWidth}},this.buildTimeContent(n,e.slicedStart,e.slicedEnd,e.isStart,e.isEnd,i,t)),y("div",{className:"fc-list-event-dot-outer"},y("span",{className:"fc-list-event-dot",style:{borderColor:s.borderColor||s.backgroundColor}})),y(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 y(qn,{tag:"div",className:"fc-list-event-time",renderProps:e,elRef:this.handleTitleEl,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:Hc,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return y("div",{className:"fc-list-event-time",ref:this.handleTitleEl},ci(s,e,t,n,r,i,o))}return null}componentWillUnmount(){Ln(this.props.timeWidthRef,null)}}function Oc(e){return e.event.title}function Hc(e){return e.text}class Pc extends jn{constructor(){super(...arguments),this.sortEventSegs=Vt(oi),this.timeWidthRefMap=new io(()=>{_i(this.handleTimeWidths)}),this.handleTimeWidths=()=>{const e=this.timeWidthRefMap.current;let t=0;for(const n of e.values())t=Math.max(t,n);Ln(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 y("div",{role:"listitem","aria-label":ds(this.context,e.dayDate),className:"fc-list-day-and-events"},y(Mc,{dayDate:e.dayDate,todayRange:i,forPrint:e.forPrint}),y("div",{role:"list","aria-label":s.eventsHint},o.map(t=>{const s=Kr(t);return y(Nc,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},di(t.eventRange,i,r)))})))}componentWillUnmount(){Ln(this.props.timeWidthRef,null)}}function Bc(e){return e.text}function Wc(e){let t=Mt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:Dt(t,1)}),t=Dt(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 jc(e){return!1===e?null:on(e)}var Lc=Oo({name:"@fullcalendar/list",optionRefiners:{listDayFormat:jc,listDaySideFormat:jc,noEventsClassNames:vn,noEventsContent:vn,noEventsDidMount:vn,noEventsWillUnmount:vn},views:{list:{component:class extends As{constructor(){super(...arguments),this.computeDateVars=Vt(Wc),this.eventStoreToSegs=Vt(this._eventStoreToSegs),this.timeWidthRefMap=new io(()=>{_i(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&&!Yi(n);return y(Jn,{viewSpec:t.viewSpec,className:"fc-list fc-flex-col fc-border",elRef:this.setRootEl},y(Fs,{vertical:o,className:o?"fc-liquid":""},this.renderSegList(s,r),!s.length&&this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return y(qn,{tag:"div",attrs:{role:"status"},className:"fc-list-empty",renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Bc,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>y(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 y("div",{role:"list","aria-labelledby":this.props.labelId,"aria-label":this.props.labelStr},y(so,{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=Lt(n);i.push(y(Pc,{key:a,dayDate:n,nowDate:e,todayRange:r,segs:o,forPrint:this.props.forPrint,timeWidthRef:this.timeWidthRefMap.createRef(a),timeOuterWidth:this.state.timeOuterWidth}))}}return y(w,null,i)}))}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(ei(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=tr(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 Uc extends As{constructor(){super(...arguments),this.buildDayTableModel=Vt(yl),this.createDayHeaderFormatter=Vt(Rl),this.buildDateRowConfig=Vt(rl),this.slicer=new Ka,this.titleId=Qi()}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 y("div",{role:"listitem",className:"fc-multimonth-month-outer",style:{width:e.width}},y("div",{role:"grid","aria-labelledby":this.titleId,"data-date":e.isoDateStr,className:Un("fc-multimonth-month",e.hasLateralSiblings&&"fc-break-inside-avoid")},y("div",{className:"fc-multimonth-header",style:{marginBottom:u?Fn(d):void 0}},y("div",{id:this.titleId,className:"fc-multimonth-title"},t.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),y(Nl,Object.assign({},l,{role:"row",className:"fc-multimonth-header-row"}))),y("div",{className:Un("fc-multimonth-body",h&&"fc-rel"),style:{marginTop:u?Fn(-d):void 0,paddingBottom:h?Fn(c):void 0}},y(Tl,{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 zc=ht(1,"month");function Fc(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,zc),o={start:e.skipHiddenDays(a),end:e.skipHiddenDays(s,-1,!0)};let c=jl({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?tr(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 Vc=on({year:"numeric",month:"long"}),Gc=on({month:"long"});function Qc(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?Vc:Gc)}const Yc={multiMonthTitleFormat:on,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-outer: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 qc=Oo({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:Yc,views:{multiMonth:{component:class extends As{constructor(){super(...arguments),this.splitDateProfileByMonth=Vt(Fc),this.buildMonthFormat=Vt(Qc),this.scrollerRef={current:null},this.innerElRef={current:null},this.scrollDate=null,this.handleScrollEnd=({isUser:e})=>{e&&(this.scrollDate=null)}}render(){const{context:e,props:t,state:n}=this,{options:r}=e,i=!t.forPrint&&!Yi(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=Fn(1/d),f=d>1),y(so,{unit:"day"},(n,r)=>y(Jn,{viewSpec:e.viewSpec,className:Un("fc-multimonth fc-border",1===d?"fc-multimonth-singlecol":"fc-multimonth-multicol",!t.forPrint&&"fc-flex-col")},y(Fs,{vertical:i,className:i?"fc-liquid":"",ref:this.scrollerRef},y("div",{role:"list","aria-labelledby":t.labelId,"aria-label":t.labelStr,className:"fc-multimonth-inner",ref:this.innerElRef},s.map(e=>{const n=Ut(e.currentRange.start);return y(Uc,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.handleScrollEnd),this.disconnectInnerWidth=Hi(this.innerElRef.current,e=>{_i(()=>{this.setState({innerWidth:e})})})}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset?this.resetScroll():this.applyScroll()}componentWillUnmount(){this.scrollerRef.current.removeScrollEndListener(this.handleScrollEnd),this.disconnectInnerWidth()}resetScroll(){this.scrollDate=this.props.dateProfile.currentDate,this.applyScroll()}applyScroll(){if(null!=this.scrollDate&&null!=this.state.innerWidth){const e=this.scrollerRef.current,t=this.innerElRef.current,n=t.querySelector(`[data-date="${Ut(this.scrollDate)}"]`),r=Math.ceil(n.getBoundingClientRect().top-t.getBoundingClientRect().top);e.scrollTo({y:r})}}},dateProfileGeneratorClass:Wl,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}});return aa.push($a,Ll,Tc,Lc,qc),e.Calendar=class extends Ji{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(y(Bi,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r)=>(this.setClassNames(t),this.setHeight(n),y(Yn.Provider,{value:this.customContentRenderId},y(_a,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 Ue(this.handleRenderRequest),new da({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(!St(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){Fi(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:ln.eventDragMinDistance,t.delay=e.isTouch?null!=r?r:ln.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 Ua(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 Xa(n,t.eventData)}destroy(){this.dragging.destroy()}},e.Internal=_o,e.JsonRequestError=Si,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 Ja(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 Xa(r,t.eventData).hitDragging.disablePointCheck=!0}destroy(){this.dragging.destroy()}},e.createPlugin=Oo,e.formatDate=function(e,t={}){let n=Ta(t),r=on(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatRange=function(e,t,n){let r=Ta("object"==typeof n&&n?n:{}),i=on(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:ln.defaultRangeSeparator}):""},e.globalLocales=xo,e.globalPlugins=aa,e.sliceEvents=function(e,t){return ei(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="7.0.0-beta.4",Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|