6 lines
175 KiB
JavaScript
6 lines
175 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55abbe92"],{"573d":function(e,t,n){"use strict";n.d(t,"a",(function(){return xe}));var r,o,i,a,s,u,l=n("9ab4"),c={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return m(e,s,o,i,null)}function m(e,t,n,r,a){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==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function g(){return{current:null}}function y(e){return e.children}function b(e,t){this.props=e,this.context=t}function _(e,t){if(null==t)return e.__?_(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?_(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function C(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(D)}function D(){for(var e;D.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,P(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?_(o):i,o.__h),N(n,o),o.__e!=i&&E(o)))}))}function w(e,t,n,r,o,i,a,s,u,l){var f,p,h,v,g,b,E,C=r&&r.__k||d,D=C.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(v=n.__k[f]=null==(v=t[f])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?m(null,v,null,null,v):Array.isArray(v)?m(y,{children:v},null,null,null):v.__b>0?m(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=C[f])||h&&v.key==h.key&&v.type===h.type)C[f]=void 0;else for(p=0;p<D;p++){if((h=C[p])&&v.key==h.key&&v.type===h.type){C[p]=void 0;break}h=null}P(e,v,h=h||c,o,i,a,s,u,l),g=v.__e,(p=v.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,v),E.push(p,v.__c||g,v)),null!=g?(null==b&&(b=g),"function"==typeof v.type&&v.__k===h.__k?v.__d=u=S(v,u,e):u=O(e,v,h,C,g,u),"function"==typeof n.type&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=_(h))}for(n.__e=b,f=D;f--;)null!=C[f]&&("function"==typeof n.type&&null!=C[f].__e&&C[f].__e==n.__d&&(n.__d=_(r,f+1)),A(C[f],C[f]));if(E)for(f=0;f<E.length;f++)H(E[f],E[++f],E[++f])}function S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):O(n,r,r,o,r.__e,t));return t}function T(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){T(e,t)})):t.push(e)),t}function O(e,t,n,r,o,i){var a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function k(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||I(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||I(e,i,t[i],n[i],r)}function R(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function I(e,t,n,r,o){var i;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||R(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||R(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?M:x,i):e.removeEventListener(t,i?M:x,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function x(e){this.l[e.type+!1](o.event?o.event(e):e)}function M(e){this.l[e.type+!0](o.event?o.event(e):e)}function P(e,t,n,r,i,a,s,u,l){var c,d,f,h,v,m,g,_,E,C,D,S,T,O=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=o.__b)&&c(t);try{e:if("function"==typeof O){if(_=t.props,E=(c=O.contextType)&&r[c.__c],C=c?E?E.props.value:c.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in O&&O.prototype.render?t.__c=d=new O(_,C):(t.__c=d=new b(_,C),d.constructor=O,d.render=U),E&&E.sub(d),d.props=_,d.state||(d.state={}),d.context=C,d.__n=r,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=O.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,O.getDerivedStateFromProps(_,d.__s))),h=d.props,v=d.state,f)null==O.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==O.getDerivedStateFromProps&&_!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,C),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,C)||t.__v===n.__v){d.props=_,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,C),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,v,m)}))}if(d.context=C,d.props=_,d.__v=t,d.__P=e,D=o.__r,S=0,"prototype"in O&&O.prototype.render)d.state=d.__s,d.__d=!1,D&&D(t),c=d.render(d.props,d.state,d.context);else do{d.__d=!1,D&&D(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(r=p(p({},r),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,v)),T=null!=c&&c.type===y&&null==c.key?c.props.children:c,w(e,Array.isArray(T)?T:[T],t,n,r,i,a,s,u,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),g&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=j(n.__e,t,n,r,i,a,s,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=u,t.__h=!!l,a[a.indexOf(u)]=null),o.__e(e,t,n)}}function N(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function j(e,t,n,o,i,a,s,u){var l,d,f,p=n.props,v=t.props,m=t.type,g=0;if("svg"===m&&(i=!0),null!=a)for(;g<a.length;g++)if((l=a[g])&&"setAttribute"in l==!!m&&(m?l.localName===m:3===l.nodeType)){e=l,a[g]=null;break}if(null==e){if(null===m)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,v.is&&v),a=null,u=!1}if(null===m)p===v||u&&e.data===v||(e.data=v);else{if(a=a&&r.call(e.childNodes),d=(p=n.props||c).dangerouslySetInnerHTML,f=v.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(k(e,v,p,i,u),f)t.__k=[];else if(g=t.props.children,w(e,Array.isArray(g)?g:[g],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&_(n,0),u),null!=a)for(g=a.length;g--;)null!=a[g]&&h(a[g]);u||("value"in v&&void 0!==(g=v.value)&&(g!==e.value||"progress"===m&&!g||"option"===m&&g!==p.value)&&I(e,"value",g,p.value,!1),"checked"in v&&void 0!==(g=v.checked)&&g!==e.checked&&I(e,"checked",g,p.checked,!1))}return e}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function A(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&A(r[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function V(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],P(t,e=(!i&&n||t).__k=v(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),N(s,e)}function B(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(C)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=d.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),C(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},b.prototype.render=y,a=[],D.__r=0,u=0;var L,W,F,z=[],Z=[],q=o.__b,G=o.__r,Y=o.diffed,K=o.__c,X=o.unmount;function $(){for(var e;e=z.shift();)if(e.__P)try{e.__H.__h.forEach(Q),e.__H.__h.forEach(ee),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){L=null,q&&q(e)},o.__r=function(e){G&&G(e),0;var t=(L=e.__c).__H;t&&(W===L?(t.__h=[],L.__h=[],t.__.forEach((function(e){e.__V=Z,e.u=void 0}))):(t.__h.forEach(Q),t.__h.forEach(ee),t.__h=[])),W=L},o.diffed=function(e){Y&&Y(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==z.push(t)&&F===o.requestAnimationFrame||((F=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),J&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);J&&(t=requestAnimationFrame(n))})($)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==Z&&(e.__=e.__V),e.u=void 0,e.__V=Z}))),W=L=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Q),e.__h=e.__h.filter((function(e){return!e.__||ee(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),K&&K(e,t)},o.unmount=function(e){X&&X(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Q(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var J="function"==typeof requestAnimationFrame;function Q(e){var t=L,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),L=t}function ee(e){var t=L;e.__c=e.__(),L=t}function te(e,t){for(var n in t)e[n]=t[n];return e}function ne(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 re(e){this.props=e}(re.prototype=new b).isPureReactComponent=!0,re.prototype.shouldComponentUpdate=function(e,t){return ne(this.props,e)||ne(this.state,t)};var oe=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),oe&&oe(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var ie=o.__e;o.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ie(e,t,n,r)};var ae=o.unmount;function se(){this.__u=0,this.t=null,this.__b=null}function ue(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function le(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),ae&&ae(e)},(se.prototype=new b).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=ue(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=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}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},se.prototype.componentWillUnmount=function(){this.t=[]},se.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=te({},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 o=t.__a&&v(y,null,e.fallback);return o&&(o.__h=null),[v(y,null,t.__a?null:e.children),o]};var ce=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 de(e){return this.getChildContext=function(){return e.context},e.children}function fe(e){var t=this,n=e.i;t.componentWillUnmount=function(){V(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)}}),V(v(de,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function pe(e,t){var n=v(fe,{__v:e,i:t});return n.containerInfo=t,n}(le.prototype=new b).__a=function(e){var t=this,n=ue(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ce(t,e,r)):o()};n?n(i):i()}},le.prototype.render=function(e){this.u=null,this.o=new Map;var t=T(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},le.prototype.componentDidUpdate=le.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ce(e,n,t)}))};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ve=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,me="undefined"!=typeof document,ge=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ye=o.event;function be(){}function _e(){return this.cancelBubble}function Ee(){return this.defaultPrevented}o.event=function(e){return ye&&(e=ye(e)),e.persist=be,e.isPropagationStopped=_e,e.isDefaultPrevented=Ee,e.nativeEvent=e};var Ce={configurable:!0,get:function(){return this.class}},De=o.vnode;o.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a=n[i];me&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!ge(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ve.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=T(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=T(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&&(Ce.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ce))}e.$$typeof=he,De&&De(e)};var we=o.__r;o.__r=function(e){we&&we(e),e.__c};var Se="undefined"!==typeof globalThis?globalThis:window;function Te(e){e();var t=o.debounceRendering,n=[];function r(e){n.push(e)}o.debounceRendering=r,V(v(Oe,{}),document.createElement("div"));while(n.length)n.shift()();o.debounceRendering=t}Se.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):Se.FullCalendarVDom={Component:b,createElement:v,render:V,createRef:g,Fragment:y,createContext:ke,createPortal:pe,flushSync:Te,unmountComponentAtNode:Re};var Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l["b"])(t,e),t.prototype.render=function(){return v("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(b);function ke(e){var t=B(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var o=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&o.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){o.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){o.splice(o.indexOf(e),1),t&&t.call(e)}}}return r},t}function Re(e){V(null,e)}var Ie=n("d610"),xe=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.isRendering=!1,r.isRendered=!1,r.currentClassNames=[],r.customContentRenderId=0,r.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":r.renderRunner.tryDrain()}},r.handleData=function(e){r.currentData=e,r.renderRunner.request(e.calendarOptions.rerenderDelay)},r.handleRenderRequest=function(){if(r.isRendering){r.isRendered=!0;var e=r.currentData;Object(Ie["Bb"])((function(){Object(Ie["tc"])(Object(Ie["mb"])(Ie["g"],{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,o,i){return r.setClassNames(t),r.setHeight(n),Object(Ie["mb"])(Ie["h"].Provider,{value:r.customContentRenderId},Object(Ie["mb"])(Ie["e"],Object(l["a"])({isHeightAuto:o,forPrint:i},e)))})),r.el)}))}else r.isRendered&&(r.isRendered=!1,Object(Ie["Bc"])(r.el),r.setClassNames([]),r.setHeight(""))},r.el=t,r.renderRunner=new Ie["p"](r.handleRenderRequest),new Ie["f"]({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return Object(l["b"])(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){var t=this;Object(Ie["Bb"])((function(){e.prototype.updateSize.call(t)}))},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Object(Ie["bc"])(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n<r.length;n++){var o=r[n];t.remove(o)}for(var i=0,a=e;i<a.length;i++){o=a[i];t.add(o)}this.currentClassNames=e}},t.prototype.setHeight=function(e){Object(Ie["V"])(this.el,"height",e)},t}(Ie["d"]);
|
||
/*!
|
||
FullCalendar v5.11.2
|
||
Docs & License: https://fullcalendar.io/
|
||
(c) 2022 Adam Shaw
|
||
*/},"9ab4":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));var r=function(e,t){return r=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])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},d610:function(e,t,n){"use strict";n.d(t,"v",(function(){return u})),n.d(t,"mb",(function(){return i})),n.d(t,"rb",(function(){return s})),n.d(t,"Bb",(function(){return d})),n.d(t,"tc",(function(){return a})),n.d(t,"Bc",(function(){return f})),n.d(t,"a",(function(){return Ot})),n.d(t,"b",(function(){return mo})),n.d(t,"c",(function(){return Rs})),n.d(t,"d",(function(){return ar})),n.d(t,"e",(function(){return ka})),n.d(t,"f",(function(){return Xi})),n.d(t,"g",(function(){return xa})),n.d(t,"h",(function(){return Io})),n.d(t,"i",(function(){return _o})),n.d(t,"j",(function(){return Zo})),n.d(t,"k",(function(){return Ss})),n.d(t,"l",(function(){return Os})),n.d(t,"m",(function(){return Ba})),n.d(t,"n",(function(){return Wa})),n.d(t,"o",(function(){return Fa})),n.d(t,"p",(function(){return qi})),n.d(t,"q",(function(){return ba})),n.d(t,"r",(function(){return uo})),n.d(t,"s",(function(){return ro})),n.d(t,"t",(function(){return sr})),n.d(t,"u",(function(){return _s})),n.d(t,"w",(function(){return va})),n.d(t,"x",(function(){return Hs})),n.d(t,"y",(function(){return Ds})),n.d(t,"z",(function(){return Ua})),n.d(t,"A",(function(){return ao})),n.d(t,"B",(function(){return os})),n.d(t,"C",(function(){return Ro})),n.d(t,"D",(function(){return so})),n.d(t,"E",(function(){return rs})),n.d(t,"F",(function(){return sa})),n.d(t,"G",(function(){return ys})),n.d(t,"H",(function(){return za})),n.d(t,"I",(function(){return Ar})),n.d(t,"J",(function(){return Es})),n.d(t,"K",(function(){return po})),n.d(t,"L",(function(){return Ao})),n.d(t,"M",(function(){return xs})),n.d(t,"N",(function(){return lo})),n.d(t,"O",(function(){return J})),n.d(t,"P",(function(){return We})),n.d(t,"Q",(function(){return $})),n.d(t,"R",(function(){return B})),n.d(t,"S",(function(){return U})),n.d(t,"T",(function(){return Kn})),n.d(t,"U",(function(){return b})),n.d(t,"V",(function(){return _})),n.d(t,"W",(function(){return Ye})),n.d(t,"X",(function(){return ha})),n.d(t,"Y",(function(){return la})),n.d(t,"Z",(function(){return lr})),n.d(t,"ab",(function(){return Nn})),n.d(t,"bb",(function(){return $e})),n.d(t,"cb",(function(){return Fr})),n.d(t,"db",(function(){return xn})),n.d(t,"eb",(function(){return G})),n.d(t,"fb",(function(){return Vs})),n.d(t,"gb",(function(){return Jr})),n.d(t,"hb",(function(){return Qr})),n.d(t,"ib",(function(){return _a})),n.d(t,"jb",(function(){return xr})),n.d(t,"kb",(function(){return x})),n.d(t,"lb",(function(){return Ue})),n.d(t,"nb",(function(){return Bt})),n.d(t,"ob",(function(){return Ee})),n.d(t,"pb",(function(){return St})),n.d(t,"qb",(function(){return Eo})),n.d(t,"sb",(function(){return cn})),n.d(t,"tb",(function(){return te})),n.d(t,"ub",(function(){return Pr})),n.d(t,"vb",(function(){return ee})),n.d(t,"wb",(function(){return j})),n.d(t,"xb",(function(){return v})),n.d(t,"yb",(function(){return m})),n.d(t,"zb",(function(){return H})),n.d(t,"Ab",(function(){return At})),n.d(t,"Cb",(function(){return Je})),n.d(t,"Db",(function(){return Qe})),n.d(t,"Eb",(function(){return to})),n.d(t,"Fb",(function(){return Vr})),n.d(t,"Gb",(function(){return Br})),n.d(t,"Hb",(function(){return Yn})),n.d(t,"Ib",(function(){return C})),n.d(t,"Jb",(function(){return Dn})),n.d(t,"Kb",(function(){return ua})),n.d(t,"Lb",(function(){return E})),n.d(t,"Mb",(function(){return Mr})),n.d(t,"Nb",(function(){return Ut})),n.d(t,"Ob",(function(){return jn})),n.d(t,"Pb",(function(){return Mn})),n.d(t,"Qb",(function(){return gs})),n.d(t,"Rb",(function(){return ms})),n.d(t,"Sb",(function(){return w})),n.d(t,"Tb",(function(){return ca})),n.d(t,"Ub",(function(){return En})),n.d(t,"Vb",(function(){return jt})),n.d(t,"Wb",(function(){return ya})),n.d(t,"Xb",(function(){return ga})),n.d(t,"Yb",(function(){return hn})),n.d(t,"Zb",(function(){return Ir})),n.d(t,"ac",(function(){return fa})),n.d(t,"bc",(function(){return tt})),n.d(t,"cc",(function(){return Ga})),n.d(t,"dc",(function(){return Vn})),n.d(t,"ec",(function(){return qa})),n.d(t,"fc",(function(){return ln})),n.d(t,"gc",(function(){return ke})),n.d(t,"hc",(function(){return Se})),n.d(t,"ic",(function(){return nt})),n.d(t,"jc",(function(){return ze})),n.d(t,"kc",(function(){return Ca})),n.d(t,"lc",(function(){return rn})),n.d(t,"mc",(function(){return Rr})),n.d(t,"nc",(function(){return V})),n.d(t,"oc",(function(){return A})),n.d(t,"pc",(function(){return yn})),n.d(t,"qc",(function(){return gn})),n.d(t,"rc",(function(){return tn})),n.d(t,"sc",(function(){return h})),n.d(t,"uc",(function(){return ks})),n.d(t,"vc",(function(){return vs})),n.d(t,"wc",(function(){return bo})),n.d(t,"xc",(function(){return _n})),n.d(t,"yc",(function(){return Tn})),n.d(t,"zc",(function(){return ue})),n.d(t,"Ac",(function(){return Zn})),n.d(t,"Cc",(function(){return I})),n.d(t,"Dc",(function(){return Ke}));n("f54b");var r=n("9ab4");if("undefined"===typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var o=FullCalendarVDom.Component,i=FullCalendarVDom.createElement,a=FullCalendarVDom.render,s=FullCalendarVDom.createRef,u=FullCalendarVDom.Fragment,l=FullCalendarVDom.createContext,c=FullCalendarVDom.createPortal,d=FullCalendarVDom.flushSync,f=FullCalendarVDom.unmountComponentAtNode,p=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function h(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(m(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function m(e,t){var n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function g(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a+=1)r.push(i[a]);return r}var y=/(top|left|right|bottom|width|height)$/i;function b(e,t){for(var n in t)_(e,n,t[n])}function _(e,t,n){null==n?e.style[t]="":"number"===typeof n&&y.test(t)?e.style[t]=n+"px":e.style[t]=n}function E(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function C(e){return e.getRootNode?e.getRootNode():document}var D=0;function w(){return D+=1,"fc-dom-"+D}function S(e){e.preventDefault()}function T(e,t){return function(n){var r=v(n.target,e);r&&t.call(r,n,r)}}function O(e,t,n,r){var o=T(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}function k(e,t,n,r){var o;return O(e,"mouseover",t,(function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}var R=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function I(e,t){var n=function(r){t(r),R.forEach((function(t){e.removeEventListener(t,n)}))};R.forEach((function(t){e.addEventListener(t,n)}))}function x(e){return Object(r["a"])({onClick:e},M(e))}function M(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var P=0;function N(){return P+=1,String(P)}function j(){document.body.classList.add("fc-not-allowed")}function H(){document.body.classList.remove("fc-not-allowed")}function A(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",S)}function U(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",S)}function V(e){e.addEventListener("contextmenu",S)}function B(e){e.removeEventListener("contextmenu",S)}function L(e){var t,n,r=[],o=[];for("string"===typeof e?o=e.split(/\s*,\s*/):"function"===typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)n=o[t],"string"===typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"===typeof n&&r.push({func:n});return r}function W(e,t,n){var r,o;for(r=0;r<n.length;r+=1)if(o=F(e,t,n[r]),o)return o;return 0}function F(e,t,n){return n.func?n.func(e,t):z(e[n.field],t[n.field])*(n.order||1)}function z(e,t){return e||t?null==t?-1:null==e?1:"string"===typeof e||"string"===typeof t?String(e).localeCompare(String(t)):e-t:0}function Z(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function q(e,t,n){return"function"===typeof e?e.apply(void 0,t):"string"===typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function G(e,t){return e-t}function Y(e){return e%1===0}function K(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var X=["sun","mon","tue","wed","thu","fri","sat"];function $(e,t){var n=ge(e);return n[2]+=7*t,ye(n)}function J(e,t){var n=ge(e);return n[2]+=t,ye(n)}function Q(e,t){var n=ge(e);return n[6]+=t,ye(n)}function ee(e,t){return te(e,t)/7}function te(e,t){return(t.valueOf()-e.valueOf())/864e5}function ne(e,t){return(t.valueOf()-e.valueOf())/36e5}function re(e,t){return(t.valueOf()-e.valueOf())/6e4}function oe(e,t){return(t.valueOf()-e.valueOf())/1e3}function ie(e,t){var n=ue(e),r=ue(t);return{years:0,months:0,days:Math.round(te(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function ae(e,t){var n=se(e,t);return null!==n&&n%7===0?n/7:null}function se(e,t){return _e(e)===_e(t)?Math.round(te(e,t)):null}function ue(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function le(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function ce(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function de(e){return ye([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function fe(e,t,n){var r=e.getUTCFullYear(),o=pe(e,r,t,n);if(o<1)return pe(e,r-1,t,n);var i=pe(e,r+1,t,n);return i>=1?Math.min(o,i):o}function pe(e,t,n,r){var o=ye([t,0,1+he(t,n,r)]),i=ue(e),a=Math.round(te(o,i));return Math.floor(a/7)+1}function he(e,t,n){var r=7+t-n,o=(7+ye([e,0,r]).getUTCDay()-t)%7;return-o+r-1}function ve(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function me(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 ge(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ye(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function be(e){return!isNaN(e.valueOf())}function _e(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Ee(e,t,n,r){return{instanceId:N(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var Ce=Object.prototype.hasOwnProperty;function De(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=0;i-=1){var a=e[i][r];if("object"===typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=De(o))}for(i=e.length-1;i>=0;i-=1){var s=e[i];for(var u in s)u in n||(n[u]=s[u])}return n}function we(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Se(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Te(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}function Oe(e){var t=[];for(var n in e)t.push(e[n]);return t}function ke(e,t){if(e===t)return!0;for(var n in e)if(Ce.call(e,n)&&!(n in t))return!1;for(var n in t)if(Ce.call(t,n)&&e[n]!==t[n])return!1;return!0}function Re(e,t){var n=[];for(var r in e)Ce.call(e,r)&&(r in t||n.push(r));for(var r in t)Ce.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Ie(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!xe(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function xe(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Me(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var a=e[i];void 0!==a&&o.push(a)}return o}function Pe(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var a=e.allDay;return null==a&&(a=t,null==a&&(a=i.allDayGuess,null==a&&(a=!1))),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}function Ne(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,a=e.defs,s=e.instances;for(var u in s=we(s,(function(e){return!a[e.defId].recurringDef})),a){var l=a[u];if(l.recurringDef){var c=l.recurringDef.duration;c||(c=l.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=je(l,c,t,r,o.recurringTypes),f=0,p=d;f<p.length;f++){var h=p[f],v=Ee(u,{start:h,end:r.add(h,c)});s[v.instanceId]=v}}}return{defs:a,instances:s}}function je(e,t,n,r,o){var i=o[e.recurringDef.typeId],a=i.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(ue)),a}var He=["years","months","days","milliseconds"],Ae=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ue(e,t){var n;return"string"===typeof e?Ve(e):"object"===typeof e&&e?Be(e):"number"===typeof e?Be((n={},n[t||"milliseconds"]=e,n)):null}function Ve(e){var t=Ae.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function Be(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Le(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function We(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Fe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function ze(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Ze(e){return Ge(e)/365}function qe(e){return Ge(e)/30}function Ge(e){return Ye(e)/864e5}function Ye(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Ke(e,t){for(var n=null,r=0;r<He.length;r+=1){var o=He[r];if(t[o]){var i=e[o]/t[o];if(!Y(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function Xe(e){var 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 $e(e,t,n){void 0===n&&(n=!1);var 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",et(t,!0)))),r}function Je(e){return e.toISOString().replace(/T.*$/,"")}function Qe(e){return Z(e.getUTCHours(),2)+":"+Z(e.getUTCMinutes(),2)+":"+Z(e.getUTCSeconds(),2)}function et(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+Z(o,2)+":"+Z(i,2):"GMT"+n+o+(i?":"+Z(i,2):"")}function tt(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function nt(e,t,n){var r,o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r){if(!tt(r,i)){n&&n(o);var s=e.apply(this,i);t&&t(s,o)||(o=s)}}else o=e.apply(this,i);return r=i,o}}function rt(e,t,n){var r,o,i=this;return function(a){if(r){if(!ke(r,a)){n&&n(o);var s=e.call(i,a);t&&t(s,o)||(o=s)}}else o=e.call(i,a);return r=a,o}}var ot={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},it={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},at=/\s*([ap])\.?m\.?/i,st=/,/g,ut=/\s+/g,lt=/\u200e/g,ct=/UTC|GMT/,dt=function(){function e(e){var t={},n={},r=0;for(var o in e)o in ot?(n[o]=e[o],r=Math.max(ot[o],r)):(t[o]=e[o],o in it&&(r=Math.max(it[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=nt(ft)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var o=this,i=o.standardDateProps,a=o.extendedSettings,s=yt(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);var u=s;!(u>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(u=1);var l=this.format(e,n),c=this.format(t,n);if(l===c)return l;var d=bt(i,u),f=ft(d,a,n),p=f(e),h=f(t),v=_t(l,p,c,h),m=a.separator||r||n.defaultSeparator||"";return v?v.before+p+m+h+v.after:l+m+c},e.prototype.getLargestUnit=function(){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"}},e}();function ft(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return et(e.timeZoneOffset)}:0===r&&t.week?function(e){return gt(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:pt(e,t,n)}function pt(e,t,n){e=Object(r["a"])({},e),t=Object(r["a"])({},t),ht(e,t),e.timeZone="UTC";var o,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=Object(r["a"])({},e);delete a.minute,o=new Intl.DateTimeFormat(n.locale.codes,a)}return function(r){var a,s=r.marker;a=o&&!s.getUTCMinutes()?o:i;var u=a.format(s);return vt(u,r,e,t,n)}}function ht(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function vt(e,t,n,r,o){return e=e.replace(lt,""),"short"===n.timeZoneName&&(e=mt(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":et(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(st,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(at,"").trim():"narrow"===r.meridiem?e=e.replace(at,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(at,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(at,(function(e){return e.toLocaleLowerCase()}))),e=e.replace(ut," "),e=e.trim(),e}function mt(e,t){var n=!1;return e=e.replace(ct,(function(){return n=!0,t})),n||(e+=" "+t),e}function gt(e,t,n,r,o){var i=[];return"long"===o?i.push(n):"short"!==o&&"narrow"!==o||i.push(t),"long"!==o&&"short"!==o||i.push(" "),i.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&i.reverse(),i.join("")}function yt(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:_e(e)!==_e(t)?1:0}function bt(e,t){var n={};for(var r in e)(!(r in it)||it[r]<=t)&&(n[r]=e[r]);return n}function _t(e,t,n,r){var o=0;while(o<e.length){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;var s=e.substr(o),u=0;while(u<n.length){var l=n.indexOf(r,u);if(-1===l)break;var c=n.substr(0,l);u=l+r.length;var d=n.substr(u);if(a===c&&s===d)return{before:a,after:s}}}return null}function Et(e,t){var 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 Ct(e,t,n,r){var o=Et(e,n.calendarSystem),i=t?Et(t,n.calendarSystem):null;return{date:o,start:o,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var Dt=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,Ct(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,Ct(e,t,n,r))},e}(),wt=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(Ct(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(Ct(e,t,n,r))},e}();function St(e){return"object"===typeof e&&e?new dt(e):"string"===typeof e?new Dt(e):"function"===typeof e?new wt(e):null}var Tt={navLinkDayClick:jt,navLinkWeekClick:jt,duration:Ue,bootstrapFontAwesome:jt,buttonIcons:jt,customButtons:jt,defaultAllDayEventDuration:Ue,defaultTimedEventDuration:Ue,nextDayThreshold:Ue,scrollTime:Ue,scrollTimeReset:Boolean,slotMinTime:Ue,slotMaxTime:Ue,dayPopoverFormat:St,slotDuration:Ue,snapDuration:Ue,headerToolbar:jt,footerToolbar:jt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:St,dayHeaderClassNames:jt,dayHeaderContent:jt,dayHeaderDidMount:jt,dayHeaderWillUnmount:jt,dayCellClassNames:jt,dayCellContent:jt,dayCellDidMount:jt,dayCellWillUnmount:jt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:jt,weekNumbers:Boolean,weekNumberClassNames:jt,weekNumberContent:jt,weekNumberDidMount:jt,weekNumberWillUnmount:jt,editable:Boolean,viewClassNames:jt,viewDidMount:jt,viewWillUnmount:jt,nowIndicator:Boolean,nowIndicatorClassNames:jt,nowIndicatorContent:jt,nowIndicatorDidMount:jt,nowIndicatorWillUnmount:jt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:jt,locale:jt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:jt,eventOrder:L,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:jt,contentHeight:jt,direction:String,weekNumberFormat:St,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:jt,initialDate:jt,now:jt,eventDataTransform:jt,stickyHeaderDates:jt,stickyFooterScrollbar:jt,viewHeight:jt,defaultAllDay:Boolean,eventSourceFailure:jt,eventSourceSuccess:jt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:jt,eventConstraint:jt,eventAllow:jt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:jt,eventContent:jt,eventDidMount:jt,eventWillUnmount:jt,selectConstraint:jt,selectOverlap:jt,selectAllow:jt,droppable:Boolean,unselectCancel:String,slotLabelFormat:jt,slotLaneClassNames:jt,slotLaneContent:jt,slotLaneDidMount:jt,slotLaneWillUnmount:jt,slotLabelClassNames:jt,slotLabelContent:jt,slotLabelDidMount:jt,slotLabelWillUnmount:jt,dayMaxEvents:jt,dayMaxEventRows:jt,dayMinWidth:Number,slotLabelInterval:Ue,allDayText:String,allDayClassNames:jt,allDayContent:jt,allDayDidMount:jt,allDayWillUnmount:jt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:St,rerenderDelay:Number,moreLinkText:jt,moreLinkHint:jt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:jt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ue,hiddenDays:jt,monthMode:Boolean,fixedWeekCount:Boolean,validRange:jt,visibleRange:jt,titleFormat:jt,eventInteractive:Boolean,noEventsText:String,viewHint:jt,navLinkHint:jt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:jt,moreLinkClassNames:jt,moreLinkContent:jt,moreLinkDidMount:jt,moreLinkWillUnmount:jt},Ot={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},kt={datesSet:jt,eventsSet:jt,eventAdd:jt,eventChange:jt,eventRemove:jt,windowResize:jt,eventClick:jt,eventMouseEnter:jt,eventMouseLeave:jt,select:jt,unselect:jt,loading:jt,_unmount:jt,_beforeprint:jt,_afterprint:jt,_noEventDrop:jt,_noEventResize:jt,_resize:jt,_scrollRequest:jt},Rt={buttonText:jt,buttonHints:jt,views:jt,plugins:jt,initialEvents:jt,events:jt,eventSources:jt},It={headerToolbar:xt,footerToolbar:xt,buttonText:xt,buttonHints:xt,buttonIcons:xt,dateIncrement:xt};function xt(e,t){return"object"===typeof e&&"object"===typeof t&&e&&t?ke(e,t):e===t}var Mt={type:String,component:jt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:jt,usesMinMaxTime:Boolean,classNames:jt,content:jt,didMount:jt,willUnmount:jt};function Pt(e){return De(e,It)}function Nt(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function jt(e){return e}function Ht(e,t,n,r){for(var o=Bt(),i=nn(n),a=0,s=e;a<s.length;a++){var u=s[a],l=en(u,t,n,r,i);l&&At(l,o)}return o}function At(e,t){return void 0===t&&(t=Bt()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ut(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=Wt(e,(function(e){return Vt(r,e)}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return Bt()}function Vt(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Bt(){return{defs:{},instances:{}}}function Lt(e,t){return{defs:Object(r["a"])(Object(r["a"])({},e.defs),t.defs),instances:Object(r["a"])(Object(r["a"])({},e.instances),t.instances)}}function Wt(e,t){var n=we(e.defs,t),r=we(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function Ft(e,t){var n=e.defs,r=e.instances,o={},i={};for(var a in n)t.defs[a]||(o[a]=n[a]);for(var s in r)!t.instances[s]&&o[r[s].defId]&&(i[s]=r[s]);return{defs:o,instances:i}}function zt(e,t){return Array.isArray(e)?Ht(e,null,t,!0):"object"===typeof e&&e?Ht([e],null,t,!0):null!=e?String(e):null}function Zt(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}var qt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:jt,overlap:jt,allow:jt,className:Zt,classNames:Zt,color:String,backgroundColor:String,borderColor:String,textColor:String},Gt={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Yt(e,t){var n=zt(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Kt(e){return e.reduce(Xt,Gt)}function Xt(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)}}var $t={id:String,groupId:String,title:String,url:String,interactive:Boolean},Jt={start:jt,end:jt,date:jt,allDay:Boolean},Qt=Object(r["a"])(Object(r["a"])(Object(r["a"])({},$t),Jt),{extendedProps:jt});function en(e,t,n,r,o){void 0===o&&(o=nn(n));var i=tn(e,n,o),a=i.refined,s=i.extra,u=an(t,n),l=Pe(a,u,n.dateEnv,n.pluginHooks.recurringTypes);if(l){var c=rn(a,s,t?t.sourceId:"",l.allDay,Boolean(l.duration),n);return c.recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:c,instance:null}}var d=on(a,u,n,r);if(d){c=rn(a,s,t?t.sourceId:"",d.allDay,d.hasEnd,n);var f=Ee(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return{def:c,instance:f}}return null}function tn(e,t,n){return void 0===n&&(n=nn(t)),Nt(e,n)}function nn(e){return Object(r["a"])(Object(r["a"])(Object(r["a"])({},qt),Qt),e.pluginHooks.eventRefiners)}function rn(e,t,n,o,i,a){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:N(),sourceId:n,allDay:o,hasEnd:i,interactive:e.interactive,ui:Yt(e,a),extendedProps:Object(r["a"])(Object(r["a"])({},e.extendedProps||{}),t)},u=0,l=a.pluginHooks.eventDefMemberAdders;u<l.length;u++){var c=l[u];Object(r["a"])(s,c(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function on(e,t,n,r){var o,i,a=e.allDay,s=null,u=!1,l=null,c=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(c),o)s=o.marker;else if(!r)return null;return null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end)),null==a&&(a=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified)),a&&s&&(s=ue(s)),i&&(l=i.marker,a&&(l=ue(l)),s&&l<=s&&(l=null)),l?u=!0:r||(u=n.options.forceEventDuration||!1,l=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:a,hasEnd:u,range:{start:s,end:l},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}function an(e,t){var n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function sn(e){var t=Math.floor(te(e.start,e.end))||1,n=ue(e.start),r=J(n,t);return{start:n,end:r}}function un(e,t){void 0===t&&(t=Ue(0));var n=null,r=null;if(e.end){r=ue(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=Ye(t)&&(r=J(r,1))}return e.start&&(n=ue(e.start),r&&r<=n&&(r=J(n,1))),{start:n,end:r}}function ln(e){var t=un(e);return te(t.start,t.end)>1}function cn(e,t,n,r){return"year"===r?Ue(n.diffWholeYears(e,t),"year"):"month"===r?Ue(n.diffWholeMonths(e,t),"month"):ie(e,t)}function dn(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function fn(e,t){var n,r,o=[],i=t.start;for(e.sort(pn),n=0;n<e.length;n+=1)r=e[n],r.start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function pn(e,t){return e.start.valueOf()-t.start.valueOf()}function hn(e,t){var n=e.start,r=e.end,o=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)&&(o={start:n,end:r}),o}function vn(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function mn(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function gn(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function yn(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function bn(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function _n(e,t,n,r){var o={},i={},a={},s=[],u=[],l=wn(e.defs,t);for(var c in e.defs){var d=e.defs[c],f=l[d.defId];"inverse-background"===f.display&&(d.groupId?(o[d.groupId]=[],a[d.groupId]||(a[d.groupId]=d)):i[c]=[])}for(var p in e.instances){var h=e.instances[p],v=(d=e.defs[h.defId],f=l[d.defId],h.range),m=!d.allDay&&r?un(v,r):v,g=hn(m,n);g&&("inverse-background"===f.display?d.groupId?o[d.groupId].push(g):i[h.defId].push(g):"none"!==f.display&&("background"===f.display?s:u).push({def:d,ui:f,instance:h,range:g,isStart:m.start&&m.start.valueOf()===g.start.valueOf(),isEnd:m.end&&m.end.valueOf()===g.end.valueOf()}))}for(var y in o)for(var b=o[y],_=fn(b,n),E=0,C=_;E<C.length;E++){var D=C[E];d=a[y],f=l[d.defId];s.push({def:d,ui:f,instance:null,range:D,isStart:!1,isEnd:!1})}for(var c in i){b=i[c],_=fn(b,n);for(var w=0,S=_;w<S.length;w++){D=S[w];s.push({def:e.defs[c],ui:l[c],instance:null,range:D,isStart:!1,isEnd:!1})}}return{bg:s,fg:u}}function En(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function Cn(e,t){e.fcSeg=t}function Dn(e){return e.fcSeg||e.parentNode.fcSeg||null}function wn(e,t){return Se(e,(function(e){return Sn(e,t)}))}function Sn(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Kt(n)}function Tn(e,t){var n=e.map(On);return n.sort((function(e,n){return W(e,n,t)})),n.map((function(e){return e._seg}))}function On(e){var t=e.eventRange,n=t.def,o=t.instance?t.instance.range:t.range,i=o.start?o.start.valueOf():0,a=o.end?o.end.valueOf():0;return Object(r["a"])(Object(r["a"])(Object(r["a"])({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function kn(e,t){for(var n=t.pluginHooks,r=n.isDraggableTransformers,o=e.eventRange,i=o.def,a=o.ui,s=a.startEditable,u=0,l=r;u<l.length;u++){var c=l[u];s=c(s,i,a,t)}return s}function Rn(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function In(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function xn(e,t,n,r,o,i,a){var s=n.dateEnv,u=n.options,l=u.displayEventTime,c=u.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==l&&(l=!1!==r),null==c&&(c=!1!==o);var p=f.range.start,h=f.range.end,v=i||e.start||e.eventRange.range.start,m=a||e.end||e.eventRange.range.end,g=ue(p).valueOf()===ue(v).valueOf(),y=ue(Q(h,-1)).valueOf()===ue(Q(m,-1)).valueOf();return l&&!d.allDay&&(g||y)?(v=g?p:v,m=y?h:m,c&&d.hasEnd?s.formatRange(v,m,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):s.format(v,t,{forcedTzo:i?null:f.forcedStartTzo})):""}function Mn(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&yn(t,r.start)}}function Pn(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Nn(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function jn(e,t){var n=e.eventRange,r=n.def,o=n.instance,i=r.url;if(i)return{href:i};var a=t.emitter,s=t.options,u=s.eventInteractive;return null==u&&(u=r.interactive,null==u&&(u=Boolean(a.hasHandlers("eventClick")))),u?M((function(e){a.trigger("eventClick",{el:e.target,event:new sr(t,r,o),jsEvent:e,view:t.viewApi})})):{}}var Hn={start:jt,end:jt,allDay:Boolean};function An(e,t,n){var r=Un(e,t),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function Un(e,t){var n=Nt(e,Hn),o=n.refined,i=n.extra,a=o.start?t.createMarkerMeta(o.start):null,s=o.end?t.createMarkerMeta(o.end):null,u=o.allDay;return null==u&&(u=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object(r["a"])({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:u},i)}function Vn(e,t){return vn(e.range,t.range)&&e.allDay===t.allDay&&Bn(e,t)}function Bn(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function Ln(e,t){return Object(r["a"])(Object(r["a"])({},Fn(e.range,t,e.allDay)),{allDay:e.allDay})}function Wn(e,t,n){return Object(r["a"])(Object(r["a"])({},Fn(e,t,n)),{timeZone:t.timeZone})}function Fn(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function zn(e,t,n){var r=tn({editable:!1},n),o=rn(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:Sn(o,t),instance:Ee(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Zn(e,t,n){n.emitter.trigger("select",Object(r["a"])(Object(r["a"])({},Gn(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function qn(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function Gn(e,t){for(var n={},o=0,i=t.pluginHooks.dateSpanTransforms;o<i.length;o++){var a=i[o];Object(r["a"])(n,a(e,t))}return Object(r["a"])(n,Ln(e,t.dateEnv)),n}function Yn(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=ue(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function Kn(e,t,n,r){var o=wn(e.defs,t),i=Bt();for(var a in e.defs){var s=e.defs[a];i.defs[a]=Xn(s,o[a],n,r)}for(var u in e.instances){var l=e.instances[u];s=i.defs[l.defId];i.instances[u]=$n(l,s,o[l.defId],n,r)}return i}function Xn(e,t,n,o){var i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);var a=Object(r["a"])(Object(r["a"])(Object(r["a"])({},e),i),{ui:Object(r["a"])(Object(r["a"])({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=Object(r["a"])(Object(r["a"])({},a.extendedProps),n.extendedProps));for(var s=0,u=o.pluginHooks.eventDefMutationAppliers;s<u.length;s++){var l=u[s];l(a,n,o)}return!a.hasEnd&&o.options.forceEventDuration&&(a.hasEnd=!0),a}function $n(e,t,n,o,i){var a=i.dateEnv,s=o.standardProps&&!0===o.standardProps.allDay,u=o.standardProps&&!1===o.standardProps.hasEnd,l=Object(r["a"])({},e);return s&&(l.range=sn(l.range)),o.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,o.datesDelta),end:a.add(l.range.end,o.datesDelta)}),o.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,o.startDelta),end:l.range.end}),o.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,o.endDelta)}),u&&(l.range={start:l.range.start,end:Yn(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:ue(l.range.start),end:ue(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Yn(t.allDay,l.range.start,i)),l}var Jn=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),Qn={id:String,defaultAllDay:Boolean,url:String,format:String,events:jt,eventDataTransform:jt,success:jt,failure:jt};function er(e,t,n){var r;if(void 0===n&&(n=tr(t)),"string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){var o=Nt(r,n),i=o.refined,a=o.extra,s=nr(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:N(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Yt(i,t),extendedProps:a}}return null}function tr(e){return Object(r["a"])(Object(r["a"])(Object(r["a"])({},qt),Qn),e.pluginHooks.eventSourceRefiners)}function nr(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var o=n[r],i=o.parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function rr(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function or(e,t){var n=e.initialDate;return null!=n?t.createMarker(n):ir(e.now,t)}function ir(e,t){return"function"===typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var ar=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];(t=this.currentDataManager.emitter).trigger.apply(t,Object(r["c"])([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var 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})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),o=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(var s in o)a.push(s);for(t=0;t<a.length;t+=1)if(n=o[a[t]],n&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:ir(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Ue(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),St(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),St(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),o=An(n,r.dateEnv,Ue({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),Zn(o,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),qn(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof sr){var n=e._def,r=e._instance,o=this.getCurrentData();return o.eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:At({def:n,instance:r})}),this.triggerEventAdd(e)),e}var i,a=this.getCurrentData();if(t instanceof p)i=t.internalEventSource;else if("boolean"===typeof t)t&&(i=Oe(a.eventSources)[0]);else if(null!=t){var s=this.getEventSourceById(t);if(!s)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=s.internalEventSource}var u=en(e,i,a,!1);if(u){var l=new sr(a,u.def,u.def.recurringDef?null:u.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:At(u)}),this.triggerEventAdd(l),l}return null},e.prototype.triggerEventAdd=function(e){var t=this,n=this.getCurrentData().emitter;n.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:ur(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var a=r[i];if(a.publicId===e){if(a.recurringDef)return new sr(t,a,null);for(var s in o){var u=o[s];if(u.defId===a.defId)return new sr(t,a,u)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return lr(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new p(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new p(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof p)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=er(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new p(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=Ue(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),sr=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in Jt)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=$t[e](t),this.mutate({standardProps:{publicId:t}});else if(e in $t)t=$t[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in qt){var o=qt[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:(r={},r[e]=t,o=r),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var o=this._instance.range,i=cn(o.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){var o=cn(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o=this._context.dateEnv,i={allDay:n.allDay},a=o.createMarker(e);if(a&&(null==t||(r=o.createMarker(t),r))&&this._instance){var s=this._instance.range;!0===n.allDay&&(s=sn(s));var u=cn(s.start,a,o,n.granularity);if(r){var l=cn(s.end,r,o,n.granularity);Le(u,l)?this.mutate({datesDelta:u,standardProps:i}):this.mutate({startDelta:u,endDelta:l,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:u,standardProps:i})}},e.prototype.moveStart=function(e){var t=Ue(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Ue(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Ue(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=St(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})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,o=this._context,i=o.getCurrentData().eventStore,a=Ut(i,n.instanceId),s={"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};a=Kn(a,s,t,o);var u=new e(o,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:a}),o.emitter.trigger("eventChange",{oldEvent:u,event:this,relatedEvents:lr(a,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=ur(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new p(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,o=this,i=o.startStr,a=o.endStr,s={};return t.title&&(s.title=t.title),i&&(s.start=i),a&&(s.end=a),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(r["a"])(s,t.extendedProps):s.extendedProps=t.extendedProps),s},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function ur(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function lr(e,t,n){var r=e.defs,o=e.instances,i=[],a=n?n.instanceId:"";for(var s in o){var u=o[s],l=r[u.defId];u.instanceId!==a&&i.push(new sr(t,l,u))}return i}var cr={};function dr(e,t){cr[e]=t}function fr(e){return new cr[e]}var pr=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return ye(e)},e.prototype.markerToArray=function(e){return ge(e)},e}();dr("gregory",pr);var hr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function vr(e){var t=hr.exec(e);if(t){var n=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(be(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var mr=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=fr(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}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):ye(ve(new Date))},e.prototype.createMarkerMeta=function(e){if("string"===typeof e)return this.parse(e);var t=null;return"number"===typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=ye(e)),null!==t&&be(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=vr(e);if(null===t)return null;var n=t.marker,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}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var 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)},e.prototype.subtract=function(e,t){var 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)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return _e(e)===_e(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return _e(e)===_e(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=ae(e,t),null!==n?{unit:"week",value:n}:(n=se(e,t),null!==n?{unit:"day",value:n}:(n=ne(e,t),Y(n)?{unit:"hour",value:n}:(n=re(e,t),Y(n)?{unit:"minute",value:n}:(n=oe(e,t),Y(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/Ze(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/qe(n):n.days&&(r=se(e,t),null!==r)?r/Ge(n):(t.valueOf()-e.valueOf())/Ye(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?ue(e):"hour"===t?le(e):"minute"===t?ce(e):"second"===t?de(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):fe(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=Q(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)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),$e(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ye(ve(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ye(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-me(ge(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ge(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?me(ge(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ge(e))*60):new Date(e.valueOf()-(t||0))},e}(),gr=[],yr={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"},br=Object(r["a"])(Object(r["a"])({},yr),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function _r(e){for(var t=e.length>0?e[0].code:"en",n=gr.concat(e),r={en:br},o=0,i=n;o<i.length;o++){var a=i[o];r[a.code]=a}return{map:r,defaultCode:t}}function Er(e,t){return"object"!==typeof e||Array.isArray(e)?Cr(e,t):wr(e.code,[e.code],e)}function Cr(e,t){var n=[].concat(e||[]),r=Dr(n,t)||br;return wr(e,n,r)}function Dr(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;o>0;o-=1){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}function wr(e,t,n){var r=De([yr,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Sr,Tr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Or(e,t){return Ht(kr(e),null,t)}function kr(e){var t;return t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"===typeof e&&e?[e]:[],t=t.map((function(e){return Object(r["a"])(Object(r["a"])({},Tr),e)})),t}function Rr(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Ir(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function xr(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Mr(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Pr(e,t){return{left:e.left-t.left,top:e.top-t.top}}function Nr(){return null==Sr&&(Sr=jr()),Sr}function jr(){if("undefined"===typeof document)return!0;var 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);var t=e.querySelector("div"),n=t.offsetHeight>0;return document.body.removeChild(e),n}var Hr=Bt(),Ar=function(){function e(){this.getKeysForEventDefs=nt(this._getKeysForEventDefs),this.splitDateSelection=nt(this._splitDateSpan),this.splitEventStore=nt(this._splitEventStore),this.splitIndividualUi=nt(this._splitIndividualUi),this.splitEventDrag=nt(this._splitInteraction),this.splitEventResize=nt(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),u=this.splitEventResize(e.eventResize),l={};for(var c in this.eventUiBuilders=Se(n,(function(e,n){return t.eventUiBuilders[n]||nt(Ur)})),n){var d=n[c],f=a[c]||Hr,p=this.eventUiBuilders[c];l[c]={businessHours:d.businessHours||e.businessHours,dateSelection:o[c]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,i[c]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:u[c]||null}}return l},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=this.getKeysForDateSpan(e),r=0,o=n;r<o.length;r++){var i=o[r];t[i]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return Se(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,o={};for(var i in n)for(var a=0,s=t[i];a<s.length;a++){var u=s[a];o[u]||(o[u]=Bt()),o[u].defs[i]=n[i]}for(var l in r)for(var c=r[l],d=0,f=t[c.defId];d<f.length;d++){u=f[d];o[u]&&(o[u].instances[l]=c)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var o=0,i=t[r];o<i.length;o++){var a=i[o];n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=function(r){t[r]||(t[r]={affectedEvents:n[r]||Hr,mutatedEvents:o[r]||Hr,isEvent:e.isEvent})};for(var a in n)i(a);for(var a in o)i(a)}return t},e}();function Ur(e,t,n){var o=[];e&&o.push(e),t&&o.push(t);var i={"":Kt(o)};return n&&Object(r["a"])(i,n),i}function Vr(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!yn(r.activeRange,e)),isOther:Boolean(r&&!yn(r.currentRange,e)),isToday:Boolean(t&&yn(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Br(e,t){var n=["fc-day","fc-day-"+X[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}var Lr=St({year:"numeric",month:"long",day:"numeric"}),Wr=St({week:"long"});function Fr(e,t,n,o){void 0===n&&(n="day"),void 0===o&&(o=!0);var i=e.dateEnv,a=e.options,s=e.calendarApi,u=i.format(t,"week"===n?Wr:Lr);if(a.navLinks){var l=i.toDate(t),c=function(e){var r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"===typeof r?r.call(s,i.toDate(t),e):("string"===typeof r&&(n=r),s.zoomTo(t,n))};return Object(r["a"])({title:q(a.navLinkHint,[u,l],u),"data-navlink":""},o?x(c):{onClick:c})}return{"aria-label":u}}var zr,Zr=null;function qr(){return null===Zr&&(Zr=Gr()),Zr}function Gr(){var e=document.createElement("div");b(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild,n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;return h(e),n}function Yr(){return zr||(zr=Kr()),zr}function Kr(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=Xr(e);return document.body.removeChild(e),t}function Xr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function $r(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=Xr(e),u=s.y-r-o,l=s.x-i-a,c={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:l,scrollbarLeft:0,scrollbarRight:0};return qr()&&"rtl"===n.direction?c.scrollbarLeft=u:c.scrollbarRight=u,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function Jr(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():Qr(e),o=$r(e,t),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return t&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function Qr(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function eo(e){for(var t=to(e),n=e.getBoundingClientRect(),r=0,o=t;r<o.length;r++){var i=o[r],a=Ir(n,i.getBoundingClientRect());if(!a)return null;n=a}return n}function to(e){var t=[];while(e instanceof HTMLElement){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function no(e,t,n){var r=!1,o=function(){r||(r=!0,t.apply(this,arguments))},i=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(o,i);a&&"function"===typeof a.then&&a.then(o,i)}var ro=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){oo(this.handlers,e,t)},e.prototype.off=function(e,t){io(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],o=this.options&&this.options[e],i=[].concat(o||[],r),a=0,s=i;a<s.length;a++){var u=s[a];u.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();function oo(e,t,n){(e[t]||(e[t]=[])).push(n)}function io(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}var ao=function(){function e(e,t,n,r){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r],a=i.getBoundingClientRect();t.push(a.left-e),n.push(a.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r],a=i.getBoundingClientRect();t.push(a.top-e),n.push(a.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this,r=n.lefts,o=n.rights,i=r.length;for(t=0;t<i;t+=1)if(e>=r[t]&&e<o[t])return t},e.prototype.topToIndex=function(e){var t,n=this,r=n.tops,o=n.bottoms,i=r.length;for(t=0;t<i;t+=1)if(e>=r[t]&&e<o[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),so=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),uo=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return Object(r["b"])(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(so),lo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(so),co=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"===typeof e&&e){for(n in t=Object(r["a"])({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();co.prototype.classes={},co.prototype.iconClasses={},co.prototype.baseIconClass="",co.prototype.iconOverridePrefix="";var fo=function(){function e(e,t,n,o){var i=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=o,this.handleScrollRequest=function(e){i.queuedRequest=Object(r["a"])({},i.queuedRequest||{},e),i.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),po=l({});function ho(e,t,n,r,o,i,a,s,u,l,c,d,f){return{dateEnv:o,options:n,pluginHooks:a,emitter:l,dispatch:s,getCurrentData:u,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){l.on("_resize",e)},removeResizeHandler:function(e){l.off("_resize",e)},createScrollResponder:function(e){return new fo(e,l,Ue(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Re(e,this.props),Re(t,this.state)),!Ie(this.props,e,this.propEquality)||!Ie(this.state,t,this.stateEquality)},t.prototype.safeSetState=function(e){Ie(this.state,Object(r["a"])(Object(r["a"])({},this.state),e),this.stateEquality)||this.setState(e)},t.addPropsEquality=go,t.addStateEquality=yo,t.contextType=po,t}(o);vo.prototype.propEquality={},vo.prototype.stateEquality={};var mo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.contextType=po,t}(vo);function go(e){var t=Object.create(this.prototype.propEquality);Object(r["a"])(t,e),this.prototype.propEquality=t}function yo(e){var t=Object.create(this.prototype.stateEquality);Object(r["a"])(t,e),this.prototype.stateEquality=t}function bo(e,t){"function"===typeof e?e(t):e&&(e.current=t)}var _o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=N(),t}return Object(r["b"])(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!v(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!v(e,".fc-event:not(.fc-bg-event)")&&!v(e,".fc-more-link")&&!v(e,"a[data-navlink]")&&!v(e,".fc-popover")},t}(mo);function Eo(e){return{id:N(),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,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Co(e,t){var n={},r={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,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,i=e;t<i.length;t++){var a=i[t];n[a.id]||(n[a.id]=!0,o(a.deps),r=wo(r,a))}}return e&&o(e),o(t),r}function Do(){var e,t=[],n=[];return function(r,o){return e&&tt(r,t)&&tt(o,n)||(e=Co(r,o)),t=r,n=o,e}}function wo(e,t){return{reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object(r["a"])(Object(r["a"])({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object(r["a"])(Object(r["a"])({},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(r["a"])(Object(r["a"])({},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(r["a"])(Object(r["a"])({},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(r["a"])(Object(r["a"])({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,contentTypeHandlers:Object(r["a"])(Object(r["a"])({},e.contentTypeHandlers),t.contentTypeHandlers),listenerRefiners:Object(r["a"])(Object(r["a"])({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object(r["a"])(Object(r["a"])({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object(r["a"])(Object(r["a"])({},e.propSetHandlers),t.propSetHandlers)}}var So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t}(co);function To(e,t){var n,r={};for(n in e)Oo(n,r,e,t);for(n in t)Oo(n,r,e,t);return r}function Oo(e,t,n,r){if(t[e])return t[e];var o=ko(e,t,n,r);return o&&(t[e]=o),o}function ko(e,t,n,o){var i=n[e],a=o[e],s=function(e){return i&&null!==i[e]?i[e]:a&&null!==a[e]?a[e]:null},u=s("component"),l=s("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=Oo(l,t,n,o)}return!u&&c&&(u=c.component),u?{type:e,component:u,defaults:Object(r["a"])(Object(r["a"])({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object(r["a"])(Object(r["a"])({},c?c.overrides:{}),a?a.rawOptions:{})}:null}So.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},So.prototype.baseIconClass="fc-icon",So.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"},So.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},So.prototype.iconOverrideOption="buttonIcons",So.prototype.iconOverrideCustomButtonOption="icon",So.prototype.iconOverridePrefix="fc-icon-";var Ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=s(),t.handleRootEl=function(e){bo(t.rootElRef,e),t.props.elRef&&bo(t.props.elRef,e)},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return i(Po,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return i(xo,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,o){return t.children(r,jo(t.classNames,n),e,o)}))}))},t}(mo),Io=l(0);function xo(e){return i(Io.Consumer,null,(function(t){return i(Mo,Object(r["a"])({renderId:t},e))}))}var Mo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=s(),t}return Object(r["b"])(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=Object(r["a"])({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=Ho(e.content,e.hookProps);return void 0===t&&(t=Ho(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var o in t)if(void 0!==e[o]){n=o,r=t[o];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(mo),Po=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&bo(t.props.elRef,e)},t}return Object(r["b"])(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(Object(r["a"])(Object(r["a"])({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(Object(r["a"])(Object(r["a"])({},this.props.hookProps),{el:this.rootEl}))},t}(mo);function No(){var e,t,n=[];return function(r,o){return t&&ke(t,o)&&r===e||(e=r,t=o,n=jo(r,o)),n}}function jo(e,t){return"function"===typeof e&&(e=e(t)),Zt(e)}function Ho(e,t){return"function"===typeof e?e(t,i):e}var Ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=No(),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o={view:n.viewApi},a=this.normalizeClassNames(r.viewClassNames,o);return i(Po,{hookProps:o,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount,elRef:t.elRef},(function(e){return t.children(e,["fc-"+t.viewSpec.type+"-view","fc-view"].concat(a))}))},t}(mo);function Uo(e){return Se(e,Vo)}function Vo(e){var t="function"===typeof e?{component:e}:e,n=t.component;return t.content&&(n=Bo(t)),{superType:t.type,component:n,rawOptions:t}}function Bo(e){return function(t){return i(po.Consumer,null,(function(n){return i(Ao,{viewSpec:n.viewSpec},(function(o,a){var s=Object(r["a"])(Object(r["a"])({},t),{nextDayThreshold:n.options.nextDayThreshold});return i(Ro,{hookProps:s,classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:o},(function(e,t,n,r){return i("div",{className:a.concat(t).join(" "),ref:e},r)}))}))}))}}function Lo(e,t,n,r){var o=Uo(e),i=Uo(t.views),a=To(o,i);return Se(a,(function(e){return Wo(e,i,t,n,r)}))}function Wo(e,t,n,o,i){var a=e.overrides.duration||e.defaults.duration||o.duration||n.duration,s=null,u="",l="",c={};if(a&&(s=zo(a),s)){var d=Xe(s);u=d.unit,1===d.value&&(l=u,c=t[u]?t[u].rawOptions:{})}var f=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},p=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:s,durationUnit:u,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object(r["a"])(Object(r["a"])({},c),e.overrides),buttonTextOverride:f(o)||f(n)||e.overrides.buttonText,buttonTextDefault:f(i)||e.defaults.buttonText||f(Ot)||e.type,buttonTitleOverride:p(o)||p(n)||e.overrides.buttonHint,buttonTitleDefault:p(i)||e.defaults.buttonHint||p(Ot)}}var Fo={};function zo(e){var t=JSON.stringify(e),n=Fo[t];return void 0===n&&(n=Ue(e),Fo[t]=n),n}var Zo=function(){function e(e){this.props=e,this.nowDate=ir(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i,a,s,u,l=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=bn(e,r)),o=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),a=this.trimHiddenDays(a),s=a,l.showNonCurrentDates||(s=hn(s,o.range)),s=this.adjustActiveRange(s),s=hn(s,r),u=mn(o.range,r),{validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:s,renderRange:a,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(o.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"===typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=this.getFallbackDuration(),i=Xe(o).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return Ue({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,a=e.start,s=e.end;return r&&(Ge(o)<0&&(a=ue(a),a=n.add(a,o)),Ge(i)>1&&(s=ue(s),s=J(s,-1),s=n.add(s,i))),{start:a,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,s=this.props,u=s.dateEnv,l=s.dateAlignment;if(!l){var c=this.props.dateIncrement;l=c&&Ye(c)<Ye(n)?Xe(c).unit:r}function d(){o=u.startOf(e,l),i=u.add(o,n),a={start:o,end:i}}return Ge(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=ue(o)),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,o=this.props,i=o.dateEnv,a=o.dateAlignment,s=0,u=e;a&&(u=i.startOf(u,a)),u=ue(u),u=this.skipHiddenDays(u,t),r=u;do{r=J(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:u,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"===typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?Ue(1,t):e||Ue({days:1}))},e.prototype.refineRange=function(e){if(e){var t=dn(e,this.props.dateEnv);return t&&(t=un(t)),t}return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7])e=J(e,t);return e},e}();function qo(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function Go(e,t){var n;switch(t.type){case"SET_OPTION":return Object(r["a"])(Object(r["a"])({},e),(n={},n[t.optionName]=t.rawOptionValue,n));default:return e}}function Yo(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(o=r.buildPrev(e,n),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o;break}return e}function Ko(e,t,n){var r=t?t.activeRange:null;return Qo({},si(e,n),r,n)}function Xo(e,t,n,r){var o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Qo(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return ei(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ti(e,o,r):e;case"FETCH_EVENT_SOURCES":return ri(e,t.sourceIds?Te(t.sourceIds):ai(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ii(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function $o(e,t,n){var r=t?t.activeRange:null;return ri(e,ai(e,n),r,!0,n)}function Jo(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Qo(e,t,n,o){for(var i={},a=0,s=t;a<s.length;a++){var u=s[a];i[u.sourceId]=u}return n&&(i=ti(i,n,o)),Object(r["a"])(Object(r["a"])({},e),i)}function ei(e,t){return we(e,(function(e){return e.sourceId!==t}))}function ti(e,t,n){return ri(e,we(e,(function(e){return ni(e,t,n)})),t,!1,n)}function ni(e,t,n){return ui(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function ri(e,t,n,r,o){var i={};for(var a in e){var s=e[a];t[a]?i[a]=oi(s,n,r,o):i[a]=s}return i}function oi(e,t,n,o){var i=o.options,a=o.calendarApi,s=o.pluginHooks.eventSourceDefs[e.sourceDefId],u=N();return s.fetch({eventSource:e,range:t,isRefetch:n,context:o},(function(n){var r=n.rawEvents;i.eventSourceSuccess&&(r=i.eventSourceSuccess.call(a,r,n.xhr)||r),e.success&&(r=e.success.call(a,r,n.xhr)||r),o.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:u,fetchRange:t,rawEvents:r})}),(function(n){console.warn(n.message,n),i.eventSourceFailure&&i.eventSourceFailure.call(a,n),e.failure&&e.failure(n),o.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:u,fetchRange:t,error:n})})),Object(r["a"])(Object(r["a"])({},e),{isFetching:!0,latestFetchId:u})}function ii(e,t,n,o){var i,a=e[t];return a&&n===a.latestFetchId?Object(r["a"])(Object(r["a"])({},e),(i={},i[t]=Object(r["a"])(Object(r["a"])({},a),{isFetching:!1,fetchRange:o}),i)):e}function ai(e,t){return we(e,(function(e){return ui(e,t)}))}function si(e,t){var n=tr(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(var i=0,a=r;i<a.length;i++){var s=a[i],u=er(s,t,n);u&&o.push(u)}return o}function ui(e,t){var n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function li(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return ci(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return pi(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Lt(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ne(e,r.activeRange,o):e;case"REMOVE_EVENTS":return Ft(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return vi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Wt(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return Bt();default:return e}}function ci(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var a=Ht(di(o,t,i),t,i);return r&&(a=Ne(a,r,i)),Lt(vi(e,t.sourceId),a)}return e}function di(e,t,n){var r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=fi(e,o)),r&&(e=fi(e,r)),e}function fi(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}}else n=e;return n}function pi(e,t,n,r){return n&&(t=Ne(t,n,r)),Lt(e,t)}function hi(e,t,n){var o=e.defs,i=Se(e.instances,(function(e){var i=o[e.defId];return i.allDay||i.recurringDef?e:Object(r["a"])(Object(r["a"])({},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:o,instances:i}}function vi(e,t){return Wt(e,(function(e){return e.sourceId!==t}))}function mi(e,t){return{defs:e.defs,instances:we(e.instances,(function(e){return!t[e.instanceId]}))}}function gi(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function yi(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function bi(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function _i(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Ei(e,t,n,r,o){var i=e.headerToolbar?Ci(e.headerToolbar,e,t,n,r,o):null,a=e.footerToolbar?Ci(e.footerToolbar,e,t,n,r,o):null;return{header:i,footer:a}}function Ci(e,t,n,r,o,i){var a={},s=[],u=!1;for(var l in e){var c=e[l],d=Di(c,t,n,r,o,i);a[l]=d.widgets,s.push.apply(s,d.viewsWithButtons),u=u||d.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:u}}function Di(e,t,n,r,o,i){var a="rtl"===t.direction,s=t.customButtons||{},u=n.buttonText||{},l=t.buttonText||{},c=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1,v=f.map((function(e){return e.split(",").map((function(e){if("title"===e)return h=!0,{buttonName:e};var n,f,v,m,g,y;if(n=s[e])v=function(e){n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,a))||(g=n.text),y=n.hint||n.text;else if(f=o[e]){p.push(e),v=function(){i.changeView(e)},(g=f.buttonTextOverride)||(m=r.getIconClass(e,a))||(g=f.buttonTextDefault);var b=f.buttonTextOverride||f.buttonTextDefault;y=q(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[b,e],b)}else if(i[e])if(v=function(){i[e]()},(g=u[e])||(m=r.getIconClass(e,a))||(g=l[e]),"prevYear"===e||"nextYear"===e){var _="prevYear"===e?"prev":"next";y=q(c[_]||d[_],[l.year||"year","year"],l[e])}else y=function(t){return q(c[e]||d[e],[l[t]||t,t],l[e])};return{buttonName:e,buttonClick:v,buttonIcon:m,buttonText:g,buttonHint:y}}))}));return{widgets:v,viewsWithButtons:p,hasTitle:h}}var wi={ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}},Si=Eo({eventSourceDefs:[wi]}),Ti={parseMeta:function(e){return"function"===typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv,o=e.eventSource.meta;no(o.bind(null,Wn(e.range,r)),(function(e){t({rawEvents:e})}),n)}},Oi=Eo({eventSourceDefs:[Ti]});function ki(e,t,n,r,o){e=e.toUpperCase();var i=null;"GET"===e?t=Ri(t,n):i=Ii(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var e=!1,t=void 0;try{t=JSON.parse(a.responseText),e=!0}catch(n){}e?r(t,a):o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function Ri(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Ii(t)}function Ii(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var xi={method:String,extraParams:jt,startParam:String,endParam:String,timeZoneParam:String},Mi={parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,o=Ni(r,e.range,e.context);ki(r.method,r.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}},Pi=Eo({eventSourceRefiners:xi,eventSourceDefs:[Mi]});function Ni(e,t,n){var o,i,a,s,u=n.dateEnv,l=n.options,c={};return o=e.startParam,null==o&&(o=l.startParam),i=e.endParam,null==i&&(i=l.endParam),a=e.timeZoneParam,null==a&&(a=l.timeZoneParam),s="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},Object(r["a"])(c,s),c[o]=u.formatIso(t.start),c[i]=u.formatIso(t.end),"local"!==u.timeZone&&(c[a]=u.timeZone),c}var ji={daysOfWeek:jt,startTime:Ue,endTime:Ue,duration:Ue,startRecur:jt,endRecur:jt},Hi={parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={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},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=Fe(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}return null},expand:function(e,t,n){var r=hn(t,{start:e.startRecur,end:e.endRecur});return r?Ui(e.daysOfWeek,e.startTime,r,n):[]}},Ai=Eo({recurringTypes:[Hi],eventRefiners:ji});function Ui(e,t,n,r){var o=e?Te(e):null,i=ue(n.start),a=n.end,s=[];while(i<a){var u=void 0;o&&!o[i.getUTCDay()]||(u=t?r.add(i,t):i,s.push(u)),i=J(i,1)}return s}var Vi=Eo({optionChangeHandlers:{events:function(e,t){Bi([e],t)},eventSources:Bi}});function Bi(e,t){for(var n=Oe(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],s=!1,u=0;u<n.length;u+=1)if(n[u]._raw===a){n.splice(u,1),s=!0;break}s||r.push(a)}for(var l=0,c=n;l<c.length;l++){var d=c[l];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}function Li(e,t){t.emitter.trigger("datesSet",Object(r["a"])(Object(r["a"])({},Wn(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function Wi(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",lr(e,t))}var Fi=[Si,Oi,Pi,Ai,Vi,Eo({isLoadingFuncs:[function(e){return Jo(e.eventSources)}],contentTypeHandlers:{html:zi,domNodes:Zi},propSetHandlers:{dateProfile:Li,eventStore:Wi}})];function zi(){var e=null,t="";function n(n,r){n===e&&r===t||(n.innerHTML=r),e=n,t=r}function r(){e.innerHTML="",e=null,t=""}return{render:n,destroy:r}}function Zi(){var e=null,t=[];function n(n,o){var i=Array.prototype.slice.call(o);if(n!==e||!tt(t,i)){for(var a=0,s=i;a<s.length;a++){var u=s[a];n.appendChild(u)}r()}e=n,t=i}function r(){t.forEach(h),t=[],e=null}return{render:n,destroy:r}}var qi=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else{n[e]-=1;var r=n[e];r<=0&&delete n[e]}this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){this.isRunning=!0;while(this.isDirty)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),Gi=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new qi(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){var e=this.queue;while(e.length){var t=[],n=void 0;while(n=e.shift())this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function Yi(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,St(t.titleFormat||Ki(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Ki(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=se(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var Xi=function(){function e(e){var t=this;this.computeOptionsData=nt(this._computeOptionsData),this.computeCurrentViewData=nt(this._computeCurrentViewData),this.organizeRawLocales=nt(_r),this.buildLocale=nt(Er),this.buildPluginHooks=Do(),this.buildDateEnv=nt($i),this.buildTheme=nt(Ji),this.parseToolbars=nt(Ei),this.buildViewSpecs=nt(Lo),this.buildDateProfileGenerator=rt(Qi),this.buildViewApi=nt(ea),this.buildViewUiProps=rt(ra),this.buildEventUiBySource=nt(ta,ke),this.buildEventUiBases=nt(na),this.parseContextBusinessHours=rt(ia),this.buildTitle=nt(Yi),this.emitter=new ro,this.actionRunner=new Gi(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},o=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=o.calendarOptions.initialView||o.pluginHooks.initialView,a=this.computeCurrentViewData(i,o,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);var s=or(o.calendarOptions,o.dateEnv),u=a.dateProfileGenerator.build(s);yn(u.activeRange,s)||(s=u.currentRange.start);for(var l={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},c=0,d=o.pluginHooks.contextInit;c<d.length;c++){var f=d[c];f(l)}for(var p=Ko(o.calendarOptions,u,l),h={dynamicOptionOverrides:n,currentViewType:i,currentDate:s,dateProfile:u,businessHours:this.parseContextBusinessHours(l),eventSources:p,eventUiBases:{},eventStore:Bt(),renderableEventStore:Bt(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},v=Object(r["a"])(Object(r["a"])({},l),h),m=0,g=o.pluginHooks.reducers;m<g.length;m++){var y=g[m];Object(r["a"])(h,y(null,null,v))}oa(h,l)&&this.emitter.trigger("loading",!0),this.state=h,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?Object(r["a"])(Object(r["a"])({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,o=t.state,i=t.emitter,a=Go(o.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),u=qo(o.currentViewType,e),l=this.computeCurrentViewData(u,s,n.optionOverrides,a);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);var c={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},d=o.currentDate,f=o.dateProfile;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(d)),d=rr(d,e),f=Yo(f,e,d,l.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&yn(f.currentRange,d)||(d=f.currentRange.start);for(var p=Xo(o.eventSources,e,f,c),h=li(o.eventStore,e,p,f,c),v=Jo(p),m=v&&!l.options.progressiveEventRendering&&o.renderableEventStore||h,g=this.buildViewUiProps(c),y=g.eventUiSingleBase,b=g.selectionConfig,_=this.buildEventUiBySource(p),E=this.buildEventUiBases(m.defs,y,_),C={dynamicOptionOverrides:a,currentViewType:u,currentDate:d,dateProfile:f,eventSources:p,eventStore:h,renderableEventStore:m,selectionConfig:b,eventUiBases:E,businessHours:this.parseContextBusinessHours(c),dateSelection:gi(o.dateSelection,e),eventSelection:yi(o.eventSelection,e),eventDrag:bi(o.eventDrag,e),eventResize:_i(o.eventResize,e)},D=Object(r["a"])(Object(r["a"])({},c),C),w=0,S=s.pluginHooks.reducers;w<S.length;w++){var T=S[w];Object(r["a"])(C,T(o,e,D))}var O=oa(o,c),k=oa(C,c);!O&&k?i.trigger("loading",!0):O&&!k&&i.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e=this,t=e.props,n=e.state,o=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),a=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),s=this.data=Object(r["a"])(Object(r["a"])(Object(r["a"])({viewTitle:this.buildTitle(n.dateProfile,a.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),a),n),u=i.pluginHooks.optionChangeHandlers,l=o&&o.calendarOptions,c=i.calendarOptions;if(l&&l!==c)for(var d in l.timeZone!==c.timeZone&&(n.eventSources=s.eventSources=$o(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=hi(s.eventStore,o.dateEnv,s.dateEnv)),u)l[d]!==c[d]&&u[d](c[d],s);t.onData&&t.onData(s)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData,u=r.extra;aa(u);var l=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,s,o.defaultRangeSeparator),c=this.buildViewSpecs(i.views,e,t,a),d=this.buildTheme(o,i),f=this.parseToolbars(o,e,d,c,n);return{calendarOptions:o,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:d,toolbarConfig:f,localeDefaults:a,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=Pt([Ot,e,t]),o=n.locales,i=n.locale,a=this.organizeRawLocales(o),s=a.map,u=this.buildLocale(i||a.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],Fi),c=this.currentCalendarOptionsRefiners=Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({},Tt),kt),Rt),l.listenerRefiners),l.optionRefiners),d={},f=Pt([Ot,u,e,t]),p={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,m=!1;for(var g in f)"plugins"!==g&&(f[g]===h[g]||It[g]&&g in h&&It[g](h[g],f[g])?p[g]=v[g]:c[g]?(p[g]=c[g](f[g]),m=!0):d[g]=h[g]);return m&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=p),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:a,localeDefaults:u,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var i=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),a=i.refinedOptions,s=i.extra;aa(s);var u=this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),l=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:o,options:a,dateProfileGenerator:u,viewApi:l}},e.prototype.processRawViewOptions=function(e,t,n,o,i){var a=Pt([Ot,e.optionDefaults,n,o,e.optionOverrides,i]),s=Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({},Tt),kt),Rt),Mt),t.listenerRefiners),t.optionRefiners),u={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,f={};for(var p in a)a[p]===l[p]||It[p]&&It[p](a[p],l[p])?u[p]=c[p]:(a[p]===this.currentCalendarOptionsInput[p]||It[p]&&It[p](a[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(u[p]=this.currentCalendarOptionsRefined[p]):s[p]?u[p]=s[p](a[p]):f[p]=a[p],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=u),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:f}},e}();function $i(e,t,n,r,o,i,a,s){var u=Er(t||a.defaultCode,a.map);return new mr({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function Ji(e,t){var n=t.themeClasses[e.themeSystem]||So;return new n(e)}function Qi(e){var t=e.dateProfileGeneratorClass||Zo;return new t(e)}function ea(e,t,n){return new Jn(e,t,n)}function ta(e){return Se(e,(function(e){return e.ui}))}function na(e,t,n){var r={"":t};for(var o in e){var i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function ra(e){var t=e.options;return{eventUiSingleBase:Yt({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:Yt({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function oa(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){var o=r[n];if(o(e))return!0}return!1}function ia(e){return Or(e.options.businessHours,e)}function aa(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}(function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new Xi({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}Object(r["b"])(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)}})(o);(function(){function e(e){this.timeZoneName=e}})();var sa=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];this.insertEntry(o,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var o=0,i=[],a=e.span,s=t.span;return a.start<s.start&&(o+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:s.start}},i)),a.end>s.end&&(o+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:a.end}},i)),o?(n.push.apply(n,Object(r["c"])([{index:e.index,thickness:e.thickness,span:fa(s,a)}],i)),o):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this,r=n.entriesByLevel,o=n.levelCoords;-1===t.lateral?(pa(o,t.level,t.levelCoord),pa(r,t.level,[e])):pa(r[t.level],t.lateral,e),this.stackCnts[la(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,o=t.strictOrder,i=t.stackCnts,a=n.length,s=0,u=-1,l=-1,c=null,d=0,f=0;f<a;f+=1){var p=n[f];if(!o&&p>=s+e.thickness)break;var h=r[f],v=void 0,m=ha(h,e.span.start,ua),g=m[0]+m[1];while((v=h[g])&&v.span.start<e.span.end){var y=p+v.thickness;y>s&&(s=y,c=v,u=f,l=g),y===s&&(d=Math.max(d,i[la(v)]+1)),g+=1}}var b=0;if(c){b=u+1;while(b<a&&n[b]<s)b+=1}var _=-1;return b<a&&n[b]===s&&(_=ha(r[b],e.span.end,ua)[0]),{touchingLevel:u,touchingLateral:l,touchingEntry:c,stackCnt:d,levelCoord:s,level:b,lateral:_}},e.prototype.toRects=function(){for(var e=this,t=e.entriesByLevel,n=e.levelCoords,o=t.length,i=[],a=0;a<o;a+=1)for(var s=t[a],u=n[a],l=0,c=s;l<c.length;l++){var d=c[l];i.push(Object(r["a"])(Object(r["a"])({},d),{levelCoord:u}))}return i},e}();function ua(e){return e.span.end}function la(e){return e.index+":"+e.span.start}function ca(e){for(var t=[],n=0,r=e;n<r.length;n++){for(var o=r[n],i=[],a={span:o.span,entries:[o]},s=0,u=t;s<u.length;s++){var l=u[s];fa(l.span,a.span)?a={entries:l.entries.concat(a.entries),span:da(l.span,a.span)}:i.push(l)}i.push(a),t=i}return t}function da(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function fa(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function pa(e,t,n){e.splice(t,0,n)}function ha(e,t,n){var r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];while(r<o){var i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}var va=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function ma(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function ga(e){var t;return t={},t[e.component.uid]=e,t}var ya={},ba=function(){function e(e,t){this.emitter=new ro}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),_a={},Ea={startTime:Ue,duration:Ue,create:Boolean,sourceId:String};function Ca(e){var t=Nt(e,Ea),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}var Da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return i.apply(void 0,Object(r["c"])(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,o=[],a=!0,s=0,u=e;s<u.length;s++){var l=u[s],c=l.buttonName,d=l.buttonClick,f=l.buttonText,p=l.buttonIcon,h=l.buttonHint;if("title"===c)a=!1,o.push(i("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var v=c===t.activeButton,m=!t.isTodayEnabled&&"today"===c||!t.isPrevEnabled&&"prev"===c||!t.isNextEnabled&&"next"===c,g=["fc-"+c+"-button",n.getClass("button")];v&&g.push(n.getClass("buttonActive")),o.push(i("button",{type:"button",title:"function"===typeof h?h(t.navUnit):h,disabled:m,"aria-pressed":v,className:g.join(" "),onClick:d},f||(p?i("span",{className:p}):"")))}}if(o.length>1){var y=a&&n.getClass("buttonGroup")||"";return i.apply(void 0,Object(r["c"])(["div",{className:y}],o))}return o[0]},t}(mo),wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,a=!1,s=r.sectionWidgets,u=s.center;s.left?(a=!0,e=s.left):e=s.start,s.right?(a=!0,t=s.right):t=s.end;var l=[o||"","fc-toolbar",a?"fc-toolbar-ltr":""];return i("div",{className:l.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",u||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return i(Da,{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})},t}(mo),Sa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,bo(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=t.aspectRatio,o=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",s="";return r?null!==n.availableWidth?a=n.availableWidth/r:s=1/r*100+"%":a=t.height||"",i("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:o.join(" "),style:{height:a,paddingBottom:s}},t.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(mo),Ta=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,o=r.context,i=Dn(t);if(i&&r.isValidSegDownEl(e.target)){var a=v(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new sr(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=O(t.el,"click",".fc-event",n.handleSegClick),n}return Object(r["b"])(t,e),t}(va),Oa=function(e){function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Dn(t)&&(n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))},n.removeHoverListeners=k(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return Object(r["b"])(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=Dn(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new sr(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(va),ka=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=nt(ho),t.buildViewPropTransformers=nt(Ia),t.buildToolbarProps=nt(Ra),t.headerRef=s(),t.footerRef=s(),t.interactionsStore={},t.state={viewLabelId:w()},t.registerInteractiveComponent=function(e,n){var r=ma(e,n),o=[Ta,Oa],i=o.concat(t.props.pluginHooks.componentInteractions),a=i.map((function(e){return new e(r)}));t.interactionsStore[e.uid]=a,ya[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,o=n;r<o.length;r++){var i=o[r];i.destroy()}delete t.interactionsStore[e.uid]}delete ya[e.uid]},t.resizeRunner=new qi((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,o=t.options,a=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,ir(t.options.now,t.dateEnv),t.viewTitle),s=!1,u="";t.isHeightAuto||t.forPrint?u="":null!=o.height?s=!0:null!=o.contentHeight?u=o.contentHeight:e=Math.max(o.aspectRatio,.5);var l=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),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return i(po.Provider,{value:l},n.header&&i(wa,Object(r["a"])({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},a)),i(Sa,{liquid:s,height:u,aspectRatio:e,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&i(wa,Object(r["a"])({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},a)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){var n=t[e];n.destroy()}this.props.emitter.trigger("_unmount")},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return i.apply(void 0,Object(r["c"])([u,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,o={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},a=this.buildViewPropTransformers(t.viewPropsTransformers),s=0,u=a;s<u.length;s++){var l=u[s];Object(r["a"])(o,l.transform(o,e))}var c=n.component;return i(c,Object(r["a"])({},o))},t}(vo);function Ra(e,t,n,r,o,i){var a=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),u=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!yn(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:u.isValid}}function Ia(e){return e.map((function(e){return new e}))}var xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Nr()||i.push("fc-liquid-hack"),e.children(i,o,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(mo);function Ma(e,t){return St(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Pa="fc-col-header-cell";function Na(e){return e.text}var ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,o=e.theme,a=e.viewApi,s=this.props,u=s.date,l=s.dateProfile,c=Vr(u,s.todayRange,null,l),d=[Pa].concat(Br(c,o)),f=t.format(u,s.dayHeaderFormat),p=!c.isDisabled&&s.colCnt>1?Fr(this.context,u):{},h=Object(r["a"])(Object(r["a"])(Object(r["a"])({date:t.toDate(u),view:a},s.extraHookProps),{text:f}),c);return i(Ro,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Na,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,o){return i("th",Object(r["a"])({ref:e,role:"columnheader",className:d.concat(t).join(" "),"data-date":c.isDisabled?void 0:Je(u),colSpan:s.colSpan},s.extraDataAttrs),i("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&i("a",Object(r["a"])({ref:n,className:["fc-col-header-cell-cushion",s.isSticky?"fc-sticky":""].join(" ")},p),o)))}))},t}(mo),Ha=St({weekday:"long"}),Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,o=t.theme,a=t.viewApi,s=t.options,u=J(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Pa].concat(Br(l,o),e.extraClassNames||[]),d=n.format(u,e.dayHeaderFormat),f=Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({date:u},l),{view:a}),e.extraHookProps),{text:d});return i(Ro,{hookProps:f,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:Na,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},(function(t,o,a,s){return i("th",Object(r["a"])({ref:t,role:"columnheader",className:c.concat(o).join(" "),colSpan:e.colSpan},e.extraDataAttrs),i("div",{className:"fc-scrollgrid-sync-inner"},i("a",{"aria-label":n.format(u,Ha),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:a},s)))}))},t}(mo),Ua=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=ir(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state;return t.children(n.nowDate,n.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this,t=e.props,n=e.context,r=Q(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),o=n.dateEnv.startOf(r,t.unit),i=n.dateEnv.add(o,Ue(1,t.unit)),a=i.valueOf()-r.valueOf();return a=Math.min(864e5,a),{currentState:{nowDate:o,todayRange:Va(o)},nextState:{nowDate:i,todayRange:Va(i)},waitMs:a}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=po,t}(o);function Va(e){var t=ue(e),n=J(t,1);return{start:t,end:n}}var Ba=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=nt(La),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,a=t.renderIntro,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return i(Ua,{unit:"day"},(function(e,t){return i("tr",{role:"row"},a&&a("day"),n.map((function(e){return o?i(ja,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:s}):i(Aa,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s})})))}))},t}(mo);function La(e,t,n){return e||Ma(t,n)}var Wa=function(){function e(e,t){var n=e.start,r=e.end,o=[],i=[],a=-1;while(n<r)t.isHiddenDay(n)?o.push(a+.5):(a+=1,o.push(a),i.push(n)),n=J(n,1);this.dates=i,this.indices=o,this.cnt=i.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(J(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return r=Math.ceil(r),o=Math.floor(o),r<=o?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(te(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Fa=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length;n+=1)if(i[n].getUTCDay()===r)break;o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n){var o=n.firstIndex,i=n.lastIndex,a=o;while(a<=i){var s=Math.floor(a/t),u=Math.min((s+1)*t,i+1);r.push({row:s,firstCol:a%t,lastCol:(u-1)%t,isStart:n.isStart&&a===o,isEnd:n.isEnd&&u-1===i}),a=u}}return r},e}(),za=function(){function e(){this.sliceBusinessHours=nt(this._sliceBusinessHours),this.sliceDateSelection=nt(this._sliceDateSpan),this.sliceEventStore=nt(this._sliceEventStore),this.sliceEventDrag=nt(this._sliceInteraction),this.sliceEventResize=nt(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,o){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=e.eventUiBases,u=this.sliceEventStore.apply(this,Object(r["c"])([e.eventStore,s,t,n],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,Object(r["c"])([e.dateSelection,s,o],i)),businessHourSegs:this.sliceBusinessHours.apply(this,Object(r["c"])([e.businessHours,t,n,o],i)),fgEventSegs:u.fg,bgEventSegs:u.bg,eventDrag:this.sliceEventDrag.apply(this,Object(r["c"])([e.eventDrag,s,t,n],i)),eventResize:this.sliceEventResize.apply(this,Object(r["c"])([e.eventResize,s,t,n],i)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return this._sliceDateSpan.apply(this,Object(r["c"])([{range:{start:e,end:Q(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,o){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];return e?this._sliceEventStore.apply(this,Object(r["c"])([Ne(e,Za(t,Boolean(n)),o),{},t,n],i)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){var a=_n(e,t,Za(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;var a=_n(e.mutatedEvents,t,Za(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(!e)return[];for(var a=zn(e,t,n),s=this.sliceRange.apply(this,Object(r["c"])([e.range],o)),u=0,l=s;u<l.length;u++){var c=l[u];c.eventRange=a}return s},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:J(n.start,1)});for(var o=this.sliceRange.apply(this,Object(r["c"])([n],t)),i=0,a=o;i<a.length;i++){var s=a[i];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return o},e}();function Za(e,t){var n=e.activeRange;return t?n:{start:Q(n.start,e.slotMinTime.milliseconds),end:Q(n.end,e.slotMaxTime.milliseconds-864e5)}}function qa(e,t,n){var r=e.mutatedEvents.instances;for(var o in r)if(!gn(t.validRange,r[o].range))return!1;return Ya({eventDrag:e},n)}function Ga(e,t,n){return!!gn(t.validRange,e.range)&&Ya({dateSelection:e},n)}function Ya(e,t){var n=t.getCurrentData(),o=Object(r["a"])({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Ka)(o,t)}function Ka(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!Xa(e,t,n,r))&&!(e.dateSelection&&!$a(e,t,n,r))}function Xa(e,t,n,o){var i=t.getCurrentData(),a=e.eventDrag,s=a.mutatedEvents,u=s.defs,l=s.instances,c=wn(u,a.isEvent?e.eventUiBases:{"":i.selectionConfig});o&&(c=Se(c,o));var d=mi(e.eventStore,a.affectedEvents.instances),f=d.defs,p=d.instances,h=wn(f,e.eventUiBases);for(var v in l){var m=l[v],g=m.range,y=c[m.defId],b=u[m.defId];if(!Ja(y.constraints,g,d,e.businessHours,t))return!1;var _=t.options.eventOverlap,E="function"===typeof _?_:null;for(var C in p){var D=p[C];if(mn(g,D.range)){var w=h[D.defId].overlap;if(!1===w&&a.isEvent)return!1;if(!1===y.overlap)return!1;if(E&&!E(new sr(t,f[D.defId],D),new sr(t,b,m)))return!1}}for(var S=i.eventStore,T=0,O=y.allows;T<O.length;T++){var k=O[T],R=Object(r["a"])(Object(r["a"])({},n),{range:m.range,allDay:b.allDay}),I=S.defs[b.defId],x=S.instances[v],M=void 0;if(M=I?new sr(t,I,x):new sr(t,b),!k(Gn(R,t),M))return!1}}return!0}function $a(e,t,n,o){var i=e.eventStore,a=i.defs,s=i.instances,u=e.dateSelection,l=u.range,c=t.getCurrentData().selectionConfig;if(o&&(c=o(c)),!Ja(c.constraints,l,i,e.businessHours,t))return!1;var d=t.options.selectOverlap,f="function"===typeof d?d:null;for(var p in s){var h=s[p];if(mn(l,h.range)){if(!1===c.overlap)return!1;if(f&&!f(new sr(t,a[h.defId],h),null))return!1}}for(var v=0,m=c.allows;v<m.length;v++){var g=m[v],y=Object(r["a"])(Object(r["a"])({},n),u);if(!g(Gn(y,t),null))return!1}return!0}function Ja(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++){var s=a[i];if(!ts(Qa(s,t,n,r,o),t))return!1}return!0}function Qa(e,t,n,r,o){return"businessHours"===e?es(Ne(r,t,o)):"string"===typeof e?es(Wt(n,(function(t){return t.groupId===e}))):"object"===typeof e&&e?es(Ne(e,t,o)):[]}function es(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function ts(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(gn(o,t))return!0}return!1}var ns=/^(visible|hidden)$/,rs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,bo(t.props.elRef,e)},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),i("div",{ref:this.handleEl,className:o.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)},t.prototype.needsXScrolling=function(){if(ns.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){var o=n[r];if(o.getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(ns.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){var o=n[r];if(o.getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return ns.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return ns.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(mo),os=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,o=r.depths,i=r.currentMap,a=!1,s=!1;null!==e?(a=n in i,i[n]=e,o[n]=(o[n]||0)+1,s=!0):(o[n]-=1,o[n]||(delete i[n],delete t.callbackMap[n],a=!0)),t.masterCallback&&(a&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return Me(this.currentMap,e,t,n)},e.prototype.getAll=function(){return Oe(this.currentMap)},e}();function is(e){for(var t=g(e,".fc-scrollgrid-shrink"),n=0,r=0,o=t;r<o.length;r++){var i=o[r];n=Math.max(n,K(i))}return Math.ceil(n)}function as(e,t){return e.liquid&&t.liquid}function ss(e,t){return null!=t.maxHeight||as(e,t)}function us(e,t,n,r){var o=n.expandRows,a="function"===typeof t.content?t.content(n):i("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,i(r?"thead":"tbody",{role:"presentation"},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent));return a}function ls(e,t){return tt(e,t,ke)}function cs(e,t){for(var n=[],o=0,a=e;o<a.length;o++)for(var s=a[o],u=s.span||1,l=0;l<u;l+=1)n.push(i("col",{style:{width:"shrink"===s.width?ds(t):s.width||"",minWidth:s.minWidth||""}}));return i.apply(void 0,Object(r["c"])(["colgroup",{}],n))}function ds(e){return null==e?4:e}function fs(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("shrink"===r.width)return!0}return!1}function ps(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function hs(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function vs(e){return i("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ms(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function gs(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var ys=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=nt((function(e){return e}),ls),t.renderMicroColGroup=nt(cs),t.scrollerRefs=new os,t.scrollerElRefs=new os(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState(Object(r["a"])({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,o=e.context,a=t.sections||[],s=this.processCols(t.cols),u=this.renderMicroColGroup(s,n.shrinkWidth),l=ps(t.liquid,o);t.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");var c,d=a.length,f=0,p=[],h=[],v=[];while(f<d&&"header"===(c=a[f]).type)p.push(this.renderSection(c,u,!0)),f+=1;while(f<d&&"body"===(c=a[f]).type)h.push(this.renderSection(c,u,!1)),f+=1;while(f<d&&"footer"===(c=a[f]).type)v.push(this.renderSection(c,u,!0)),f+=1;var m=!Nr(),g={role:"rowgroup"};return i("table",{role:"grid",className:l.join(" "),style:{height:t.height}},Boolean(!m&&p.length)&&i.apply(void 0,Object(r["c"])(["thead",g],p)),Boolean(!m&&h.length)&&i.apply(void 0,Object(r["c"])(["tbody",g],h)),Boolean(!m&&v.length)&&i.apply(void 0,Object(r["c"])(["tfoot",g],v)),m&&i.apply(void 0,Object(r["c"])(Object(r["c"])(Object(r["c"])(["tbody",g],p),h),v)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?i(u,{key:e.key},e.outerContent):i("tr",{key:e.key,role:"presentation",className:hs(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var o=this.props,a=this.state,s=a.forceYScrollbars,u=a.scrollerClientWidths,l=a.scrollerClientHeights,c=ss(o,e),d=as(o,e),f=o.liquid?s?"scroll":c?"auto":"hidden":"visible",p=e.key,h=us(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===u[p]?null:u[p],clientHeight:void 0!==l[p]?l[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return i(r?"th":"td",{ref:n.elRef,role:"presentation"},i("div",{className:"fc-scroller-harness"+(d?" fc-scroller-harness-liquid":"")},i(rs,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:f,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},h)))},t.prototype._handleScrollerEl=function(e,t){var n=bs(this.props.sections,t);n&&bo(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return fs(this.props.cols)?is(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=Yr(),t=this,n=t.scrollerRefs,r=t.scrollerElRefs,o=!1,i={},a={};for(var s in n.currentMap){var u=n.currentMap[s];if(u&&u.needsYScrolling()){o=!0;break}}for(var l=0,c=this.props.sections;l<c.length;l++){var d=c[l],f=(s=d.key,r.currentMap[s]);if(f){var p=f.parentNode;i[s]=Math.floor(p.getBoundingClientRect().width-(o?e.y:0)),a[s]=Math.floor(p.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:i,scrollerClientHeights:a}},t}(mo);function bs(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}ys.addStateEquality({scrollerClientWidths:ke,scrollerClientHeights:ke});var _s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=s(),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o=t.seg,a=o.eventRange,s=a.ui,u={event:new sr(n,a.def,a.instance),view:n.viewApi,timeText:t.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!t.disableDragging&&kn(o,n),isStartResizable:!t.disableResizing&&Rn(o,n),isEndResizable:!t.disableResizing&&In(o),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(o.isStart),isEnd:Boolean(o.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)},l=Pn(u).concat(s.classNames);return i(Ro,{hookProps:u,classNames:r.eventClassNames,content:r.eventContent,defaultContent:t.defaultContent,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount,elRef:this.elRef},(function(e,n,r,o){return t.children(e,l.concat(n),r,o,u)}))},t.prototype.componentDidMount=function(){Cn(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&Cn(this.elRef.current,t)},t}(mo),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,o=t.seg,a=n.options.eventTimeFormat||t.defaultTimeFormat,s=xn(o,a,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return i(_s,{seg:o,timeText:s,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||Cs,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(e,a,s,u,l){return i("a",Object(r["a"])({className:t.extraClassNames.concat(a).join(" "),style:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},ref:e},jn(o,n)),i("div",{className:"fc-event-main",ref:s,style:{color:l.textColor}},u),l.isStartResizable&&i("div",{className:"fc-event-resizer fc-event-resizer-start"}),l.isEndResizable&&i("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(mo);function Cs(e){return i("div",{className:"fc-event-main-frame"},e.timeText&&i("div",{className:"fc-event-time"},e.timeText),i("div",{className:"fc-event-title-container"},i("div",{className:"fc-event-title fc-sticky"},e.event.title||i(u,null," "))))}var Ds=function(e){return i(po.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return i(Ro,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},ws=St({day:"numeric"}),Ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o=Ts({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv});return i(xo,{hookProps:o,content:r.dayCellContent,defaultContent:t.defaultContent},t.children)},t}(mo);function Ts(e){var t=e.date,n=e.dateEnv,o=Vr(t,e.todayRange,null,e.dateProfile);return Object(r["a"])(Object(r["a"])(Object(r["a"])({date:n.toDate(t),view:e.viewApi},o),{dayNumberText:e.showDayNumber?n.format(t,ws):""}),e.extraProps)}var Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=rt(Ts),t.normalizeClassNames=No(),t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,o=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv}),a=Br(o,n.theme).concat(o.isDisabled?[]:this.normalizeClassNames(r.dayCellClassNames,o)),s=o.isDisabled?{}:{"data-date":Je(t.date)};return i(Po,{hookProps:o,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount,elRef:t.elRef},(function(e){return t.children(e,a,s,o.isDisabled)}))},t}(mo);function ks(e){return i("div",{className:"fc-"+e})}var Rs=function(e){return i(_s,{defaultContent:Is,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return i("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function Is(e){var t=e.event.title;return t&&i("div",{className:"fc-event-title"},e.event.title)}var xs=function(e){return i(po.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,o=e.date,a=r.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(o),u=n.format(o,a),l={num:s,text:u,date:o};return i(Ro,{hookProps:l,classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:Ms,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function Ms(e){return e.text}var Ps=10,Ns=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:w()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&bo(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=E(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,o=this,a=o.props,s=o.state,u=["fc-popover",t.getClass("popover")].concat(a.extraClassNames||[]);return c(i("div",Object(r["a"])({id:a.id,className:u.join(" "),"aria-labelledby":s.titleId},a.extraAttrs,{ref:this.handleRootEl}),i("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},i("span",{className:"fc-popover-title",id:s.titleId},a.title),i("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),i("div",{className:"fc-popover-body "+t.getClass("popoverContent")},a.children)),a.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,o=this.rootEl,i=eo(n);if(i){var a=o.getBoundingClientRect(),s=r?v(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,u=e?i.right-a.width:i.left;s=Math.max(s,Ps),u=Math.min(u,document.documentElement.clientWidth-Ps-a.width),u=Math.max(u,Ps);var l=o.offsetParent.getBoundingClientRect();b(o,{top:s-l.top,left:u-l.left})}},t}(mo),js=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,o=r.startDate,a=r.todayRange,s=r.dateProfile,u=n.format(o,t.dayPopoverFormat);return i(Os,{date:o,dateProfile:s,todayRange:a,elRef:this.handleRootEl},(function(e,t,n){return i(Ns,{elRef:e,id:r.id,title:u,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},i(Ss,{date:o,dateProfile:s,todayRange:a},(function(e,t){return t&&i("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,o){var i=this,a=i.rootEl,s=i.props;return e>=0&&e<n&&t>=0&&t<o?{dateProfile:s.dateProfile,dateSpan:Object(r["a"])({allDay:!0,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:n,bottom:o},layer:1}:null},t}(_o),Hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=s(),t.state={isPopoverOpen:!1,popoverId:w()},t.handleClick=function(e){var n=t,r=n.props,o=n.context,i=o.options.moreLinkClick,a=Us(r).start;function s(e){var t=e.eventRange,n=t.def,r=t.instance,i=t.range;return{event:new sr(o,n,r),start:o.dateEnv.toDate(i.start),end:o.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof i&&(i=i({date:a,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(s),hiddenSegs:r.hiddenSegs.map(s),jsEvent:e,view:o.viewApi})),i&&"popover"!==i?"string"===typeof i&&o.calendarApi.zoomTo(a,i):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return Object(r["b"])(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state;return i(po.Consumer,null,(function(t){var o=t.viewApi,a=t.options,s=t.calendarApi,l=a.moreLinkText,c=n.moreCnt,d=Us(n),f="function"===typeof l?l.call(s,c):"+"+c+" "+l,p=q(a.moreLinkHint,[c],f),h={num:c,shortText:"+"+c,text:f,view:o};return i(u,null,Boolean(n.moreCnt)&&i(Ro,{elRef:e.linkElRef,hookProps:h,classNames:a.moreLinkClassNames,content:a.moreLinkContent,defaultContent:n.defaultContent||As,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},(function(t,o,i,a){return n.children(t,["fc-more-link"].concat(o),i,a,e.handleClick,p,r.isPopoverOpen,r.isPopoverOpen?r.popoverId:"")})),r.isPopoverOpen&&i(js,{id:r.popoverId,startDate:d.start,endDate:d.end,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:n.extraDateSpan,parentEl:e.parentEl,alignmentEl:n.alignmentElRef.current,alignGridTop:n.alignGridTop,onClose:e.handlePopoverClose},n.popoverContent()))}))},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=v(this.linkElRef.current,".fc-view-harness"))},t}(mo);function As(e){return e.text}function Us(e){if(e.allDayDate)return{start:e.allDayDate,end:J(e.allDayDate,1)};var t=e.hiddenSegs;return{start:Vs(t),end:Ls(t)}}function Vs(e){return e.reduce(Bs).eventRange.range.start}function Bs(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Ls(e){return e.reduce(Ws).eventRange.range.end}function Ws(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}},f54b:function(e,t,n){}}]); |