function _superPropGet(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r?function(e){return i.apply(n,e)}:i}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},_get.apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)},_wrapNativeSuper(e)}function _construct(e,t,n){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
/*!
FullCalendar Premium Bundle v6.1.15
Docs & License: https://fullcalendar.io/docs/initialize-globals
(c) 2024 Adam Shaw
*/var FullCalendar=function(e){"use strict";var t,n,r,i,a,o,s,l,c,u={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,n,r){var i,a,o,s={};for(o in n)"key"==o?i=n[o]:"ref"==o?a=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return g(e,s,i,a,null)}function g(e,t,i,a,o){var s={type:e,props:t,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++r:o};return null==o&&null!=n.vnode&&n.vnode(s),s}function m(e){return e.children}function y(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function b(e,t,n,r,i){var a;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||y(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||y(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?S:C,a):e.removeEventListener(t,a?S:C,a);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function C(e){a=!0;try{return this.l[e.type+!1](n.event?n.event(e):e)}finally{a=!1}}function S(e){a=!0;try{return this.l[e.type+!0](n.event?n.event(e):e)}finally{a=!1}}function k(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 w(e){a?setTimeout(e):l(e)}function D(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!R.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||w)(R)}function R(){var e,t,n,r,i,a,s,l;for(o.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=o.shift();)e.__d&&(t=o.length,r=void 0,i=void 0,s=(a=(n=e).__v).__e,(l=n.__P)&&(r=[],(i=h({},a)).__v=a.__v+1,O(l,a,i,n.__n,void 0!==l.ownerSVGElement,null!=a.__h?[s]:null,r,null==s?_(a):s,a.__h),H(r,a),a.__e!=s&&E(a)),o.length>t&&o.sort((function(e,t){return e.__v.__b-t.__v.__b})));R.__r=0}function A(e,t,n,r,i,a,o,s,l,c){var f,h,v,p,y,b,C,S=r&&r.__k||d,k=S.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(p=n.__k[f]=null==(p=t[f])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?g(null,p,null,null,p):Array.isArray(p)?g(m,{children:p},null,null,null):p.__b>0?g(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(v=S[f])||v&&p.key==v.key&&p.type===v.type)S[f]=void 0;else for(h=0;h<k;h++){if((v=S[h])&&p.key==v.key&&p.type===v.type){S[h]=void 0;break}v=null}O(e,p,v=v||u,i,a,o,s,l,c),y=p.__e,(h=p.ref)&&v.ref!=h&&(C||(C=[]),v.ref&&C.push(v.ref,null,p),C.push(h,p.__c||y,p)),null!=y?(null==b&&(b=y),"function"==typeof p.type&&p.__k===v.__k?p.__d=l=x(p,l,e):l=M(e,p,v,S,y,l),"function"==typeof n.type&&(n.__d=l)):l&&v.__e==l&&l.parentNode!=e&&(l=_(v))}for(n.__e=b,f=k;f--;)null!=S[f]&&("function"==typeof n.type&&null!=S[f].__e&&S[f].__e==n.__d&&(n.__d=I(r).nextSibling),W(S[f],S[f]));if(C)for(f=0;f<C.length;f++)N(C[f],C[++f],C[++f])}function x(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t="function"==typeof r.type?x(r,t,n):M(n,r,r,i,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 M(e,t,n,r,i,a){var o,s,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=a||null==i.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break e;e.insertBefore(i,a),o=a}return void 0!==o?o:i.nextSibling}function I(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=I(n)))return r;return null}function O(e,t,r,i,a,o,s,l,c){var u,d,f,v,p,g,y,b,C,S,_,E,w,D,R,x=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(c=r.__h,l=t.__e=r.__e,t.__h=null,o=[l]),(u=n.__b)&&u(t);try{e:if("function"==typeof x){if(b=t.props,C=(u=x.contextType)&&i[u.__c],S=u?C?C.props.value:u.__:i,r.__c?y=(d=t.__c=r.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(b,S):(t.__c=d=new k(b,S),d.constructor=x,d.render=j),C&&C.sub(d),d.props=b,d.state||(d.state={}),d.context=S,d.__n=i,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,x.getDerivedStateFromProps(b,d.__s))),v=d.props,p=d.state,d.__v=t,f)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&b!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,S),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===r.__v){for(t.__v!==r.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(v,p,g)}))}if(d.context=S,d.props=b,d.__P=e,E=n.__r,w=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[]}else do{d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(i=h(h({},i),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(v,p)),R=null!=u&&u.type===m&&null==u.key?u.props.children:u,A(e,Array.isArray(R)?R:[R],t,r,i,a,o,s,l,c),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=P(r.__e,t,r,i,a,o,s,c);(u=n.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=o)&&(t.__e=l,t.__h=!!c,o[o.indexOf(l)]=null),n.__e(e,t,r)}}function H(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function P(e,n,r,i,a,o,s,l){var c,d,f,h=r.props,p=n.props,g=n.type,m=0;if("svg"===g&&(a=!0),null!=o)for(;m<o.length;m++)if((c=o[m])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,o[m]=null;break}if(null==e){if(null===g)return document.createTextNode(p);e=a?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),o=null,l=!1}if(null===g)h===p||l&&e.data===p||(e.data=p);else{if(o=o&&t.call(e.childNodes),d=(h=r.props||u).dangerouslySetInnerHTML,f=p.dangerouslySetInnerHTML,!l){if(null!=o)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,i){var a;for(a in n)"children"===a||"key"===a||a in t||b(e,a,null,n[a],r);for(a in t)i&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a]||b(e,a,t[a],n[a],r)}(e,p,h,a,l),f)n.__k=[];else if(m=n.props.children,A(e,Array.isArray(m)?m:[m],n,r,i,a&&"foreignObject"!==g,o,s,o?o[0]:r.__k&&_(r,0),l),null!=o)for(m=o.length;m--;)null!=o[m]&&v(o[m]);l||("value"in p&&void 0!==(m=p.value)&&(m!==e.value||"progress"===g&&!m||"option"===g&&m!==h.value)&&b(e,"value",m,h.value,!1),"checked"in p&&void 0!==(m=p.checked)&&m!==e.checked&&b(e,"checked",m,h.checked,!1))}return e}function N(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function W(e,t,r){var i,a;if(n.unmount&&n.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||N(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){n.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&W(i[a],t,r||"function"!=typeof e.type);r||null==e.__e||v(e.__e),e.__=e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function B(e,r,i){var a,o,s;n.__&&n.__(e,r),o=(a="function"==typeof i)?null:i&&i.__k||r.__k,s=[],O(r,e=(!a&&i||r).__k=p(m,null,[e]),o||u,u,void 0!==r.ownerSVGElement,!a&&i?[i]:o?null:r.firstChild?t.call(r.childNodes):null,s,!a&&i?i:o?o.__e:r.firstChild,a),H(s,e)}t=d.slice,n={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},r=0,i=function(e){return null!=e&&void 0===e.constructor},a=!1,k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),D(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),D(this))},k.prototype.render=m,o=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R.__r=0,c=0;var L,z,U,F=[],G=[],V=n.__b,q=n.__r,Y=n.diffed,Q=n.__c,Z=n.unmount;function X(){for(var e;e=F.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($),e.__H.__h.forEach(ee),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){L=null,V&&V(e)},n.__r=function(e){q&&q(e);var t=(L=e.__c).__H;t&&(z===L?(t.__h=[],L.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=G,e.__N=e.i=void 0}))):(t.__h.forEach($),t.__h.forEach(ee),t.__h=[])),z=L},n.diffed=function(e){Y&&Y(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==F.push(t)&&U===n.requestAnimationFrame||((U=n.requestAnimationFrame)||K)(X)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==G&&(e.__=e.__V),e.i=void 0,e.__V=G}))),z=L=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach($),e.__h=e.__h.filter((function(e){return!e.__||ee(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),Q&&Q(e,t)},n.unmount=function(e){Z&&Z(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{$(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var J="function"==typeof requestAnimationFrame;function K(e){var t,n=function(){clearTimeout(r),J&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);J&&(t=requestAnimationFrame(n))}function $(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 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 ne(e){this.props=e}(ne.prototype=new k).isPureReactComponent=!0,ne.prototype.shouldComponentUpdate=function(e,t){return te(this.props,e)||te(this.state,t)};var re=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),re&&re(e)};var ie=n.__e;n.__e=function(e,t,n,r){if(e.then)for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);ie(e,t,n,r)};var ae=n.unmount;function oe(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return oe(e,t,n)}))),e}function se(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return se(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function le(){this.__u=0,this.t=null,this.__b=null}function ce(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ue(){this.u=null,this.o=null}n.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),ae&&ae(e)},(le.prototype=new k).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ce(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=se(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},le.prototype.componentWillUnmount=function(){this.t=[]},le.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]=oe(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&p(m,null,e.fallback);return i&&(i.__h=null),[p(m,null,t.__a?null:e.children),i]};var de=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 fe(e){return this.getChildContext=function(){return e.context},e.children}function he(e){var t=this,n=e.i;t.componentWillUnmount=function(){B(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)}}),B(p(fe,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ue.prototype=new k).__a=function(e){var t=this,n=ce(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),de(t,e,r)):i()};n?n(a):a()}},ue.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},ue.prototype.componentDidUpdate=ue.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){de(e,n,t)}))};var ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ge="undefined"!=typeof document,me=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(k.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=n.event;function be(){}function Ce(){return this.cancelBubble}function Se(){return this.defaultPrevented}n.event=function(e){return ye&&(e=ye(e)),e.persist=be,e.isPropagationStopped=Ce,e.isDefaultPrevented=Se,e.nativeEvent=e};var ke={configurable:!0,get:function(){return this.class}},_e=n.vnode;n.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var a in r={},n){var o=n[a];ge&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==o||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===o?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!me(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&pe.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=o)}"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&&(ke.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",ke))}e.$$typeof=ve,_e&&_e(e)};var Ee=n.__r;n.__r=function(e){Ee&&Ee(e),e.__c};var we,De=[],Re=new Map;function Ae(e){De.push(e),Re.forEach((function(t){Te(t,e)}))}function xe(e){var t=Re.get(e);if(!t||!t.isConnected){if(!(t=e.querySelector("style[data-fullcalendar]"))){(t=document.createElement("style")).setAttribute("data-fullcalendar","");var n=function(){void 0===we&&(we=function(){var e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");var t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return we}();n&&(t.nonce=n);var r=e===document?document.head:e,i=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,i)}Re.set(e,t),function(e){var t,n=_createForOfIteratorHelper(De);try{for(n.s();!(t=n.n()).done;){Te(e,t.value)}}catch(e){n.e(e)}finally{n.f()}}(t)}}function Te(e,t){var n=e.sheet,r=n.cssRules.length;t.split("}").forEach((function(e,t){(e=e.trim())&&n.insertRule(e+"}",r+t)}))}"undefined"!=typeof document&&xe(document);Ae(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');var Me=function(){return _createClass((function e(t){_classCallCheck(this,e),this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}),[{key:"request",value:function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}},{key:"pause",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()}},{key:"resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}}},{key:"isPaused",value:function(){return Object.keys(this.pauseDepths).length}},{key:"tryDrain",value:function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}},{key:"clear",value:function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}))},{key:"drained",value:function(){this.drainedOption&&this.drainedOption()}}])}();function Ie(e){e.parentNode&&e.parentNode.removeChild(e)}function Oe(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(He(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function He(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function Pe(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i+=1)for(var a=n[i].querySelectorAll(t),o=0;o<a.length;o+=1)r.push(a[o]);return r}function Ne(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i+=1)for(var a=n[i].children,o=0;o<a.length;o+=1){var s=a[o];t&&!He(s,t)||r.push(s)}return r}var We=/(top|left|right|bottom|width|height)$/i;function je(e,t){for(var n in t)Be(e,n,t[n])}function Be(e,t,n){null==n?e.style[t]="":"number"==typeof n&&We.test(t)?e.style[t]="".concat(n,"px"):e.style[t]=n}function Le(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}var ze=0;function Ue(){return"fc-dom-"+(ze+=1)}function Fe(e){e.preventDefault()}function Ge(e,t,n,r){var i=function(e,t){return function(n){var r=Oe(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var Ve=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function qe(e,t){var n=function(r){t(r),Ve.forEach((function(t){e.removeEventListener(t,n)}))};Ve.forEach((function(t){e.addEventListener(t,n)}))}function Ye(e){return Object.assign({onClick:e},Qe(e))}function Qe(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var Ze=0;function Xe(){return String(Ze+=1)}function Je(){document.body.classList.add("fc-not-allowed")}function Ke(){document.body.classList.remove("fc-not-allowed")}function $e(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Fe)}function et(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Fe)}function tt(e){e.addEventListener("contextmenu",Fe)}function nt(e){e.removeEventListener("contextmenu",Fe)}function rt(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function it(e,t,n){var r,i;for(r=0;r<n.length;r+=1)if(i=at(e,t,n[r]))return i;return 0}function at(e,t,n){return n.func?n.func(e,t):ot(e[n.field],t[n.field])*(n.order||1)}function ot(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function st(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function lt(e,t,n){return"function"==typeof e?e.apply(void 0,_toConsumableArray(t)):"string"==typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function ct(e,t){return e-t}function ut(e){return e%1==0}function dt(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 ft=["years","months","days","milliseconds"],ht=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function vt(e,t){return"string"==typeof e?function(e){var t=ht.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}(e):"object"==typeof e&&e?pt(e):"number"==typeof e?pt({[t||"milliseconds"]:e}):null}function pt(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 gt(e){return e.years||e.months||e.milliseconds?0:e.days}function mt(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function yt(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function bt(e){return kt(e)/864e5}function Ct(e){return kt(e)/6e4}function St(e){return kt(e)/1e3}function kt(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function _t(e,t){for(var n=null,r=0;r<ft.length;r+=1){var i=ft[r];if(t[i]){var a=e[i]/t[i];if(!ut(a)||null!==n&&n!==a)return null;n=a}else if(e[i])return null}return n}function Et(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 wt(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n}function Dt(e,t,n){if(e===t)return!0;var r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}var Rt=["sun","mon","tue","wed","thu","fri","sat"];function At(e,t){var n=zt(e);return n[2]+=7*t,Ut(n)}function xt(e,t){var n=zt(e);return n[2]+=t,Ut(n)}function Tt(e,t){var n=zt(e);return n[6]+=t,Ut(n)}function Mt(e,t){return It(e,t)/7}function It(e,t){return(t.valueOf()-e.valueOf())/864e5}function Ot(e,t){var n=Nt(e),r=Nt(t);return{years:0,months:0,days:Math.round(It(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function Ht(e,t){var n=Pt(e,t);return null!==n&&n%7==0?n/7:null}function Pt(e,t){return Gt(e)===Gt(t)?Math.round(It(e,t)):null}function Nt(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Wt(e,t,n,r){var i=Ut([t,0,1+jt(t,n,r)]),a=Nt(e),o=Math.round(It(i,a));return Math.floor(o/7)+1}function jt(e,t,n){var r=7+t-n;return-((7+Ut([e,0,r]).getUTCDay()-t)%7)+r-1}function Bt(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Lt(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 zt(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Ut(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,_toConsumableArray(e)))}function Ft(e){return!isNaN(e.valueOf())}function Gt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],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",Zt(t,!0)))),r}function qt(e){return e.toISOString().replace(/T.*$/,"")}function Yt(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Qt(e){return st(e.getUTCHours(),2)+":"+st(e.getUTCMinutes(),2)+":"+st(e.getUTCSeconds(),2)}function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=Math.round(r%60);return t?"".concat(n+st(i,2),":").concat(st(a,2)):"GMT".concat(n).concat(i).concat(a?":".concat(st(a,2)):"")}function Xt(e,t,n){var r,i;return function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(r){if(!Dt(r,o)){n&&n(i);var l=e.apply(this,o);t&&t(l,i)||(i=l)}}else i=e.apply(this,o);return r=o,i}}function Jt(e,t,n){var r,i,a=this;return function(o){if(r){if(!In(r,o)){n&&n(i);var s=e.call(a,o);t&&t(s,i)||(i=s)}}else i=e.call(a,o);return r=o,i}}function Kt(e,t,n){var r=this,i=[],a=[];return function(o){for(var s=i.length,l=o.length,c=0;c<s;c+=1)if(o[c]){if(!Dt(i[c],o[c])){n&&n(a[c]);var u=e.apply(r,o[c]);t&&t(u,a[c])||(a[c]=u)}}else n&&n(a[c]);for(;c<l;c+=1)a[c]=e.apply(r,o[c]);return i=o,a.splice(l),a}}function $t(e,t,n){var r=this,i={},a={};return function(o){var s={};for(var l in o)if(a[l])if(Dt(i[l],o[l]))s[l]=a[l];else{n&&n(a[l]);var c=e.apply(r,o[l]);s[l]=t&&t(c,a[l])?a[l]:c}else s[l]=e.apply(r,o[l]);return i=o,a=s,s}}var en={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},tn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},nn=/\s*([ap])\.?m\.?/i,rn=/,/g,an=/\s+/g,on=/\u200e/g,sn=/UTC|GMT/,ln=function(){return _createClass((function e(t){_classCallCheck(this,e);var n={},r={},i=0;for(var a in t)a in en?(r[a]=t[a],i=Math.max(en[a],i)):(n[a]=t[a],a in tn&&(i=Math.max(tn[a],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=Xt(cn)}),[{key:"format",value:function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}},{key:"formatRange",value:function(e,t,n,r){var i=this.standardDateProps,a=this.extendedSettings,o=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(Gt(e)!==Gt(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);var s=o;!(s>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(s=1);var l=this.format(e,n),c=this.format(t,n);if(l===c)return l;var u=cn(function(e,t){var n={};for(var r in e)(!(r in tn)||tn[r]<=t)&&(n[r]=e[r]);return n}(i,s),a,n),d=u(e),f=u(t),h=function(e,t,n,r){var i=0;for(;i<e.length;){var a=e.indexOf(t,i);if(-1===a)break;var o=e.substr(0,a);i=a+t.length;for(var s=e.substr(i),l=0;l<n.length;){var c=n.indexOf(r,l);if(-1===c)break;var u=n.substr(0,c);l=c+r.length;var d=n.substr(l);if(o===u&&s===d)return{before:o,after:s}}}return null}(l,d,c,f),v=a.separator||r||n.defaultSeparator||"";return h?h.before+d+v+f+h.after:l+v+c}},{key:"getLargestUnit",value: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"}}}])}();function cn(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Zt(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r,i){var a=[];"long"===i?a.push(n):"short"!==i&&"narrow"!==i||a.push(t);"long"!==i&&"short"!==i||a.push(" ");a.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&a.reverse();return a.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=Object.assign({},e);delete a.minute,r=new Intl.DateTimeFormat(n.locale.codes,a)}return function(a){var o=a.marker;return function(e,t,n,r,i){e=e.replace(on,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(sn,(function(){return n=!0,t})),n||(e+=" ".concat(t));return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Zt(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(rn,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(nn,"").trim():"narrow"===r.meridiem?e=e.replace(nn,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(nn,(function(e,t){return"".concat(t.toLocaleLowerCase(),"m")})):"lowercase"===r.meridiem&&(e=e.replace(nn,(function(e){return e.toLocaleLowerCase()})));return e=e.replace(an," "),e=e.trim(),e}((r&&!o.getUTCMinutes()?r:i).format(o),a,e,t,n)}}(e,t,n)}function un(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 dn(e,t,n,r){var i=un(e,n.calendarSystem);return{date:i,start:i,end:t?un(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var fn=function(){return _createClass((function e(t){_classCallCheck(this,e),this.cmdStr=t}),[{key:"format",value:function(e,t,n){return t.cmdFormatter(this.cmdStr,dn(e,null,t,n))}},{key:"formatRange",value:function(e,t,n,r){return n.cmdFormatter(this.cmdStr,dn(e,t,n,r))}}])}(),hn=function(){return _createClass((function e(t){_classCallCheck(this,e),this.func=t}),[{key:"format",value:function(e,t,n){return this.func(dn(e,null,t,n))}},{key:"formatRange",value:function(e,t,n,r){return this.func(dn(e,t,n,r))}}])}();function vn(e){return"object"==typeof e&&e?new ln(e):"string"==typeof e?new fn(e):"function"==typeof e?new hn(e):null}var pn={navLinkDayClick:wn,navLinkWeekClick:wn,duration:vt,bootstrapFontAwesome:wn,buttonIcons:wn,customButtons:wn,defaultAllDayEventDuration:vt,defaultTimedEventDuration:vt,nextDayThreshold:vt,scrollTime:vt,scrollTimeReset:Boolean,slotMinTime:vt,slotMaxTime:vt,dayPopoverFormat:vn,slotDuration:vt,snapDuration:vt,headerToolbar:wn,footerToolbar:wn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:vn,dayHeaderClassNames:wn,dayHeaderContent:wn,dayHeaderDidMount:wn,dayHeaderWillUnmount:wn,dayCellClassNames:wn,dayCellContent:wn,dayCellDidMount:wn,dayCellWillUnmount:wn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:wn,weekNumbers:Boolean,weekNumberClassNames:wn,weekNumberContent:wn,weekNumberDidMount:wn,weekNumberWillUnmount:wn,editable:Boolean,viewClassNames:wn,viewDidMount:wn,viewWillUnmount:wn,nowIndicator:Boolean,nowIndicatorClassNames:wn,nowIndicatorContent:wn,nowIndicatorDidMount:wn,nowIndicatorWillUnmount:wn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:wn,locale:wn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:wn,eventOrder:rt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:wn,contentHeight:wn,direction:String,weekNumberFormat:vn,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:wn,initialDate:wn,now:wn,eventDataTransform:wn,stickyHeaderDates:wn,stickyFooterScrollbar:wn,viewHeight:wn,defaultAllDay:Boolean,eventSourceFailure:wn,eventSourceSuccess:wn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:wn,eventConstraint:wn,eventAllow:wn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:wn,eventContent:wn,eventDidMount:wn,eventWillUnmount:wn,selectConstraint:wn,selectOverlap:wn,selectAllow:wn,droppable:Boolean,unselectCancel:String,slotLabelFormat:wn,slotLaneClassNames:wn,slotLaneContent:wn,slotLaneDidMount:wn,slotLaneWillUnmount:wn,slotLabelClassNames:wn,slotLabelContent:wn,slotLabelDidMount:wn,slotLabelWillUnmount:wn,dayMaxEvents:wn,dayMaxEventRows:wn,dayMinWidth:Number,slotLabelInterval:vt,allDayText:String,allDayClassNames:wn,allDayContent:wn,allDayDidMount:wn,allDayWillUnmount:wn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:vn,rerenderDelay:Number,moreLinkText:wn,moreLinkHint:wn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:wn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:vt,hiddenDays:wn,fixedWeekCount:Boolean,validRange:wn,visibleRange:wn,titleFormat:wn,eventInteractive:Boolean,noEventsText:String,viewHint:wn,navLinkHint:wn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:wn,moreLinkClassNames:wn,moreLinkContent:wn,moreLinkDidMount:wn,moreLinkWillUnmount:wn,monthStartFormat:vn,handleCustomRendering:wn,customRenderingMetaMap:wn,customRenderingReplaces:Boolean},gn={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},mn={datesSet:wn,eventsSet:wn,eventAdd:wn,eventChange:wn,eventRemove:wn,windowResize:wn,eventClick:wn,eventMouseEnter:wn,eventMouseLeave:wn,select:wn,unselect:wn,loading:wn,_unmount:wn,_beforeprint:wn,_afterprint:wn,_noEventDrop:wn,_noEventResize:wn,_resize:wn,_scrollRequest:wn},yn={buttonText:wn,buttonHints:wn,views:wn,plugins:wn,initialEvents:wn,events:wn,eventSources:wn},bn={headerToolbar:Cn,footerToolbar:Cn,buttonText:Cn,buttonHints:Cn,buttonIcons:Cn,dateIncrement:Cn,plugins:Sn,events:Sn,eventSources:Sn,resources:Sn};function Cn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?In(e,t):e===t}function Sn(e,t){return Array.isArray(e)&&Array.isArray(t)?Dt(e,t):e===t}var kn={type:String,component:wn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:wn,usesMinMaxTime:Boolean,classNames:wn,content:wn,didMount:wn,willUnmount:wn};function _n(e){return Rn(e,bn)}function En(e,t){var n={},r={};for(var i in t)i in e&&(n[i]=t[i](e[i]));for(var a in e)a in t||(r[a]=e[a]);return{refined:n,extra:r}}function wn(e){return e}var Dn=Object.prototype.hasOwnProperty;function Rn(e,t){var n={};if(t)for(var r in t)if(t[r]===Cn){for(var i=[],a=e.length-1;a>=0;a-=1){var o=e[a][r];if("object"==typeof o&&o)i.unshift(o);else if(void 0!==o){n[r]=o;break}}i.length&&(n[r]=Rn(i))}for(var s=e.length-1;s>=0;s-=1){var l=e[s];for(var c in l)c in n||(n[c]=l[c])}return n}function An(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function xn(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Tn(e){var t,n={},r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(e){r.e(e)}finally{r.f()}return n}function Mn(e){var t=[];for(var n in e)t.push(e[n]);return t}function In(e,t){if(e===t)return!0;for(var n in e)if(Dn.call(e,n)&&!(n in t))return!1;for(var r in t)if(Dn.call(t,r)&&e[r]!==t[r])return!1;return!0}var On=/^on[A-Z]/;function Hn(e,t){var n=[];for(var r in e)Dn.call(e,r)&&(r in t||n.push(r));for(var i in t)Dn.call(t,i)&&e[i]!==t[i]&&n.push(i);return n}function Pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;for(var r in t)if(!(r in e)||!Nn(e[r],t[r],n[r]))return!1;for(var i in e)if(!(i in t))return!1;return!0}function Nn(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=[];null==n&&(n=Object.keys(e).length);for(var a=t;a<n;a+=r){var o=e[a];void 0!==o&&i.push(o)}return i}var jn={};var Bn,Ln=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"getMarkerYear",value:function(e){return e.getUTCFullYear()}},{key:"getMarkerMonth",value:function(e){return e.getUTCMonth()}},{key:"getMarkerDay",value:function(e){return e.getUTCDate()}},{key:"arrayToMarker",value:function(e){return Ut(e)}},{key:"markerToArray",value:function(e){return zt(e)}}])}();Bn=Ln,jn["gregory"]=Bn;var zn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Un(e){var t=zn.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.".concat(t[12])):0));if(Ft(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 Fn=function(){return _createClass((function e(t){_classCallCheck(this,e);var n=this.timeZone=t.timeZone,r="local"!==n&&"UTC"!==n;t.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new jn[e]}(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof t.firstDay&&(this.weekDow=t.firstDay),"function"==typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=null!=t.weekText?t.weekText:t.locale.options.weekText,this.weekTextLong=(null!=t.weekTextLong?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}),[{key:"createMarker",value:function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker}},{key:"createNowMarker",value:function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Ut(Bt(new Date))}},{key:"createMarkerMeta",value: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=Ut(e)),null!==t&&Ft(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}},{key:"parse",value:function(e){var t=Un(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}}},{key:"getYear",value:function(e){return this.calendarSystem.getMarkerYear(e)}},{key:"getMonth",value:function(e){return this.calendarSystem.getMarkerMonth(e)}},{key:"getDay",value:function(e){return this.calendarSystem.getMarkerDay(e)}},{key:"add",value: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)}},{key:"subtract",value: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)}},{key:"addYears",value:function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}},{key:"addMonths",value:function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}},{key:"diffWholeYears",value:function(e,t){var n=this.calendarSystem;return Gt(e)===Gt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}},{key:"diffWholeMonths",value:function(e,t){var n=this.calendarSystem;return Gt(e)===Gt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}},{key:"greatestWholeUnit",value:function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=Ht(e,t))?{unit:"week",value:n}:null!==(n=Pt(e,t))?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),ut(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),ut(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),ut(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()})))}},{key:"countDurationsBetween",value:function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(bt(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return bt(e)/30}(n):n.days&&null!==(r=Pt(e,t))?r/bt(n):(t.valueOf()-e.valueOf())/kt(n)}},{key:"startOf",value:function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Nt(e):"hour"===t?function(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return Ut([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}},{key:"startOfYear",value:function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}},{key:"startOfMonth",value:function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}},{key:"startOfWeek",value:function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}},{key:"computeWeekNumber",value:function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),i=Wt(e,r,t,n);if(i<1)return Wt(e,r-1,t,n);var a=Wt(e,r+1,t,n);return a>=1?Math.min(i,a):i}(e,this.weekDow,this.weekDoy)}},{key:"format",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}},{key:"formatRange",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r.isEndExclusive&&(t=Tt(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}},{key:"formatIso",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Vt(e,n,t.omitTime)}},{key:"timestampToMarker",value:function(e){return"local"===this.timeZone?Ut(Bt(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Ut(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}},{key:"offsetForMarker",value:function(e){return"local"===this.timeZone?-Lt(zt(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(zt(e)):null}},{key:"toDate",value:function(e,t){return"local"===this.timeZone?Lt(zt(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(zt(e))*60):new Date(e.valueOf()-(t||0))}}])}(),Gn=function(){return _createClass((function e(t){_classCallCheck(this,e),this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}),[{key:"setIconOverride",value:function(e){var t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}},{key:"applyIconOverridePrefix",value:function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}},{key:"getClass",value:function(e){return this.classes[e]||""}},{key:"getIconClass",value:function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?"".concat(this.baseIconClass," ").concat(n):""}},{key:"getCustomButtonIconClass",value:function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?"".concat(this.baseIconClass," ").concat(this.applyIconOverridePrefix(t)):""}}])}();function Vn(e){e();var t=n.debounceRendering,r=[];for(n.debounceRendering=function(e){r.push(e)},B(p(qn,{}),document.createElement("div"));r.length;)r.shift()();n.debounceRendering=t}Gn.prototype.classes={},Gn.prototype.iconClasses={},Gn.prototype.baseIconClass="",Gn.prototype.iconOverridePrefix="";var qn=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return p("div",{})}},{key:"componentDidMount",value:function(){this.setState({})}}])}(k);function Yn(e){var t=function(e,t){var n={__c:t="__cC"+c++,__: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((function(e){e.__e=!0,D(e)}))},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}(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var i=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&i.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){i.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){i.splice(i.indexOf(e),1),t&&t.call(e)}}}return r},t}var Qn=function(){return _createClass((function e(t,n,r,i){var a=this;_classCallCheck(this,e),this.execFunc=t,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=function(e){a.queuedRequest=Object.assign({},a.queuedRequest||{},e),a.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}),[{key:"detach",value:function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}},{key:"update",value:function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}},{key:"fireInitialScroll",value:function(){this.handleScrollRequest({time:this.scrollTime})}},{key:"drain",value:function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}])}(),Zn=Yn({});function Xn(e,t,n,r,i,a,o,s,l,c,u,d,f){return{dateEnv:i,options:n,pluginHooks:o,emitter:c,dispatch:s,getCurrentData:l,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:a,isRtl:"rtl"===n.direction,addResizeHandler(e){c.on("_resize",e)},removeResizeHandler(e){c.off("_resize",e)},createScrollResponder:e=>new Qn(e,c,vt(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var Jn=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"shouldComponentUpdate",value:function(e,t){return this.debug&&console.log(Hn(e,this.props),Hn(t,this.state)),!Pn(this.props,e,this.propEquality)||!Pn(this.state,t,this.stateEquality)}},{key:"safeSetState",value:function(e){Pn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}])}(k);Jn.addPropsEquality=function(e){var t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Jn.addStateEquality=function(e){var t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Jn.contextType=Zn,Jn.prototype.propEquality={},Jn.prototype.stateEquality={};var Kn=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t)}(Jn);function $n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Kn.contextType=Zn;var er=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).id=Xe(),e.queuedDomNodes=[],e.currentDomNodes=[],e.handleEl=function(t){var n=e.context.options,r=e.props.generatorName;n.customRenderingReplaces&&tr(r,n)||e.updateElRef(t)},e.updateElRef=function(t){e.props.elRef&&$n(e.props.elRef,t)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e,t,n=this.props,r=this.context.options,a=n.customGenerator,o=n.defaultGenerator,s=n.renderProps,l=nr(n,[],this.handleEl),c=!1,u=[];if(null!=a){var d="function"==typeof a?a(s,p):a;if(!0===d)c=!0;else{var f=d&&"object"==typeof d;f&&"html"in d?l.dangerouslySetInnerHTML={__html:d.html}:f&&"domNodes"in d?u=Array.prototype.slice.call(d.domNodes):(f?i(d):"function"!=typeof d)?e=d:t=d}}else c=!tr(n.generatorName,r);return c&&o&&(e=o(s)),this.queuedDomNodes=u,this.currentGeneratorMeta=t,p(n.elTag,l,e)}},{key:"componentDidMount",value:function(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}},{key:"componentDidUpdate",value:function(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}},{key:"componentWillUnmount",value:function(){this.triggerCustomRendering(!1)}},{key:"triggerCustomRendering",value:function(e){var t,n=this.props,r=this.context.options,i=r.handleCustomRendering,a=r.customRenderingMetaMap;if(i){var o=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==a?void 0:a[n.generatorName];o&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:o},n),{elClasses:(n.elClasses||[]).filter(rr)}))}}},{key:"applyQueueudDomNodes",value:function(){var e=this.queuedDomNodes,t=this.currentDomNodes,n=this.base;if(!Dt(e,t)){t.forEach(Ie);var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;n.appendChild(a)}}catch(e){i.e(e)}finally{i.f()}this.currentDomNodes=e}}}])}(Kn);function tr(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function nr(e,t,n){var r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function rr(e){return Boolean(e)}er.addPropsEquality({elClasses:Dt,elStyle:In,elAttrs:function(e,t){var n,r=_createForOfIteratorHelper(Hn(e,t));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!On.test(i))return!1}}catch(e){r.e(e)}finally{r.f()}return!0},renderProps:In});var ir=Yn(0),ar=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).InnerContent=or.bind(void 0,e),e.handleEl=function(t){e.el=t,e.props.elRef&&($n(e.props.elRef,t),t&&e.didMountMisfire&&e.componentDidMount())},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e,t,n,r=this.props,i=(e=r.classNameGenerator,t=r.renderProps,"string"==typeof(n="function"==typeof e?e(t):e||[])?[n]:n);if(r.children){var a=nr(r,i,this.handleEl),o=r.children(this.InnerContent,r.renderProps,a);return r.elTag?p(r.elTag,a,o):o}return p(er,Object.assign(Object.assign({},r),{elRef:this.handleEl,elTag:r.elTag||"div",elClasses:(r.elClasses||[]).concat(i),renderId:this.context}))}},{key:"componentDidMount",value:function(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}},{key:"componentWillUnmount",value:function(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}])}(k);function or(e,t){var n=e.props;return p(er,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}ar.contextType=ir;var sr=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi};return p(ar,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[].concat(_toConsumableArray(lr(e.viewSpec)),_toConsumableArray(e.elClasses||[])),renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(function(){return e.children}))}}])}(Kn);function lr(e){return["fc-".concat(e.type,"-view"),"fc-view"]}function cr(e,t){var n,r,i=[],a=t.start;for(e.sort(ur),n=0;n<e.length;n+=1)(r=e[n]).start>a&&i.push({start:a,end:r.start}),r.end>a&&(a=r.end);return a<t.end&&i.push({start:a,end:t.end}),i}function ur(e,t){return e.start.valueOf()-t.start.valueOf()}function dr(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function fr(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 hr(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function vr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function pr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function gr(e){var t=Math.floor(It(e.start,e.end))||1,n=Nt(e.start);return{start:n,end:xt(n,t)}}function mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vt(0),n=null,r=null;if(e.end){r=Nt(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=kt(t)&&(r=xt(r,1))}return e.start&&(n=Nt(e.start),r&&r<=n&&(r=xt(n,1))),{start:n,end:r}}function yr(e){var t=mr(e);return It(t.start,t.end)>1}function br(e,t,n,r){return"year"===r?vt(n.diffWholeYears(e,t),"year"):"month"===r?vt(n.diffWholeMonths(e,t),"month"):Ot(e,t)}function Cr(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var Sr=function(){return _createClass((function e(t){_classCallCheck(this,e),this.props=t,this.nowDate=Cr(t.nowInput,t.dateEnv),this.initHiddenDays()}),[{key:"buildPrev",value:function(e,t,n){var r=this.props.dateEnv,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}},{key:"buildNext",value:function(e,t,n){var r=this.props.dateEnv,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}},{key:"build",value:function(e,t){var n,r,i,a,o,s,l,c,u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=this.props;return n=this.buildValidRange(),n=this.trimHiddenDays(n),u&&(l=e,e=null!=(c=n).start&&l<c.start?c.start:null!=c.end&&l>=c.end?new Date(c.end.valueOf()-1):l),r=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(r.unit),a=this.buildRenderRange(this.trimHiddenDays(r.range),r.unit,i),o=a=this.trimHiddenDays(a),d.showNonCurrentDates||(o=dr(o,r.range)),o=dr(o=this.adjustActiveRange(o),n),s=hr(r.range,n),pr(a,e)||(e=a.start),{currentDate:e,validRange:n,currentRange:r.range,currentRangeUnit:r.unit,isRangeAllDay:i,activeRange:o,renderRange:a,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:s,dateIncrement:this.buildDateIncrement(r.duration)}}},{key:"buildValidRange",value: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}}},{key:"buildCurrentRangeInfo",value:function(e,t){var n,r=this.props,i=null,a=null,o=null;return r.duration?(i=r.duration,a=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,a)):(n=this.props.dayCount)?(a="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?a=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(a=Et(i=this.getFallbackDuration()).unit,o=this.buildRangeFromDuration(e,t,i,a)),{duration:i,unit:a,range:o}}},{key:"getFallbackDuration",value:function(){return vt({day:1})}},{key:"adjustActiveRange",value:function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,i=t.slotMinTime,a=t.slotMaxTime,o=e.start,s=e.end;return r&&(bt(i)<0&&(o=Nt(o),o=n.add(o,i)),bt(a)>1&&(s=xt(s=Nt(s),-1),s=n.add(s,a))),{start:o,end:s}}},{key:"buildRangeFromDuration",value:function(e,t,n,r){var i,a,o,s=this.props,l=s.dateEnv,c=s.dateAlignment;if(!c){var u=this.props.dateIncrement;c=u&&kt(u)<kt(n)?Et(u).unit:r}function d(){i=l.startOf(e,c),a=l.add(i,n),o={start:i,end:a}}return bt(n)<=1&&this.isHiddenDay(i)&&(i=Nt(i=this.skipHiddenDays(i,t))),d(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),d()),o}},{key:"buildRangeFromDayCount",value:function(e,t,n){var r,i=this.props,a=i.dateEnv,o=i.dateAlignment,s=0,l=e;o&&(l=a.startOf(l,o)),l=Nt(l),r=l=this.skipHiddenDays(l,t);do{r=xt(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:l,end:r}}},{key:"buildCustomVisibleRange",value:function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}},{key:"buildRenderRange",value:function(e,t,n){return e}},{key:"buildDateIncrement",value:function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?vt(1,t):e||vt({days:1}))}},{key:"refineRange",value:function(e){if(e){var t=(n=e,r=this.props.dateEnv,i=null,a=null,n.start&&(i=r.createMarker(n.start)),n.end&&(a=r.createMarker(n.end)),i||a?i&&a&&a<i?null:{start:i,end:a}:null);return t&&(t=mr(t)),t}var n,r,i,a;return null}},{key:"initHiddenDays",value: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}},{key:"trimHiddenDays",value: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}},{key:"isHiddenDay",value:function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}},{key:"skipHiddenDays",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=xt(e,t);return e}}])}();function kr(e,t,n,r){return{instanceId:Xe(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function _r(e,t,n){var r=n.dateEnv,i=n.pluginHooks,a=n.options,o=e.defs,s=e.instances;for(var l in s=An(s,(function(e){return!o[e.defId].recurringDef})),o){var c=o[l];if(c.recurringDef){var u=c.recurringDef.duration;u||(u=c.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);var d,f=_createForOfIteratorHelper(Er(c,u,t,r,i.recurringTypes));try{for(f.s();!(d=f.n()).done;){var h=d.value,v=kr(l,{start:h,end:r.add(h,u)});s[v.instanceId]=v}}catch(e){f.e(e)}finally{f.f()}}}return{defs:o,instances:s}}function Er(e,t,n,r,i){var a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(Nt)),a}var wr={id:String,groupId:String,title:String,url:String,interactive:Boolean},Dr={start:wn,end:wn,date:wn,allDay:Boolean},Rr=Object.assign(Object.assign(Object.assign({},wr),Dr),{extendedProps:wn});function Ar(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Tr(n),a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=xr(e,n,i),l=s.refined,c=s.extra,u=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),d=function(e,t,n,r){for(var i=0;i<r.length;i+=1){var a=r[i].parse(e,n);if(a){var o=e.allDay;return null==o&&null==(o=t)&&null==(o=a.allDayGuess)&&(o=!1),{allDay:o,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}(l,u,n.dateEnv,n.pluginHooks.recurringTypes);if(d){var f=Mr(l,c,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,a);return f.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:f,instance:null}}var h=function(e,t,n,r){var i,a,o=e.allDay,s=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(u),i)s=i.marker;else if(!r)return null;null!=e.end&&(a=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!a||a.isTimeUnspecified));o&&s&&(s=Nt(s));a&&(c=a.marker,o&&(c=Nt(c)),s&&c<=s&&(c=null));c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:o,hasEnd:l,range:{start:s,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(l,u,n,r);if(h){var v=Mr(l,c,t?t.sourceId:"",h.allDay,h.hasEnd,n,a),p=kr(v.defId,h.range,h.forcedStartTzo,h.forcedEndTzo);return o&&v.publicId&&o[v.publicId]&&(p.instanceId=o[v.publicId]),{def:v,instance:p}}return null}function xr(e,t){return En(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tr(t))}function Tr(e){return Object.assign(Object.assign(Object.assign({},Br),Rr),e.pluginHooks.eventRefiners)}function Mr(e,t,n,r,i,a,o){var s,l={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||Xe(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:zr(e,a),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)},c=_createForOfIteratorHelper(a.pluginHooks.eventDefMemberAdders);try{for(c.s();!(s=c.n()).done;){var u=s.value;Object.assign(l,u(e))}}catch(e){c.e(e)}finally{c.f()}return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function Ir(e,t,n,r,i,a){var o,s={defs:{},instances:{}},l=Tr(n),c=_createForOfIteratorHelper(e);try{for(c.s();!(o=c.n()).done;){var u=Ar(o.value,t,n,r,l,i,a);u&&Or(u,s)}}catch(e){c.e(e)}finally{c.f()}return s}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{defs:{},instances:{}};return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Hr(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=Wr(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function Pr(){return{defs:{},instances:{}}}function Nr(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Wr(e,t){var n=An(e.defs,t),r=An(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function jr(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Br={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:wn,overlap:wn,allow:wn,className:jr,classNames:jr,color:String,backgroundColor:String,borderColor:String,textColor:String},Lr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function zr(e,t){var n=function(e,t){return Array.isArray(e)?Ir(e,null,t,!0):"object"==typeof e&&e?Ir([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Ur(e){return e.reduce(Fr,Lr)}function Fr(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 Gr={id:String,defaultAllDay:Boolean,url:String,format:String,events:wn,eventDataTransform:wn,success:wn,failure:wn};function Vr(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qr(t);if("string"==typeof e?n={url:e}:"function"==typeof e||Array.isArray(e)?n={events:e}:"object"==typeof e&&e&&(n=e),n){var i=En(n,r),a=i.refined,o=i.extra,s=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var i=n[r].parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}(a,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:a.defaultAllDay,eventDataTransform:a.eventDataTransform,success:a.success,failure:a.failure,publicId:a.id||"",sourceId:Xe(),sourceDefId:s.sourceDefId,meta:s.meta,ui:zr(a,t),extendedProps:o}}return null}function qr(e){return Object.assign(Object.assign(Object.assign({},Br),Gr),e.pluginHooks.eventSourceRefiners)}function Yr(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,a){if(t&&n===t.latestFetchId){var o=Ir(Qr(i,t,a),t,a);return r&&(o=_r(o,r,a)),Nr(Jr(e,t.sourceId),o)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r,i){var a=function(e){var t=e.defs,n=e.instances,r={},i={};for(var a in t){var o=t[a].publicId;o&&(r[o]=a)}for(var s in n){var l=t[n[s].defId].publicId;l&&(i[l]=s)}return{defIdMap:r,instanceIdMap:i}}(e),o=a.defIdMap,s=a.instanceIdMap,l=Ir(Qr(n,t,i),t,i,!1,o,s);return _r(l,r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=_r(t,n,r));return Nr(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Nr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?_r(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,i={},a={};for(var o in n)t.defs[o]||(i[o]=n[o]);for(var s in r)!t.instances[s]&&i[r[s].defId]&&(a[s]=r[s]);return{defs:i,instances:a}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Jr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Wr(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Qr(e,t,n){var r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=Zr(e,i)),r&&(e=Zr(e,r)),e}function Zr(e,t){var n;if(t){n=[];var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=t(a);o?n.push(o):null==o&&n.push(a)}}catch(e){i.e(e)}finally{i.f()}}else n=e;return n}function Xr(e,t,n){var r=e.defs,i=xn(e.instances,(function(e){return r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:i}}function Jr(e,t){return Wr(e,(function(e){return e.sourceId!==t}))}var Kr=function(){return _createClass((function e(){_classCallCheck(this,e),this.handlers={},this.thisContext=null}),[{key:"setThisContext",value:function(e){this.thisContext=e}},{key:"setOptions",value:function(e){this.options=e}},{key:"on",value:function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}},{key:"off",value:function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)}},{key:"trigger",value:function(e){for(var t=this.handlers[e]||[],n=this.options&&this.options[e],r=[].concat(n||[],t),i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];var s,l=_createForOfIteratorHelper(r);try{for(l.s();!(s=l.n()).done;){s.value.apply(this.thisContext,a)}}catch(e){l.e(e)}finally{l.f()}}},{key:"hasHandlers",value:function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}])}();var $r={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ei(e,t){return Ir(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return Object.assign(Object.assign({},$r),e)}))}(e),null,t)}function ti(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},ni(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function ni(e,t){var n,r,i,a={},o=_createForOfIteratorHelper(t.pluginHooks.dateSpanTransforms);try{for(o.s();!(n=o.n()).done;){var s=n.value;Object.assign(a,s(e,t))}}catch(e){o.e(e)}finally{o.f()}return Object.assign(a,(r=e,i=t.dateEnv,Object.assign(Object.assign({},Mi(r.range,i,r.allDay)),{allDay:r.allDay}))),a}function ri(e,t,n){var r=n.dateEnv,i=n.options,a=t;return e?(a=Nt(a),a=r.add(a,i.defaultAllDayEventDuration)):a=r.add(a,i.defaultTimedEventDuration),a}function ii(e,t,n,r){var i=pi(e.defs,t),a={defs:{},instances:{}};for(var o in e.defs){var s=e.defs[o];a.defs[o]=ai(s,i[o],n,r)}for(var l in e.instances){var c=e.instances[l],u=a.defs[c.defId];a.instances[l]=oi(c,u,i[c.defId],n,r)}return a}function ai(e,t,n,r){var i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);var a=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));var o,s=_createForOfIteratorHelper(r.pluginHooks.eventDefMutationAppliers);try{for(s.s();!(o=s.n()).done;){(0,o.value)(a,n,r)}}catch(e){s.e(e)}finally{s.f()}return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function oi(e,t,n,r,i){var a=i.dateEnv,o=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return o&&(l.range=gr(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,r.datesDelta),end:a.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:ri(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Nt(l.range.start),end:Nt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=ri(t.allDay,l.range.start,i)),l}var si=function(){return _createClass((function e(t,n){_classCallCheck(this,e),this.context=t,this.internalEventSource=n}),[{key:"remove",value:function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}},{key:"refetch",value:function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}},{key:"id",get:function(){return this.internalEventSource.publicId}},{key:"url",get:function(){return this.internalEventSource.meta.url}},{key:"format",get:function(){return this.internalEventSource.meta.format}}])}(),li=function(){function e(t,n,r){_classCallCheck(this,e),this._context=t,this._def=n,this._instance=r||null}return _createClass(e,[{key:"setProp",value:function(e,t){if(e in Dr);else if("id"===e)t=wr[e](t),this.mutate({standardProps:{publicId:t}});else if(e in wr)t=wr[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Br){var n=Br[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else"Could not set prop '".concat(e,"'. Use setExtendedProp instead.")}},{key:"setExtendedProp",value:function(e,t){this.mutate({extendedProps:{[e]:t}})}},{key:"setStart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=br(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}}},{key:"setEnd",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._context.dateEnv;if((null==e||(t=r.createMarker(e)))&&this._instance)if(t){var i=br(this._instance.range.end,t,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}},{key:"setDates",value:function(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this._context.dateEnv,s={allDay:a.allDay},l=o.createMarker(e);if(l&&((null==t||(n=o.createMarker(t)))&&this._instance)){var c=this._instance.range;!0===a.allDay&&(c=gr(c));var u=br(c.start,l,o,a.granularity);if(n){var d=br(c.end,n,o,a.granularity);i=d,(r=u).years===i.years&&r.months===i.months&&r.days===i.days&&r.milliseconds===i.milliseconds?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}}},{key:"moveStart",value:function(e){var t=vt(e);t&&this.mutate({startDelta:t})}},{key:"moveEnd",value:function(e){var t=vt(e);t&&this.mutate({endDelta:t})}},{key:"moveDates",value:function(e){var t=vt(e);t&&this.mutate({datesDelta:t})}},{key:"setAllDay",value:function(e){var t={allDay:e},n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).maintainDuration;null==n&&(n=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(t.hasEnd=n),this.mutate({standardProps:t})}},{key:"formatRange",value:function(e){var t=this._context.dateEnv,n=this._instance,r=vn(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})}},{key:"mutate",value:function(t){var n=this._instance;if(n){var r=this._def,i=this._context,a=i.getCurrentData().eventStore,o=Hr(a,n.instanceId);o=ii(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);var s=new e(i,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:o}),i.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:ui(o,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:a})}})}}},{key:"remove",value:function(){var e=this._context,t=ci(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}},{key:"source",get:function(){var e=this._def.sourceId;return e?new si(this._context,this._context.getCurrentData().eventSources[e]):null}},{key:"start",get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}},{key:"end",get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}},{key:"startStr",get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}},{key:"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}):""}},{key:"id",get:function(){return this._def.publicId}},{key:"groupId",get:function(){return this._def.groupId}},{key:"allDay",get:function(){return this._def.allDay}},{key:"title",get:function(){return this._def.title}},{key:"url",get:function(){return this._def.url}},{key:"display",get:function(){return this._def.ui.display||"auto"}},{key:"startEditable",get:function(){return this._def.ui.startEditable}},{key:"durationEditable",get:function(){return this._def.ui.durationEditable}},{key:"constraint",get:function(){return this._def.ui.constraints[0]||null}},{key:"overlap",get:function(){return this._def.ui.overlap}},{key:"allow",get:function(){return this._def.ui.allows[0]||null}},{key:"backgroundColor",get:function(){return this._def.ui.backgroundColor}},{key:"borderColor",get:function(){return this._def.ui.borderColor}},{key:"textColor",get:function(){return this._def.ui.textColor}},{key:"classNames",get:function(){return this._def.ui.classNames}},{key:"extendedProps",get:function(){return this._def.extendedProps}},{key:"toPlainObject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._def,n=t.ui,r=this.startStr,i=this.endStr,a={allDay:t.allDay};return t.title&&(a.title=t.title),r&&(a.start=r),i&&(a.end=i),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}},{key:"toJSON",value:function(){return this.toPlainObject()}}])}();function ci(e){var t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function ui(e,t,n){var r=e.defs,i=e.instances,a=[],o=n?n.instanceId:"";for(var s in i){var l=i[s],c=r[l.defId];l.instanceId!==o&&a.push(new li(t,c,l))}return a}function di(e,t,n,r){var i={},a={},o={},s=[],l=[],c=pi(e.defs,t);for(var u in e.defs){var d=e.defs[u];"inverse-background"===c[d.defId].display&&(d.groupId?(i[d.groupId]=[],o[d.groupId]||(o[d.groupId]=d)):a[u]=[])}for(var f in e.instances){var h=e.instances[f],v=e.defs[h.defId],p=c[v.defId],g=h.range,m=!v.allDay&&r?mr(g,r):g,y=dr(m,n);y&&("inverse-background"===p.display?v.groupId?i[v.groupId].push(y):a[h.defId].push(y):"none"!==p.display&&("background"===p.display?s:l).push({def:v,ui:p,instance:h,range:y,isStart:m.start&&m.start.valueOf()===y.start.valueOf(),isEnd:m.end&&m.end.valueOf()===y.end.valueOf()}))}for(var b in i){var C,S=_createForOfIteratorHelper(cr(i[b],n));try{for(S.s();!(C=S.n()).done;){var k=C.value,_=o[b],E=c[_.defId];s.push({def:_,ui:E,instance:null,range:k,isStart:!1,isEnd:!1})}}catch(e){S.e(e)}finally{S.f()}}for(var w in a){var D,R=_createForOfIteratorHelper(cr(a[w],n));try{for(R.s();!(D=R.n()).done;){var A=D.value;s.push({def:e.defs[w],ui:c[w],instance:null,range:A,isStart:!1,isEnd:!1})}}catch(e){R.e(e)}finally{R.f()}}return{bg:s,fg:l}}function fi(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function hi(e,t){e.fcSeg=t}function vi(e){return e.fcSeg||e.parentNode.fcSeg||null}function pi(e,t){return xn(e,(function(e){return gi(e,t)}))}function gi(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Ur(n)}function mi(e,t){var n=e.map(yi);return n.sort((function(e,n){return it(e,n,t)})),n.map((function(e){return e._seg}))}function yi(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function bi(e,t){var n,r=t.pluginHooks.isDraggableTransformers,i=e.eventRange,a=i.def,o=i.ui,s=o.startEditable,l=_createForOfIteratorHelper(r);try{for(l.s();!(n=l.n()).done;){s=(0,n.value)(s,a,o,t)}}catch(e){l.e(e)}finally{l.f()}return s}function Ci(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Si(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function ki(e,t,n,r,i,a,o){var s=n.dateEnv,l=n.options,c=l.displayEventTime,u=l.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==u&&(u=!1!==i);var h=f.range.start,v=f.range.end,p=a||e.start||e.eventRange.range.start,g=o||e.end||e.eventRange.range.end,m=Nt(h).valueOf()===Nt(p).valueOf(),y=Nt(Tt(v,-1)).valueOf()===Nt(Tt(g,-1)).valueOf();return c&&!d.allDay&&(m||y)?(p=m?h:p,g=y?v:g,u&&d.hasEnd?s.formatRange(p,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):s.format(p,t,{forcedTzo:a?null:f.forcedStartTzo})):""}function _i(e,t,n){var r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&pr(t,r.start)}}function Ei(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 wi(e){return e.instance?e.instance.instanceId:"".concat(e.def.defId,":").concat(e.range.start.toISOString())}function Di(e,t){var n=e.eventRange,r=n.def,i=n.instance,a=r.url;if(a)return{href:a};var o=t.emitter,s=t.options.eventInteractive;return null==s&&null==(s=r.interactive)&&(s=Boolean(o.hasHandlers("eventClick"))),s?Qe((function(e){o.trigger("eventClick",{el:e.target,event:new li(t,r,i),jsEvent:e,view:t.viewApi})})):{}}var Ri={start:wn,end:wn,allDay:Boolean};function Ai(e,t,n){var r=function(e,t){var n=En(e,Ri),r=n.refined,i=n.extra,a=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,s=r.allDay;null==s&&(s=a&&a.isTimeUnspecified&&(!o||o.isTimeUnspecified));return Object.assign({range:{start:a?a.marker:null,end:o?o.marker:null},allDay:s},i)}(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function xi(e,t){return fr(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var r in e)if(!(r in t))return!1;return!0}(e,t)}function Ti(e,t,n){return Object.assign(Object.assign({},Mi(e,t,n)),{timeZone:t.timeZone})}function Mi(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 Ii(e,t,n){var r=!1,i=function(e){r||(r=!0,t(e))},a=function(e){r||(r=!0,n(e))},o=e(i,a);o&&"function"==typeof o.then&&o.then(i,a)}var Oi,Hi=function(){function e(t,n){var r;return _classCallCheck(this,e),(r=_callSuper(this,e,[t])).response=n,r}return _inherits(e,_wrapNativeSuper(Error)),_createClass(e)}();function Pi(e,t,n){var r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((function(e){if(e.ok)return e.json().then((function(t){return[t,e]}),(function(){throw new Hi("Failure parsing JSON",e)}));throw new Hi("Request failed",e)}))}function Ni(){return null==Oi&&(Oi=function(){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").offsetHeight>0;return document.body.removeChild(e),t}()),Oi}var Wi=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).state={forPrint:!1},e.handleBeforePrint=function(){Vn((function(){e.setState({forPrint:!0})}))},e.handleAfterPrint=function(){Vn((function(){e.setState({forPrint:!1})}))},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,a=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-".concat(t.direction),e.theme.getClass("root")];return Ni()||a.push("fc-liquid-hack"),e.children(a,i,r,n)}},{key:"componentDidMount",value:function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}},{key:"componentWillUnmount",value:function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}])}(Kn),ji=function(){return _createClass((function e(t){_classCallCheck(this,e),this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}),[{key:"destroy",value:function(){}}])}();function Bi(e){return{[e.component.uid]:e}}var Li={},zi=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"getCurrentData",value:function(){return this.currentDataManager.getCurrentData()}},{key:"dispatch",value:function(e){this.currentDataManager.dispatch(e)}},{key:"view",get:function(){return this.getCurrentData().viewApi}},{key:"batchRendering",value:function(e){e()}},{key:"updateSize",value:function(){this.trigger("_resize",!0)}},{key:"setOption",value:function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}},{key:"getOption",value:function(e){return this.currentDataManager.currentCalendarOptionsInput[e]}},{key:"getAvailableLocaleCodes",value:function(){return Object.keys(this.getCurrentData().availableRawLocales)}},{key:"on",value:function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):"Unknown listener name '".concat(e,"'")}},{key:"off",value:function(e,t){this.currentDataManager.emitter.off(e,t)}},{key:"trigger",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this.currentDataManager.emitter).trigger.apply(t,[e].concat(r))}},{key:"changeView",value: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})}))}},{key:"zoomTo",value:function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}},{key:"getUnitViewSpec",value:function(e){var t,n,r=this.getCurrentData(),i=r.viewSpecs,a=r.toolbarConfig,o=[].concat(a.header?a.header.viewsWithButtons:[],a.footer?a.footer.viewsWithButtons:[]);for(var s in i)o.push(s);for(t=0;t<o.length;t+=1)if((n=i[o[t]])&&n.singleUnit===e)return n;return null}},{key:"prev",value:function(){this.unselect(),this.dispatch({type:"PREV"})}},{key:"next",value:function(){this.unselect(),this.dispatch({type:"NEXT"})}},{key:"prevYear",value:function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}},{key:"nextYear",value:function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}},{key:"today",value:function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Cr(e.calendarOptions.now,e.dateEnv)})}},{key:"gotoDate",value:function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}},{key:"incrementDate",value:function(e){var t=this.getCurrentData(),n=vt(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}},{key:"getDate",value:function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}},{key:"formatDate",value:function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),vn(t))}},{key:"formatRange",value:function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),vn(n),n)}},{key:"formatIso",value:function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})}},{key:"select",value:function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),i=Ai(n,r.dateEnv,vt({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),ti(i,null,r))}},{key:"unselect",value:function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}},{key:"addEvent",value:function(e,t){if(e instanceof li){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Or({def:n,instance:r})}),this.triggerEventAdd(e)),e}var i,a=this.getCurrentData();if(t instanceof si)i=t.internalEventSource;else if("boolean"==typeof t){if(t)i=_slicedToArray(Mn(a.eventSources),1)[0]}else if(null!=t){var o=this.getEventSourceById(t);if(!o)return'Could not find an event source with ID "'.concat(t,'"'),null;i=o.internalEventSource}var s=Ar(e,i,a,!1);if(s){var l=new li(a,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Or(s)}),this.triggerEventAdd(l),l}return null}},{key:"triggerEventAdd",value:function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:ci(e)})}})}},{key:"getEventById",value:function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,i=n.instances;for(var a in e=String(e),r){var o=r[a];if(o.publicId===e){if(o.recurringDef)return new li(t,o,null);for(var s in i){var l=i[s];if(l.defId===o.defId)return new li(t,o,l)}}}return null}},{key:"getEvents",value:function(){var e=this.getCurrentData();return ui(e.eventStore,e)}},{key:"removeAllEvents",value:function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}},{key:"getEventSources",value:function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new si(e,t[r]));return n}},{key:"getEventSourceById",value:function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new si(t,n[r]);return null}},{key:"addEventSource",value:function(e){var t=this.getCurrentData();if(e instanceof si)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=Vr(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new si(t,n)):null}},{key:"removeAllEventSources",value:function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}},{key:"refetchEvents",value:function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}},{key:"scrollToTime",value:function(e){var t=vt(e);t&&this.trigger("_scrollRequest",{time:t})}}])}();function Ui(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Fi(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 Gi(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Vi(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 qi(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Yi(e,t){return{left:e.left-t.left,top:e.top-t.top}}var Qi={defs:{},instances:{}},Zi=function(){return _createClass((function e(){_classCallCheck(this,e),this.getKeysForEventDefs=Xt(this._getKeysForEventDefs),this.splitDateSelection=Xt(this._splitDateSpan),this.splitEventStore=Xt(this._splitEventStore),this.splitIndividualUi=Xt(this._splitIndividualUi),this.splitEventDrag=Xt(this._splitInteraction),this.splitEventResize=Xt(this._splitInteraction),this.eventUiBuilders={}}),[{key:"splitProps",value:function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,r),o=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};for(var u in this.eventUiBuilders=xn(n,(function(e,n){return t.eventUiBuilders[n]||Xt(Xi)})),n){var d=n[u],f=o[u]||Qi,h=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:f,eventUiBases:h(e.eventUiBases[""],d.ui,a[u]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[u]||null,eventResize:l[u]||null}}return c}},{key:"_splitDateSpan",value:function(e){var t={};if(e){var n,r=_createForOfIteratorHelper(this.getKeysForDateSpan(e));try{for(r.s();!(n=r.n()).done;){t[n.value]=e}}catch(e){r.e(e)}finally{r.f()}}return t}},{key:"_getKeysForEventDefs",value:function(e){var t=this;return xn(e.defs,(function(e){return t.getKeysForEventDef(e)}))}},{key:"_splitEventStore",value:function(e,t){var n=e.defs,r=e.instances,i={};for(var a in n){var o,s=_createForOfIteratorHelper(t[a]);try{for(s.s();!(o=s.n()).done;){var l=o.value;i[l]||(i[l]={defs:{},instances:{}}),i[l].defs[a]=n[a]}}catch(e){s.e(e)}finally{s.f()}}for(var c in r){var u,d=r[c],f=_createForOfIteratorHelper(t[d.defId]);try{for(f.s();!(u=f.n()).done;){var h=u.value;i[h]&&(i[h].instances[c]=d)}}catch(e){f.e(e)}finally{f.f()}}return i}},{key:"_splitIndividualUi",value:function(e,t){var n={};for(var r in e)if(r){var i,a=_createForOfIteratorHelper(t[r]);try{for(a.s();!(i=a.n()).done;){var o=i.value;n[o]||(n[o]={}),n[o][r]=e[r]}}catch(e){a.e(e)}finally{a.f()}}return n}},{key:"_splitInteraction",value:function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),a=function(r){t[r]||(t[r]={affectedEvents:n[r]||Qi,mutatedEvents:i[r]||Qi,isEvent:e.isEvent})};for(var o in n)a(o);for(var s in i)a(s)}return t}}])}();function Xi(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":Ur(r)};return n&&Object.assign(i,n),i}function Ji(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!pr(r.activeRange,e)),isOther:Boolean(r&&!pr(r.currentRange,e)),isToday:Boolean(t&&pr(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Ki(e,t){var n=["fc-day","fc-day-".concat(Rt[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}function $i(e,t){var n=["fc-slot","fc-slot-".concat(Rt[e.dow])];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}var ea=vn({year:"numeric",month:"long",day:"numeric"}),ta=vn({week:"long"});function na(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.dateEnv,a=e.options,o=e.calendarApi,s=i.format(t,"week"===n?ta:ea);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(o,i.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:lt(a.navLinkHint,[s,l],s),"data-navlink":""},r?Ye(c):{onClick:c})}return{"aria-label":s}}var ra,ia=null;function aa(){return null===ia&&(ia=function(){var e=document.createElement("div");je(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.getBoundingClientRect().left>e.getBoundingClientRect().left;return Ie(e),t}()),ia}function oa(){return ra||(ra=function(){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=sa(e);return document.body.removeChild(e),t}()),ra}function sa(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function la(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=sa(e),l=s.y-r-i,c={borderLeft:r,borderRight:i,borderTop:a,borderBottom:o,scrollbarBottom:s.x-a-o,scrollbarLeft:0,scrollbarRight:0};return aa()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function ca(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(arguments.length>2?arguments[2]:void 0)?e.getBoundingClientRect():ua(e),r=la(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function ua(e){var t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function da(e){for(var t=[];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}var fa=function(){return _createClass((function e(t,n,r,i){_classCallCheck(this,e),this.els=n;var a=this.originClientRect=t.getBoundingClientRect();r&&this.buildElHorizontals(a.left),i&&this.buildElVerticals(a.top)}),[{key:"buildElHorizontals",value:function(e){var t,n=[],r=[],i=_createForOfIteratorHelper(this.els);try{for(i.s();!(t=i.n()).done;){var a=t.value.getBoundingClientRect();n.push(a.left-e),r.push(a.right-e)}}catch(e){i.e(e)}finally{i.f()}this.lefts=n,this.rights=r}},{key:"buildElVerticals",value:function(e){var t,n=[],r=[],i=_createForOfIteratorHelper(this.els);try{for(i.s();!(t=i.n()).done;){var a=t.value.getBoundingClientRect();n.push(a.top-e),r.push(a.bottom-e)}}catch(e){i.e(e)}finally{i.f()}this.tops=n,this.bottoms=r}},{key:"leftToIndex",value:function(e){var t,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}},{key:"topToIndex",value:function(e){var t,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}},{key:"getWidth",value:function(e){return this.rights[e]-this.lefts[e]}},{key:"getHeight",value:function(e){return this.bottoms[e]-this.tops[e]}},{key:"similarTo",value:function(e){return ha(this.tops||[],e.tops||[])&&ha(this.bottoms||[],e.bottoms||[])&&ha(this.lefts||[],e.lefts||[])&&ha(this.rights||[],e.rights||[])}}])}();function ha(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}var va=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"getMaxScrollTop",value:function(){return this.getScrollHeight()-this.getClientHeight()}},{key:"getMaxScrollLeft",value:function(){return this.getScrollWidth()-this.getClientWidth()}},{key:"canScrollVertically",value:function(){return this.getMaxScrollTop()>0}},{key:"canScrollHorizontally",value:function(){return this.getMaxScrollLeft()>0}},{key:"canScrollUp",value:function(){return this.getScrollTop()>0}},{key:"canScrollDown",value:function(){return this.getScrollTop()<this.getMaxScrollTop()}},{key:"canScrollLeft",value:function(){return this.getScrollLeft()>0}},{key:"canScrollRight",value:function(){return this.getScrollLeft()<this.getMaxScrollLeft()}}])}(),pa=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_callSuper(this,t)).el=e,n}return _inherits(t,e),_createClass(t,[{key:"getScrollTop",value:function(){return this.el.scrollTop}},{key:"getScrollLeft",value:function(){return this.el.scrollLeft}},{key:"setScrollTop",value:function(e){this.el.scrollTop=e}},{key:"setScrollLeft",value:function(e){this.el.scrollLeft=e}},{key:"getScrollWidth",value:function(){return this.el.scrollWidth}},{key:"getScrollHeight",value:function(){return this.el.scrollHeight}},{key:"getClientHeight",value:function(){return this.el.clientHeight}},{key:"getClientWidth",value:function(){return this.el.clientWidth}}])}(va),ga=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"getScrollTop",value:function(){return window.scrollY}},{key:"getScrollLeft",value:function(){return window.scrollX}},{key:"setScrollTop",value:function(e){window.scroll(window.scrollX,e)}},{key:"setScrollLeft",value:function(e){window.scroll(e,window.scrollY)}},{key:"getScrollWidth",value:function(){return document.documentElement.scrollWidth}},{key:"getScrollHeight",value:function(){return document.documentElement.scrollHeight}},{key:"getClientHeight",value:function(){return document.documentElement.clientHeight}},{key:"getClientWidth",value:function(){return document.documentElement.clientWidth}}])}(va),ma=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).uid=Xe(),e}return _inherits(t,e),_createClass(t,[{key:"prepareHits",value:function(){}},{key:"queryHit",value:function(e,t,n,r){return null}},{key:"isValidSegDownEl",value:function(e){return!this.props.eventDrag&&!this.props.eventResize&&!Oe(e,".fc-event-mirror")}},{key:"isValidDateDownEl",value:function(e){return!(Oe(e,".fc-event:not(.fc-bg-event)")||Oe(e,".fc-more-link")||Oe(e,"a[data-navlink]")||Oe(e,".fc-popover"))}}])}(Kn),ya=_createClass((function e(t){_classCallCheck(this,e),this.timeZoneName=t})),ba=function(){return _createClass((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e.thickness||1};_classCallCheck(this,e),this.getEntryThickness=t,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}),[{key:"addSegs",value:function(e){var t,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.insertEntry(i,n)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"insertEntry",value:function(e,t){var n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}},{key:"isInsertionValid",value:function(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}},{key:"handleInvalidInsertion",value:function(e,t,n){if(this.allowReslicing&&e.touchingEntry){var r=Object.assign(Object.assign({},t),{span:_a(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}},{key:"splitEntry",value:function(e,t,n){var r=e.span,i=t.span;r.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:i.start}},n),r.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:r.end}},n)}},{key:"insertEntryAt",value:function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(Ea(r,t.level,t.levelCoord),Ea(n,t.level,[e])):Ea(n[t.level],t.lateral,e),this.stackCnts[Sa(e)]=t.stackCnt}},{key:"findInsertion",value:function(e){for(var t=this.levelCoords,n=this.entriesByLevel,r=this.strictOrder,i=this.stackCnts,a=t.length,o=0,s=-1,l=-1,c=null,u=0,d=0;d<a;d+=1){var f=t[d];if(!r&&f>=o+this.getEntryThickness(e))break;for(var h=n[d],v=void 0,p=wa(h,e.span.start,Ca),g=p[0]+p[1];(v=h[g])&&v.span.start<e.span.end;){var m=f+this.getEntryThickness(v);m>o&&(o=m,c=v,s=d,l=g),m===o&&(u=Math.max(u,i[Sa(v)]+1)),g+=1}}var y=0;if(c)for(y=s+1;y<a&&t[y]<o;)y+=1;var b=-1;return y<a&&t[y]===o&&(b=wa(n[y],e.span.end,Ca)[0]),{touchingLevel:s,touchingLateral:l,touchingEntry:c,stackCnt:u,levelCoord:o,level:y,lateral:b}}},{key:"toRects",value:function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,r=[],i=0;i<n;i+=1){var a,o=e[i],s=t[i],l=_createForOfIteratorHelper(o);try{for(l.s();!(a=l.n()).done;){var c=a.value;r.push(Object.assign(Object.assign({},c),{thickness:this.getEntryThickness(c),levelCoord:s}))}}catch(e){l.e(e)}finally{l.f()}}return r}}])}();function Ca(e){return e.span.end}function Sa(e){return e.index+":"+e.span.start}function ka(e){var t,n,r,i=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=[],c={span:s.span,entries:[s]},u=_createForOfIteratorHelper(i);try{for(u.s();!(o=u.n()).done;){var d=o.value;_a(d.span,c.span)?c={entries:d.entries.concat(c.entries),span:(n=d.span,r=c.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:l.push(d)}}catch(e){u.e(e)}finally{u.f()}l.push(c),i=l}}catch(e){a.e(e)}finally{a.f()}return i}function _a(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 Ea(e,t,n){e.splice(t,0,n)}function wa(e,t,n){var r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){var a=Math.floor(r+(i-r)/2),o=n(e[a]);if(t<o)i=a;else{if(!(t>o))return[a,1];r=a+1}}return[r,0]}var Da=function(){return _createClass((function e(t,n){_classCallCheck(this,e),this.emitter=new Kr}),[{key:"destroy",value:function(){}},{key:"setMirrorIsVisible",value:function(e){}},{key:"setMirrorNeedsRevert",value:function(e){}},{key:"setAutoScrollEnabled",value:function(e){}}])}(),Ra={},Aa={startTime:vt,duration:vt,create:Boolean,sourceId:String};function xa(e){var t=En(e,Aa),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}}function Ta(e,t){return vn(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Ma="fc-col-header-cell";function Ia(e){return e.text}var Oa=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,i=e.viewApi,a=this.props,o=a.date,s=a.dateProfile,l=Ji(o,a.todayRange,null,s),c=[Ma].concat(Ki(l,r)),u=t.format(o,a.dayHeaderFormat),d=!l.isDisabled&&a.colCnt>1?na(this.context,o):{},f=Object.assign(Object.assign(Object.assign({date:t.toDate(o),view:i},a.extraRenderProps),{text:u}),l);return p(ar,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:a.colSpan,"data-date":l.isDisabled?void 0:qt(o)},a.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Ia,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e){return p("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&p(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",a.isSticky&&"fc-sticky"]}))}))}}])}(Kn),Ha=vn({weekday:"long"}),Pa=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,i=t.viewApi,a=t.options,o=xt(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(o,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:o},s),{view:i}),e.extraRenderProps),{text:l});return p(ar,{elTag:"th",elClasses:[Ma].concat(_toConsumableArray(Ki(s,r)),_toConsumableArray(e.extraClassNames||[])),elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:Ia,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},(function(t){return p("div",{className:"fc-scrollgrid-sync-inner"},p(t,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(o,Ha)}}))}))}}])}(Kn),Na=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e,n])).initialNowDate=Cr(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)}},{key:"componentDidMount",value:function(){this.setTimeout()}},{key:"componentDidUpdate",value:function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}},{key:"componentWillUnmount",value:function(){this.clearTimeout()}},{key:"computeTiming",value:function(){var e=this.props,t=this.context,n=Tt(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,vt(1,e.unit)),a=i.valueOf()-n.valueOf();return a=Math.min(864e5,a),{currentState:{nowDate:r,todayRange:Wa(r)},nextState:{nowDate:i,todayRange:Wa(i)},waitMs:a}}},{key:"setTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)}))},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timeoutId&&clearTimeout(this.timeoutId)}))}])}(k);function Wa(e){var t=Nt(e);return{start:t,end:xt(t,1)}}Na.contextType=Zn;var ja=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).createDayHeaderFormatter=Xt(Ba),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,i=t.datesRepDistinctDays,a=t.renderIntro,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return p(Na,{unit:"day"},(function(e,t){return p("tr",{role:"row"},a&&a("day"),n.map((function(e){return i?p(Oa,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:o}):p(Pa,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:o})})))}))}}])}(Kn);function Ba(e,t,n){return e||Ta(t,n)}var La=function(){return _createClass((function e(t,n){_classCallCheck(this,e);for(var r=t.start,i=t.end,a=[],o=[],s=-1;r<i;)n.isHiddenDay(r)?a.push(s+.5):(s+=1,a.push(s),o.push(r)),r=xt(r,1);this.dates=o,this.indices=a,this.cnt=o.length}),[{key:"sliceRange",value:function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(xt(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null}},{key:"getDateDayIndex",value:function(e){var t=this.indices,n=Math.floor(It(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}])}(),za=function(){return _createClass((function e(t,n){_classCallCheck(this,e);var r,i,a,o=t.dates;if(n){for(i=o[0].getUTCDay(),r=1;r<o.length&&o[r].getUTCDay()!==i;r+=1);a=Math.ceil(o.length/r)}else a=1,r=o.length;this.rowCnt=a,this.colCnt=r,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}),[{key:"buildCells",value: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}},{key:"buildCell",value:function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}},{key:"buildHeaderDates",value:function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}},{key:"sliceRange",value:function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,a=n.lastIndex,o=i;o<=a;){var s=Math.floor(o/t),l=Math.min((s+1)*t,a+1);r.push({row:s,firstCol:o%t,lastCol:(l-1)%t,isStart:n.isStart&&o===i,isEnd:n.isEnd&&l-1===a}),o=l}return r}}])}(),Ua=function(){return _createClass((function e(){_classCallCheck(this,e),this.sliceBusinessHours=Xt(this._sliceBusinessHours),this.sliceDateSelection=Xt(this._sliceDateSpan),this.sliceEventStore=Xt(this._sliceEventStore),this.sliceEventDrag=Xt(this._sliceInteraction),this.sliceEventResize=Xt(this._sliceInteraction),this.forceDayIfListItem=!1}),[{key:"sliceProps",value:function(e,t,n,r){for(var i=e.eventUiBases,a=arguments.length,o=new Array(a>4?a-4:0),s=4;s<a;s++)o[s-4]=arguments[s];var l=this.sliceEventStore.apply(this,[e.eventStore,i,t,n].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,t,n,i,r].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,i,t,n].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,i,t,n].concat(o)),eventSelection:e.eventSelection}}},{key:"sliceNowDate",value:function(e,t,n,r){for(var i=arguments.length,a=new Array(i>4?i-4:0),o=4;o<i;o++)a[o-4]=arguments[o];return this._sliceDateSpan.apply(this,[{range:{start:e,end:Tt(e,1)},allDay:!1},t,n,{},r].concat(a))}},{key:"_sliceBusinessHours",value:function(e,t,n,r){if(!e)return[];for(var i=arguments.length,a=new Array(i>4?i-4:0),o=4;o<i;o++)a[o-4]=arguments[o];return this._sliceEventStore.apply(this,[_r(e,Fa(t,Boolean(n)),r),{},t,n].concat(a)).bg}},{key:"_sliceEventStore",value:function(e,t,n,r){if(e){for(var i=di(e,t,Fa(n,Boolean(r)),r),a=arguments.length,o=new Array(a>4?a-4:0),s=4;s<a;s++)o[s-4]=arguments[s];return{bg:this.sliceEventRanges(i.bg,o),fg:this.sliceEventRanges(i.fg,o)}}return{bg:[],fg:[]}}},{key:"_sliceInteraction",value:function(e,t,n,r){if(!e)return null;for(var i=di(e.mutatedEvents,t,Fa(n,Boolean(r)),r),a=arguments.length,o=new Array(a>4?a-4:0),s=4;s<a;s++)o[s-4]=arguments[s];return{segs:this.sliceEventRanges(i.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}},{key:"_sliceDateSpan",value:function(e,t,n,r,i){if(!e)return[];var a=Fa(t,Boolean(n)),o=dr(e.range,a);if(o){for(var s=function(e,t,n){var r=xr({editable:!1},n),i=Mr(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:gi(i,t),instance:kr(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:o}),r,i),l=arguments.length,c=new Array(l>5?l-5:0),u=5;u<l;u++)c[u-5]=arguments[u];var d,f=this.sliceRange.apply(this,[e.range].concat(c)),h=_createForOfIteratorHelper(f);try{for(h.s();!(d=h.n()).done;){d.value.eventRange=s}}catch(e){h.e(e)}finally{h.f()}return f}return[]}},{key:"sliceEventRanges",value:function(e,t){var n,r=[],i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push.apply(r,_toConsumableArray(this.sliceEventRange(a,t)))}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"sliceEventRange",value:function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:xt(n.start,1)});var r,i=this.sliceRange.apply(this,[n].concat(_toConsumableArray(t))),a=_createForOfIteratorHelper(i);try{for(a.s();!(r=a.n()).done;){var o=r.value;o.eventRange=e,o.isStart=e.isStart&&o.isStart,o.isEnd=e.isEnd&&o.isEnd}}catch(e){a.e(e)}finally{a.f()}return i}}])}();function Fa(e,t){var n=e.activeRange;return t?n:{start:Tt(n.start,e.slotMinTime.milliseconds),end:Tt(n.end,e.slotMaxTime.milliseconds-864e5)}}function Ga(e,t,n){var r=e.mutatedEvents.instances;for(var i in r)if(!vr(t.validRange,r[i].range))return!1;return qa({eventDrag:e},n)}function Va(e,t,n){return!!vr(t.validRange,e.range)&&qa({dateSelection:e},n)}function qa(e,t){var n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Ya)(r,t)}function Ya(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return!(e.eventDrag&&!function(e,t,n,r){var i=t.getCurrentData(),a=e.eventDrag,o=a.mutatedEvents,s=o.defs,l=o.instances,c=pi(s,a.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=xn(c,r));var u=(v=e.eventStore,p=a.affectedEvents.instances,{defs:v.defs,instances:An(v.instances,(function(e){return!p[e.instanceId]}))}),d=u.defs,f=u.instances,h=pi(d,e.eventUiBases);var v,p;for(var g in l){var m=l[g],y=m.range,b=c[m.defId],C=s[m.defId];if(!Qa(b.constraints,y,u,e.businessHours,t))return!1;var S=t.options.eventOverlap,k="function"==typeof S?S:null;for(var _ in f){var E=f[_];if(hr(y,E.range)){if(!1===h[E.defId].overlap&&a.isEvent)return!1;if(!1===b.overlap)return!1;if(k&&!k(new li(t,d[E.defId],E),new li(t,C,m)))return!1}}var w,D=i.eventStore,R=_createForOfIteratorHelper(b.allows);try{for(R.s();!(w=R.n()).done;){var A=w.value,x=Object.assign(Object.assign({},n),{range:m.range,allDay:C.allDay}),T=D.defs[C.defId],M=D.instances[g],I=void 0;if(I=T?new li(t,T,M):new li(t,C),!A(ni(x,t),I))return!1}}catch(e){R.e(e)}finally{R.f()}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var i=e.eventStore,a=i.defs,o=i.instances,s=e.dateSelection,l=s.range,c=t.getCurrentData(),u=c.selectionConfig;r&&(u=r(u));if(!Qa(u.constraints,l,i,e.businessHours,t))return!1;var d=t.options.selectOverlap,f="function"==typeof d?d:null;for(var h in o){var v=o[h];if(hr(l,v.range)){if(!1===u.overlap)return!1;if(f&&!f(new li(t,a[v.defId],v),null))return!1}}var p,g=_createForOfIteratorHelper(u.allows);try{for(g.s();!(p=g.n()).done;){if(!(0,p.value)(ni(Object.assign(Object.assign({},n),s),t),null))return!1}}catch(e){g.e(e)}finally{g.f()}return!0}(e,t,n,r))}function Qa(e,t,n,r,i){var a,o=_createForOfIteratorHelper(e);try{for(o.s();!(a=o.n()).done;){if(!Ja(Za(a.value,t,n,r,i),t))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}function Za(e,t,n,r,i){return"businessHours"===e?Xa(_r(r,t,i)):"string"==typeof e?Xa(Wr(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?Xa(_r(e,t,i)):[]}function Xa(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Ja(e,t){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){if(vr(n.value,t))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}var Ka=/^(visible|hidden)$/,$a=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).handleEl=function(t){e.el=t,$n(e.props.elRef,t)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),p("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}},{key:"needsXScrolling",value:function(){if(Ka.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){if(n[r].getBoundingClientRect().width>t)return!0}return!1}},{key:"needsYScrolling",value:function(){if(Ka.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){if(n[r].getBoundingClientRect().height>t)return!0}return!1}},{key:"getXScrollbarWidth",value:function(){return Ka.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}},{key:"getYScrollbarWidth",value:function(){return Ka.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}])}(Kn),eo=function(){return _createClass((function e(t){var n=this;_classCallCheck(this,e),this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,t){var r=n.depths,i=n.currentMap,a=!1,o=!1;null!==e?(a=t in i,i[t]=e,r[t]=(r[t]||0)+1,o=!0):(r[t]-=1,r[t]||(delete i[t],delete n.callbackMap[t],a=!0)),n.masterCallback&&(a&&n.masterCallback(null,String(t)),o&&n.masterCallback(e,String(t)))}}),[{key:"createRef",value:function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n}},{key:"collect",value:function(e,t,n){return Wn(this.currentMap,e,t,n)}},{key:"getAll",value:function(){return Mn(this.currentMap)}}])}();function to(e){var t,n=0,r=_createForOfIteratorHelper(Pe(e,".fc-scrollgrid-shrink"));try{for(r.s();!(t=r.n()).done;){var i=t.value;n=Math.max(n,dt(i))}}catch(e){r.e(e)}finally{r.f()}return Math.ceil(n)}function no(e,t){return e.liquid&&t.liquid}function ro(e,t){return null!=t.maxHeight||no(e,t)}function io(e,t,n,r){var i=n.expandRows;return"function"==typeof t.content?t.content(n):p("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,p(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function ao(e,t){return Dt(e,t,In)}function oo(e,t){var n,r=[],i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;)for(var a=n.value,o=a.span||1,s=0;s<o;s+=1)r.push(p("col",{style:{width:"shrink"===a.width?so(t):a.width||"",minWidth:a.minWidth||""}}))}catch(e){i.e(e)}finally{i.f()}return p.apply(void 0,["colgroup",{}].concat(r))}function so(e){return null==e?4:e}function lo(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){if("shrink"===t.value.width)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}function co(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function uo(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-".concat(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 fo(e){return p("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ho(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function vo(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var po=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).processCols=Xt((function(e){return e}),ao),e.renderMicroColGroup=Xt(oo),e.scrollerRefs=new eo,e.scrollerElRefs=new eo(e._handleScrollerEl.bind(e)),e.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},e.handleSizing=function(){e.safeSetState(Object.assign({shrinkWidth:e.computeShrinkWidth()},e.computeScrollerDims()))},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state,n=this.context,r=e.sections||[],i=this.processCols(e.cols),a=this.renderMicroColGroup(i,t.shrinkWidth),o=co(e.liquid,n);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");for(var s,l=r.length,c=0,u=[],d=[],f=[];c<l&&"header"===(s=r[c]).type;)u.push(this.renderSection(s,a,!0)),c+=1;for(;c<l&&"body"===(s=r[c]).type;)d.push(this.renderSection(s,a,!1)),c+=1;for(;c<l&&"footer"===(s=r[c]).type;)f.push(this.renderSection(s,a,!0)),c+=1;var h=!Ni(),v={role:"rowgroup"};return p("table",{role:"grid",className:o.join(" "),style:{height:e.height}},Boolean(!h&&u.length)&&p.apply(void 0,["thead",v].concat(u)),Boolean(!h&&d.length)&&p.apply(void 0,["tbody",v].concat(d)),Boolean(!h&&f.length)&&p.apply(void 0,["tfoot",v].concat(f)),h&&p.apply(void 0,["tbody",v].concat(u,d,f)))}},{key:"renderSection",value:function(e,t,n){return"outerContent"in e?p(m,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:uo(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}},{key:"renderChunkTd",value:function(e,t,n,r){if("outerContent"in n)return n.outerContent;var i=this.props,a=this.state,o=a.forceYScrollbars,s=a.scrollerClientWidths,l=a.scrollerClientHeights,c=ro(i,e),u=no(i,e),d=i.liquid?o?"scroll":c?"auto":"hidden":"visible",f=e.key,h=io(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===s[f]?null:s[f],clientHeight:void 0!==l[f]?l[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return p(r?"th":"td",{ref:n.elRef,role:"presentation"},p("div",{className:"fc-scroller-harness".concat(u?" fc-scroller-harness-liquid":"")},p($a,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},h)))}},{key:"_handleScrollerEl",value:function(e,t){var n=function(e,t){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.key===t)return i}}catch(e){r.e(e)}finally{r.f()}return null}(this.props.sections,t);n&&$n(n.chunk.scrollerElRef,e)}},{key:"componentDidMount",value:function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}},{key:"componentDidUpdate",value:function(){this.handleSizing()}},{key:"componentWillUnmount",value:function(){this.context.removeResizeHandler(this.handleSizing)}},{key:"computeShrinkWidth",value:function(){return lo(this.props.cols)?to(this.scrollerElRefs.getAll()):0}},{key:"computeScrollerDims",value:function(){var e=oa(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,i={},a={};for(var o in t.currentMap){var s=t.currentMap[o];if(s&&s.needsYScrolling()){r=!0;break}}var l,c=_createForOfIteratorHelper(this.props.sections);try{for(c.s();!(l=c.n()).done;){var u=l.value.key,d=n.currentMap[u];if(d){var f=d.parentNode;i[u]=Math.floor(f.getBoundingClientRect().width-(r?e.y:0)),a[u]=Math.floor(f.getBoundingClientRect().height)}}}catch(e){c.e(e)}finally{c.f()}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:a}}}])}(Kn);po.addStateEquality({scrollerClientWidths:In,scrollerClientHeights:In});var go=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).handleEl=function(t){e.el=t,t&&hi(t,e.props.seg)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.options,r=e.seg,i=r.eventRange,a=i.ui,o={event:new li(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&bi(r,t),isStartResizable:!e.disableResizing&&Ci(r,t),isEndResizable:!e.disableResizing&&Si(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return p(ar,Object.assign({},e,{elRef:this.handleEl,elClasses:[].concat(_toConsumableArray(Ei(o)),_toConsumableArray(r.eventRange.ui.classNames),_toConsumableArray(e.elClasses||[])),renderProps:o,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}},{key:"componentDidUpdate",value:function(e){this.el&&this.props.seg!==e.seg&&hi(this.el,this.props.seg)}}])}(Kn),mo=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.options,r=e.seg,i=r.eventRange.ui,a=ki(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return p(go,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Di(r,t),defaultGenerator:yo,timeText:a}),(function(e,t){return p(m,null,p(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&p("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&p("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))}}])}(Kn);function yo(e){return p("div",{className:"fc-event-main-frame"},e.timeText&&p("div",{className:"fc-event-time"},e.timeText),p("div",{className:"fc-event-title-container"},p("div",{className:"fc-event-title fc-sticky"},e.event.title||p(m,null," "))))}var bo=function(e){return p(Zn.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return p(ar,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}))},Co=vn({day:"numeric"}),So=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).refineRenderProps=Jt(_o),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.options,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return p(ar,Object.assign({},e,{elClasses:[].concat(_toConsumableArray(Ki(r,t.theme)),_toConsumableArray(e.elClasses||[])),elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":qt(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}])}(Kn);function ko(e){return Boolean(e.dayCellContent||tr("dayCellContent",e))}function _o(e){var t=e.date,n=e.dateEnv,r=e.dateProfile,i=e.isMonthStart,a=Ji(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:Co):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},a),{isMonthStart:i,dayNumberText:o}),e.extraRenderProps)}var Eo=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=e.seg;return p(go,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:wo,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}])}(Kn);function wo(e){return e.event.title&&p("div",{className:"fc-event-title"},e.event.title)}function Do(e){return p("div",{className:"fc-".concat(e)})}var Ro=function(e){return p(Zn.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,i=e.date,a=r.weekNumberFormat||e.defaultFormat,o={num:n.computeWeekNumber(i),text:n.format(i,a),date:i};return p(ar,Object.assign({},e,{renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Ao,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))}))};function Ao(e){return e.text}var xo=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).state={titleId:Ue()},e.handleRootEl=function(t){e.rootEl=t,e.props.elRef&&$n(e.props.elRef,t)},e.handleDocumentMouseDown=function(t){var n=Le(t);e.rootEl.contains(n)||e.handleCloseClick()},e.handleDocumentKeyDown=function(t){"Escape"===t.key&&e.handleCloseClick()},e.handleCloseClick=function(){var t=e.props.onClose;t&&t()},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.context,t=e.theme,n=e.options,r=this.props,i=this.state,a=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return function(e,t){var n=p(he,{__v:e,i:t});return n.containerInfo=t,n}(p("div",Object.assign({},r.extraAttrs,{id:r.id,className:a.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),p("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},p("span",{className:"fc-popover-title",id:i.titleId},r.title),p("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),p("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)}},{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}},{key:"updateSize",value:function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,i=this.rootEl,a=function(e){var t,n=da(e),r=e.getBoundingClientRect(),i=_createForOfIteratorHelper(n);try{for(i.s();!(t=i.n()).done;){var a=Fi(r,t.value.getBoundingClientRect());if(!a)return null;r=a}}catch(e){i.e(e)}finally{i.f()}return r}(n);if(a){var o=i.getBoundingClientRect(),s=r?Oe(n,".fc-scrollgrid").getBoundingClientRect().top:a.top,l=e?a.right-o.width:a.left;s=Math.max(s,10),l=Math.min(l,document.documentElement.clientWidth-10-o.width),l=Math.max(l,10);var c=i.offsetParent.getBoundingClientRect();je(i,{top:s-c.top,left:l-c.left})}}}])}(Kn),To=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).handleRootEl=function(t){e.rootEl=t,t?e.context.registerInteractiveComponent(e,{el:t,useEventCenter:!1}):e.context.unregisterInteractiveComponent(e)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,i=r.startDate,a=r.todayRange,o=r.dateProfile,s=n.format(i,t.dayPopoverFormat);return p(So,{elRef:this.handleRootEl,date:i,dateProfile:o,todayRange:a},(function(e,n,i){return p(xo,{elRef:i.ref,id:r.id,title:s,extraClassNames:["fc-more-popover"].concat(i.className||[]),extraAttrs:i,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},ko(t)&&p(e,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children)}))}},{key:"queryHit",value:function(e,t,n,r){var i=this.rootEl,a=this.props;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}])}(ma),Mo=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).state={isPopoverOpen:!1,popoverId:Ue()},e.handleLinkEl=function(t){e.linkEl=t,e.props.elRef&&$n(e.props.elRef,t)},e.handleClick=function(t){var n=e,r=n.props,i=n.context,a=i.options.moreLinkClick,o=Oo(r).start;function s(e){var t=e.eventRange,n=t.def,r=t.instance,a=t.range;return{event:new li(i,n,r),start:i.dateEnv.toDate(a.start),end:i.dateEnv.toDate(a.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof a&&(a=a({date:o,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(s),hiddenSegs:r.hiddenSegs.map(s),jsEvent:t,view:i.viewApi})),a&&"popover"!==a?"string"==typeof a&&i.calendarApi.zoomTo(o,a):e.setState({isPopoverOpen:!0})},e.handlePopoverClose=function(){e.setState({isPopoverOpen:!1})},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.state;return p(Zn.Consumer,null,(function(r){var i=r.viewApi,a=r.options,o=r.calendarApi,s=a.moreLinkText,l=t.moreCnt,c=Oo(t),u="function"==typeof s?s.call(o,l):"+".concat(l," ").concat(s),d=lt(a.moreLinkHint,[l],u),f={num:l,shortText:"+".concat(l),text:u,view:i};return p(m,null,Boolean(t.moreCnt)&&p(ar,{elTag:t.elTag||"a",elRef:e.handleLinkEl,elClasses:[].concat(_toConsumableArray(t.elClasses||[]),["fc-more-link"]),elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),Ye(e.handleClick)),{title:d,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:f,generatorName:"moreLinkContent",customGenerator:a.moreLinkContent,defaultGenerator:t.defaultGenerator||Io,classNameGenerator:a.moreLinkClassNames,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},t.children),n.isPopoverOpen&&p(To,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:e.linkEl,alignGridTop:t.alignGridTop,forceTimed:t.forceTimed,onClose:e.handlePopoverClose},t.popoverContent()))}))}},{key:"componentDidMount",value:function(){this.updateParentEl()}},{key:"componentDidUpdate",value:function(){this.updateParentEl()}},{key:"updateParentEl",value:function(){this.linkEl&&(this.parentEl=Oe(this.linkEl,".fc-view-harness"))}}])}(Kn);function Io(e){return e.text}function Oo(e){if(e.allDayDate)return{start:e.allDayDate,end:xt(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:Ho(n),end:(t=n,t.reduce(No).eventRange.range.end)}}function Ho(e){return e.reduce(Po).eventRange.range.start}function Po(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function No(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var Wo=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).map=new Map,e}return _inherits(t,e),_createClass(t,[{key:"handle",value:function(e){var t=this.map,n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}])}(function(){return _createClass((function e(){_classCallCheck(this,e),this.handlers=[]}),[{key:"set",value:function(e){this.currentValue=e;var t,n=_createForOfIteratorHelper(this.handlers);try{for(n.s();!(t=n.n()).done;){(0,t.value)(e)}}catch(e){n.e(e)}finally{n.f()}}},{key:"subscribe",value:function(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}])}()),jo={__proto__:null,BASE_OPTION_DEFAULTS:gn,BaseComponent:Kn,BgEvent:Eo,CalendarImpl:zi,CalendarRoot:Wi,ContentContainer:ar,CustomRenderingStore:Wo,DateComponent:ma,DateEnv:Fn,DateProfileGenerator:Sr,DayCellContainer:So,DayHeader:ja,DaySeriesModel:La,DayTableModel:za,DelayedRunner:Me,ElementDragging:Da,ElementScrollController:pa,Emitter:Kr,EventContainer:go,EventImpl:li,Interaction:ji,MoreLinkContainer:Mo,NamedTimeZoneImpl:ya,NowIndicatorContainer:bo,NowTimer:Na,PositionCache:fa,RefMap:eo,ScrollController:va,ScrollResponder:Qn,Scroller:$a,SegHierarchy:ba,SimpleScrollGrid:po,Slicer:Ua,Splitter:Zi,StandardEvent:mo,TableDateCell:Oa,TableDowCell:Pa,Theme:Gn,ViewContainer:sr,ViewContextType:Zn,WeekNumberContainer:Ro,WindowScrollController:ga,addDays:xt,addDurations:mt,addMs:Tt,addWeeks:At,allowContextMenu:nt,allowSelection:et,applyMutationToEventStore:ii,applyStyle:je,asCleanDays:gt,asRoughMinutes:Ct,asRoughMs:kt,asRoughSeconds:St,binarySearch:wa,buildElAttrs:nr,buildEntryKey:Sa,buildEventApis:ui,buildEventRangeKey:wi,buildIsoString:Vt,buildNavLinkAttrs:na,buildSegTimeText:ki,collectFromHash:Wn,combineEventUis:Ur,compareByFieldSpecs:it,compareNumbers:ct,compareObjs:Pn,computeEarliestSegStart:Ho,computeEdges:la,computeFallbackHeaderFormat:Ta,computeInnerRect:ca,computeRect:ua,computeShrinkWidth:to,computeVisibleDayRange:mr,config:Ra,constrainPoint:Vi,createDuration:vt,createEmptyEventStore:Pr,createEventInstance:kr,createEventUi:zr,createFormatter:vn,diffDates:br,diffDayAndTime:Ot,diffDays:It,diffPoints:Yi,diffWeeks:Mt,diffWholeDays:Pt,diffWholeWeeks:Ht,disableCursor:Je,elementClosest:Oe,elementMatches:He,enableCursor:Ke,eventTupleToStore:Or,filterHash:An,findDirectChildren:Ne,findElements:Pe,flexibleCompare:ot,formatDayString:qt,formatIsoMonthStr:Yt,formatIsoTimeString:Qt,getAllowYScrolling:ro,getCanVGrowWithinCell:Ni,getClippingParents:da,getDateMeta:Ji,getDayClassNames:Ki,getDefaultEventEnd:ri,getElSeg:vi,getEntrySpanEnd:Ca,getEventTargetViaRoot:Le,getIsRtlScrollbarOnLeft:aa,getRectCenter:qi,getRelevantEvents:Hr,getScrollGridClassNames:co,getScrollbarWidths:oa,getSectionClassNames:uo,getSectionHasLiquidHeight:no,getSegAnchorAttrs:Di,getSegMeta:_i,getSlotClassNames:$i,getStickyFooterScrollbar:vo,getStickyHeaderDates:ho,getUniqueDomId:Ue,greatestDurationDenominator:Et,groupIntersectingEntries:ka,guid:Xe,hasBgRendering:fi,hasCustomDayCellContent:ko,hasShrinkWidth:lo,identity:wn,injectStyles:Ae,interactionSettingsStore:Li,interactionSettingsToStore:Bi,intersectRanges:dr,intersectRects:Fi,intersectSpans:_a,isArraysEqual:Dt,isColPropsEqual:ao,isDateSelectionValid:Va,isDateSpansEqual:xi,isInt:ut,isInteractionValid:Ga,isMultiDayRange:yr,isPropsEqual:In,isPropsValid:Ya,isValidDate:Ft,mapHash:xn,memoize:Xt,memoizeArraylike:Kt,memoizeHashlike:$t,memoizeObjArg:Jt,mergeEventStores:Nr,multiplyDuration:yt,padStart:st,parseBusinessHours:ei,parseClassNames:jr,parseDragMeta:xa,parseEventDef:Mr,parseFieldSpecs:rt,parseMarker:Un,pointInsideRect:Ui,preventContextMenu:tt,preventDefault:Fe,preventSelection:$e,rangeContainsMarker:pr,rangeContainsRange:vr,rangesEqual:fr,rangesIntersect:hr,refineEventDef:xr,refineProps:En,removeElement:Ie,removeExact:wt,renderChunkContent:io,renderFill:Do,renderMicroColGroup:oo,renderScrollShim:fo,requestJson:Pi,sanitizeShrinkWidth:so,setRef:$n,sliceEventStore:di,sortEventSegs:mi,startOfDay:Nt,translateRect:Gi,triggerDateSelect:ti,unpromisify:Ii,whenTransitionDone:qe,wholeDivideDurations:_t},Bo=[],Lo={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"},zo=Object.assign(Object.assign({},Lo),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":"This ".concat(e)},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>"Show ".concat(e," more event").concat(1===e?"":"s")});function Uo(e){var t,n=e.length>0?e[0].code:"en",r=Bo.concat(e),i={en:zo},a=_createForOfIteratorHelper(r);try{for(a.s();!(t=a.n()).done;){var o=t.value;i[o.code]=o}}catch(e){a.e(e)}finally{a.f()}return{map:i,defaultCode:n}}function Fo(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i-=1){var a=r.slice(0,i).join("-");if(t[a])return t[a]}return null}(n,t)||zo;return Go(e,n,r)}(e,t):Go(e.code,[e.code],e)}function Go(e,t,n){var r=Rn([Lo,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Vo(e){return{id:Xe(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function qo(){var e,t=[],n=[];return function(r,i){return e&&Dt(r,t)&&Dt(i,n)||(e=function(e,t){var n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){var t,a,o,s=_createForOfIteratorHelper(e);try{for(s.s();!(t=s.n()).done;){var l=t.value,c=l.name,u=n[c];void 0===u?(n[c]=l.id,i(l.deps),o=l,r={premiumReleaseDate:Yo((a=r).premiumReleaseDate,o.premiumReleaseDate),reducers:a.reducers.concat(o.reducers),isLoadingFuncs:a.isLoadingFuncs.concat(o.isLoadingFuncs),contextInit:a.contextInit.concat(o.contextInit),eventRefiners:Object.assign(Object.assign({},a.eventRefiners),o.eventRefiners),eventDefMemberAdders:a.eventDefMemberAdders.concat(o.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},a.eventSourceRefiners),o.eventSourceRefiners),isDraggableTransformers:a.isDraggableTransformers.concat(o.isDraggableTransformers),eventDragMutationMassagers:a.eventDragMutationMassagers.concat(o.eventDragMutationMassagers),eventDefMutationAppliers:a.eventDefMutationAppliers.concat(o.eventDefMutationAppliers),dateSelectionTransformers:a.dateSelectionTransformers.concat(o.dateSelectionTransformers),datePointTransforms:a.datePointTransforms.concat(o.datePointTransforms),dateSpanTransforms:a.dateSpanTransforms.concat(o.dateSpanTransforms),views:Object.assign(Object.assign({},a.views),o.views),viewPropsTransformers:a.viewPropsTransformers.concat(o.viewPropsTransformers),isPropsValid:o.isPropsValid||a.isPropsValid,externalDefTransforms:a.externalDefTransforms.concat(o.externalDefTransforms),viewContainerAppends:a.viewContainerAppends.concat(o.viewContainerAppends),eventDropTransformers:a.eventDropTransformers.concat(o.eventDropTransformers),calendarInteractions:a.calendarInteractions.concat(o.calendarInteractions),componentInteractions:a.componentInteractions.concat(o.componentInteractions),themeClasses:Object.assign(Object.assign({},a.themeClasses),o.themeClasses),eventSourceDefs:a.eventSourceDefs.concat(o.eventSourceDefs),cmdFormatter:o.cmdFormatter||a.cmdFormatter,recurringTypes:a.recurringTypes.concat(o.recurringTypes),namedTimeZonedImpl:o.namedTimeZonedImpl||a.namedTimeZonedImpl,initialView:a.initialView||o.initialView,elementDraggingImpl:a.elementDraggingImpl||o.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},a.optionChangeHandlers),o.optionChangeHandlers),scrollGridImpl:o.scrollGridImpl||a.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},a.listenerRefiners),o.listenerRefiners),optionRefiners:Object.assign(Object.assign({},a.optionRefiners),o.optionRefiners),propSetHandlers:Object.assign(Object.assign({},a.propSetHandlers),o.propSetHandlers)}):u!==l.id&&"Duplicate plugin '".concat(c,"'")}}catch(e){s.e(e)}finally{s.f()}}return e&&i(e),i(t),r}(r,i)),t=r,n=i,e}}function Yo(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}var Qo=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t)}(Gn);function Zo(e,t,n,r){if(t[e])return t[e];var i=function(e,t,n,r){var i=n[e],a=r[e],o=function(e){return i&&null!==i[e]?i[e]:a&&null!==a[e]?a[e]:null},s=o("component"),l=o("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=Zo(l,t,n,r)}!s&&c&&(s=c.component);if(!s)return null;return{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),a?a.rawOptions:{})}}(e,t,n,r);return i&&(t[e]=i),i}function Xo(e){return xn(e,Jo)}function Jo(e){var t="function"==typeof e?{component:e}:e,n=t.component;return t.content?n=Ko(t):!n||n.prototype instanceof Kn||(n=Ko(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Ko(e){return function(t){return p(Zn.Consumer,null,(function(n){return p(ar,{elTag:"div",elClasses:lr(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount})}))}}function $o(e,t,n,r){var i=Xo(e),a=Xo(t.views),o=function(e,t){var n,r={};for(n in e)Zo(n,r,e,t);for(n in t)Zo(n,r,e,t);return r}(i,a);return xn(o,(function(e){return function(e,t,n,r,i){var a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,s="",l="",c={};if(a&&(o=function(e){var t=JSON.stringify(e),n=es[t];void 0===n&&(n=vt(e),es[t]=n);return n}(a),o)){var u=Et(o);s=u.unit,1===u.value&&(l=s,c=t[s]?t[s].rawOptions:{})}var d=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},f=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:o,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(gn)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(i)||e.defaults.buttonHint||f(gn)}}(e,a,t,n,r)}))}Qo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Qo.prototype.baseIconClass="fc-icon",Qo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Qo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Qo.prototype.iconOverrideOption="buttonIcons",Qo.prototype.iconOverrideCustomButtonOption="icon",Qo.prototype.iconOverridePrefix="fc-icon-";var es={};function ts(e,t,n){var r=t?t.activeRange:null;return is({},function(e,t){var n=qr(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);var a,o=_createForOfIteratorHelper(r);try{for(o.s();!(a=o.n()).done;){var s=Vr(a.value,t,n);s&&i.push(s)}}catch(e){o.e(e)}finally{o.f()}return i}(e,n),r,n)}function ns(e,t,n,r){var i,a,o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return is(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return i=e,a=t.sourceId,An(i,(function(e){return e.sourceId!==a}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?as(e,o,r):e;case"FETCH_EVENT_SOURCES":return os(e,t.sourceIds?Tn(t.sourceIds):ls(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function rs(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function is(e,t,n,r){var i,a={},o=_createForOfIteratorHelper(t);try{for(o.s();!(i=o.n()).done;){var s=i.value;a[s.sourceId]=s}}catch(e){o.e(e)}finally{o.f()}return n&&(a=as(a,n,r)),Object.assign(Object.assign({},e),a)}function as(e,t,n){return os(e,An(e,(function(e){return function(e,t,n){if(!cs(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)})),t,!1,n)}function os(e,t,n,r,i){var a={};for(var o in e){var s=e[o];t[o]?a[o]=ss(s,n,r,i):a[o]=s}return a}function ss(e,t,n,r){var i=r.options,a=r.calendarApi,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Xe();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},(function(n){var o=n.rawEvents;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(a,o,n.response)||o),e.success&&(o=e.success.call(a,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:o})}),(function(n){var o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(a,n),o=!0),e.failure&&(e.failure(n),o=!0),o||n.message,r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function ls(e,t){return An(e,(function(e){return cs(e,t)}))}function cs(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function us(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function ds(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function fs(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function hs(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function vs(e,t,n,r,i){return{header:e.headerToolbar?ps(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?ps(e.footerToolbar,e,t,n,r,i):null}}function ps(e,t,n,r,i,a){var o={},s=[],l=!1;for(var c in e){var u=gs(e[c],t,n,r,i,a);o[c]=u.widgets,s.push.apply(s,_toConsumableArray(u.viewsWithButtons)),l=l||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:l}}function gs(e,t,n,r,i,a){var o="rtl"===t.direction,s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],h=[],v=!1;return{widgets:f.map((function(e){return e.split(",").map((function(e){if("title"===e)return v=!0,{buttonName:e};var n,f,p,g,m,y;if(n=s[e])p=function(e){n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,o))||(m=n.text),y=n.hint||n.text;else if(f=i[e]){h.push(e),p=function(){a.changeView(e)},(m=f.buttonTextOverride)||(g=r.getIconClass(e,o))||(m=f.buttonTextDefault);var b=f.buttonTextOverride||f.buttonTextDefault;y=lt(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[b,e],b)}else if(a[e])if(p=function(){a[e]()},(m=l[e])||(g=r.getIconClass(e,o))||(m=c[e]),"prevYear"===e||"nextYear"===e){var C="prevYear"===e?"prev":"next";y=lt(u[C]||d[C],[c.year||"year","year"],c[e])}else y=function(t){return lt(u[e]||d[e],[c[t]||t,t],c[e])};return{buttonName:e,buttonClick:p,buttonIcon:g,buttonText:m,buttonHint:y}}))})),viewsWithButtons:h,hasTitle:v}}var ms=function(){return _createClass((function e(t,n,r){_classCallCheck(this,e),this.type=t,this.getCurrentData=n,this.dateEnv=r}),[{key:"calendar",get:function(){return this.getCurrentData().calendarApi}},{key:"title",get:function(){return this.getCurrentData().viewTitle}},{key:"activeStart",get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}},{key:"activeEnd",get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}},{key:"currentStart",get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}},{key:"currentEnd",get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}},{key:"getOption",value:function(e){return this.getCurrentData().options[e]}}])}();var ys={daysOfWeek:wn,startTime:vt,endTime:vt,duration:vt,startRecur:wn,endRecur:wn};function bs(e,t){var n=Mn(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});else{var r,i=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(r=a.n()).done;){for(var o=r.value,s=!1,l=0;l<n.length;l+=1)if(n[l]._raw===o){n.splice(l,1),s=!0;break}s||i.push(o)}}catch(e){a.e(e)}finally{a.f()}var c,u=_createForOfIteratorHelper(n);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}}catch(e){u.e(e)}finally{u.f()}for(var f=0,h=i;f<h.length;f++){var v=h[f];t.calendarApi.addEventSource(v)}}}var Cs=[Vo({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),Vo({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){var r=e.context.dateEnv;Ii(e.eventSource.meta.bind(null,Ti(e.range,r)),(function(e){return t({rawEvents:e})}),n)}}]}),Vo({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:wn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){var r=e.eventSource.meta,i=function(e,t,n){var r,i,a,o,s=n.dateEnv,l=n.options,c={};r=e.startParam,null==r&&(r=l.startParam);i=e.endParam,null==i&&(i=l.endParam);a=e.timeZoneParam,null==a&&(a=l.timeZoneParam);o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(c,o),c[r]=s.formatIso(t.start),c[i]=s.formatIso(t.end),"local"!==s.timeZone&&(c[a]=s.timeZone);return c}(r,e.range,e.context);Pi(r.method,r.url,i).then((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];t({rawEvents:r,response:i})}),n)}}]}),Vo({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n,r={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(i=e.endTime,a=e.startTime,n={years:i.years-a.years,months:i.months-a.months,days:i.days-a.days,milliseconds:i.milliseconds-a.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:r}}var i,a;return null},expand(e,t,n){var r=dr(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var i=e?Tn(e):null,a=Nt(n.start),o=n.end,s=[];for(;a<o;){var l=void 0;i&&!i[a.getUTCDay()]||(l=t?r.add(a,t):a,s.push(l)),a=xt(a,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:ys}),Vo({name:"change-handler",optionChangeHandlers:{events(e,t){bs([e],t)},eventSources:bs}}),Vo({name:"misc",isLoadingFuncs:[function(e){return rs(e.eventSources)}],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Ti(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",ui(e,t))}}})],Ss=function(){return _createClass((function e(t,n){_classCallCheck(this,e),this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new Me(this.drain.bind(this))}),[{key:"request",value:function(e,t){this.queue.push(e),this.delayedRunner.request(t)}},{key:"pause",value:function(e){this.delayedRunner.pause(e)}},{key:"resume",value:function(e,t){this.delayedRunner.resume(e,t)}},{key:"drain",value:function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}}},{key:"runTask",value:function(e){this.runTaskOption&&this.runTaskOption(e)}},{key:"drained",value:function(e){this.drainedOption&&this.drainedOption(e)}}])}();function ks(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,vn(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=Pt(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var _s=function(){return _createClass((function e(t){var n=this;_classCallCheck(this,e),this.computeCurrentViewData=Xt(this._computeCurrentViewData),this.organizeRawLocales=Xt(Uo),this.buildLocale=Xt(Fo),this.buildPluginHooks=qo(),this.buildDateEnv=Xt(Es),this.buildTheme=Xt(ws),this.parseToolbars=Xt(vs),this.buildViewSpecs=Xt($o),this.buildDateProfileGenerator=Jt(Ds),this.buildViewApi=Xt(Rs),this.buildViewUiProps=Jt(Ts),this.buildEventUiBySource=Xt(As,In),this.buildEventUiBases=Xt(xs),this.parseContextBusinessHours=Jt(Is),this.buildTitle=Xt(ks),this.emitter=new Kr,this.actionRunner=new Ss(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=function(){return n.data},this.dispatch=function(e){n.actionRunner.request(e)},this.props=t,this.actionRunner.pause();var r={},i=this.computeOptionsData(t.optionOverrides,r,t.calendarApi),a=i.calendarOptions.initialView||i.pluginHooks.initialView,o=this.computeCurrentViewData(a,i,t.optionOverrides,r);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(o.options);var s,l,c,u=(s=i.calendarOptions,l=i.dateEnv,null!=(c=s.initialDate)?l.createMarker(c):Cr(s.now,l)),d=o.dateProfileGenerator.build(u);pr(d.activeRange,u)||(u=d.currentRange.start);var f,h={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},v=_createForOfIteratorHelper(i.pluginHooks.contextInit);try{for(v.s();!(f=v.n()).done;){(0,f.value)(h)}}catch(e){v.e(e)}finally{v.f()}var p,g=ts(i.calendarOptions,d,h),m={dynamicOptionOverrides:r,currentViewType:a,currentDate:u,dateProfile:d,businessHours:this.parseContextBusinessHours(h),eventSources:g,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(h).selectionConfig},y=Object.assign(Object.assign({},h),m),b=_createForOfIteratorHelper(i.pluginHooks.reducers);try{for(b.s();!(p=b.n()).done;){var C=p.value;Object.assign(m,C(null,null,y))}}catch(e){b.e(e)}finally{b.f()}Ms(m,h)&&this.emitter.trigger("loading",!0),this.state=m,this.updateData(),this.actionRunner.resume()}),[{key:"resetOptions",value:function(e,t){var n,r=this.props;void 0===t?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),(n=this.optionsForRefining).push.apply(n,_toConsumableArray(t)));(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}},{key:"_handleAction",value:function(e){var t=this.props,n=this.state,r=this.emitter,i=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),a=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(n.currentViewType,e),s=this.computeCurrentViewData(o,a,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);var l={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},c=n.currentDate,u=n.dateProfile;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(u=s.dateProfileGenerator.build(c)),c=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(c,e),u=function(e,t,n,r){var i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((i=r.buildPrev(e,n)).isValid)return i;break;case"NEXT":if((i=r.buildNext(e,n)).isValid)return i}return e}(u,e,c,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&pr(u.currentRange,c)||(c=u.currentRange.start);var d,f=ns(n.eventSources,e,u,l),h=Yr(n.eventStore,e,f,u,l),v=rs(f)&&!s.options.progressiveEventRendering&&n.renderableEventStore||h,p=this.buildViewUiProps(l),g=p.eventUiSingleBase,m=p.selectionConfig,y=this.buildEventUiBySource(f),b={dynamicOptionOverrides:i,currentViewType:o,currentDate:c,dateProfile:u,eventSources:f,eventStore:h,renderableEventStore:v,selectionConfig:m,eventUiBases:this.buildEventUiBases(v.defs,g,y),businessHours:this.parseContextBusinessHours(l),dateSelection:us(n.dateSelection,e),eventSelection:ds(n.eventSelection,e),eventDrag:fs(n.eventDrag,e),eventResize:hs(n.eventResize,e)},C=Object.assign(Object.assign({},l),b),S=_createForOfIteratorHelper(a.pluginHooks.reducers);try{for(S.s();!(d=S.n()).done;){var k=d.value;Object.assign(b,k(n,e,C))}}catch(e){S.e(e)}finally{S.f()}var _=Ms(n,l),E=Ms(b,l);!_&&E?r.trigger("loading",!0):_&&!E&&r.trigger("loading",!1),this.state=b,t.onAction&&t.onAction(e)}},{key:"updateData",value:function(){var e,t,n,r,i=this.props,a=this.state,o=this.data,s=this.computeOptionsData(i.optionOverrides,a.dynamicOptionOverrides,i.calendarApi),l=this.computeCurrentViewData(a.currentViewType,s,i.optionOverrides,a.dynamicOptionOverrides),c=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(a.dateProfile,l.options,s.dateEnv),calendarApi:i.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),l),a),u=s.pluginHooks.optionChangeHandlers,d=o&&o.calendarOptions,f=s.calendarOptions;if(d&&d!==f)for(var h in d.timeZone!==f.timeZone&&(a.eventSources=c.eventSources=(e=c.eventSources,t=a.dateProfile,n=c,r=t?t.activeRange:null,os(e,ls(e,n),r,!0,n)),a.eventStore=c.eventStore=Xr(c.eventStore,o.dateEnv,c.dateEnv),a.renderableEventStore=c.renderableEventStore=Xr(c.renderableEventStore,o.dateEnv,c.dateEnv)),u)-1===this.optionsForHandling.indexOf(h)&&d[h]===f[h]||u[h](f[h],c);this.optionsForHandling=[],i.onData&&i.onData(c)}},{key:"computeOptionsData",value:function(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;var r=this.processRawCalendarOptions(e,t),i=r.refinedOptions,a=r.pluginHooks,o=r.localeDefaults,s=r.availableLocaleData;Os(r.extra);var l=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,a,s,i.defaultRangeSeparator),c=this.buildViewSpecs(a.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),u=this.buildTheme(i,a),d=this.parseToolbars(i,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:a,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:o,availableRawLocales:s.map}}},{key:"processRawCalendarOptions",value:function(e,t){var n,r=_n([gn,e,t]),i=r.locales,a=r.locale,o=this.organizeRawLocales(i),s=o.map,l=this.buildLocale(a||o.defaultCode,s).options,c=this.buildPluginHooks(e.plugins||[],Cs),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn),mn),yn),c.listenerRefiners),c.optionRefiners),d={},f=_n([gn,l,e,t]),h={},v=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,g=!1;for(var m in f)-1===this.optionsForRefining.indexOf(m)&&(f[m]===v[m]||bn[m]&&m in v&&bn[m](v[m],f[m]))?h[m]=p[m]:u[m]?(h[m]=u[m](f[m]),g=!0):d[m]=v[m];return g&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),(n=this.optionsForHandling).push.apply(n,_toConsumableArray(this.optionsForRefining)),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:o,localeDefaults:l,extra:d}}},{key:"_computeCurrentViewData",value:function(e,t,n,r){var i=t.viewSpecs[e];if(!i)throw new Error('viewType "'.concat(e,"\" is not available. Please make sure you've loaded all neccessary plugins"));var a=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r),o=a.refinedOptions;return Os(a.extra),{viewSpec:i,options:o,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}},{key:"processRawViewOptions",value:function(e,t,n,r,i){var a=_n([gn,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn),mn),yn),kn),t.listenerRefiners),t.optionRefiners),s={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,d={};for(var f in a)a[f]===l[f]||bn[f]&&bn[f](a[f],l[f])?s[f]=c[f]:(a[f]===this.currentCalendarOptionsInput[f]||bn[f]&&bn[f](a[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(s[f]=this.currentCalendarOptionsRefined[f]):o[f]?s[f]=o[f](a[f]):d[f]=a[f],u=!0);return u&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}])}();function Es(e,t,n,r,i,a,o,s){var l=Fo(t||o.defaultCode,o.map);return new Fn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function ws(e,t){return new(t.themeClasses[e.themeSystem]||Qo)(e)}function Ds(e){return new(e.dateProfileGeneratorClass||Sr)(e)}function Rs(e,t,n){return new ms(e,t,n)}function As(e){return xn(e,(function(e){return e.ui}))}function xs(e,t,n){var r={"":t};for(var i in e){var a=e[i];a.sourceId&&n[a.sourceId]&&(r[i]=n[a.sourceId])}return r}function Ts(e){var t=e.options;return{eventUiSingleBase:zr({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:zr({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Ms(e,t){var n,r=_createForOfIteratorHelper(t.pluginHooks.isLoadingFuncs);try{for(r.s();!(n=r.n()).done;){if((0,n.value)(e))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}function Is(e){return ei(e.options.businessHours,e)}function Os(e,t){for(var n in e)"Unknown option '".concat(n,"'"),t&&" for view '".concat(t,"'")}var Hs=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return p.apply(void 0,["div",{className:"fc-toolbar-chunk"}].concat(_toConsumableArray(t)))}},{key:"renderWidgetGroup",value:function(e){var t,n=this.props,r=this.context.theme,i=[],a=!0,o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var s=t.value,l=s.buttonName,c=s.buttonClick,u=s.buttonText,d=s.buttonIcon,f=s.buttonHint;if("title"===l)a=!1,i.push(p("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{var h=l===n.activeButton,v=!n.isTodayEnabled&&"today"===l||!n.isPrevEnabled&&"prev"===l||!n.isNextEnabled&&"next"===l,g=["fc-".concat(l,"-button"),r.getClass("button")];h&&g.push(r.getClass("buttonActive")),i.push(p("button",{type:"button",title:"function"==typeof f?f(n.navUnit):f,disabled:v,"aria-pressed":h,className:g.join(" "),onClick:c},u||(d?p("span",{className:d,role:"img"}):"")))}}}catch(e){o.e(e)}finally{o.f()}if(i.length>1){var m=a&&r.getClass("buttonGroup")||"";return p.apply(void 0,["div",{className:m}].concat(i))}return i[0]}}])}(Kn),Ps=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.model,i=n.extraClassName,a=!1,o=r.sectionWidgets,s=o.center;return o.left?(a=!0,e=o.left):e=o.start,o.right?(a=!0,t=o.right):t=o.end,p("div",{className:[i||"","fc-toolbar",a?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))}},{key:"renderSection",value:function(e,t){var n=this.props;return p(Hs,{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})}}])}(Kn),Ns=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).state={availableWidth:null},e.handleEl=function(t){e.el=t,$n(e.props.elRef,t),e.updateAvailableWidth()},e.handleResize=function(){e.updateAvailableWidth()},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",a="";return n?null!==t.availableWidth?i=t.availableWidth/n:a="".concat(1/n*100,"%"):i=e.height||"",p("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:a}},e.children)}},{key:"componentDidMount",value:function(){this.context.addResizeHandler(this.handleResize)}},{key:"componentWillUnmount",value:function(){this.context.removeResizeHandler(this.handleResize)}},{key:"updateAvailableWidth",value:function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}])}(Kn),Ws=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_callSuper(this,t,[e])).handleSegClick=function(e,t){var r=n.component,i=r.context,a=vi(t);if(a&&r.isValidSegDownEl(e.target)){var o=Oe(e.target,".fc-event-forced-url"),s=o?o.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new li(r.context,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:i.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=Ge(e.el,"click",".fc-event",n.handleSegClick),n}return _inherits(t,e),_createClass(t)}(ji),js=function(e){function t(e){var n,r,i,a,o,s;return _classCallCheck(this,t),(n=_callSuper(this,t,[e])).handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){vi(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=(r=e.el,i=".fc-event",a=n.handleSegEnter,o=n.handleSegLeave,Ge(r,"mouseover",i,(function(e,t){if(t!==s){s=t,a(e,t);var n=function(e){s=null,o(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),n}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.removeHoverListeners()}},{key:"triggerEvent",value:function(e,t,n){var r=this.component,i=r.context,a=vi(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new li(i,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:i.viewApi})}}])}(ji),Bs=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildViewContext=Xt(Xn),e.buildViewPropTransformers=Xt(zs),e.buildToolbarProps=Xt(Ls),e.headerRef={current:null},e.footerRef={current:null},e.interactionsStore={},e.state={viewLabelId:Ue()},e.registerInteractiveComponent=function(t,n){var r=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(t,n),i=[Ws,js].concat(e.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));e.interactionsStore[t.uid]=i,Li[t.uid]=r},e.unregisterInteractiveComponent=function(t){var n=e.interactionsStore[t.uid];if(n){var r,i=_createForOfIteratorHelper(n);try{for(i.s();!(r=i.n()).done;){r.value.destroy()}}catch(e){i.e(e)}finally{i.f()}delete e.interactionsStore[t.uid]}delete Li[t.uid]},e.resizeRunner=new Me((function(){e.props.emitter.trigger("_resize",!0),e.props.emitter.trigger("windowResize",{view:e.props.viewApi})})),e.handleWindowResize=function(t){var n=e.props.options;n.handleWindowResize&&t.target===window&&e.resizeRunner.request(n.windowResizeDelay)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e,t=this.props,n=t.toolbarConfig,r=t.options,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Cr(t.options.now,t.dateEnv),t.viewTitle),a=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?a=!0:null!=r.contentHeight?o=r.contentHeight:e=Math.max(r.aspectRatio,.5);var s=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return p(Zn.Provider,{value:s},n.header&&p(Ps,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),p(Ns,{liquid:a,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&p(Ps,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}},{key:"componentDidMount",value: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)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();var e,t=_createForOfIteratorHelper(this.calendarInteractions);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}this.props.emitter.trigger("_unmount")}},{key:"buildAppendContent",value:function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return p.apply(void 0,[m,{}].concat(_toConsumableArray(t)))}},{key:"renderView",value:function(e){var t,n=e.pluginHooks,r=e.viewSpec,i={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=_createForOfIteratorHelper(this.buildViewPropTransformers(n.viewPropsTransformers));try{for(a.s();!(t=a.n()).done;){var o=t.value;Object.assign(i,o.transform(i,e))}}catch(e){a.e(e)}finally{a.f()}return p(r.component,Object.assign({},i))}}])}(Jn);function Ls(e,t,n,r,i,a){var o=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!pr(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function zs(e){return e.map((function(e){return new e}))}var Us=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _classCallCheck(this,t),(n=_callSuper(this,t)).isRendering=!1,n.isRendered=!1,n.currentClassNames=[],n.customContentRenderId=0,n.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":n.renderRunner.tryDrain()}},n.handleData=function(e){n.currentData=e,n.renderRunner.request(e.calendarOptions.rerenderDelay)},n.handleRenderRequest=function(){if(n.isRendering){n.isRendered=!0;var e=n.currentData;Vn((function(){B(p(Wi,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,r,i,a){return n.setClassNames(t),n.setHeight(r),p(ir.Provider,{value:n.customContentRenderId},p(Bs,Object.assign({isHeightAuto:i,forPrint:a},e)))})),n.el)}))}else n.isRendered&&(n.isRendered=!1,B(null,n.el),n.setClassNames([]),n.setHeight(""))},function(e){e.isConnected&&e.getRootNode&&xe(e.getRootNode())}(e),n.el=e,n.renderRunner=new Me(n.handleRenderRequest),new _s({optionOverrides:r,calendarApi:n,onAction:n.handleAction,onData:n.handleData}),n}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}},{key:"destroy",value:function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}},{key:"updateSize",value:function(){var e=this;Vn((function(){_superPropGet(t,"updateSize",e,3)([])}))}},{key:"batchRendering",value:function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}},{key:"pauseRendering",value:function(){this.renderRunner.pause("pauseRendering")}},{key:"resumeRendering",value:function(){this.renderRunner.resume("pauseRendering",!0)}},{key:"resetOptions",value:function(e,t){this.currentDataManager.resetOptions(e,t)}},{key:"setClassNames",value:function(e){if(!Dt(e,this.currentClassNames)){var t,n=this.el.classList,r=_createForOfIteratorHelper(this.currentClassNames);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.remove(i)}}catch(e){r.e(e)}finally{r.f()}var a,o=_createForOfIteratorHelper(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.add(s)}}catch(e){o.e(e)}finally{o.f()}this.currentClassNames=e}}},{key:"setHeight",value:function(e){Be(this.el,"height",e)}}])}(zi);function Fs(e){var t=Fo(e.locale||"en",Uo([]).map);return new Fn(Object.assign(Object.assign({timeZone:gn.timeZone,calendarSystem:"gregory"},e),{locale:t}))}Ra.touchMouseIgnoreWait=500;var Gs=0,Vs=0,qs=!1,Ys=function(){return _createClass((function e(t){var n=this;_classCallCheck(this,e),this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!n.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&n.tryStart(e)){var t=n.createEventFromMouse(e,!0);n.emitter.trigger("pointerdown",t),n.initScrollWatch(t),n.shouldIgnoreMove||document.addEventListener("mousemove",n.handleMouseMove),document.addEventListener("mouseup",n.handleMouseUp)}},this.handleMouseMove=function(e){var t=n.createEventFromMouse(e);n.recordCoords(t),n.emitter.trigger("pointermove",t)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",n.handleMouseMove),document.removeEventListener("mouseup",n.handleMouseUp),n.emitter.trigger("pointerup",n.createEventFromMouse(e)),n.cleanup()},this.handleTouchStart=function(e){if(n.tryStart(e)){n.isTouchDragging=!0;var t=n.createEventFromTouch(e,!0);n.emitter.trigger("pointerdown",t),n.initScrollWatch(t);var r=e.target;n.shouldIgnoreMove||r.addEventListener("touchmove",n.handleTouchMove),r.addEventListener("touchend",n.handleTouchEnd),r.addEventListener("touchcancel",n.handleTouchEnd),window.addEventListener("scroll",n.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var t=n.createEventFromTouch(e);n.recordCoords(t),n.emitter.trigger("pointermove",t)},this.handleTouchEnd=function(e){if(n.isDragging){var t=e.target;t.removeEventListener("touchmove",n.handleTouchMove),t.removeEventListener("touchend",n.handleTouchEnd),t.removeEventListener("touchcancel",n.handleTouchEnd),window.removeEventListener("scroll",n.handleTouchScroll,!0),n.emitter.trigger("pointerup",n.createEventFromTouch(e)),n.cleanup(),n.isTouchDragging=!1,Gs+=1,setTimeout((function(){Gs-=1}),Ra.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){n.wasTouchScroll=!0},this.handleScroll=function(e){if(!n.shouldIgnoreMove){var t=window.scrollX-n.prevScrollX+n.prevPageX,r=window.scrollY-n.prevScrollY+n.prevPageY;n.emitter.trigger("pointermove",{origEvent:e,isTouch:n.isTouchDragging,subjectEl:n.subjectEl,pageX:t,pageY:r,deltaX:t-n.origPageX,deltaY:r-n.origPageY})}},this.containerEl=t,this.emitter=new Kr,t.addEventListener("mousedown",this.handleMouseDown),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(Vs+=1)&&window.addEventListener("touchmove",Qs,{passive:!1})}),[{key:"destroy",value:function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(Vs-=1)||window.removeEventListener("touchmove",Qs,{passive:!1})}},{key:"tryStart",value:function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Oe(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}},{key:"cleanup",value:function(){qs=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}},{key:"querySubjectEl",value:function(e){return this.selector?Oe(e.target,this.selector):this.containerEl}},{key:"shouldIgnoreMouse",value:function(){return Gs||this.isTouchDragging}},{key:"cancelTouchScroll",value:function(){this.isDragging&&(qs=!0)}},{key:"initScrollWatch",value:function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}},{key:"recordCoords",value:function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}},{key:"destroyScrollWatch",value:function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}},{key:"createEventFromMouse",value:function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}},{key:"createEventFromTouch",value:function(e,t){var n,r,i=e.touches,a=0,o=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(a=n-this.origPageX,o=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:a,deltaY:o}}}])}();function Qs(e){qs&&e.preventDefault()}var Zs=function(){return _createClass((function e(){_classCallCheck(this,e),this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}),[{key:"start",value:function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}},{key:"handleMove",value:function(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}},{key:"setIsVisible",value:function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}},{key:"stop",value:function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}},{key:"doRevertAnimation",value:function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",je(n,{left:r.left,top:r.top}),qe(n,(function(){n.style.transition="",e()}))}},{key:"cleanup",value:function(){this.mirrorEl&&(Ie(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}},{key:"updateElPosition",value:function(){this.sourceEl&&this.isVisible&&je(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}},{key:"getMirrorEl",value:function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),je(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}])}(),Xs=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_callSuper(this,t)).handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=e,r.doesListening=n,r.scrollTop=r.origScrollTop=e.getScrollTop(),r.scrollLeft=r.origScrollLeft=e.getScrollLeft(),r.scrollWidth=e.getScrollWidth(),r.scrollHeight=e.getScrollHeight(),r.clientWidth=e.getClientWidth(),r.clientHeight=e.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}},{key:"getScrollTop",value:function(){return this.scrollTop}},{key:"getScrollLeft",value:function(){return this.scrollLeft}},{key:"setScrollTop",value:function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}},{key:"setScrollLeft",value:function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}},{key:"getClientWidth",value:function(){return this.clientWidth}},{key:"getClientHeight",value:function(){return this.clientHeight}},{key:"getScrollWidth",value:function(){return this.scrollWidth}},{key:"getScrollHeight",value:function(){return this.scrollHeight}},{key:"handleScrollChange",value:function(){}}])}(va),Js=function(e){function t(e,n){return _classCallCheck(this,t),_callSuper(this,t,[new pa(e),n])}return _inherits(t,e),_createClass(t,[{key:"getEventTarget",value:function(){return this.scrollController.el}},{key:"computeClientRect",value:function(){return ca(this.scrollController.el)}}])}(Xs),Ks=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[new ga,e])}return _inherits(t,e),_createClass(t,[{key:"getEventTarget",value:function(){return window}},{key:"computeClientRect",value:function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}},{key:"handleScrollChange",value:function(){this.clientRect=this.computeClientRect()}}])}(Xs),$s="function"==typeof performance?performance.now:Date.now,el=function(){return _createClass((function e(){var t=this;_classCallCheck(this,e),this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(t.isAnimating){var e=t.computeBestEdge(t.pointerScreenX+window.scrollX,t.pointerScreenY+window.scrollY);if(e){var n=$s();t.handleSide(e,(n-t.msSinceRequest)/1e3),t.requestAnimation(n)}else t.isAnimating=!1}}}),[{key:"start",value:function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}},{key:"handleMove",value:function(e,t){if(this.isEnabled){var n=e-window.scrollX,r=t-window.scrollY,i=null===this.pointerScreenY?0:r-this.pointerScreenY,a=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation($s()))}}},{key:"stop",value:function(){if(this.isEnabled){this.isAnimating=!1;var e,t=_createForOfIteratorHelper(this.scrollCaches);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}this.scrollCaches=null}}},{key:"requestAnimation",value:function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}},{key:"handleSide",value:function(e,t){var n=e.scrollCache,r=this.edgeThreshold,i=r-e.distance,a=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+a*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+a*o)}}},{key:"computeBestEdge",value:function(e,t){var n,r=this.edgeThreshold,i=null,a=_createForOfIteratorHelper(this.scrollCaches||[]);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=o.clientRect,l=e-s.left,c=s.right-e,u=t-s.top,d=s.bottom-t;l>=0&&c>=0&&u>=0&&d>=0&&(u<=r&&this.everMovedUp&&o.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:o,name:"top",distance:u}),d<=r&&this.everMovedDown&&o.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:o,name:"bottom",distance:d}),l<=r&&this.everMovedLeft&&o.canScrollLeft()&&(!i||i.distance>l)&&(i={scrollCache:o,name:"left",distance:l}),c<=r&&this.everMovedRight&&o.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:o,name:"right",distance:c}))}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"buildCaches",value:function(e){return this.queryScrollEls(e).map((function(e){return e===window?new Ks(!1):new Js(e,!1)}))}},{key:"queryScrollEls",value:function(e){var t,n=[],r=_createForOfIteratorHelper(this.scrollQuery);try{for(r.s();!(t=r.n()).done;){var i=t.value;"object"==typeof i?n.push(i):n.push.apply(n,_toConsumableArray(Array.prototype.slice.call(e.getRootNode().querySelectorAll(i))))}}catch(e){r.e(e)}finally{r.f()}return n}}])}(),tl=function(e){function t(e,n){var r;_classCallCheck(this,t),(r=_callSuper(this,t,[e])).containerEl=e,r.delay=null,r.minDistance=0,r.touchScrollAllowed=!0,r.mirrorNeedsRevert=!1,r.isInteracting=!1,r.isDragging=!1,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,r.delayTimeoutId=null,r.onPointerDown=function(e){r.isDragging||(r.isInteracting=!0,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,$e(document.body),tt(document.body),e.isTouch||e.origEvent.preventDefault(),r.emitter.trigger("pointerdown",e),r.isInteracting&&!r.pointer.shouldIgnoreMove&&(r.mirror.setIsVisible(!1),r.mirror.start(e.subjectEl,e.pageX,e.pageY),r.startDelay(e),r.minDistance||r.handleDistanceSurpassed(e)))},r.onPointerMove=function(e){if(r.isInteracting){if(r.emitter.trigger("pointermove",e),!r.isDistanceSurpassed){var t=r.minDistance,n=e.deltaX,i=e.deltaY;n*n+i*i>=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&("scroll"!==e.origEvent.type&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger("dragmove",e))}},r.onPointerUp=function(e){r.isInteracting&&(r.isInteracting=!1,et(document.body),nt(document.body),r.emitter.trigger("pointerup",e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};var i=r.pointer=new Ys(e);return i.emitter.on("pointerdown",r.onPointerDown),i.emitter.on("pointermove",r.onPointerMove),i.emitter.on("pointerup",r.onPointerUp),n&&(i.selector=n),r.mirror=new Zs,r.autoScroller=new el,r}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.pointer.destroy(),this.onPointerUp({})}},{key:"startDelay",value:function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)}},{key:"handleDelayEnd",value:function(e){this.isDelayEnded=!0,this.tryStartDrag(e)}},{key:"handleDistanceSurpassed",value:function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}},{key:"tryStartDrag",value:function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}},{key:"tryStopDrag",value:function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}},{key:"stopDrag",value:function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}},{key:"setIgnoreMove",value:function(e){this.pointer.shouldIgnoreMove=e}},{key:"setMirrorIsVisible",value:function(e){this.mirror.setIsVisible(e)}},{key:"setMirrorNeedsRevert",value:function(e){this.mirrorNeedsRevert=e}},{key:"setAutoScrollEnabled",value:function(e){this.autoScroller.isEnabled=e}}])}(Da),nl=function(){return _createClass((function e(t){_classCallCheck(this,e),this.el=t,this.origRect=ua(t),this.scrollCaches=da(t).map((function(e){return new Js(e,!0)}))}),[{key:"destroy",value:function(){var e,t=_createForOfIteratorHelper(this.scrollCaches);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"computeLeft",value:function(){var e,t=this.origRect.left,n=_createForOfIteratorHelper(this.scrollCaches);try{for(n.s();!(e=n.n()).done;){var r=e.value;t+=r.origScrollLeft-r.getScrollLeft()}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"computeTop",value:function(){var e,t=this.origRect.top,n=_createForOfIteratorHelper(this.scrollCaches);try{for(n.s();!(e=n.n()).done;){var r=e.value;t+=r.origScrollTop-r.getScrollTop()}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"isWithinClipping",value:function(e,t){var n,r,i,a={left:e,top:t},o=_createForOfIteratorHelper(this.scrollCaches);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(r=s.getEventTarget(),i=void 0,"HTML"!==(i=r.tagName)&&"BODY"!==i&&!Ui(a,s.clientRect))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}}])}();var rl=function(){return _createClass((function e(t,n){var r=this;_classCallCheck(this,e),this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=r.dragging;r.initialHit=null,r.movingHit=null,r.finalHit=null,r.prepareHits(),r.processFirstCoord(e),r.initialHit||!r.requireInitial?(t.setIgnoreMove(!1),r.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){r.emitter.trigger("dragstart",e),r.handleMove(e,!0)},this.handleDragMove=function(e){r.emitter.trigger("dragmove",e),r.handleMove(e)},this.handlePointerUp=function(e){r.releaseHits(),r.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){r.movingHit&&r.emitter.trigger("hitupdate",null,!0,e),r.finalHit=r.movingHit,r.movingHit=null,r.emitter.trigger("dragend",e)},this.droppableStore=n,t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragstart",this.handleDragStart),t.emitter.on("dragmove",this.handleDragMove),t.emitter.on("pointerup",this.handlePointerUp),t.emitter.on("dragend",this.handleDragEnd),this.dragging=t,this.emitter=new Kr}),[{key:"processFirstCoord",value:function(e){var t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i instanceof HTMLElement&&(r=Vi(r,t=ua(i)));var a=this.initialHit=this.queryHitForOffset(r.left,r.top);if(a){if(this.useSubjectCenter&&t){var o=Fi(t,a.rect);o&&(r=qi(o))}this.coordAdjust=Yi(r,n)}else this.coordAdjust={left:0,top:0}}},{key:"handleMove",value:function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&il(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}},{key:"prepareHits",value:function(){this.offsetTrackers=xn(this.droppableStore,(function(e){return e.component.prepareHits(),new nl(e.el)}))}},{key:"releaseHits",value:function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}}},{key:"queryHitForOffset",value:function(e,t){var n=this.droppableStore,r=this.offsetTrackers,i=null;for(var a in n){var o=n[a].component,s=r[a];if(s&&s.isWithinClipping(e,t)){var l=s.computeLeft(),c=s.computeTop(),u=e-l,d=t-c,f=s.origRect,h=f.right-f.left,v=f.bottom-f.top;if(u>=0&&u<h&&d>=0&&d<v){var p=o.queryHit(u,d,h,v);p&&vr(p.dateProfile.activeRange,p.dateSpan.range)&&(this.disablePointCheck||s.el.contains(s.el.getRootNode().elementFromPoint(u+l-window.scrollX,d+c-window.scrollY)))&&(!i||p.layer>i.layer)&&(p.componentId=a,p.context=o.context,p.rect.left+=l,p.rect.right+=l,p.rect.top+=c,p.rect.bottom+=c,i=p)}}}return i}}])}();function il(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&xi(e.dateSpan,t.dateSpan)}function al(e,t){var n,r,i,a={},o=_createForOfIteratorHelper(t.pluginHooks.datePointTransforms);try{for(o.s();!(n=o.n()).done;){var s=n.value;Object.assign(a,s(e,t))}}catch(e){o.e(e)}finally{o.f()}return Object.assign(a,(r=e,{date:(i=t.dateEnv).toDate(r.range.start),dateStr:i.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),a}var ol=function(e){function t(e){var n;_classCallCheck(this,t),(n=_callSuper(this,t,[e])).handlePointerDown=function(e){var t=n.dragging,r=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(r))},n.handleDragEnd=function(e){var t=n.component;if(!n.dragging.pointer.wasTouchScroll){var r=n.hitDragging,i=r.initialHit,a=r.finalHit;if(i&&a&&il(i,a)){var o=t.context,s=Object.assign(Object.assign({},al(i.dateSpan,o)),{dayEl:i.dayEl,jsEvent:e.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",s)}}},n.dragging=new tl(e.el),n.dragging.autoScroller.isEnabled=!1;var r=n.hitDragging=new rl(n.dragging,Bi(e));return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("dragend",n.handleDragEnd),n}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.dragging.destroy()}}])}(ji),sl=function(e){function t(e){var n;_classCallCheck(this,t),(n=_callSuper(this,t,[e])).dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,i=t.dragging,a=r.context.options.selectable&&r.isValidDateDownEl(e.origEvent.target);i.setIgnoreMove(!a),i.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var r=n.component.context,i=null,a=!1;if(e){var o=n.hitDragging.initialHit;e.componentId===o.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(o,e)||(i=function(e,t,n){var r=e.dateSpan,i=t.dateSpan,a=[r.range.start,r.range.end,i.range.start,i.range.end];a.sort(ct);var o,s={},l=_createForOfIteratorHelper(n);try{for(l.s();!(o=l.n()).done;){var c=(0,o.value)(e,t);if(!1===c)return null;c&&Object.assign(s,c)}}catch(e){l.e(e)}finally{l.f()}return s.range={start:a[0],end:a[3]},s.allDay=r.allDay,s}(o,e,r.pluginHooks.dateSelectionTransformers)),i&&Va(i,e.dateProfile,r)||(a=!0,i=null)}i?r.dispatch({type:"SELECT_DATES",selection:i}):t||r.dispatch({type:"UNSELECT_DATES"}),a?Je():Ke(),t||(n.dragSelection=i)},n.handlePointerUp=function(e){n.dragSelection&&(ti(n.dragSelection,e,n.component.context),n.dragSelection=null)};var r=e.component.context.options,i=n.dragging=new tl(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;var a=n.hitDragging=new rl(n.dragging,Bi(e));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("pointerup",n.handlePointerUp),n}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.dragging.destroy()}}])}(ji);var ll=function(e){function t(e){var n;_classCallCheck(this,t),(n=_callSuper(this,t,[e])).subjectEl=null,n.subjectSeg=null,n.isDragging=!1,n.eventRange=null,n.relevantEvents=null,n.receivingContext=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=e.origEvent.target,r=n,i=r.component,a=r.dragging,o=a.mirror,s=i.context.options,l=i.context;n.subjectEl=e.subjectEl;var c=n.subjectSeg=vi(e.subjectEl),u=(n.eventRange=c.eventRange).instance.instanceId;n.relevantEvents=Hr(l.getCurrentData().eventStore,u),a.minDistance=e.isTouch?0:s.eventDragMinDistance,a.delay=e.isTouch&&u!==i.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(i):null,s.fixedMirrorParent?o.parentNode=s.fixedMirrorParent:o.parentNode=Oe(t,".fc"),o.revertDuration=s.dragRevertDuration;var d=i.isValidSegDownEl(t)&&!Oe(t,".fc-event-resizer");a.setIgnoreMove(!d),n.isDragging=d&&e.subjectEl.classList.contains("fc-event-draggable")},n.handleDragStart=function(e){var t=n.component.context,r=n.eventRange,i=r.instance.instanceId;e.isTouch?i!==n.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):t.dispatch({type:"UNSELECT_EVENT"}),n.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:n.subjectEl,event:new li(t,r.def,r.instance),jsEvent:e.origEvent,view:t.viewApi}))},n.handleHitUpdate=function(e,t){if(n.isDragging){var r=n.relevantEvents,i=n.hitDragging.initialHit,a=n.component.context,o=null,s=null,l=null,c=!1,u={affectedEvents:r,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){var d=(o=e.context).options;a===o||d.editable&&d.droppable?(s=function(e,t,n,r){var i=e.dateSpan,a=t.dateSpan,o=i.range.start,s=a.range.start,l={};i.allDay!==a.allDay&&(l.allDay=a.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,o=a.allDay?Nt(n):n);var c=br(o,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(l.allDay=!1);var u,d={datesDelta:c,standardProps:l},f=_createForOfIteratorHelper(r);try{for(f.s();!(u=f.n()).done;){(0,u.value)(d,e,t)}}catch(e){f.e(e)}finally{f.f()}return d}(i,e,n.eventRange.instance.range.start,o.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(l=ii(r,o.getCurrentData().eventUiBases,s,o),u.mutatedEvents=l,Ga(u,e.dateProfile,o)||(c=!0,s=null,l=null,u.mutatedEvents={defs:{},instances:{}})):o=null}n.displayDrag(o,u),c?Je():Ke(),t||(a===o&&il(i,e)&&(s=null),n.dragging.setMirrorNeedsRevert(!s),n.dragging.setMirrorIsVisible(!e||!n.subjectEl.getRootNode().querySelector(".fc-event-mirror")),n.receivingContext=o,n.validMutation=s,n.mutatedRelevantEvents=l)}},n.handlePointerUp=function(){n.isDragging||n.cleanup()},n.handleDragEnd=function(e){if(n.isDragging){var t=n.component.context,r=t.viewApi,i=n,a=i.receivingContext,o=i.validMutation,s=n.eventRange.def,l=n.eventRange.instance,c=new li(t,s,l),u=n.relevantEvents,d=n.mutatedRelevantEvents,f=n.hitDragging.finalHit;if(n.clearDrag(),t.emitter.trigger("eventDragStop",{el:n.subjectEl,event:c,jsEvent:e.origEvent,view:r}),o){if(a===t){var h=new li(t,d.defs[s.defId],l?d.instances[l.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:d});var v,p={oldEvent:c,event:h,relatedEvents:ui(d,t,l),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:u})}},g={},m=_createForOfIteratorHelper(t.getCurrentData().pluginHooks.eventDropTransformers);try{for(m.s();!(v=m.n()).done;){var y=v.value;Object.assign(g,y(o,t))}}catch(e){m.e(e)}finally{m.f()}t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},p),g),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:r})),t.emitter.trigger("eventChange",p)}else if(a){var b={event:c,relatedEvents:ui(u,t,l),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:u})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:e.subjectEl,view:r})),t.dispatch({type:"REMOVE_EVENTS",eventStore:u}),t.emitter.trigger("eventRemove",b);var C=d.defs[s.defId],S=d.instances[l.instanceId],k=new li(a,C,S);a.dispatch({type:"MERGE_EVENTS",eventStore:d});var _={event:k,relatedEvents:ui(d,a,S),revert(){a.dispatch({type:"REMOVE_EVENTS",eventStore:d})}};a.emitter.trigger("eventAdd",_),e.isTouch&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:l.instanceId}),a.emitter.trigger("drop",Object.assign(Object.assign({},al(f.dateSpan,a)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:f.context.viewApi})),a.emitter.trigger("eventReceive",Object.assign(Object.assign({},_),{draggedEl:e.subjectEl,view:f.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}n.cleanup()};var r=n.component.context.options,i=n.dragging=new tl(e.el);i.pointer.selector=t.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;var a=n.hitDragging=new rl(n.dragging,Li);return a.useSubjectCenter=e.useEventCenter,a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("pointerup",n.handlePointerUp),a.emitter.on("dragend",n.handleDragEnd),n}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.dragging.destroy()}},{key:"displayDrag",value:function(e,t){var n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}},{key:"clearDrag",value:function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}},{key:"cleanup",value:function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}])}(ji);ll.SELECTOR=".fc-event-draggable, .fc-event-resizable";var cl=function(e){function t(e){var n;_classCallCheck(this,t),(n=_callSuper(this,t,[e])).draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,r=vi(n.querySegEl(e)),i=n.eventRange=r.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==i.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,r=n.eventRange;n.relevantEvents=Hr(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var i=n.querySegEl(e);n.draggingSegEl=i,n.draggingSeg=vi(i),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:i,event:new li(t,r.def,r.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,r){var i=n.component.context,a=n.relevantEvents,o=n.hitDragging.initialHit,s=n.eventRange.instance,l=null,c=null,u=!1,d={affectedEvents:a,mutatedEvents:{defs:{},instances:{}},isEvent:!0};e&&(e.componentId===o.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(o,e)||(l=function(e,t,n,r){var i=e.context.dateEnv,a=e.dateSpan.range.start,o=t.dateSpan.range.start,s=br(a,o,i,e.largeUnit);if(n){if(i.add(r.start,s)<r.end)return{startDelta:s}}else if(i.add(r.end,s)>r.start)return{endDelta:s};return null}(o,e,r.subjectEl.classList.contains("fc-event-resizer-start"),s.range)));l&&(c=ii(a,i.getCurrentData().eventUiBases,l,i),d.mutatedEvents=c,Ga(d,e.dateProfile,i)||(u=!0,l=null,c=null,d.mutatedEvents=null)),c?i.dispatch({type:"SET_EVENT_RESIZE",state:d}):i.dispatch({type:"UNSET_EVENT_RESIZE"}),u?Je():Ke(),t||(l&&il(o,e)&&(l=null),n.validMutation=l,n.mutatedRelevantEvents=c)},n.handleDragEnd=function(e){var t=n.component.context,r=n.eventRange.def,i=n.eventRange.instance,a=new li(t,r,i),o=n.relevantEvents,s=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:a,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var l=new li(t,s.defs[r.defId],i?s.instances[i.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:s});var c={oldEvent:a,event:l,relatedEvents:ui(s,t,i),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:o})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||vt(0),endDelta:n.validMutation.endDelta||vt(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=e.component,i=n.dragging=new tl(e.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.context.options.dragScroll;var a=n.hitDragging=new rl(n.dragging,Bi(e));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("dragend",n.handleDragEnd),n}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.dragging.destroy()}},{key:"querySegEl",value:function(e){return Oe(e.subjectEl,".fc-event")}}])}(ji);var ul=function(){return _createClass((function e(t){var n=this;_classCallCheck(this,e),this.context=t,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(n.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var t=n.context.options.unselectCancel,r=Le(e.origEvent);n.matchesCancel=!!Oe(r,t),n.matchesEvent=!!Oe(r,ll.SELECTOR)},this.onDocumentPointerUp=function(e){var t=n.context,r=n.documentPointer,i=t.getCurrentData();if(!r.wasTouchScroll){if(i.dateSelection&&!n.isRecentPointerDateSelect){var a=t.options.unselectAuto;!a||a&&n.matchesCancel||t.calendarApi.unselect(e)}i.eventSelection&&!n.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}n.isRecentPointerDateSelect=!1};var r=this.documentPointer=new Ys(document);r.shouldIgnoreMove=!0,r.shouldWatchScroll=!1,r.emitter.on("pointerdown",this.onDocumentPointerDown),r.emitter.on("pointerup",this.onDocumentPointerUp),t.emitter.on("select",this.onSelect)}),[{key:"destroy",value:function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}])}(),dl={fixedMirrorParent:wn},fl={dateClick:wn,eventDragStart:wn,eventDragStop:wn,eventDrop:wn,eventResizeStart:wn,eventResizeStop:wn,eventResize:wn,drop:wn,eventReceive:wn,eventLeave:wn},hl=function(){return _createClass((function e(t,n){var r=this;_classCallCheck(this,e),this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){r.dragMeta=r.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,n){var i=r.hitDragging.dragging,a=null,o=null,s=!1,l={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:r.dragMeta.create};e&&(a=e.context,r.canDropElOnCalendar(n.subjectEl,a)&&(o=function(e,t,n){var r,i=Object.assign({},t.leftoverProps),a=_createForOfIteratorHelper(n.pluginHooks.externalDefTransforms);try{for(a.s();!(r=a.n()).done;){var o=r.value;Object.assign(i,o(e,t))}}catch(e){a.e(e)}finally{a.f()}var s=xr(i,n),l=s.refined,c=s.extra,u=Mr(l,c,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),d=e.range.start;e.allDay&&t.startTime&&(d=n.dateEnv.add(d,t.startTime));var f=t.duration?n.dateEnv.add(d,t.duration):ri(e.allDay,d,n),h=kr(u.defId,{start:d,end:f});return{def:u,instance:h}}(e.dateSpan,r.dragMeta,a),l.mutatedEvents=Or(o),(s=!Ga(l,e.dateProfile,a))&&(l.mutatedEvents={defs:{},instances:{}},o=null))),r.displayDrag(a,l),i.setMirrorIsVisible(t||!o||!document.querySelector(".fc-event-mirror")),s?Je():Ke(),t||(i.setMirrorNeedsRevert(!o),r.receivingContext=a,r.droppableEvent=o)},this.handleDragEnd=function(e){var t=r.receivingContext,n=r.droppableEvent;if(r.clearDrag(),t&&n){var i=r.hitDragging.finalHit,a=i.context.viewApi,o=r.dragMeta;if(t.emitter.trigger("drop",Object.assign(Object.assign({},al(i.dateSpan,t)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:a})),o.create){var s=Or(n);t.dispatch({type:"MERGE_EVENTS",eventStore:s}),e.isTouch&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:n.instance.instanceId}),t.emitter.trigger("eventReceive",{event:new li(t,n.def,n.instance),relatedEvents:[],revert(){t.dispatch({type:"REMOVE_EVENTS",eventStore:s})},draggedEl:e.subjectEl,view:a})}}r.receivingContext=null,r.droppableEvent=null};var i=this.hitDragging=new rl(t,Li);i.requireInitial=!1,i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=n}),[{key:"buildDragMeta",value:function(e){return"object"==typeof this.suppliedDragMeta?xa(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?xa(this.suppliedDragMeta(e)):(t=function(e,t){var n=Ra.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event"),xa(t?JSON.parse(t):{create:!1}));var t}},{key:"displayDrag",value:function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}},{key:"clearDrag",value:function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})}},{key:"canDropElOnCalendar",value:function(e,t){var n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean(He(e,n))}}])}();Ra.dataAttrPrefix="";var vl=function(){return _createClass((function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,e),this.handlePointerDown=function(e){var t=n.dragging,r=n.settings,i=r.minDistance,a=r.longPressDelay;t.minDistance=null!=i?i:e.isTouch?0:gn.eventDragMinDistance,t.delay=e.isTouch?null!=a?a:gn.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=r;var i=this.dragging=new tl(t);i.touchScrollAllowed=!1,null!=r.itemSelector&&(i.pointer.selector=r.itemSelector),null!=r.appendTo&&(i.mirror.parentNode=r.appendTo),i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),new hl(i,r.eventData)}),[{key:"destroy",value:function(){this.dragging.destroy()}}])}(),pl=function(e){function t(e){var n;_classCallCheck(this,t),(n=_callSuper(this,t,[e])).shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new Ys(e);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.pointer.destroy()}},{key:"setIgnoreMove",value:function(e){this.shouldIgnoreMove=e}},{key:"setMirrorIsVisible",value:function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}}}])}(Da),gl=function(){return _createClass((function e(t,n){_classCallCheck(this,e);var r=document;t===document||t instanceof Element?(r=t,n=n||{}):n=t||{};var i=this.dragging=new pl(r);"string"==typeof n.itemSelector?i.pointer.selector=n.itemSelector:r===document&&(i.pointer.selector="[data-event]"),"string"==typeof n.mirrorSelector&&(i.mirrorSelector=n.mirrorSelector),new hl(i,n.eventData).hitDragging.disablePointCheck=!0}),[{key:"destroy",value:function(){this.dragging.destroy()}}])}(),ml=Vo({name:"@fullcalendar/interaction",componentInteractions:[ol,sl,ll,cl],calendarInteractions:[ul],elementDraggingImpl:tl,optionRefiners:dl,listenerRefiners:fl}),yl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).headerElRef={current:null},e}return _inherits(t,e),_createClass(t,[{key:"renderSimpleLayout",value:function(e,t){var n=this.props,r=this.context,i=[],a=ho(r.options);return e&&i.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),p(sr,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},p(po,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}},{key:"renderHScrollLayout",value:function(e,t,n,r){var i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");var a=this.props,o=this.context,s=!a.forPrint&&ho(o.options),l=!a.forPrint&&vo(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:s,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:fo}]}),p(sr,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},p(i,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}}])}(ma);function bl(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];var i,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var o=i.value;n[o.row].push(o)}}catch(e){a.e(e)}finally{a.f()}return n}function Cl(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];var i,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var o=i.value;n[o.firstCol].push(o)}}catch(e){a.e(e)}finally{a.f()}return n}function Sl(e,t){var n=[];if(e){for(var r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};var i,a=_createForOfIteratorHelper(e.segs);try{for(a.s();!(i=a.n()).done;){var o=i.value;n[o.row].segs.push(o)}}catch(e){a.e(e)}finally{a.f()}}else for(var s=0;s<t;s+=1)n[s]=null;return n}var kl=vn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function _l(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var El=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props;return p(mo,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:kl,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}])}(Kn),wl=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.options,r=ki(e.seg,n.eventTimeFormat||kl,t,!0,e.defaultDisplayEventEnd);return p(go,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Di(e.seg,t),defaultGenerator:Dl,timeText:r,isResizing:!1,isDateSelecting:!1}))}}])}(Kn);function Dl(e){return p(m,null,p("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&p("div",{className:"fc-event-time"},e.timeText),p("div",{className:"fc-event-title"},e.event.title||p(m,null," ")))}var Rl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).compileSegs=Xt(Al),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,r=t.invisibleSegs;return p(Mo,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return p(m,null,n.map((function(n){var r=n.eventRange.instance.instanceId;return p("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:t[r]?"hidden":""}},_l(n)?p(wl,Object.assign({seg:n,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},_i(n,e.todayRange))):p(El,Object.assign({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},_i(n,e.todayRange))))})))}})}}])}(Kn);function Al(e){var t,n=[],r=[],i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a.seg),a.isVisible||r.push(a.seg)}}catch(e){i.e(e)}finally{i.f()}return{allSegs:n,invisibleSegs:r}}var xl=vn({week:"narrow"}),Tl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).rootElRef={current:null},e.state={dayNumberId:Ue()},e.handleRootEl=function(t){$n(e.rootElRef,t),$n(e.props.elRef,t)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.context,t=this.props,n=this.state,r=this.rootElRef,i=e.options,a=e.dateEnv,o=t.date,s=t.dateProfile,l=t.showDayNumber&&function(e,t,n){var r=t.start,i=t.end,a=Tt(i,-1),o=n.getYear(r),s=n.getMonth(r),l=n.getYear(a),c=n.getMonth(a);return!(o===l&&s===c)&&Boolean(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<i.valueOf())}(o,s.currentRange,a);return p(So,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day"].concat(_toConsumableArray(t.extraClassNames||[])),elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Ml,date:o,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},(function(a,s){return p("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&p(Ro,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:na(e,o,"week"),date:o,defaultFormat:xl}),!s.isDisabled&&(t.showDayNumber||ko(i)||t.forceDayTop)?p("div",{className:"fc-daygrid-day-top"},p(a,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},na(e,o)),{id:n.dayNumberId})})):t.showDayNumber?p("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},p("a",{className:"fc-daygrid-day-number"}," ")):void 0,p("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,p("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},p(Rl,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),p("div",{className:"fc-daygrid-day-bg"},t.bgContent))}))}}])}(ma);function Ml(e){return e.dayNumberText||p(m,null," ")}function Il(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function Ol(e){return Il(e)+":"+e.lastCol}function Hl(e,t,n,r,i,a,o){var s=new Nl((function(t){var n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return i[n]||1}));s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=a,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var l=[],c=[],u=0;u<e.length;u+=1){var d=e[u],f=Ol(d);null!=i[f]?l.push({index:u,span:{start:d.firstCol,end:d.lastCol+1}}):c.push(d)}for(var h=s.addSegs(l),v=function(e,t,n){for(var r=function(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);var i,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;)for(var o=i.value,s=o.span.start;s<o.span.end;s+=1)n[s].push(o)}catch(e){a.e(e)}finally{a.f()}return n}(e,n.length),i=[],a=[],o=[],s=0;s<n.length;s+=1){var l,c=r[s],u=[],d=0,f=0,h=_createForOfIteratorHelper(c);try{for(h.s();!(l=h.n()).done;){var v=l.value,p=t[v.index];u.push({seg:Pl(p,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:v.levelCoord,marginTop:v.levelCoord-d}),d=v.levelCoord+v.thickness}}catch(e){h.e(e)}finally{h.f()}var g=[];d=0,f=0;var m,y=_createForOfIteratorHelper(c);try{for(y.s();!(m=y.n()).done;){var b=m.value,C=t[b.index],S=b.span.end-b.span.start>1,k=b.span.start===s;f+=b.levelCoord-d,d=b.levelCoord+b.thickness,S?(f+=b.thickness,k&&g.push({seg:Pl(C,b.span.start,b.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:b.levelCoord,marginTop:0})):k&&(g.push({seg:Pl(C,b.span.start,b.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:b.levelCoord,marginTop:f}),f=0)}}catch(e){y.e(e)}finally{y.f()}i.push(u),a.push(g),o.push(f)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}(s.toRects(),e,o),p=v.singleColPlacements,g=v.multiColPlacements,m=v.leftoverMargins,y=[],b=[],C=0,S=c;C<S.length;C++){var k=S[C];g[k.firstCol].push({seg:k,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var _=k.firstCol;_<=k.lastCol;_+=1)p[_].push({seg:Pl(k,_,_+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(var E=0;E<o.length;E+=1)y.push(0);var w,D=_createForOfIteratorHelper(h);try{for(D.s();!(w=D.n()).done;){var R=w.value,A=e[R.index],x=R.span;g[x.start].push({seg:Pl(A,x.start,x.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var T=x.start;T<x.end;T+=1)y[T]+=1,p[T].push({seg:Pl(A,T,T+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}}catch(e){D.e(e)}finally{D.f()}for(var M=0;M<o.length;M+=1)b.push(m[M]);return{singleColPlacements:p,multiColPlacements:g,moreCnts:y,moreMarginTops:b}}function Pl(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;var i=e.eventRange,a=i.range,o=dr(a,{start:r[t].date,end:xt(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===a.end.valueOf()})}var Nl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).hiddenConsumes=!1,e.forceHidden={},e}return _inherits(t,e),_createClass(t,[{key:"addSegs",value:function(e){for(var n=this,r=_superPropGet(t,"addSegs",this,3)([e]),i=this.entriesByLevel,a=function(e){return!n.forceHidden[Sa(e)]},o=0;o<i.length;o+=1)i[o]=i[o].filter(a);return r}},{key:"handleInvalidInsertion",value:function(e,n,r){var i=this.entriesByLevel,a=this.forceHidden,o=e.touchingEntry,s=e.touchingLevel,l=e.touchingLateral;if(this.hiddenConsumes&&o){var c=Sa(o);if(!a[c])if(this.allowReslicing){var u=Object.assign(Object.assign({},o),{span:_a(o.span,n.span)});a[Sa(u)]=!0,i[s][l]=u,r.push(u),this.splitEntry(o,n,r)}else a[c]=!0,r.push(o)}_superPropGet(t,"handleInvalidInsertion",this,3)([e,n,r])}}])}(ba),Wl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).cellElRefs=new eo,e.frameElRefs=new eo,e.fgElRefs=new eo,e.segHarnessRefs=new eo,e.rootElRef={current:null},e.state={framePositions:null,maxContentHeight:null,segHeights:{}},e.handleResize=function(t){t&&e.updateSizing(!0)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=this.context.options,i=t.cells.length,a=Cl(t.businessHourSegs,i),o=Cl(t.bgEventSegs,i),s=Cl(this.getHighlightSegs(),i),l=Cl(this.getMirrorSegs(),i),c=Hl(mi(t.fgEventSegs,r.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,r.eventOrderStrict,n.segHeights,n.maxContentHeight,t.cells),u=c.singleColPlacements,d=c.multiColPlacements,f=c.moreCnts,h=c.moreMarginTops,v=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return p("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((function(n,r){var i=e.renderFgSegs(r,t.forPrint?u[r]:d[r],t.todayRange,v),c=e.renderFgSegs(r,function(e,t){if(!e.length)return[];var n=function(e){var t,n={},r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i,a=_createForOfIteratorHelper(t.value);try{for(a.s();!(i=a.n()).done;){var o=i.value;n[o.seg.eventRange.instance.instanceId]=o.absoluteTop}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return n}(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}}))}(l[r],d),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return p(Tl,{key:n.key,elRef:e.cellElRefs.createRef(n.key),innerElRef:e.frameElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&0===r,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:n.extraRenderProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,moreCnt:f[r],moreMarginTop:h[r],singlePlacements:u[r],fgContentElRef:e.fgElRefs.createRef(n.key),fgContent:p(m,null,p(m,null,i),p(m,null,c)),bgContent:p(m,null,e.renderFillSegs(s[r],"highlight"),e.renderFillSegs(a[r],"non-business"),e.renderFillSegs(o[r],"bg-event")),minHeight:t.cellMinHeight})})))}},{key:"componentDidMount",value:function(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props;this.updateSizing(!In(e,n))}},{key:"componentWillUnmount",value:function(){this.context.removeResizeHandler(this.handleResize)}},{key:"getHighlightSegs",value:function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}},{key:"getMirrorSegs",value:function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}},{key:"renderFgSegs",value:function(e,t,n,r,i,a,o){var s=this.context,l=this.props.eventSelection,c=this.state.framePositions,u=1===this.props.cells.length,d=i||a||o,f=[];if(c){var h,v=_createForOfIteratorHelper(t);try{for(v.s();!(h=v.n()).done;){var g=h.value,m=g.seg,y=m.eventRange.instance.instanceId,b=g.isVisible&&!r[y],C=g.isAbsolute,S="",k="";C&&(s.isRtl?(k=0,S=c.lefts[m.lastCol]-c.lefts[m.firstCol]):(S=0,k=c.rights[m.firstCol]-c.rights[m.lastCol])),f.push(p("div",{className:"fc-daygrid-event-harness"+(C?" fc-daygrid-event-harness-abs":""),key:Il(m),ref:d?null:this.segHarnessRefs.createRef(Ol(m)),style:{visibility:b?"":"hidden",marginTop:C?"":g.marginTop,top:C?g.absoluteTop:"",left:S,right:k}},_l(m)?p(wl,Object.assign({seg:m,isDragging:i,isSelected:y===l,defaultDisplayEventEnd:u},_i(m,n))):p(El,Object.assign({seg:m,isDragging:i,isResizing:a,isDateSelecting:o,isSelected:y===l,defaultDisplayEventEnd:u},_i(m,n)))))}}catch(e){v.e(e)}finally{v.f()}}return f}},{key:"renderFillSegs",value:function(e,t){var n=this.context.isRtl,r=this.props.todayRange,i=this.state.framePositions,a=[];if(i){var o,s=_createForOfIteratorHelper(e);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=n?{right:0,left:i.lefts[l.lastCol]-i.lefts[l.firstCol]}:{left:0,right:i.rights[l.firstCol]-i.rights[l.lastCol]};a.push(p("div",{key:wi(l.eventRange),className:"fc-daygrid-bg-harness",style:c},"bg-event"===t?p(Eo,Object.assign({seg:l},_i(l,r))):Do(t)))}}catch(e){s.e(e)}finally{s.f()}}return p.apply(void 0,[m,{}].concat(a))}},{key:"updateSizing",value:function(e){var t=this.props,n=this.state,r=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var i=t.cells.map((function(e){return r.currentMap[e.key]}));if(i.length){var a=this.rootElRef.current,o=new fa(a,i,!0,!1);n.framePositions&&n.framePositions.similarTo(o)||this.setState({framePositions:new fa(a,i,!0,!1)})}}var s=this.state.segHeights,l=this.querySegHeights(),c=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:c?this.computeMaxContentHeight():null})}}},{key:"querySegHeights",value:function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}},{key:"computeMaxContentHeight",value:function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}},{key:"getCellEls",value:function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))}}])}(ma);Wl.addStateEquality({segHeights:In});var jl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).splitBusinessHourSegs=Xt(bl),e.splitBgEventSegs=Xt(bl),e.splitFgEventSegs=Xt(bl),e.splitDateSelectionSegs=Xt(bl),e.splitEventDrag=Xt(Sl),e.splitEventResize=Xt(Sl),e.rowRefs=new eo,e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),a=this.splitBgEventSegs(t.bgEventSegs,r),o=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),u=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return p(Na,{unit:"day"},(function(n,d){return p(m,null,t.cells.map((function(n,f){return p(Wl,{ref:e.rowRefs.createRef(f),key:n.length?n[0].date.toISOString():f,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:d,dateProfile:t.dateProfile,cells:n,renderIntro:t.renderRowIntro,businessHourSegs:i[f],eventSelection:t.eventSelection,bgEventSegs:a[f].filter(Bl),fgEventSegs:o[f],dateSelectionSegs:s[f],eventDrag:l[f],eventResize:c[f],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:u,forPrint:t.forPrint})})))}))}},{key:"componentDidMount",value:function(){this.registerInteractiveComponent()}},{key:"componentDidUpdate",value:function(){this.registerInteractiveComponent()}},{key:"registerInteractiveComponent",value:function(){if(!this.rootEl){var e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}},{key:"componentWillUnmount",value:function(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}},{key:"prepareHits",value:function(){this.rowPositions=new fa(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new fa(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}},{key:"queryHit",value:function(e,t){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(e),a=r.topToIndex(t);if(null!=a&&null!=i){var o=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,i),allDay:!0},o.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}},{key:"getCellEl",value:function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}},{key:"getCellRange",value:function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:xt(n,1)}}}])}(ma);function Bl(e){return e.eventRange.def.allDay}var Ll=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).elRef={current:null},e.needsScrollReset=!1,e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=e.dayMaxEventRows,n=e.dayMaxEvents,r=e.expandRows,i=!0===n||!0===t;i&&!r&&(i=!1,t=null,n=null);var a=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return p("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,p("tbody",{role:"presentation"},p(jl,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}},{key:"componentDidMount",value:function(){this.requestScrollReset()}},{key:"componentDidUpdate",value:function(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}},{key:"requestScrollReset",value:function(){this.needsScrollReset=!0,this.flushScrollReset()}},{key:"flushScrollReset",value:function(){if(this.needsScrollReset&&this.props.clientWidth){var e=function(e,t){var n;t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector('[data-date="'.concat(Yt(t.currentDate),'-01"]')));n||(n=e.querySelector('[data-date="'.concat(qt(t.currentDate),'"]')));return n}(this.elRef.current,this.props.dateProfile);if(e){var t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}])}(ma);var zl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).forceDayIfListItem=!0,e}return _inherits(t,e),_createClass(t,[{key:"sliceRange",value:function(e,t){return t.sliceRange(e)}}])}(Ua),Ul=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).slicer=new zl,e.tableRef={current:null},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context;return p(Ll,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}])}(ma),Fl=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildDayTableModel=Xt(Gl),e.headerRef={current:null},e.tableRef={current:null},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,i=this.props,a=this.buildDayTableModel(i.dateProfile,r),o=n.dayHeaders&&p(ja,{ref:this.headerRef,dateProfile:i.dateProfile,dates:a.headerDates,datesRepDistinctDays:1===a.rowCnt}),s=function(t){return p(Ul,{ref:e.tableRef,dateProfile:i.dateProfile,dayTableModel:a,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(o,s,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(o,s)}}])}(yl);function Gl(e,t){var n=new La(e.renderRange,t);return new za(n,/year|month|week/.test(e.currentRangeUnit))}var Vl=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"buildRenderRange",value:function(e,n,r){var i=_superPropGet(t,"buildRenderRange",this,3)([e,n,r]),a=this.props;return ql({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:a.fixedWeekCount,dateEnv:a.dateEnv})}}])}(Sr);function ql(e){var t,n=e.dateEnv,r=e.currentRange,i=r.start,a=r.end;if(e.snapToWeek&&(i=n.startOfWeek(i),(t=n.startOfWeek(a)).valueOf()!==a.valueOf()&&(a=At(t,1))),e.fixedWeekCount){var o=n.startOfWeek(n.startOfMonth(xt(r.end,-1)));a=At(a,6-Math.ceil(Mt(o,a)))}return{start:i,end:a}}Ae(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var Yl=Vo({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Fl,dateProfileGeneratorClass:Vl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}}),Ql=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"getKeyInfo",value:function(){return{allDay:{},timed:{}}}},{key:"getKeysForDateSpan",value:function(e){return e.allDay?["allDay"]:["timed"]}},{key:"getKeysForEventDef",value:function(e){return e.allDay?fi(e)?["timed","allDay"]:["allDay"]:["timed"]}}])}(Zi),Zl=vn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Xl(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return p(Zn.Consumer,null,(function(n){if(!e.isLabeled)return p("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,i=n.options,a=n.viewApi,o=null==i.slotLabelFormat?Zl:Array.isArray(i.slotLabelFormat)?vn(i.slotLabelFormat[0]):vn(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,o)};return p(ar,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:Jl,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(e){return p("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},p(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))}))}))}function Jl(e){return e.text}var Kl=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.props.slatMetas.map((function(e){return p("tr",{key:e.key},p(Xl,Object.assign({},e)))}))}}])}(Kn),$l=vn({week:"short"}),ec=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).allDaySplitter=new Ql,e.headerElRef={current:null},e.rootElRef={current:null},e.scrollerElRef={current:null},e.state={slatCoords:null},e.handleScrollTopRequest=function(t){var n=e.scrollerElRef.current;n&&(n.scrollTop=t)},e.renderHeadAxis=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.context.options,i=e.props.dateProfile.renderRange,a=1===It(i.start,i.end)?na(e.context,i.start,"week"):{};return r.weekNumbers&&"day"===t?p(Ro,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:$l},(function(e){return p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},p(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))})):p("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},p("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},e.renderTableRowAxis=function(t){var n=e.context,r=n.options,i=n.viewApi,a={text:r.allDayText,view:i};return p(ar,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:a,generatorName:"allDayContent",customGenerator:r.allDayContent,defaultGenerator:tc,classNameGenerator:r.allDayClassNames,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(e){return p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==t?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},p(e,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))}))},e.handleSlatCoords=function(t){e.setState({slatCoords:t})},e}return _inherits(t,e),_createClass(t,[{key:"renderSimpleLayout",value:function(e,t,n){var r=this.context,i=this.props,a=[],o=ho(r.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),p(sr,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},p(po,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:a}))}},{key:"renderHScrollLayout",value:function(e,t,n,r,i,a,o){var s=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var c=this.context,u=this.props,d=!u.forPrint&&ho(c.options),f=!u.forPrint&&vo(c.options),h=[];e&&h.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return p("tr",{role:"presentation"},s.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return p("tr",{role:"presentation"},s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),h.push({key:"all-day-divider",type:"body",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));var v=c.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:function(e){return p("div",{className:"fc-timegrid-axis-chunk"},p("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,p("tbody",null,p(Kl,{slatMetas:a}))),p("div",{className:"fc-timegrid-now-indicator-container"},p(Na,{unit:v?"minute":"day"},(function(e){var t=v&&o&&o.safeComputeTop(e);return"number"==typeof t?p(bo,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),f&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:fo},{key:"cols",content:fo}]}),p(sr,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},p(l,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:h}))}},{key:"getAllDayMaxEventProps",value:function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}}}])}(ma);function tc(e){return e.text}var nc=function(){return _createClass((function e(t,n,r){_classCallCheck(this,e),this.positions=t,this.dateProfile=n,this.slotDuration=r}),[{key:"safeComputeTop",value:function(e){var t=this.dateProfile;if(pr(t.currentRange,e)){var n=Nt(e),r=e.valueOf()-n.valueOf();if(r>=kt(t.slotMinTime)&&r<kt(t.slotMaxTime))return this.computeTimeTop(vt(r))}return null}},{key:"computeDateTop",value:function(e,t){return t||(t=Nt(e)),this.computeTimeTop(vt(e.valueOf()-t.valueOf()))}},{key:"computeTimeTop",value:function(e){var t,n,r=this.positions,i=this.dateProfile,a=r.els.length,o=(e.milliseconds-kt(i.slotMinTime))/kt(this.slotDuration);return o=Math.max(0,o),o=Math.min(a,o),t=Math.floor(o),n=o-(t=Math.min(t,a-1)),r.tops[t]+r.getHeight(t)*n}}])}(),rc=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.options,r=e.slatElRefs;return p("tbody",null,e.slatMetas.map((function(i,a){var o={time:i.time,date:t.dateEnv.toDate(i.date),view:t.viewApi};return p("tr",{key:i.key,ref:r.createRef(i.key)},e.axis&&p(Xl,Object.assign({},i)),p(ar,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!i.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":i.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))})))}}])}(Kn),ic=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).rootElRef={current:null},e.slatElRefs=new eo,e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context;return p("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},p("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,p(rc,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}},{key:"componentDidMount",value:function(){this.updateSizing()}},{key:"componentDidUpdate",value:function(){this.updateSizing()}},{key:"componentWillUnmount",value:function(){this.props.onCoords&&this.props.onCoords(null)}},{key:"updateSizing",value:function(){var e,t=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&(this.rootElRef.current.offsetHeight&&n.onCoords(new nc(new fa(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map((function(t){return e[t.key]}))),!1,!0),this.props.dateProfile,t.options.slotDuration)))}}])}(Kn);function ac(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function oc(e,t){var n=[];if(e){for(var r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};var i,a=_createForOfIteratorHelper(e.segs);try{for(a.s();!(i=a.n()).done;){var o=i.value;n[o.col].segs.push(o)}}catch(e){a.e(e)}finally{a.f()}}else for(var s=0;s<t;s+=1)n[s]=null;return n}var sc=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props;return p(Mo,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:function(){return yc(e.hiddenSegs,e)},defaultGenerator:lc,forceTimed:!0},(function(e){return p(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})}))}}])}(Kn);function lc(e){return e.shortText}function cc(e,t,n){var r=new ba;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);var i,a,o,s=ka(r.addSegs(e)),l=function(e){var t=e.entriesByLevel,n=hc((function(e,t){return e+":"+t}),(function(r,i){var a=function(e,t,n){for(var r=e.levelCoords,i=e.entriesByLevel,a=i[t][n],o=r[t]+a.thickness,s=r.length,l=t;l<s&&r[l]<o;l+=1);for(;l<s;l+=1){for(var c=i[l],u=void 0,d=wa(c,a.span.start,Ca),f=d[0]+d[1],h=f;(u=c[h])&&u.span.start<a.span.end;)h+=1;if(f<h)return{level:l,lateralStart:f,lateralEnd:h}}return null}(e,r,i),o=uc(a,n),s=t[r][i];return[Object.assign(Object.assign({},s),{nextLevelNodes:o[0]}),s.thickness+o[1]]}));return uc(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);return i=l,a=1,o=hc((function(e,t,n){return Sa(e)}),(function(e,t,n){var r,i=e.nextLevelNodes,s=e.thickness,l=s+n,c=s/l,u=[];if(i.length){var d,f=_createForOfIteratorHelper(i);try{for(f.s();!(d=f.n()).done;){var h=d.value;if(void 0===r){var v=o(h,t,l);r=v[0],u.push(v[1])}else{var p=o(h,r,0);u.push(p[1])}}}catch(e){f.e(e)}finally{f.f()}}else r=a;var g=(r-t)*c;return[r-g,Object.assign(Object.assign({},e),{thickness:g,nextLevelNodes:u})]})),{segRects:function(e){var t=[],n=hc((function(e,t,n){return Sa(e)}),(function(e,n,i){var a=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1}));function r(e,t,r){var i,a=0,o=_createForOfIteratorHelper(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;a=Math.max(n(s,t,r),a)}}catch(e){o.e(e)}finally{o.f()}return a}return r(e,0,0),t}(l=i.map((function(e){return o(e,0,0)[1]}))),hiddenGroups:s}}function uc(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,i=e.lateralEnd,a=r,o=[];a<i;)o.push(t(n,a)),a+=1;return o.sort(dc),[o.map(fc),o[0][1]]}function dc(e,t){return t[1]-e[1]}function fc(e){return e[0]}function hc(e,t){var n={};return function(){var r=e.apply(void 0,arguments);return r in n?n[r]:n[r]=t.apply(void 0,arguments)}}function vc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=[];if(n)for(var a=0;a<e.length;a+=1){var o=e[a],s=n.computeDateTop(o.start,t),l=Math.max(s+(r||0),n.computeDateTop(o.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}var pc=vn({hour:"numeric",minute:"2-digit",meridiem:!1}),gc=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return p(mo,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:pc}))}}])}(Kn),mc=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).sortEventSegs=Xt(mi),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context.options,r=n.selectMirror,i=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||r&&t.dateSelectionSegs||[],a=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},o=this.sortEventSegs(t.fgEventSegs,n.eventOrder);return p(So,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col"].concat(_toConsumableArray(t.extraClassNames||[])),elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},(function(s){return p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),p("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(o,a,!1,!1,!1)),p("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(i,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(r),"mirror")),p("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),ko(n)&&p(s,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))}))}},{key:"renderFgSegs",value:function(e,t,n,r,i,a){var o=this.props;return o.forPrint?yc(e,o):this.renderPositionedFgSegs(e,t,n,r,i,a)}},{key:"renderPositionedFgSegs",value:function(e,t,n,r,i,a){var o=this,s=this.context.options,l=s.eventMaxStack,c=s.eventShortHeight,u=s.eventOrderStrict,d=s.eventMinHeight,f=this.props,h=f.date,v=f.slatCoords,g=f.eventSelection,y=f.todayRange,b=f.nowDate,C=n||r||i,S=function(e,t,n,r){for(var i=[],a=[],o=0;o<e.length;o+=1){var s=t[o];s?i.push({index:o,thickness:1,span:s}):a.push(e[o])}var l,c=cc(i,n,r),u=c.segRects,d=c.hiddenGroups,f=[],h=_createForOfIteratorHelper(u);try{for(h.s();!(l=h.n()).done;){var v=l.value;f.push({seg:e[v.index],rect:v})}}catch(e){h.e(e)}finally{h.f()}for(var p=0,g=a;p<g.length;p++){var m=g[p];f.push({seg:m,rect:null})}return{segPlacements:f,hiddenGroups:d}}(e,vc(e,h,v,d),u,l),k=S.segPlacements,_=S.hiddenGroups;return p(m,null,this.renderHiddenGroups(_,e),k.map((function(e){var s=e.seg,l=e.rect,u=s.eventRange.instance.instanceId,d=C||Boolean(!t[u]&&l),f=bc(l&&l.span),h=!C&&l?o.computeSegHStyle(l):{left:0,right:0},v=Boolean(l)&&l.stackForward>0,m=Boolean(l)&&l.span.end-l.span.start<c;return p("div",{className:"fc-timegrid-event-harness"+(v?" fc-timegrid-event-harness-inset":""),key:a||u,style:Object.assign(Object.assign({visibility:d?"":"hidden"},f),h)},p(gc,Object.assign({seg:s,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:u===g,isShort:m},_i(s,y,b))))})))}},{key:"renderHiddenGroups",value:function(e,t){var n=this.props,r=n.extraDateSpan,i=n.dateProfile,a=n.todayRange,o=n.nowDate,s=n.eventSelection,l=n.eventDrag,c=n.eventResize;return p(m,null,e.map((function(e){var n,u,d=bc(e.span),f=(n=e.entries,u=t,n.map((function(e){return u[e.index]})));return p(sc,{key:Vt(Ho(f)),hiddenSegs:f,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:i,todayRange:a,nowDate:o,eventSelection:s,eventDrag:l,eventResize:c})})))}},{key:"renderFillSegs",value:function(e,t){var n=this.props,r=this.context,i=vc(e,n.date,n.slatCoords,r.options.eventMinHeight).map((function(r,i){var a=e[i];return p("div",{key:wi(a.eventRange),className:"fc-timegrid-bg-harness",style:bc(r)},"bg-event"===t?p(Eo,Object.assign({seg:a},_i(a,n.todayRange,n.nowDate))):Do(t))}));return p(m,null,i)}},{key:"renderNowIndicator",value:function(e){var t=this.props,n=t.slatCoords,r=t.date;return n?e.map((function(e,t){return p(bo,{key:t,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(e.start,r)},isAxis:!1,date:r})})):null}},{key:"computeSegHStyle",value:function(e){var t,n,r=this.context,i=r.isRtl,a=r.options.slotEventOverlap,o=e.levelCoord,s=e.levelCoord+e.thickness;a&&(s=Math.min(1,o+2*(s-o))),i?(t=1-s,n=o):(t=o,n=1-s);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return a&&!e.stackForward&&(l[i?"marginLeft":"marginRight"]=20),l}}])}(Kn);function yc(e,t){var n=t.todayRange,r=t.nowDate,i=t.eventSelection,a=t.eventDrag,o=t.eventResize,s=(a?a.affectedInstances:null)||(o?o.affectedInstances:null)||{};return p(m,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return p("div",{key:t,style:{visibility:s[t]?"hidden":""}},p(gc,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===i,isShort:!1},_i(e,n,r))))})))}function bc(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var Cc=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).splitFgEventSegs=Xt(ac),e.splitBgEventSegs=Xt(ac),e.splitBusinessHourSegs=Xt(ac),e.splitNowIndicatorSegs=Xt(ac),e.splitDateSelectionSegs=Xt(ac),e.splitEventDrag=Xt(oc),e.splitEventResize=Xt(oc),e.rootElRef={current:null},e.cellElRefs=new eo,e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),r=t.cells.length,i=this.splitFgEventSegs(t.fgEventSegs,r),a=this.splitBgEventSegs(t.bgEventSegs,r),o=this.splitBusinessHourSegs(t.businessHourSegs,r),s=this.splitNowIndicatorSegs(t.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(t.dateSelectionSegs,r),c=this.splitEventDrag(t.eventDrag,r),u=this.splitEventResize(t.eventResize,r);return p("div",{className:"fc-timegrid-cols",ref:this.rootElRef},p("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,p("tbody",{role:"presentation"},p("tr",{role:"row"},t.axis&&p("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&p(bo,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:t.nowDate})))),t.cells.map((function(n,r){return p(mc,{key:n.key,elRef:e.cellElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:n.extraRenderProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:i[r],bgEventSegs:a[r],businessHourSegs:o[r],nowIndicatorSegs:s[r],dateSelectionSegs:l[r],eventDrag:c[r],eventResize:u[r],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))}},{key:"componentDidMount",value:function(){this.updateCoords()}},{key:"componentDidUpdate",value:function(){this.updateCoords()}},{key:"updateCoords",value:function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new fa(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))}}])}(Kn);var Sc=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).processSlotOptions=Xt(kc),e.state={slatCoords:null},e.handleRootEl=function(t){t?e.context.registerInteractiveComponent(e,{el:t,isHitComboAllowed:e.props.isHitComboAllowed}):e.context.unregisterInteractiveComponent(e)},e.handleScrollRequest=function(t){var n=e.props.onScrollTopRequest,r=e.state.slatCoords;if(n&&r){if(t.time){var i=r.computeTimeTop(t.time);(i=Math.ceil(i))&&(i+=1),n(i)}return!0}return!1},e.handleColCoords=function(t){e.colCoords=t},e.handleSlatCoords=function(t){e.setState({slatCoords:t}),e.props.onSlatCoords&&e.props.onSlatCoords(t)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state;return p("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p(ic,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),p(Cc,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}},{key:"componentDidMount",value:function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}},{key:"componentDidUpdate",value:function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}},{key:"componentWillUnmount",value:function(){this.scrollResponder.detach()}},{key:"queryHit",value:function(e,t){var n=this.context,r=n.dateEnv,i=n.options,a=this.colCoords,o=this.props.dateProfile,s=this.state.slatCoords,l=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=l.snapDuration,u=l.snapsPerSlot,d=a.leftToIndex(e),f=s.positions.topToIndex(t);if(null!=d&&null!=f){var h=this.props.cells[d],v=s.positions.tops[f],p=s.positions.getHeight(f),g=(t-v)/p,m=f*u+Math.floor(g*u),y=this.props.cells[d].date,b=mt(o.slotMinTime,yt(c,m)),C=r.add(y,b),S=r.add(C,c);return{dateProfile:o,dateSpan:Object.assign({range:{start:C,end:S},allDay:!1},h.extraDateSpan),dayEl:a.els[d],rect:{left:a.lefts[d],right:a.rights[d],top:v,bottom:v+p},layer:0}}return null}}])}(ma);function kc(e,t){var n=t||e,r=_t(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var _c=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"sliceRange",value:function(e,t){for(var n=[],r=0;r<t.length;r+=1){var i=dr(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}}])}(Ua),Ec=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildDayRanges=Xt(wc),e.slicer=new _c,e.timeColsRef={current:null},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=t.dateProfile,i=t.dayTableModel,a=n.options,o=a.nowIndicator,s=a.nextDayThreshold,l=this.buildDayRanges(i,r,n.dateEnv);return p(Na,{unit:o?"minute":"day"},(function(a,c){return p(Sc,Object.assign({ref:e.timeColsRef},e.slicer.sliceProps(t,r,null,n,l),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:a,nowIndicatorSegs:o&&e.slicer.sliceNowDate(a,r,s,n,l),todayRange:c,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))}}])}(ma);function wc(e,t,n){var r,i=[],a=_createForOfIteratorHelper(e.headerDates);try{for(a.s();!(r=a.n()).done;){var o=r.value;i.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)})}}catch(e){a.e(e)}finally{a.f()}return i}var Dc=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Rc(e,t,n,r,i){for(var a=new Date(0),o=e,s=vt(0),l=n||function(e){var t,n,r;for(t=Dc.length-1;t>=0;t-=1)if(null!==(r=_t(n=vt(Dc[t]),e))&&r>1)return n;return e}(r),c=[];kt(o)<kt(t);){var u=i.add(a,o),d=null!==_t(s,l);c.push({date:u,time:o,key:u.toISOString(),isoTimeStr:Qt(u),isLabeled:d}),o=mt(o,r),s=mt(s,r)}return c}var Ac=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildTimeColsModel=Xt(xc),e.buildSlatMetas=Xt(Rc),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.context,n=t.options,r=t.dateEnv,i=t.dateProfileGenerator,a=this.props,o=a.dateProfile,s=this.buildTimeColsModel(o,i),l=this.allDaySplitter.splitProps(a),c=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,n.slotLabelInterval,n.slotDuration,r),u=n.dayMinWidth,d=!u,f=u,h=n.dayHeaders&&p(ja,{dates:s.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),v=!1!==n.allDaySlot&&function(t){return p(Ul,Object.assign({},l.allDay,{dateProfile:o,dayTableModel:s,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:d?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:a.forPrint},e.getAllDayMaxEventProps()))},g=function(t){return p(Ec,Object.assign({},l.timed,{dayTableModel:s,dateProfile:o,axis:d,slotDuration:n.slotDuration,slatMetas:c,forPrint:a.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return f?this.renderHScrollLayout(h,v,g,s.colCnt,u,c,this.state.slatCoords):this.renderSimpleLayout(h,v,g)}}])}(ec);function xc(e,t){var n=new La(e.renderRange,t);return new za(n,!1)}Ae('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var Tc=Vo({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Ac,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),Mc=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).state={textId:Ue()},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.context,t=e.theme,n=e.dateEnv,r=e.options,i=e.viewApi,a=this.props,o=a.cellId,s=a.dayDate,l=a.todayRange,c=this.state.textId,u=Ji(s,l),d=r.listDayFormat?n.format(s,r.listDayFormat):"",f=r.listDaySideFormat?n.format(s,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(s),view:i,textId:c,text:d,sideText:f,navLinkAttrs:na(this.context,s),sideNavLinkAttrs:na(this.context,s,"day",!1)},u);return p(ar,{elTag:"tr",elClasses:["fc-list-day"].concat(_toConsumableArray(Ki(u,t))),elAttrs:{"data-date":qt(s)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Ic,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(function(e){return p("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":c},p(e,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]}))}))}}])}(Kn);function Ic(e){return p(m,null,e.text&&p("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&p("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}var Oc=vn({hour:"numeric",minute:"2-digit",meridiem:"short"}),Hc=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.options,r=e.seg,i=e.timeHeaderId,a=e.eventHeaderId,o=e.dateHeaderId,s=n.eventTimeFormat||Oc;return p(go,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:function(){return function(e,t){var n=Di(e,t);return p("a",Object.assign({},n),e.eventRange.def.title)}(r,t)},seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(function(e,n){return p(m,null,function(e,t,n,r,i){var a=n.options;if(!1!==a.displayEventTime){var o,s=e.eventRange.def,l=e.eventRange.instance,c=!1;if(s.allDay?c=!0:yr(e.eventRange.range)?e.isStart?o=ki(e,t,n,null,null,l.range.start,e.end):e.isEnd?o=ki(e,t,n,null,null,e.start,l.range.end):c=!0:o=ki(e,t,n),c){var u={text:n.options.allDayText,view:n.viewApi};return p(ar,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:"".concat(r," ").concat(i)},renderProps:u,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:Pc,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return p("td",{className:"fc-list-event-time"},o)}return null}(r,s,t,i,o),p("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},p("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),p(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:"".concat(a," ").concat(o)}}))}))}}])}(Kn);function Pc(e){return e.text}var Nc=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).computeDateVars=Xt(jc),e.eventStoreToSegs=Xt(e._eventStoreToSegs),e.state={timeHeaderId:Ue(),eventHeaderId:Ue(),dateHeaderIdRoot:Ue()},e.setRootEl=function(t){t?e.context.registerInteractiveComponent(e,{el:t}):e.context.unregisterInteractiveComponent(e)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=this.computeDateVars(e.dateProfile),r=n.dayDates,i=n.dayRanges,a=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return p(sr,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},p($a,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},a.length>0?this.renderSegList(a,r):this.renderEmptyMessage()))}},{key:"renderEmptyMessage",value:function(){var e=this.context,t=e.options,n=e.viewApi,r={text:t.noEventsText,view:n};return p(ar,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:Wc,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e){return p(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]})}))}},{key:"renderSegList",value:function(e,t){var n=this.context,r=n.theme,i=n.options,a=this.state,o=a.timeHeaderId,s=a.eventHeaderId,l=a.dateHeaderIdRoot,c=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1)(r[(n=e[t]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return p(Na,{unit:"day"},(function(e,n){for(var a=[],u=0;u<c.length;u+=1){var d=c[u];if(d){var f=qt(t[u]),h=l+"-"+f;a.push(p(Mc,{key:f,cellId:h,dayDate:t[u],todayRange:n}));var v,g=_createForOfIteratorHelper(d=mi(d,i.eventOrder));try{for(g.s();!(v=g.n()).done;){var m=v.value;a.push(p(Hc,Object.assign({key:f+":"+m.eventRange.instance.instanceId,seg:m,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:s,dateHeaderId:h},_i(m,n,e))))}}catch(e){g.e(e)}finally{g.f()}}}return p("table",{className:"fc-list-table "+r.getClass("table")},p("thead",null,p("tr",null,p("th",{scope:"col",id:o},i.timeHint),p("th",{scope:"col","aria-hidden":!0}),p("th",{scope:"col",id:s},i.eventHint))),p("tbody",null,a))}))}},{key:"_eventStoreToSegs",value:function(e,t,n){return this.eventRangesToSegs(di(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}},{key:"eventRangesToSegs",value:function(e,t){var n,r=[],i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push.apply(r,_toConsumableArray(this.eventRangeToSegs(a,t)))}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"eventRangeToSegs",value:function(e,t){var n,r,i,a=this.context.dateEnv,o=this.context.options.nextDayThreshold,s=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if((r=dr(s,t[n]))&&(i={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===s.end.valueOf(),dayIndex:n},c.push(i),!i.isEnd&&!l&&n+1<t.length&&s.end<a.add(t[n+1].start,o))){i.end=s.end,i.isEnd=!0;break}return c}}])}(ma);function Wc(e){return e.text}function jc(e){for(var t=Nt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];t<n;)r.push(t),i.push({start:t,end:xt(t,1)}),t=xt(t,1);return{dayDates:r,dayRanges:i}}function Bc(e){return!1===e?null:vn(e)}Ae(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var Lc=Vo({name:"@fullcalendar/list",optionRefiners:{listDayFormat:Bc,listDaySideFormat:Bc,noEventsClassNames:wn,noEventsContent:wn,noEventsDidMount:wn,noEventsWillUnmount:wn},views:{list:{component:Nc,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),zc=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildDayTableModel=Xt(Gl),e.slicer=new zl,e.state={labelId:Ue()},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state,n=this.context,r=e.dateProfile,i=e.forPrint,a=n.options,o=this.buildDayTableModel(r,n.dateProfileGenerator),s=this.slicer.sliceProps(e,r,a.nextDayThreshold,n,o),l=null!=e.tableWidth?e.tableWidth/a.aspectRatio:null,c=o.cells.length,u=null!=l?l/c:null;return p("div",{ref:e.elRef,"data-date":e.isoDateStr,className:"fc-multimonth-month",style:{width:e.width},role:"grid","aria-labelledby":t.labelId},p("div",{className:"fc-multimonth-header",style:{marginBottom:u},role:"presentation"},p("div",{className:"fc-multimonth-title",id:t.labelId},n.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),p("table",{className:["fc-multimonth-header-table",n.theme.getClass("table")].join(" "),role:"presentation"},p("thead",{role:"rowgroup"},p(ja,{dateProfile:e.dateProfile,dates:o.headerDates,datesRepDistinctDays:!1})))),p("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!i&&"fc-daygrid-body-balanced",i&&"fc-daygrid-body-unbalanced",i&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-u}},p("table",{className:["fc-multimonth-daygrid-table",n.theme.getClass("table")].join(" "),style:{height:i?"":l},role:"presentation"},p("tbody",{role:"rowgroup"},p(jl,Object.assign({},s,{dateProfile:r,cells:o.cells,eventSelection:e.eventSelection,dayMaxEvents:!i,dayMaxEventRows:!i,showWeekNumbers:a.weekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:i}))))))}}])}(ma),Uc=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).splitDateProfileByMonth=Xt(Gc),e.buildMonthFormat=Xt(Yc),e.scrollElRef={current:null},e.firstMonthElRef={current:null},e.needsScrollReset=!1,e.handleSizing=function(t){t&&e.updateSize()},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.context,n=this.props,r=this.state,i=t.options,a=r.clientWidth,o=r.clientHeight,s=r.monthHPadding||0,l=Math.min(null!=a?Math.floor(a/(i.multiMonthMinWidth+s)):1,i.multiMonthMaxColumns)||1,c=100/l+"%",u=null==a?null:a/l-s,d=null!=a&&1===l,f=this.splitDateProfileByMonth(t.dateProfileGenerator,n.dateProfile,t.dateEnv,!d&&i.fixedWeekCount,i.showNonCurrentDates),h=this.buildMonthFormat(i.multiMonthTitleFormat,f),v=["fc-multimonth",d?"fc-multimonth-singlecol":"fc-multimonth-multicol",null!=u&&u<400?"fc-multimonth-compact":"",n.isHeightAuto?"":"fc-scroller"];return p(sr,{elRef:this.scrollElRef,elClasses:v,viewSpec:t.viewSpec},f.map((function(t,r){var i=Yt(t.currentRange.start);return p(zc,Object.assign({},n,{key:i,isoDateStr:i,elRef:0===r?e.firstMonthElRef:void 0,titleFormat:h,dateProfile:t,width:c,tableWidth:u,clientWidth:a,clientHeight:o}))})))}},{key:"componentDidMount",value:function(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}},{key:"componentDidUpdate",value:function(e){In(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}},{key:"componentWillUnmount",value:function(){this.context.removeResizeHandler(this.handleSizing)}},{key:"updateSize",value:function(){var e=this.scrollElRef.current,t=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),t&&e&&null==this.state.monthHPadding&&this.setState({monthHPadding:e.clientWidth-t.firstChild.offsetWidth})}},{key:"requestScrollReset",value:function(){this.needsScrollReset=!0,this.flushScrollReset()}},{key:"flushScrollReset",value:function(){if(this.needsScrollReset&&null!=this.state.monthHPadding){var e=this.props.dateProfile.currentDate,t=this.scrollElRef.current,n=t.querySelector('[data-date="'.concat(Yt(e),'"]'));t.scrollTop=n.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}},{key:"shouldComponentUpdate",value:function(){return!0}}])}(ma),Fc=vt(1,"month");function Gc(e,t,n,r,i){for(var a=t.currentRange,o=a.start,s=a.end,l=o,c=[];l.valueOf()<s.valueOf();){var u=n.add(l,Fc),d={start:e.skipHiddenDays(l),end:e.skipHiddenDays(u,-1,!0)},f=ql({currentRange:d,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});f={start:e.skipHiddenDays(f.start),end:e.skipHiddenDays(f.end,-1,!0)};var h=t.activeRange?dr(t.activeRange,i?f:d):null;c.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:f,activeRange:h,currentRange:d,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),l=u}return c}var Vc=vn({year:"numeric",month:"long"}),qc=vn({month:"long"});function Yc(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?Vc:qc)}var Qc={multiMonthTitleFormat:vn,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};Ae(".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}");var Zc=Vo({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:Qc,views:{multiMonth:{component:Uc,dateProfileGeneratorClass:Vl,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}}),Xc=372,Jc=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],Kc={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var $c,eu=Vo({name:"@fullcalendar/premium-common",premiumReleaseDate:"2024-07-12",optionRefiners:{schedulerLicenseKey:String},viewContainerAppends:[function(e){var t=e.options.schedulerLicenseKey,n="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(n)){var r=function(e,t){if(-1!==Jc.indexOf(e))return"valid";var n=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(n&&10===n[1].length){var r=new Date(1e3*parseInt(n[2],10)),i=Ra.mockSchedulerReleaseDate||t;if(Ft(i))return xt(i,-Xc)<r?"valid":"outdated"}return"invalid"}(t,e.pluginHooks.premiumReleaseDate);if("valid"!==r)return p("div",{className:"fc-license-message",style:Kc},"outdated"===r?p(m,null,"Your license key is too old to work with this version. ",p("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):p(m,null,"Your license key is invalid. ",p("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]});function tu(e){var t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(ru()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function nu(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(ru()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}function ru(){return $c||($c=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";var t,n=document.createElement("div");n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=1,t=e.scrollLeft>0?"reverse":"negative");return Ie(e),t}())}var iu=function(){return _createClass((function e(t,n){var r=this;_classCallCheck(this,e),this.scrollEl=t,this.isRtl=n,this.updateSize=function(){var e=r.scrollEl,t=Pe(e,".fc-sticky");!function(e,t,n){e.forEach((function(e,r){var i,a=t[r],o=a.textAlign,s=a.elWidth,l=a.parentBound,c=l.right-l.left;je(e,{left:i="center"===o&&c>n?(n-s)/2:"",right:i,top:0})}))}(t,r.queryElGeoms(t),e.clientWidth)}}),[{key:"queryElGeoms",value:function(e){var t,n=this.scrollEl,r=this.isRtl,i=function(e){var t=e.getBoundingClientRect(),n=la(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-tu(e),top:t.top+n.borderTop-e.scrollTop}}(n),a=[],o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var s=t.value,l=Gi(ca(s.parentNode,!0,!0),-i.left,-i.top),c=s.getBoundingClientRect(),u=window.getComputedStyle(s),d=window.getComputedStyle(s.parentNode).textAlign,f=null;"start"===d?d=r?"right":"left":"end"===d&&(d=r?"left":"right"),"sticky"!==u.position&&(f=Gi(c,-i.left-(parseFloat(u.left)||0),-i.top-(parseFloat(u.top)||0))),a.push({parentBound:l,naturalBound:f,elWidth:c.width,elHeight:c.height,textAlign:d})}}catch(e){o.e(e)}finally{o.f()}return a}}])}();var au=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).elRef={current:null},e.state={xScrollbarWidth:0,yScrollbarWidth:0},e.handleScroller=function(t){e.scroller=t,$n(e.props.scrollerRef,t)},e.handleSizing=function(){var t=e.props;"scroll-hidden"===t.overflowY&&e.setState({yScrollbarWidth:e.scroller.getYScrollbarWidth()}),"scroll-hidden"===t.overflowX&&e.setState({xScrollbarWidth:e.scroller.getXScrollbarWidth()})},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state,n=this.context.isRtl&&aa(),r=0,i=0,a=0,o=e.overflowX,s=e.overflowY;return e.forPrint&&(o="visible",s="visible"),"scroll-hidden"===o&&(a=t.xScrollbarWidth),"scroll-hidden"===s&&null!=t.yScrollbarWidth&&(n?r=t.yScrollbarWidth:i=t.yScrollbarWidth),p("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},p($a,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===o?"scroll":o,overflowY:"scroll-hidden"===s?"scroll":s,overcomeLeft:r,overcomeRight:i,overcomeBottom:a,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===o?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}},{key:"componentDidMount",value:function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}},{key:"getSnapshotBeforeUpdate",value:function(e){return this.props.forPrint&&!e.forPrint?{simulateScrollLeft:this.scroller.el.scrollLeft}:{}}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.props,i=this.scroller.el;if(In(e,r)||this.handleSizing(),void 0!==n.simulateScrollLeft)i.style.left=-n.simulateScrollLeft+"px";else if(!r.forPrint&&e.forPrint){var a=-parseInt(i.style.left);i.style.left="",i.scrollLeft=a}}},{key:"componentWillUnmount",value:function(){this.context.removeResizeHandler(this.handleSizing)}},{key:"needsXScrolling",value:function(){return this.scroller.needsXScrolling()}},{key:"needsYScrolling",value:function(){return this.scroller.needsYScrolling()}}])}(Kn),ou="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" "),su=function(){return _createClass((function e(t){var n=this;_classCallCheck(this,e),this.el=t,this.emitter=new Kr,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new Me(this._handleWheelWaited.bind(this)),this.scrollWaiter=new Me(this._handleScrollWaited.bind(this)),this.handleScroll=function(){n.startScroll(),n.emitter.trigger("scroll",n.isRecentlyWheeled,n.isTouching),n.isRecentlyScrolled=!0,n.scrollWaiter.request(500)},this.handleWheel=function(){n.isRecentlyWheeled=!0,n.wheelWaiter.request(500)},this.handleTouchStart=function(){n.isTouching=!0},this.handleTouchEnd=function(){n.isTouching=!1,n.isRecentlyScrolled||n.endScroll()},t.addEventListener("scroll",this.handleScroll),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),t.addEventListener("touchend",this.handleTouchEnd);var r,i=_createForOfIteratorHelper(ou);try{for(i.s();!(r=i.n()).done;){var a=r.value;t.addEventListener(a,this.handleWheel)}}catch(e){i.e(e)}finally{i.f()}}),[{key:"destroy",value:function(){var e=this.el;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);var t,n=_createForOfIteratorHelper(ou);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeEventListener(r,this.handleWheel)}}catch(e){n.e(e)}finally{n.f()}}},{key:"startScroll",value:function(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}},{key:"endScroll",value:function(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}},{key:"_handleScrollWaited",value:function(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}},{key:"_handleWheelWaited",value:function(){this.isRecentlyWheeled=!1}}])}(),lu=function(){return _createClass((function e(t,n){var r=this;_classCallCheck(this,e),this.isVertical=t,this.scrollEls=n,this.isPaused=!1,this.scrollListeners=n.map((function(e){return r.bindScroller(e)}))}),[{key:"destroy",value:function(){var e,t=_createForOfIteratorHelper(this.scrollListeners);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"bindScroller",value:function(e){var t=this,n=this.scrollEls,r=this.isVertical,i=new su(e);return i.emitter.on("scroll",(function(i,a){if(!t.isPaused&&((!t.masterEl||t.masterEl!==e&&(i||a))&&t.assignMaster(e),t.masterEl===e)){var o,s=_createForOfIteratorHelper(n);try{for(s.s();!(o=s.n()).done;){var l=o.value;l!==e&&(r?l.scrollTop=e.scrollTop:l.scrollLeft=e.scrollLeft)}}catch(e){s.e(e)}finally{s.f()}}})),i.emitter.on("scrollEnd",(function(){t.masterEl===e&&(t.masterEl=null)})),i}},{key:"assignMaster",value:function(e){this.masterEl=e;var t,n=_createForOfIteratorHelper(this.scrollListeners);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.el!==e&&r.endScroll()}}catch(e){n.e(e)}finally{n.f()}}},{key:"forceScrollLeft",value:function(e){this.isPaused=!0;var t,n=_createForOfIteratorHelper(this.scrollListeners);try{for(n.s();!(t=n.n()).done;){nu(t.value.el,e)}}catch(e){n.e(e)}finally{n.f()}this.isPaused=!1}},{key:"forceScrollTop",value:function(e){this.isPaused=!0;var t,n=_createForOfIteratorHelper(this.scrollListeners);try{for(n.s();!(t=n.n()).done;){t.value.el.scrollTop=e}}catch(e){n.e(e)}finally{n.f()}this.isPaused=!1}}])}();Ra.SCROLLGRID_RESIZE_INTERVAL=500;var cu=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).compileColGroupStats=Kt(hu,gu),e.renderMicroColGroups=Kt(oo),e.clippedScrollerRefs=new eo,e.scrollerElRefs=new eo(e._handleScrollerEl.bind(e)),e.chunkElRefs=new eo(e._handleChunkEl.bind(e)),e.scrollSyncersBySection={},e.scrollSyncersByColumn={},e.rowUnstableMap=new Map,e.rowInnerMaxHeightMap=new Map,e.anyRowHeightsChanged=!1,e.recentSizingCnt=0,e.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},e.handleSizing=function(t,n){if(e.allowSizing()){n||(e.anyRowHeightsChanged=!0);var r={};(t||!n&&!e.rowUnstableMap.size)&&(r.sectionRowMaxHeights=e.computeSectionRowMaxHeights()),e.setState(Object.assign(Object.assign({shrinkWidths:e.computeShrinkWidths()},e.computeScrollerDims()),r),(function(){e.rowUnstableMap.size||e.updateStickyScrolling()}))}},e.handleRowHeightChange=function(t,n){var r=e,i=r.rowUnstableMap,a=r.rowInnerMaxHeightMap;if(n){i.delete(t);var o=du(t);a.has(t)&&a.get(t)===o||(a.set(t,o),e.anyRowHeightsChanged=!0),!i.size&&e.anyRowHeightsChanged&&(e.anyRowHeightsChanged=!1,e.setState({sectionRowMaxHeights:e.computeSectionRowMaxHeights()}))}else i.set(t,!0)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state,n=this.context,r=t.shrinkWidths,i=this.compileColGroupStats(e.colGroups.map((function(e){return[e]}))),a=this.renderMicroColGroups(i.map((function(e,t){return[e.cols,r[t]]}))),o=co(e.liquid,n);this.getDims();for(var s,l=e.sections,c=l.length,u=0,d=[],f=[],h=[];u<c&&"header"===(s=l[u]).type;)d.push(this.renderSection(s,u,i,a,t.sectionRowMaxHeights,!0)),u+=1;for(;u<c&&"body"===(s=l[u]).type;)f.push(this.renderSection(s,u,i,a,t.sectionRowMaxHeights,!1)),u+=1;for(;u<c&&"footer"===(s=l[u]).type;)h.push(this.renderSection(s,u,i,a,t.sectionRowMaxHeights,!0)),u+=1;var v=!Ni(),g={role:"rowgroup"};return p("table",{ref:e.elRef,role:"grid",className:o.join(" ")},function(e,t){var n=e.map((function(e,n){var r=e.width;return"shrink"===r&&(r=e.totalColWidth+so(t[n])+1),p("col",{style:{width:r}})}));return p.apply(void 0,["colgroup",{}].concat(_toConsumableArray(n)))}(i,r),Boolean(!v&&d.length)&&p.apply(void 0,["thead",g].concat(d)),Boolean(!v&&f.length)&&p.apply(void 0,["tbody",g].concat(f)),Boolean(!v&&h.length)&&p.apply(void 0,["tfoot",g].concat(h)),v&&p.apply(void 0,["tbody",g].concat(d,f,h)))}},{key:"renderSection",value:function(e,t,n,r,i,a){var o=this;return"outerContent"in e?p(m,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:uo(e,this.props.liquid).join(" ")},e.chunks.map((function(s,l){return o.renderChunk(e,t,n[l],r[l],s,l,(i[t]||[])[l]||[],a)})))}},{key:"renderChunk",value:function(e,t,n,r,i,a,o,s){if("outerContent"in i)return p(m,{key:i.key},i.outerContent);var l=this.state,c=l.scrollerClientWidths,u=l.scrollerClientHeights,d=_slicedToArray(this.getDims(),2),f=d[0],h=d[1],v=t*h+a,g=a===(!this.context.isRtl||aa()?h-1:0),y=t===f-1,b=y&&l.forceXScrollbars,C=g&&l.forceYScrollbars,S=n&&n.allowXScrolling,k=ro(this.props,e),_=no(this.props,e),E=e.expandRows&&_,w=io(e,i,{tableColGroupNode:r,tableMinWidth:n&&n.totalColMinWidth||"",clientWidth:void 0!==c[v]?c[v]:null,clientHeight:void 0!==u[v]?u[v]:null,expandRows:E,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:o,reportRowHeightChange:this.handleRowHeightChange},s),D=b?y?"scroll":"scroll-hidden":S?y?"auto":"scroll-hidden":"hidden",R=C?g?"scroll":"scroll-hidden":k?g?"auto":"scroll-hidden":"hidden";return w=p(au,{ref:this.clippedScrollerRefs.createRef(v),scrollerElRef:this.scrollerElRefs.createRef(v),overflowX:D,overflowY:R,forPrint:this.props.forPrint,liquid:_,maxHeight:e.maxHeight},w),p(s?"th":"td",{key:i.key,ref:this.chunkElRefs.createRef(v),role:"presentation"},w)}},{key:"componentDidMount",value:function(){this.getStickyScrolling=Kt(bu),this.getScrollSyncersBySection=$t(mu.bind(this,!0),null,yu),this.getScrollSyncersByColumn=$t(mu.bind(this,!1),null,yu),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}},{key:"componentDidUpdate",value:function(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}},{key:"componentWillUnmount",value:function(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}},{key:"allowSizing",value:function(){var e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+Ra.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}},{key:"computeShrinkWidths",value:function(){var e=this,t=this.compileColGroupStats(this.props.colGroups.map((function(e){return[e]}))),n=_slicedToArray(this.getDims(),2),r=n[0],i=n[1],a=r*i,o=[];return t.forEach((function(t,n){if(t.hasShrinkCol){var r=e.chunkElRefs.collect(n,a,i);o[n]=to(r)}})),o}},{key:"computeSectionRowMaxHeights",value:function(){for(var e=new Map,t=_slicedToArray(this.getDims(),2),n=t[0],r=t[1],i=[],a=0;a<n;a+=1){var o=this.props.sections[a],s=[];if(o&&o.syncRowHeights){for(var l=[],c=0;c<r;c+=1){var u=a*r+c,d=[],f=this.chunkElRefs.currentMap[u];d=f?Pe(f,".fc-scrollgrid-sync-table tr").map((function(t){var n=du(t);return e.set(t,n),n})):[],l.push(d)}for(var h=l[0].length,v=!0,p=1;p<r;p+=1){if(!(o.chunks[p]&&void 0!==o.chunks[p].outerContent)&&l[p].length!==h){v=!1;break}}if(v){for(var g=0;g<r;g+=1)s.push([]);for(var m=0;m<h;m+=1){for(var y=[],b=0;b<r;b+=1){var C=l[b][m];null!=C&&y.push(C)}for(var S=Math.max.apply(Math,y),k=0;k<r;k+=1)s[k].push(S)}}else{for(var _=[],E=0;E<r;E+=1)_.push(uu(l[E])+l[E].length);for(var w=Math.max.apply(Math,_),D=0;D<r;D+=1){var R=l[D].length,A=w-R,x=Math.floor(A/R),T=A-x*(R-1),M=[],I=0;for(I<R&&(M.push(T),I+=1);I<R;)M.push(x),I+=1;s.push(M)}}}i.push(s)}return this.rowInnerMaxHeightMap=e,i}},{key:"computeScrollerDims",value:function(){for(var e=oa(),t=_slicedToArray(this.getDims(),2),n=t[0],r=t[1],i=!this.context.isRtl||aa()?r-1:0,a=n-1,o=this.clippedScrollerRefs.currentMap,s=this.scrollerElRefs.currentMap,l=!1,c=!1,u={},d={},f=0;f<n;f+=1){var h=o[f*r+i];if(h&&h.needsYScrolling()){l=!0;break}}for(var v=0;v<r;v+=1){var p=o[a*r+v];if(p&&p.needsXScrolling()){c=!0;break}}for(var g=0;g<n;g+=1)for(var m=0;m<r;m+=1){var y=g*r+m,b=s[y];if(b){var C=b.parentNode;u[y]=Math.floor(C.getBoundingClientRect().width-(m===i&&l?e.y:0)),d[y]=Math.floor(C.getBoundingClientRect().height-(g===a&&c?e.x:0))}}return{forceYScrollbars:l,forceXScrollbars:c,scrollerClientWidths:u,scrollerClientHeights:d}}},{key:"updateStickyScrolling",value:function(){var e=this.context.isRtl,t=this.scrollerElRefs.getAll().map((function(t){return[t,e]}));this.getStickyScrolling(t).forEach((function(e){return e.updateSize()}))}},{key:"updateScrollSyncers",value:function(){for(var e=_slicedToArray(this.getDims(),2),t=e[0],n=e[1],r=t*n,i={},a={},o=this.scrollerElRefs.currentMap,s=0;s<t;s+=1){var l=s*n,c=l+n;i[s]=Wn(o,l,c,1)}for(var u=0;u<n;u+=1)a[u]=this.scrollerElRefs.collect(u,r,n);this.scrollSyncersBySection=this.getScrollSyncersBySection(i),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(a)}},{key:"destroyScrollSyncers",value:function(){xn(this.scrollSyncersBySection,yu),xn(this.scrollSyncersByColumn,yu)}},{key:"getChunkConfigByIndex",value:function(e){var t=this.getDims()[1],n=Math.floor(e/t),r=e%t,i=this.props.sections[n];return i&&i.chunks[r]}},{key:"forceScrollLeft",value:function(e,t){var n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)}},{key:"forceScrollTop",value:function(e,t){var n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)}},{key:"_handleChunkEl",value:function(e,t){var n=this.getChunkConfigByIndex(parseInt(t,10));n&&$n(n.elRef,e)}},{key:"_handleScrollerEl",value:function(e,t){var n=this.getChunkConfigByIndex(parseInt(t,10));n&&$n(n.scrollerElRef,e)}},{key:"getDims",value:function(){var e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]}}])}(Kn);function uu(e){var t,n=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){n+=t.value}}catch(e){r.e(e)}finally{r.f()}return n}function du(e){var t=Pe(e,".fc-scrollgrid-sync-inner").map(fu);return t.length?Math.max.apply(Math,_toConsumableArray(t)):0}function fu(e){return e.offsetHeight}function hu(e){var t=vu(e.cols,"width"),n=vu(e.cols,"minWidth"),r=lo(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&Boolean(t||n||r),cols:e.cols,width:e.width}}function vu(e,t){var n,r=0,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a[t];"number"==typeof o&&(r+=o*(a.span||1))}}catch(e){i.e(e)}finally{i.f()}return r}cu.addStateEquality({shrinkWidths:Dt,scrollerClientWidths:In,scrollerClientHeights:In});var pu={cols:ao};function gu(e,t){return Pn(e,t,pu)}function mu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new lu(e,n)}function yu(e){e.destroy()}function bu(e,t){return new iu(e,t)}var Cu=Vo({name:"@fullcalendar/scrollgrid",premiumReleaseDate:"2024-07-12",deps:[eu],scrollGridImpl:cu});Ra.COLLAPSIBLE_WIDTH_THRESHOLD=1200;var Su=[],ku=[];function _u(){var e,t=_createForOfIteratorHelper(Su);try{for(t.s();!(e=t.n()).done;){e.value.emitter.trigger("_beforeprint")}}catch(e){t.e(e)}finally{t.f()}Vn((function(){var e;ku.push(((e=Pe(document.body,".fc-scrollgrid")).forEach(wu),function(){return e.forEach(Du)}))}))}function Eu(){var e,t=_createForOfIteratorHelper(Su);try{for(t.s();!(e=t.n()).done;){e.value.emitter.trigger("_afterprint")}}catch(e){t.e(e)}finally{t.f()}Vn((function(){for(;ku.length;)ku.shift()()}))}function wu(e){var t=e.getBoundingClientRect().width;(!e.classList.contains("fc-scrollgrid-collapsible")||t<Ra.COLLAPSIBLE_WIDTH_THRESHOLD)&&(e.style.width=t+"px")}function Du(e){e.style.width=""}Ae(".fc .fc-event,.fc .fc-scrollgrid table tr{-moz-column-break-inside:avoid;break-inside:avoid}.fc-media-print{display:block;max-width:100%}.fc-media-print .fc-bg-event,.fc-media-print .fc-non-business,.fc-media-print .fc-timegrid-axis-chunk,.fc-media-print .fc-timegrid-slots,.fc-media-print .fc-timeline-slots{display:none}.fc-media-print .fc-h-event,.fc-media-print .fc-toolbar button,.fc-media-print .fc-v-event{background:#fff!important;color:#000!important}.fc-media-print .fc-event,.fc-media-print .fc-event-main{color:#000!important}.fc-media-print .fc-timegrid-event{margin:.5em 0}");var Ru=Vo({name:"@fullcalendar/adaptive",premiumReleaseDate:"2024-07-12",deps:[eu],contextInit:function(e){Su.length||(window.addEventListener("beforeprint",_u),window.addEventListener("afterprint",Eu)),Su.push(e),e.calendarApi.on("_unmount",(function(){wt(Su,e),Su.length||(window.removeEventListener("beforeprint",_u),window.removeEventListener("afterprint",Eu))}))}}),Au=18,xu=6,Tu=200;Ra.MAX_TIMELINE_SLOTS=1e3;var Mu=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function Iu(e,t,n,r){var i={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};!function(e,t,n){var r=t.currentRange;if(e.labelInterval){n.countDurationsBetween(r.start,r.end,e.labelInterval)>Ra.MAX_TIMELINE_SLOTS&&(e.labelInterval=null)}if(e.slotDuration){n.countDurationsBetween(r.start,r.end,e.slotDuration)>Ra.MAX_TIMELINE_SLOTS&&(e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){var i=_t(e.labelInterval,e.slotDuration);(null===i||i<1)&&(e.slotDuration=null)}}(i,e,t),Pu(i,e,t),function(e,t,n){var r=t.currentRange,i=e.slotDuration;if(!i){var a,o=Pu(e,t,n),s=_createForOfIteratorHelper(Mu);try{for(s.s();!(a=s.n()).done;){var l=vt(a.value),c=_t(o,l);if(null!==c&&c>1&&c<=xu){i=l;break}}}catch(e){s.e(e)}finally{s.f()}if(i)n.countDurationsBetween(r.start,r.end,i)>Tu&&(i=null);i||(i=o),e.slotDuration=i}}(i,e,t);var a=n.slotLabelFormat,o=Array.isArray(a)?a:null!=a?[a]:function(e,t,n,r){var i,a,o=e.labelInterval,s=Et(o).unit,l=r.weekNumbers,c=i=a=null;"week"!==s||l||(s="day");switch(s){case"year":c={year:"numeric"};break;case"month":Nu("years",t,n)>1&&(c={year:"numeric"}),i={month:"short"};break;case"week":Nu("years",t,n)>1&&(c={year:"numeric"}),i={week:"narrow"};break;case"day":Nu("years",t,n)>1?c={year:"numeric",month:"long"}:Nu("months",t,n)>1&&(c={month:"long"}),l&&(i={week:"short"}),a={weekday:"narrow",day:"numeric"};break;case"hour":l&&(c={week:"short"}),Nu("days",t,n)>1&&(i={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),a={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":Ct(o)/60>=xu?(c={hour:"numeric",meridiem:"short"},i=function(e){return":"+st(e.date.minute,2)}):c={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":St(o)/60>=xu?(c={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},i=function(e){return":"+st(e.date.second,2)}):c={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":c={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},i=function(e){return"."+st(e.millisecond,3)}}return[].concat(c||[],i||[],a||[])}(i,e,t,n);i.headerFormats=o.map((function(e){return vn(e)})),i.isTimeScale=Boolean(i.slotDuration.milliseconds);var s=null;if(!i.isTimeScale){var l=Et(i.slotDuration).unit;/year|month|week/.test(l)&&(s=l)}i.largeUnit=s,i.emphasizeWeeks=1===gt(i.slotDuration)&&Nu("weeks",e,t)>=2&&!n.businessHours;var c,u,d=n.snapDuration;d&&(c=vt(d),u=_t(i.slotDuration,c)),null==u&&(c=i.slotDuration,u=1),i.snapDuration=c,i.snapsPerSlot=u;var f=kt(e.slotMaxTime)-kt(e.slotMinTime),h=Ou(e.renderRange.start,i,t),v=Ou(e.renderRange.end,i,t);i.isTimeScale&&(h=t.add(h,e.slotMinTime),v=t.add(xt(v,-1),e.slotMaxTime)),i.timeWindowMs=f,i.normalizedRange={start:h,end:v};for(var p=[],g=h;g<v;)Hu(g,i,e,r)&&p.push(g),g=t.add(g,i.slotDuration);i.slotDates=p;var m=-1,y=0,b=[],C=[];for(g=h;g<v;)Hu(g,i,e,r)?(m+=1,b.push(m),C.push(y)):b.push(m+.5),g=t.add(g,i.snapDuration),y+=1;return i.snapDiffToIndex=b,i.snapIndexToDiff=C,i.snapCnt=m+1,i.slotCnt=i.snapCnt/i.snapsPerSlot,i.isWeekStarts=function(e,t){var n,r=e.slotDates,i=e.emphasizeWeeks,a=null,o=[],s=_createForOfIteratorHelper(r);try{for(s.s();!(n=s.n()).done;){var l=n.value,c=t.computeWeekNumber(l),u=i&&null!==a&&a!==c;a=c,o.push(u)}}catch(e){s.e(e)}finally{s.f()}return o}(i,t),i.cellRows=function(e,t){for(var n=e.slotDates,r=e.headerFormats,i=r.map((function(){return[]})),a=gt(e.slotDuration),o=7===a?"week":1===a?"day":null,s=r.map((function(e){return e.getLargestUnit?e.getLargestUnit():null})),l=0;l<n.length;l+=1)for(var c=n[l],u=e.isWeekStarts[l],d=0;d<r.length;d+=1){var f=r[d],h=i[d],v=h[h.length-1],p=d===r.length-1,g=r.length>1&&!p,m=null,y=s[d]||(p?o:null);if(g){var b=t.format(c,f);v&&v.text===b?v.colspan+=1:m=Wu(c,b,y)}else if(!v||ut(t.countDurationsBetween(e.normalizedRange.start,c,e.labelInterval))){m=Wu(c,t.format(c,f),y)}else v.colspan+=1;m&&(m.weekStart=u,h.push(m))}return i}(i,t),i.slotsPerLabel=_t(i.labelInterval,i.slotDuration),i}function Ou(e,t,n){var r=e;return t.isTimeScale||(r=Nt(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function Hu(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){var i=Nt(e),a=e.valueOf()-i.valueOf()-kt(n.slotMinTime);return(a=(a%864e5+864e5)%864e5)<t.timeWindowMs}return!0}function Pu(e,t,n){var r=t.currentRange,i=e.labelInterval;if(!i){if(e.slotDuration){var a,o=_createForOfIteratorHelper(Mu);try{for(o.s();!(a=o.n()).done;){var s=vt(a.value),l=_t(s,e.slotDuration);if(null!==l&&l<=xu){i=s;break}}}catch(e){o.e(e)}finally{o.f()}i||(i=e.slotDuration)}else{var c,u=_createForOfIteratorHelper(Mu);try{for(u.s();!(c=u.n()).done;){if(i=vt(c.value),n.countDurationsBetween(r.start,r.end,i)>=Au)break}}catch(e){u.e(e)}finally{u.f()}}e.labelInterval=i}return i}function Nu(e,t,n){var r=t.currentRange,i=null;return"years"===e?i=n.diffWholeYears(r.start,r.end):"months"===e||"weeks"===e?i=n.diffWholeMonths(r.start,r.end):"days"===e&&(i=Pt(r.start,r.end)),i||0}function Wu(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}var ju=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).refineRenderProps=Jt(zu),e.buildCellNavLinkAttrs=Xt(Bu),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=n.dateEnv,i=n.options,a=t.cell,o=t.dateProfile,s=t.tDateProfile,l=Ji(a.date,t.todayRange,t.nowDate,o),c=this.refineRenderProps({level:t.rowLevel,dateMarker:a.date,text:a.text,dateEnv:n.dateEnv,viewApi:n.viewApi});return p(ar,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",a.isWeekStart&&"fc-timeline-slot-em"].concat(_toConsumableArray("time"===a.rowUnit?$i(l,n.theme):Ki(l,n.theme))),elAttrs:{colSpan:a.colspan,"data-date":r.formatIso(a.date,{omitTime:!s.isTimeScale,omitTimeZoneOffset:!0})},renderProps:c,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:Lu,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(r){return p("div",{className:"fc-timeline-slot-frame",style:{height:t.rowInnerHeight}},p(r,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",t.isSticky&&"fc-sticky"],elAttrs:e.buildCellNavLinkAttrs(n,a.date,a.rowUnit)}))}))}}])}(Kn);function Bu(e,t,n){return n&&"time"!==n?na(e,t,n):{}}function Lu(e){return e.text}function zu(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}var Uu=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=e.dateProfile,n=e.tDateProfile,r=e.rowInnerHeights,i=e.todayRange,a=e.nowDate,o=n.cellRows;return p(m,null,o.map((function(e,s){var l=s===o.length-1,c=n.isTimeScale&&l;return p("tr",{key:s,className:["fc-timeline-header-row",c?"fc-timeline-header-row-chrono":""].join(" ")},e.map((function(e){return p(ju,{key:e.date.toISOString(),cell:e,rowLevel:s,dateProfile:t,tDateProfile:n,todayRange:i,nowDate:a,rowInnerHeight:r&&r[s],isSticky:!l})})))})))}}])}(Kn),Fu=function(){return _createClass((function e(t,n,r,i,a,o){_classCallCheck(this,e),this.slatRootEl=t,this.dateProfile=r,this.tDateProfile=i,this.dateEnv=a,this.isRtl=o,this.outerCoordCache=new fa(t,n,!0,!1),this.innerCoordCache=new fa(t,Ne(n,"div"),!0,!1)}),[{key:"isDateInRange",value:function(e){return pr(this.dateProfile.currentRange,e)}},{key:"dateToCoord",value:function(e){var t=this.tDateProfile,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n),i=n-(r=Math.min(r,t.slotCnt-1)),a=this.innerCoordCache,o=this.outerCoordCache;return this.isRtl?o.originClientRect.width-(o.rights[r]-a.getWidth(r)*i):o.lefts[r]+a.getWidth(r)*i}},{key:"rangeToCoords",value:function(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}},{key:"durationToCoord",value:function(e){var t=this.dateProfile,n=this.tDateProfile,r=this.dateEnv,i=this.isRtl,a=0;if(t){var o=r.add(t.activeRange.start,e);n.isTimeScale||(o=Nt(o)),a=this.dateToCoord(o),!i&&a&&(a+=1)}return a}},{key:"coordFromLeft",value:function(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}},{key:"computeDateSnapCoverage",value:function(e){return Gu(e,this.tDateProfile,this.dateEnv)}}])}();function Gu(e,t,n){var r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;var i=Math.floor(r),a=t.snapDiffToIndex[i];return ut(a)?a+=r-i:a=Math.ceil(a),a}function Vu(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function qu(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}var Yu=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).rootElRef={current:null},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=Et(t.tDateProfile.slotDuration).unit,i=t.slatCoords&&t.slatCoords.dateProfile===t.dateProfile?t.slatCoords:null;return p(Na,{unit:r},(function(r,a){return p("div",{className:"fc-timeline-header",ref:e.rootElRef},p("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,p("tbody",null,p(Uu,{dateProfile:t.dateProfile,tDateProfile:t.tDateProfile,nowDate:r,todayRange:a,rowInnerHeights:t.rowInnerHeights}))),n.options.nowIndicator&&p("div",{className:"fc-timeline-now-indicator-container"},i&&i.isDateInRange(r)&&p(bo,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:Vu(i.dateToCoord(r),n.isRtl),isAxis:!0,date:r})))}))}},{key:"componentDidMount",value:function(){this.updateSize()}},{key:"componentDidUpdate",value:function(){this.updateSize()}},{key:"updateSize",value:function(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}},{key:"computeMaxCushionWidth",value:function(){return Math.max.apply(Math,_toConsumableArray(Pe(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((function(e){return e.getBoundingClientRect().width}))))}}])}(Kn),Qu=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.options,i=t.theme,a=e.date,o=e.tDateProfile,s=e.isEm,l=Ji(e.date,e.todayRange,e.nowDate,e.dateProfile),c=Object.assign(Object.assign({date:n.toDate(e.date)},l),{view:t.viewApi});return p(ar,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",s&&"fc-timeline-slot-em",o.isTimeScale?ut(n.countDurationsBetween(o.normalizedRange.start,e.date,o.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":""].concat(_toConsumableArray(e.isDay?Ki(l,i):$i(l,i))),elAttrs:{"data-date":n.formatIso(a,{omitTimeZoneOffset:!0,omitTime:!o.isTimeScale})},renderProps:c,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(function(e){return p(e,{elTag:"div"})}))}}])}(Kn),Zu=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=e.tDateProfile,n=e.cellElRefs,r=t.slotDates,i=t.isWeekStarts,a=!t.isTimeScale&&!t.largeUnit;return p("tbody",null,p("tr",null,r.map((function(r,o){var s=r.toISOString();return p(Qu,{key:s,elRef:n.createRef(s),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:i[o],isDay:a})}))))}}])}(Kn),Xu=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).rootElRef={current:null},e.cellElRefs=new eo,e.handleScrollRequest=function(t){var n=e.props.onScrollLeftRequest,r=e.coords;if(n&&r){if(t.time)n(r.coordFromLeft(r.durationToCoord(t.time)));return!0}return null},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context;return p("div",{className:"fc-timeline-slots",ref:this.rootElRef},p("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,p(Zu,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}},{key:"componentDidMount",value:function(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}},{key:"componentDidUpdate",value:function(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}},{key:"componentWillUnmount",value:function(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}},{key:"updateSizing",value:function(){var e,t=this.props,n=this.context;null!==t.clientWidth&&this.scrollResponder&&(this.rootElRef.current.offsetWidth&&(this.coords=new Fu(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.tDateProfile.slotDates.map((function(t){var n=t.toISOString();return e[n]}))),t.dateProfile,t.tDateProfile,n.dateEnv,n.isRtl),t.onCoords&&t.onCoords(this.coords),this.scrollResponder.update(!1)))}},{key:"positionToHit",value:function(e){var t=this.coords.outerCoordCache,n=this.context,r=n.dateEnv,i=n.isRtl,a=this.props.tDateProfile,o=t.leftToIndex(e);if(null!=o){var s=t.getWidth(o),l=i?(t.rights[o]-e)/s:(e-t.lefts[o])/s,c=Math.floor(l*a.snapsPerSlot),u=r.add(a.slotDates[o],yt(a.snapDuration,c));return{dateSpan:{range:{start:u,end:r.add(u,a.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[o],left:t.lefts[o],right:t.rights[o]}}return null}}])}(Kn);function Ju(e,t,n){var r=[];if(n){var i,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=n.rangeToCoords(o),l=Math.round(s.start),c=Math.round(s.end);c-l<t&&(c=l+t),r.push({start:l,end:c})}}catch(e){a.e(e)}finally{a.f()}}return r}var Ku=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&p("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))}},{key:"renderSegs",value:function(e,t,n){var r=this.props,i=r.todayRange,a=r.nowDate,o=this.context.isRtl,s=Ju(e,0,t),l=e.map((function(e,t){var r=qu(s[t],o);return p("div",{key:wi(e.eventRange),className:"fc-timeline-bg-harness",style:r},"bg-event"===n?p(Eo,Object.assign({seg:e},_i(e,i,a))):Do(n))}));return p(m,null,l)}}])}(Kn),$u=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"sliceRange",value:function(e,t,n,r,i){var a=function(e,t,n){if(!t.isTimeScale&&(e=mr(e),t.largeUnit)){var r=e;((e={start:n.startOf(e.start,t.largeUnit),end:n.startOf(e.end,t.largeUnit)}).end.valueOf()!==r.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:n.add(e.end,t.slotDuration)})}return e}(e,r,i),o=[];if(Gu(a.start,r,i)<Gu(a.end,r,i)){var s=dr(a,r.normalizedRange);s&&o.push({start:s.start,end:s.end,isStart:s.start.valueOf()===a.start.valueOf()&&Hu(s.start,r,t,n),isEnd:s.end.valueOf()===a.end.valueOf()&&Hu(Tt(s.end,-1),r,t,n)})}return o}}])}(Ua),ed=vn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),td=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props;return p(mo,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:ed,defaultDisplayEventTime:!e.isTimeScale}))}}])}(Kn),nd=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=e.hiddenSegs,r=e.placement,i=e.resourceId,a=r.top,o=r.hcoords,s=o&&null!==a,l=qu(o,t.isRtl),c=i?{resourceId:i}:{};return p(Mo,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:s?"":"hidden",top:a||0},l),allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:c,popoverContent:function(){return p(m,null,n.map((function(t){var n=t.eventRange.instance.instanceId;return p("div",{key:n,style:{visibility:e.isForcedInvisible[n]?"hidden":""}},p(td,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection},_i(t,e.todayRange,e.nowDate))))})))}},(function(e){return p(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]})}))}}])}(Kn),rd=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).slicer=new $u,e.sortEventSegs=Xt(mi),e.harnessElRefs=new eo,e.moreElRefs=new eo,e.innerElRef={current:null},e.state={eventInstanceHeights:{},moreLinkHeights:{}},e.handleResize=function(t){t&&e.updateSize()},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state,n=this.context,r=n.options,i=e.dateProfile,a=e.tDateProfile,o=this.slicer.sliceProps(e,i,a.isTimeScale?null:e.nextDayThreshold,n,i,n.dateProfileGenerator,a,n.dateEnv),s=(o.eventDrag?o.eventDrag.segs:null)||(o.eventResize?o.eventResize.segs:null)||[],l=this.sortEventSegs(o.fgEventSegs,r.eventOrder),c=_slicedToArray(function(e,t,n,r,i,a){for(var o=[],s=[],l=0;l<e.length;l+=1){var c=e[l],u=n[c.eventRange.instance.instanceId],d=t[l];u&&d?o.push({index:l,span:d,thickness:u}):s.push({seg:c,hcoords:d,top:null})}var f=new ba;null!=i&&(f.strictOrder=i),null!=a&&(f.maxStackCnt=a);for(var h=f.addSegs(o),v=h.map((function(t){return{seg:e[t.index],hcoords:t.span,top:null}})),p=ka(h),g=[],m=[],y=function(t){return e[t.index]},b=0;b<p.length;b+=1){var C=p[b],S=C.entries.map(y),k=r[Vt(Ho(S))];null!=k?g.push({index:e.length+b,thickness:k,span:C.span}):m.push({seg:S,hcoords:C.span,top:null})}f.maxStackCnt=-1,f.addSegs(g);var _,E=[],w=0,D=_createForOfIteratorHelper(f.toRects());try{for(D.s();!(_=D.n()).done;){var R=_.value,A=R.index;E.push({seg:A<e.length?e[A]:p[A-e.length].entries.map(y),hcoords:R.span,top:R.levelCoord}),w=Math.max(w,R.levelCoord+R.thickness)}}catch(e){D.e(e)}finally{D.f()}return[E.concat(s,v,m),w]}(l,Ju(l,r.eventMinWidth,e.timelineCoords),t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),2),u=c[0],d=c[1],f=(o.eventDrag?o.eventDrag.affectedInstances:null)||(o.eventResize?o.eventResize.affectedInstances:null)||{};return p(m,null,p(Ku,{businessHourSegs:o.businessHourSegs,bgEventSegs:o.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:o.eventResize?o.eventResize.segs:[],dateSelectionSegs:o.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),p("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:d}},this.renderFgSegs(u,f,!1,!1,!1),this.renderFgSegs(function(e,t,n){if(!e.length||!t)return[];var r=function(e){var t,n={},r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.seg;Array.isArray(a)||(n[a.eventRange.instance.instanceId]=i.top)}}catch(e){r.e(e)}finally{r.f()}return n}(n);return e.map((function(e){return{seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]}}))}(s,e.timelineCoords,u),{},Boolean(o.eventDrag),Boolean(o.eventResize),!1)))}},{key:"componentDidMount",value:function(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}},{key:"componentDidUpdate",value:function(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()}},{key:"componentWillUnmount",value:function(){this.context.removeResizeHandler(this.handleResize)}},{key:"updateSize",value:function(){var e=this.props,t=e.timelineCoords,n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:xn(this.harnessElRefs.currentMap,(function(e){return Math.round(e.getBoundingClientRect().height)})),moreLinkHeights:xn(this.moreElRefs.currentMap,(function(e){return Math.round(e.getBoundingClientRect().height)}))},(function(){e.onHeightChange&&e.onHeightChange(n,!0)})),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)}},{key:"renderFgSegs",value:function(e,t,n,r,i){var a=this.harnessElRefs,o=this.moreElRefs,s=this.props,l=this.context,c=n||r||i;return p(m,null,e.map((function(e){var u=e.seg,d=e.hcoords,f=e.top;if(Array.isArray(u)){var h=Vt(Ho(u));return p(nd,{key:"m:"+h,elRef:o.createRef(h),hiddenSegs:u,placement:e,dateProfile:s.dateProfile,nowDate:s.nowDate,todayRange:s.todayRange,isTimeScale:s.tDateProfile.isTimeScale,eventSelection:s.eventSelection,resourceId:s.resourceId,isForcedInvisible:t})}var v=u.eventRange.instance.instanceId,g=c||Boolean(!t[v]&&d&&null!==f),m=qu(d,l.isRtl);return p("div",{key:"e:"+v,ref:c?null:a.createRef(v),className:"fc-timeline-event-harness",style:Object.assign({visibility:g?"":"hidden",top:f||0},m)},p(td,Object.assign({isTimeScale:s.tDateProfile.isTimeScale,seg:u,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:v===s.eventSelection},_i(u,s.todayRange,s.nowDate))))})))}}])}(Kn);rd.addStateEquality({eventInstanceHeights:In,moreLinkHeights:In});var id=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).slatsRef={current:null},e.state={coords:null},e.handeEl=function(t){t?e.context.registerInteractiveComponent(e,{el:t}):e.context.unregisterInteractiveComponent(e)},e.handleCoords=function(t){e.setState({coords:t}),e.props.onSlatCoords&&e.props.onSlatCoords(t)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=this.context,i=r.options,a=t.dateProfile,o=t.tDateProfile,s=Et(o.slotDuration).unit;return p("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:t.tableMinWidth,height:t.clientHeight,width:t.clientWidth}},p(Na,{unit:s},(function(s,l){return p(m,null,p(Xu,{ref:e.slatsRef,dateProfile:a,tDateProfile:o,nowDate:s,todayRange:l,clientWidth:t.clientWidth,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,onCoords:e.handleCoords,onScrollLeftRequest:t.onScrollLeftRequest}),p(rd,{dateProfile:a,tDateProfile:t.tDateProfile,nowDate:s,todayRange:l,nextDayThreshold:i.nextDayThreshold,businessHours:t.businessHours,eventStore:t.eventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,timelineCoords:n.coords,syncParentMinHeight:!0}),i.nowIndicator&&n.coords&&n.coords.isDateInRange(s)&&p("div",{className:"fc-timeline-now-indicator-container"},p(bo,{elClasses:["fc-timeline-now-indicator-line"],elStyle:Vu(n.coords.dateToCoord(s),r.isRtl),isAxis:!1,date:s})))})))}},{key:"queryHit",value:function(e,t,n,r){var i=this.slatsRef.current.positionToHit(e);return i?{dateProfile:this.props.dateProfile,dateSpan:i.dateSpan,rect:{left:i.left,right:i.right,top:0,bottom:r},dayEl:i.dayEl,layer:0}:null}}])}(ma),ad=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildTimelineDateProfile=Xt(Iu),e.scrollGridRef={current:null},e.state={slatCoords:null,slotCushionMaxWidth:null},e.handleSlatCoords=function(t){e.setState({slatCoords:t})},e.handleScrollLeftRequest=function(t){e.scrollGridRef.current.forceScrollLeft(0,t)},e.handleMaxCushionWidth=function(t){e.setState({slotCushionMaxWidth:Math.ceil(t)})},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=this.context,i=r.options,a=!t.forPrint&&ho(i),o=!t.forPrint&&vo(i),s=this.buildTimelineDateProfile(t.dateProfile,r.dateEnv,i,r.dateProfileGenerator),l=i.slotMinWidth,c=od(s,l||this.computeFallbackSlotMinWidth(s)),u=[{type:"header",key:"header",isSticky:a,chunks:[{key:"timeline",content:function(r){return p(Yu,{dateProfile:t.dateProfile,clientWidth:r.clientWidth,clientHeight:r.clientHeight,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,tDateProfile:s,slatCoords:n.slatCoords,onMaxCushionWidth:l?null:e.handleMaxCushionWidth})}}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:function(n){return p(id,Object.assign({},t,{clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,tDateProfile:s,onSlatCoords:e.handleSlatCoords,onScrollLeftRequest:e.handleScrollLeftRequest}))}}]}];return o&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:fo}]}),p(sr,{elClasses:["fc-timeline",!1===i.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:r.viewSpec},p(cu,{ref:this.scrollGridRef,liquid:!t.isHeightAuto&&!t.forPrint,forPrint:t.forPrint,collapsibleWidth:!1,colGroups:[{cols:c}],sections:u}))}},{key:"computeFallbackSlotMinWidth",value:function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}}])}(ma);function od(e,t){return[{span:e.slotCnt,minWidth:t||1}]}Ae('.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;pointer-events:none;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}');var sd=Vo({name:"@fullcalendar/timeline",premiumReleaseDate:"2024-07-12",deps:[eu],initialView:"timelineDay",views:{timeline:{component:ad,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}}),ld="_fc:",cd={id:String,parentId:String,children:wn,title:String,businessHours:wn,extendedProps:wn,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:wn,eventOverlap:Boolean,eventAllow:wn,eventClassNames:jr,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function ud(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=En(e,cd),a=i.refined,o=i.extra,s={id:a.id||ld+Xe(),parentId:a.parentId||t,title:a.title||"",businessHours:a.businessHours?ei(a.businessHours,r):null,ui:zr({editable:a.eventEditable,startEditable:a.eventStartEditable,durationEditable:a.eventDurationEditable,constraint:a.eventConstraint,overlap:a.eventOverlap,allow:a.eventAllow,classNames:a.eventClassNames,backgroundColor:a.eventBackgroundColor,borderColor:a.eventBorderColor,textColor:a.eventTextColor,color:a.eventColor},r),extendedProps:Object.assign(Object.assign({},o),a.extendedProps)};if(Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),n[s.id]);else if(n[s.id]=s,a.children){var l,c=_createForOfIteratorHelper(a.children);try{for(c.s();!(l=c.n()).done;){ud(l.value,s.id,n,r)}}catch(e){c.e(e)}finally{c.f()}}return s}function dd(e){return 0===e.indexOf(ld)?"":e}var fd=function(){function e(t,n){_classCallCheck(this,e),this._context=t,this._resource=n}return _createClass(e,[{key:"setProp",value:function(e,t){var n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}},{key:"setExtendedProp",value:function(e,t){var n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}},{key:"sync",value:function(t){var n=this._context,r=t.id;this._resource=n.getCurrentData().resourceStore[r],n.emitter.trigger("resourceChange",{oldResource:new e(n,t),resource:this,revert(){n.dispatch({type:"ADD_RESOURCE",resourceHash:{[r]:t}})}})}},{key:"remove",value:function(){var e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}},{key:"getParent",value:function(){var t=this._context,n=this._resource.parentId;return n?new e(t,t.getCurrentData().resourceStore[n]):null}},{key:"getChildren",value:function(){var t=this._resource.id,n=this._context,r=n.getCurrentData().resourceStore,i=[];for(var a in r)r[a].parentId===t&&i.push(new e(n,r[a]));return i}},{key:"getEvents",value:function(){var e=this._resource.id,t=this._context,n=t.getCurrentData().eventStore,r=n.defs,i=n.instances,a=[];for(var o in i){var s=i[o],l=r[s.defId];-1!==l.resourceIds.indexOf(e)&&a.push(new li(t,l,s))}return a}},{key:"id",get:function(){return dd(this._resource.id)}},{key:"title",get:function(){return this._resource.title}},{key:"eventConstraint",get:function(){return this._resource.ui.constraints[0]||null}},{key:"eventOverlap",get:function(){return this._resource.ui.overlap}},{key:"eventAllow",get:function(){return this._resource.ui.allows[0]||null}},{key:"eventBackgroundColor",get:function(){return this._resource.ui.backgroundColor}},{key:"eventBorderColor",get:function(){return this._resource.ui.borderColor}},{key:"eventTextColor",get:function(){return this._resource.ui.textColor}},{key:"eventClassNames",get:function(){return this._resource.ui.classNames}},{key:"extendedProps",get:function(){return this._resource.extendedProps}},{key:"toPlainObject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._resource,n=t.ui,r=this.id,i={};return r&&(i.id=r),t.title&&(i.title=t.title),e.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.eventColor=n.backgroundColor:(n.backgroundColor&&(i.eventBackgroundColor=n.backgroundColor),n.borderColor&&(i.eventBorderColor=n.borderColor)),n.textColor&&(i.eventTextColor=n.textColor),n.classNames.length&&(i.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}},{key:"toJSON",value:function(){return this.toPlainObject()}}])}();var hd=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"getKeyInfo",value:function(e){return Object.assign({"":{}},e.resourceStore)}},{key:"getKeysForDateSpan",value:function(e){return[e.resourceId||""]}},{key:"getKeysForEventDef",value:function(e){var t=e.resourceIds;return t.length?t:[""]}}])}(Zi),vd=rt("id,title");function pd(e){return{resource:new fd(e.context,e.resource)}}var gd=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).refineRenderProps=Jt(yd),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props;return p(Zn.Consumer,null,(function(n){var r=n.options,i=e.refineRenderProps({resource:t.resource,date:t.date,context:n});return p(ar,Object.assign({},t,{elAttrs:Object.assign(Object.assign({},t.elAttrs),{"data-resource-id":t.resource.id,"data-date":t.date?qt(t.date):void 0}),renderProps:i,generatorName:"resourceLabelContent",customGenerator:r.resourceLabelContent,defaultGenerator:md,classNameGenerator:r.resourceLabelClassNames,didMount:r.resourceLabelDidMount,willUnmount:r.resourceLabelWillUnmount}))}))}}])}(Kn);function md(e){return e.resource.title||e.resource.id}function yd(e){return{resource:new fd(e.context,e.resource),date:e.date?e.context.dateEnv.toDate(e.date):null,view:e.context.viewApi}}var bd=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props;return p(gd,{elTag:"th",elClasses:["fc-col-header-cell","fc-resource"],elAttrs:{role:"columnheader",colSpan:e.colSpan},resource:e.resource,date:e.date},(function(t){return p("div",{className:"fc-scrollgrid-sync-inner"},p(t,{elTag:"span",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"]}))}))}}])}(Kn),Cd=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildDateFormat=Xt(Sd),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=this.buildDateFormat(n.options.dayHeaderFormat,t.datesRepDistinctDays,t.dates.length);return p(Na,{unit:"day"},(function(i,a){return 1===t.dates.length?e.renderResourceRow(t.resources,t.dates[0]):n.options.datesAboveResources?e.renderDayAndResourceRows(t.dates,r,a,t.resources):e.renderResourceAndDayRows(t.resources,t.dates,r,a)}))}},{key:"renderResourceRow",value:function(e,t){var n=e.map((function(e){return p(bd,{key:e.id,resource:e,colSpan:1,date:t})}));return this.buildTr(n,"resources")}},{key:"renderDayAndResourceRows",value:function(e,t,n,r){var i,a=[],o=[],s=_createForOfIteratorHelper(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;a.push(this.renderDateCell(l,t,n,r.length,null,!0));var c,u=_createForOfIteratorHelper(r);try{for(u.s();!(c=u.n()).done;){var d=c.value;o.push(p(bd,{key:d.id+":"+l.toISOString(),resource:d,colSpan:1,date:l}))}}catch(e){u.e(e)}finally{u.f()}}}catch(e){s.e(e)}finally{s.f()}return p(m,null,this.buildTr(a,"day"),this.buildTr(o,"resources"))}},{key:"renderResourceAndDayRows",value:function(e,t,n,r){var i,a=[],o=[],s=_createForOfIteratorHelper(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;a.push(p(bd,{key:l.id,resource:l,colSpan:t.length,isSticky:!0}));var c,u=_createForOfIteratorHelper(t);try{for(u.s();!(c=u.n()).done;){var d=c.value;o.push(this.renderDateCell(d,n,r,1,l))}}catch(e){u.e(e)}finally{u.f()}}}catch(e){s.e(e)}finally{s.f()}return p(m,null,this.buildTr(a,"resources"),this.buildTr(o,"day"))}},{key:"renderDateCell",value:function(e,t,n,r,i,a){var o=this.props,s=i?":".concat(i.id):"",l=i?{resource:new fd(this.context,i)}:{},c=i?{"data-resource-id":i.id}:{};return o.datesRepDistinctDays?p(Oa,{key:e.toISOString()+s,date:e,dateProfile:o.dateProfile,todayRange:n,colCnt:o.dates.length*o.resources.length,dayHeaderFormat:t,colSpan:r,isSticky:a,extraRenderProps:l,extraDataAttrs:c}):p(Pa,{key:e.getUTCDay()+s,dow:e.getUTCDay(),dayHeaderFormat:t,colSpan:r,isSticky:a,extraRenderProps:l,extraDataAttrs:c})}},{key:"buildTr",value:function(e,t){var n=this.props.renderIntro;return e.length||(e=[p("td",{key:0}," ")]),p("tr",{key:t,role:"row"},n&&n(t),e)}}])}(Kn);function Sd(e,t,n){return e||Ta(t,n)}var kd=_createClass((function e(t){_classCallCheck(this,e);for(var n={},r=[],i=0;i<t.length;i+=1){var a=t[i].id;r.push(a),n[a]=i}this.ids=r,this.indicesById=n,this.length=t.length})),_d=function(){return _createClass((function e(t,n,r){_classCallCheck(this,e),this.dayTableModel=t,this.resources=n,this.context=r,this.resourceIndex=new kd(n),this.rowCnt=t.rowCnt,this.colCnt=t.colCnt*n.length,this.cells=this.buildCells()}),[{key:"buildCells",value:function(){for(var e=this.rowCnt,t=this.dayTableModel,n=this.resources,r=[],i=0;i<e;i+=1){for(var a=[],o=0;o<t.colCnt;o+=1)for(var s=0;s<n.length;s+=1){var l=n[s],c={resource:new fd(this.context,l)},u={"data-resource-id":l.id},d={resourceId:l.id},f=t.cells[i][o].date;a[this.computeCol(o,s)]={key:l.id+":"+f.toISOString(),date:f,extraRenderProps:c,extraDataAttrs:u,extraClassNames:["fc-resource"],extraDateSpan:d}}r.push(a)}return r}}])}(),Ed=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"computeCol",value:function(e,t){return t*this.dayTableModel.colCnt+e}},{key:"computeColRanges",value:function(e,t,n){return[{firstCol:this.computeCol(e,n),lastCol:this.computeCol(t,n),isStart:!0,isEnd:!0}]}}])}(_d),wd=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"computeCol",value:function(e,t){return e*this.resources.length+t}},{key:"computeColRanges",value:function(e,t,n){for(var r=[],i=e;i<=t;i+=1){var a=this.computeCol(i,n);r.push({firstCol:a,lastCol:a,isStart:i===e,isEnd:i===t})}return r}}])}(_d),Dd=[],Rd=function(){return _createClass((function e(){_classCallCheck(this,e),this.joinDateSelection=Xt(this.joinSegs),this.joinBusinessHours=Xt(this.joinSegs),this.joinFgEvents=Xt(this.joinSegs),this.joinBgEvents=Xt(this.joinSegs),this.joinEventDrags=Xt(this.joinInteractions),this.joinEventResizes=Xt(this.joinInteractions)}),[{key:"joinProps",value:function(e,t){var n,r=[],i=[],a=[],o=[],s=[],l=[],c="",u=_createForOfIteratorHelper(t.resourceIndex.ids.concat([""]));try{for(u.s();!(n=u.n()).done;){var d=n.value,f=e[d];r.push(f.dateSelectionSegs),i.push(d?f.businessHourSegs:Dd),a.push(d?f.fgEventSegs:Dd),o.push(f.bgEventSegs),s.push(f.eventDrag),l.push(f.eventResize),c=c||f.eventSelection}}catch(e){u.e(e)}finally{u.f()}return{dateSelectionSegs:this.joinDateSelection.apply(this,[t].concat(r)),businessHourSegs:this.joinBusinessHours.apply(this,[t].concat(i)),fgEventSegs:this.joinFgEvents.apply(this,[t].concat(a)),bgEventSegs:this.joinBgEvents.apply(this,[t].concat(o)),eventDrag:this.joinEventDrags.apply(this,[t].concat(s)),eventResize:this.joinEventResizes.apply(this,[t].concat(l)),eventSelection:c}}},{key:"joinSegs",value:function(e){for(var t=e.resources.length,n=[],r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];for(var o=0;o<t;o+=1){var s,l=_createForOfIteratorHelper(i[o]);try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push.apply(n,_toConsumableArray(this.transformSeg(c,e,o)))}}catch(e){l.e(e)}finally{l.f()}var u,d=_createForOfIteratorHelper(i[t]);try{for(d.s();!(u=d.n()).done;){var f=u.value;n.push.apply(n,_toConsumableArray(this.transformSeg(f,e,o)))}}catch(e){d.e(e)}finally{d.f()}}return n}},{key:"expandSegs",value:function(e,t){for(var n=e.resources.length,r=[],i=0;i<n;i+=1){var a,o=_createForOfIteratorHelper(t);try{for(o.s();!(a=o.n()).done;){var s=a.value;r.push.apply(r,_toConsumableArray(this.transformSeg(s,e,i)))}}catch(e){o.e(e)}finally{o.f()}}return r}},{key:"joinInteractions",value:function(e){for(var t=e.resources.length,n={},r=[],i=!1,a=!1,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];for(var c=0;c<t;c+=1){var u=s[c];if(u){i=!0;var d,f=_createForOfIteratorHelper(u.segs);try{for(f.s();!(d=f.n()).done;){var h=d.value;r.push.apply(r,_toConsumableArray(this.transformSeg(h,e,c)))}}catch(e){f.e(e)}finally{f.f()}Object.assign(n,u.affectedInstances),a=a||u.isEvent}if(s[t]){var v,p=_createForOfIteratorHelper(s[t].segs);try{for(p.s();!(v=p.n()).done;){var g=v.value;r.push.apply(r,_toConsumableArray(this.transformSeg(g,e,c)))}}catch(e){p.e(e)}finally{p.f()}}}return i?{affectedInstances:n,segs:r,isEvent:a}:null}}])}(),Ad=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"getKeyInfo",value:function(e){var t=e.resourceDayTableModel,n=xn(t.resourceIndex.indicesById,(function(e){return t.resources[e]}));return n[""]={},n}},{key:"getKeysForDateSpan",value:function(e){return[e.resourceId||""]}},{key:"getKeysForEventDef",value:function(e){var t=e.resourceIds;return t.length?t:[""]}}])}(Zi);function xd(e,t){return Td(e,[],t,!1,{},!0).map((function(e){return e.resource}))}function Td(e,t,n,r,i,a){var o=function(e,t,n,r){var i=function(e,t){var n={};for(var r in e){var i=e[r];n[r]={resource:i,resourceFields:Hd(i),children:[]}}for(var a in e){var o=e[a];if(o.parentId){var s=n[o.parentId];s&&Od(n[a],s.children,t)}}return n}(e,r),a=[];for(var o in i){var s=i[o];s.resource.parentId||Id(s,a,n,0,t,r)}return a}(e,r?-1:1,t,n),s=[];return Md(o,s,r,[],0,i,a),s}function Md(e,t,n,r,i,a,o){for(var s=0;s<e.length;s+=1){var l=e[s],c=l.group;if(c)if(n){var u=t.length,d=r.length;if(Md(l.children,t,n,r.concat(0),i,a,o),u<t.length){var f=t[u];(f.rowSpans=f.rowSpans.slice())[d]=t.length-u}}else{var h=c.spec.field+":"+c.value,v=null!=a[h]?a[h]:o;t.push({id:h,group:c,isExpanded:v}),v&&Md(l.children,t,n,r,i+1,a,o)}else if(l.resource){var p=l.resource.id,g=null!=a[p]?a[p]:o;t.push({id:p,rowSpans:r,depth:i,isExpanded:g,hasChildren:Boolean(l.children.length),resource:l.resource,resourceFields:l.resourceFields}),g&&Md(l.children,t,n,r,i+1,a,o)}}}function Id(e,t,n,r,i,a){if(n.length&&(-1===i||r<=i)){var o=function(e,t,n){var r,i,a=e.resourceFields[n.field];if(n.order)for(i=0;i<t.length;i+=1){var o=t[i];if(o.group){var s=ot(a,o.group.value)*n.order;if(0===s){r=o;break}if(s<0)break}}else for(i=0;i<t.length;i+=1){var l=t[i];if(l.group&&a===l.group.value){r=l;break}}r||(r={group:{value:a,spec:n},children:[]},t.splice(i,0,r));return r}(e,t,n[0]);Id(e,o.children,n.slice(1),r+1,i,a)}else Od(e,t,a)}function Od(e,t,n){var r;for(r=0;r<t.length;r+=1){if(it(t[r].resourceFields,e.resourceFields,n)>0)break}t.splice(r,0,e)}function Hd(e){var t=Object.assign(Object.assign(Object.assign({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}function Pd(e,t){var n=e.resourceEditable;if(null==n){var r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&null==(n=t.options.eventResourceEditable)&&(n=t.options.editable)}return n}var Nd=function(){return _createClass((function e(){_classCallCheck(this,e),this.filterResources=Xt(Wd)}),[{key:"transform",value:function(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}}])}();function Wd(e,t,n,r){if(t){var i=function(e,t){return An(e,(function(e){return hr(e.range,t)}))}(n.instances,r),a=function(e,t){var n={};for(var r in e){var i,a=_createForOfIteratorHelper(t[e[r].defId].resourceIds);try{for(a.s();!(i=a.n()).done;){n[i.value]=!0}}catch(e){a.e(e)}finally{a.f()}}return n}(i,n.defs);return Object.assign(a,function(e,t){var n={};for(var r in e)for(var i=void 0;(i=t[r])&&(r=i.parentId);)n[r]=!0;return n}(a,e)),An(e,(function(e,t){return a[t]}))}return e}var jd=function(){return _createClass((function e(){_classCallCheck(this,e),this.buildResourceEventUis=Xt(Bd,In),this.injectResourceEventUis=Xt(Ld)}),[{key:"transform",value:function(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}])}();function Bd(e){return xn(e,(function(e){return e.ui}))}function Ld(e,t,n){return xn(e,(function(e,r){return r?function(e,t,n){var r,i=[],a=_createForOfIteratorHelper(t.resourceIds);try{for(a.s();!(r=a.n()).done;){var o=r.value;n[o]&&i.unshift(n[o])}}catch(e){a.e(e)}finally{a.f()}return i.unshift(e),Ur(i)}(e,t[r],n):e}))}var zd=[];function Ud(e){zd.push(e)}function Fd(e){return zd[e]}function Gd(){return zd}var Vd={id:String,resources:wn,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:wn};function qd(e){var t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){var n=En(t,Vd),r=n.refined;!function(e){for(var t in e)"Unknown resource prop '".concat(t,"'")}(n.extra);var i=function(e){for(var t=Gd(),n=t.length-1;n>=0;n-=1){var r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}(r);if(i)return{_raw:e,sourceId:Xe(),sourceDefId:i.sourceDefId,meta:i.meta,publicId:r.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Yd(e,t,n){var r=n.options,i=n.dateProfile;if(!e||!t)return Qd(r.initialResources||r.resources,i.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return Qd(t.resourceSourceInput,i.activeRange,r.refetchResourcesOnNavigate,n);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return function(e,t,n,r){if(n&&!function(e){return Boolean(Fd(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||!fr(e.fetchRange,t)))return Zd(e,t,r);return e}(e,i.activeRange,r.refetchResourcesOnNavigate,n);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return function(e,t,n){if(t===e.latestFetchId)return Object.assign(Object.assign({},e),{isFetching:!1,fetchRange:n});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Zd(e,i.activeRange,n);default:return e}}function Qd(e,t,n,r){if(e){var i=qd(e);return i=Zd(i,n?t:null,r)}return null}function Zd(e,t,n){var r=Fd(e.sourceDefId),i=Xe();return r.fetch({resourceSource:e,range:t,context:n},(function(e){n.dispatch({type:"RECEIVE_RESOURCES",fetchId:i,fetchRange:t,rawResources:e.rawResources})}),(function(e){n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:i,fetchRange:t,error:e})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:i})}function Xd(e,t,n,r){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return function(e,t,n,r,i){if(r.latestFetchId===n){var a,o={},s=_createForOfIteratorHelper(t);try{for(s.s();!(a=s.n()).done;){ud(a.value,"",o,i)}}catch(e){s.e(e)}finally{s.f()}return o}return e}(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return i=e,a=t.resourceHash,Object.assign(Object.assign({},i),a);case"REMOVE_RESOURCE":return function(e,t){var n=Object.assign({},e);for(var r in delete n[t],n)n[r].parentId===t&&(n[r]=Object.assign(Object.assign({},n[r]),{parentId:""}));return n}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,n,r){var i=e[t];if(i)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{[n]:r})});return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,n,r){var i=e[t];if(i)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{extendedProps:Object.assign(Object.assign({},i.extendedProps),{[n]:r})})});return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var i,a}var Jd={resourceId:String,resourceIds:wn,resourceEditable:Boolean};function Kd(e,t){return Object.assign(Object.assign({},t),{constraints:$d(e,t.constraints)})}function $d(e,t){return t.map((function(t){var n=t.defs;if(n)for(var r in n){var i=n[r].resourceIds;if(i.length&&-1===i.indexOf(e))return!1}return t}))}zi.prototype.addResource=function(e){var t,n,r=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.getCurrentData();e instanceof fd?(n=e._resource,t={[n.id]:n}):n=ud(e,"",t={},a),this.dispatch({type:"ADD_RESOURCE",resourceHash:t}),i&&this.trigger("_scrollRequest",{resourceId:n.id});var o=new fd(a,n);return a.emitter.trigger("resourceAdd",{resource:o,revert:function(){r.dispatch({type:"REMOVE_RESOURCE",resourceId:n.id})}}),o},zi.prototype.getResourceById=function(e){e=String(e);var t=this.getCurrentData();if(t.resourceStore){var n=t.resourceStore[e];if(n)return new fd(t,n)}return null},zi.prototype.getResources=function(){var e=this.getCurrentData(),t=e.resourceStore,n=[];if(t)for(var r in t)n.push(new fd(e,t[r]));return n},zi.prototype.getTopLevelResources=function(){var e=this.getCurrentData(),t=e.resourceStore,n=[];if(t)for(var r in t)t[r].parentId||n.push(new fd(e,t[r]));return n},zi.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};var ef={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}};var tf={initialResources:wn,resources:wn,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:rt,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:wn,resourceAreaColumns:wn,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:wn,resourceAreaHeaderContent:wn,resourceAreaHeaderDidMount:wn,resourceAreaHeaderWillUnmount:wn,resourceGroupLabelClassNames:wn,resourceGroupLabelContent:wn,resourceGroupLabelDidMount:wn,resourceGroupLabelWillUnmount:wn,resourceLabelClassNames:wn,resourceLabelContent:wn,resourceLabelDidMount:wn,resourceLabelWillUnmount:wn,resourceLaneClassNames:wn,resourceLaneContent:wn,resourceLaneDidMount:wn,resourceLaneWillUnmount:wn,resourceGroupLaneClassNames:wn,resourceGroupLaneContent:wn,resourceGroupLaneDidMount:wn,resourceGroupLaneWillUnmount:wn},nf={resourcesSet:wn,resourceAdd:wn,resourceChange:wn,resourceRemove:wn};li.prototype.getResources=function(){var e=this._context.calendarApi;return this._def.resourceIds.map((function(t){return e.getResourceById(t)}))},li.prototype.setResources=function(e){var t,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=null;"string"==typeof i?a=i:"number"==typeof i?a=String(i):i instanceof fd&&(a=i.id),a&&n.push(a)}}catch(e){r.e(e)}finally{r.f()}this.mutate({standardProps:{resourceIds:n}})},Ud({ignoreRange:!0,parseMeta:e=>Array.isArray(e.resources)?e.resources:null,fetch(e,t){t({rawResources:e.resourceSource.meta})}}),Ud({parseMeta:e=>"function"==typeof e.resources?e.resources:null,fetch(e,t,n){var r=e.context.dateEnv,i=e.resourceSource.meta,a=e.range?{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}:{};Ii(i.bind(null,a),(function(e){return t({rawResources:e})}),n)}}),Ud({parseMeta:e=>e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null,fetch(e,t,n){var r=e.resourceSource.meta,i=function(e,t,n){var r,i,a,o,s=n.dateEnv,l=n.options,c={};t&&(null==(r=e.startParam)&&(r=l.startParam),null==(i=e.endParam)&&(i=l.endParam),null==(a=e.timeZoneParam)&&(a=l.timeZoneParam),c[r]=s.formatIso(t.start),c[i]=s.formatIso(t.end),"local"!==s.timeZone&&(c[a]=s.timeZone));o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return Object.assign(c,o),c}(r,e.range,e.context);Pi(r.method,r.url,i).then((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];t({rawResources:r,response:i})}),n)}});var rf=Vo({name:"@fullcalendar/resource",premiumReleaseDate:"2024-07-12",deps:[eu],reducers:[function(e,t,n){var r=Yd(e&&e.resourceSource,t,n),i=Xd(e&&e.resourceStore,t,r,n),a=function(e,t){return e&&t?"SET_RESOURCE_ENTITY_EXPANDED"===t.type?Object.assign(Object.assign({},e),{[t.id]:t.isExpanded}):e:{}}(e&&e.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:i,resourceEntityExpansions:a}}],isLoadingFuncs:[function(e){return e.resourceSource&&e.resourceSource.isFetching}],eventRefiners:Jd,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((function(e){return String(e)}))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,n,r){if(!e){var i=r.getCurrentData();if(i.viewSpecs[i.currentViewType].optionDefaults.needsResourceData&&Pd(t,r))return!0}return e}],eventDragMutationMassagers:[function(e,t,n){var r=t.dateSpan.resourceId,i=n.dateSpan.resourceId;r&&i&&r!==i&&(e.resourceMutation={matchResourceId:r,setResourceId:i})}],eventDefMutationAppliers:[function(e,t,n){var r=t.resourceMutation;if(r&&Pd(e,n)){var i=e.resourceIds.indexOf(r.matchResourceId);if(-1!==i){var a=e.resourceIds.slice();a.splice(i,1),-1===a.indexOf(r.setResourceId)&&a.push(r.setResourceId),e.resourceIds=a}}}],dateSelectionTransformers:[function(e,t){var n=e.dateSpan.resourceId,r=t.dateSpan.resourceId;return n&&r?{resourceId:n}:null}],datePointTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],dateSpanTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],viewPropsTransformers:[Nd,jd],isPropsValid:function(e,t){var n=(new hd).splitProps(Object.assign(Object.assign({},e),{resourceStore:t.getCurrentData().resourceStore}));for(var r in n){var i=n[r];if(r&&n[""]&&(i=Object.assign(Object.assign({},i),{eventStore:Nr(n[""].eventStore,i.eventStore),eventUiBases:Object.assign(Object.assign({},n[""].eventUiBases),i.eventUiBases)})),!Ya(i,t,{resourceId:r},Kd.bind(null,r)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){var n=e.resourceMutation;if(n){var r=t.calendarApi;return{oldResource:r.getResourceById(n.matchResourceId),newResource:r.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:ef,optionRefiners:tf,listenerRefiners:nf,propSetHandlers:{resourceStore:function(e,t){var n=t.emitter;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",function(e,t){var n=[];for(var r in e)n.push(new fd(t,e[r]));return n}(e,t))}}}),af=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"transformSeg",value:function(e,t,n){return t.computeColRanges(e.firstCol,e.lastCol,n).map((function(t){return Object.assign(Object.assign(Object.assign({},e),t),{isStart:e.isStart&&t.isStart,isEnd:e.isEnd&&t.isEnd})}))}}])}(Rd),of=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).splitter=new Ad,e.slicers={},e.joiner=new af,e.tableRef={current:null},e.isHitComboAllowed=function(t,n){return 1===e.props.resourceDayTableModel.dayTableModel.colCnt||t.dateSpan.resourceId===n.dateSpan.resourceId},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=t.resourceDayTableModel,i=t.nextDayThreshold,a=t.dateProfile,o=this.splitter.splitProps(t);this.slicers=xn(o,(function(t,n){return e.slicers[n]||new zl}));var s=xn(this.slicers,(function(e,t){return e.sliceProps(o[t],a,i,n,r.dayTableModel)}));return p(Ll,Object.assign({forPrint:t.forPrint,ref:this.tableRef},this.joiner.joinProps(s,r),{cells:r.cells,dateProfile:a,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,isHitComboAllowed:this.isHitComboAllowed}))}}])}(ma),sf=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).flattenResources=Xt(xd),e.buildResourceDayTableModel=Xt(lf),e.headerRef={current:null},e.tableRef={current:null},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=n.options,i=r.resourceOrder||vd,a=this.flattenResources(t.resourceStore,i),o=this.buildResourceDayTableModel(t.dateProfile,n.dateProfileGenerator,a,r.datesAboveResources,n),s=r.dayHeaders&&p(Cd,{ref:this.headerRef,resources:a,dateProfile:t.dateProfile,dates:o.dayTableModel.headerDates,datesRepDistinctDays:!0}),l=function(n){return p(of,{ref:e.tableRef,dateProfile:t.dateProfile,resourceDayTableModel:o,businessHours:t.businessHours,eventStore:t.eventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,nextDayThreshold:r.nextDayThreshold,tableMinWidth:n.tableMinWidth,colGroupNode:n.tableColGroupNode,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!t.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:t.forPrint})};return r.dayMinWidth?this.renderHScrollLayout(s,l,o.colCnt,r.dayMinWidth):this.renderSimpleLayout(s,l)}}])}(yl);function lf(e,t,n,r,i){var a=Gl(e,t);return r?new wd(a,n,i):new Ed(a,n,i)}var cf=Vo({name:"@fullcalendar/resource-daygrid",premiumReleaseDate:"2024-07-12",deps:[eu,rf,Yl],initialView:"resourceDayGridDay",views:{resourceDayGrid:{type:"dayGrid",component:sf,needsResourceData:!0},resourceDayGridDay:{type:"resourceDayGrid",duration:{days:1}},resourceDayGridWeek:{type:"resourceDayGrid",duration:{weeks:1}},resourceDayGridMonth:{type:"resourceDayGrid",duration:{months:1},fixedWeekCount:!0}}}),uf=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"transformSeg",value:function(e,t,n){return[Object.assign(Object.assign({},e),{col:t.computeCol(e.col,n)})]}}])}(Rd),df=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).buildDayRanges=Xt(wc),e.splitter=new Ad,e.slicers={},e.joiner=new uf,e.timeColsRef={current:null},e.isHitComboAllowed=function(t,n){return 1===e.dayRanges.length||t.dateSpan.resourceId===n.dateSpan.resourceId},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=n.dateEnv,i=n.options,a=t.dateProfile,o=t.resourceDayTableModel,s=this.dayRanges=this.buildDayRanges(o.dayTableModel,a,r),l=this.splitter.splitProps(t);this.slicers=xn(l,(function(t,n){return e.slicers[n]||new _c}));var c=xn(this.slicers,(function(e,t){return e.sliceProps(l[t],a,null,n,s)}));return p(Na,{unit:i.nowIndicator?"minute":"day"},(function(n,r){return p(Sc,Object.assign({ref:e.timeColsRef},e.joiner.joinProps(c,o),{dateProfile:a,axis:t.axis,slotDuration:t.slotDuration,slatMetas:t.slatMetas,cells:o.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:n,nowIndicatorSegs:i.nowIndicator&&e.buildNowIndicatorSegs(n),todayRange:r,onScrollTopRequest:t.onScrollTopRequest,forPrint:t.forPrint,onSlatCoords:t.onSlatCoords,isHitComboAllowed:e.isHitComboAllowed}))}))}},{key:"buildNowIndicatorSegs",value:function(e){var t=this.slicers[""].sliceNowDate(e,this.props.dateProfile,this.context.options.nextDayThreshold,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)}}])}(ma),ff=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).flattenResources=Xt(xd),e.buildResourceTimeColsModel=Xt(hf),e.buildSlatMetas=Xt(Rc),e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=n.options,i=n.dateEnv,a=t.dateProfile,o=this.allDaySplitter.splitProps(t),s=r.resourceOrder||vd,l=this.flattenResources(t.resourceStore,s),c=this.buildResourceTimeColsModel(a,n.dateProfileGenerator,l,r.datesAboveResources,n),u=this.buildSlatMetas(a.slotMinTime,a.slotMaxTime,r.slotLabelInterval,r.slotDuration,i),d=r.dayMinWidth,f=!d,h=d,v=r.dayHeaders&&p(Cd,{resources:l,dates:c.dayTableModel.headerDates,dateProfile:a,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),g=!1!==r.allDaySlot&&function(n){return p(of,Object.assign({},o.allDay,{dateProfile:a,resourceDayTableModel:c,nextDayThreshold:r.nextDayThreshold,tableMinWidth:n.tableMinWidth,colGroupNode:n.tableColGroupNode,renderRowIntro:f?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:t.forPrint},e.getAllDayMaxEventProps()))},m=function(n){return p(df,Object.assign({},o.timed,{dateProfile:a,axis:f,slotDuration:r.slotDuration,slatMetas:u,resourceDayTableModel:c,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:n.expandRows,forPrint:t.forPrint,onScrollTopRequest:e.handleScrollTopRequest}))};return h?this.renderHScrollLayout(v,g,m,c.colCnt,d,u,this.state.slatCoords):this.renderSimpleLayout(v,g,m)}}])}(ec);function hf(e,t,n,r,i){var a=xc(e,t);return r?new wd(a,n,i):new Ed(a,n,i)}var vf=Vo({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2024-07-12",deps:[eu,rf,Tc],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:ff,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}});function pf(e){for(var t=e.depth,n=e.hasChildren,r=e.isExpanded,i=e.onExpanderClick,a=[],o=0;o<t;o+=1)a.push(p("span",{className:"fc-icon"}));var s=["fc-icon"];return n&&(r?s.push("fc-icon-minus-square"):s.push("fc-icon-plus-square")),a.push(p("span",{className:"fc-datagrid-expander"+(n?"":" fc-datagrid-expander-placeholder"),onClick:i},p("span",{className:s.join(" ")}))),p.apply(void 0,[m,{}].concat(a))}var gf=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).refineRenderProps=Jt(yf),e.onExpanderClick=function(t){var n=e.props;n.hasChildren&&e.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:n.resource.id,isExpanded:!n.isExpanded})},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=t.colSpec,i=this.refineRenderProps({resource:t.resource,fieldValue:t.fieldValue,context:n});return p(ar,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":t.resource.id},renderProps:i,generatorName:r.isMain?"resourceLabelContent":void 0,customGenerator:r.cellContent,defaultGenerator:mf,classNameGenerator:r.cellClassNames,didMount:r.cellDidMount,willUnmount:r.cellWillUnmount},(function(n){return p("div",{className:"fc-datagrid-cell-frame",style:{height:t.innerHeight}},p("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},r.isMain&&p(pf,{depth:t.depth,hasChildren:t.hasChildren,isExpanded:t.isExpanded,onExpanderClick:e.onExpanderClick}),p(n,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))}))}}])}(Kn);function mf(e){return e.fieldValue||p(m,null," ")}function yf(e){return{resource:new fd(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}var bf=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=e.colSpec,r={groupValue:e.fieldValue,view:t.viewApi};return p(ar,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:n.cellContent,defaultGenerator:Cf,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(function(e){return p("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},p(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]}))}))}}])}(Kn);function Cf(e){return e.groupValue||p(m,null," ")}var Sf=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=e.resource,n=e.rowSpans,r=e.depth,i=Hd(t);return p("tr",{role:"row"},e.colSpecs.map((function(a,o){var s=n[o];if(0===s)return null;null==s&&(s=1);var l=a.field?i[a.field]:t.title||dd(t.id);return s>1?p(bf,{key:o,colSpec:a,fieldValue:l,rowSpan:s}):p(gf,{key:o,colSpec:a,resource:t,fieldValue:l,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))}}])}(Kn);Sf.addPropsEquality({rowSpans:Dt});var kf=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).innerInnerRef={current:null},e.onExpanderClick=function(){var t=e.props;e.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.id,isExpanded:!t.isExpanded})},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r={groupValue:t.group.value,view:n.viewApi},i=t.group.spec;return p("tr",{role:"row"},p(ar,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",n.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:t.spreadsheetColCnt},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:i.labelContent,defaultGenerator:_f,classNameGenerator:i.labelClassNames,didMount:i.labelDidMount,willUnmount:i.labelWillUnmount},(function(n){return p("div",{className:"fc-datagrid-cell-frame",style:{height:t.innerHeight}},p("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:e.innerInnerRef},p(pf,{depth:0,hasChildren:!0,isExpanded:t.isExpanded,onExpanderClick:e.onExpanderClick}),p(n,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))})))}}])}(Kn);function _f(e){return e.groupValue||p(m,null," ")}kf.addPropsEquality({group:function(e,t){return e.spec===t.spec&&e.value===t.value}});var Ef=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).resizerElRefs=new eo(e._handleColResizerEl.bind(e)),e.colDraggings={},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.colSpecs,r=t.superHeaderRendering,i=t.rowInnerHeights,a={view:this.context.viewApi},o=[];if(i=i.slice(),r){var s=i.shift();o.push(p("tr",{key:"row-super",role:"row"},p(ar,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:n.length},renderProps:a,generatorName:"resourceAreaHeaderContent",customGenerator:r.headerContent,defaultGenerator:r.headerDefault,classNameGenerator:r.headerClassNames,didMount:r.headerDidMount,willUnmount:r.headerWillUnmount},(function(e){return p("div",{className:"fc-datagrid-cell-frame",style:{height:s}},p(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]}))}))))}var l=i.shift();return o.push(p("tr",{key:"row",role:"row"},n.map((function(t,r){var i=r===n.length-1;return p(ar,{key:r,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:a,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(function(n){return p("div",{className:"fc-datagrid-cell-frame",style:{height:l}},p("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&p("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},p("span",{className:"fc-icon"})),p(n,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!i&&p("div",{className:"fc-datagrid-cell-resizer",ref:e.resizerElRefs.createRef(r)}))}))})))),p(m,null,o)}},{key:"_handleColResizerEl",value:function(e,t){var n=this.colDraggings;if(e){var r=this.initColResizing(e,parseInt(t,10));r&&(n[t]=r)}else{var i=n[t];i&&(i.destroy(),delete n[t])}}},{key:"initColResizing",value:function(e,t){var n=this.context,r=n.pluginHooks,i=n.isRtl,a=this.props.onColWidthChange,o=r.elementDraggingImpl;if(o){var s,l,c=new o(e);return c.emitter.on("dragstart",(function(){var n=Pe(Oe(e,"tr"),"th");l=n.map((function(e){return e.getBoundingClientRect().width})),s=l[t]})),c.emitter.on("dragmove",(function(e){l[t]=Math.max(s+e.deltaX*(i?-1:1),20),a&&a(l.slice())})),c.setAutoScrollEnabled(!1),c}return null}}])}(Kn),wf=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).refineRenderProps=Jt(pd),e.handleHeightChange=function(t,n){e.props.onHeightChange&&e.props.onHeightChange(Oe(t,"tr"),n)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.context,r=n.options,i=this.refineRenderProps({resource:t.resource,context:n});return p("tr",{ref:t.elRef},p(ar,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":t.resource.id},renderProps:i,generatorName:"resourceLaneContent",customGenerator:r.resourceLaneContent,classNameGenerator:r.resourceLaneClassNames,didMount:r.resourceLaneDidMount,willUnmount:r.resourceLaneWillUnmount},(function(n){return p("div",{className:"fc-timeline-lane-frame",style:{height:t.innerHeight}},p(n,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),p(rd,{dateProfile:t.dateProfile,tDateProfile:t.tDateProfile,nowDate:t.nowDate,todayRange:t.todayRange,nextDayThreshold:t.nextDayThreshold,businessHours:t.businessHours,eventStore:t.eventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,timelineCoords:t.timelineCoords,onHeightChange:e.handleHeightChange,resourceId:t.resource.id}))})))}}])}(Kn),Df=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=e.renderHooks,r={groupValue:e.groupValue,view:t.viewApi};return p("tr",{ref:e.elRef},p(ar,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:r,generatorName:"resourceGroupLaneContent",customGenerator:n.laneContent,classNameGenerator:n.laneClassNames,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},(function(t){return p(t,{elTag:"div",elStyle:{height:e.innerHeight}})})))}}])}(Kn),Rf=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context,n=e.rowElRefs,r=e.innerHeights;return p("tbody",null,e.rowNodes.map((function(i,a){if(i.group)return p(Df,{key:i.id,elRef:n.createRef(i.id),groupValue:i.group.value,renderHooks:i.group.spec,innerHeight:r[a]||""});if(i.resource){var o=i.resource;return p(wf,Object.assign({key:i.id,elRef:n.createRef(i.id)},e.splitProps[o.id],{resource:o,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:o.businessHours||e.fallbackBusinessHours,innerHeight:r[a]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))}}])}(Kn),Af=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).rootElRef={current:null},e.rowElRefs=new eo,e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.context;return p("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},p(Rf,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))}},{key:"componentDidMount",value:function(){this.updateCoords()}},{key:"componentDidUpdate",value:function(){this.updateCoords()}},{key:"componentWillUnmount",value:function(){this.props.onRowCoords&&this.props.onRowCoords(null)}},{key:"updateCoords",value:function(){var e,t=this.props;t.onRowCoords&&null!==t.clientWidth&&this.props.onRowCoords(new fa(this.rootElRef.current,(e=this.rowElRefs.currentMap,t.rowNodes.map((function(t){return e[t.id]}))),!1,!0))}}])}(Kn);var xf=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).computeHasResourceBusinessHours=Xt(Tf),e.resourceSplitter=new hd,e.bgSlicer=new $u,e.slatsRef={current:null},e.state={slatCoords:null},e.handleEl=function(t){t?e.context.registerInteractiveComponent(e,{el:t}):e.context.unregisterInteractiveComponent(e)},e.handleSlatCoords=function(t){e.setState({slatCoords:t}),e.props.onSlatCoords&&e.props.onSlatCoords(t)},e.handleRowCoords=function(t){e.rowCoords=t,e.props.onRowCoords&&e.props.onRowCoords(t)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=this.context,i=t.dateProfile,a=t.tDateProfile,o=Et(a.slotDuration).unit,s=this.computeHasResourceBusinessHours(t.rowNodes),l=this.resourceSplitter.splitProps(t),c=l[""],u=this.bgSlicer.sliceProps(c,i,a.isTimeScale?null:t.nextDayThreshold,r,i,r.dateProfileGenerator,a,r.dateEnv),d=n.slatCoords&&n.slatCoords.dateProfile===t.dateProfile?n.slatCoords:null;return p("div",{ref:this.handleEl,className:["fc-timeline-body",t.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:t.tableMinWidth}},p(Na,{unit:o},(function(n,o){return p(m,null,p(Xu,{ref:e.slatsRef,dateProfile:i,tDateProfile:a,nowDate:n,todayRange:o,clientWidth:t.clientWidth,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,onCoords:e.handleSlatCoords,onScrollLeftRequest:t.onScrollLeftRequest}),p(Ku,{businessHourSegs:s?null:u.businessHourSegs,bgEventSegs:u.bgEventSegs,timelineCoords:d,eventResizeSegs:u.eventResize?u.eventResize.segs:[],dateSelectionSegs:u.dateSelectionSegs,nowDate:n,todayRange:o}),p(Af,{rowNodes:t.rowNodes,dateProfile:i,tDateProfile:t.tDateProfile,nowDate:n,todayRange:o,splitProps:l,fallbackBusinessHours:s?t.businessHours:null,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,innerHeights:t.rowInnerHeights,slatCoords:d,onRowCoords:e.handleRowCoords,onRowHeightChange:t.onRowHeightChange}),r.options.nowIndicator&&d&&d.isDateInRange(n)&&p("div",{className:"fc-timeline-now-indicator-container"},p(bo,{elClasses:["fc-timeline-now-indicator-line"],elStyle:Vu(d.dateToCoord(n),r.isRtl),isAxis:!1,date:n})))})))}},{key:"queryHit",value:function(e,t){var n=this.rowCoords,r=n.topToIndex(t);if(null!=r){var i=this.props.rowNodes[r].resource;if(i){var a=this.slatsRef.current.positionToHit(e);if(a)return{dateProfile:this.props.dateProfile,dateSpan:{range:a.dateSpan.range,allDay:a.dateSpan.allDay,resourceId:i.id},rect:{left:a.left,right:a.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:a.dayEl,layer:0}}}return null}}])}(ma);function Tf(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var r=t.value.resource;if(r&&r.businessHours)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}var Mf=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t,arguments)).scrollGridRef={current:null},e.timeBodyScrollerElRef={current:null},e.spreadsheetHeaderChunkElRef={current:null},e.rootElRef={current:null},e.ensureScrollGridResizeId=0,e.state={resourceAreaWidthOverride:null},e.ensureScrollGridResize=function(){e.ensureScrollGridResizeId&&clearTimeout(e.ensureScrollGridResizeId),e.ensureScrollGridResizeId=setTimeout((function(){e.scrollGridRef.current.handleSizing(!1)}),Ra.SCROLLGRID_RESIZE_INTERVAL+1)},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.props,t=this.state,n=this.context,r=n.options,i=!e.forPrint&&ho(r),a=!e.forPrint&&vo(r),o=[{type:"header",key:"header",syncRowHeights:!0,isSticky:i,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:p("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:p("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];a&&o.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:fo},{key:"divider",outerContent:p("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:fo}]});var s=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return p(cu,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:s},{cols:[]},{cols:e.timeCols}],sections:o})}},{key:"forceTimeScroll",value:function(e){this.scrollGridRef.current.forceScrollLeft(2,e)}},{key:"forceResourceScroll",value:function(e){this.scrollGridRef.current.forceScrollTop(1,e)}},{key:"getResourceScroll",value:function(){return this.timeBodyScrollerElRef.current.scrollTop}},{key:"componentDidMount",value:function(){this.initSpreadsheetResizing()}},{key:"componentWillUnmount",value:function(){this.destroySpreadsheetResizing()}},{key:"initSpreadsheetResizing",value:function(){var e=this,t=this.context,n=t.isRtl,r=t.pluginHooks.elementDraggingImpl,i=this.spreadsheetHeaderChunkElRef.current;if(r){var a,o,s=this.rootElRef.current,l=this.spreadsheetResizerDragging=new r(s,".fc-resource-timeline-divider");l.emitter.on("dragstart",(function(){a=i.getBoundingClientRect().width,o=s.getBoundingClientRect().width})),l.emitter.on("dragmove",(function(t){var r=a+t.deltaX*(n?-1:1);r=Math.max(r,30),r=Math.min(r,o-30),e.setState({resourceAreaWidthOverride:r},e.ensureScrollGridResize)})),l.setAutoScrollEnabled(!1)}}},{key:"destroySpreadsheetResizing",value:function(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}])}(Kn),If=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e,n])).processColOptions=Xt(Nf),r.buildTimelineDateProfile=Xt(Iu),r.hasNesting=Xt(Pf),r.buildRowNodes=Xt(Td),r.layoutRef={current:null},r.rowNodes=[],r.renderedRowNodes=[],r.buildRowIndex=Xt(Of),r.handleSlatCoords=function(e){r.setState({slatCoords:e})},r.handleRowCoords=function(e){r.rowCoords=e,r.scrollResponder.update(!1)},r.handleMaxCushionWidth=function(e){r.setState({slotCushionMaxWidth:Math.ceil(e)})},r.handleScrollLeftRequest=function(e){r.layoutRef.current.forceTimeScroll(e)},r.handleScrollRequest=function(e){var t=r.rowCoords,n=r.layoutRef.current,i=e.rowId||e.resourceId;if(t){if(i){var a=r.buildRowIndex(r.renderedRowNodes)[i];if(null!=a){var o=null!=e.fromBottom?t.bottoms[a]-e.fromBottom:t.tops[a];n.forceResourceScroll(o)}}return!0}return null},r.handleColWidthChange=function(e){r.setState({spreadsheetColWidths:e})},r.state={resourceAreaWidth:n.options.resourceAreaWidth,spreadsheetColWidths:[]},r}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=this.context,i=r.options,a=r.viewSpec,o=this.processColOptions(r.options),s=o.superHeaderRendering,l=o.groupSpecs,c=o.orderSpecs,u=o.isVGrouping,d=o.colSpecs,f=this.buildTimelineDateProfile(t.dateProfile,r.dateEnv,i,r.dateProfileGenerator),h=this.rowNodes=this.buildRowNodes(t.resourceStore,l,c,u,t.resourceEntityExpansions,i.resourcesInitiallyExpanded),v=i.slotMinWidth,g=od(f,v||this.computeFallbackSlotMinWidth(f));return p(sr,{elClasses:["fc-resource-timeline",!this.hasNesting(h)&&"fc-resource-timeline-flat","fc-timeline",!1===i.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:a},p(Mf,{ref:this.layoutRef,forPrint:t.forPrint,isHeightAuto:t.isHeightAuto,spreadsheetCols:Hf(d,n.spreadsheetColWidths,""),spreadsheetHeaderRows:function(t){return p(Ef,{superHeaderRendering:s,colSpecs:d,onColWidthChange:e.handleColWidthChange,rowInnerHeights:t.rowSyncHeights})},spreadsheetBodyRows:function(t){return p(m,null,e.renderSpreadsheetRows(h,d,t.rowSyncHeights))},timeCols:g,timeHeaderContent:function(r){return p(Yu,{clientWidth:r.clientWidth,clientHeight:r.clientHeight,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,dateProfile:t.dateProfile,tDateProfile:f,slatCoords:n.slatCoords,rowInnerHeights:r.rowSyncHeights,onMaxCushionWidth:v?null:e.handleMaxCushionWidth})},timeBodyContent:function(n){return p(xf,{dateProfile:t.dateProfile,clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,expandRows:n.expandRows,tDateProfile:f,rowNodes:h,businessHours:t.businessHours,dateSelection:t.dateSelection,eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,resourceStore:t.resourceStore,nextDayThreshold:r.options.nextDayThreshold,rowInnerHeights:n.rowSyncHeights,onSlatCoords:e.handleSlatCoords,onRowCoords:e.handleRowCoords,onScrollLeftRequest:e.handleScrollLeftRequest,onRowHeightChange:n.reportRowHeightChange})}}))}},{key:"renderSpreadsheetRows",value:function(e,t,n){return e.map((function(e,r){return e.group?p(kf,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?p(Sf,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null}))}},{key:"componentDidMount",value:function(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}},{key:"getSnapshotBeforeUpdate",value:function(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}},{key:"componentDidUpdate",value:function(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)}},{key:"componentWillUnmount",value:function(){this.scrollResponder.detach()}},{key:"computeFallbackSlotMinWidth",value:function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}},{key:"queryResourceScroll",value:function(){var e=this.rowCoords,t=this.renderedRowNodes;if(e){for(var n=this.layoutRef.current,r=e.bottoms,i=n.getResourceScroll(),a={},o=0;o<r.length;o+=1){var s=t[o],l=r[o]-i;if(l>0){a.rowId=s.id,a.fromBottom=l;break}}return a}return null}}])}(Kn);function Of(e){for(var t={},n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function Hf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.map((function(e,r){return{className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n}}))}function Pf(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.group)return!0;if(r.resource&&r.hasChildren)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}function Nf(e){var t=e.resourceAreaColumns||[],n=null;t.length?e.resourceAreaHeaderContent&&(n={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDefault:function(){return"Resources"},headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});var r,i=[],a=[],o=[],s=!1,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var c=r.value;c.group?a.push(Object.assign(Object.assign({},c),{cellClassNames:c.cellClassNames||e.resourceGroupLabelClassNames,cellContent:c.cellContent||e.resourceGroupLabelContent,cellDidMount:c.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:c.cellWillUnmount||e.resourceGroupLaneWillUnmount})):i.push(c)}}catch(e){l.e(e)}finally{l.f()}var u=i[0];if(u.isMain=!0,u.cellClassNames=u.cellClassNames||e.resourceLabelClassNames,u.cellContent=u.cellContent||e.resourceLabelContent,u.cellDidMount=u.cellDidMount||e.resourceLabelDidMount,u.cellWillUnmount=u.cellWillUnmount||e.resourceLabelWillUnmount,a.length)o=a,s=!0;else{var d=e.resourceGroupField;d&&o.push({field:d,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}var f,h=[],v=_createForOfIteratorHelper(e.resourceOrder||vd);try{for(v.s();!(f=v.n()).done;){var p,g=f.value,m=!1,y=_createForOfIteratorHelper(o);try{for(y.s();!(p=y.n()).done;){var b=p.value;if(b.field===g.field){b.order=g.order,m=!0;break}}}catch(e){y.e(e)}finally{y.f()}m||h.push(g)}}catch(e){v.e(e)}finally{v.f()}return{superHeaderRendering:n,isVGrouping:s,groupSpecs:o,colSpecs:a.concat(i),orderSpecs:h}}If.addStateEquality({spreadsheetColWidths:Dt});Ae(".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}");var Wf=Vo({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2024-07-12",deps:[eu,rf,sd],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:If,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}});return Cs.push(ml,Yl,Tc,Lc,Zc,Cu,Ru,sd,rf,cf,vf,Wf),e.Calendar=Us,e.Draggable=vl,e.Internal=jo,e.JsonRequestError=Hi,e.ThirdPartyDraggable=gl,e.createPlugin=Vo,e.formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Fs(t),r=vn(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatRange=function(e,t,n){var r=Fs("object"==typeof n&&n?n:{}),i=vn(n),a=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return a&&o?r.formatRange(a.marker,o.marker,i,{forcedStartTzo:a.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:gn.defaultRangeSeparator}):""},e.globalLocales=Bo,e.globalPlugins=Cs,e.sliceEvents=function(e,t){return di(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="6.1.15",Object.defineProperty(e,"__esModule",{value:!0}),e}({});
/*!
FullCalendar Dayjs Plugin v6.1.15
Docs & License: https://fullcalendar.io/docs/dayjs-plugin
(c) 2024 Adam Shaw
*/FullCalendar.Dayjs=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n);function o(e,t,n,r){var i;return"local"===t?i=a.default(e):"UTC"===t?i=a.default.utc(e):a.default.tz?i=a.default.tz(e,t):(i=a.default.utc(e),null!=n&&i.utcOffset(n)),i.locale(r),i}function s(e){return function(t){return t?e.format(t):""}}function l(e){var t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){var n=l(t[2]);return{head:t[1],middle:n,tail:t[3],whole:t[1]+n.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function c(e,t,n,r){if(e.middle){var i=t(e.head),a=c(e.middle,t,n,r),o=t(e.tail),s=n(e.head),l=c(e.middle,t,n,r),u=n(e.tail);if(i===s&&o===u)return i+(a===l?a:a+r+l)+o}var d=t(e.whole),f=n(e.whole);return d===f?d:d+r+f}var u=t.createPlugin({name:"@fullcalendar/dayjs",cmdFormatter:function(e,t){var n=l(e);if(t.end){var r=o(t.start.array,t.timeZone,t.start.timeZoneOffset,t.localeCodes[0]),i=o(t.end.array,t.timeZone,t.end.timeZoneOffset,t.localeCodes[0]);return c(n,s(r),s(i),t.defaultSeparator)}return o(t.date.array,t.timeZone,t.date.timeZoneOffset,t.localeCodes[0]).format(n.whole)}});return t.globalPlugins.push(u),e.default=u,e.toDayjs=function(e,t){if(!(t instanceof r.CalendarImpl))throw new Error("must supply a CalendarApi instance");var n=t.getCurrentData().dateEnv;return o(e,n.timeZone,null,n.locale.codes[0])},e.toDayjsDuration=function(e){return a.default.duration(e)},Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,dayjs,FullCalendar.Internal);