NeahNew/.next/server/app/agenda/page.js
2025-05-06 23:01:34 +02:00

1 line
390 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e={};e.id=395,e.ids=[395],e.modules={163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return r}});let r=n(71042).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11723:e=>{"use strict";e.exports=require("querystring")},12412:e=>{"use strict";e.exports=require("assert")},14230:(e,t,n)=>{Promise.resolve().then(n.bind(n,65868))},14985:e=>{"use strict";e.exports=require("dns")},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19681:(e,t,n)=>{"use strict";let r,i,s;n.d(t,{CalendarClient:()=>c0});var o,a,l,c,d,u,p,h,f,g,m,v=n(60687),y=n(76180),b=n.n(y),D=n(43210),w=n.t(D,2),E=n.n(D),S=n(51215),C=n.n(S),_={},A=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function k(e,t){for(var n in t)e[n]=t[n];return e}function R(e){var t=e.parentNode;t&&t.removeChild(e)}function T(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?c.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return M(e,o,r,i,null)}function M(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++u:i};return null==i&&null!=d.vnode&&d.vnode(s),s}function N(){return{current:null}}function O(e){return e.children}function I(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||x.test(t)?n:n+"px"}function P(e,t,n,r,i){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||I(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||I(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?H:j,s):e.removeEventListener(t,s?H:j,s);else if("dangerouslySetInnerHTML"!==t){if(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&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function j(e){p=!0;try{return this.l[e.type+!1](d.event?d.event(e):e)}finally{p=!1}}function H(e){p=!0;try{return this.l[e.type+!0](d.event?d.event(e):e)}finally{p=!1}}function L(e,t){this.props=e,this.context=t}function F(e,t){if(null==t)return e.__?F(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?F(e):null}function U(e){(!e.__d&&(e.__d=!0)&&h.push(e)&&!B.__r++||f!==d.debounceRendering)&&((f=d.debounceRendering)||function(e){p?setTimeout(e):g(e)})(B)}function B(){var e,t,n,r,i,s,o,a;for(h.sort(function(e,t){return e.__v.__b-t.__v.__b});e=h.shift();)e.__d&&(t=h.length,r=void 0,i=void 0,o=(s=(n=e).__v).__e,(a=n.__P)&&(r=[],(i=k({},s)).__v=s.__v+1,V(a,s,i,n.__n,void 0!==a.ownerSVGElement,null!=s.__h?[o]:null,r,null==o?F(s):o,s.__h),Q(r,s),s.__e!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(s)),h.length>t&&h.sort(function(e,t){return e.__v.__b-t.__v.__b}));B.__r=0}function z(e,t,n,r,i,s,o,a,l,c){var u,p,h,f,g,m,v,y=r&&r.__k||A,b=y.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(f=n.__k[u]=null==(f=t[u])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?M(null,f,null,null,f):Array.isArray(f)?M(O,{children:f},null,null,null):f.__b>0?M(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(h=y[u])||h&&f.key==h.key&&f.type===h.type)y[u]=void 0;else for(p=0;p<b;p++){if((h=y[p])&&f.key==h.key&&f.type===h.type){y[p]=void 0;break}h=null}V(e,f,h=h||_,i,s,o,a,l,c),g=f.__e,(p=f.ref)&&h.ref!=p&&(v||(v=[]),h.ref&&v.push(h.ref,null,f),v.push(p,f.__c||g,f)),null!=g?(null==m&&(m=g),"function"==typeof f.type&&f.__k===h.__k?f.__d=l=function e(t,n,r){for(var i,s=t.__k,o=0;s&&o<s.length;o++)(i=s[o])&&(i.__=t,n="function"==typeof i.type?e(i,n,r):Y(r,i,i,s,i.__e,n));return n}(f,l,e):l=Y(e,f,h,y,g,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=F(h))}for(n.__e=m,u=b;u--;)null!=y[u]&&("function"==typeof n.type&&null!=y[u].__e&&y[u].__e==n.__d&&(n.__d=function e(t){var n,r,i;if(null==t.type||"string"==typeof t.type)return t.__e;if(t.__k){for(n=t.__k.length-1;n>=0;n--)if((r=t.__k[n])&&(i=e(r)))return i}return null}(r).nextSibling),function e(t,n,r){var i,s;if(d.unmount&&d.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||G(i,null,n)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){d.__e(e,n)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(s=0;s<i.length;s++)i[s]&&e(i[s],n,r||"function"!=typeof t.type);r||null==t.__e||R(t.__e),t.__=t.__e=t.__d=void 0}(y[u],y[u]));if(v)for(u=0;u<v.length;u++)G(v[u],v[++u],v[++u])}function W(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){W(e,t)}):t.push(e)),t}function Y(e,t,n,r,i,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=s||null==i.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(i),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;e.insertBefore(i,s),o=s}return void 0!==o?o:i.nextSibling}function V(e,t,n,r,i,s,o,a,l){var u,p,h,f,g,m,v,y,b,D,w,E,S,C,A,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(u=d.__b)&&u(t);try{e:if("function"==typeof x){if(y=t.props,b=(u=x.contextType)&&r[u.__c],D=u?b?b.props.value:u.__:r,n.__c?v=(p=t.__c=n.__c).__=p.__E:("prototype"in x&&x.prototype.render?t.__c=p=new x(y,D):(t.__c=p=new L(y,D),p.constructor=x,p.render=q),b&&b.sub(p),p.props=y,p.state||(p.state={}),p.context=D,p.__n=r,h=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=x.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=k({},p.__s)),k(p.__s,x.getDerivedStateFromProps(y,p.__s))),f=p.props,g=p.state,p.__v=t,h)null==x.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==f&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(y,D),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(y,p.__s,D)||t.__v===n.__v){for(t.__v!==n.__v&&(p.props=y,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),w=0;w<p._sb.length;w++)p.__h.push(p._sb[w]);p._sb=[],p.__h.length&&o.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(y,p.__s,D),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(f,g,m)})}if(p.context=D,p.props=y,p.__P=e,E=d.__r,S=0,"prototype"in x&&x.prototype.render){for(p.state=p.__s,p.__d=!1,E&&E(t),u=p.render(p.props,p.state,p.context),C=0;C<p._sb.length;C++)p.__h.push(p._sb[C]);p._sb=[]}else do p.__d=!1,E&&E(t),u=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++S<25);p.state=p.__s,null!=p.getChildContext&&(r=k(k({},r),p.getChildContext())),h||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(f,g)),A=null!=u&&u.type===O&&null==u.key?u.props.children:u,z(e,Array.isArray(A)?A:[A],t,n,r,i,s,o,a,l),p.base=t.__e,t.__h=null,p.__h.length&&o.push(p),v&&(p.__E=p.__=null),p.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,s,o,a){var l,d,u,p=n.props,h=t.props,f=t.type,g=0;if("svg"===f&&(i=!0),null!=s){for(;g<s.length;g++)if((l=s[g])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,s[g]=null;break}}if(null==e){if(null===f)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,a=!1}if(null===f)p===h||a&&e.data===h||(e.data=h);else{if(s=s&&c.call(e.childNodes),d=(p=n.props||_).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!a){if(null!=s)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,i){var s;for(s in n)"children"===s||"key"===s||s in t||P(e,s,null,n[s],r);for(s in t)i&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||P(e,s,t[s],n[s],r)}(e,h,p,i,a),u)t.__k=[];else if(z(e,Array.isArray(g=t.props.children)?g:[g],t,n,r,i&&"foreignObject"!==f,s,o,s?s[0]:n.__k&&F(n,0),a),null!=s)for(g=s.length;g--;)null!=s[g]&&R(s[g]);a||("value"in h&&void 0!==(g=h.value)&&(g!==e.value||"progress"===f&&!g||"option"===f&&g!==p.value)&&P(e,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==e.checked&&P(e,"checked",g,p.checked,!1))}return e}(n.__e,t,n,r,i,s,o,l);(u=d.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=a,t.__h=!!l,s[s.indexOf(a)]=null),d.__e(e,t,n)}}function Q(e,t){d.__c&&d.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){d.__e(e,t.__v)}})}function G(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){d.__e(e,n)}}function q(e,t,n){return this.constructor(e,n)}function Z(e,t,n){var r,i,s;d.__&&d.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],V(t,e=(!r&&n||t).__k=T(O,null,[e]),i||_,_,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?c.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r),Q(s,e)}c=A.slice,d={__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}},u=0,p=!1,L.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=k({},this.state),"function"==typeof e&&(e=e(k({},n),this.props)),e&&k(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),U(this))},L.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),U(this))},L.prototype.render=O,h=[],g="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B.__r=0,m=0;var K,$,X,J,ee=0,et=[],en=[],er=d.__b,ei=d.__r,es=d.diffed,eo=d.__c,ea=d.unmount;function el(e,t){d.__h&&d.__h($,e,ee||t),ee=0;var n=$.__H||($.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:en}),n.__[e]}function ec(){for(var e;e=et.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eu),e.__H.__h.forEach(ep),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}}d.__b=function(e){$=null,er&&er(e)},d.__r=function(e){ei&&ei(e),K=0;var t=($=e.__c).__H;t&&(X===$?(t.__h=[],$.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=en,e.__N=e.i=void 0})):(t.__h.forEach(eu),t.__h.forEach(ep),t.__h=[])),X=$},d.diffed=function(e){es&&es(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==et.push(t)&&J===d.requestAnimationFrame||((J=d.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ed&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ed&&(t=requestAnimationFrame(n))})(ec)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==en&&(e.__=e.__V),e.i=void 0,e.__V=en})),X=$=null},d.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eu),e.__h=e.__h.filter(function(e){return!e.__||ep(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],d.__e(n,e.__v)}}),eo&&eo(e,t)},d.unmount=function(e){ea&&ea(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{eu(e)}catch(e){t=e}}),n.__H=void 0,t&&d.__e(t,n.__v))};var ed="function"==typeof requestAnimationFrame;function eu(e){var t=$,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),$=t}function ep(e){var t=$;e.__c=e.__(),$=t}function eh(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ef(e,t){return"function"==typeof t?t(e):t}function eg(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 em(e){this.props=e}(em.prototype=new L).isPureReactComponent=!0,em.prototype.shouldComponentUpdate=function(e,t){return eg(this.props,e)||eg(this.state,t)};var ev=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ev&&ev(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var ey=d.__e;d.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}ey(e,t,n,r)};var eb=d.unmount;function eD(){this.__u=0,this.t=null,this.__b=null}function ew(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function eE(){this.u=null,this.o=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),eb&&eb(e)},(eD.prototype=new L).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ew(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,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(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.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},eD.prototype.componentWillUnmount=function(){this.t=[]},eD.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&&T(O,null,e.fallback);return i&&(i.__h=null),[T(O,null,t.__a?null:e.children),i]};var eS=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 eC(e){return this.getChildContext=function(){return e.context},e.children}function e_(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(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Z(T(eC,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(eE.prototype=new L).__a=function(e){var t=this,n=ew(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),eS(t,e,r)):i()};n?n(s):s()}},eE.prototype.render=function(e){this.u=null,this.o=new Map;var t=W(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},eE.prototype.componentDidUpdate=eE.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){eS(e,n,t)})};var eA="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ex=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ek="undefined"!=typeof document;L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(L.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var eR=d.event;function eT(){}function eM(){return this.cancelBubble}function eN(){return this.defaultPrevented}d.event=function(e){return eR&&(e=eR(e)),e.persist=eT,e.isPropagationStopped=eM,e.isDefaultPrevented=eN,e.nativeEvent=e};var eO,eI={configurable:!0,get:function(){return this.class}},eP=d.vnode;d.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var s in r={},n){var o,a=n[s];ek&&"children"===s&&"noscript"===t||"value"===s&&"defaultValue"in n&&null==a||("defaultValue"===s&&"value"in n&&null==n.value?s="value":"download"===s&&!0===a?a="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+t)&&(o=n.type,!("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(o))?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&ex.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(s)&&r[s=s.toLowerCase()]&&(s="oninputCapture"),r[s]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=W(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=W(n.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),e.props=r,n.class!=n.className&&(eI.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",eI))}e.$$typeof=eA,eP&&eP(e)};var ej=d.__r;d.__r=function(e){ej&&ej(e),e.__c};let eH=[],eL=new Map;function eF(e){eH.push(e),eL.forEach(t=>{eB(t,e)})}function eU(e){let t=eL.get(e);if(!t||!t.isConnected){if(!(t=e.querySelector("style[data-fullcalendar]"))){(t=document.createElement("style")).setAttribute("data-fullcalendar","");let n=(void 0===r&&(r=function(){let e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");let t=document.querySelector("script[nonce]");return t&&t.nonce||""}()),r);n&&(t.nonce=n);let i=e===document?document.head:e,s=e===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(t,s)}eL.set(e,t),function(e){for(let t of eH)eB(e,t)}(t)}}function eB(e,t){let{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)})}"undefined"!=typeof document&&eU(document),eF(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');class ez{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;e in n&&(t?delete n[e]:(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 eW(e){e.parentNode&&e.parentNode.removeChild(e)}function eY(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}let eV=/(top|left|right|bottom|width|height)$/i;function eQ(e,t){for(let n in t)eG(e,n,t[n])}function eG(e,t,n){null==n?e.style[t]="":"number"==typeof n&&eV.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function eq(e){var t,n;return null!=(n=null==(t=e.composedPath)?void 0:t.call(e)[0])?n:e.target}let eZ=0;function eK(){return"fc-dom-"+(eZ+=1)}function e$(e){e.preventDefault()}function eX(e,t,n,r){let i=e=>{let t=eY(e.target,n);t&&r.call(t,e,t)};return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}let eJ=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function e0(e){return Object.assign({onClick:e},e1(e))}function e1(e){return{tabIndex:0,onKeyDown(t){("Enter"===t.key||" "===t.key)&&(e(t),t.preventDefault())}}}let e2=0;function e4(){return String(e2+=1)}function e3(){document.body.classList.add("fc-not-allowed")}function e5(){document.body.classList.remove("fc-not-allowed")}function e8(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function e6(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function e9(e,t){return e-t}let e7=["years","months","days","milliseconds"],te=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function tt(e,t){return"string"==typeof e?function(e){let t=te.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*((t[3]?parseInt(t[3],10):0)*36e5+(t[4]?parseInt(t[4],10):0)*6e4+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?tn(e):"number"==typeof e?tn({[t||"milliseconds"]:e}):null}function tn(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*6e4+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 tr(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ti(e){return ts(e)/864e5}function ts(e){return e.years*(365*864e5)+e.months*(30*864e5)+864e5*e.days+e.milliseconds}function to(e,t){let n=null;for(let r=0;r<e7.length;r+=1){let i=e7[r];if(t[i]){let r=e[i]/t[i];if(r%1!=0||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n}function ta(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 tl(e,t,n){let r;if(e===t)return!0;let 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}let tc=["sun","mon","tue","wed","thu","fri","sat"];function td(e,t){let n=tb(e);return n[2]+=7*t,tD(n)}function tu(e,t){let n=tb(e);return n[2]+=t,tD(n)}function tp(e,t){let n=tb(e);return n[6]+=t,tD(n)}function th(e,t){return(t.valueOf()-e.valueOf())/864e5}function tf(e,t){return tE(e)===tE(t)?Math.round(th(e,t)):null}function tg(e){return tD([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function tm(e,t,n,r){var i;let s;return Math.floor(Math.round(th(tD([t,0,1+(-((7+tD([t,0,s=7+(i=n)-r]).getUTCDay()-i)%7)+s-1)]),tg(e)))/7)+1}function tv(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function ty(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 tb(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function tD(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function tw(e){return!isNaN(e.valueOf())}function tE(e){return 1e3*e.getUTCHours()*3600+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function tS(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",t_(t,!0)))),r}function tC(e){return e.toISOString().replace(/T.*$/,"")}function t_(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+e8(i,2)}:${e8(s,2)}`:`GMT${n}${i}${s?`:${e8(s,2)}`:""}`}function tA(e,t,n){let r,i;return function(...s){if(r){if(!tl(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 tx(e,t,n){let r,i;return s=>{if(r){if(!t3(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}}let tk={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},tR={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},tT=/\s*([ap])\.?m\.?/i,tM=/,/g,tN=/\s+/g,tO=/\u200e/g,tI=/UTC|GMT/;class tP{constructor(e){let t={},n={},r=0;for(let i in e)i in tk?(n[i]=e[i],r=Math.max(tk[i],r)):(t[i]=e[i],i in tR&&(r=Math.max(tR[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=tA(tj)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){var i,s,o;let{standardDateProps:a,extendedSettings:l}=this,c=(i=e.marker,s=t.marker,(o=n.calendarSystem).getMarkerYear(i)!==o.getMarkerYear(s)?5:o.getMarkerMonth(i)!==o.getMarkerMonth(s)?4:o.getMarkerDay(i)!==o.getMarkerDay(s)?2:+(tE(i)!==tE(s)));if(!c)return this.format(e,n);let d=c;d>1&&("numeric"===a.year||"2-digit"===a.year)&&("numeric"===a.month||"2-digit"===a.month)&&("numeric"===a.day||"2-digit"===a.day)&&(d=1);let u=this.format(e,n),p=this.format(t,n);if(u===p)return u;let h=tj(function(e,t){let n={};for(let r in e)r in tR&&!(tR[r]<=t)||(n[r]=e[r]);return n}(a,d),l,n),f=h(e),g=h(t),m=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}(u,f,p,g),v=l.separator||r||n.defaultSeparator||"";return m?m.before+f+v+g+m.after:u+v+p}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 tj(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>t_(e.timeZoneOffset):0===r&&t.week?e=>{var r,i,s,o,a;let l;return r=n.computeWeekNumber(e.marker),i=n.weekText,s=n.weekTextLong,o=n.locale,a=t.week,l=[],"long"===a?l.push(s):("short"===a||"narrow"===a)&&l.push(i),("long"===a||"short"===a)&&l.push(" "),l.push(o.simpleNumberFormat.format(r)),"rtl"===o.options.direction&&l.reverse(),l.join("")}:function(e,t,n){var r,i;let s;e=Object.assign({},e),t=Object.assign({},t),r=e,i=t,r.timeZoneName&&(r.hour||(r.hour="2-digit"),r.minute||(r.minute="2-digit")),"long"===r.timeZoneName&&(r.timeZoneName="short"),i.omitZeroMinute&&(r.second||r.millisecond)&&delete i.omitZeroMinute,e.timeZone="UTC";let o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,s=new Intl.DateTimeFormat(n.locale.codes,t)}return r=>{var i,a,l,c,d,u,p;let h,f,{marker:g}=r;return i=(s&&!g.getUTCMinutes()?s:o).format(g),a=r,l=e,c=t,d=n,i=i.replace(tO,""),"short"===l.timeZoneName&&(u=i,p="UTC"===d.timeZone||null==a.timeZoneOffset?"UTC":t_(a.timeZoneOffset),h=!1,u=u.replace(tI,()=>(h=!0,p)),h||(u+=` ${p}`),i=u),c.omitCommas&&(i=i.replace(tM,"").trim()),c.omitZeroMinute&&(i=i.replace(":00","")),!1===c.meridiem?i=i.replace(tT,"").trim():"narrow"===c.meridiem?i=i.replace(tT,(e,t)=>t.toLocaleLowerCase()):"short"===c.meridiem?i=i.replace(tT,(e,t)=>`${t.toLocaleLowerCase()}m`):"lowercase"===c.meridiem&&(i=i.replace(tT,e=>e.toLocaleLowerCase())),i=(i=i.replace(tN," ")).trim()}}(e,t,n)}function tH(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 tL(e,t,n,r){let i=tH(e,n.calendarSystem);return{date:i,start:i,end:t?tH(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class tF{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,tL(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,tL(e,t,n,r))}}class tU{constructor(e){this.func=e}format(e,t,n){return this.func(tL(e,null,t,n))}formatRange(e,t,n,r){return this.func(tL(e,t,n,r))}}function tB(e){return"object"==typeof e&&e?new tP(e):"string"==typeof e?new tF(e):"function"==typeof e?new tU(e):null}let tz={navLinkDayClick:t$,navLinkWeekClick:t$,duration:tt,bootstrapFontAwesome:t$,buttonIcons:t$,customButtons:t$,defaultAllDayEventDuration:tt,defaultTimedEventDuration:tt,nextDayThreshold:tt,scrollTime:tt,scrollTimeReset:Boolean,slotMinTime:tt,slotMaxTime:tt,dayPopoverFormat:tB,slotDuration:tt,snapDuration:tt,headerToolbar:t$,footerToolbar:t$,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:tB,dayHeaderClassNames:t$,dayHeaderContent:t$,dayHeaderDidMount:t$,dayHeaderWillUnmount:t$,dayCellClassNames:t$,dayCellContent:t$,dayCellDidMount:t$,dayCellWillUnmount:t$,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:t$,weekNumbers:Boolean,weekNumberClassNames:t$,weekNumberContent:t$,weekNumberDidMount:t$,weekNumberWillUnmount:t$,editable:Boolean,viewClassNames:t$,viewDidMount:t$,viewWillUnmount:t$,nowIndicator:Boolean,nowIndicatorClassNames:t$,nowIndicatorContent:t$,nowIndicatorDidMount:t$,nowIndicatorWillUnmount:t$,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:t$,locale:t$,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:t$,eventOrder:function(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)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:t$,contentHeight:t$,direction:String,weekNumberFormat:tB,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:t$,initialDate:t$,now:t$,eventDataTransform:t$,stickyHeaderDates:t$,stickyFooterScrollbar:t$,viewHeight:t$,defaultAllDay:Boolean,eventSourceFailure:t$,eventSourceSuccess:t$,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:t$,eventConstraint:t$,eventAllow:t$,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:t$,eventContent:t$,eventDidMount:t$,eventWillUnmount:t$,selectConstraint:t$,selectOverlap:t$,selectAllow:t$,droppable:Boolean,unselectCancel:String,slotLabelFormat:t$,slotLaneClassNames:t$,slotLaneContent:t$,slotLaneDidMount:t$,slotLaneWillUnmount:t$,slotLabelClassNames:t$,slotLabelContent:t$,slotLabelDidMount:t$,slotLabelWillUnmount:t$,dayMaxEvents:t$,dayMaxEventRows:t$,dayMinWidth:Number,slotLabelInterval:tt,allDayText:String,allDayClassNames:t$,allDayContent:t$,allDayDidMount:t$,allDayWillUnmount:t$,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:tB,rerenderDelay:Number,moreLinkText:t$,moreLinkHint:t$,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:t$,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:tt,hiddenDays:t$,fixedWeekCount:Boolean,validRange:t$,visibleRange:t$,titleFormat:t$,eventInteractive:Boolean,noEventsText:String,viewHint:t$,navLinkHint:t$,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:t$,moreLinkClassNames:t$,moreLinkContent:t$,moreLinkDidMount:t$,moreLinkWillUnmount:t$,monthStartFormat:tB,handleCustomRendering:t$,customRenderingMetaMap:t$,customRenderingReplaces:Boolean},tW={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},tY={datesSet:t$,eventsSet:t$,eventAdd:t$,eventChange:t$,eventRemove:t$,windowResize:t$,eventClick:t$,eventMouseEnter:t$,eventMouseLeave:t$,select:t$,unselect:t$,loading:t$,_unmount:t$,_beforeprint:t$,_afterprint:t$,_noEventDrop:t$,_noEventResize:t$,_resize:t$,_scrollRequest:t$},tV={buttonText:t$,buttonHints:t$,views:t$,plugins:t$,initialEvents:t$,events:t$,eventSources:t$},tQ={headerToolbar:tG,footerToolbar:tG,buttonText:tG,buttonHints:tG,buttonIcons:tG,dateIncrement:tG,plugins:tq,events:tq,eventSources:tq,resources:tq};function tG(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?t3(e,t):e===t}function tq(e,t){return Array.isArray(e)&&Array.isArray(t)?tl(e,t):e===t}let tZ={type:String,component:t$,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:t$,usesMinMaxTime:Boolean,classNames:t$,content:t$,didMount:t$,willUnmount:t$};function tK(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 t$(e){return e}let{hasOwnProperty:tX}=Object.prototype;function tJ(e,t){let n={};if(t){for(let r in t)if(t[r]===tG){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]=tJ(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 t0(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function t1(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function t2(e){let t={};for(let n of e)t[n]=!0;return t}function t4(e){let t=[];for(let n in e)t.push(e[n]);return t}function t3(e,t){if(e===t)return!0;for(let n in e)if(tX.call(e,n)&&!(n in t))return!1;for(let n in t)if(tX.call(t,n)&&e[n]!==t[n])return!1;return!0}let t5=/^on[A-Z]/;function t8(e,t){let n=[];for(let r in e)!tX.call(e,r)||r in t||n.push(r);for(let r in t)tX.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function t6(e,t,n={}){if(e===t)return!0;for(let o in t){var r,i,s;if(!(o in e&&(r=e[o],i=t[o],s=n[o],r===i||!0===s||s&&s(r,i))))return!1}for(let n in e)if(!(n in t))return!1;return!0}let t9={};class t7{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return tD(e)}markerToArray(e){return tb(e)}}t9.gregory=t7;let ne=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class nt{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=new t9[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()):tD(tv(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?isNaN(e=e.valueOf())||(t=this.timestampToMarker(e)):Array.isArray(e)&&(t=tD(e)),null!==t&&tw(t))?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=ne.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(tw(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}(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 tE(e)===tE(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 tE(e)===tE(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let n,r=this.diffWholeYears(e,t);return null!==r?{unit:"year",value:r}:null!==(r=this.diffWholeMonths(e,t))?{unit:"month",value:r}:null!==(r=null!==(n=tf(e,t))&&n%7==0?n/7:null)?{unit:"week",value:r}:null!==(r=tf(e,t))?{unit:"day",value:r}:(r=(t.valueOf()-e.valueOf())/36e5)%1==0?{unit:"hour",value:r}:(r=(t.valueOf()-e.valueOf())/6e4)%1==0?{unit:"minute",value:r}:(r=(t.valueOf()-e.valueOf())/1e3)%1==0?{unit:"second",value:r}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}}countDurationsBetween(e,t,n){let r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(ti(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/(ti(n)/30):n.days&&null!==(r=tf(e,t))?r/ti(n):(t.valueOf()-e.valueOf())/ts(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?tg(e):"hour"===t?tD([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()]):"minute"===t?tD([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()]):"second"===t?tD([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()]):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=tm(e,r,t,n);if(i<1)return tm(e,r-1,t,n);let s=tm(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=tp(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)),tS(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?tD(tv(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?tD(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-ty(tb(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(tb(e)):null}toDate(e,t){return"local"===this.timeZone?ty(tb(e)):new Date("UTC"===this.timeZone?e.valueOf():this.namedTimeZoneImpl?e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(tb(e))*60:e.valueOf()-(t||0))}}class nn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function nr(e){e();let t=d.debounceRendering,n=[];for(d.debounceRendering=function(e){n.push(e)},Z(T(ni,{}),document.createElement("div"));n.length;)n.shift()();d.debounceRendering=t}nn.prototype.classes={},nn.prototype.iconClasses={},nn.prototype.baseIconClass="",nn.prototype.iconOverridePrefix="";class ni extends L{render(){return T("div",{})}componentDidMount(){this.setState({})}}function ns(e){var t,n,r;let i=(t=e,(r={__c:n="__cC"+m++,__:t,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(function(e){e.__e=!0,U(e)})},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=r.Consumer.contextType=r),s=i.Provider;return i.Provider=function(){let e=!this.getChildContext,t=s.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},i}class no{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}let na=ns({});function nl(e,t,n,r,i,s,o,a,l,c,d,u,p){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:a,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder:e=>new no(e,c,tt(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:u,unregisterInteractiveComponent:p}}class nc extends L{shouldComponentUpdate(e,t){return this.debug&&console.log(t8(e,this.props),t8(t,this.state)),!t6(this.props,e,this.propEquality)||!t6(this.state,t,this.stateEquality)}safeSetState(e){t6(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}nc.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},nc.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},nc.contextType=na,nc.prototype.propEquality={},nc.prototype.stateEquality={};class nd extends nc{}function nu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}nd.contextType=na;class np extends nd{constructor(){super(...arguments),this.id=e4(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&nh(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&nu(this.props.elRef,e)}}render(){let e,t,{props:n,context:r}=this,{options:i}=r,{customGenerator:s,defaultGenerator:o,renderProps:a}=n,l=nf(n,[],this.handleEl),c=!1,d=[];if(null!=s){let n="function"==typeof s?s(a,T):s;if(!0===n)c=!0;else{let r=n&&"object"==typeof n;if(r&&"html"in n)l.dangerouslySetInnerHTML={__html:n.html};else if(r&&"domNodes"in n)d=Array.prototype.slice.call(n.domNodes);else(r?null!=n&&void 0===n.constructor:"function"!=typeof n)?e=n:t=n}}else c=!nh(n.generatorName,i);return c&&o&&(e=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=t,T(n.elTag,l,e)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;let{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=r.options;if(i){let r=null!=(t=this.currentGeneratorMeta)?t:null==s?void 0:s[n.generatorName];r&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(ng)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!tl(e,t)){for(let r of(t.forEach(eW),e))n.appendChild(r);this.currentDomNodes=e}}}function nh(e,t){var n;return!!(t.handleCustomRendering&&e&&(null==(n=t.customRenderingMetaMap)?void 0:n[e]))}function nf(e,t,n){let r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function ng(e){return!!e}np.addPropsEquality({elClasses:tl,elStyle:t3,elAttrs:function(e,t){for(let n of t8(e,t))if(!t5.test(n))return!1;return!0},renderProps:t3});let nm=ns(0);class nv extends L{constructor(){super(...arguments),this.InnerContent=ny.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(nu(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:e}=this,t=function(e,t){let n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(!e.children)return T(np,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}));{let n=nf(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?T(e.elTag,n,r):r}}componentDidMount(){var e,t;this.el?null==(t=(e=this.props).didMount)||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)||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function ny(e,t){let n=e.props;return T(np,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}nv.contextType=nm;class nb extends nd{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return T(nv,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...nD(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function nD(e){return[`fc-${e.type}-view`,"fc-view"]}function nw(e,t){let n,r,i=[],{start:s}=t;for(e.sort(nE),n=0;n<e.length;n+=1)(r=e[n]).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 nE(e,t){return e.start.valueOf()-t.start.valueOf()}function nS(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 nC(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function n_(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function nA(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function nx(e){let t=Math.floor(th(e.start,e.end))||1,n=tg(e.start),r=tu(n,t);return{start:n,end:r}}function nk(e,t=tt(0)){let n=null,r=null;if(e.end){r=tg(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=ts(t)&&(r=tu(r,1))}return e.start&&(n=tg(e.start),r&&r<=n&&(r=tu(n,1))),{start:n,end:r}}function nR(e,t,n,r){let i,s;return"year"===r?tt(n.diffWholeYears(e,t),"year"):"month"===r?tt(n.diffWholeMonths(e,t),"month"):{years:0,months:0,days:Math.round(th(i=tg(e),s=tg(t))),milliseconds:t.valueOf()-s.valueOf()-(e.valueOf()-i.valueOf())}}function nT(e,t){return("function"==typeof e&&(e=e()),null==e)?t.createNowMarker():t.createMarker(e)}class nM{constructor(e){this.props=e,this.nowDate=nT(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){var r,i;let s,o,a,l,c,d,{props:u}=this;return s=this.buildValidRange(),s=this.trimHiddenDays(s),n&&(r=e,e=null!=(i=s).start&&r<i.start?i.start:null!=i.end&&r>=i.end?new Date(i.end.valueOf()-1):r),o=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(o.unit),l=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),c=l=this.trimHiddenDays(l),u.showNonCurrentDates||(c=nS(c,o.range)),c=nS(c=this.adjustActiveRange(c),s),d=nC(o.range,s),nA(l,e)||(e=l.start),{currentDate:e,validRange:s,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:c,renderRange:l,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(o.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:(s=ta(i=this.getFallbackDuration()).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return tt({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:s,end:o}=e;return n&&(0>ti(r)&&(s=tg(s),s=t.add(s,r)),ti(i)>1&&(o=tu(o=tg(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&&ts(e)<ts(n)?ta(e).unit:r}function c(){i=a.startOf(e,l),s=a.add(i,n),o={start:i,end:s}}return 1>=ti(n)&&this.isHiddenDay(i)&&(i=tg(i=this.skipHiddenDays(i,t))),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=tg(a),r=a=this.skipHiddenDays(a,t);do r=tu(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)?null:i}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?tt(1,t):e||tt({days:1}))}refineRange(e){if(e){var t;let n,r,i=(t=this.props.dateEnv,n=null,r=null,(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});return i&&(i=nk(i)),i}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 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=tu(e,t);return e}}function nN(e,t,n,r){return{instanceId:e4(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function nO(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;for(let e in a=t0(a,e=>!o[e.defId].recurringDef),o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;for(let l of(o||(o=n.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration),function(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(tg)),s}(n,o,t,r,i.recurringTypes))){let t=nN(e,{start:l,end:r.add(l,o)});a[t.instanceId]=t}}}return{defs:o,instances:a}}let nI={id:String,groupId:String,title:String,url:String,interactive:Boolean},nP={start:t$,end:t$,date:t$,allDay:Boolean},nj=Object.assign(Object.assign(Object.assign({},nI),nP),{extendedProps:t$});function nH(e,t,n,r,i=nF(n),s,o){var a,l;let c,{refined:d,extra:u}=nL(e,n,i),p=(a=t,l=n,c=null,a&&(c=a.defaultAllDay),null==c&&(c=l.options.defaultAllDay),c),h=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&&null==(n=t)&&null==(n=s.allDayGuess)&&(n=!1),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}(d,p,n.dateEnv,n.pluginHooks.recurringTypes);if(h){let e=nU(d,u,t?t.sourceId:"",h.allDay,!!h.duration,n,s);return e.recurringDef={typeId:h.typeId,typeData:h.typeData,duration:h.duration},{def:e,instance:null}}let f=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))a=i.marker;else if(!r)return null;return null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end)),null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified)),o&&a&&(a=tg(a)),s&&(c=s.marker,o&&(c=tg(c)),a&&c<=a&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(d,p,n,r);if(f){let e=nU(d,u,t?t.sourceId:"",f.allDay,f.hasEnd,n,s),r=nN(e.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function nL(e,t,n=nF(t)){return tK(e,n)}function nF(e){return Object.assign(Object.assign(Object.assign({},nq),nj),e.pluginHooks.eventRefiners)}function nU(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]:"")||e4(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:nK(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 nB(e,t,n,r,i,s){let o=nY(),a=nF(n);for(let l of e){let e=nH(l,t,n,r,a,i,s);e&&nz(e,o)}return o}function nz(e,t=nY()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function nW(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=nQ(e,e=>{var n,r;return n=t,r=e,!!(n.groupId&&n.groupId===r.groupId)});return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return nY()}function nY(){return{defs:{},instances:{}}}function nV(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function nQ(e,t){let n=t0(e.defs,t),r=t0(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function nG(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}let nq={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:t$,overlap:t$,allow:t$,className:nG,classNames:nG,color:String,backgroundColor:String,borderColor:String,textColor:String},nZ={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function nK(e,t){var n;let r=(n=e.constraint,Array.isArray(n)?nB(n,null,t,!0):"object"==typeof n&&n?nB([n],null,t,!0):null!=n?String(n):null);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=r?[r]:[],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 n$(e){return e.reduce(nX,nZ)}function nX(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)}}let nJ={id:String,defaultAllDay:Boolean,url:String,format:String,events:t$,eventDataTransform:t$,success:t$,failure:t$};function n0(e,t,n=n1(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}=tK(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:e4(),sourceDefId:o.sourceDefId,meta:o.meta,ui:nK(i,t),extendedProps:s}}return null}function n1(e){return Object.assign(Object.assign(Object.assign({},nq),nJ),e.pluginHooks.eventSourceRefiners)}function n2(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=n4(e,i)),r&&(e=n4(e,r)),e}function n4(e,t){let n;if(t)for(let r of(n=[],e)){let e=t(r);e?n.push(e):null==e&&n.push(r)}else n=e;return n}function n3(e,t,n){let{defs:r}=e,i=t1(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 n5(e,t){return nQ(e,e=>e.sourceId!==t)}class n8{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){var n,r,i;n=this.handlers,r=e,i=t,(n[r]||(n[r]=[])).push(i)}off(e,t){var n,r,i;n=this.handlers,r=e,(i=t)?n[r]&&(n[r]=n[r].filter(e=>e!==i)):delete n[r]}trigger(e,...t){let n=this.handlers[e]||[];for(let r of[].concat(this.options&&this.options[e]||[],n))r.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}let n6={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function n9(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},n7(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function n7(e,t){var n,r;let i={};for(let n of t.pluginHooks.dateSpanTransforms)Object.assign(i,n(e,t));return Object.assign(i,(n=e,r=t.dateEnv,Object.assign(Object.assign({},ry(n.range,r,n.allDay)),{allDay:n.allDay}))),i}function re(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=tg(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function rt(e,t,n,r){let i=rl(e.defs,t),s=nY();for(let t in e.defs){let o=e.defs[t];s.defs[t]=function(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)});for(let e of(n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps)),r.pluginHooks.eventDefMutationAppliers))e(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=s.defs[o.defId];s.instances[t]=function(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=nx(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:re(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:tg(l.range.start),end:tg(l.range.end)}),l.range.end<l.range.start&&(l.range.end=re(t.allDay,l.range.start,i)),l}(o,a,i[o.defId],n,r)}return s}class rn{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 rr{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in nP)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=nI[e](t),this.mutate({standardProps:{publicId:t}});else if(e in nI)t=nI[e](t),this.mutate({standardProps:{[e]:t}});else if(e in nq){let n=nq[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=nR(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){let e=nR(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:i}=this._context,s={allDay:n.allDay},o=i.createMarker(e);if(o){if(null!=t&&!(r=i.createMarker(t)))return;if(this._instance){let e=this._instance.range;!0===n.allDay&&(e=nx(e));let t=nR(e.start,o,i,n.granularity);if(r){let o=nR(e.end,r,i,n.granularity);t.years===o.years&&t.months===o.months&&t.days===o.days&&t.milliseconds===o.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=tt(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=tt(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=tt(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=tB(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=nW(i,t.instanceId);s=rt(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new rr(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:rs(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=ri(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 rn(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 ri(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function rs(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 rr(t,a,n))}return s}function ro(e,t,n,r){let i={},s={},o={},a=[],l=[],c=rl(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],p=o.range,h=!d.allDay&&r?nk(p,r):p,f=nS(h,n);f&&("inverse-background"===u.display?d.groupId?i[d.groupId].push(f):s[o.defId].push(f):"none"!==u.display&&("background"===u.display?a:l).push({def:d,ui:u,instance:o,range:f,isStart:h.start&&h.start.valueOf()===f.start.valueOf(),isEnd:h.end&&h.end.valueOf()===f.end.valueOf()}))}for(let e in i)for(let t of nw(i[e],n)){let n=o[e],r=c[n.defId];a.push({def:n,ui:r,instance:null,range:t,isStart:!1,isEnd:!1})}for(let t in s)for(let r of nw(s[t],n))a.push({def:e.defs[t],ui:c[t],instance:null,range:r,isStart:!1,isEnd:!1});return{bg:a,fg:l}}function ra(e){return e.fcSeg||e.parentNode.fcSeg||null}function rl(e,t){return t1(e,e=>rc(e,t))}function rc(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),n$(n)}function rd(e,t){let n=e.map(ru);return n.sort((e,n)=>(function(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=function(e,t,n){var r,i;return n.func?n.func(e,t):(r=e[n.field],i=t[n.field],(r||i?null==i?-1:null==r?1:"string"==typeof r||"string"==typeof i?String(r).localeCompare(String(i)):r-i:0)*(n.order||1))}(e,t,n[r]))return i;return 0})(e,n,t)),n.map(e=>e._seg)}function ru(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 rp(e,t,n,r,i,s,o){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,p=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==i);let h=p.range.start,f=p.range.end,g=s||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=tg(h).valueOf()===tg(g).valueOf(),y=tg(tp(f,-1)).valueOf()===tg(tp(m,-1)).valueOf();return c&&!u.allDay&&(v||y)?(g=v?h:g,m=y?f:m,d&&u.hasEnd)?a.formatRange(g,m,t,{forcedStartTzo:s?null:p.forcedStartTzo,forcedEndTzo:o?null:p.forcedEndTzo}):a.format(g,t,{forcedTzo:s?null:p.forcedStartTzo}):""}function rh(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&nA(t,r.start)}}function rf(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function rg(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=t,{eventInteractive:a}=o;return(null==a&&null==(a=n.interactive)&&(a=!!s.hasHandlers("eventClick")),a)?e1(e=>{s.trigger("eventClick",{el:e.target,event:new rr(t,n,r),jsEvent:e,view:t.viewApi})}):{}}let rm={start:t$,end:t$,allDay:Boolean};function rv(e,t,n){return Object.assign(Object.assign({},ry(e,t,n)),{timeZone:t.timeZone})}function ry(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})}}class rb extends Error{constructor(e,t){super(e),this.response=t}}function rD(){return null==i&&(i=function(){if("undefined"==typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),i}class rw extends nd{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{nr(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{nr(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,s=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return rD()||s.push("fc-liquid-hack"),e.children(s,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class rE{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function rS(e){return{[e.component.uid]:e}}let rC={};class r_{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):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,r=this.getCurrentData();t=t||"day",n=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let e in r)s.push(e);for(t=0;t<s.length;t+=1)if((n=r[s[t]])&&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:nT(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=tt(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),tB(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),tB(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=function(e,t,n){let r=function(e,t){let{refined:n,extra:r}=tK(e,rm),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;return null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}(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}(n,r.dateEnv,tt({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),n9(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view}))}addEvent(e,t){let n;if(e instanceof rr){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:nz({def:t,instance:n})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData();if(t instanceof rn)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=t4(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=nH(e,n,r,!1);if(i){let e=new rr(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:nz(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:ri(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;for(let i in e=String(e),n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new rr(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new rr(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return rs(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 rn(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;for(let r in e=String(e),n)if(n[r].publicId===e)return new rn(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof rn)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=n0(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new rn(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=tt(e);t&&this.trigger("_scrollRequest",{time:t})}}function rA(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}let rx=nY();class rk{constructor(){this.getKeysForEventDefs=tA(this._getKeysForEventDefs),this.splitDateSelection=tA(this._splitDateSpan),this.splitEventStore=tA(this._splitEventStore),this.splitIndividualUi=tA(this._splitIndividualUi),this.splitEventDrag=tA(this._splitInteraction),this.splitEventResize=tA(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={};for(let n in this.eventUiBuilders=t1(t,(e,t)=>this.eventUiBuilders[t]||tA(rR)),t){let c=t[n],d=s[n]||rx,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]),eventSelection:d.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[n]||null,eventResize:a[n]||null}}return l}_splitDateSpan(e){let t={};if(e)for(let n of this.getKeysForDateSpan(e))t[n]=e;return t}_getKeysForEventDefs(e){return t1(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]=nY()),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]||rx,mutatedEvents:i[r]||rx,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}}function rR(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":n$(r)};return n&&Object.assign(i,n),i}function rT(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&!nA(r.activeRange,e)),isOther:!!(r&&!nA(r.currentRange,e)),isToday:!!(t&&nA(t,e)),isPast:!!(n?e<n:!!t&&e<t.start),isFuture:!!(n?e>n:!!t&&e>=t.end)}}function rM(e,t){let n=["fc-day",`fc-day-${tc[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}let rN=tB({year:"numeric",month:"long",day:"numeric"}),rO=tB({week:"long"});function rI(e,t,n="day",r=!0){let{dateEnv:i,options:s,calendarApi:o}=e,a=i.format(t,"week"===n?rO:rN);if(s.navLinks){let e=i.toDate(t),l=e=>{let r="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"==typeof r?r.call(o,i.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:e6(s.navLinkHint,[a,e],a),"data-navlink":""},r?e0(l):{onClick:l})}return{"aria-label":a}}let rP=null;function rj(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function rH(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 rL(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}class rF{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 rU(this.tops||[],e.tops||[])&&rU(this.bottoms||[],e.bottoms||[])&&rU(this.lefts||[],e.lefts||[])&&rU(this.rights||[],e.rights||[])}}function rU(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class rB{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 rz extends rB{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 rW extends rB{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 rY extends nd{constructor(){super(...arguments),this.uid=e4()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!eY(e,".fc-event-mirror")}isValidDateDownEl(e){return!eY(e,".fc-event:not(.fc-bg-event)")&&!eY(e,".fc-more-link")&&!eY(e,"a[data-navlink]")&&!eY(e,".fc-popover")}}class rV{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){let r=Object.assign(Object.assign({},t),{span:rq(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,i=t.span;r.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:i.start}},n),r.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(rZ(r,t.level,t.levelCoord),rZ(n,t.level,[e])):rZ(n[t.level],t.lateral,e),this.stackCnts[rG(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,s=t.length,o=0,a=-1,l=-1,c=null,d=0;for(let u=0;u<s;u+=1){let s,p=t[u];if(!r&&p>=o+this.getEntryThickness(e))break;let h=n[u],f=rK(h,e.span.start,rQ),g=f[0]+f[1];for(;(s=h[g])&&s.span.start<e.span.end;){let e=p+this.getEntryThickness(s);e>o&&(o=e,c=s,a=u,l=g),e===o&&(d=Math.max(d,i[rG(s)]+1)),g+=1}}let u=0;if(c)for(u=a+1;u<s&&t[u]<o;)u+=1;let p=-1;return u<s&&t[u]===o&&(p=rK(n[u],e.span.end,rQ)[0]),{touchingLevel:a,touchingLateral:l,touchingEntry:c,stackCnt:d,levelCoord:o,level:u,lateral:p}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],s=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:s}))}return r}}function rQ(e){return e.span.end}function rG(e){return e.index+":"+e.span.start}function rq(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function rZ(e,t,n){e.splice(t,0,n)}function rK(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 r${constructor(e,t){this.emitter=new n8}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}let rX={},rJ="fc-col-header-cell";function r0(e){return e.text}class r1 extends nd{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:s,dateProfile:o}=i,a=rT(s,i.todayRange,null,o),l=[rJ].concat(rM(a,n)),c=e.format(s,i.dayHeaderFormat),d=!a.isDisabled&&i.colCnt>1?rI(this.context,s):{},u=Object.assign(Object.assign(Object.assign({date:e.toDate(s),view:r},i.extraRenderProps),{text:c}),a);return T(nv,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":a.isDisabled?void 0:tC(s)},i.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:r0,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},e=>T("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&T(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}}let r2=tB({weekday:"long"});class r4 extends nd{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,s=tu(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=t.format(s,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:s},o),{view:r}),e.extraRenderProps),{text:a});return T(nv,{elTag:"th",elClasses:[rJ,...rM(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:r0,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},n=>T("div",{className:"fc-scrollgrid-sync-inner"},T(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(s,r2)}})))}}class r3 extends L{constructor(e,t){super(e,t),this.initialNowDate=nT(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=tp(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,tt(1,e.unit)),s=i.valueOf()-n.valueOf();return s=Math.min(864e5,s),{currentState:{nowDate:r,todayRange:r5(r)},nextState:{nowDate:i,todayRange:r5(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 r5(e){let t=tg(e),n=tu(t,1);return{start:t,end:n}}r3.contextType=na;class r8 extends nd{constructor(){super(...arguments),this.createDayHeaderFormatter=tA(r6)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return T(r3,{unit:"day"},(e,o)=>T("tr",{role:"row"},i&&i("day"),t.map(e=>r?T(r1,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:s}):T(r4,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s}))))}}function r6(e,t,n){return e||(!t||n>10?tB({weekday:"short"}):n>1?tB({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):tB({weekday:"long"}))}class r9{constructor(e,t){let n=e.start,{end:r}=e,i=[],s=[],o=-1;for(;n<r;)t.isHiddenDay(n)?i.push(o+.5):(i.push(o+=1),s.push(n)),n=tu(n,1);this.dates=s,this.indices=i,this.cnt=s.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(tu(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(th(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class r7{constructor(e,t){let n,r,i,{dates:s}=e;if(t){for(n=1,r=s[0].getUTCDay();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.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:i}=n,s=e;for(;s<=i;){let o=Math.floor(s/t),a=Math.min((o+1)*t,i+1);r.push({row:o,firstCol:s%t,lastCol:(a-1)%t,isStart:n.isStart&&s===e,isEnd:n.isEnd&&a-1===i}),s=a}}return r}}class ie{constructor(){this.sliceBusinessHours=tA(this._sliceBusinessHours),this.sliceDateSelection=tA(this._sliceDateSpan),this.sliceEventStore=tA(this._sliceEventStore),this.sliceEventDrag=tA(this._sliceInteraction),this.sliceEventResize=tA(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:tp(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(nO(e,it(t,!!n),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=ro(e,t,it(n,!!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=ro(e.mutatedEvents,t,it(n,!!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=it(t,!!n),a=nS(e.range,o);if(a){var l;let t,n,o=(l=e=Object.assign(Object.assign({},e),{range:a}),{def:n=nU((t=nL({editable:!1},i)).refined,t.extra,"",l.allDay,!0,i),ui:rc(n,r),instance:nN(n.defId,l.range),range:l.range,isStart:!0,isEnd:!0}),c=this.sliceRange(e.range,...s);for(let e of c)e.eventRange=o;return c}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:tu(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 it(e,t){let n=e.activeRange;return t?n:{start:tp(n.start,e.slotMinTime.milliseconds),end:tp(n.end,e.slotMaxTime.milliseconds-864e5)}}function ir(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!n_(t.validRange,r[e].range))return!1;return ii({eventDrag:e},n)}function ii(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||function(e,t,n={},r){return(!e.eventDrag||!!function(e,t,n,r){var i,s;let o=t.getCurrentData(),a=e.eventDrag,l=a.mutatedEvents,c=l.defs,d=l.instances,u=rl(c,a.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(u=t1(u,r));let p=(i=e.eventStore,s=a.affectedEvents.instances,{defs:i.defs,instances:t0(i.instances,e=>!s[e.instanceId])}),h=p.defs,f=p.instances,g=rl(h,e.eventUiBases);for(let r in d){let i=d[r],s=i.range,l=u[i.defId],m=c[i.defId];if(!is(l.constraints,s,p,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in f){let n=f[e];if(nC(s,n.range)&&(!1===g[n.defId].overlap&&a.isEvent||!1===l.overlap||y&&!y(new rr(t,h[n.defId],n),new rr(t,m,i))))return!1}let b=o.eventStore;for(let e of l.allows){let s,o=Object.assign(Object.assign({},n),{range:i.range,allDay:m.allDay}),a=b.defs[m.defId],l=b.instances[r];if(s=a?new rr(t,a,l):new rr(t,m),!e(n7(o,t),s))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();if(r&&(c=r(c)),!is(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(nC(l,n.range)&&(!1===c.overlap||u&&!u(new rr(t,s[n.defId],n),null)))return!1}for(let e of c.allows)if(!e(n7(Object.assign(Object.assign({},n),a),t),null))return!1;return!0}(e,t,n,r))})(r,t)}function is(e,t,n,r,i){for(let s of e)if(!function(e,t){for(let n of e)if(n_(n,t))return!0;return!1}(function(e,t,n,r,i){return"businessHours"===e?io(nO(r,t,i)):"string"==typeof e?io(nQ(n,t=>t.groupId===e)):"object"==typeof e&&e?io(nO(e,t,i)):[]}(s,t,n,r,i),t))return!1;return!0}function io(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}let ia=/^(visible|hidden)$/;class il extends nd{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,nu(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),T("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(ia.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(ia.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return ia.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return ia.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ic{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,s=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,s=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),s&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return 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}(this.currentMap,e,t,n)}getAll(){return t4(this.currentMap)}}function id(e,t){return e.liquid&&t.liquid}function iu(e,t){return tl(e,t,t3)}function ip(e,t){let n=[];for(let i of e){let e=i.span||1;for(let s=0;s<e;s+=1){var r;n.push(T("col",{style:{width:"shrink"===i.width?null==(r=t)?4:r:i.width||"",minWidth:i.minWidth||""}}))}}return T("colgroup",{},...n)}function ih(e){return T("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ig(e){let{stickyHeaderDates:t}=e;return(null==t||"auto"===t)&&(t="auto"===e.height||"auto"===e.viewHeight),t}function im(e){let{stickyFooterScrollbar:t}=e;return(null==t||"auto"===t)&&(t="auto"===e.height||"auto"===e.viewHeight),t}class iv extends nd{constructor(){super(...arguments),this.processCols=tA(e=>e,iu),this.renderMicroColGroup=tA(ip),this.scrollerRefs=new ic,this.scrollerElRefs=new ic(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){var e;let t,n,{props:r,state:i,context:s}=this,o=r.sections||[],a=this.processCols(r.cols),l=this.renderMicroColGroup(a,i.shrinkWidth),c=(e=r.liquid,t=["fc-scrollgrid",s.theme.getClass("table")],e&&t.push("fc-scrollgrid-liquid"),t);r.collapsibleWidth&&c.push("fc-scrollgrid-collapsible");let d=o.length,u=0,p=[],h=[],f=[];for(;u<d&&"header"===(n=o[u]).type;)p.push(this.renderSection(n,l,!0)),u+=1;for(;u<d&&"body"===(n=o[u]).type;)h.push(this.renderSection(n,l,!1)),u+=1;for(;u<d&&"footer"===(n=o[u]).type;)f.push(this.renderSection(n,l,!0)),u+=1;let g=!rD(),m={role:"rowgroup"};return T("table",{role:"grid",className:c.join(" "),style:{height:r.height}},!!(!g&&p.length)&&T("thead",m,...p),!!(!g&&h.length)&&T("tbody",m,...h),!!(!g&&f.length)&&T("tfoot",m,...f),g&&T("tbody",m,...p,...h,...f))}renderSection(e,t,n){var r;let i;return"outerContent"in e?T(O,{key:e.key},e.outerContent):T("tr",{key:e.key,role:"presentation",className:(r=this.props.liquid,i=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className],r&&e.liquid&&null==e.maxHeight&&i.push("fc-scrollgrid-section-liquid"),e.isSticky&&i.push("fc-scrollgrid-section-sticky"),i).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:i}=this,{forceYScrollbars:s,scrollerClientWidths:o,scrollerClientHeights:a}=this.state,l=null!=e.maxHeight||id(i,e),c=id(i,e),d=i.liquid?s?"scroll":l?"auto":"hidden":"visible",u=e.key,p=function(e,t,n,r){let{expandRows:i}=n;return"function"==typeof t.content?t.content(n):T("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,T(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===o[u]?null:o[u],clientHeight:void 0!==a[u]?a[u]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return T(r?"th":"td",{ref:n.elRef,role:"presentation"},T("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},T(il,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&nu(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return!function(e){for(let t of e)if("shrink"===t.width)return!0;return!1}(this.props.cols)?0:function(e){let t=function(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].querySelectorAll(t);for(let e=0;e<i.length;e+=1)r.push(i[e])}return r}(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,function(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}(e));return Math.ceil(n)}(this.scrollerElRefs.getAll())}computeScrollerDims(){let e,t,n=(s||((e=document.createElement("div")).style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t=rj(e),document.body.removeChild(e),s=t),s),{scrollerRefs:r,scrollerElRefs:i}=this,o=!1,a={},l={};for(let e in r.currentMap){let t=r.currentMap[e];if(t&&t.needsYScrolling()){o=!0;break}}for(let e of this.props.sections){let t=e.key,r=i.currentMap[t];if(r){let e=r.parentNode;a[t]=Math.floor(e.getBoundingClientRect().width-(o?n.y:0)),l[t]=Math.floor(e.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:a,scrollerClientHeights:l}}}iv.addStateEquality({scrollerClientWidths:t3,scrollerClientHeights:t3});class iy extends nd{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&(e.fcSeg=this.props.seg)}}render(){var e;let t,{props:n,context:r}=this,{options:i}=r,{seg:s}=n,{eventRange:o}=s,{ui:a}=o,l={event:new rr(r,o.def,o.instance),view:r.viewApi,timeText:n.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!n.disableDragging&&function(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e.eventRange,o=s.startEditable;for(let e of r)o=e(o,i,s,t);return o}(s,r),isStartResizable:!n.disableResizing&&s.isStart&&s.eventRange.ui.durationEditable&&r.options.eventResizableFromStart,isEndResizable:!n.disableResizing&&(e=s).isEnd&&e.eventRange.ui.durationEditable,isMirror:!!(n.isDragging||n.isResizing||n.isDateSelecting),isStart:!!s.isStart,isEnd:!!s.isEnd,isPast:!!n.isPast,isFuture:!!n.isFuture,isToday:!!n.isToday,isSelected:!!n.isSelected,isDragging:!!n.isDragging,isResizing:!!n.isResizing};return T(nv,Object.assign({},n,{elRef:this.handleEl,elClasses:[...(t=["fc-event"],l.isMirror&&t.push("fc-event-mirror"),l.isDraggable&&t.push("fc-event-draggable"),(l.isStartResizable||l.isEndResizable)&&t.push("fc-event-resizable"),l.isDragging&&t.push("fc-event-dragging"),l.isResizing&&t.push("fc-event-resizing"),l.isSelected&&t.push("fc-event-selected"),l.isStart&&t.push("fc-event-start"),l.isEnd&&t.push("fc-event-end"),l.isPast&&t.push("fc-event-past"),l.isToday&&t.push("fc-event-today"),l.isFuture&&t.push("fc-event-future"),t),...s.eventRange.ui.classNames,...n.elClasses||[]],renderProps:l,generatorName:"eventContent",customGenerator:i.eventContent,defaultGenerator:n.defaultGenerator,classNameGenerator:i.eventClassNames,didMount:i.eventDidMount,willUnmount:i.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&(this.el.fcSeg=this.props.seg)}}class ib extends nd{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,s=rp(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return T(iy,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:rg(r,t),defaultGenerator:iD,timeText:s}),(e,t)=>T(O,null,T(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),!!t.isStartResizable&&T("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!t.isEndResizable&&T("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function iD(e){return T("div",{className:"fc-event-main-frame"},e.timeText&&T("div",{className:"fc-event-time"},e.timeText),T("div",{className:"fc-event-title-container"},T("div",{className:"fc-event-title fc-sticky"},e.event.title||T(O,null,"\xa0"))))}let iw=e=>T(na.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return T(nv,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),iE=tB({day:"numeric"});class iS extends nd{constructor(){super(...arguments),this.refineRenderProps=tx(i_)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return T(nv,Object.assign({},e,{elClasses:[...rM(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":tC(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function iC(e){return!!(e.dayCellContent||nh("dayCellContent",e))}function i_(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,s=rT(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:iE):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},s),{isMonthStart:i,dayNumberText:o}),e.extraRenderProps)}class iA extends nd{render(){let{props:e}=this,{seg:t}=e;return T(iy,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:ix,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function ix(e){let{title:t}=e.event;return t&&T("div",{className:"fc-event-title"},e.event.title)}function ik(e){return T("div",{className:`fc-${e}`})}let iR=e=>T(na.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,s=r.weekNumberFormat||e.defaultFormat,o=n.computeWeekNumber(i);return T(nv,Object.assign({},e,{renderProps:{num:o,text:n.format(i,s),date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:iT,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function iT(e){return e.text}class iM extends nd{constructor(){super(...arguments),this.state={titleId:eK()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&nu(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let t=eq(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){var e,t,n;let{theme:r,options:i}=this.context,{props:s,state:o}=this,a=["fc-popover",r.getClass("popover")].concat(s.extraClassNames||[]);return e=T("div",Object.assign({},s.extraAttrs,{id:s.id,className:a.join(" "),"aria-labelledby":o.titleId,ref:this.handleRootEl}),T("div",{className:"fc-popover-header "+r.getClass("popoverHeader")},T("span",{className:"fc-popover-title",id:o.titleId},s.title),T("span",{className:"fc-popover-close "+r.getIconClass("close"),title:i.closeHint,onClick:this.handleCloseClick})),T("div",{className:"fc-popover-body "+r.getClass("popoverContent")},s.children)),(n=T(e_,{__v:e,i:t=s.parentEl})).containerInfo=t,n}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=function(e){let t=rL(e),n=e.getBoundingClientRect();for(let e of t){let t=rA(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(i){let s=r.getBoundingClientRect(),o=n?eY(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,a=e?i.right-s.width:i.left;o=Math.max(o,10),a=Math.max(a=Math.min(a,document.documentElement.clientWidth-10-s.width),10);let l=r.offsetParent.getBoundingClientRect();eQ(r,{top:o-l.top,left:a-l.left})}}}class iN extends rY{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:s}=n,o=t.format(r,e.dayPopoverFormat);return T(iS,{elRef:this.handleRootEl,date:r,dateProfile:s,todayRange:i},(t,r,i)=>T(iM,{elRef:i.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(i.className||[]),extraAttrs:i,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},iC(e)&&T(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,t,n,r){let{rootEl:i,props:s}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class iO extends nd{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:eK()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&nu(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=iP(t).start;function s(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new rr(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:!!t.allDayDate,allSegs:t.allSegs.map(s),hiddenSegs:t.hiddenSegs.map(s),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return T(na.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,{moreCnt:a}=e,l=iP(e),c="function"==typeof o?o.call(s,a):`+${a} ${o}`,d=e6(i.moreLinkHint,[a],c),u={num:a,shortText:`+${a}`,text:c,view:r};return T(O,null,!!e.moreCnt&&T(nv,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),e0(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||iI,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&T(iN,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=eY(this.linkEl,".fc-view-harness"))}}function iI(e){return e.text}function iP(e){if(e.allDayDate)return{start:e.allDayDate,end:tu(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:ij(t),end:t.reduce(iL).eventRange.range.end}}function ij(e){return e.reduce(iH).eventRange.range.start}function iH(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function iL(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class iF{constructor(){this.handlers=[]}set(e){for(let t of(this.currentValue=e,this.handlers))t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class iU extends iF{constructor(){super(...arguments),this.map=new Map}handle(e){let{map:t}=this,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)}}let iB=[],iz={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},iW=Object.assign(Object.assign({},iz),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function iY(e){let t=e.length>0?e[0].code:"en",n=iB.concat(e),r={en:iW};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function iV(e,t){var n,r;let i,s;return"object"!=typeof e||Array.isArray(e)?(n=e,r=t,s=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}(i=[].concat(n||[]),r)||iW,iQ(n,i,s)):iQ(e.code,[e.code],e)}function iQ(e,t,n){let r=tJ([iz,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 iG(e){return{id:e4(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}class iq extends nn{}function iZ(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 Error("Can't have a custom view type that references itself");c=iZ(l,t,n,r)}return(!a&&c&&(a=c.component),a)?{type:e,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}(e,t,n,r);return i&&(t[e]=i),i}iq.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},iq.prototype.baseIconClass="fc-icon",iq.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"},iq.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},iq.prototype.iconOverrideOption="buttonIcons",iq.prototype.iconOverrideCustomButtonOption="icon",iq.prototype.iconOverridePrefix="fc-icon-";function iK(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=i$(t):!n||n.prototype instanceof nd||(n=i$(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function i$(e){return t=>T(na.Consumer,null,n=>T(nv,{elTag:"div",elClasses:nD(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 iX(e,t,n,r){let i=t1(e,iK),s=t1(t.views,iK);return t1(function(e,t){let n,r={};for(n in e)iZ(n,r,e,t);for(n in t)iZ(n,r,e,t);return r}(i,s),e=>(function(e,t,n,r,i){var s;let o,a,l=e.overrides.duration||e.defaults.duration||r.duration||n.duration,c=null,d="",u="",p={};if(l&&(void 0===(a=iJ[o=JSON.stringify(s=l)])&&(a=tt(s),iJ[o]=a),c=a)){let e=ta(c);d=e.unit,1===e.value&&(u=d,p=t[d]?t[d].rawOptions:{})}let h=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[u]?n[u]:null},f=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[u]?n[u]:null};return{type:e.type,component:e.component,duration:c,durationUnit:d,singleUnit:u,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},p),e.overrides),buttonTextOverride:h(r)||h(n)||e.overrides.buttonText,buttonTextDefault:h(i)||e.defaults.buttonText||h(tW)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(i)||e.defaults.buttonHint||f(tW)}})(e,s,t,n,r))}let iJ={};function i0(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function i1(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=i2(i,n,r)),Object.assign(Object.assign({},e),i)}function i2(e,t,n){return i4(e,t0(e,e=>{var r,i,s;return r=e,i=t,i5(r,s=n)?!s.options.lazyFetching||!r.fetchRange||r.isFetching||i.start<r.fetchRange.start||i.end>r.fetchRange.end:!r.latestFetchId}),t,!1,n)}function i4(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=function(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=e4();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})}(a,n,r,i):s[o]=a}return s}function i3(e,t){return t0(e,e=>i5(e,t))}function i5(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function i8(e,t,n,r,i){return{header:e.headerToolbar?i6(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?i6(e.footerToolbar,e,t,n,r,i):null}}function i6(e,t,n,r,i,s){let o={},a=[],l=!1;for(let c in e){let d=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||{},p=e?e.split(" "):[],h=[],f=!1;return{widgets:p.map(e=>e.split(",").map(e=>{let n,p,g,m,v,y;if("title"===e)return f=!0,{buttonName:e};if(n=a[e])g=e=>{n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),y=n.hint||n.text;else if(p=i[e]){h.push(e),g=()=>{s.changeView(e)},(v=p.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=p.buttonTextDefault);let n=p.buttonTextOverride||p.buttonTextDefault;y=e6(p.buttonTitleOverride||p.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(g=()=>{s[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=e6(d[t]||u[t],[c.year||"year","year"],c[e])}else y=t=>e6(d[e]||u[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:g,buttonIcon:m,buttonText:v,buttonHint:y}})),viewsWithButtons:h,hasTitle:f}}(e[c],t,n,r,i,s);o[c]=d.widgets,a.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}class i9{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let i7=iG({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),se=iG({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){var r,i;let s,o,a,l,{dateEnv:c}=e.context;r=e.eventSource.meta.bind(null,rv(e.range,c)),i=e=>t({rawEvents:e}),s=!1,(l=r(o=function(e){s||(s=!0,i(e))},a=function(e){s||(s=!0,n(e))}))&&"function"==typeof l.then&&l.then(o,a)}}]}),st=iG({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:t$,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>e.url&&("json"===e.format||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null,fetch(e,t,n){let{meta:r}=e.eventSource,i=function(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,c={};return null==(r=e.startParam)&&(r=l.startParam),null==(i=e.endParam)&&(i=l.endParam),null==(s=e.timeZoneParam)&&(s=l.timeZoneParam),Object.assign(c,"function"==typeof e.extraParams?e.extraParams():e.extraParams||{}),c[r]=a.formatIso(t.start),c[i]=a.formatIso(t.end),"local"!==a.timeZone&&(c[s]=a.timeZone),c}(r,e.range,e.context);(function(e,t,n){let 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 rb("Failure parsing JSON",e)});throw new rb("Request failed",e)})})(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),sn=iG({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n,r;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:!!(!e.startTime&&!e.endTime),duration:i,typeData:s}}return null},expand(e,t,n){let r=nS(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let i=e?t2(e):null,s=tg(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=tu(s,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:t$,startTime:tt,endTime:tt,duration:tt,startRecur:t$,endRecur:t$}});function sr(e,t){let n=t4(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)}let si=[i7,se,st,sn,iG({name:"change-handler",optionChangeHandlers:{events(e,t){sr([e],t)},eventSources:sr}}),iG({name:"misc",isLoadingFuncs:[e=>i0(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},rv(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",rs(e,t))}}})];class ss{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new ez(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 so(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,tB(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=tf(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class sa{constructor(e){this.computeCurrentViewData=tA(this._computeCurrentViewData),this.organizeRawLocales=tA(iY),this.buildLocale=tA(iV),this.buildPluginHooks=function(){let e,t=[],n=[];return(r,i)=>(e&&tl(r,t)&&tl(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:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){let e=t.name,s=n[e];void 0===s?(n[e]=t.id,i(t.deps),r=function(e,t){var n,r;return{premiumReleaseDate:(n=e.premiumReleaseDate,r=t.premiumReleaseDate,void 0===n?r:void 0===r?n:new Date(Math.max(n.valueOf(),r.valueOf()))),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}(r,t)):s!==t.id&&console.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}(r,i)),t=r,n=i,e)}(),this.buildDateEnv=tA(sl),this.buildTheme=tA(sc),this.parseToolbars=tA(i8),this.buildViewSpecs=tA(iX),this.buildDateProfileGenerator=tx(sd),this.buildViewApi=tA(su),this.buildViewUiProps=tx(sf),this.buildEventUiBySource=tA(sp,t3),this.buildEventUiBases=tA(sh),this.parseContextBusinessHours=tx(sm),this.buildTitle=tA(so),this.emitter=new n8,this.actionRunner=new ss(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):nT(e.now,t)}(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(s);nA(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=function(e,t,n){let r=t?t.activeRange:null;return i1({},function(e,t){let n=n1(t),r=[].concat(e.eventSources||[]),i=[];for(let s of(e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events),r)){let e=n0(s,t,n);e&&i.push(e)}return i}(e,n),r,n)}(n.calendarOptions,o,a),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:s,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:l,eventUiBases:{},eventStore:nY(),renderableEventStore:nY(),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));sg(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){var t,n,r;let{props:i,state:s,emitter:o}=this,a=(t=s.dynamicOptionOverrides,"SET_OPTION"===e.type?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t),l=this.computeOptionsData(i.optionOverrides,a,i.calendarApi),c=(n=s.currentViewType,"CHANGE_VIEW_TYPE"===e.type&&(n=e.viewType),n),d=this.computeCurrentViewData(c,l,i.optionOverrides,a);i.calendarApi.currentDataManager=this,o.setThisContext(i.calendarApi),o.setOptions(d.options);let u={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:i.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},{currentDate:p,dateProfile:h}=s;this.data&&this.data.dateProfileGenerator!==d.dateProfileGenerator&&(h=d.dateProfileGenerator.build(p)),r=p,p="CHANGE_DATE"===e.type?e.dateMarker:r,h=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)).isValid)return i;break;case"NEXT":if((i=r.buildNext(e,n)).isValid)return i}return e}(h,e,p,d.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&nA(h.currentRange,p)||(p=h.currentRange.start);let f=function(e,t,n,r){var i,s,o,a,l,c;let d=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return i1(e,t.sources,d,r);case"REMOVE_EVENT_SOURCE":return i=e,s=t.sourceId,t0(i,e=>e.sourceId!==s);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(n)return i2(e,d,r);return e;case"FETCH_EVENT_SOURCES":return i4(e,t.sourceIds?t2(t.sourceIds):i3(e,r),d,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":let u;return o=e,a=t.sourceId,l=t.fetchId,c=t.fetchRange,(u=o[a])&&l===u.latestFetchId?Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},u),{isFetching:!1,fetchRange:c})}):o;case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}(s.eventSources,e,h,u),g=function(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=nB(n2(i,t,s),t,s);return r&&(n=nO(n,r,s)),nV(n5(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){let{defIdMap:s,instanceIdMap:o}=function(e){let{defs:t,instances:n}=e,r={},i={};for(let e in t){let{publicId:n}=t[e];n&&(r[n]=e)}for(let e in n){let{publicId:r}=t[n[e].defId];r&&(i[r]=e)}return{defIdMap:r,instanceIdMap:i}}(e);return nO(nB(n2(n,t,i),t,i,!1,s,o),r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":var s,o,a,l;return s=e,o=t.eventStore,a=r?r.activeRange:null,l=i,a&&(o=nO(o,a,l)),nV(s,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return nV(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(r)return nO(e,r.activeRange,i);return 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 n5(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return nQ(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return nY();default:return e}}(s.eventStore,e,f,h,u),m=i0(f)&&!d.options.progressiveEventRendering&&s.renderableEventStore||g,{eventUiSingleBase:v,selectionConfig:y}=this.buildViewUiProps(u),b=this.buildEventUiBySource(f),D=this.buildEventUiBases(m.defs,v,b),w={dynamicOptionOverrides:a,currentViewType:c,currentDate:p,dateProfile:h,eventSources:f,eventStore:g,renderableEventStore:m,selectionConfig:y,eventUiBases:D,businessHours:this.parseContextBusinessHours(u),dateSelection:function(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}(s.dateSelection,e),eventSelection:function(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}(s.eventSelection,e),eventDrag:function(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}(s.eventDrag,e),eventResize:function(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}(s.eventResize,e)},E=Object.assign(Object.assign({},u),w);for(let t of l.pluginHooks.reducers)Object.assign(w,t(s,e,E));let S=sg(s,u),C=sg(w,u);!S&&C?o.trigger("loading",!0):S&&!C&&o.trigger("loading",!1),this.state=w,i.onAction&&i.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){if(a.timeZone!==l.timeZone){var c,d;let e;c=s.eventSources,d=t.dateProfile,e=d?d.activeRange:null,t.eventSources=s.eventSources=i4(c,i3(c,s),e,!0,s),t.eventStore=s.eventStore=n3(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=n3(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);sv(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}=tJ([tW,e,t],tQ),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],si),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tz),tY),tV),a.listenerRefiners),a.optionRefiners),c={},d=tJ([tW,o,e,t],tQ),u={},p=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,f=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===p[e]||tQ[e]&&e in p&&tQ[e](p[e],d[e]))?u[e]=h[e]:l[e]?(u[e]=l[e](d[e]),f=!0):c[e]=p[e];return f&&(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 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);sv(o);let a=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount});return{viewSpec:i,options:s,dateProfileGenerator:a,viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let s=tJ([tW,e.optionDefaults,n,r,e.optionOverrides,i],tQ),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tz),tY),tV),tZ),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,u={};for(let e in s)s[e]===l[e]||tQ[e]&&tQ[e](s[e],l[e])?a[e]=c[e]:(s[e]===this.currentCalendarOptionsInput[e]||tQ[e]&&tQ[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 sl(e,t,n,r,i,s,o,a){let l=iV(t||o.defaultCode,o.map);return new nt({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function sc(e,t){return new(t.themeClasses[e.themeSystem]||iq)(e)}function sd(e){return new(e.dateProfileGeneratorClass||nM)(e)}function su(e,t,n){return new i9(e,t,n)}function sp(e){return t1(e,e=>e.ui)}function sh(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 sf(e){let{options:t}=e;return{eventUiSingleBase:nK({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:nK({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function sg(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function sm(e){var t,n;let r;return t=e.options.businessHours,nB((!0===(n=t)?[{}]:Array.isArray(n)?n.filter(e=>e.daysOfWeek):"object"==typeof n&&n?[n]:[]).map(e=>Object.assign(Object.assign({},n6),e)),null,e)}function sv(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class sy extends nd{render(){return T("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map(e=>this.renderWidgetGroup(e)))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let s of e){let{buttonName:e,buttonClick:o,buttonText:a,buttonIcon:l,buttonHint:c}=s;if("title"===e)i=!1,r.push(T("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let i=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];i&&d.push(n.getClass("buttonActive")),r.push(T("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:s,"aria-pressed":i,className:d.join(" "),onClick:o},a||(l?T("span",{className:l,role:"img"}):"")))}}return r.length>1?T("div",{className:i&&n.getClass("buttonGroup")||""},...r):r[0]}}class sb extends nd{render(){let e,t,{model:n,extraClassName:r}=this.props,i=!1,s=n.sectionWidgets,o=s.center;return s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end,T("div",{className:[r||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return T(sy,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class sD extends nd{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,nu(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",s="";return n?null!==t.availableWidth?i=t.availableWidth/n:s=`${1/n*100}%`:i=e.height||"",T("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class sw extends rE{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=ra(t);if(i&&n.isValidSegDownEl(e.target)){let s=eY(e.target,".fc-event-forced-url"),o=s?s.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new rr(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=eX(e.el,"click",".fc-event",this.handleSegClick)}}class sE extends rE{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{ra(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 eX(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=ra(n);(!t||r.isValidSegDownEl(t.target))&&i.emitter.trigger(e,{el:n,event:new rr(i,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:i.viewApi})}}class sS extends nc{constructor(){super(...arguments),this.buildViewContext=tA(nl),this.buildViewPropTransformers=tA(s_),this.buildToolbarProps=tA(sC),this.headerRef=N(),this.footerRef=N(),this.interactionsStore={},this.state={viewLabelId:eK()},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=[sw,sE].concat(this.props.pluginHooks.componentInteractions).map(e=>new e(n));this.interactionsStore[e.uid]=r,rC[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 rC[e.uid]},this.resizeRunner=new ez(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,nT(t.options.now,t.dateEnv),t.viewTitle),s=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?s=!0:null!=r.contentHeight?o=r.contentHeight:e=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return T(na.Provider,{value:a},n.header&&T(sb,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),T(sD,{liquid:s,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&T(sb,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){for(let e of(window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear(),this.calendarInteractions))e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return T(O,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint};for(let n of this.buildViewPropTransformers(t.viewPropsTransformers))Object.assign(r,n.transform(r,e));return T(n.component,Object.assign({},r))}}function sC(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&&!nA(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function s_(e){return e.map(e=>new e)}class sA extends r_{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;nr(()=>{Z(T(rw,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r,i)=>(this.setClassNames(t),this.setHeight(n),T(nm.Provider,{value:this.customContentRenderId},T(sS,Object.assign({isHeightAuto:r,forPrint:i},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Z(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&eU(e.getRootNode())}(e),this.el=e,this.renderRunner=new ez(this.handleRenderRequest),new sa({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(){nr(()=>{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(!tl(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){eG(this.el,"height",e)}}let sx=18>parseInt(String(D.version).split(".")[0]);class sk extends D.Component{constructor(){super(...arguments),this.elRef=(0,D.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){let e=[];for(let t of this.state.customRenderingMap.values())e.push(D.createElement(sR,{key:t.id,customRendering:t}));return D.createElement("div",{ref:this.elRef},e)}componentDidMount(){let e;this.isUnmounting=!1;let t=new iU;this.handleCustomRendering=t.handle.bind(t),this.calendar=new sA(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{(0,S.flushSync)(()=>{})}),t.subscribe(t=>{let n=Date.now(),r=!e;(sx||r||this.isUpdating||this.isUnmounting||n-e<100?sT:S.flushSync)(()=>{this.setState({customRenderingMap:t},()=>{e=n,r?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}sk.act=sT;class sR extends D.PureComponent{render(){let{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,S.createPortal)(n,e.containerEl)}}function sT(e){e()}class sM extends rY{constructor(){super(...arguments),this.headerElRef=N()}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],s=ig(r.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),T(nb,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},T(iv,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw Error("No ScrollGrid implementation");let{props:s,context:o}=this,a=!s.forPrint&&ig(o.options),l=!s.forPrint&&im(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:ih}]}),T(nb,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},T(i,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}function sN(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function sO(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function sI(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}let sP=tB({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function sj(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class sH extends nd{render(){let{props:e}=this;return T(ib,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:sP,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class sL extends nd{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,i=rp(r,n.eventTimeFormat||sP,t,!0,e.defaultDisplayEventEnd);return T(iy,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:rg(e.seg,t),defaultGenerator:sF,timeText:i,isResizing:!1,isDateSelecting:!1}))}}function sF(e){return T(O,null,T("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&T("div",{className:"fc-event-time"},e.timeText),T("div",{className:"fc-event-title"},e.event.title||T(O,null,"\xa0")))}class sU extends nd{constructor(){super(...arguments),this.compileSegs=tA(sB)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return T(iO,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return T(O,null,t.map(t=>{let r=t.eventRange.instance.instanceId;return T("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},sj(t)?T(sL,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},rh(t,e.todayRange))):T(sH,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},rh(t,e.todayRange))))}))}})}}function sB(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}let sz=tB({week:"narrow"});class sW extends rY{constructor(){super(...arguments),this.rootElRef=N(),this.state={dayNumberId:eK()},this.handleRootEl=e=>{nu(this.rootElRef,e),nu(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i,dateEnv:s}=e,{date:o,dateProfile:a}=t,l=t.showDayNumber&&function(e,t,n){let{start:r,end:i}=t,s=tp(i,-1),o=n.getYear(r),a=n.getMonth(r),l=n.getYear(s),c=n.getMonth(s);return(o!==l||a!==c)&&!!(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<i.valueOf())}(o,a.currentRange,s);return T(iS,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:sY,date:o,dateProfile:a,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},(s,a)=>T("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&T(iR,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:rI(e,o,"week"),date:o,defaultFormat:sz}),!a.isDisabled&&(t.showDayNumber||iC(i)||t.forceDayTop)?T("div",{className:"fc-daygrid-day-top"},T(s,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},rI(e,o)),{id:n.dayNumberId})})):t.showDayNumber?T("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},T("a",{className:"fc-daygrid-day-number"},"\xa0")):void 0,T("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,T("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},T(sU,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),T("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function sY(e){return e.dayNumberText||T(O,null,"\xa0")}function sV(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function sQ(e){return sV(e)+":"+e.lastCol}function sG(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,s=i.range,o=nS(s,{start:r[t].date,end:tu(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf()})}class sq extends rV{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[rG(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){let{entriesByLevel:r,forceHidden:i}=this,{touchingEntry:s,touchingLevel:o,touchingLateral:a}=e;if(this.hiddenConsumes&&s){let e=rG(s);if(!i[e])if(this.allowReslicing){let e=Object.assign(Object.assign({},s),{span:rq(s.span,t.span)});i[rG(e)]=!0,r[o][a]=e,n.push(e),this.splitEntry(s,t,n)}else i[e]=!0,n.push(s)}super.handleInvalidInsertion(e,t,n)}}class sZ extends rY{constructor(){super(...arguments),this.cellElRefs=new ic,this.frameElRefs=new ic,this.fgElRefs=new ic,this.segHarnessRefs=new ic,this.rootElRef=N(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,s=sO(e.businessHourSegs,i),o=sO(e.bgEventSegs,i),a=sO(this.getHighlightSegs(),i),l=sO(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:d,moreCnts:u,moreMarginTops:p}=function(e,t,n,r,i,s,o){let a=new sq(t=>i[e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1)]||1);a.allowReslicing=!0,a.strictOrder=r,!0===t||!0===n?(a.maxCoord=s,a.hiddenConsumes=!0):"number"==typeof t?a.maxStackCnt=t:"number"==typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t];null!=i[sQ(n)]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let d=a.addSegs(l),{singleColPlacements:u,multiColPlacements:p,leftoverMargins:h}=function(e,t,n){let r=function(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}(e,n.length),i=[],s=[],o=[];for(let e=0;e<n.length;e+=1){let a=r[e],l=[],c=0,d=0;for(let r of a){let i=t[r.index];l.push({seg:sG(i,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let u=[];for(let r of(c=0,d=0,a)){let i=t[r.index],s=r.span.end-r.span.start>1,o=r.span.start===e;d+=r.levelCoord-c,c=r.levelCoord+r.thickness,s?(d+=r.thickness,o&&u.push({seg:sG(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):o&&(u.push({seg:sG(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:d}),d=0)}i.push(l),s.push(u),o.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:o}}(a.toRects(),e,o),f=[],g=[];for(let e of c){p[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)u[t].push({seg:sG(e,t,t+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)f.push(0);for(let t of d){let n=e[t.index],r=t.span;p[r.start].push({seg:sG(n,r.start,r.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)f[e]+=1,u[e].push({seg:sG(n,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)g.push(h[e]);return{singleColPlacements:u,multiColPlacements:p,moreCnts:f,moreMarginTops:g}}(rd(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return T("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:d[n],e.todayRange,h),i=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map(e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}))}(l[n],d),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return T(sW,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:u[n],moreMarginTop:p[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:T(O,null,T(O,null,r),T(O,null,i)),bgContent:T(O,null,this.renderFillSegs(a[n],"highlight"),this.renderFillSegs(s[n],"non-business"),this.renderFillSegs(o[n],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!t3(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,i,s,o){let{context:a}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,d=1===this.props.cells.length,u=i||s||o,p=[];if(c)for(let e of t){let{seg:t}=e,{instanceId:h}=t.eventRange.instance,f=e.isVisible&&!r[h],g=e.isAbsolute,m="",v="";g&&(a.isRtl?(v=0,m=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(m=0,v=c.rights[t.firstCol]-c.rights[t.lastCol])),p.push(T("div",{className:"fc-daygrid-event-harness"+(g?" fc-daygrid-event-harness-abs":""),key:sV(t),ref:u?null:this.segHarnessRefs.createRef(sQ(t)),style:{visibility:f?"":"hidden",marginTop:g?"":e.marginTop,top:g?e.absoluteTop:"",left:m,right:v}},sj(t)?T(sL,Object.assign({seg:t,isDragging:i,isSelected:h===l,defaultDisplayEventEnd:d},rh(t,n))):T(sH,Object.assign({seg:t,isDragging:i,isResizing:s,isDateSelecting:o,isSelected:h===l,defaultDisplayEventEnd:d},rh(t,n)))))}return p}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,s=[];if(i)for(let o of e){let e=n?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};s.push(T("div",{key:rf(o.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?T(iA,Object.assign({seg:o},rh(o,r))):ik(t)))}return T(O,{},...s)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map(e=>r.currentMap[e.key]);if(e.length){let t=this.rootElRef.current,r=new rF(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(r)||this.setState({framePositions:new rF(t,e,!0,!1)})}}let i=this.state.segHeights,s=this.querySegHeights(),o=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},i),s),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}sZ.addStateEquality({segHeights:t3});class sK extends rY{constructor(){super(...arguments),this.splitBusinessHourSegs=tA(sN),this.splitBgEventSegs=tA(sN),this.splitFgEventSegs=tA(sN),this.splitDateSelectionSegs=tA(sN),this.splitEventDrag=tA(sI),this.splitEventResize=tA(sI),this.rowRefs=new ic}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),i=this.splitBgEventSegs(e.bgEventSegs,n),s=this.splitFgEventSegs(e.fgEventSegs,n),o=this.splitDateSelectionSegs(e.dateSelectionSegs,n),a=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return T(r3,{unit:"day"},(t,d)=>T(O,null,e.cells.map((t,u)=>T(sZ,{ref:this.rowRefs.createRef(u),key:t.length?t[0].date.toISOString():u,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:d,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[u],eventSelection:e.eventSelection,bgEventSegs:i[u].filter(s$),fgEventSegs:s[u],dateSelectionSegs:o[u],eventDrag:a[u],eventResize:l[u],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new rF(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new rF(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),s=r.topToIndex(t);if(null!=s&&null!=i){let e=this.props.cells[s][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(s,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[s],bottom:r.bottoms[s]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,r=tu(n,1);return{start:n,end:r}}}function s$(e){return e.eventRange.def.allDay}class sX extends rY{constructor(){super(...arguments),this.elRef=N(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,i=!0===n||!0===t;i&&!r&&(i=!1,t=null,n=null);let s=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return T("div",{ref:this.elRef,className:s.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},T("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,T("tbody",{role:"presentation"},T(sK,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){var e,t;let n,r=(e=this.elRef.current,(t=this.props.dateProfile).currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${t.currentDate.toISOString().match(/^\d{4}-\d{2}/)[0]}-01"]`)),n||(n=e.querySelector(`[data-date="${tC(t.currentDate)}"]`)),n);if(r){let e=r.closest(".fc-daygrid-body"),t=e.closest(".fc-scroller"),n=r.getBoundingClientRect().top-e.getBoundingClientRect().top;t.scrollTop=n?n+1:0}this.needsScrollReset=!1}}}class sJ extends ie{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class s0 extends rY{constructor(){super(...arguments),this.slicer=new sJ,this.tableRef=N()}render(){let{props:e,context:t}=this;return T(sX,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class s1 extends sM{constructor(){super(...arguments),this.buildDayTableModel=tA(s2),this.headerRef=N(),this.tableRef=N()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&T(r8,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),s=t=>T(s0,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,s,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,s)}}function s2(e,t){return new r7(new r9(e.renderRange,t),/year|month|week/.test(e.currentRangeUnit))}class s4 extends nM{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return function(e){let t,{dateEnv:n,currentRange:r}=e,{start:i,end:s}=r;if(e.snapToWeek&&(i=n.startOfWeek(i),(t=n.startOfWeek(s)).valueOf()!==s.valueOf()&&(s=td(t,1))),e.fixedWeekCount){let e=Math.ceil(th(n.startOfWeek(n.startOfMonth(tu(r.end,-1))),s)/7);s=td(s,6-e)}return{start:i,end:s}}({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}}eF(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var s3=iG({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:s1,dateProfileGeneratorClass:s4},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 s5 extends rk{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?"background"===e.ui.display||"inverse-background"===e.ui.display?["timed","allDay"]:["allDay"]:["timed"]}}let s8=tB({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function s6(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return T(na.Consumer,null,n=>{if(!e.isLabeled)return T("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,o=null==i.slotLabelFormat?s8:Array.isArray(i.slotLabelFormat)?tB(i.slotLabelFormat[0]):tB(i.slotLabelFormat),a={level:0,time:e.time,date:r.toDate(e.date),view:s,text:r.format(e.date,o)};return T(nv,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:s9,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},e=>T("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},T(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function s9(e){return e.text}class s7 extends nd{render(){return this.props.slatMetas.map(e=>T("tr",{key:e.key},T(s6,Object.assign({},e))))}}let oe=tB({week:"short"});class ot extends rY{constructor(){super(...arguments),this.allDaySplitter=new s5,this.headerElRef=N(),this.rootElRef=N(),this.scrollerElRef=N(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,i=r.renderRange,s=1===th(i.start,i.end)?rI(this.context,i.start,"week"):{};return n.weekNumbers&&"day"===e?T(iR,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:oe},e=>T("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:t}},T(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):T("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},T("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context;return T(nv,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:{text:t.allDayText,view:n},generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:on,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},t=>T("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},T(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:i}=this,s=[],o=ig(r.options);return e&&s.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(s.push({type:"body",key:"all-day",chunk:{content:t}}),s.push({type:"body",key:"all-day-divider",outerContent:T("tr",{role:"presentation",className:"fc-scrollgrid-section"},T("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),T(nb,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},T(iv,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(e,t,n,r,i,s,o){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw Error("No ScrollGrid implementation");let{context:l,props:c}=this,d=!c.forPrint&&ig(l.options),u=!c.forPrint&&im(l.options),p=[];e&&p.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>T("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>T("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),p.push({key:"all-day-divider",type:"body",outerContent:T("tr",{role:"presentation",className:"fc-scrollgrid-section"},T("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let h=l.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:!!l.options.expandRows,chunks:[{key:"axis",content:e=>T("div",{className:"fc-timegrid-axis-chunk"},T("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,T("tbody",null,T(s7,{slatMetas:s}))),T("div",{className:"fc-timegrid-now-indicator-container"},T(r3,{unit:h?"minute":"day"},e=>{let t=h&&o&&o.safeComputeTop(e);return"number"==typeof t?T(iw,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),u&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:ih},{key:"cols",content:ih}]}),T(nb,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},T(a,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:p}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(!0===e||!0===t)&&(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function on(e){return e.text}class or{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(nA(t.currentRange,e)){let n=tg(e),r=e.valueOf()-n.valueOf();if(r>=ts(t.slotMinTime)&&r<ts(t.slotMaxTime))return this.computeTimeTop(tt(r))}return null}computeDateTop(e,t){return t||(t=tg(e)),this.computeTimeTop(tt(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:i}=this,s=r.els.length,o=(e.milliseconds-ts(i.slotMinTime))/ts(this.slotDuration);return t=Math.min(t=Math.floor(o=Math.min(s,o=Math.max(0,o))),s-1),n=o-t,r.tops[t]+r.getHeight(t)*n}}class oi extends nd{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return T("tbody",null,e.slatMetas.map((i,s)=>{let o={time:i.time,date:t.dateEnv.toDate(i.date),view:t.viewApi};return T("tr",{key:i.key,ref:r.createRef(i.key)},e.axis&&T(s6,Object.assign({},i)),T(nv,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}}class os extends nd{constructor(){super(...arguments),this.rootElRef=N(),this.slatElRefs=new ic}render(){let{props:e,context:t}=this;return T("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},T("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,T(oi,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){var e;let{context:t,props:n}=this;n.onCoords&&null!==n.clientWidth&&this.rootElRef.current.offsetHeight&&n.onCoords(new or(new rF(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map(t=>e[t.key])),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function oo(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 oa(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}class ol extends nd{render(){let{props:e}=this;return T(iO,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>oy(e.hiddenSegs,e),defaultGenerator:oc,forceTimed:!0},e=>T(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function oc(e){return e.shortText}function od(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(ou),[o.map(op),o[0][1]]}function ou(e,t){return t[1]-e[1]}function op(e){return e[0]}function oh(e,t){let n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function of(e,t,n=null,r=0){let i=[];if(n)for(let s=0;s<e.length;s+=1){let o=e[s],a=n.computeDateTop(o.start,t),l=Math.max(a+(r||0),n.computeDateTop(o.end,t));i.push({start:Math.round(a),end:Math.round(l)})}return i}let og=tB({hour:"numeric",minute:"2-digit",meridiem:!1});class om extends nd{render(){return T(ib,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:og}))}}class ov extends nd{constructor(){super(...arguments),this.sortEventSegs=tA(rd)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return T(iS,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},t=>T("div",{className:"fc-timegrid-col-frame"},T("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),T("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,s,!1,!1,!1)),T("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(i,{},!!e.eventDrag,!!e.eventResize,!!r,"mirror")),T("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),iC(n)&&T(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,r,i,s){let{props:o}=this;return o.forPrint?oy(e,o):this.renderPositionedFgSegs(e,t,n,r,i,s)}renderPositionedFgSegs(e,t,n,r,i,s){let{eventMaxStack:o,eventShortHeight:a,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:u,eventSelection:p,todayRange:h,nowDate:f}=this.props,g=n||r||i,m=of(e,d,u,c),{segPlacements:v,hiddenGroups:y}=function(e,t,n,r){let i,s,o,a=[],l=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?a.push({index:n,thickness:1,span:r}):l.push(e[n])}let{segRects:c,hiddenGroups:d}=(i=new rV,null!=n&&(i.strictOrder=n),null!=r&&(i.maxStackCnt=r),s=function(e){let t=[];for(let i of e){let e=[],s={span:i.span,entries:[i]};for(let i of t){var n,r;rq(i.span,s.span)?s={entries:i.entries.concat(s.entries),span:(n=i.span,r=s.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(i)}e.push(s),t=e}return t}(i.addSegs(a)),{segRects:function(e){let t=[],n=oh((e,t,n)=>rG(e),(e,n,i)=>{let s=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(s),s.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1});function r(e,t,r){let i=0;for(let s of e)i=Math.max(n(s,t,r),i);return i}return r(e,0,0),t}(function(e,t){let n=oh((e,t,n)=>rG(e),(e,t,r)=>{let i,{nextLevelNodes:s,thickness:o}=e,a=o+r,l=o/a,c=[];if(s.length)for(let e of s)if(void 0===i){let r=n(e,t,a);i=r[0],c.push(r[1])}else{let t=n(e,i,0);c.push(t[1])}else i=1;let d=(i-t)*l;return[i-d,Object.assign(Object.assign({},e),{thickness:d,nextLevelNodes:c})]});return e.map(e=>n(e,0,0)[1])}(function(e){let{entriesByLevel:t}=e,n=oh((e,t)=>e+":"+t,(r,i)=>{let s=od(function(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,s=i[t][n],o=r[t]+s.thickness,a=r.length,l=t;for(;l<a&&r[l]<o;l+=1);for(;l<a;l+=1){let e,t=i[l],n=rK(t,s.span.start,rQ),r=n[0]+n[1],o=r;for(;(e=t[o])&&e.span.start<s.span.end;)o+=1;if(r<o)return{level:l,lateralStart:r,lateralEnd:o}}return null}(e,r,i),n),o=t[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:s[0]}),o.thickness+s[1]]});return od(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(i),1)),hiddenGroups:s}),u=[];for(let t of c)u.push({seg:e[t.index],rect:t});for(let e of l)u.push({seg:e,rect:null});return{segPlacements:u,hiddenGroups:d}}(e,m,l,o);return T(O,null,this.renderHiddenGroups(y,e),v.map(e=>{let{seg:o,rect:l}=e,c=o.eventRange.instance.instanceId,d=g||!!(!t[c]&&l),u=ob(l&&l.span),m=!g&&l?this.computeSegHStyle(l):{left:0,right:0},v=!!l&&l.stackForward>0,y=!!l&&l.span.end-l.span.start<a;return T("div",{className:"fc-timegrid-event-harness"+(v?" fc-timegrid-event-harness-inset":""),key:s||c,style:Object.assign(Object.assign({visibility:d?"":"hidden"},u),m)},T(om,Object.assign({seg:o,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:c===p,isShort:y},rh(o,h,f))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:o,eventDrag:a,eventResize:l}=this.props;return T(O,null,e.map(e=>{var c,d;let u=ob(e.span),p=(c=e.entries,d=t,c.map(e=>d[e.index]));return T(ol,{key:tS(ij(p)),hiddenSegs:p,top:u.top,bottom:u.bottom,extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:s,eventSelection:o,eventDrag:a,eventResize:l})}))}renderFillSegs(e,t){let{props:n,context:r}=this,i=of(e,n.date,n.slatCoords,r.options.eventMinHeight).map((r,i)=>{let s=e[i];return T("div",{key:rf(s.eventRange),className:"fc-timegrid-bg-harness",style:ob(r)},"bg-event"===t?T(iA,Object.assign({seg:s},rh(s,n.todayRange,n.nowDate))):ik(t))});return T(O,null,i)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((e,r)=>T(iw,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n})):null}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+(a-o)*2)),r?(t=1-a,n=o):(t=o,n=1-a);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return s&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function oy(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let o=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return T(O,null,e.map(e=>{let i=e.eventRange.instance.instanceId;return T("div",{key:i,style:{visibility:o[i]?"hidden":""}},T(om,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===r,isShort:!1},rh(e,t,n))))}))}function ob(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class oD extends nd{constructor(){super(...arguments),this.splitFgEventSegs=tA(oo),this.splitBgEventSegs=tA(oo),this.splitBusinessHourSegs=tA(oo),this.splitNowIndicatorSegs=tA(oo),this.splitDateSelectionSegs=tA(oo),this.splitEventDrag=tA(oa),this.splitEventResize=tA(oa),this.rootElRef=N(),this.cellElRefs=new ic}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),o=this.splitBusinessHourSegs(e.businessHourSegs,r),a=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r);return T("div",{className:"fc-timegrid-cols",ref:this.rootElRef},T("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,T("tbody",{role:"presentation"},T("tr",{role:"row"},e.axis&&T("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},T("div",{className:"fc-timegrid-col-frame"},T("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&T(iw,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((t,n)=>T(ov,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:i[n],bgEventSegs:s[n],businessHourSegs:o[n],nowIndicatorSegs:a[n],dateSelectionSegs:l[n],eventDrag:c[n],eventResize:d[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){var e;let{props:t}=this;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new rF(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map(t=>e[t.key])),!0,!1))}}class ow extends rY{constructor(){super(...arguments),this.processSlotOptions=tA(oE),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);(r=Math.ceil(r))&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return T("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},T(os,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),T(oD,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:i}=this,{dateProfile:s}=this.props,{slatCoords:o}=this.state,{snapDuration:a,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=i.leftToIndex(e),d=o.positions.topToIndex(t);if(null!=c&&null!=d){var u;let e=this.props.cells[c],r=o.positions.tops[d],p=o.positions.getHeight(d),h=Math.floor((t-r)/p*l),f=this.props.cells[c].date,g=tr(s.slotMinTime,(u=d*l+h,{years:a.years*u,months:a.months*u,days:a.days*u,milliseconds:a.milliseconds*u})),m=n.add(f,g),v=n.add(m,a);return{dateProfile:s,dateSpan:Object.assign({range:{start:m,end:v},allDay:!1},e.extraDateSpan),dayEl:i.els[c],rect:{left:i.lefts[c],right:i.rights[c],top:r,bottom:r+p},layer:0}}return null}}function oE(e,t){let n=t||e,r=to(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class oS extends ie{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=nS(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}}class oC extends rY{constructor(){super(...arguments),this.buildDayRanges=tA(o_),this.slicer=new oS,this.timeColsRef=N()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:i,nextDayThreshold:s}=t.options,o=this.buildDayRanges(r,n,t.dateEnv);return T(r3,{unit:i?"minute":"day"},(a,l)=>T(ow,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:a,nowIndicatorSegs:i&&this.slicer.sliceNowDate(a,n,s,t,o),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function o_(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}let oA=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function ox(e,t,n,r,i){let s=new Date(0),o=e,a=tt(0),l=n||function(e){let t,n,r;for(t=oA.length-1;t>=0;t-=1)if(null!==(r=to(n=tt(oA[t]),e))&&r>1)return n;return e}(r),c=[];for(;ts(o)<ts(t);){let e=i.add(s,o),t=null!==to(a,l);c.push({date:e,time:o,key:e.toISOString(),isoTimeStr:e8(e.getUTCHours(),2)+":"+e8(e.getUTCMinutes(),2)+":"+e8(e.getUTCSeconds(),2),isLabeled:t}),o=tr(o,r),a=tr(a,r)}return c}class ok extends ot{constructor(){super(...arguments),this.buildTimeColsModel=tA(oR),this.buildSlatMetas=tA(ox)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:i}=r,s=this.buildTimeColsModel(i,n),o=this.allDaySplitter.splitProps(r),a=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:l}=e,c=!l,d=e.dayHeaders&&T(r8,{dates:s.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),u=!1!==e.allDaySlot&&(t=>T(s0,Object.assign({},o.allDay,{dateProfile:i,dayTableModel:s,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),p=t=>T(oC,Object.assign({},o.timed,{dayTableModel:s,dateProfile:i,axis:c,slotDuration:e.slotDuration,slatMetas:a,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return l?this.renderHScrollLayout(d,u,p,s.colCnt,l,a,this.state.slatCoords):this.renderSimpleLayout(d,u,p)}}function oR(e,t){return new r7(new r9(e.renderRange,t),!1)}eF('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var oT=iG({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:ok,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});rX.touchMouseIgnoreWait=500;let oM=0,oN=0,oO=!1;class oI{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,oM+=1,setTimeout(()=>{oM-=1},rX.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 n8,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(oN+=1)&&window.addEventListener("touchmove",oP,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(oN-=1)||window.removeEventListener("touchmove",oP,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!!(t&&(!this.handleSelector||eY(n,this.handleSelector)))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){oO=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?eY(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return oM||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(oO=!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 oP(e){oO&&e.preventDefault()}class oj{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){var n;let r,i=this.mirrorEl,s=this.sourceEl.getBoundingClientRect();i.style.transition="top "+t+"ms,left "+t+"ms",eQ(i,{left:s.left,top:s.top}),n=()=>{i.style.transition="",e()},r=e=>{n(e),eJ.forEach(e=>{i.removeEventListener(e,r)})},eJ.forEach(e=>{i.addEventListener(e,r)})}cleanup(){this.mirrorEl&&(eW(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&eQ(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)).style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),eQ(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 oH extends rB{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 oL extends oH{constructor(e,t){super(new rz(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return function(e,t=!1,n){let r=rH(e),i=function(e,t=!1){let n,r,i=window.getComputedStyle(e),s=parseInt(i.borderLeftWidth,10)||0,o=parseInt(i.borderRightWidth,10)||0,a=parseInt(i.borderTopWidth,10)||0,l=parseInt(i.borderBottomWidth,10)||0,c=rj(e),d=c.y-s-o,u=c.x-a-l,p={borderLeft:s,borderRight:o,borderTop:a,borderBottom:l,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return(null===rP&&(eQ(n=document.createElement("div"),{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),n.innerHTML="<div></div>",document.body.appendChild(n),r=n.firstChild.getBoundingClientRect().left>n.getBoundingClientRect().left,eW(n),rP=r),rP&&"rtl"===i.direction)?p.scrollbarLeft=d:p.scrollbarRight=d,t&&(p.paddingLeft=parseInt(i.paddingLeft,10)||0,p.paddingRight=parseInt(i.paddingRight,10)||0,p.paddingTop=parseInt(i.paddingTop,10)||0,p.paddingBottom=parseInt(i.paddingBottom,10)||0),p}(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}(this.scrollController.el)}}class oF extends oH{constructor(e){super(new rW,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()}}let oU="function"==typeof performance?performance.now:Date.now;class oB{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=oU();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(oU()))}}stop(){if(this.isEnabled){for(let e of(this.isAnimating=!1,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;for(let i of this.scrollCaches||[]){let s=i.clientRect,o=e-s.left,a=s.right-e,l=t-s.top,c=s.bottom-t;o>=0&&a>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:i,name:"top",distance:l}),c<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:i,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:i,name:"left",distance:o}),a<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>a)&&(r={scrollCache:i,name:"right",distance:a}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new oF(!1):new oL(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 oz extends r${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,function(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",e$)}(document.body),document.body.addEventListener("contextmenu",e$),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t=this.minDistance,{deltaX:n,deltaY:r}=e;n*n+r*r>=t*t&&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,function(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",e$)}(document.body),document.body.removeEventListener("contextmenu",e$),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 oI(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 oj,this.autoScroller=new oB}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class oW{constructor(e){this.el=e,this.origRect=rH(e),this.scrollCaches=rL(e).map(e=>new oL(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){var r;if(!function(e){let t=e.tagName;return"HTML"===t||"BODY"===t}(e.getEventTarget())&&(r=e.clientRect,!(n.left>=r.left)||!(n.left<r.right)||!(n.top>=r.top)||!(n.top<r.bottom)))return!1}return!0}}class oY{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new n8}processFirstCoord(e){var t,n,r;let i,s={left:e.pageX,top:e.pageY},o=s,a=e.subjectEl;a instanceof HTMLElement&&(i=rH(a),t=o,n=i,o={left:Math.min(Math.max(t.left,n.left),n.right),top:Math.min(Math.max(t.top,n.top),n.bottom)});let l=this.initialHit=this.queryHitForOffset(o.left,o.top);if(l){if(this.useSubjectCenter&&i){let e=rA(i,l.rect);e&&(o={left:(e.left+e.right)/2,top:(e.top+e.bottom)/2})}this.coordAdjust={left:(r=o).left-s.left,top:r.top-s.top}}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||!oV(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=t1(this.droppableStore,e=>(e.component.prepareHits(),new oW(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,p=d.bottom-d.top;if(l>=0&&l<u&&c>=0&&c<p){let e=o.queryHit(l,c,u,p);e&&n_(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 oV(e,t){var n,r,i,s;return!e&&!t||!!e==!!t&&(n=e.dateSpan,r=t.dateSpan,i=n.range,s=r.range,(null===i.start?null:i.start.valueOf())===(null===s.start?null:s.start.valueOf())&&(null===i.end?null:i.end.valueOf())===(null===s.end?null:s.end.valueOf())&&n.allDay===r.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}(n,r))}function oQ(e,t){var n,r;let i={};for(let n of t.pluginHooks.datePointTransforms)Object.assign(i,n(e,t));return Object.assign(i,(n=e,{date:(r=t.dateEnv).toDate(n.range.start),dateStr:r.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay})),i}class oG extends rE{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&oV(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},oQ(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new oz(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new oY(this.dragging,rS(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class oq extends rE{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;return null==n&&(n=t.longPressDelay),n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,i=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,i=t.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(e9);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&&function(e,t,n){return!!n_(t.validRange,e.range)&&ii({dateSelection:e},n)}(r,e.dateProfile,n)||(i=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),i?e3():e5(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(n9(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new oz(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new oY(this.dragging,rS(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()}}class oZ extends rE{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:i}=r,{options:s}=n.context,o=n.context;this.subjectEl=e.subjectEl;let a=this.subjectSeg=ra(e.subjectEl),l=(this.eventRange=a.eventRange).instance.instanceId;this.relevantEvents=nW(o.getCurrentData().eventStore,l),r.minDistance=e.isTouch?0:s.eventDragMinDistance,r.delay=e.isTouch&&l!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;return null==n&&(n=t.longPressDelay),n}(n):null,s.fixedMirrorParent?i.parentNode=s.fixedMirrorParent:i.parentNode=eY(t,".fc"),i.revertDuration=s.dragRevertDuration;let c=n.isValidSegDownEl(t)&&!eY(t,".fc-event-resizer");r.setIgnoreMove(!c),this.isDragging=c&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new rr(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:nY(),isEvent:!0};if(e){let t=(s=e.context).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?tg(n):n);let c=nR(o,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(l.allDay=!1);let d={datesDelta:c,standardProps:l};for(let n of r)n(d,e,t);return d}(r,e,this.eventRange.instance.range.start,s.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(c.mutatedEvents=a=rt(n,s.getCurrentData().eventUiBases,o,s),ir(c,e.dateProfile,s)||(l=!0,o=null,a=null,c.mutatedEvents=nY())):s=null}this.displayDrag(s,c),l?e3():e5(),t||(i===s&&oV(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 rr(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 rr(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:rs(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:rs(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],p=c.instances[o.instanceId],h=new rr(r,u,p);r.dispatch({type:"MERGE_EVENTS",eventStore:c});let f={event:h,relatedEvents:rs(c,r,p),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};r.emitter.trigger("eventAdd",f),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},oQ(d.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:d.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},f),{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 oz(e.el);r.pointer.selector=oZ.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new oY(this.dragging,rC);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:nY(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}oZ.SELECTOR=".fc-event-draggable, .fc-event-resizable";class oK extends rE{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=ra(this.querySegEl(e)),r=this.eventRange=n.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=nW(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=ra(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new rr(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:nY(),isEvent:!0};e&&(e.componentId===s.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(s,e)||(a=function(e,t,n,r){let i=e.context.dateEnv,s=nR(e.dateSpan.range.start,t.dateSpan.range.start,i,e.largeUnit);if(n){if(i.add(r.start,s)<r.end)return{startDelta:s}}else if(i.add(r.end,s)>r.start)return{endDelta:s};return null}(s,e,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))),a&&(d.mutatedEvents=l=rt(i,r.getCurrentData().eventUiBases,a,r),ir(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?e3():e5(),t||(a&&oV(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 rr(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 rr(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:rs(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||tt(0),endDelta:this.validMutation.endDelta||tt(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",l)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new oz(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new oY(this.dragging,rS(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 eY(e.subjectEl,".fc-event")}}class o${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=eq(e.origEvent);this.matchesCancel=!!eY(n,t),this.matchesEvent=!!eY(n,oZ.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 oI(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()}}rX.dataAttrPrefix="";var oX=iG({name:"@fullcalendar/interaction",componentInteractions:[oG,oq,oZ,oK],calendarInteractions:[o$],elementDraggingImpl:oz,optionRefiners:{fixedMirrorParent:t$},listenerRefiners:{dateClick:t$,eventDragStart:t$,eventDragStop:t$,eventDrop:t$,eventResizeStart:t$,eventResizeStop:t$,eventResize:t$,drop:t$,eventReceive:t$,eventLeave:t$}}),oJ={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Pr\xe9c\xe9dent",next:"Suivant",today:"Aujourd'hui",year:"Ann\xe9e",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journ\xe9e",moreLinkText:"en plus",noEventsText:"Aucun \xe9v\xe8nement \xe0 afficher"},o0=n(55192),o1=n(24934),o2=n(85910),o4=n(40228),o3=n(13964),o5=n(11860);let o8=(0,n(62688).A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var o6=n(96474),o9=n(41862),o7=n(37826),ae=n(68988),at=n(15616),an=n(39390),ar=n(80189),ai=n(49384),as=n(11392);let ao={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},aa=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,al=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ac=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ad(e){return e?parseInt(e):1}function au(e){return e&&parseFloat(e.replace(",","."))||0}let ap=[31,null,31,30,31,30,31,31,30,31,30,31];function ah(e){return e%400==0||e%4==0&&e%100!=0}var af=n(47138),ag=n(35355),am=n(47141);function av(e,t){return+(0,af.a)(e)<+(0,af.a)(t)}var ay=n(75699);function ab(e,t){let n=(0,af.a)(e);return n.setHours(t),n}function aD(e,t){let n=(0,af.a)(e);return n.setMinutes(t),n}function aw(e,t){let n=(0,af.a)(e);return n.setSeconds(t),n}var aE=n(88838),aS=n(37074),aC=n(33660);function a_(e){let t=(0,af.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t}var aA=n(95519);function ax(e){let t=(0,af.a)(e),n=t.getMonth();return t.setMonth(n-n%3,1),t.setHours(0,0,0,0),t}var ak=n(46679),aR=n(9903),aT=n(46127);function aM(e,t){let n=+(0,af.a)(e),[r,i]=[+(0,af.a)(t.start),+(0,af.a)(t.end)].sort((e,t)=>e-t);return n>=r&&n<=i}var aN=n(35780);function aO(e,t){let n=(0,af.a)(e),r=n.getFullYear(),i=n.getDate(),s=(0,aN.w)(e,0);s.setFullYear(r,t,15),s.setHours(0,0,0,0);let o=function(e){let t=(0,af.a)(e),n=t.getFullYear(),r=t.getMonth(),i=(0,aN.w)(e,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}(s);return n.setMonth(t,Math.min(i,o)),n}function aI(e,t){let n=(0,af.a)(e),r=Math.trunc(n.getMonth()/3)+1;return aO(n,n.getMonth()+3*(t-r))}function aP(e){return(0,af.a)(e).getFullYear()}function aj(e){return(0,af.a)(e).getMonth()}function aH(e){let t=(0,af.a)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function aL(e){return Math.trunc((0,af.a)(e).getMonth()/3)+1}var aF=n(89106);function aU(e){return(0,af.a)(e).getHours()}function aB(e){return(0,af.a)(e).getMinutes()}function az(e){return(0,af.a)(e).getSeconds()}function aW(e,t){let n=(0,af.a)(e);if(isNaN(t))return(0,aN.w)(e,NaN);if(!t)return n;let r=n.getDate(),i=(0,aN.w)(e,n.getTime());return(i.setMonth(n.getMonth()+t+1,0),r>=i.getDate())?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var aY=n(79186);function aV(e,t){return aW(e,-(3*t))}function aQ(e,t){let n=(0,af.a)(e),r=(0,af.a)(t);return 4*(n.getFullYear()-r.getFullYear())+(aL(n)-aL(r))}function aG(e,t){return aW(e,12*t)}function aq(e,t){let n=(0,af.a)(e),r=(0,af.a)(t);return n.getFullYear()-r.getFullYear()}function aZ(e){let t;return e.forEach(e=>{let n=(0,af.a)(e);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function aK(e){let t;return e.forEach(function(e){let n=(0,af.a)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}var a$=n(32637);function aX(e,t){let n=+(0,af.a)(e);return(0,aN.w)(e,n+t)}function aJ(e,t){return aX(e,t*as.Cg)}function a0(e,t){let n=(0,af.a)(e),r=(0,af.a)(t);return n.getTime()>r.getTime()}function a1(e){return(0,af.a)(e).getDate()}var a2=n(90327);function a4(e,t){return(0,a2.f)(e,7*t)}function a3(e){return(0,af.a)(e).getTime()}function a5(e,t){let n=(0,af.a)(e);return isNaN(+n)?(0,aN.w)(e,NaN):(n.setFullYear(t),n)}function a8(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}var a6=n(10867),a9=n(4503);let a7={...w},le=a7.useInsertionEffect||(e=>e()),lt="ArrowUp",ln="ArrowDown",lr="ArrowLeft",li="ArrowRight";function ls(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:s=1}=void 0===t?{}:t,o=e.current,a=n;do a+=r?-s:s;while(a>=0&&a<=o.length-1&&function(e,t,n){if(n)return n.includes(t);let r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}(o,a,i));return a}var lo="undefined"!=typeof document?D.useLayoutEffect:D.useEffect;let la=!1,ll=0,lc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ll++,ld=a7.useId||function(){let[e,t]=D.useState(()=>la?lc():void 0);return lo(()=>{null==e&&t(lc())},[]),D.useEffect(()=>{la=!0},[]),e},lu=D.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:s}},width:o=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:d,stroke:u,d:p,style:{transform:h,...f}={},...g}=e,m=ld(),[y,b]=D.useState(!1);if(lo(()=>{r&&"rtl"===(0,a6.L9)(r).direction&&b(!0)},[r]),!r)return null;let[w,E]=n.split("-"),S="top"===w||"bottom"===w,C=d;(S&&null!=s&&s.x||!S&&null!=s&&s.y)&&(C=null);let _=2*c,A=_/2,x=o/2*(-(l/8)+1),k=a/2*l/4,R=!!p,T=C&&"end"===E?"bottom":"top",M=C&&"end"===E?"right":"left";C&&y&&(M="end"===E?"left":"right");let N=(null==i?void 0:i.x)!=null?C||i.x:"",O=(null==i?void 0:i.y)!=null?C||i.y:"",I=p||"M0,0 H"+o+(" L"+(o-x))+","+(a-k)+(" Q"+o/2+","+a+" "+x)+","+(a-k)+" Z",P={top:R?"rotate(180deg)":"",left:R?"rotate(90deg)":"rotate(-90deg)",bottom:R?"":"rotate(180deg)",right:R?"rotate(-90deg)":"rotate(90deg)"}[w];return(0,v.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:R?o:o+_,height:o,viewBox:"0 0 "+o+" "+(a>o?a:o),style:{position:"absolute",pointerEvents:"none",[M]:N,[T]:O,[w]:S||R?"100%":"calc(100% - "+_/2+"px)",transform:[P,h].filter(e=>!!e).join(" "),...f},children:[_>0&&(0,v.jsx)("path",{clipPath:"url(#"+m+")",fill:"none",stroke:u,strokeWidth:_+ +!p,d:I}),(0,v.jsx)("path",{stroke:_&&!p?g.fill:"none",d:I}),(0,v.jsx)("clipPath",{id:m,children:(0,v.jsx)("rect",{x:-A,y:A*(R?-1:1),width:o+_,height:o})})]})}),lp=D.createContext(null),lh=D.createContext(null),lf=()=>{var e;return(null==(e=D.useContext(lp))?void 0:e.id)||null},lg=()=>D.useContext(lh),lm=()=>{},lv=D.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:lm,setState:lm,isInstantPhase:!1}),ly=0,lb=new WeakMap,lD=new WeakSet,lw={},lE=0,lS=e=>e&&(e.host||lS(e.parentNode)),lC=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=lS(t);return e.contains(n)?n:null}).filter(e=>null!=e),l_=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function lA(e,t){let n=tabbable(e,l_());"prev"===t&&n.reverse();let r=n.indexOf(activeElement(getDocument(e)));return n.slice(r+1)[0]}let lx="data-floating-ui-focusable",lk="active",lR="selected";function lT(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}var lM=n(51865),lN=function(e,t){return(lN=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function lO(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}lN(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lI=function(){return(lI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function lP(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var lj=function(e){var t=e.showTimeSelectOnly,n=e.showTime,r=e.className,i=e.children,s=void 0!==t&&t?"Choose Time":"Choose Date".concat(void 0!==n&&n?" and Time":"");return E().createElement("div",{className:r,role:"dialog","aria-label":s,"aria-modal":"true"},i)},lH=function(e,t){var n=(0,D.useRef)(null),r=(0,D.useRef)(e);r.current=e;var i=(0,D.useCallback)(function(e){var i,s=e.composed&&e.composedPath&&e.composedPath().find(function(e){return e instanceof Node})||e.target;!n.current||n.current.contains(s)||t&&s instanceof HTMLElement&&s.classList.contains(t)||null==(i=r.current)||i.call(r,e)},[t]);return(0,D.useEffect)(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),n},lL=function(e){var t=e.children,n=e.onClickOutside,r=e.className,i=e.containerRef,s=e.style,o=lH(n,e.ignoreClass);return E().createElement("div",{className:r,style:s,ref:function(e){o.current=e,i&&(i.current=e)}},t)};function lF(){return"undefined"!=typeof window?window:globalThis}function lU(e){if(null==e)return new Date;var t="string"==typeof e?function(e,t){let n,r,i=function(e){let t,n={},r=e.split(ao.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],ao.timeZoneDelimiter.test(n.date)&&(n.date=e.split(ao.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){let e=ao.timezone.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(i.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:null===s?i:100*s,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,(void 0)??2);n=function(e,t){var n,r,i,s,o,a,l,c;if(null===t)return new Date(NaN);let d=e.match(aa);if(!d)return new Date(NaN);let u=!!d[4],p=ad(d[1]),h=ad(d[2])-1,f=ad(d[3]),g=ad(d[4]),m=ad(d[5])-1;if(u){return(n=0,r=g,i=m,r>=1&&r<=53&&i>=0&&i<=6)?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,g,m):new Date(NaN)}{let e=new Date(0);return(s=t,o=h,a=f,o>=0&&o<=11&&a>=1&&a<=(ap[o]||(ah(s)?29:28))&&(l=t,(c=p)>=1&&c<=(ah(l)?366:365)))?(e.setUTCFullYear(t,h,Math.max(p,f)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);let s=n.getTime(),o=0;if(i.time&&isNaN(o=function(e){var t,n,r;let i=e.match(al);if(!i)return NaN;let s=au(i[1]),o=au(i[2]),a=au(i[3]);return(t=s,n=o,r=a,24===t?0===n&&0===r:r>=0&&r<60&&n>=0&&n<60&&t>=0&&t<25)?s*as.s0+o*as.Cg+1e3*a:NaN}(i.time)))return new Date(NaN);if(i.timezone){if(isNaN(r=function(e){var t,n;if("Z"===e)return 0;let r=e.match(ac);if(!r)return 0;let i="+"===r[1]?-1:1,s=parseInt(r[2]),o=r[3]&&parseInt(r[3])||0;return(t=0,(n=o)>=0&&n<=59)?i*(s*as.s0+o*as.Cg):NaN}(i.timezone)))return new Date(NaN)}else{let e=new Date(s+o),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(s+o+r)}(e):(0,af.a)(e);return lz(t)?t:new Date}function lB(e,t,n,r,i){void 0===i&&(i=lU());for(var s=l4(n)||l4(l2()),o=Array.isArray(t)?t:[t],a=0;a<o.length;a++){var l=o[a],c=(0,ag.qg)(e,l,i,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(lz(c)&&(!r||e===lW(c,l,n)))return c}return null}function lz(e,t){return(0,am.f)(e)&&!av(e,new Date("1/1/1800"))}function lW(e,t,n){if("en"===n)return(0,ay.GP)(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?l4(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),r=r||l4(l2()),(0,ay.GP)(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function lY(e,t){var n=t.dateFormat,r=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&lW(e,i,r)||""}function lV(e,t){var n=t.hour,r=t.minute,i=t.second;return ab(aD(aw(e,void 0===i?0:i),void 0===r?0:r),void 0===n?0:n)}function lQ(e){return(0,aS.o)(e)}function lG(e,t,n){var r=t?l4(t):l4(l2());return(0,aC.k)(e,{locale:r,weekStartsOn:n})}!function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"}(a||(a={}));function lq(e){return(0,aA.D)(e)}function lZ(){return(0,aS.o)(lU())}function lK(e,t){if(!e||!t)return!e&&!t;let n=(0,af.a)(e),r=(0,af.a)(t);return n.getFullYear()===r.getFullYear()}function l$(e,t){if(!e||!t)return!e&&!t;let n=(0,af.a)(e),r=(0,af.a)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function lX(e,t){return e&&t?+ax(e)==+ax(t):!e&&!t}function lJ(e,t){return e&&t?+(0,aS.o)(e)==+(0,aS.o)(t):!e&&!t}function l0(e,t){return e&&t?+(0,af.a)(e)==+(0,af.a)(t):!e&&!t}function l1(e,t,n){var r,i=(0,aS.o)(t),s=(0,ak.D)(n);try{r=aM(e,{start:i,end:s})}catch(e){r=!1}return r}function l2(){return lF().__localeId__}function l4(e){if("string"!=typeof e)return e;var t=lF();return t.__localeData__?t.__localeData__[e]:void 0}function l3(e,t){return lW(aO(lU(),e),"LLLL",t)}function l5(e,t){return lW(aO(lU(),e),"LLL",t)}function l8(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.excludeDateIntervals,a=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return ci(e,{minDate:r,maxDate:i})||s&&s.some(function(t){return t instanceof Date?lJ(e,t):lJ(e,t.date)})||o&&o.some(function(t){return aM(e,{start:t.start,end:t.end})})||a&&!a.some(function(t){return lJ(e,t)})||l&&!l.some(function(t){return aM(e,{start:t.start,end:t.end})})||c&&!c(lU(e))||!1}function l6(e,t){var n=void 0===t?{}:t,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(t){return aM(e,{start:t.start,end:t.end})}):r&&r.some(function(t){var n;return t instanceof Date?lJ(e,t):lJ(e,null!=(n=t.date)?n:new Date)})||!1}function l9(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate;return ci(e,{minDate:r?a_(r):void 0,maxDate:i?(0,aT.p)(i):void 0})||(null==s?void 0:s.some(function(t){return l$(e,t instanceof Date?t:t.date)}))||o&&!o.some(function(t){return l$(e,t)})||a&&!a(lU(e))||!1}function l7(e,t,n,r){var i=aP(e),s=aj(e),o=aP(t),a=aj(t),l=aP(r);return i===o&&i===l?s<=n&&n<=a:i<o&&(l===i&&s<=n||l===o&&a>=n||l<o&&l>i)}function ce(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate;return ci(e,{minDate:r,maxDate:i})||(null==s?void 0:s.some(function(t){return lX(e,t instanceof Date?t:t.date)}))||o&&!o.some(function(t){return lX(e,t)})||a&&!a(lU(e))||!1}function ct(e,t,n){if(!t||!n||!(0,am.f)(t)||!(0,am.f)(n))return!1;var r=aP(t),i=aP(n);return r<=e&&i>=e}function cn(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate,l=new Date(e,0,1);return ci(l,{minDate:r?(0,aA.D)(r):void 0,maxDate:i?aH(i):void 0})||(null==s?void 0:s.some(function(e){return lK(l,e instanceof Date?e:e.date)}))||o&&!o.some(function(e){return lK(l,e)})||a&&!a(lU(l))||!1}function cr(e,t,n,r){var i=aP(e),s=aL(e),o=aP(t),a=aL(t),l=aP(r);return i===o&&i===l?s<=n&&n<=a:i<o&&(l===i&&s<=n||l===o&&a>=n||l<o&&l>i)}function ci(e,t){var n,r=void 0===t?{}:t,i=r.minDate,s=r.maxDate;return null!=(n=i&&0>(0,aF.m)(e,i)||s&&(0,aF.m)(e,s)>0)&&n}function cs(e,t){return t.some(function(t){return aU(t)===aU(e)&&aB(t)===aB(e)&&az(t)===az(e)})}function co(e,t){var n=void 0===t?{}:t,r=n.excludeTimes,i=n.includeTimes,s=n.filterTime;return r&&cs(e,r)||i&&!cs(e,i)||s&&!s(e)||!1}function ca(e,t){var n,r=t.minTime,i=t.maxTime;if(!r||!i)throw Error("Both minTime and maxTime props required");var s=lU();s=aw(s=aD(s=ab(s,aU(e)),aB(e)),az(e));var o=lU();o=aw(o=aD(o=ab(o,aU(r)),aB(r)),az(r));var a=lU();a=aw(a=aD(a=ab(a,aU(i)),aB(i)),az(i));try{n=!aM(s,{start:o,end:a})}catch(e){n=!1}return n}function cl(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,s=aW(e,-1);return r&&(0,aY.U)(r,s)>0||i&&i.every(function(e){return(0,aY.U)(e,s)>0})||!1}function cc(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,s=aW(e,1);return r&&(0,aY.U)(s,r)>0||i&&i.every(function(e){return(0,aY.U)(s,e)>0})||!1}function cd(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.includeDates,s=aG(e,-1);return r&&aq(r,s)>0||i&&i.every(function(e){return aq(e,s)>0})||!1}function cu(e,t){var n=void 0===t?{}:t,r=n.maxDate,i=n.includeDates,s=aG(e,1);return r&&aq(s,r)>0||i&&i.every(function(e){return aq(s,e)>0})||!1}function cp(e){var t=e.minDate,n=e.includeDates;return n&&t?aZ(n.filter(function(e){return(0,aF.m)(e,t)>=0})):n?aZ(n):t}function ch(e){var t=e.maxDate,n=e.includeDates;return n&&t?aK(n.filter(function(e){return 0>=(0,aF.m)(e,t)})):n?aK(n):t}function cf(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var n,r=new Map,i=0,s=e.length;i<s;i++){var o=e[i];if((0,a$.$)(o)){var a=lW(o,"MM.dd.yyyy"),l=r.get(a)||[];l.includes(t)||(l.push(t),r.set(a,l))}else if("object"==typeof o){var c=null!=(n=Object.keys(o)[0])?n:"",d=o[c];if("string"==typeof c&&Array.isArray(d))for(var u=0,p=d.length;u<p;u++){var h=d[u];if(h){var a=lW(h,"MM.dd.yyyy"),l=r.get(a)||[];l.includes(c)||(l.push(c),r.set(a,l))}}}}return r}function cg(e){return e<10?"0".concat(e):"".concat(e)}function cm(e,t){void 0===t&&(t=12);var n=Math.ceil(aP(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function cv(e){var t=e.getSeconds(),n=e.getMilliseconds();return(0,af.a)(e.getTime()-1e3*t-n)}function cy(e){if(!(0,a$.$)(e))throw Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function cb(e,t){if(!(0,a$.$)(e)||!(0,a$.$)(t))throw Error("Invalid date received");return av(cy(e),cy(t))}function cD(e){return e.key===a.Space}var cw=function(e){function t(t){var n=e.call(this,t)||this;return n.inputRef=E().createRef(),n.onTimeChange=function(e){n.setState({time:e});var t,r,i=n.props.date,s=i instanceof Date&&!isNaN(+i)?i:new Date;if(null==e?void 0:e.includes(":")){var o=e.split(":"),a=o[0],l=o[1];s.setHours(Number(a)),s.setMinutes(Number(l))}null==(r=(t=n.props).onChange)||r.call(t,s)},n.renderTimeInput=function(){var e=n.state.time,t=n.props,r=t.date,i=t.timeString,s=t.customTimeInput;return s?(0,D.cloneElement)(s,{date:r,value:e,onChange:n.onTimeChange}):E().createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:n.inputRef,onClick:function(){var e;null==(e=n.inputRef.current)||e.focus()},required:!0,value:e,onChange:function(e){n.onTimeChange(e.target.value||i)}})},n.state={time:n.props.timeString},n}return lO(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return E().createElement("div",{className:"react-datepicker__input-time-container"},E().createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),E().createElement("div",{className:"react-datepicker-time__input-container"},E().createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(D.Component),cE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dayEl=(0,D.createRef)(),t.handleClick=function(e){!t.isDisabled()&&t.props.onClick&&t.props.onClick(e)},t.handleMouseEnter=function(e){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(e)},t.handleOnKeyDown=function(e){var n,r;e.key===a.Space&&(e.preventDefault(),e.key=a.Enter),null==(r=(n=t.props).handleOnKeyDown)||r.call(n,e)},t.isSameDay=function(e){return lJ(t.props.day,e)},t.isKeyboardSelected=function(){if(t.props.disabledKeyboardNavigation)return!1;var e,n=t.props.selectsMultiple?null==(e=t.props.selectedDates)?void 0:e.some(function(e){return t.isSameDayOrWeek(e)}):t.isSameDayOrWeek(t.props.selected),r=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!n&&t.isSameDayOrWeek(t.props.preSelection)&&!r},t.isDisabled=function(e){return void 0===e&&(e=t.props.day),l8(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return l6(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return lJ(t.props.day,lG(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(e){return t.props.showWeekPicker&&lJ(e,lG(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(e){return t.isSameDay(e)||t.isSameWeek(e)},t.getHighLightedClass=function(){var e=t.props,n=e.day,r=e.highlightDates;if(!r)return!1;var i=lW(n,"MM.dd.yyyy");return r.get(i)},t.getHolidaysClass=function(){var e,n=t.props,r=n.day,i=n.holidays;if(!i)return[void 0];var s=lW(r,"MM.dd.yyyy");return i.has(s)?[null==(e=i.get(s))?void 0:e.className]:[void 0]},t.isInRange=function(){var e=t.props,n=e.day,r=e.startDate,i=e.endDate;return!!r&&!!i&&l1(n,r,i)},t.isInSelectingRange=function(){var e,n=t.props,r=n.day,i=n.selectsStart,s=n.selectsEnd,o=n.selectsRange,a=n.selectsDisabledDaysInRange,l=n.startDate,c=n.endDate,d=null!=(e=t.props.selectingDate)?e:t.props.preSelection;return!(!(i||s||o)||!d||!a&&t.isDisabled())&&(i&&c&&(av(d,c)||l0(d,c))?l1(r,d,c):!!(s&&l&&!c&&(a0(d,l)||l0(d,l))||o&&l&&!c&&(a0(d,l)||l0(d,l)))&&l1(r,l,d))},t.isSelectingRangeStart=function(){if(!t.isInSelectingRange())return!1;var e,n=t.props,r=n.day,i=n.startDate,s=n.selectsStart,o=null!=(e=t.props.selectingDate)?e:t.props.preSelection;return s?lJ(r,o):lJ(r,i)},t.isSelectingRangeEnd=function(){if(!t.isInSelectingRange())return!1;var e,n=t.props,r=n.day,i=n.endDate,s=n.selectsEnd,o=n.selectsRange,a=null!=(e=t.props.selectingDate)?e:t.props.preSelection;return s||o?lJ(r,a):lJ(r,i)},t.isRangeStart=function(){var e=t.props,n=e.day,r=e.startDate,i=e.endDate;return!!r&&!!i&&lJ(r,n)},t.isRangeEnd=function(){var e=t.props,n=e.day,r=e.startDate,i=e.endDate;return!!r&&!!i&&lJ(i,n)},t.isWeekend=function(){var e,n=(e=t.props.day,(0,af.a)(e).getDay());return 0===n||6===n},t.isAfterMonth=function(){return void 0!==t.props.month&&(t.props.month+1)%12===aj(t.props.day)},t.isBeforeMonth=function(){return void 0!==t.props.month&&(aj(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(lU())},t.isSelected=function(){var e;return t.props.selectsMultiple?null==(e=t.props.selectedDates)?void 0:e.some(function(e){return t.isSameDayOrWeek(e)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(e){var n=t.props.dayClassName?t.props.dayClassName(e):void 0;return(0,ai.$)("react-datepicker__day",n,"react-datepicker__day--"+lW(t.props.day,"ddd",void 0),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var e=t.props,n=e.day,r=e.ariaLabelPrefixWhenEnabled,i=e.ariaLabelPrefixWhenDisabled,s=t.isDisabled()||t.isExcluded()?void 0===i?"Not available":i:void 0===r?"Choose":r;return"".concat(s," ").concat(lW(n,"PPPP",t.props.locale))},t.getTitle=function(){var e=t.props,n=e.day,r=e.holidays,i=void 0===r?new Map:r,s=e.excludeDates,o=lW(n,"MM.dd.yyyy"),a=[];return i.has(o)&&a.push.apply(a,i.get(o).holidayNames),t.isExcluded()&&a.push(null==s?void 0:s.filter(function(e){return e instanceof Date?lJ(e,n):lJ(null==e?void 0:e.date,n)}).map(function(e){if(!(e instanceof Date))return null==e?void 0:e.message})),a.join(", ")},t.getTabIndex=function(){var e=t.props.selected,n=t.props.preSelection;return!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(e)&&lJ(n,e))?0:-1},t.handleFocusDay=function(){var e;t.shouldFocusDay()&&(null==(e=t.dayEl.current)||e.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(a1(t.props.day),t.props.day):a1(t.props.day)},t.render=function(){return E().createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"option",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),""!==t.getTitle()&&E().createElement("span",{className:"overlay"},t.getTitle()))},t}return lO(t,e),t.prototype.componentDidMount=function(){this.handleFocusDay()},t.prototype.componentDidUpdate=function(){this.handleFocusDay()},t.prototype.shouldFocusDay=function(){var e=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},t.prototype.isDayActiveElement=function(){var e,t,n;return(null==(t=null==(e=this.props.containerRef)?void 0:e.current)?void 0:t.contains(document.activeElement))&&(null==(n=document.activeElement)?void 0:n.classList.contains("react-datepicker__day"))},t.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},t}(D.Component),cS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.weekNumberEl=(0,D.createRef)(),t.handleClick=function(e){t.props.onClick&&t.props.onClick(e)},t.handleOnKeyDown=function(e){var n,r;e.key===a.Space&&(e.preventDefault(),e.key=a.Enter),null==(r=(n=t.props).handleOnKeyDown)||r.call(n,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!lJ(t.props.date,t.props.selected)&&lJ(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||lJ(t.props.date,t.props.selected)&&lJ(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var n=!1;0===t.getTabIndex()&&!(null==e?void 0:e.isInputFocused)&&lJ(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(n=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return lO(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},t.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},t.prototype.render=function(){var e=this.props,n=e.weekNumber,r=e.isWeekDisabled,i=e.ariaLabelPrefix,s=void 0===i?t.defaultProps.ariaLabelPrefix:i,o=e.onClick,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!o&&!r,"react-datepicker__week-number--selected":!!o&&lJ(this.props.date,this.props.selected)};return E().createElement("div",{ref:this.weekNumberEl,className:(0,ai.$)(a),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},t}(D.Component),cC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.isDisabled=function(e){return l8(e,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(e,t){n.props.onDayClick&&n.props.onDayClick(e,t)},n.handleDayMouseEnter=function(e){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(e)},n.handleWeekClick=function(e,r,i){for(var s,o,a,l=new Date(e),c=0;c<7;c++){var d=new Date(e);if(d.setDate(d.getDate()+c),!n.isDisabled(d)){l=d;break}}"function"==typeof n.props.onWeekSelect&&n.props.onWeekSelect(l,r,i),n.props.showWeekPicker&&n.handleDayClick(l,i),(null!=(s=n.props.shouldCloseOnSelect)?s:t.defaultProps.shouldCloseOnSelect)&&(null==(a=(o=n.props).setOpen)||a.call(o,!1))},n.formatWeekNumber=function(e){return n.props.formatWeekNumber?n.props.formatWeekNumber(e):(0,aE.s)(e)},n.isWeekDisabled=function(){for(var e=n.startOfWeek(),t=(0,a2.f)(e,6),r=new Date(e);r<=t;){if(!n.isDisabled(r))return!1;r=(0,a2.f)(r,1)}return!0},n.renderDays=function(){var e=n.startOfWeek(),r=[],i=n.formatWeekNumber(e);if(n.props.showWeekNumber){var s=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,e,i):void 0;r.push(E().createElement(cS,lI({key:"W"},t.defaultProps,n.props,{weekNumber:i,isWeekDisabled:n.isWeekDisabled(),date:e,onClick:s})))}return r.concat([0,1,2,3,4,5,6].map(function(r){var i=(0,a2.f)(e,r);return E().createElement(cE,lI({},t.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:i.valueOf(),day:i,onClick:n.handleDayClick.bind(n,i),onMouseEnter:n.handleDayMouseEnter.bind(n,i)}))}))},n.startOfWeek=function(){return lG(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!lJ(n.startOfWeek(),n.props.selected)&&lJ(n.startOfWeek(),n.props.preSelection)},n}return lO(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":lJ(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return E().createElement("div",{className:(0,ai.$)(e)},this.renderDays())},t}(D.Component),c_={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},cA=((l={})[c_.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},l[c_.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},l[c_.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},l);function cx(e,t){return e?c_.FOUR_COLUMNS:t?c_.TWO_COLUMNS:c_.THREE_COLUMNS}var ck=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.MONTH_REFS=lP([],Array(12),!0).map(function(){return(0,D.createRef)()}),t.QUARTER_REFS=lP([],[,,,,],!0).map(function(){return(0,D.createRef)()}),t.isDisabled=function(e){return l8(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(e){return l6(e,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(e,n){var r,i;null==(i=(r=t.props).onDayClick)||i.call(r,e,n,t.props.orderInDisplay)},t.handleDayMouseEnter=function(e){var n,r;null==(r=(n=t.props).onDayMouseEnter)||r.call(n,e)},t.handleMouseLeave=function(){var e,n;null==(n=(e=t.props).onMouseLeave)||n.call(e)},t.isRangeStartMonth=function(e){var n=t.props,r=n.day,i=n.startDate,s=n.endDate;return!!i&&!!s&&l$(aO(r,e),i)},t.isRangeStartQuarter=function(e){var n=t.props,r=n.day,i=n.startDate,s=n.endDate;return!!i&&!!s&&lX(aI(r,e),i)},t.isRangeEndMonth=function(e){var n=t.props,r=n.day,i=n.startDate,s=n.endDate;return!!i&&!!s&&l$(aO(r,e),s)},t.isRangeEndQuarter=function(e){var n=t.props,r=n.day,i=n.startDate,s=n.endDate;return!!i&&!!s&&lX(aI(r,e),s)},t.isInSelectingRangeMonth=function(e){var n,r=t.props,i=r.day,s=r.selectsStart,o=r.selectsEnd,a=r.selectsRange,l=r.startDate,c=r.endDate,d=null!=(n=t.props.selectingDate)?n:t.props.preSelection;return!!(s||o||a)&&!!d&&(s&&c?l7(d,c,e,i):(!!o&&!!l||!!a&&!!l&&!c)&&l7(l,d,e,i))},t.isSelectingMonthRangeStart=function(e){if(!t.isInSelectingRangeMonth(e))return!1;var n,r=t.props,i=r.day,s=r.startDate,o=r.selectsStart,a=aO(i,e),l=null!=(n=t.props.selectingDate)?n:t.props.preSelection;return o?l$(a,l):l$(a,s)},t.isSelectingMonthRangeEnd=function(e){if(!t.isInSelectingRangeMonth(e))return!1;var n,r=t.props,i=r.day,s=r.endDate,o=r.selectsEnd,a=r.selectsRange,l=aO(i,e),c=null!=(n=t.props.selectingDate)?n:t.props.preSelection;return o||a?l$(l,c):l$(l,s)},t.isInSelectingRangeQuarter=function(e){var n,r=t.props,i=r.day,s=r.selectsStart,o=r.selectsEnd,a=r.selectsRange,l=r.startDate,c=r.endDate,d=null!=(n=t.props.selectingDate)?n:t.props.preSelection;return!!(s||o||a)&&!!d&&(s&&c?cr(d,c,e,i):(!!o&&!!l||!!a&&!!l&&!c)&&cr(l,d,e,i))},t.isWeekInMonth=function(e){var n=t.props.day,r=(0,a2.f)(e,6);return l$(e,n)||l$(r,n)},t.isCurrentMonth=function(e,t){return aP(e)===aP(lU())&&t===aj(lU())},t.isCurrentQuarter=function(e,t){return aP(e)===aP(lU())&&t===aL(lU())},t.isSelectedMonth=function(e,t,n){return aj(n)===t&&aP(e)===aP(n)},t.isSelectMonthInList=function(e,n,r){return r.some(function(r){return t.isSelectedMonth(e,n,r)})},t.isSelectedQuarter=function(e,t,n){return aL(e)===t&&aP(e)===aP(n)},t.renderWeeks=function(){for(var e,n,r=[],i=t.props.fixedHeight,s=0,o=!1,a=lG(a_(t.props.day),t.props.locale,t.props.calendarStartDay),l=t.props.selected?(e=t.props.selected,t.props.showWeekPicker?lG(e,t.props.locale,t.props.calendarStartDay):t.props.selected):void 0,c=t.props.preSelection?(n=t.props.preSelection,t.props.showWeekPicker?lG(n,t.props.locale,t.props.calendarStartDay):t.props.preSelection):void 0;r.push(E().createElement(cC,lI({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:s,day:a,month:aj(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:l,preSelection:c,showWeekNumber:t.props.showWeekNumbers}))),!o;){s++,a=a4(a,1);var d=i&&s>=6,u=!i&&!t.isWeekInMonth(a);if(d||u)if(t.props.peekNextMonth)o=!0;else break}return r},t.onMonthClick=function(e,n){var r=t.isMonthDisabledForLabelDate(n),i=r.isDisabled,s=r.labelDate;i||t.handleDayClick(a_(s),e)},t.onMonthMouseEnter=function(e){var n=t.isMonthDisabledForLabelDate(e),r=n.isDisabled,i=n.labelDate;r||t.handleDayMouseEnter(a_(i))},t.handleMonthNavigation=function(e,n){var r,i,s,o;null==(i=(r=t.props).setPreSelection)||i.call(r,n),null==(o=null==(s=t.MONTH_REFS[e])?void 0:s.current)||o.focus()},t.handleKeyboardNavigation=function(e,n,r){var i,s=t.props,o=s.selected,l=s.preSelection,c=s.setPreSelection,d=s.minDate,u=s.maxDate,p=s.showFourColumnMonthYearPicker,h=s.showTwoColumnMonthYearPicker;if(l){var f=cx(p,h),g=t.getVerticalOffset(f),m=null==(i=cA[f])?void 0:i.grid,v=function(e,t,n){var r,i,s=t,o=n;switch(e){case a.ArrowRight:s=aW(t,1),o=11===n?0:n+1;break;case a.ArrowLeft:s=aW(t,-1),o=0===n?11:n-1;break;case a.ArrowUp:s=aW(t,-g),o=(null==(r=null==m?void 0:m[0])?void 0:r.includes(n))?n+12-g:n-g;break;case a.ArrowDown:s=aW(t,g),o=(null==(i=null==m?void 0:m[m.length-1])?void 0:i.includes(n))?n-12+g:n+g}return{newCalculatedDate:s,newCalculatedMonth:o}};if(n===a.Enter){t.isMonthDisabled(r)||(t.onMonthClick(e,r),null==c||c(o));return}var y=function(e,n,r){for(var i=e,s=!1,o=0,l=v(i,n,r),c=l.newCalculatedDate,p=l.newCalculatedMonth;!s;){if(o>=40){c=n,p=r;break}if(d&&c<d){var h=v(i=a.ArrowRight,c,p);c=h.newCalculatedDate,p=h.newCalculatedMonth}if(u&&c>u){var h=v(i=a.ArrowLeft,c,p);c=h.newCalculatedDate,p=h.newCalculatedMonth}if(function(e,t){var n=void 0===t?{}:t,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates;return ci(e,{minDate:r,maxDate:i})||s&&s.some(function(t){return l$(t instanceof Date?t:t.date,e)})||o&&!o.some(function(t){return l$(t,e)})||!1}(c,t.props)){var h=v(i,c,p);c=h.newCalculatedDate,p=h.newCalculatedMonth}else s=!0;o++}return{newCalculatedDate:c,newCalculatedMonth:p}}(n,l,r),b=y.newCalculatedDate,D=y.newCalculatedMonth;switch(n){case a.ArrowRight:case a.ArrowLeft:case a.ArrowUp:case a.ArrowDown:t.handleMonthNavigation(D,b)}}},t.getVerticalOffset=function(e){var t,n;return null!=(n=null==(t=cA[e])?void 0:t.verticalNavigationOffset)?n:0},t.onMonthKeyDown=function(e,n){var r=t.props,i=r.disabledKeyboardNavigation,s=r.handleOnMonthKeyDown,o=e.key;o!==a.Tab&&e.preventDefault(),i||t.handleKeyboardNavigation(e,o,n),s&&s(e)},t.onQuarterClick=function(e,n){var r=aI(t.props.day,n);ce(r,t.props)||t.handleDayClick(ax(r),e)},t.onQuarterMouseEnter=function(e){var n=aI(t.props.day,e);ce(n,t.props)||t.handleDayMouseEnter(ax(n))},t.handleQuarterNavigation=function(e,n){var r,i,s,o;t.isDisabled(n)||t.isExcluded(n)||(null==(i=(r=t.props).setPreSelection)||i.call(r,n),null==(o=null==(s=t.QUARTER_REFS[e-1])?void 0:s.current)||o.focus())},t.onQuarterKeyDown=function(e,n){var r,i,s=e.key;if(!t.props.disabledKeyboardNavigation)switch(s){case a.Enter:t.onQuarterClick(e,n),null==(i=(r=t.props).setPreSelection)||i.call(r,t.props.selected);break;case a.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(4===n?1:n+1,aW(t.props.preSelection,3));break;case a.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(1===n?4:n-1,aW(t.props.preSelection,-3))}},t.isMonthDisabledForLabelDate=function(e){var n,r=t.props,i=r.day,s=r.minDate,o=r.maxDate,a=r.excludeDates,l=r.includeDates,c=aO(i,e);return{isDisabled:null!=(n=(s||o||a||l)&&l9(c,t.props))&&n,labelDate:c}},t.isMonthDisabled=function(e){return t.isMonthDisabledForLabelDate(e).isDisabled},t.getMonthClassNames=function(e){var n=t.props,r=n.day,i=n.startDate,s=n.endDate,o=n.preSelection,a=n.monthClassName,l=a?a(aO(r,e)):void 0,c=t.getSelection();return(0,ai.$)("react-datepicker__month-text","react-datepicker__month-".concat(e),l,{"react-datepicker__month-text--disabled":t.isMonthDisabled(e),"react-datepicker__month-text--selected":c?t.isSelectMonthInList(r,e,c):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&o&&t.isSelectedMonth(r,e,o)&&!t.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":i&&s?l7(i,s,e,r):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(e),"react-datepicker__month-text--range-end":t.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":t.isCurrentMonth(r,e)})},t.getTabIndex=function(e){if(null==t.props.preSelection)return"-1";var n=aj(t.props.preSelection),r=t.isMonthDisabledForLabelDate(n).isDisabled;return e!==n||r||t.props.disabledKeyboardNavigation?"-1":"0"},t.getQuarterTabIndex=function(e){if(null==t.props.preSelection)return"-1";var n=aL(t.props.preSelection),r=ce(t.props.day,t.props);return e!==n||r||t.props.disabledKeyboardNavigation?"-1":"0"},t.getAriaLabel=function(e){var n=t.props,r=n.chooseDayAriaLabelPrefix,i=n.disabledDayAriaLabelPrefix,s=n.day,o=n.locale,a=aO(s,e),l=t.isDisabled(a)||t.isExcluded(a)?void 0===i?"Not available":i:void 0===r?"Choose":r;return"".concat(l," ").concat(lW(a,"MMMM yyyy",o))},t.getQuarterClassNames=function(e){var n=t.props,r=n.day,i=n.startDate,s=n.endDate,o=n.selected,a=n.minDate,l=n.maxDate,c=n.excludeDates,d=n.includeDates,u=n.filterDate,p=n.preSelection,h=n.disabledKeyboardNavigation,f=(a||l||c||d||u)&&ce(aI(r,e),t.props);return(0,ai.$)("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":f,"react-datepicker__quarter-text--selected":o?t.isSelectedQuarter(r,e,o):void 0,"react-datepicker__quarter-text--keyboard-selected":!h&&p&&t.isSelectedQuarter(r,e,p)&&!f,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":i&&s?cr(i,s,e,r):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(e),"react-datepicker__quarter-text--today":t.isCurrentQuarter(r,e)})},t.getMonthContent=function(e){var n=t.props,r=n.showFullMonthYearPicker,i=n.renderMonthContent,s=n.locale,o=n.day,a=l5(e,s),l=l3(e,s);return i?i(e,a,l,o):r?l:a},t.getQuarterContent=function(e){var n,r=t.props,i=r.renderQuarterContent,s=r.locale,o=lW(aI(lU(),e),"QQQ",s);return null!=(n=null==i?void 0:i(e,o))?n:o},t.renderMonths=function(){var e,n=t.props,r=n.showTwoColumnMonthYearPicker,i=n.showFourColumnMonthYearPicker,s=n.day,o=n.selected,l=null==(e=cA[cx(i,r)])?void 0:e.grid;return null==l?void 0:l.map(function(e,n){return E().createElement("div",{className:"react-datepicker__month-wrapper",key:n},e.map(function(e,n){return E().createElement("div",{ref:t.MONTH_REFS[e],key:n,onClick:function(n){t.onMonthClick(n,e)},onKeyDown:function(n){cD(n)&&(n.preventDefault(),n.key=a.Enter),t.onMonthKeyDown(n,e)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(e)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(e)}:void 0,tabIndex:Number(t.getTabIndex(e)),className:t.getMonthClassNames(e),"aria-disabled":t.isMonthDisabled(e),role:"option","aria-label":t.getAriaLabel(e),"aria-current":t.isCurrentMonth(s,e)?"date":void 0,"aria-selected":o?t.isSelectedMonth(s,e,o):void 0},t.getMonthContent(e))}))})},t.renderQuarters=function(){var e=t.props,n=e.day,r=e.selected;return E().createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(e,i){return E().createElement("div",{key:i,ref:t.QUARTER_REFS[i],role:"option",onClick:function(n){t.onQuarterClick(n,e)},onKeyDown:function(n){t.onQuarterKeyDown(n,e)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(e)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(e)}:void 0,className:t.getQuarterClassNames(e),"aria-selected":r?t.isSelectedQuarter(n,e,r):void 0,tabIndex:Number(t.getQuarterTabIndex(e)),"aria-current":t.isCurrentQuarter(n,e)?"date":void 0},t.getQuarterContent(e))}))},t.getClassNames=function(){var e=t.props,n=e.selectingDate,r=e.selectsStart,i=e.selectsEnd,s=e.showMonthYearPicker,o=e.showQuarterYearPicker,a=e.showWeekPicker;return(0,ai.$)("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":o},{"react-datepicker__weekPicker":a})},t}return lO(t,e),t.prototype.getSelection=function(){var e=this.props,t=e.selected,n=e.selectedDates;return e.selectsMultiple?n:t?[t]:void 0},t.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,s=void 0===i?"Month ":i,o=s?s.trim()+" ":"";return E().createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(o).concat(lW(r,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},t}(D.Component),cR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(e){return t.props.month===e},t.renderOptions=function(){return t.props.monthNames.map(function(e,n){return E().createElement("div",{className:t.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,n),"aria-selected":t.isSelectedMonth(n)?"true":void 0},t.isSelectedMonth(n)?E().createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)})},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return lO(t,e),t.prototype.render=function(){return E().createElement(lL,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t}(D.Component),cT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map(function(e,t){return E().createElement("option",{key:e,value:t},e)})},t.renderSelectMode=function(e){return E().createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,n){return E().createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},E().createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),E().createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return E().createElement(cR,lI({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,r=[t.renderReadView(!n,e)];return n&&r.unshift(t.renderDropdown(e)),r},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return lO(t,e),t.prototype.render=function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return l5(e,t.props.locale)}:function(e){return l3(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return E().createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(D.Component),cM=function(e){function t(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(e){var t=a3(e),r=lK(n.props.date,e)&&l$(n.props.date,e);return E().createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":r?"true":void 0},r?E().createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",lW(e,n.props.dateFormat,n.props.locale))})},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:function(e,t){for(var n=[],r=a_(e),i=a_(t);!a0(r,i);)n.push(lU(r)),r=aW(r,1);return n}(n.props.minDate,n.props.maxDate)},n}return lO(t,e),t.prototype.render=function(){var e=(0,ai.$)({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return E().createElement(lL,{className:e,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(D.Component),cN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=a_(t.props.minDate),n=a_(t.props.maxDate),r=[];!a0(e,n);){var i=a3(e);r.push(E().createElement("option",{key:i,value:i},lW(e,t.props.dateFormat,t.props.locale))),e=aW(e,1)}return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return E().createElement("select",{value:a3(a_(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=lW(t.props.date,t.props.dateFormat,t.props.locale);return E().createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},E().createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),E().createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return E().createElement(cM,lI({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown();var n=lU(e);lK(t.props.date,n)&&l$(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return lO(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return E().createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(D.Component),cO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var e,r,i;n.list&&(n.list.scrollTop=null!=(i=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!=(r=null==(e=n.header)?void 0:e.clientHeight)?r:0):n.list.clientHeight,n.centerLi))?i:0)})},n.handleClick=function(e){var t,r;(n.props.minTime||n.props.maxTime)&&ca(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&co(e,n.props)||null==(r=(t=n.props).onChange)||r.call(t,e)},n.isSelectedTime=function(e){var t;return n.props.selected&&(t=n.props.selected,cv(t).getTime()===cv(e).getTime())},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&ca(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&co(e,n.props)},n.liClasses=function(e){var r,i=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&i.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&i.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*aU(e)+60*aB(e)+az(e))%((null!=(r=n.props.intervals)?r:t.defaultProps.intervals)*60)!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},n.handleOnKeyDown=function(e,t){var r,i;e.key===a.Space&&(e.preventDefault(),e.key=a.Enter),(e.key===a.ArrowUp||e.key===a.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===a.ArrowDown||e.key===a.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===a.Enter&&n.handleClick(t),null==(i=(r=n.props).handleOnKeyDown)||i.call(r,e)},n.renderTimes=function(){for(var e,r,i=[],s="string"==typeof n.props.format?n.props.format:"p",o=null!=(r=n.props.intervals)?r:t.defaultProps.intervals,a=n.props.selected||n.props.openToDate||lU(),l=lQ(a),c=n.props.injectTimes&&n.props.injectTimes.sort(function(e,t){return e.getTime()-t.getTime()}),d=60*(e=new Date(a.getFullYear(),a.getMonth(),a.getDate()),Math.round((new Date(a.getFullYear(),a.getMonth(),a.getDate(),24)-e)/36e5))/o,u=0;u<d;u++){var p=aJ(l,u*o);if(i.push(p),c){var h=function(e,t,n,r,i){for(var s=i.length,o=[],a=0;a<s;a++){var l=e,c=i[a];c&&(l=aJ(l=aX(l,aU(c)*as.s0),aB(c)),l=aX(l,1e3*az(c)));var d=aJ(e,(n+1)*r);a0(l,t)&&av(l,d)&&void 0!=c&&o.push(c)}return o}(l,p,u,o,c);i=i.concat(h)}}var f=i.reduce(function(e,t){return t.getTime()<=a.getTime()?t:e},i[0]);return i.map(function(e){return E().createElement("li",{key:e.valueOf(),onClick:n.handleClick.bind(n,e),className:n.liClasses(e),ref:function(t){e===f&&(n.centerLi=t)},onKeyDown:function(t){n.handleOnKeyDown(t,e)},tabIndex:e===f?0:-1,role:"option","aria-selected":n.isSelectedTime(e)?"true":void 0,"aria-disabled":n.isDisabledTime(e)?"true":void 0},lW(e,s,n.props.locale))})},n.renderTimeCaption=function(){return!1===n.props.showTimeCaption?E().createElement(E().Fragment,null):E().createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(e){n.header=e}},E().createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return lO(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},t.prototype.componentWillUnmount=function(){var e;null==(e=this.resizeObserver)||e.disconnect()},t.prototype.observeDatePickerHeightChanges=function(){var e=this,t=this.props.monthRef;this.updateContainerHeight(),t&&(this.resizeObserver=new ResizeObserver(function(){e.updateContainerHeight()}),this.resizeObserver.observe(t))},t.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e,n=this,r=this.state.height;return E().createElement("div",{className:"react-datepicker__time-container ".concat((null!=(e=this.props.todayButton)?e:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),E().createElement("div",{className:"react-datepicker__time"},E().createElement("div",{className:"react-datepicker__time-box"},E().createElement("ul",{className:"react-datepicker__time-list",ref:function(e){n.list=e},style:r?{height:r}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},t}(D.Component),cI=function(e){function t(t){var n=e.call(this,t)||this;return n.YEAR_REFS=lP([],Array(n.props.yearItemNumber),!0).map(function(){return(0,D.createRef)()}),n.isDisabled=function(e){return l8(e,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(e){return l6(e,{excludeDates:n.props.excludeDates})},n.selectingDate=function(){var e;return null!=(e=n.props.selectingDate)?e:n.props.preSelection},n.updateFocusOnPaginate=function(e){window.requestAnimationFrame(function(){var t,r;null==(r=null==(t=n.YEAR_REFS[e])?void 0:t.current)||r.focus()})},n.handleYearClick=function(e,t){n.props.onDayClick&&n.props.onDayClick(e,t)},n.handleYearNavigation=function(e,t){var r,i,s,o,a=n.props,l=a.date,c=a.yearItemNumber;if(void 0!==l&&void 0!==c){var d=cm(l,c).startPeriod;n.isDisabled(t)||n.isExcluded(t)||(null==(i=(r=n.props).setPreSelection)||i.call(r,t),e-d<0?n.updateFocusOnPaginate(c-(d-e)):e-d>=c?n.updateFocusOnPaginate(Math.abs(c-(e-d))):null==(o=null==(s=n.YEAR_REFS[e-d])?void 0:s.current)||o.focus())}},n.isSameDay=function(e,t){return lJ(e,t)},n.isCurrentYear=function(e){return e===aP(lU())},n.isRangeStart=function(e){return n.props.startDate&&n.props.endDate&&lK(a5(lU(),e),n.props.startDate)},n.isRangeEnd=function(e){return n.props.startDate&&n.props.endDate&&lK(a5(lU(),e),n.props.endDate)},n.isInRange=function(e){return ct(e,n.props.startDate,n.props.endDate)},n.isInSelectingRange=function(e){var t=n.props,r=t.selectsStart,i=t.selectsEnd,s=t.selectsRange,o=t.startDate,a=t.endDate;return!!(r||i||s)&&!!n.selectingDate()&&(r&&a?ct(e,n.selectingDate(),a):(!!i&&!!o||!!s&&!!o&&!a)&&ct(e,o,n.selectingDate()))},n.isSelectingRangeStart=function(e){if(!n.isInSelectingRange(e))return!1;var t,r=n.props,i=r.startDate,s=r.selectsStart,o=a5(lU(),e);return s?lK(o,null!=(t=n.selectingDate())?t:null):lK(o,null!=i?i:null)},n.isSelectingRangeEnd=function(e){if(!n.isInSelectingRange(e))return!1;var t,r=n.props,i=r.endDate,s=r.selectsEnd,o=r.selectsRange,a=a5(lU(),e);return s||o?lK(a,null!=(t=n.selectingDate())?t:null):lK(a,null!=i?i:null)},n.isKeyboardSelected=function(e){if(void 0!==n.props.date&&null!=n.props.selected&&null!=n.props.preSelection){var t=n.props,r=t.minDate,i=t.maxDate,s=t.excludeDates,o=t.includeDates,a=t.filterDate,l=lq(a5(n.props.date,e)),c=(r||i||s||o||a)&&cn(e,n.props);return!n.props.disabledKeyboardNavigation&&!n.props.inline&&!lJ(l,lq(n.props.selected))&&lJ(l,lq(n.props.preSelection))&&!c}},n.isSelectedYear=function(e){var t=n.props,r=t.selectsMultiple,i=t.selected,s=t.selectedDates;return r?null==s?void 0:s.some(function(t){return e===aP(t)}):!i||e===aP(i)},n.onYearClick=function(e,t){var r=n.props.date;void 0!==r&&n.handleYearClick(lq(a5(r,t)),e)},n.onYearKeyDown=function(e,t){var r,i,s=e.key,o=n.props,l=o.date,c=o.yearItemNumber,d=o.handleOnKeyDown;if(s!==a.Tab&&e.preventDefault(),!n.props.disabledKeyboardNavigation)switch(s){case a.Enter:if(null==n.props.selected)break;n.onYearClick(e,t),null==(i=(r=n.props).setPreSelection)||i.call(r,n.props.selected);break;case a.ArrowRight:if(null==n.props.preSelection)break;n.handleYearNavigation(t+1,aG(n.props.preSelection,1));break;case a.ArrowLeft:if(null==n.props.preSelection)break;n.handleYearNavigation(t-1,aG(n.props.preSelection,-1));break;case a.ArrowUp:if(void 0===l||void 0===c||null==n.props.preSelection)break;var u=cm(l,c).startPeriod,p=3,h=t-3;if(h<u){var f=c%p;t>=u&&t<u+f?p=f:p+=f,h=t-p}n.handleYearNavigation(h,aG(n.props.preSelection,-p));break;case a.ArrowDown:if(void 0===l||void 0===c||null==n.props.preSelection)break;var g=cm(l,c).endPeriod,p=3,h=t+3;if(h>g){var f=c%p;t<=g&&t>g-f?p=f:p+=f,h=t+p}n.handleYearNavigation(h,aG(n.props.preSelection,p))}d&&d(e)},n.getYearClassNames=function(e){var t=n.props,r=t.date,i=t.minDate,s=t.maxDate,o=t.excludeDates,a=t.includeDates,l=t.filterDate,c=t.yearClassName;return(0,ai.$)("react-datepicker__year-text","react-datepicker__year-".concat(e),r?null==c?void 0:c(a5(r,e)):void 0,{"react-datepicker__year-text--selected":n.isSelectedYear(e),"react-datepicker__year-text--disabled":(i||s||o||a||l)&&cn(e,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(e),"react-datepicker__year-text--range-start":n.isRangeStart(e),"react-datepicker__year-text--range-end":n.isRangeEnd(e),"react-datepicker__year-text--in-range":n.isInRange(e),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(e),"react-datepicker__year-text--today":n.isCurrentYear(e)})},n.getYearTabIndex=function(e){if(n.props.disabledKeyboardNavigation||null==n.props.preSelection)return"-1";var t=aP(n.props.preSelection),r=cn(e,n.props);return e!==t||r?"-1":"0"},n.getYearContent=function(e){return n.props.renderYearContent?n.props.renderYearContent(e):e},n}return lO(t,e),t.prototype.render=function(){var e=this,t=[],n=this.props,r=n.date,i=n.yearItemNumber,s=n.onYearMouseEnter,o=n.onYearMouseLeave;if(void 0===r)return null;for(var l=cm(r,i),c=l.startPeriod,d=l.endPeriod,u=function(n){t.push(E().createElement("div",{ref:p.YEAR_REFS[n-c],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){cD(t)&&(t.preventDefault(),t.key=a.Enter),e.onYearKeyDown(t,n)},tabIndex:Number(p.getYearTabIndex(n)),className:p.getYearClassNames(n),onMouseEnter:p.props.usePointerEvent?void 0:function(e){return s(e,n)},onPointerEnter:p.props.usePointerEvent?function(e){return s(e,n)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(e){return o(e,n)},onPointerLeave:p.props.usePointerEvent?function(e){return o(e,n)}:void 0,key:n,"aria-current":p.isCurrentYear(n)?"date":void 0},p.getYearContent(n)))},p=this,h=c;h<=d;h++)u(h);return E().createElement("div",{className:"react-datepicker__year"},E().createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},t}(D.Component),cP=function(e){function t(t){var n=e.call(this,t)||this;n.renderOptions=function(){var e=n.props.year,t=n.state.yearsList.map(function(t){return E().createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":e===t?"true":void 0},e===t?E().createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),r=n.props.minDate?aP(n.props.minDate):null,i=n.props.maxDate?aP(n.props.maxDate):null;return i&&n.state.yearsList.find(function(e){return e===i})||t.unshift(E().createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},E().createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),r&&n.state.yearsList.find(function(e){return e===r})||t.push(E().createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},E().createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},n.onChange=function(e){n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.shiftYears=function(e){var t=n.state.yearsList.map(function(t){return t+e});n.setState({yearsList:t})},n.incrementYears=function(){return n.shiftYears(1)},n.decrementYears=function(){return n.shiftYears(-1)};var r=t.yearDropdownItemNumber,i=t.scrollableYearDropdown;return n.state={yearsList:function(e,t,n,r){for(var i=[],s=0;s<2*t+1;s++){var o=e+t-s,a=!0;n&&(a=aP(n)<=o),r&&a&&(a=aP(r)>=o),a&&i.push(o)}return i}(n.props.year,r||(i?10:5),n.props.minDate,n.props.maxDate)},n.dropdownRef=(0,D.createRef)(),n}return lO(t,e),t.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},t.prototype.render=function(){var e=(0,ai.$)({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return E().createElement(lL,{className:e,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(D.Component),cj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?aP(t.props.minDate):1900,n=t.props.maxDate?aP(t.props.maxDate):2100,r=[],i=e;i<=n;i++)r.push(E().createElement("option",{key:i,value:i},i));return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return E().createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return E().createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},E().createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),E().createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return E().createElement(cP,lI({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)})},t.handleYearChange=function(e,n){var r;null==(r=t.onSelect)||r.call(t,e,n),t.setOpen()},t.onSelect=function(e,n){var r,i;null==(i=(r=t.props).onSelect)||i.call(r,e,n)},t.setOpen=function(){var e,n;null==(n=(e=t.props).setOpen)||n.call(e,!0)},t}return lO(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return E().createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(D.Component),cH=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],cL=function(e){var t=(e.className||"").split(/\s+/);return cH.some(function(e){return t.indexOf(e)>=0})},cF=function(e){function t(n){var r=e.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(e){r.props.onClickOutside(e)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(e){var t,n;cL(e.target)&&(null==(n=(t=r.props).onDropdownFocus)||n.call(t,e))},r.getDateInView=function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,s=cp(r.props),o=ch(r.props),a=lU(),l=i||n||t;return l?l:s&&av(a,s)?s:o&&a0(a,o)?o:a},r.increaseMonth=function(){r.setState(function(e){return{date:aW(e.date,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(e){return{date:aW(e.date,-1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)},r.handleDayMouseEnter=function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(e,t){r.setState({selectingDate:a5(lU(),t)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(e,t)},r.handleYearMouseLeave=function(e,t){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(e,t)},r.handleYearChange=function(e){var t,n,i,s;null==(n=(t=r.props).onYearChange)||n.call(t,e),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(e),null==(s=(i=r.props).setOpen)||s.call(i,!0)),r.props.setPreSelection&&r.props.setPreSelection(e)},r.getEnabledPreSelectionDateForMonth=function(e){if(!l8(e,r.props))return e;for(var t=a_(e),n=function(e,t){let n=(0,af.a)(e),r=(0,af.a)(t),i=a8(n,r),s=Math.abs((0,aF.m)(n,r));n.setDate(n.getDate()-i*s);let o=Number(a8(n,r)===-i),a=i*(s-o);return 0===a?0:a}((0,aT.p)(e),t),i=null,s=0;s<=n;s++){var o=(0,a2.f)(t,s);if(!l8(o,r.props)){i=o;break}}return i},r.handleMonthChange=function(e){var t,n,i,s=null!=(t=r.getEnabledPreSelectionDateForMonth(e))?t:e;r.handleCustomMonthChange(s),r.props.adjustDateOnChange&&(r.props.onSelect(s),null==(i=(n=r.props).setOpen)||i.call(n,!0)),r.props.setPreSelection&&r.props.setPreSelection(s)},r.handleCustomMonthChange=function(e){var t,n;null==(n=(t=r.props).onMonthChange)||n.call(t,e),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(e){r.handleYearChange(e),r.handleMonthChange(e)},r.changeYear=function(e){r.setState(function(t){return{date:a5(t.date,Number(e))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(e){r.setState(function(t){return{date:aO(t.date,Number(e))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(e){r.setState(function(t){return{date:a5(aO(t.date,aj(e)),aP(e))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(e){void 0===e&&(e=r.state.date);var t=lG(e,r.props.locale,r.props.calendarStartDay),n=[];return r.props.showWeekNumbers&&n.push(E().createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map(function(e){var n=(0,a2.f)(t,e),i=r.formatWeekday(n,r.props.locale),s=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return E().createElement("div",{key:e,"aria-label":lW(n,"EEEE",r.props.locale),className:(0,ai.$)("react-datepicker__day-name",s)},i)}))},r.formatWeekday=function(e,t){if(r.props.formatWeekDay)return(0,r.props.formatWeekDay)(lW(e,"EEEE",t));return r.props.useWeekdaysShort?lW(e,"EEE",t):lW(e,"EEEEEE",t)},r.decreaseYear=function(){r.setState(function(e){var n;return{date:aG(e.date,-(r.props.showYearPicker?null!=(n=r.props.yearItemNumber)?n:t.defaultProps.yearItemNumber:1))}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){if(!r.props.renderCustomHeader){var e,n,i,s,o,a,l,c,d,u,p,h,f,g,m,v,y,b,D=null!=(m=r.props.monthsShown)?m:t.defaultProps.monthsShown,w=r.props.showPreviousMonths?D-1:0,S=null!=(v=r.props.monthSelectedIn)?v:w,C=aW(r.state.date,-S);switch(!0){case r.props.showMonthYearPicker:b=cd(r.state.date,r.props);break;case r.props.showYearPicker:e=r.state.date,s=(i=void 0===(n=r.props)?{}:n).minDate,l=cm(lq(aG(e,-(a=void 0===(o=i.yearItemNumber)?12:o))),a).endPeriod,b=(c=s&&aP(s))&&c>l||!1;break;case r.props.showQuarterYearPicker:d=r.state.date,h=(p=void 0===(u=r.props)?{}:u).minDate,f=p.includeDates,g=aW((0,aA.D)(d),-3),b=h&&aQ(h,g)>0||f&&f.every(function(e){return aQ(e,g)>0})||!1;break;default:b=cl(C,r.props)}if(((null!=(y=r.props.forceShowMonthNavigation)?y:t.defaultProps.forceShowMonthNavigation)||r.props.showDisabledMonthNavigation||!b)&&!r.props.showTimeSelectOnly){var _=["react-datepicker__navigation","react-datepicker__navigation--previous"],A=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(A=r.decreaseYear),b&&r.props.showDisabledMonthNavigation&&(_.push("react-datepicker__navigation--previous--disabled"),A=void 0);var x=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,k=r.props,R=k.previousMonthButtonLabel,T=void 0===R?t.defaultProps.previousMonthButtonLabel:R,M=k.previousYearButtonLabel,N=void 0===M?t.defaultProps.previousYearButtonLabel:M,O=r.props,I=O.previousMonthAriaLabel,P=void 0===I?"string"==typeof T?T:"Previous Month":I,j=O.previousYearAriaLabel,H=void 0===j?"string"==typeof N?N:"Previous Year":j;return E().createElement("button",{type:"button",className:_.join(" "),onClick:A,onKeyDown:r.props.handleOnKeyDown,"aria-label":x?H:P},E().createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous"},x?N:T))}}},r.increaseYear=function(){r.setState(function(e){var n;return{date:aG(e.date,r.props.showYearPicker?null!=(n=r.props.yearItemNumber)?n:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){if(!r.props.renderCustomHeader){switch(!0){case r.props.showMonthYearPicker:v=cu(r.state.date,r.props);break;case r.props.showYearPicker:e=r.state.date,s=(i=void 0===(n=r.props)?{}:n).maxDate,l=cm(aG(e,a=void 0===(o=i.yearItemNumber)?12:o),a).startPeriod,v=(c=s&&aP(s))&&c<l||!1;break;case r.props.showQuarterYearPicker:d=r.state.date,h=(p=void 0===(u=r.props)?{}:u).maxDate,f=p.includeDates,g=aW(aH(d),3),v=h&&aQ(g,h)>0||f&&f.every(function(e){return aQ(g,e)>0})||!1;break;default:v=cc(r.state.date,r.props)}if(((null!=(m=r.props.forceShowMonthNavigation)?m:t.defaultProps.forceShowMonthNavigation)||r.props.showDisabledMonthNavigation||!v)&&!r.props.showTimeSelectOnly){var e,n,i,s,o,a,l,c,d,u,p,h,f,g,m,v,y=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&y.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&y.push("react-datepicker__navigation--next--with-today-button");var b=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(b=r.increaseYear),v&&r.props.showDisabledMonthNavigation&&(y.push("react-datepicker__navigation--next--disabled"),b=void 0);var D=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,w=r.props,S=w.nextMonthButtonLabel,C=void 0===S?t.defaultProps.nextMonthButtonLabel:S,_=w.nextYearButtonLabel,A=void 0===_?t.defaultProps.nextYearButtonLabel:_,x=r.props,k=x.nextMonthAriaLabel,R=void 0===k?"string"==typeof C?C:"Next Month":k,T=x.nextYearAriaLabel,M=void 0===T?"string"==typeof A?A:"Next Year":T;return E().createElement("button",{type:"button",className:y.join(" "),onClick:b,onKeyDown:r.props.handleOnKeyDown,"aria-label":D?M:R},E().createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--next"},D?A:C))}}},r.renderCurrentMonth=function(e){void 0===e&&(e=r.state.date);var t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),E().createElement("h2",{className:t.join(" ")},lW(e,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(e){if(void 0===e&&(e=!1),r.props.showYearDropdown&&!e)return E().createElement(cj,lI({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:aP(r.state.date)}))},r.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),r.props.showMonthDropdown&&!e)return E().createElement(cT,lI({},t.defaultProps,r.props,{month:aj(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),r.props.showMonthYearDropdown&&!e)return E().createElement(cN,lI({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(e){r.props.onSelect(lZ(),e),r.props.setPreSelection&&r.props.setPreSelection(lZ())},r.renderTodayButton=function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return E().createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return E().createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),E().createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),E().createElement("div",{className:"react-datepicker__day-names"},r.header(t)))},r.renderCustomHeader=function(e){var t,n,i=e.monthDate,s=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var o=cl(r.state.date,r.props),a=cc(r.state.date,r.props),l=cd(r.state.date,r.props),c=cu(r.state.date,r.props),d=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return E().createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},null==(n=(t=r.props).renderCustomHeader)?void 0:n.call(t,lI(lI({},r.state),{customHeaderCount:s,monthDate:i,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:a,prevYearButtonDisabled:l,nextYearButtonDisabled:c})),d&&E().createElement("div",{className:"react-datepicker__day-names"},r.header(i)))},r.renderYearHeader=function(e){var n=e.monthDate,i=r.props,s=i.showYearPicker,o=i.yearItemNumber,a=cm(n,void 0===o?t.defaultProps.yearItemNumber:o),l=a.startPeriod,c=a.endPeriod;return E().createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(l," - ").concat(c):aP(n))},r.renderHeader=function(e){var t=e.monthDate,n=e.i,i={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(i);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(i);default:return r.renderDefaultHeader(i)}},r.renderMonths=function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e,n,i=[],s=null!=(e=r.props.monthsShown)?e:t.defaultProps.monthsShown,o=r.props.showPreviousMonths?s-1:0,a=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?aG(r.state.date,o):aW(r.state.date,-o),l=null!=(n=r.props.monthSelectedIn)?n:o,c=0;c<s;++c){var d=c-l+o,u=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?aG(a,d):aW(a,d),p="month-".concat(c),h=c<s-1,f=c>0;i.push(E().createElement("div",{key:p,ref:function(e){r.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:u,i:c}),E().createElement(ck,lI({},t.defaultProps,r.props,{containerRef:r.containerRef,ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:u,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:c,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:h,monthShowsDuplicateDaysStart:f}))))}return i}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return E().createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),E().createElement(cI,lI({},t.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return E().createElement(cO,lI({},t.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var e=r.props.selected?new Date(r.props.selected):void 0,n=e&&lz(e)&&r.props.selected?"".concat(cg(e.getHours()),":").concat(cg(e.getMinutes())):"";if(r.props.showTimeInput)return E().createElement(cw,lI({},t.defaultProps,r.props,{date:e,timeString:n,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var e,n,i=cm(r.state.date,null!=(e=r.props.yearItemNumber)?e:t.defaultProps.yearItemNumber),s=i.startPeriod,o=i.endPeriod;return n=r.props.showYearPicker?"".concat(s," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?aP(r.state.date):"".concat(l3(aj(r.state.date),r.props.locale)," ").concat(aP(r.state.date)),E().createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&n)},r.renderChildren=function(){if(r.props.children)return E().createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=(0,D.createRef)(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return lO(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:12}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))},t.prototype.componentDidUpdate=function(e){var t=this;if(this.props.preSelection&&(!lJ(this.props.preSelection,e.preSelection)||this.props.monthSelectedIn!==e.monthSelectedIn)){var n=!l$(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return n&&t.handleCustomMonthChange(t.state.date)})}else this.props.openToDate&&!lJ(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})},t.prototype.render=function(){var e=this.props.container||lj;return E().createElement(lL,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},E().createElement("div",{style:{display:"contents"},ref:this.containerRef},E().createElement(e,{className:(0,ai.$)("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},t}(D.Component),cU=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,i=e.onClick,s="react-datepicker__calendar-icon";return"string"==typeof t?E().createElement("i",{className:"".concat(s," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):E().isValidElement(t)?E().cloneElement(t,{className:"".concat(t.props.className||""," ").concat(s," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof i&&i(e)}}):E().createElement("svg",{className:"".concat(s," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},E().createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},cB=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return lO(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return C().createPortal(this.props.children,this.el)},t}(D.Component),cz=function(e){return e instanceof HTMLAnchorElement?-1!==e.tabIndex:!e.disabled&&-1!==e.tabIndex},cW=function(e){function t(t){var n=e.call(this,t)||this;return n.getTabChildren=function(){var e;return Array.prototype.slice.call(null==(e=n.tabLoopRef.current)?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(cz)},n.handleFocusStart=function(){var e=n.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},n.handleFocusEnd=function(){var e=n.getTabChildren();e&&e.length>1&&e[0].focus()},n.tabLoopRef=(0,D.createRef)(),n}return lO(t,e),t.prototype.render=function(){var e;return(null!=(e=this.props.enableTabLoop)?e:t.defaultProps.enableTabLoop)?E().createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},E().createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,E().createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(D.Component),cY=(o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lO(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,n=e.className,r=e.wrapperClassName,i=e.hidePopper,s=void 0===i?t.defaultProps.hidePopper:i,o=e.popperComponent,a=e.targetComponent,l=e.enableTabLoop,c=e.popperOnKeyDown,d=e.portalId,u=e.portalHost,p=e.popperProps,h=e.showArrow,f=void 0;if(!s){var g=(0,ai.$)("react-datepicker-popper",n);f=E().createElement(cW,{enableTabLoop:l},E().createElement("div",{ref:p.refs.setFloating,style:p.floatingStyles,className:g,"data-placement":p.placement,onKeyDown:c},o,h&&E().createElement(lu,{ref:p.arrowRef,context:p.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(f=(0,D.createElement)(this.props.popperContainer,{},f)),d&&!s&&(f=E().createElement(cB,{portalId:d,portalHost:u},f));var m=(0,ai.$)("react-datepicker-wrapper",r);return E().createElement(E().Fragment,null,E().createElement("div",{ref:p.refs.setReference,className:m},a),f)},t}(D.Component),function(e){var t,n="boolean"!=typeof e.hidePopper||e.hidePopper,r=(0,D.useRef)(null),i=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=ld(),s=D.useRef({}),[o]=D.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}})()),a=null!=lf(),[l,c]=D.useState(r.reference),d=function(e){let t=D.useRef(()=>{});return le(()=>{t.current=e}),D.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}((e,t,r)=>{s.current.openEvent=e?t:void 0,o.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),u=D.useMemo(()=>({setPositionReference:c}),[]),p=D.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return D.useMemo(()=>({dataRef:s,open:t,onOpenChange:d,elements:p,events:o,floatingId:i,refs:u}),[t,d,p,o,i,u])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,o]=D.useState(null),[a,l]=D.useState(null),c=(null==i?void 0:i.domReference)||s,d=D.useRef(null),u=lg();lo(()=>{c&&(d.current=c)},[c]);let p=(0,a9.we)({...e,elements:{...i,...a&&{reference:a}}}),h=D.useCallback(e=>{let t=(0,a6.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),p.refs.setReference(t)},[p.refs]),f=D.useCallback(e=>{((0,a6.vq)(e)||null===e)&&(d.current=e,o(e)),((0,a6.vq)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,a6.vq)(e))&&p.refs.setReference(e)},[p.refs]),g=D.useMemo(()=>({...p.refs,setReference:f,setPositionReference:h,domReference:d}),[p.refs,f,h]),m=D.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),v=D.useMemo(()=>({...p,...r,refs:g,elements:m,nodeId:t}),[p,g,m,t,r]);return lo(()=>{r.dataRef.current.floatingContext=v;let e=null==u?void 0:u.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),D.useMemo(()=>({...p,context:v,refs:g,elements:m}),[p,g,m,v])}(lI({open:!n,whileElementsMounted:lM.ll,placement:e.popperPlacement,middleware:lP([(0,a9.UU)({padding:15}),(0,a9.cY)(10),(0,a9.UE)({element:r})],null!=(t=e.popperModifiers)?t:[],!0)},e.popperProps)),s=lI(lI({},e),{hidePopper:n,popperProps:lI(lI({},i),{arrowRef:r})});return E().createElement(o,lI({},s))}),cV="react-datepicker-ignore-onclickoutside",cQ="Date input not valid.",cG=function(e){function t(n){var r=e.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:lU()},r.modifyHolidays=function(){var e;return null==(e=r.props.holidays)?void 0:e.reduce(function(e,t){var n=new Date(t.date);return lz(n)?lP(lP([],e,!0),[lI(lI({},t),{date:n})],!1):e},[])},r.calcInitialState=function(){var e,t=r.getPreSelection(),n=cp(r.props),i=ch(r.props),s=n&&av(t,lQ(n))?n:i&&a0(t,(0,ak.D)(i))?i:t;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!=(e=r.props.selectsRange?r.props.startDate:r.props.selected)?e:s,highlightDates:cf(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(lI(lI({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(lI(lI({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){var e,t;null==(t=null==(e=r.input)?void 0:e.focus)||t.call(e,{preventScroll:!0})},r.setBlur=function(){var e,t;null==(t=null==(e=r.input)?void 0:e.blur)||t.call(e),r.cancelFocusInput()},r.deferBlur=function(){requestAnimationFrame(function(){r.setBlur()})},r.setOpen=function(e,t){void 0===t&&(t=!1),r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:cZ},function(){e||r.setState(function(e){return{focused:!!t&&e.focused}},function(){t||r.deferBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return(0,a$.$)(r.state.preSelection)},r.isCalendarOpen=function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(e){var t,n,i=r.state.wasHidden,s=!i||r.state.open;i&&r.resetHiddenStatus(),!r.state.preventFocus&&(null==(n=(t=r.props).onFocus)||n.call(t,e),!s||r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(e){var t,n;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&(null==(n=(t=r.props).onBlur)||n.call(t,e)),r.state.open&&!1===r.props.open&&r.setOpen(!1),r.setState({focused:!1})},r.handleCalendarClickOutside=function(e){var t,n;r.props.inline||r.setOpen(!1),null==(n=(t=r.props).onClickOutside)||n.call(t,e),r.props.withPortal&&e.preventDefault()},r.handleChange=function(){for(var e,n,i,s,o,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var c=a[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,a),!c||"function"!=typeof c.isDefaultPrevented||c.isDefaultPrevented()))){r.setState({inputValue:(null==c?void 0:c.target)instanceof HTMLInputElement?c.target.value:null,lastPreSelectChange:cq});var d=r.props,u=d.selectsRange,p=d.startDate,h=d.endDate,f=null!=(e=r.props.dateFormat)?e:t.defaultProps.dateFormat,g=null!=(n=r.props.strictParsing)?n:t.defaultProps.strictParsing,m=(null==c?void 0:c.target)instanceof HTMLInputElement?c.target.value:"";if(u){var v=m.split("-",2).map(function(e){return e.trim()}),y=v[0],b=v[1],D=lB(null!=y?y:"",f,r.props.locale,g),w=lB(null!=b?b:"",f,r.props.locale,g),E=(null==p?void 0:p.getTime())!==(null==D?void 0:D.getTime()),S=(null==h?void 0:h.getTime())!==(null==w?void 0:w.getTime());if(!E&&!S||D&&l8(D,r.props)||w&&l8(w,r.props))return;null==(s=(i=r.props).onChange)||s.call(i,[D,w],c)}else{var C=lB(m,f,r.props.locale,g,null!=(o=r.props.selected)?o:void 0);(C||!m)&&r.setSelected(C,c,!0)}}},r.handleSelect=function(e,t,n){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var i=r.props,s=i.startDate,o=i.endDate;s&&!o&&(r.props.swapRange||!cb(e,s))&&r.setOpen(!1)}},r.setSelected=function(e,t,n,i){var s,o,a=e;if(r.props.showYearPicker){if(null!==a&&cn(aP(a),r.props))return}else if(r.props.showMonthYearPicker){if(null!==a&&l9(a,r.props))return}else if(null!==a&&l8(a,r.props))return;var l=r.props,c=l.onChange,d=l.selectsRange,u=l.startDate,p=l.endDate,h=l.selectsMultiple,f=l.selectedDates,g=l.minTime,m=l.swapRange;if(!l0(r.props.selected,a)||r.props.allowSameDay||d||h)if(null!==a&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(a=lV(a,{hour:aU(r.props.selected),minute:aB(r.props.selected),second:az(r.props.selected)})),!n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&g&&(a=lV(a,{hour:g.getHours(),minute:g.getMinutes(),second:g.getSeconds()})),r.props.inline||r.setState({preSelection:a}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:i})),d){var v=!u&&!p,y=u&&!p,b=u&&p;v?null==c||c([a,null],t):y&&(null===a?null==c||c([null,null],t):cb(a,u)?m?null==c||c([a,u],t):null==c||c([a,null],t):null==c||c([u,a],t)),b&&(null==c||c([a,null],t))}else if(h){if(null!==a)if(null==f?void 0:f.length)if(f.some(function(e){return lJ(e,a)})){var D=f.filter(function(e){return!lJ(e,a)});null==c||c(D,t)}else null==c||c(lP(lP([],f,!0),[a],!1),t);else null==c||c([a],t)}else null==c||c(a,t);n||(null==(o=(s=r.props).onSelect)||o.call(s,a,t),r.setState({inputValue:null}))},r.setPreSelection=function(e){var t=(0,a$.$)(r.props.minDate),n=(0,a$.$)(r.props.maxDate),i=!0;if(e){var s=lQ(e);if(t&&n)i=l1(e,r.props.minDate,r.props.maxDate);else if(t){var o=lQ(r.props.minDate);i=a0(e,o)||l0(s,o)}else if(n){var a,l=(a=r.props.maxDate,(0,ak.D)(a));i=av(e,l)||l0(s,l)}}i&&r.setState({preSelection:e})},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(e){if(!r.props.selectsRange&&!r.props.selectsMultiple){var t,n,i=r.props.selected?r.props.selected:r.getPreSelection(),s=r.props.selected?e:lV(i,{hour:aU(e),minute:aB(e)});r.setState({preSelection:s}),null==(n=(t=r.props).onChange)||n.call(t,s),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var e,t;r.props.disabled||r.props.readOnly||r.setOpen(!0),null==(t=(e=r.props).onInputClick)||t.call(e)},r.onInputKeyDown=function(e){null==(n=(t=r.props).onKeyDown)||n.call(t,e);var t,n,i,s,o,l,c=e.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(c===a.ArrowDown||c===a.ArrowUp||c===a.Enter)&&(null==(i=r.onInputClick)||i.call(r));return}if(r.state.open){if(c===a.ArrowDown||c===a.ArrowUp){e.preventDefault();var d=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=(null==(s=r.calendar)?void 0:s.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(d);u instanceof HTMLElement&&u.focus({preventScroll:!0});return}var p=lU(r.state.preSelection);c===a.Enter?(e.preventDefault(),e.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===cZ?(r.handleSelect(p,e),r.props.shouldCloseOnSelect||r.setPreSelection(p)):r.setOpen(!1)):c===a.Escape?(e.preventDefault(),e.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):c===a.Tab&&r.setOpen(!1),r.inputOk()||null==(l=(o=r.props).onInputError)||l.call(o,{code:1,msg:cQ})}},r.onPortalKeyDown=function(e){e.key===a.Escape&&(e.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(e){var t,n,i,s,o,l,c=r.props,d=c.minDate,u=c.maxDate,p=c.disabledKeyboardNavigation,h=c.showWeekPicker,f=c.shouldCloseOnSelect,g=c.locale,m=c.calendarStartDay,v=c.adjustDateOnChange,y=c.inline;if(null==(n=(t=r.props).onKeyDown)||n.call(t,e),!p){var b=e.key,D=e.shiftKey,w=lU(r.state.preSelection),E=function(e,t){var n=t;switch(e){case a.ArrowRight:n=h?a4(t,1):(0,a2.f)(t,1);break;case a.ArrowLeft:n=h?a4(t,-1):(0,a2.f)(t,-1);break;case a.ArrowUp:n=a4(t,-1);break;case a.ArrowDown:n=a4(t,1);break;case a.PageUp:n=D?aG(t,-1):aW(t,-1);break;case a.PageDown:n=D?aG(t,1):aW(t,1);break;case a.Home:n=lG(t,g,m);break;case a.End:n=function(e,t){let n=(0,aR.q)(),r=(void 0)??void 0??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,af.a)(e),s=i.getDay();return i.setDate(i.getDate()+((s<r?-7:0)+6-(s-r))),i.setHours(23,59,59,999),i}(t)}return n};if(b===a.Enter){e.preventDefault(),r.handleSelect(w,e),f||r.setPreSelection(w);return}if(b===a.Escape){e.preventDefault(),r.setOpen(!1),r.inputOk()||null==(s=(i=r.props).onInputError)||s.call(i,{code:1,msg:cQ});return}var S=null;switch(b){case a.ArrowLeft:case a.ArrowRight:case a.ArrowUp:case a.ArrowDown:case a.PageUp:case a.PageDown:case a.Home:case a.End:S=function(e,t){for(var n=e,i=!1,s=0,o=E(e,t);!i;){if(s>=40){o=t;break}d&&o<d&&(n=a.ArrowRight,o=l8(d,r.props)?E(n,o):d),u&&o>u&&(n=a.ArrowLeft,o=l8(u,r.props)?E(n,o):u),l8(o,r.props)?((n===a.PageUp||n===a.Home)&&(n=a.ArrowRight),(n===a.PageDown||n===a.End)&&(n=a.ArrowLeft),o=E(n,o)):i=!0,s++}return o}(b,w)}if(!S){null==(l=(o=r.props).onInputError)||l.call(o,{code:1,msg:cQ});return}if(e.preventDefault(),r.setState({lastPreSelectChange:cZ}),v&&r.setSelected(S),r.setPreSelection(S),y){var C=aj(w),_=aj(S),A=aP(w),x=aP(S);C!==_||A!==x?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(e){e.key===a.Escape&&(e.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),r.sendFocusBackToInput();var t=r.props,n=t.selectsRange,i=t.onChange;n?null==i||i([null,null],e):null==i||i(null,e),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?(e.target===document||e.target===document.documentElement||e.target===document.body)&&r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)},r.renderCalendar=function(){var e,n,i,s,o;return r.props.inline||r.isCalendarOpen()?E().createElement(cF,lI({showMonthYearDropdown:void 0,ref:function(e){r.calendar=e}},r.props,r.state,{setOpen:r.setOpen,dateFormat:null!=(e=r.props.dateFormatCalendar)?e:t.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:(void 0===(i=r.modifyHolidays())&&(i=[]),void 0===s&&(s="react-datepicker__day--holidays"),o=new Map,i.forEach(function(e){var t,n,r=e.date,i=e.holidayName;if((0,a$.$)(r)){var a=lW(r,"MM.dd.yyyy"),l=o.get(a)||{className:"",holidayNames:[]};if(!("className"in l&&l.className===s&&(t=l.holidayNames,n=[i],t.length===n.length&&t.every(function(e,t){return e===n[t]})))){l.className=s;var c=l.holidayNames;l.holidayNames=c?lP(lP([],c,!0),[i],!1):[i],o.set(a,l)}}}),o),outsideClickIgnoreClass:cV,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:null!=(n=r.props.dropdownMode)?n:t.defaultProps.dropdownMode}),r.props.children):null},r.renderAriaLiveRegion=function(){var e,n=r.props,i=n.dateFormat,s=void 0===i?t.defaultProps.dateFormat:i,o=n.locale,a=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(lY(r.props.startDate,{dateFormat:a,locale:o}),". ").concat(r.props.endDate?"End date: "+lY(r.props.endDate,{dateFormat:a,locale:o}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(lY(r.props.selected,{dateFormat:s,locale:o})):r.props.showYearPicker?"Selected year: ".concat(lY(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?"Selected month: ".concat(lY(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(lY(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(lY(r.props.selected,{dateFormat:a,locale:o})),E().createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},r.renderDateInput=function(){var e,n,i,s=(0,ai.$)(r.props.className,((e={})[cV]=r.state.open,e)),o=r.props.customInput||E().createElement("input",{type:"text"}),a=r.props.customInputRef||"ref",l=r.props,c=l.dateFormat,d=void 0===c?t.defaultProps.dateFormat:c,u=l.locale,p="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=lY(e,n),i=t?lY(t,n):"";return"".concat(r," - ").concat(i)}(r.props.startDate,r.props.endDate,{dateFormat:d,locale:u}):r.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?lY(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var r=lY(e[1],t);return"".concat(n,", ").concat(r)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}(null!=(i=r.props.selectedDates)?i:[],{dateFormat:d,locale:u}):lY(r.props.selected,{dateFormat:d,locale:u});return(0,D.cloneElement)(o,((n={})[a]=function(e){r.input=e},n.value=p,n.onBlur=r.handleBlur,n.onChange=r.handleChange,n.onClick=r.onInputClick,n.onFocus=r.handleFocus,n.onKeyDown=r.onInputKeyDown,n.id=r.props.id,n.name=r.props.name,n.form=r.props.form,n.autoFocus=r.props.autoFocus,n.placeholder=r.props.placeholderText,n.disabled=r.props.disabled,n.autoComplete=r.props.autoComplete,n.className=(0,ai.$)(o.props.className,s),n.title=r.props.title,n.readOnly=r.props.readOnly,n.required=r.props.required,n.tabIndex=r.props.tabIndex,n["aria-describedby"]=r.props.ariaDescribedBy,n["aria-invalid"]=r.props.ariaInvalid,n["aria-labelledby"]=r.props.ariaLabelledBy,n["aria-required"]=r.props.ariaRequired,n))},r.renderClearButton=function(){var e=r.props,t=e.isClearable,n=e.disabled,i=e.selected,s=e.startDate,o=e.endDate,a=e.clearButtonTitle,l=e.clearButtonClassName,c=e.ariaLabelClose,d=e.selectedDates;return t&&(null!=i||null!=s||null!=o||(null==d?void 0:d.length))?E().createElement("button",{type:"button",className:(0,ai.$)("react-datepicker__close-icon",void 0===l?"":l,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":void 0===c?"Close":c,onClick:r.onClearClick,title:a,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return lO(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.componentDidUpdate=function(e,t){var n,r,i,s,o,a;e.inline&&(o=e.selected,a=this.props.selected,o&&a?aj(o)!==aj(a)||aP(o)!==aP(a):o!==a)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:cf(this.props.highlightDates)}),t.focused||l0(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null==(r=(n=this.props).onCalendarOpen)||r.call(n)),!0===t.open&&!1===this.state.open&&(null==(s=(i=this.props).onCalendarClose)||s.call(i)))},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.renderInputContainer=function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname,i=e.calendarIconClassName,s=e.toggleCalendarOnIconClick,o=this.state.open;return r&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),E().createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&E().createElement(cU,lI({icon:n,className:(0,ai.$)(i,!i&&r,o&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},t.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?E().createElement(cW,{enableTabLoop:this.props.enableTabLoop},E().createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=E().createElement(cB,lI({portalId:this.props.portalId},this.props),t)),E().createElement("div",null,this.renderInputContainer(),t)}return E().createElement(cY,lI({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},t}(D.Component),cq="input",cZ="navigate";n(59863);var cK=n(84334),c$=n(93437);!function(e,t){var n=lF();n.__localeData__||(n.__localeData__={}),n.__localeData__.fr=t}(0,cK.fr);let cX=["#4f46e5","#0891b2","#0e7490","#16a34a","#65a30d","#ca8a04","#d97706","#dc2626","#e11d48","#9333ea","#7c3aed","#2563eb"];function cJ({open:e,onClose:t,onSave:n,onDelete:r,initialData:i}){let[s,o]=(0,D.useState)(i?.name||""),[a,l]=(0,D.useState)(i?.color||"#4f46e5"),[c,d]=(0,D.useState)(i?.description||""),[u,p]=(0,D.useState)(!1),[h,f]=(0,D.useState)(!1),g=i?.name==="Calendrier principal",m=async e=>{e.preventDefault(),p(!0);try{await n({id:i?.id,name:s,color:a,description:c}),b()}catch(e){console.error("Erreur lors de la cr\xe9ation du calendrier:",e)}finally{p(!1)}},y=async()=>{if(i?.id&&r&&!g&&confirm("\xcates-vous s\xfbr de vouloir supprimer ce calendrier ? Tous les \xe9v\xe9nements associ\xe9s seront \xe9galement supprim\xe9s.")){p(!0);try{await r(i.id),b()}catch(e){console.error("Erreur lors de la suppression du calendrier:",e)}finally{p(!1)}}},b=()=>{o(""),l("#4f46e5"),d(""),f(!1),t()};return(0,v.jsx)(o7.lG,{open:e,onOpenChange:e=>!e&&t(),children:(0,v.jsxs)(o7.Cf,{className:"sm:max-w-md rounded-xl",children:[(0,v.jsx)(o7.c7,{children:(0,v.jsxs)(o7.L3,{className:"flex items-center text-xl font-semibold text-gray-900",children:[(0,v.jsx)(o4.A,{className:"w-5 h-5 mr-2 text-indigo-600"}),i?.id?"Modifier le calendrier":"Cr\xe9er un nouveau calendrier"]})}),(0,v.jsxs)("form",{onSubmit:m,children:[(0,v.jsxs)("div",{className:"space-y-5 py-4",children:[(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)(an.J,{htmlFor:"calendar-name",className:"text-gray-700",children:"Nom"}),(0,v.jsx)(ae.p,{id:"calendar-name",value:s,onChange:e=>o(e.target.value),placeholder:"Nom du calendrier",required:!0,disabled:g,className:"rounded-lg border-gray-300 focus:border-indigo-500 focus:ring-indigo-500"})]}),(0,v.jsxs)("div",{className:"space-y-3",children:[(0,v.jsx)(an.J,{className:"text-gray-700",children:"Couleur"}),(0,v.jsxs)("div",{className:"flex flex-wrap gap-3 mb-3",children:[cX.map(e=>(0,v.jsx)("button",{type:"button",className:`w-8 h-8 rounded-full flex items-center justify-center transition-all ${a===e&&!h?"ring-2 ring-offset-2 ring-gray-400":"hover:scale-110"}`,style:{backgroundColor:e},onClick:()=>{l(e),f(!1)},children:a===e&&!h&&(0,v.jsx)(o3.A,{className:"w-4 h-4 text-white"})},e)),(0,v.jsx)("button",{type:"button",className:`w-8 h-8 rounded-full flex items-center justify-center bg-gradient-to-r from-purple-500 via-pink-500 to-red-500 transition-all ${h?"ring-2 ring-offset-2 ring-gray-400":"hover:scale-110"}`,onClick:()=>f(!0),children:h&&(0,v.jsx)(o3.A,{className:"w-4 h-4 text-white"})})]}),h&&(0,v.jsxs)("div",{className:"flex items-center gap-4 mt-2 p-3 bg-gray-50 rounded-lg",children:[(0,v.jsxs)("div",{className:"flex flex-1 items-center gap-3",children:[(0,v.jsx)(ae.p,{id:"calendar-color",type:"color",value:a,onChange:e=>l(e.target.value),className:"w-10 h-10 p-1 cursor-pointer rounded border-gray-300"}),(0,v.jsx)(ae.p,{type:"text",value:a,onChange:e=>l(e.target.value),placeholder:"#RRGGBB",className:"w-28 rounded-lg"})]}),(0,v.jsx)("div",{className:"w-8 h-8 rounded-lg shadow-sm",style:{backgroundColor:a}})]})]}),(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)(an.J,{htmlFor:"calendar-description",className:"text-gray-700",children:"Description (optionnelle)"}),(0,v.jsx)(at.T,{id:"calendar-description",value:c,onChange:e=>d(e.target.value),placeholder:"Description du calendrier",rows:3,className:"rounded-lg border-gray-300 focus:border-indigo-500 focus:ring-indigo-500"})]})]}),(0,v.jsx)(o7.Es,{className:"mt-6 border-t border-gray-100 pt-4",children:(0,v.jsxs)("div",{className:"flex justify-between w-full",children:[i?.id&&!g&&(0,v.jsxs)(o1.$,{type:"button",variant:"destructive",onClick:y,disabled:u||g,children:[(0,v.jsx)(o5.A,{className:"w-4 h-4 mr-2"}),"Supprimer"]}),(0,v.jsxs)("div",{className:"flex gap-3",children:[(0,v.jsx)(o1.$,{type:"button",variant:"outline",onClick:t,disabled:u,className:"rounded-lg border-gray-300 text-gray-700 hover:bg-gray-50",children:"Annuler"}),(0,v.jsx)(o1.$,{type:"submit",disabled:!s||u||g,className:"rounded-lg bg-indigo-600 hover:bg-indigo-700 text-white",children:u?"Enregistrement...":i?.id?"Mettre \xe0 jour":"Cr\xe9er"})]})]})})]})]})})}function c0({initialCalendars:e,userId:t,userProfile:n}){let[r,i]=(0,D.useState)(e.map(e=>({...e,events:e.events||[]}))),[s,o]=(0,D.useState)(e[0]?.id||""),[a,l]=(0,D.useState)("dayGridMonth"),[c,d]=(0,D.useState)(!1),[u,p]=(0,D.useState)(!1),[h,f]=(0,D.useState)(null),[g,m]=(0,D.useState)(null),[y,w]=(0,D.useState)(!1),[E,S]=(0,D.useState)(null),[C,_]=(0,D.useState)({title:"",description:null,start:"",end:"",allDay:!1,location:null,calendarId:s}),[A,x]=(0,D.useState)(null),[k,R]=(0,D.useState)([]),[T,M]=(0,D.useState)({totalEvents:0,upcomingEvents:0,completedEvents:0,meetingHours:0}),[N,O]=(0,D.useState)([]),I=()=>{let e=new Date,t={totalEvents:0,upcomingEvents:0,completedEvents:0,meetingHours:0};r.forEach(n=>{n.events.forEach(n=>{t.totalEvents++;let r=new Date(n.start),i=new Date(n.end);r>e?t.upcomingEvents++:i<e&&t.completedEvents++;let s=(i.getTime()-r.getTime())/36e5;t.meetingHours+=s})}),M(t)},P=()=>{let e=new Date;R(r.flatMap(e=>e.events).filter(t=>new Date(t.start)>e).sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime()).slice(0,5))},j=async()=>{try{w(!0);let e=await fetch("/api/calendars");if(!e.ok)throw Error("Failed to fetch calendars");let t=await e.json();console.log("Raw calendars data:",t);let n=t.map(e=>({...e,events:Array.isArray(e.events)?e.events.map(e=>({...e,start:new Date(e.start),end:new Date(e.end)})):[]}));console.log("Setting calendars with processed events:",n),i(n),I(),P(),H.current&&H.current.getApi().refetchEvents()}catch(e){console.error("Error fetching calendars:",e),S(e instanceof Error?e.message:"Failed to fetch calendars")}finally{w(!1)}},H=(0,D.useRef)(null),L=async e=>{try{if(w(!0),!(await fetch("/api/calendars",{method:e.id?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,userId:t})})).ok)throw Error("Failed to save calendar");await j(),p(!1)}catch(e){console.error("Error saving calendar:",e),S(e instanceof Error?e.message:"Failed to save calendar")}finally{w(!1)}},F=async e=>{try{if(w(!0),!(await fetch(`/api/calendars/${e}`,{method:"DELETE"})).ok)throw Error("Failed to delete calendar");if(await j(),p(!1),s===e){let t=r.filter(t=>t.id!==e);o(t[0]?.id||"")}}catch(e){console.error("Error deleting calendar:",e),S(e instanceof Error?e.message:"Failed to delete calendar")}finally{w(!1)}},U=async()=>{try{if(!C.title||!C.start||!C.end||!C.calendarId){console.log("Form validation failed:",{title:C.title,start:C.start,end:C.end,calendarId:C.calendarId}),S("Veuillez remplir tous les champs obligatoires et s\xe9lectionner un calendrier");return}w(!0);let e={...C,start:new Date(C.start).toISOString(),end:new Date(C.end).toISOString(),userId:t,...h?{id:h.id}:{},allDay:C.allDay};console.log("Submitting event with data:",e);let n=await fetch("/api/events",{method:h?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),o=await n.json();if(console.log("Response from server:",o),!n.ok)throw console.error("Error response:",o),Error(o.error||"Failed to save event");d(!1),_({title:"",description:null,start:"",end:"",allDay:!1,location:null,calendarId:s}),f(null),S(null);let a=r.map(t=>t.id===e.calendarId?{...t,events:[...t.events,o]}:t);i(a),await j()}catch(e){console.error("Error saving event:",e),S(e instanceof Error?e.message:"Failed to save event")}finally{w(!1)}},B=async()=>{if(h?.id&&confirm("\xcates-vous s\xfbr de vouloir supprimer cet \xe9v\xe9nement ?"))try{w(!0);let e=await fetch(`/api/events/${h.id}`,{method:"DELETE"});if(!e.ok){let t=await e.json();throw Error(t.message||"Failed to delete event")}let t=r.map(e=>({...e,events:e.events.filter(e=>e.id!==h.id)}));i(t),d(!1),f(null),_({title:"",description:null,start:"",end:"",allDay:!1,location:null,calendarId:s}),H.current&&H.current.getApi().refetchEvents()}catch(e){console.error("Error deleting event:",e),S(e instanceof Error?e.message:"Failed to delete event")}finally{w(!1)}},z=e=>{l(e),H.current&&H.current.getApi().changeView(e)},W=e=>e?new Date(e):new Date,Y=e=>{if(e)if(e>W(C.end)){let t=new Date(e);t.setHours(e.getHours()+1),_({...C,start:e.toISOString(),end:t.toISOString()})}else _({...C,start:e.toISOString()})},V=e=>{if(e)if(e<W(C.start)){let t=new Date(e);t.setHours(e.getHours()-1),_({...C,start:t.toISOString(),end:e.toISOString()})}else _({...C,end:e.toISOString()})};return(0,v.jsxs)("div",{className:"space-y-4",children:[(0,v.jsxs)(o0.Zp,{className:"p-4",children:[(0,v.jsxs)("div",{className:"jsx-82cd74ef5c10b128 flex items-center justify-between mb-4",children:[(0,v.jsx)("div",{className:"jsx-82cd74ef5c10b128 flex items-center gap-4",children:(0,v.jsxs)(o1.$,{onClick:()=>{f(null),_({title:"",description:null,start:new Date().toISOString(),end:new Date(new Date().setHours(new Date().getHours()+1)).toISOString(),allDay:!1,location:null,calendarId:s}),d(!0)},className:"bg-primary hover:bg-primary/90 text-white",children:[(0,v.jsx)(o6.A,{className:"mr-2 h-4 w-4"}),(0,v.jsx)("span",{className:"jsx-82cd74ef5c10b128 font-medium",children:"Nouvel \xe9v\xe9nement"})]})}),(0,v.jsx)(o2.tU,{value:a,className:"w-auto",children:(0,v.jsxs)(o2.j7,{children:[(0,v.jsx)(o2.Xi,{value:"dayGridMonth",onClick:()=>z("dayGridMonth"),children:"Mois"}),(0,v.jsx)(o2.Xi,{value:"timeGridWeek",onClick:()=>z("timeGridWeek"),children:"Semaine"}),(0,v.jsx)(o2.Xi,{value:"timeGridDay",onClick:()=>z("timeGridDay"),children:"Jour"})]})})]}),(0,v.jsx)(()=>(0,v.jsx)("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:r.map(e=>(0,v.jsxs)("div",{className:"relative group",children:[(0,v.jsxs)(o1.$,{variant:N.includes(e.id)?"secondary":"ghost",className:"flex items-center gap-2 pr-8",onClick:()=>{N.includes(e.id)?O(N.filter(t=>t!==e.id)):O([...N,e.id])},children:[(0,v.jsx)("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),(0,v.jsx)("span",{children:e.name}),(0,v.jsx)("div",{className:"ml-2",children:N.includes(e.id)?(0,v.jsx)(o3.A,{className:"h-4 w-4"}):null})]}),"Calendrier principal"!==e.name&&(0,v.jsx)(o1.$,{variant:"ghost",size:"icon",className:"absolute right-0 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),m(e),p(!0)},children:(0,v.jsx)(o8,{className:"h-4 w-4"})})]},e.id))}),{className:"jsx-82cd74ef5c10b128"}),(0,v.jsx)(b(),{id:"82cd74ef5c10b128",children:".fc .fc-daygrid-day-frame{min-height:100px!important;max-height:100px!important;overflow-y:auto!important}.fc .fc-daygrid-day-events{margin-bottom:0!important}.fc .fc-daygrid-day-frame::-webkit-scrollbar{width:4px}.fc .fc-daygrid-day-frame::-webkit-scrollbar-track{background:transparent}.fc .fc-daygrid-day-frame::-webkit-scrollbar-thumb{background:#888;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.fc .fc-daygrid-day-frame::-webkit-scrollbar-thumb:hover{background:#555}.fc .fc-daygrid-day-frame::-webkit-scrollbar{display:none}.fc .fc-daygrid-day-frame:hover::-webkit-scrollbar{display:block}"}),y?(0,v.jsxs)("div",{className:"jsx-82cd74ef5c10b128 h-96 flex items-center justify-center",children:[(0,v.jsx)(o9.A,{className:"h-8 w-8 animate-spin text-primary"}),(0,v.jsx)("span",{className:"jsx-82cd74ef5c10b128 ml-2",children:"Chargement des \xe9v\xe9nements..."})]}):(0,v.jsx)(sk,{ref:H,plugins:[s3,oT,oX],initialView:a,headerToolbar:{left:"prev,next today",center:"title",right:""},events:r.filter(e=>N.includes(e.id)).flatMap(e=>(e.events||[]).map(t=>({id:t.id,title:t.title,start:new Date(t.start),end:new Date(t.end),allDay:t.isAllDay,description:t.description,location:t.location,calendarId:t.calendarId,backgroundColor:`${e.color}dd`,borderColor:e.color,textColor:"#ffffff",extendedProps:{calendarName:e.name,location:t.location,description:t.description,calendarId:t.calendarId,originalEvent:t,color:e.color}}))),eventContent:e=>(0,v.jsx)(ar.Bc,{children:(0,v.jsxs)(ar.m_,{children:[(0,v.jsx)(ar.k$,{asChild:!0,children:(0,v.jsx)("div",{style:{backgroundColor:`${e.event.backgroundColor}`,boxShadow:`inset 0 0 0 1px ${e.event.borderColor}, 0 2px 4px ${e.event.borderColor}40`},className:"jsx-82cd74ef5c10b128 px-2 py-1 overflow-hidden w-full transition-all rounded-sm hover:brightness-110",children:(0,v.jsxs)("div",{className:"jsx-82cd74ef5c10b128 flex items-center gap-1.5 text-xs text-white",children:[!e.event.allDay&&(0,v.jsx)("span",{className:"jsx-82cd74ef5c10b128 font-medium whitespace-nowrap shrink-0",children:"object"==typeof e.event.start&&e.event.start instanceof Date?e.event.start.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"}):""}),(0,v.jsx)("span",{className:"jsx-82cd74ef5c10b128 font-medium truncate max-w-[calc(100%-4.5rem)]",children:e.event.title})]})})}),(0,v.jsx)(ar.ZI,{children:(0,v.jsxs)("div",{className:"jsx-82cd74ef5c10b128 text-sm",children:[(0,v.jsx)("p",{className:"jsx-82cd74ef5c10b128 font-medium",children:e.event.title}),!e.event.allDay&&(0,v.jsx)("p",{className:"jsx-82cd74ef5c10b128 text-xs text-gray-400 mt-1",children:"object"==typeof e.event.start&&e.event.start instanceof Date?e.event.start.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"}):""})]})})]})}),eventClassNames:"rounded-md overflow-hidden",dayCellContent:e=>(0,v.jsx)("div",{className:"jsx-82cd74ef5c10b128 text-xs font-medium",children:e.dayNumberText}),locale:oJ,selectable:!0,selectMirror:!0,dayMaxEventRows:!1,dayMaxEvents:!1,weekends:!0,select:e=>{let t=new Date(e.start),n=new Date(e.end);if(console.log("Date select handler - Current state:",{calendars:r.map(e=>({id:e.id,name:e.name})),selectedCalendarId:s,availableCalendars:r.length}),!s&&r.length>0){let i=r[0];console.log("No calendar selected, selecting first calendar:",i),o(i.id),_({title:"",description:null,start:t.toISOString(),end:n.toISOString(),allDay:e.allDay,location:null,calendarId:i.id})}else _({title:"",description:null,start:t.toISOString(),end:n.toISOString(),allDay:e.allDay,location:null,calendarId:s});d(!0)},eventClick:e=>{let t=e.event,n=new Date(t.start),r=new Date(t.end||t.start);f(t.extendedProps.originalEvent),_({title:t.title,description:t.extendedProps.description,start:n.toISOString().slice(0,16),end:r.toISOString().slice(0,16),allDay:t.isAllDay,location:t.extendedProps.location,calendarId:t.extendedProps.calendarId}),d(!0)},height:"auto",aspectRatio:1.8,slotMinTime:"06:00:00",slotMaxTime:"22:00:00",allDaySlot:!0,allDayText:"",views:{timeGridWeek:{allDayText:"",dayHeaderFormat:{weekday:"long",day:"numeric",month:"numeric"}},timeGridDay:{allDayText:"",dayHeaderFormat:{weekday:"long",day:"numeric",month:"numeric"}}},slotLabelFormat:{hour:"2-digit",minute:"2-digit",hour12:!1}})]}),(0,v.jsx)(cJ,{open:u,onClose:()=>p(!1),onSave:L,onDelete:F,initialData:g||void 0}),(0,v.jsx)(o7.lG,{open:c,onOpenChange:e=>{e||(d(!1),_({title:"",description:null,start:"",end:"",allDay:!1,location:null,calendarId:s||r[0]?.id}),f(null),S(null))},children:(0,v.jsxs)(o7.Cf,{className:"sm:max-w-lg",children:[(0,v.jsx)(o7.c7,{children:(0,v.jsx)(o7.L3,{className:"text-gray-800",children:h?"Modifier l'\xe9v\xe9nement":"Nouvel \xe9v\xe9nement"})}),E&&(0,v.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-600 px-4 py-2 rounded-md text-sm",children:E}),(0,v.jsxs)("div",{className:"space-y-4 py-4",children:[(0,v.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,v.jsxs)("div",{className:"grid gap-2",children:[(0,v.jsx)(an.J,{htmlFor:"title",className:"text-base font-semibold text-gray-800",children:"Titre"}),(0,v.jsx)(ae.p,{id:"title",placeholder:"Titre de l'\xe9v\xe9nement",value:C.title,onChange:e=>_({...C,title:e.target.value}),className:"bg-white text-gray-900"})]}),(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)(an.J,{className:"text-base font-semibold text-gray-800",children:"Calendrier"}),(0,v.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.map(e=>(0,v.jsxs)("button",{type:"button",onClick:()=>{_(t=>({...t,calendarId:e.id}))},className:`flex items-center gap-2 px-3 py-2 rounded-lg transition-all ${C.calendarId===e.id?"bg-white ring-2 ring-primary":"bg-white hover:bg-gray-50 border border-gray-200"}`,children:[(0,v.jsx)("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),(0,v.jsx)("span",{className:`text-sm ${C.calendarId===e.id?"font-medium text-gray-900":"text-gray-700"}`,children:e.name})]},e.id))})]}),(0,v.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)(an.J,{className:"text-gray-800",children:"D\xe9but"}),(0,v.jsxs)("div",{className:"flex gap-2",children:[(0,v.jsx)("div",{className:"flex-1",children:(0,v.jsx)(cG,{selected:W(C.start),onChange:Y,dateFormat:"dd/MM/yyyy",locale:"fr",className:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary bg-white text-gray-900",placeholderText:"Date",customInput:(0,v.jsx)(ae.p,{className:"bg-white text-gray-900"})})}),(0,v.jsx)(cG,{selected:W(C.start),onChange:Y,showTimeSelect:!0,showTimeSelectOnly:!0,timeIntervals:15,timeCaption:"Heure",dateFormat:"HH:mm",className:"w-32 bg-white text-gray-900",customInput:(0,v.jsx)(ae.p,{className:"bg-white text-gray-900"})})]})]}),(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)(an.J,{className:"text-gray-800",children:"Fin"}),(0,v.jsxs)("div",{className:"flex gap-2",children:[(0,v.jsx)("div",{className:"flex-1",children:(0,v.jsx)(cG,{selected:W(C.end),onChange:V,dateFormat:"dd/MM/yyyy",locale:"fr",className:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary bg-white text-gray-900",placeholderText:"Date",customInput:(0,v.jsx)(ae.p,{className:"bg-white text-gray-900"}),minDate:W(C.start)})}),(0,v.jsx)(cG,{selected:W(C.end),onChange:V,showTimeSelect:!0,showTimeSelectOnly:!0,timeIntervals:15,timeCaption:"Heure",dateFormat:"HH:mm",className:"w-32 bg-white text-gray-900",customInput:(0,v.jsx)(ae.p,{className:"bg-white text-gray-900"})})]})]})]})]}),(0,v.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,v.jsx)(c$.S,{id:"allDay",checked:C.allDay,onCheckedChange:e=>_({...C,allDay:e})}),(0,v.jsx)(an.J,{htmlFor:"allDay",className:"text-gray-800",children:"Toute la journ\xe9e"})]}),(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)(an.J,{className:"text-gray-800",children:"Lieu"}),(0,v.jsx)(ae.p,{value:C.location||"",onChange:e=>_({...C,location:e.target.value}),placeholder:"Ajouter un lieu",className:"bg-white text-gray-900"})]}),(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)(an.J,{className:"text-gray-800",children:"Description"}),(0,v.jsx)(at.T,{value:C.description||"",onChange:e=>_({...C,description:e.target.value}),placeholder:"Ajouter une description",className:"bg-white text-gray-900"})]})]}),(0,v.jsxs)(o7.Es,{children:[h&&(0,v.jsx)(o1.$,{variant:"destructive",onClick:B,disabled:y,children:y?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o9.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Suppression..."]}):"Supprimer"}),(0,v.jsxs)("div",{className:"flex space-x-2",children:[(0,v.jsx)(o1.$,{variant:"outline",onClick:()=>d(!1),disabled:y,className:"bg-white hover:bg-gray-50 text-gray-900 border-gray-200",children:"Annuler"}),(0,v.jsx)(o1.$,{onClick:U,disabled:y,className:"bg-blue-600 hover:bg-blue-700 text-white",children:y?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o9.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Enregistrement..."]}):h?"Mettre \xe0 jour":"Cr\xe9er"})]})]})]})})]})}},21820:e=>{"use strict";e.exports=require("os")},25037:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(70762);let i=r.z.object({NODE_ENV:r.z.enum(["development","test","production"]).default("development"),DATABASE_URL:r.z.string().url(),NEWSDB_URL:r.z.string().regex(/^postgresql:\/\//,"Must be a valid PostgreSQL URL"),NEWS_API_URL:r.z.string().url(),KEYCLOAK_CLIENT_ID:r.z.string(),KEYCLOAK_CLIENT_SECRET:r.z.string(),KEYCLOAK_REALM:r.z.string(),KEYCLOAK_ISSUER:r.z.string().url(),LEANTIME_TOKEN:r.z.string(),LEANTIME_API_URL:r.z.string().url(),ROCKET_CHAT_TOKEN:r.z.string(),ROCKET_CHAT_USER_ID:r.z.string()}).parse(process.env)},27910:e=>{"use strict";e.exports=require("stream")},28354:e=>{"use strict";e.exports=require("util")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:e=>{"use strict";e.exports=require("path")},34631:e=>{"use strict";e.exports=require("tls")},39390:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(60687),i=n(43210),s=n(78696),o=n(24224),a=n(96241);let l=(0,o.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)(s.b,{ref:n,className:(0,a.cn)(l(),e),...t}));c.displayName=s.b.displayName},39916:(e,t,n)=>{"use strict";var r=n(97576);n.o(r,"notFound")&&n.d(t,{notFound:function(){return r.notFound}}),n.o(r,"redirect")&&n.d(t,{redirect:function(){return r.redirect}})},41204:e=>{"use strict";e.exports=require("string_decoder")},48976:(e,t,n)=>{"use strict";function r(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return r}}),n(8704).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55192:(e,t,n)=>{"use strict";n.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>l,Zp:()=>o,aR:()=>a});var r=n(60687),i=n(43210),s=n(96241);let o=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));o.displayName="Card";let a=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",e),...t}));a.displayName="CardHeader";let l=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",e),...t}));l.displayName="CardTitle";let c=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,s.cn)("text-sm text-muted-foreground",e),...t}));c.displayName="CardDescription";let d=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,s.cn)("p-6 pt-0",e),...t}));d.displayName="CardContent",i.forwardRef(({className:e,...t},n)=>(0,r.jsx)("div",{ref:n,className:(0,s.cn)("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter"},55511:e=>{"use strict";e.exports=require("crypto")},55591:e=>{"use strict";e.exports=require("https")},59863:()=>{},61086:(e,t,n)=>{Promise.resolve().then(n.bind(n,19681))},62765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return i}});let r=""+n(8704).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function i(){let e=Object.defineProperty(Error(r),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=r,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65868:(e,t,n)=>{"use strict";n.d(t,{CalendarClient:()=>r});let r=(0,n(12907).registerClientReference)(function(){throw Error("Attempted to call CalendarClient() from the server but CalendarClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/alma/Documents/NeahNew/components/calendar/calendar-client.tsx","CalendarClient")},70899:(e,t,n)=>{"use strict";function r(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return r}}),n(8704).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,o.isNextRouterError)(t)||(0,s.isBailoutToCSRError)(t)||(0,l.isDynamicServerError)(t)||(0,a.isDynamicPostpone)(t)||(0,i.isPostpone)(t)||(0,r.isHangingPromiseRejectionError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let r=n(68388),i=n(52637),s=n(51846),o=n(31162),a=n(84971),l=n(98479);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74075:e=>{"use strict";e.exports=require("zlib")},79428:e=>{"use strict";e.exports=require("buffer")},79464:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});var r=n(96330),i=n(25037);let s=globalThis.prisma||new r.PrismaClient({datasources:{db:{url:i._.DATABASE_URL}},log:["query"]})},79551:e=>{"use strict";e.exports=require("url")},80189:(e,t,n)=>{"use strict";n.d(t,{Bc:()=>a,ZI:()=>d,k$:()=>c,m_:()=>l});var r=n(60687),i=n(43210),s=n(58730),o=n(96241);let a=s.Kq,l=s.bL,c=s.l9,d=i.forwardRef(({className:e,sideOffset:t=4,...n},i)=>(0,r.jsx)(s.UC,{ref:i,sideOffset:t,className:(0,o.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));d.displayName=s.UC.displayName},81630:e=>{"use strict";e.exports=require("http")},83997:e=>{"use strict";e.exports=require("tty")},84068:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p,metadata:()=>u});var r=n(37413),i=n(35426),s=n(26690),o=n(39916),a=n(79464),l=n(65868);function c(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}function d(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}let u={title:"Enkun - Calendrier | Gestion d'\xe9v\xe9nements professionnelle",description:"Plateforme avanc\xe9e pour la gestion de vos rendez-vous, r\xe9unions et \xe9v\xe9nements professionnels",keywords:"calendrier, rendez-vous, \xe9v\xe9nements, gestion du temps, enkun"};async function p(){let e=await (0,i.getServerSession)(s.N);e?.user||(0,o.redirect)("/api/auth/signin"),e.user.username||e.user.email;let t=await a.z.calendar.findMany({where:{userId:e?.user?.id||""},include:{events:{orderBy:{start:"asc"}}}});0===t.length&&(t=await Promise.all([{name:"Default",color:"#4F46E5",description:"Your default calendar"}].map(async t=>a.z.calendar.create({data:{...t,userId:e?.user?.id||""},include:{events:!0}}))));let n=new Date,u=function(e,t){let{years:n=0,months:r=0,weeks:i=0,days:s=0,hours:o=0,minutes:a=0,seconds:l=0}=t,u=c(e),p=r||n?function(e,t){let n=c(e);if(isNaN(t))return d(e,NaN);if(!t)return n;let r=n.getDate(),i=d(e,n.getTime());return(i.setMonth(n.getMonth()+t+1,0),r>=i.getDate())?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}(u,r+12*n):u,h=s||i?function(e,t){let n=c(e);return isNaN(t)?d(e,NaN):(t&&n.setDate(n.getDate()+t),n)}(p,s+7*i):p;return d(e,h.getTime()+1e3*(l+60*(a+60*o)))}(n,{days:7});return t.flatMap(e=>e.events.filter(e=>new Date(e.start)>=n&&new Date(e.start)<=u)).sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime()),t.flatMap(e=>e.events).length,t.flatMap(e=>e.events).reduce((e,t)=>{let n=new Date(t.start),r=(new Date(t.end).getTime()-n.getTime())/36e5;return e+(isNaN(r)?0:r)},0),(0,r.jsx)("div",{className:"container mx-auto py-10",children:(0,r.jsx)(l.CalendarClient,{initialCalendars:t,userId:e.user.id,userProfile:{name:e.user.name||"",email:e.user.email||"",avatar:e.user.image||void 0}})})}},85910:(e,t,n)=>{"use strict";n.d(t,{Xi:()=>c,av:()=>d,j7:()=>l,tU:()=>a});var r=n(60687),i=n(43210),s=n(41360),o=n(96241);let a=s.bL,l=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)(s.B8,{ref:n,className:(0,o.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));l.displayName=s.B8.displayName;let c=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)(s.l9,{ref:n,className:(0,o.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));c.displayName=s.l9.displayName;let d=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)(s.UC,{ref:n,className:(0,o.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));d.displayName=s.UC.displayName},86889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>o.a,__next_app__:()=>u,pages:()=>d,routeModule:()=>p,tree:()=>c});var r=n(65239),i=n(48088),s=n(88170),o=n.n(s),a=n(30893),l={};for(let e in a)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>a[e]);n.d(t,l);let c={children:["",{children:["agenda",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.bind(n,84068)),"/Users/alma/Documents/NeahNew/app/agenda/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(n.bind(n,58014)),"/Users/alma/Documents/NeahNew/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,57398,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(n.t.bind(n,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(n.t.bind(n,65284,23)),"next/dist/client/components/unauthorized-error"]}]}.children,d=["/Users/alma/Documents/NeahNew/app/agenda/page.tsx"],u={require:n,loadChunk:()=>Promise.resolve()},p=new r.AppPageRouteModule({definition:{kind:i.RouteKind.APP_PAGE,page:"/agenda/page",pathname:"/agenda",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},86897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRedirectError:function(){return o},getRedirectStatusCodeFromError:function(){return u},getRedirectTypeFromError:function(){return d},getURLFromRedirectError:function(){return c},permanentRedirect:function(){return l},redirect:function(){return a}});let r=n(52836),i=n(49026),s=n(19121).actionAsyncStorage;function o(e,t,n){void 0===n&&(n=r.RedirectStatusCode.TemporaryRedirect);let s=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return s.digest=i.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+n+";",s}function a(e,t){var n;throw null!=t||(t=(null==s||null==(n=s.getStore())?void 0:n.isAction)?i.RedirectType.push:i.RedirectType.replace),o(e,t,r.RedirectStatusCode.TemporaryRedirect)}function l(e,t){throw void 0===t&&(t=i.RedirectType.replace),o(e,t,r.RedirectStatusCode.PermanentRedirect)}function c(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function d(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function u(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91645:e=>{"use strict";e.exports=require("net")},93437:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var r=n(60687),i=n(43210),s=n(49829),o=n(13964),a=n(96241);let l=i.forwardRef(({className:e,...t},n)=>(0,r.jsx)(s.bL,{ref:n,className:(0,a.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:(0,r.jsx)(s.C1,{className:(0,a.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(o.A,{className:"h-4 w-4"})})}));l.displayName=s.bL.displayName},94735:e=>{"use strict";e.exports=require("events")},96330:e=>{"use strict";e.exports=require("@prisma/client")},97576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return d},RedirectType:function(){return i.RedirectType},forbidden:function(){return o.forbidden},notFound:function(){return s.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect},unauthorized:function(){return a.unauthorized},unstable_rethrow:function(){return l.unstable_rethrow}});let r=n(86897),i=n(49026),s=n(62765),o=n(48976),a=n(70899),l=n(163);class c extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class d extends URLSearchParams{append(){throw new c}delete(){throw new c}set(){throw new c}sort(){throw new c}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}};var t=require("../../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[4243,5419,8794,1642,6724,762,748,4543,9514,7120,6781,5500],()=>n(86889));module.exports=r})();