HEX
Server: Apache
System: Linux 4801f1b1.ptr.provps.com 6.17.8-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 13 18:02:25 EST 2025 x86_64
User: nassaugo (1004)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nassaugo/www/wp-content/plugins/bookingpress-appointment-booking/js/bookingpress_calendar.js
var FullCalendar=function(e){"use strict";function t(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ya(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function g(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||t)}function C(e,t){for(var n in t)e[n]=t[n];return e}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function a(e,t,n){var r,o,i,a=arguments,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(3<arguments.length)for(n=[n],i=3;i<arguments.length;i++)n.push(a[i]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return S(e,s,r,o,null)}function S(e,t,n,r,o){o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Da.__v:o};return null!=Da.vnode&&Da.vnode(o),o}function D(e){return e.children}function R(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?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(e):null}function i(e){(!e.__d&&(e.__d=!0)&&wa.push(e)&&!n.__r++||ma!==Da.debounceRendering)&&((ma=Da.debounceRendering)||Ta)(n)}function n(){for(var e;n.__r=wa.length;)e=wa.sort(function(e,t){return e.__v.__b-t.__v.__b}),wa=[],e.some(function(e){var t,n,r,o,i;e.__d&&(o=(r=(t=e).__v).__e,(i=t.__P)&&(n=[],(e=C({},r)).__v=r.__v+1,k(i,r,e,t.__n,void 0!==i.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?E(r):o,r.__h),d(n,r),r.__e!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)))})}function w(e,t,n,r,o,i,a,s,l,u){var c,d,p,f,h,g,v,m=r&&r.__k||Ca,y=m.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(f=n.__k[c]=null==(f=t[c])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?S(null,f,null,null,f):Array.isArray(f)?S(D,{children:f},null,null,null):0<f.__b?S(f.type,f.props,f.key,null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=m[c])||p&&f.key==p.key&&f.type===p.type)m[c]=void 0;else for(d=0;d<y;d++){if((p=m[d])&&f.key==p.key&&f.type===p.type){m[d]=void 0;break}p=null}k(e,f,p=p||Ea,o,i,a,s,l,u),h=f.__e,(d=f.ref)&&p.ref!=d&&(v=v||[],p.ref&&v.push(p.ref,null,f),v.push(d,f.__c||h,f)),null!=h?(null==g&&(g=h),"function"==typeof f.type&&null!=f.__k&&f.__k===p.__k?f.__d=l=function e(t,n,r){var o,i;for(o=0;o<t.__k.length;o++)(i=t.__k[o])&&(i.__=t,n="function"==typeof i.type?e(i,n,r):T(r,i,i,t.__k,i.__e,n));return n}(f,l,e):l=T(e,f,p,m,h,l),u||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&p.__e==l&&l.parentNode!=e&&(l=E(p))}for(n.__e=g,c=y;c--;)null!=m[c]&&("function"==typeof n.type&&null!=m[c].__e&&m[c].__e==n.__d&&(n.__d=E(r,c+1)),function e(t,n,r){var o,i,a;if(Da.unmount&&Da.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||_(o,null,n)),r||"function"==typeof t.type||(r=null!=(i=t.__e)),t.__e=t.__d=void 0,null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){Da.__e(t,n)}o.base=o.__P=null}if(o=t.__k)for(a=0;a<o.length;a++)o[a]&&e(o[a],n,r);null!=i&&b(i)}(m[c],m[c]));if(v)for(c=0;c<v.length;c++)_(v[c],v[++c],v[++c])}function s(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){s(e,t)}):t.push(e)),t}function T(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function l(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ba.test(t)?n:n+"px"}function x(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||l(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||l(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=(t.toLowerCase()in e?t.toLowerCase():t).slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?c:u,i):e.removeEventListener(t,i?c:u,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function u(e){this.l[e.type+!1](Da.event?Da.event(e):e)}function c(e){this.l[e.type+!0](Da.event?Da.event(e):e)}function k(e,t,n,r,o,i,a,s,l){var u,c,d,p,f,h,g,v,m,y,S,E=t.type;if(void 0===t.constructor){null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=Da.__b)&&u(t);try{e:if("function"==typeof E){if(v=t.props,m=(u=E.contextType)&&r[u.__c],y=u?m?m.props.value:u.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:("prototype"in E&&E.prototype.render?t.__c=c=new E(v,y):(t.__c=c=new R(v,y),c.constructor=E,c.render=M),m&&m.sub(c),c.props=v,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=E.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=C({},c.__s)),C(c.__s,E.getDerivedStateFromProps(v,c.__s))),p=c.props,f=c.state,d)null==E.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==E.getDerivedStateFromProps&&v!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,y)||t.__v===n.__v){c.props=v,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),(c.__v=t).__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(v,c.__s,y),null!=c.componentDidUpdate&&c.__h.push(function(){c.componentDidUpdate(p,f,h)})}c.context=y,c.props=v,c.state=c.__s,(u=Da.__r)&&u(t),c.__d=!1,c.__v=t,c.__P=e,u=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=C(C({},r),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(p,f)),S=null!=u&&u.type===D&&null==u.key?u.props.children:u,w(e,Array.isArray(S)?S:[S],t,n,r,o,i,a,s,l),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),g&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,s){var l,u,c,d,p=n.props,f=t.props,h=t.type,g=0;if("svg"===h&&(o=!0),null!=i)for(;g<i.length;g++)if((l=i[g])&&(l===e||(h?l.localName==h:3==l.nodeType))){e=l,i[g]=null;break}if(null==e){if(null===h)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),i=null,s=!1}if(null===h)p===f||s&&e.data===f||(e.data=f);else{if(i=i&&Ca.slice.call(e.childNodes),u=(p=n.props||Ea).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!s){if(null!=i)for(p={},d=0;d<e.attributes.length;d++)p[e.attributes[d].name]=e.attributes[d].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){for(var i in n)"children"===i||"key"===i||i in t||x(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||x(e,i,t[i],n[i],r)}(e,f,p,o,s),c)t.__k=[];else if(g=t.props.children,w(e,Array.isArray(g)?g:[g],t,n,r,o&&"foreignObject"!==h,i,a,e.firstChild,s),null!=i)for(g=i.length;g--;)null!=i[g]&&b(i[g]);s||("value"in f&&void 0!==(g=f.value)&&(g!==e.value||"progress"===h&&!g)&&x(e,"value",g,p.value,!1),"checked"in f&&void 0!==(g=f.checked)&&g!==e.checked&&x(e,"checked",g,p.checked,!1))}return e}(n.__e,t,n,r,o,i,a,l);(u=Da.diffed)&&u(t)}catch(e){t.__v=null,!l&&null==i||(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),Da.__e(e,t,n)}}}function d(e,t){Da.__c&&Da.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Da.__e(e,t.__v)}})}function _(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Da.__e(e,n)}}function M(e,t,n){return this.constructor(e,n)}function r(e,t,n){var r,o,i;Da.__&&Da.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],k(t,e=(!r&&n||t).__k=a(D,null,[e]),o||Ea,Ea,void 0!==t.ownerSVGElement,!r&&n?[n]:!o&&t.firstChild?Ca.slice.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),d(i,e)}function o(){ka.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(p),t.__H.__h.forEach(f),t.__H.__h=[]}catch(e){t.__H.__h=[],Da.__e(e,t.__v)}}),ka=[]}function p(e){"function"==typeof e.__c&&e.__c()}function f(e){e.__c=e.__()}function h(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function v(e){return this.getChildContext=function(){return e.context},e.children}function m(e){var n=this,t=e.i;n.componentWillUnmount=function(){r(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),r(a(v,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}function y(){}function P(){return this.cancelBubble}function I(){return this.defaultPrevented}function N(){var e=Da.debounceRendering,t=[];for(Da.debounceRendering=function(e){t.push(e)},r(a(Ya,{}),document.createElement("div"));t.length;)t.shift()();Da.debounceRendering=e}function H(e){var r,e=(e={__c:r="__cC"+xa++,__:e=e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,t;return this.getChildContext||(n=[],((t={})[r]=this).getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(i)},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}}).Provider.__=e.Consumer.contextType=e,o=e.Provider;return e.Provider=function(){var n,e=this,t=!this.getChildContext,r=o.apply(this,arguments);return t&&(n=[],this.shouldComponentUpdate=function(t){e.props.value!==t.value&&n.forEach(function(e){e.context=t.value,e.forceUpdate()})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),r},e}function O(e){e.parentNode&&e.parentNode.removeChild(e)}function A(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(W(e,t))return e}while(null!==(e=e.parentElement||e.parentNode)&&1===e.nodeType);return null}function W(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function L(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a+=1)r.push(i[a]);return r}function U(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].children,a=0;a<i.length;a+=1){var s=i[a];t&&!W(s,t)||r.push(s)}return r}function B(e,t){for(var n in t)z(e,n,t[n])}function z(e,t,n){null==n?e.style[t]="":"number"==typeof n&&$a.test(t)?e.style[t]=n+"px":e.style[t]=n}function V(e){var t;return null!==(t=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==t?t:e.target}function F(e){return e.getRootNode?e.getRootNode():document}function G(e){e.preventDefault()}function j(n,r){return function(e){var t=A(e.target,n);t&&r.call(t,e,t)}}function q(e,t,n,r){var o=j(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}function Y(t,n){function r(e){n(e),Ja.forEach(function(e){t.removeEventListener(e,r)})}Ja.forEach(function(e){t.addEventListener(e,r)})}function Z(){return Qa+=1,String(Qa)}function X(){document.body.classList.add("fc-not-allowed")}function K(){document.body.classList.remove("fc-not-allowed")}function $(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",G)}function J(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",G)}function Q(e){e.addEventListener("contextmenu",G)}function ee(e){e.removeEventListener("contextmenu",G)}function te(e){var t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)"string"==typeof(n=o[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 ne(e,t,n){for(var r,o=0;o<n.length;o+=1)if(r=re(e,t,n[o]))return r;return 0}function re(e,t,n){return n.func?n.func(e,t):oe(e[n.field],t[n.field])*(n.order||1)}function oe(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 ie(e,t){e=String(e);return"000".substr(0,t-e.length)+e}function ae(e,t){return e-t}function se(e){return e%1==0}function le(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}function ue(e,t){e=Ce(e);return e[2]+=7*t,be(e)}function ce(e,t){e=Ce(e);return e[2]+=t,be(e)}function de(e,t){e=Ce(e);return e[6]+=t,be(e)}function pe(e,t){return fe(e,t)/7}function fe(e,t){return(t.valueOf()-e.valueOf())/864e5}function he(e,t){var n=me(e),r=me(t);return{years:0,months:0,days:Math.round(fe(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function ge(e,t){t=ve(e,t);return null!==t&&t%7==0?t/7:null}function ve(e,t){return Re(e)===Re(t)?Math.round(fe(e,t)):null}function me(e){return be([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function ye(e,t,n,r){r=be([t,0,1+function(e,t,n){n=7+t-n;return-(7+be([e,0,n]).getUTCDay()-t)%7+n-1}(t,n,r)]),e=me(e),e=Math.round(fe(r,e));return Math.floor(e/7)+1}function Se(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Ee(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 Ce(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function be(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function De(e){return!isNaN(e.valueOf())}function Re(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function we(e,t,n,r){return{instanceId:Z(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Te(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;0<=i;--i){var a=e[i][r];if("object"==typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=Te(o))}for(i=e.length-1;0<=i;--i){var s,l=e[i];for(s in l)s in n||(n[s]=l[s])}return n}function xe(e,t){var n,r={};for(n in e)t(e[n],n)&&(r[n]=e[n]);return r}function ke(e,t){var n,r={};for(n in e)r[n]=t(e[n],n);return r}function _e(e){for(var t={},n=0,r=e;n<r.length;n++)t[r[n]]=!0;return t}function Me(e){var t,n=[];for(t in e)n.push(e[t]);return n}function Pe(e,t){if(e===t)return!0;for(var n in e)if(ts.call(e,n)&&!(n in t))return!1;for(var n in t)if(ts.call(t,n)&&e[n]!==t[n])return!1;return!0}function Ie(e,t){var n,r=[];for(n in e)ts.call(e,n)&&(n in t||r.push(n));for(n in t)ts.call(t,n)&&e[n]!==t[n]&&r.push(n);return r}function Ne(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e&&function(e,t,n){if(e===t||!0===n)return!0;if(n)return n(e,t);return!1}(e[r],t[r],n[r])))return!1;for(var r in e)if(!(r in t))return!1;return!0}function He(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var a=e[i];void 0!==a&&o.push(a)}return o}function Oe(e,t,n){var r,o=n.dateEnv,i=n.pluginHooks,a=n.options,s=e.defs,l=xe(l=e.instances,function(e){return!s[e.defId].recurringDef});for(r in s){var u=s[r];if(u.recurringDef)for(var c=u.recurringDef.duration,d=0,p=function(e,t,n,r,o){r=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);e.allDay&&(r=r.map(me));return r}(u,c=c||(u.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration),t,o,i.recurringTypes);d<p.length;d++){var f=p[d],f=we(r,{start:f,end:o.add(f,c)});l[f.instanceId]=f}}return{defs:s,instances:l}}function Ae(e,t){var n;return"string"==typeof e?function(e){var t=rs.exec(e);if(t){e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?We(e):"number"==typeof e?We(((n={})[t||"milliseconds"]=e,n)):null}function We(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)},e=e.weeks||e.week;return e&&(t.days+=7*e,t.specifiedWeeks=!0),t}function Le(e){return e.years||e.months||e.milliseconds?0:e.days}function Ue(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Be(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function ze(e){return Ge(e)/864e5}function Ve(e){return Ge(e)/6e4}function Fe(e){return Ge(e)/1e3}function Ge(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function je(e,t){for(var n=null,r=0;r<ns.length;r+=1){var o=ns[r];if(t[o]){var i=e[o]/t[o];if(!se(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function qe(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 Ye(e,t,n){void 0===n&&(n=!1);e=(e=e.toISOString()).replace(".000","");return 10<(e=n?e.replace("T00:00:00Z",""):e).length&&(null==t?e=e.replace("Z",""):0!==t&&(e=e.replace("Z",Ke(t,!0)))),e}function Ze(e){return e.toISOString().replace(/T.*$/,"")}function Xe(e){return ie(e.getUTCHours(),2)+":"+ie(e.getUTCMinutes(),2)+":"+ie(e.getUTCSeconds(),2)}function Ke(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),e=Math.floor(r/60),r=Math.round(r%60);return t?n+ie(e,2)+":"+ie(r,2):"GMT"+n+e+(r?":"+ie(r,2):"")}function $e(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 Je(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function Qe(r,o,i){var a,s;return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a?Je(a,t)||(i&&i(s),e=r.apply(this,t),o&&o(e,s)||(s=e)):s=r.apply(this,t),a=t,s}}function et(n,r,o){var i,a,s=this;return function(e){var t;return i?Pe(i,e)||(o&&o(a),t=n.call(s,e),r&&r(t,a)||(a=t)):a=n.call(s,e),i=e,a}}function tt(i,a,s){var l=this,u=[],c=[];return function(e){for(var t,n=u.length,r=e.length,o=0;o<n;o+=1)e[o]?Je(u[o],e[o])||(s&&s(c[o]),t=i.apply(l,e[o]),a&&a(t,c[o])||(c[o]=t)):s&&s(c[o]);for(;o<r;o+=1)c[o]=i.apply(l,e[o]);return u=e,c.splice(r),c}}function nt(o,i,a){var s=this,l={},u={};return function(e){var t,n,r={};for(t in e)u[t]?Je(l[t],e[t])?r[t]=u[t]:(a&&a(u[t]),n=o.apply(s,e[t]),r[t]=i&&i(n,u[t])?u[t]:n):r[t]=o.apply(s,e[t]);return l=e,u=r}}function rt(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Ke(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r){var o=[];"narrow"===r?o.push(t):"short"===r&&o.push(t," ");o.push(n.simpleNumberFormat.format(e)),"rtl"===n.options.direction&&o.reverse();return o.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.locale,t.week)}:function(r,o,i){r=Sa({},r),o=Sa({},o),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}(r,o),r.timeZone="UTC";var a,s=new Intl.DateTimeFormat(i.locale.codes,r);{var e;o.omitZeroMinute&&(delete(e=Sa({},r)).minute,a=new Intl.DateTimeFormat(i.locale.codes,e))}return function(e){var t=e.marker,n=a&&!t.getUTCMinutes()?a:s;return function(e,t,n,r,o){e=e.replace(us,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(cs,function(){return n=!0,t}),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":Ke(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(ss,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(as,"").trim():"narrow"===r.meridiem?e=e.replace(as,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(as,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(as,function(e){return e.toLocaleLowerCase()}));return e=(e=e.replace(ls," ")).trim()}(n.format(t),e,r,o,i)}}(e,t,n)}function ot(e,t){t=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:t,year:t[0],month:t[1],day:t[2],hour:t[3],minute:t[4],second:t[5],millisecond:t[6]}}function it(e,t,n,r){e=ot(e,n.calendarSystem);return{date:e,start:e,end:t?ot(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}function at(e){return"object"==typeof e&&e?new ds(e):"string"==typeof e?new fs(e):"function"==typeof e?new gs(e):null}function st(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Pe(e,t):e===t}function lt(e){return Te(e,Cs)}function ut(e,t){var n,r={},o={};for(n in t)n in e&&(r[n]=t[n](e[n]));for(n in e)n in t||(o[n]=e[n]);return{refined:r,extra:o}}function ct(e){return e}function dt(e,t,n,r){for(var o=ht(),i=Dt(n),a=0,s=e;a<s.length;a++){var l=Ct(s[a],t,n,r,i);l&&pt(l,o)}return o}function pt(e,t){return(t=void 0===t?ht():t).defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function ft(e,t){t=e.instances[t];if(t){var n=e.defs[t.defId],e=vt(e,function(e){return t=n,e=e,Boolean(t.groupId&&t.groupId===e.groupId);var t});return e.defs[n.defId]=n,e.instances[t.instanceId]=t,e}return ht()}function ht(){return{defs:{},instances:{}}}function gt(e,t){return{defs:Sa(Sa({},e.defs),t.defs),instances:Sa(Sa({},e.instances),t.instances)}}function vt(e,t){var n=xe(e.defs,t),e=xe(e.instances,function(e){return n[e.defId]});return{defs:n,instances:e}}function mt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}function yt(e,t){var n,n=(n=e.constraint,t=t,Array.isArray(n)?dt(n,null,t,!0):"object"==typeof n&&n?dt([n],null,t,!0):null!=n?String(n):null);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=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 St(e){return e.reduce(Et,Rs)}function Et(e,t){return{display:(null!=t.display?t:e).display,startEditable:(null!=t.startEditable?t:e).startEditable,durationEditable:(null!=t.durationEditable?t:e).durationEditable,constraints:e.constraints.concat(t.constraints),overlap:("boolean"==typeof t.overlap?t: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)}}function Ct(e,t,n,r,o){var i=bt(e,n,o=void 0===o?Dt(n):o),a=i.refined,e=i.extra,o=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),i=function(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var a=e.allDay;return{allDay:a=null==a&&null==(a=t)&&null==(a=i.allDayGuess)?!1:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(a,o,n.dateEnv,n.pluginHooks.recurringTypes);if(i)return(s=Rt(a,e,t?t.sourceId:"",i.allDay,Boolean(i.duration),n)).recurringDef={typeId:i.typeId,typeData:i.typeData,duration:i.duration},{def:s,instance:null};var s,r=function(e,t,n,r){var o,i=e.allDay,a=null,s=!1,l=null,u=null!=e.start?e.start:e.date;if(u=n.dateEnv.createMarkerMeta(u))a=u.marker;else if(!r)return null;null!=e.end&&(o=n.dateEnv.createMarkerMeta(e.end));null==i&&(i=null!=t?t:(!u||u.isTimeUnspecified)&&(!o||o.isTimeUnspecified));i&&a&&(a=me(a));o&&(l=o.marker,i&&(l=me(l)),a&&l<=a&&(l=null));l?s=!0:r||(s=n.options.forceEventDuration||!1,l=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:i,hasEnd:s,range:{start:a,end:l},forcedStartTzo:u?u.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,o,n,r);return r?{def:s=Rt(a,e,t?t.sourceId:"",r.allDay,r.hasEnd,n),instance:we(s.defId,r.range,r.forcedStartTzo,r.forcedEndTzo)}:null}function bt(e,t,n){return ut(e,n=void 0===n?Dt(t):n)}function Dt(e){return Sa(Sa(Sa({},Ds),xs),e.pluginHooks.eventRefiners)}function Rt(e,t,n,r,o,i){for(var a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:Z(),sourceId:n,allDay:r,hasEnd:o,ui:yt(e,i),extendedProps:Sa(Sa({},e.extendedProps||{}),t)},s=0,l=i.pluginHooks.eventDefMemberAdders;s<l.length;s++){var u=l[s];Sa(a,u(e))}return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function wt(e){var t=Math.floor(fe(e.start,e.end))||1,e=me(e.start);return{start:e,end:ce(e,t)}}function Tt(e,t){void 0===t&&(t=Ae(0));var n,r=null,o=null;return e.end&&(o=me(e.end),(n=e.end.valueOf()-o.valueOf())&&n>=Ge(t)&&(o=ce(o,1))),e.start&&(r=me(e.start),o&&o<=r&&(o=ce(r,1))),{start:r,end:o}}function xt(e){e=Tt(e);return 1<fe(e.start,e.end)}function kt(e,t,n,r){return"year"===r?Ae(n.diffWholeYears(e,t),"year"):"month"===r?Ae(n.diffWholeMonths(e,t),"month"):he(e,t)}function _t(e,t){var n,r,o=[],i=t.start;for(e.sort(Mt),n=0;n<e.length;n+=1)(r=e[n]).start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function Mt(e,t){return e.start.valueOf()-t.start.valueOf()}function Pt(e,t){var n=e.start,r=e.end,e=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()))),e=null===n||null===r||n<r?{start:n,end:r}:e}function It(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 Nt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Ht(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Ot(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function At(e,t,n,r){var o,i,a,s={},l={},u={},c=[],d=[],p=Bt(e.defs,t);for(a in e.defs)"inverse-background"===(h=p[(S=e.defs[a]).defId]).display&&(S.groupId?(s[S.groupId]=[],u[S.groupId]||(u[S.groupId]=S)):l[a]=[]);for(o in e.instances){var f=e.instances[o],h=p[(S=e.defs[f.defId]).defId],g=f.range,v=!S.allDay&&r?Tt(g,r):g,g=Pt(v,n);g&&("inverse-background"===h.display?(S.groupId?s[S.groupId]:l[f.defId]).push(g):"none"!==h.display&&("background"===h.display?c:d).push({def:S,ui:h,instance:f,range:g,isStart:v.start&&v.start.valueOf()===g.start.valueOf(),isEnd:v.end&&v.end.valueOf()===g.end.valueOf()}))}for(i in s)for(var m=0,y=_t(s[i],n);m<y.length;m++){var S,E=y[m],h=p[(S=u[i]).defId];c.push({def:S,ui:h,instance:null,range:E,isStart:!1,isEnd:!1})}for(a in l)for(var C=0,b=_t(l[a],n);C<b.length;C++){E=b[C];c.push({def:e.defs[a],ui:p[a],instance:null,range:E,isStart:!1,isEnd:!1})}return{bg:c,fg:d}}function Wt(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function Lt(e,t){e.fcSeg=t}function Ut(e){return e.fcSeg||e.parentNode.fcSeg||null}function Bt(e,t){return ke(e,function(e){return zt(e,t)})}function zt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),St(n)}function Vt(e,n){e=e.map(Ft);return e.sort(function(e,t){return ne(e,t,n)}),e.map(function(e){return e._seg})}function Ft(e){var t=e.eventRange,n=t.def,r=(t.instance||t).range,t=r.start?r.start.valueOf():0,r=r.end?r.end.valueOf():0;return Sa(Sa(Sa({},n.extendedProps),n),{id:n.publicId,start:t,end:r,duration:r-t,allDay:Number(n.allDay),_seg:e})}function Gt(e,t){for(var n=t.pluginHooks.isDraggableTransformers,e=e.eventRange,r=e.def,o=e.ui,i=o.startEditable,a=0,s=n;a<s.length;a++)i=(0,s[a])(i,r,o,t);return i}function jt(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function qt(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Yt(e,t,n,r,o,i,a){var s=n.dateEnv,l=n.options,u=l.displayEventTime,c=l.displayEventEnd,d=e.eventRange.def,p=e.eventRange.instance;null==u&&(u=!1!==r),null==c&&(c=!1!==o);var f=p.range.start,n=p.range.end,l=i||e.start||e.eventRange.range.start,r=a||e.end||e.eventRange.range.end,o=me(f).valueOf()===me(l).valueOf(),e=me(de(n,-1)).valueOf()===me(de(r,-1)).valueOf();return u&&!d.allDay&&(o||e)?(l=o?f:l,r=e?n:r,c&&d.hasEnd?s.formatRange(l,r,t,{forcedStartTzo:i?null:p.forcedStartTzo,forcedEndTzo:a?null:p.forcedEndTzo}):s.format(l,t,{forcedTzo:i?null:p.forcedStartTzo})):""}function Zt(e,t,n){e=e.eventRange.range;return{isPast:e.end<(n||t.start),isFuture:e.start>=(n||t.end),isToday:t&&Ot(t,e.start)}}function Xt(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 Kt(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function $t(e,t,n){var r=function(e,t){var n=ut(e,ks),r=n.refined,e=n.extra,n=r.start?t.createMarkerMeta(r.start):null,t=r.end?t.createMarkerMeta(r.end):null,r=r.allDay;null==r&&(r=n&&n.isTimeUnspecified&&(!t||t.isTimeUnspecified));return Sa({range:{start:n?n.marker:null,end:t?t.marker:null},allDay:r},e)}(e,t),e=r.range;if(!e.start)return null;if(!e.end){if(null==n)return null;e.end=t.add(e.start,n)}return r}function Jt(e,t){return It(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 n in e)if(!(n in t))return!1;return!0}(e,t)}function Qt(e,t,n){return Sa(Sa({},en(e,t,n)),{timeZone:t.timeZone})}function en(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 tn(e,t,n){n.emitter.trigger("select",Sa(Sa({},nn(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function nn(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.dateSpanTransforms;i<a.length;i++){var s=a[i];Sa(o,s(e,t))}return Sa(o,(n=e,r=t.dateEnv,Sa(Sa({},en(n.range,r,n.allDay)),{allDay:n.allDay}))),o}function rn(e,t,n){var r=n.dateEnv,n=n.options,t=t;return t=e?(t=me(t),r.add(t,n.defaultAllDayEventDuration)):r.add(t,n.defaultTimedEventDuration)}function on(e,t,n,r){var o,i,a=Bt(e.defs,t),s=ht();for(o in e.defs){var l=e.defs[o];s.defs[o]=function(e,t,n,r){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var i=Sa(Sa(Sa({},e),o),{ui:Sa(Sa({},e.ui),o.ui)});n.extendedProps&&(i.extendedProps=Sa(Sa({},i.extendedProps),n.extendedProps));for(var a=0,s=r.pluginHooks.eventDefMutationAppliers;a<s.length;a++)(0,s[a])(i,n,r);!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0);return i}(l,a[o],n,r)}for(i in e.instances){var u=e.instances[i],l=s.defs[u.defId];s.instances[i]=function(e,t,n,r,o){var i=o.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,e=Sa({},e);a&&(e.range=wt(e.range));r.datesDelta&&n.startEditable&&(e.range={start:i.add(e.range.start,r.datesDelta),end:i.add(e.range.end,r.datesDelta)});r.startDelta&&n.durationEditable&&(e.range={start:i.add(e.range.start,r.startDelta),end:e.range.end});r.endDelta&&n.durationEditable&&(e.range={start:e.range.start,end:i.add(e.range.end,r.endDelta)});s&&(e.range={start:e.range.start,end:rn(t.allDay,e.range.start,o)});t.allDay&&(e.range={start:me(e.range.start),end:me(e.range.end)});e.range.end<e.range.start&&(e.range.end=rn(t.allDay,e.range.start,o));return e}(u,l,a[u.defId],n,r)}return s}function an(e,t,n){if(void 0===n&&(n=sn(t)),"string"==typeof e?o={url:e}:"function"==typeof e||Array.isArray(e)?o={events:e}:"object"==typeof e&&e&&(o=e),o){var r=ut(o,n),o=r.refined,n=r.extra,r=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;0<=r;--r){var o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}(o,t);if(r)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:Z(),sourceDefId:r.sourceDefId,meta:r.meta,ui:yt(o,t),extendedProps:n}}return null}function sn(e){return Sa(Sa(Sa({},Ds),Ps),e.pluginHooks.eventSourceRefiners)}function ln(e,t){return null==(e="function"==typeof e?e():e)?t.createNowMarker():t.createMarker(e)}function un(e){var t=e._def,n=e._instance;return{defs:((e={})[t.defId]=t,e),instances:n?((e={})[n.instanceId]=n,e):{}}}function cn(e,t,n){var r,o=e.defs,i=e.instances,a=[],s=n?n.instanceId:"";for(r in i){var l=i[r],u=o[l.defId];l.instanceId!==s&&a.push(new Hs(t,u,l))}return a}function dn(e){var t=Us.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(De(n)){e=null;return t[13]&&(e=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:e}}}return null}function pn(e){for(var t=0<e.length?e[0].code:"en",e=Fs.concat(e),n={en:Gs},r=0,o=e;r<o.length;r++){var i=o[r];n[i.code]=i}return{map:n,defaultCode:t}}function fn(e,t){return"object"!=typeof e||Array.isArray(e)?(r=t,t=[].concat((n=e)||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;0<o;--o){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(t,r)||Gs,hn(n,t,r)):hn(e.code,[e.code],e);var n,r}function hn(e,t,n){var r=Te([Gs,n],["buttonText"]);delete r.code;n=r.week;return delete r.week,{codeArg:e,codes:t,week:n,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function gn(e){var t=fn(e.locale||"en",pn([]).map);return new Bs(Sa(Sa({timeZone:ys.timeZone,calendarSystem:"gregory"},e),{locale:t}))}function vn(e,t){return dt(function(e){e=!0===e?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):"object"==typeof e&&e?[e]:[];return e=e.map(function(e){return Sa(Sa({},js),e)})}(e),null,t)}function mn(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function yn(e,t){t={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 t.left<t.right&&t.top<t.bottom&&t}function Sn(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function En(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 Cn(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function bn(e,t){return{left:e.left-t.left,top:e.top-t.top}}function Dn(){return Vs=null==Vs?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=0<e.querySelector("div").offsetHeight;return document.body.removeChild(e),t}():Vs}function Rn(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);r={"":St(r)};return n&&Sa(r,n),r}function wn(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Ot(r.activeRange,e)),isOther:Boolean(r&&!Ot(r.currentRange,e)),isToday:Boolean(t&&Ot(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?n<e:!!t&&e>=t.end)}}function Tn(e,t){var n=["fc-day","fc-day-"+es[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 xn(e,t){var n=["fc-slot","fc-slot-"+es[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}function kn(e,t){return void 0===t&&(t="day"),JSON.stringify({date:Ze(e),type:t})}function _n(){return Ks=null===Ks?function(){var e=document.createElement("div");B(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return O(e),t}():Ks}function Mn(){return Xs=Xs||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=Pn(e);return document.body.removeChild(e),t}()}function Pn(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function In(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=Pn(e),e=s.y-r-o,a={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:s.x-i-a,scrollbarLeft:0,scrollbarRight:0};return _n()&&"rtl"===n.direction?a.scrollbarLeft=e:a.scrollbarRight=e,t&&(a.paddingLeft=parseInt(n.paddingLeft,10)||0,a.paddingRight=parseInt(n.paddingRight,10)||0,a.paddingTop=parseInt(n.paddingTop,10)||0,a.paddingBottom=parseInt(n.paddingBottom,10)||0),a}function Nn(e,t,n){void 0===t&&(t=!1);n=n?e.getBoundingClientRect():Hn(e),e=In(e,t),n={left:n.left+e.borderLeft+e.scrollbarLeft,right:n.right-e.borderRight-e.scrollbarRight,top:n.top+e.borderTop,bottom:n.bottom-e.borderBottom-e.scrollbarBottom};return t&&(n.left+=e.paddingLeft,n.right-=e.paddingRight,n.top+=e.paddingTop,n.bottom-=e.paddingBottom),n}function Hn(e){e=e.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function On(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}function An(e,t,n){function r(){i||(i=!0,t.apply(this,arguments))}function o(){i||(i=!0,n&&n.apply(this,arguments))}var i=!1,e=e(r,o);e&&"function"==typeof e.then&&e.then(r,o)}function Wn(e,t,n,r,o,i,a,s,l,u,c,d,p){return{dateEnv:o,options:n,pluginHooks:a,emitter:u,dispatch:s,getCurrentData:l,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new El(e,u,Ae(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:p}}function Ln(e){var t=Object.create(this.prototype.propEquality);Sa(t,e),this.prototype.propEquality=t}function Un(e){var t=Object.create(this.prototype.stateEquality);Sa(t,e),this.prototype.stateEquality=t}function Bn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function zn(e){return{id:Z(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Vn(e,t){function i(e){for(var t,n=0,r=e;n<r.length;n++){var o=r[n];a[o.id]||(a[o.id]=!0,i(o.deps),t=o,s={reducers:(o=s).reducers.concat(t.reducers),isLoadingFuncs:o.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:o.contextInit.concat(t.contextInit),eventRefiners:Sa(Sa({},o.eventRefiners),t.eventRefiners),eventDefMemberAdders:o.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Sa(Sa({},o.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:o.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:o.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:o.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:o.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:o.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:o.dateSpanTransforms.concat(t.dateSpanTransforms),views:Sa(Sa({},o.views),t.views),viewPropsTransformers:o.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||o.isPropsValid,externalDefTransforms:o.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:o.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:o.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:o.calendarInteractions.concat(t.calendarInteractions),componentInteractions:o.componentInteractions.concat(t.componentInteractions),themeClasses:Sa(Sa({},o.themeClasses),t.themeClasses),eventSourceDefs:o.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||o.cmdFormatter,recurringTypes:o.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||o.namedTimeZonedImpl,initialView:o.initialView||t.initialView,elementDraggingImpl:o.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Sa(Sa({},o.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||o.scrollGridImpl,contentTypeHandlers:Sa(Sa({},o.contentTypeHandlers),t.contentTypeHandlers),listenerRefiners:Sa(Sa({},o.listenerRefiners),t.listenerRefiners),optionRefiners:Sa(Sa({},o.optionRefiners),t.optionRefiners),propSetHandlers:Sa(Sa({},o.propSetHandlers),t.propSetHandlers)})}}var a={},s={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};return e&&i(e),i(t),s}function Fn(e,t,n,r){if(t[e])return t[e];r=function(e,t,n,r){var o=n[e],i=r[e],a=function(e){return o&&null!==o[e]?o[e]:i&&null!==i[e]?i[e]:null},s=a("component"),l=a("superType"),a=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");a=Fn(l,t,n,r)}!s&&a&&(s=a.component);return s?{type:e,component:s,defaults:Sa(Sa({},a?a.defaults:{}),o?o.rawOptions:{}),overrides:Sa(Sa({},a?a.overrides:{}),i?i.rawOptions:{})}:null}(e,t,n,r);return r&&(t[e]=r),r}function Gn(t){return pl(Ul.Consumer,null,function(e){return pl(Bl,Sa({renderId:e},t))})}function jn(){var n,r,o=[];return function(e,t){return o=!r||!Pe(r,t)||e!==n?qn(n=e,r=t):o}}function qn(e,t){return mt(e="function"==typeof e?e(t):e)}function Yn(e,t){return"function"==typeof e?e(t,pl):e}function Zn(e){return ke(e,Xn)}function Xn(e){var i,t="function"==typeof e?{component:e}:e,e=t.component;return t.content&&(i=t,e=function(r){return pl(Dl.Consumer,null,function(n){return pl(ql,{viewSpec:n.viewSpec},function(e,o){var t=Sa(Sa({},r),{nextDayThreshold:n.options.nextDayThreshold});return pl(Al,{hookProps:t,classNames:i.classNames,content:i.content,didMount:i.didMount,willUnmount:i.willUnmount,elRef:e},function(e,t,n,r){return pl("div",{className:o.concat(t).join(" "),ref:e},r)})})})}),{superType:t.type,component:e,rawOptions:t}}function Kn(e,t,n,r){var e=Zn(e),o=Zn(t.views);return ke(function(e,t){var n,r={};for(n in e)Fn(n,r,e,t);for(n in t)Fn(n,r,e,t);return r}(e,o),function(e){return function(n,e,t,r,o){var i=n.overrides.duration||n.defaults.duration||r.duration||t.duration,a=null,s="",l="",u={};i&&(a=function(e){var t=JSON.stringify(e),n=Zl[t];void 0===n&&(n=Ae(e),Zl[t]=n);return n}(i))&&(i=qe(a),s=i.unit,1===i.value&&(u=e[l=s]?e[s].rawOptions:{}));e=function(e){var t=e.buttonText||{},e=n.defaults.buttonTextKey;return null!=e&&null!=t[e]?t[e]:null!=t[n.type]?t[n.type]:null!=t[l]?t[l]:null};return{type:n.type,component:n.component,duration:a,durationUnit:s,singleUnit:l,optionDefaults:n.defaults,optionOverrides:Sa(Sa({},u),n.overrides),buttonTextOverride:e(r)||e(t)||n.overrides.buttonText,buttonTextDefault:e(o)||n.defaults.buttonText||e(ys)||n.type}}(e,o,t,n,r)})}function $n(e,t,n){t=t?t.activeRange:null;return er({},function(e,t){var n=sn(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var i=0,a=r;i<a.length;i++){var s=an(a[i],t,n);s&&o.push(s)}return o}(e,n),t,n)}function Jn(e,t,n,r){var o,i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return er(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return o=t.sourceId,xe(e,function(e){return e.sourceId!==o});case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?tr(e,i,r):e;case"FETCH_EVENT_SOURCES":return nr(e,t.sourceIds?_e(t.sourceIds):rr(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var o=e[t];if(o&&n===o.latestFetchId)return Sa(Sa({},e),((n={})[t]=Sa(Sa({},o),{isFetching:!1,fetchRange:r}),n));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Qn(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function er(e,t,n,r){for(var o={},i=0,a=t;i<a.length;i++){var s=a[i];o[s.sourceId]=s}return n&&(o=tr(o,n,r)),Sa(Sa({},e),o)}function tr(e,r,o){return nr(e,xe(e,function(e){return n=r,or(t=e,e=o)?!e.options.lazyFetching||!t.fetchRange||t.isFetching||n.start<t.fetchRange.start||n.end>t.fetchRange.end:!t.latestFetchId;var t,n}),r,!1,o)}function nr(e,t,n,r,o){var i,a={};for(i in e){var s=e[i];t[i]?a[i]=function(n,r,e,o){var i=o.options,a=o.calendarApi,t=o.pluginHooks.eventSourceDefs[n.sourceDefId],s=Z();return t.fetch({eventSource:n,range:r,isRefetch:e,context:o},function(e){var t=e.rawEvents;i.eventSourceSuccess&&(t=i.eventSourceSuccess.call(a,t,e.xhr)||t),n.success&&(t=n.success.call(a,t,e.xhr)||t),o.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:s,fetchRange:r,rawEvents:t})},function(e){console.warn(e.message,e),i.eventSourceFailure&&i.eventSourceFailure.call(a,e),n.failure&&n.failure(e),o.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:s,fetchRange:r,error:e})}),Sa(Sa({},n),{isFetching:!0,latestFetchId:s})}(s,n,r,o):a[i]=s}return a}function rr(e,t){return xe(e,function(e){return or(e,t)})}function or(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ir(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){o=dt(function(e,t,n){n=n.options.eventDataTransform,t=t?t.eventDataTransform:null;t&&(e=ar(e,t));n&&(e=ar(e,n));return e}(o,t,i),t,i);return r&&(o=Oe(o,r,i)),gt(sr(e,t.sourceId),o)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Oe(t,n,r));return gt(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return gt(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Oe(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){var n,r,o=e.defs,i=e.instances,a={},s={};for(n in o)t.defs[n]||(a[n]=o[n]);for(r in i)!t.instances[r]&&a[i[r].defId]&&(s[r]=i[r]);return{defs:a,instances:s}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return sr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return vt(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return ht();default:return e}}function ar(e,t){if(t)for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}else n=e;return n}function sr(e,t){return vt(e,function(e){return e.sourceId!==t})}function lr(e,t,n,r,o){var i=[];return{headerToolbar:e.headerToolbar?ur(e.headerToolbar,e,t,n,r,o,i):null,footerToolbar:e.footerToolbar?ur(e.footerToolbar,e,t,n,r,o,i):null,viewsWithButtons:i}}function ur(e,t,n,r,o,i,h){return ke(e,function(e){return e=e,a=r,s=o,l=i,u=h,c="rtl"===t.direction,d=t.customButtons||{},p=n.buttonText||{},f=t.buttonText||{},(e?e.split(" "):[]).map(function(e){return e.split(",").map(function(e){return"title"===e?{buttonName:e}:((t=d[e])?(r=function(e){t.click&&t.click.call(e.target,e,e.target)},(o=a.getCustomButtonIconClass(t))||(o=a.getIconClass(e,c))||(i=t.text)):(n=s[e])?(u.push(e),r=function(){l.changeView(e)},(i=n.buttonTextOverride)||(o=a.getIconClass(e,c))||(i=n.buttonTextDefault)):l[e]&&(r=function(){l[e]()},(i=p[e])||(o=a.getIconClass(e,c))||(i=f[e])),{buttonName:e,buttonClick:r,buttonIcon:o,buttonText:i});var t,n,r,o,i})});var a,s,l,u,c,d,p,f})}function cr(e,t,n,r,o){var i,a=null;"GET"===(e=e.toUpperCase())?(i=n,t=t+(-1===t.indexOf("?")?"?":"&")+dr(i)):a=dr(n);var s=new XMLHttpRequest;s.open(e,t,!0),"GET"!==e&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){if(200<=s.status&&s.status<400){var e=!1,t=void 0;try{t=JSON.parse(s.responseText),e=!0}catch(e){}e?r(t,s):o("Failure parsing JSON",s)}else o("Request failed",s)},s.onerror=function(){o("Request failed",s)},s.send(a)}function dr(e){var t,n=[];for(t in e)n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n.join("&")}function pr(e,t){for(var n=Me(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],s=!1,l=0;l<n.length;l+=1)if(n[l]._raw===a){n.splice(l,1),s=!0;break}s||r.push(a)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var p=0,f=r;p<f.length;p++){var h=f[p];t.calendarApi.addEventSource(h)}}function fr(e,t){e.innerHTML=t}function hr(e,t){var n=Array.prototype.slice.call(e.childNodes),t=Array.prototype.slice.call(t);if(!Je(n,t)){for(var r=0,o=t;r<o.length;r++){var i=o[r];e.appendChild(i)}n.forEach(O)}}function gr(e,t,n){var r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange;return n.formatRange(r.start,r.end,at(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};e=ve(e.currentRange.start,e.currentRange.end);if(null!==e&&1<e)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function vr(e,t,n,r,o,i,a,s){a=fn(t||a.defaultCode,a.map);return new Bs({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:a,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function mr(e,t){return new(t.themeClasses[e.themeSystem]||Nl)(e)}function yr(e){return new(e.dateProfileGeneratorClass||Xl)(e)}function Sr(e,t,n){return new _s(e,t,n)}function Er(e){return ke(e,function(e){return e.ui})}function Cr(e,t,n){var r,o={"":t};for(r in e){var i=e[r];i.sourceId&&n[i.sourceId]&&(o[r]=n[i.sourceId])}return o}function br(e){var t=e.options;return{eventUiSingleBase:yt({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:yt({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Dr(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++)if((0,r[n])(e))return!0;return!1}function Rr(e){return vn(e.options.businessHours,e)}function wr(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}function Tr(e){return e.span.end}function xr(e){return e.index+":"+e.span.start}function kr(e){for(var t=[],n=0,r=e;n<r.length;n++){for(var o=r[n],i=[],a={span:o.span,entries:[o]},s=0,l=t;s<l.length;s++){var u=l[s];Mr(u.span,a.span)?a={entries:u.entries.concat(a.entries),span:_r(u.span,a.span)}:i.push(u)}i.push(a),t=i}return t}function _r(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Mr(e,t){var n=Math.max(e.start,t.start),t=Math.min(e.end,t.end);return n<t?{start:n,end:t}:null}function Pr(e,t,n){e.splice(t,0,n)}function Ir(e,t,n){var r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){var i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(a<t))return[i,1];r=i+1}}return[r,0]}function Nr(e){var t={};return t[e.component.uid]=e,t}function Hr(e){var t=ut(e,mu),e=t.refined,t=t.extra;return{startTime:e.startTime||null,duration:e.duration||null,create:null==e.create||e.create,sourceId:e.sourceId,leftoverProps:t}}function Or(e,t,n,r,o,i){var a=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),r=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,isTodayEnabled:a.isValid&&!Ot(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:r.isValid}}function Ar(e){return e.map(function(e){return new e})}function Wr(e,t){return at(!e||10<t?{weekday:"short"}:1<t?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}function Lr(e){return e.text}function Ur(e){e=me(e);return{start:e,end:ce(e,1)}}function Br(e,t,n){return e||Wr(t,n)}function zr(e,t){var n=e.activeRange;return t?n:{start:de(n.start,e.slotMinTime.milliseconds),end:de(n.end,e.slotMaxTime.milliseconds-864e5)}}function Vr(e,t,n){var r,o=e.mutatedEvents.instances;for(r in o)if(!Ht(t.validRange,o[r].range))return!1;return Gr({eventDrag:e},n)}function Fr(e,t,n){return!!Ht(t.validRange,e.range)&&Gr({dateSelection:e},n)}function Gr(e,t){var n=t.getCurrentData(),e=Sa({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||jr)(e,t)}function jr(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var o=t.getCurrentData(),i=e.eventDrag,a=i.mutatedEvents,s=a.defs,l=a.instances,u=Bt(s,i.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(u=ke(u,r));var c,d=function(e,t){return{defs:e.defs,instances:xe(e.instances,function(e){return!t[e.instanceId]})}}(e.eventStore,i.affectedEvents.instances),p=d.defs,f=d.instances,h=Bt(p,e.eventUiBases);for(c in l){var g=l[c],v=g.range,m=u[g.defId],y=s[g.defId];if(!qr(m.constraints,v,d,e.businessHours,t))return!1;var S,E=t.options.eventOverlap,C="function"==typeof E?E:null;for(S in f){var b=f[S];if(Nt(v,b.range)){if(!1===h[b.defId].overlap&&i.isEvent)return!1;if(!1===m.overlap)return!1;if(C&&!C(new Hs(t,p[b.defId],b),new Hs(t,y,g)))return!1}}for(var D=o.eventStore,R=0,w=m.allows;R<w.length;R++){var T=w[R],x=Sa(Sa({},n),{range:g.range,allDay:y.allDay}),k=D.defs[y.defId],_=D.instances[c],M=void 0;if(M=k?new Hs(t,k,_):new Hs(t,y),!T(nn(x,t),M))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var o=e.eventStore,i=o.defs,a=o.instances,s=e.dateSelection,l=s.range,u=t.getCurrentData().selectionConfig;r&&(u=r(u));if(!qr(u.constraints,l,o,e.businessHours,t))return!1;var c,e=t.options.selectOverlap,d="function"==typeof e?e:null;for(c in a){var p=a[c];if(Nt(l,p.range)){if(!1===u.overlap)return!1;if(d&&!d(new Hs(t,i[p.defId],p),null))return!1}}for(var f=0,h=u.allows;f<h.length;f++){var g=h[f],v=Sa(Sa({},n),s);if(!g(nn(v,t),null))return!1}return!0}(e,t,n,r))}function qr(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++)if(!function(e,t){for(var n=0,r=e;n<r.length;n++)if(Ht(r[n],t))return!0;return!1}(function(t,e,n,r,o){if("businessHours"===t)return Yr(Oe(r,e,o));if("string"==typeof t)return Yr(vt(n,function(e){return e.groupId===t}));if("object"==typeof t&&t)return Yr(Oe(t,e,o));return[]}(a[i],t,n,r,o),t))return;return 1}function Yr(e){var t,n=e.instances,r=[];for(t in n)r.push(n[t].range);return r}function Zr(e){for(var t=0,n=0,r=L(e,".fc-scrollgrid-shrink");n<r.length;n++)var o=r[n],t=Math.max(t,le(o));return Math.ceil(t)}function Xr(e,t){return e.liquid&&t.liquid}function Kr(e,t){return null!=t.maxHeight||Xr(e,t)}function $r(e,t,n){var r=n.expandRows;return"function"==typeof t.content?t.content(n):pl("table",{className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,pl("tbody",{},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function Jr(e,t){return Je(e,t,Pe)}function Qr(e,t){for(var n=[],r=0,o=e;r<o.length;r++)for(var i=o[r],a=i.span||1,s=0;s<a;s+=1)n.push(pl("col",{style:{width:"shrink"===i.width?eo(t):i.width||"",minWidth:i.minWidth||""}}));return pl.apply(void 0,g(["colgroup",{}],n))}function eo(e){return null==e?4:e}function to(e){for(var t=0,n=e;t<n.length;t++)if("shrink"===n[t].width)return!0;return!1}function no(e,t){t=["fc-scrollgrid",t.theme.getClass("table")];return e&&t.push("fc-scrollgrid-liquid"),t}function ro(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function oo(e){return pl("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function io(e){var t=e.stickyHeaderDates;return t=null==t||"auto"===t?"auto"===e.height||"auto"===e.viewHeight:t}function ao(e){var t=e.stickyFooterScrollbar;return t=null==t||"auto"===t?"auto"===e.height||"auto"===e.viewHeight:t}function so(e){return pl("div",{className:"fc-event-main-frame"},e.timeText&&pl("div",{className:"fc-event-time"},e.timeText),pl("div",{className:"fc-event-title-container"},pl("div",{className:"fc-event-title fc-sticky"},e.event.title||pl(gl,null,"�"))))}function lo(e){var t=e.date,n=e.dateEnv,r=wn(t,e.todayRange,null,e.dateProfile);return Sa(Sa(Sa({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,Ec):""}),e.extraProps)}function uo(e){return pl("div",{className:"fc-"+e})}function co(e){return e.event.title&&pl("div",{className:"fc-event-title"},e.event.title)}function po(e){return e.text}function fo(e){return e.text}function ho(e){if(e.allDayDate)return{start:e.allDayDate,end:ce(e.allDayDate,1)};e=e.hiddenSegs;return{start:go(e),end:e.reduce(mo).eventRange.range.end}}function go(e){return e.reduce(vo).eventRange.range.start}function vo(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function mo(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}function yo(e){Vc&&e.preventDefault()}function So(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Jt(e.dateSpan,t.dateSpan)}function Eo(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.datePointTransforms;i<a.length;i++){var s=a[i];Sa(o,s(e,t))}return Sa(o,(n=e,{date:(r=t.dateEnv).toDate(n.range.start),dateStr:r.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay})),o}function Co(e){var t,n,t=(t="event",n=vu.dataAttrPrefix,t=(n?n+"-":"")+t,e.getAttribute("data-"+t)||"");return Hr(t?JSON.parse(t):{create:!1})}function bo(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.row].push(a)}return n}function Do(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.firstCol].push(a)}return n}function Ro(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.row].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}function wo(e){return e.dayNumberText}function To(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}function xo(e){return pl(gl,null,pl("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&pl("div",{className:"fc-event-time"},e.timeText),pl("div",{className:"fc-event-title"},e.event.title||pl(gl,null,"�")))}function ko(e){for(var t=[],n=[],r=0,o=e;r<o.length;r++){var i=o[r];t.push(i.seg),i.isVisible||n.push(i.seg)}return{allSegs:t,invisibleSegs:n}}function _o(e,t,n,r,o,i,a){var s=new ip;s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=i,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var d=o[(D=e[c]).eventRange.instance.instanceId];null!=d?l.push({index:c,thickness:d,span:{start:D.firstCol,end:D.lastCol+1}}):u.push(D)}for(var n=s.addSegs(l),s=function(e,t,n){for(var r=function(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var o=0,i=e;o<i.length;o++)for(var a=i[o],r=a.span.start;r<a.span.end;r+=1)n[r].push(a);return n}(e,n.length),o=[],i=[],a=[],s=0;s<n.length;s+=1){for(var l=r[s],u=[],c=0,d=0,p=0,f=l;p<f.length;p++){var h=f[p],g=t[h.index];u.push({seg:Mo(g,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-c}),c=h.levelCoord+h.thickness}for(var v=[],m=d=c=0,y=l;m<y.length;m++){var h=y[m],g=t[h.index],S=1<h.span.end-h.span.start,E=h.span.start===s;d+=h.levelCoord-c,c=h.levelCoord+h.thickness,S?(d+=h.thickness,E&&v.push({seg:Mo(g,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):E&&(v.push({seg:Mo(g,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:d}),d=0)}o.push(u),i.push(v),a.push(d)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:a}}(s.toRects(),e,a),p=s.singleColPlacements,f=s.multiColPlacements,h=s.leftoverMargins,g=[],v=[],m=0,y=u;m<y.length;m++){f[(D=y[m]).firstCol].push({seg:D,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var S=D.firstCol;S<=D.lastCol;S+=1)p[S].push({seg:Mo(D,S,S+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(S=0;S<a.length;S+=1)g.push(0);for(var E=0,C=n;E<C.length;E++){var b=C[E],D=e[b.index],R=b.span;f[R.start].push({seg:Mo(D,R.start,R.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(S=R.start;S<R.end;S+=1)g[S]+=1,p[S].push({seg:Mo(D,S,S+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(S=0;S<a.length;S+=1)v.push(h[S]);return{singleColPlacements:p,multiColPlacements:f,moreCnts:g,moreMarginTops:v}}function Mo(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;var o=e.eventRange,i=o.range,r=Pt(i,{start:r[t].date,end:ce(r[n-1].date,1)});return Sa(Sa({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Sa(Sa({},o.ui),{durationEditable:!1}),instance:o.instance,range:r},isStart:e.isStart&&r.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===i.end.valueOf()})}function Po(e,t){if(!e.length)return[];var n=function(e){for(var t={},n=0,r=e;n<r.length;n++)for(var o=r[n],i=0,a=o;i<a.length;i++){var s=a[i];t[s.seg.eventRange.instance.instanceId]=s.absoluteTop}return t}(t);return e.map(function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}})}function Io(e){return e.eventRange.def.allDay}function No(e,t){t=new $u(e.renderRange,t);return new Qu(t,/year|month|week/.test(e.currentRangeUnit))}function Ho(o){var i=["fc-timegrid-slot","fc-timegrid-slot-label",o.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return pl(Dl.Consumer,null,function(e){if(!o.isLabeled)return pl("td",{className:i.join(" "),"data-time":o.isoTimeStr});var t=e.dateEnv,n=e.options,r=e.viewApi,e=null==n.slotLabelFormat?_p:Array.isArray(n.slotLabelFormat)?at(n.slotLabelFormat[0]):at(n.slotLabelFormat),e={level:0,time:o.time,date:t.toDate(o.date),view:r,text:t.format(o.date,e)};return pl(Al,{hookProps:e,classNames:n.slotLabelClassNames,content:n.slotLabelContent,defaultContent:Oo,didMount:n.slotLabelDidMount,willUnmount:n.slotLabelWillUnmount},function(e,t,n,r){return pl("td",{ref:e,className:i.concat(t).join(" "),"data-time":o.isoTimeStr},pl("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},pl("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:n},r)))})})}function Oo(e){return e.text}function Ao(e){return e.text}function Wo(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function Lo(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.col].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}function Uo(e){return e.shortText}function Bo(e,t,n){var r=new lu;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);var o,i,a,p,f,e=kr(r.addSegs(e)),r=(i=(o=r).entriesByLevel,a=Go(function(e,t){return e+":"+t},function(e,t){var n=zo(function(e,t,n){for(var r=e.levelCoords,o=e.entriesByLevel,i=o[t][n],a=r[t]+i.thickness,s=r.length,l=t;l<s&&r[l]<a;l+=1);for(;l<s;l+=1){for(var u=o[l],c=void 0,d=Ir(u,i.span.start,Tr),d=d[0]+d[1],p=d;(c=u[p])&&c.span.start<i.span.end;)p+=1;if(d<p)return{level:l,lateralStart:d,lateralEnd:p}}return null}(o,e,t),a),t=i[e][t];return[Sa(Sa({},t),{nextLevelNodes:n[0]}),t.thickness+n[1]]}),zo(i.length?{level:0,lateralStart:0,lateralEnd:i[0].length}:null,a)[0]);p=1,f=Go(function(e,t,n){return xr(e)},function(e,t,n){var r=e.nextLevelNodes,o=e.thickness,i=o+n,o=o/i,a=[];if(r.length)for(var s=0,l=r;s<l.length;s++){var u,c,d=l[s];void 0===u?u=(c=f(d,t,i))[0]:c=f(d,u,0),a.push(c[1])}else u=p;o*=u-t;return[u-o,Sa(Sa({},e),{thickness:o,nextLevelNodes:a})]});var s,l,r=r.map(function(e){return f(e,0,0)[1]});function u(e,t,n){for(var r=0,o=0,i=e;o<i.length;o++)var a=i[o],r=Math.max(l(a,t,n),r);return r}return{segRects:(s=[],l=Go(function(e,t,n){return xr(e)},function(e,t,n){var r=Sa(Sa({},e),{levelCoord:t,stackDepth:n,stackForward:0});return s.push(r),r.stackForward=u(e.nextLevelNodes,t+e.thickness,n+1)+1}),u(r,0,0),s),hiddenGroups:e}}function zo(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,o=e.lateralEnd,i=r,a=[];i<o;)a.push(t(n,i)),i+=1;return a.sort(Vo),[a.map(Fo),a[0][1]]}function Vo(e,t){return t[1]-e[1]}function Fo(e){return e[0]}function Go(r,o){var i={};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.apply(void 0,e);return n in i?i[n]:i[n]=o.apply(void 0,e)}}function jo(e,t,n,r){void 0===r&&(r=0);var o=[];if(n=void 0===n?null:n)for(var i=0;i<e.length;i+=1){var a=e[i],s=n.computeDateTop(a.start,t),a=Math.max(s+(r||0),n.computeDateTop(a.end,t));o.push({start:Math.round(s),end:Math.round(a)})}return o}function qo(e,t){var n=t.todayRange,r=t.nowDate,o=t.eventSelection,i=t.eventDrag,t=t.eventResize,a=(i?i.affectedInstances:null)||(t?t.affectedInstances:null)||{};return pl(gl,null,e.map(function(e){var t=e.eventRange.instance.instanceId;return pl("div",{key:t,style:{visibility:a[t]?"hidden":""}},pl(Xp,Sa({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===o,isShort:!1},Zt(e,n,r))))}))}function Yo(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function Zo(e,t){var n=t||e,t=je(e,n);return null===t&&(n=e,t=1),{snapDuration:n,snapsPerSlot:t}}function Xo(e,t,n){for(var r=[],o=0,i=e.headerDates;o<i.length;o++){var a=i[o];r.push({start:n.add(a,t.slotMinTime),end:n.add(a,t.slotMaxTime)})}return r}function Ko(e,t,n,r,o){for(var i=new Date(0),a=e,s=Ae(0),l=n||function(e){var t,n,r;for(t=mf.length-1;0<=t;--t)if(n=Ae(mf[t]),null!==(r=je(n,e))&&1<r)return n;return e}(r),u=[];Ge(a)<Ge(t);){var c=o.add(i,a),d=null!==je(s,l);u.push({date:c,time:a,key:c.toISOString(),isoTimeStr:Xe(c),isLabeled:d}),a=Ue(a,r),s=Ue(s,r)}return u}function $o(e,t){t=new $u(e.renderRange,t);return new Qu(t,!1)}function Jo(e){var t=e.navLinkData?{"data-navlink":e.navLinkData,tabIndex:0}:{};return pl(gl,null,e.text&&pl("a",Sa({className:"fc-list-day-text"},t),e.text),e.sideText&&pl("a",Sa({className:"fc-list-day-side-text"},t),e.sideText))}function Qo(e){var t=e.event,e=t.url;return pl("a",Sa({},e?{href:e}:{}),t.title)}function ei(e){return e.text}function ti(e){return e.text}function ni(e){for(var t=me(e.renderRange.start),n=e.renderRange.end,r=[],o=[];t<n;)r.push(t),o.push({start:t,end:ce(t,1)}),t=ce(t,1);return{dayDates:r,dayRanges:o}}function ri(e){return!1===e?null:at(e)}function oi(e,t){return e.map(function(e){return function(e,t){var n=e.htmlLink||null;n&&t&&(n=function(e,r){return e.replace(/(\?.*?)?(#|$)/,function(e,t,n){return(t?t+"&":"?")+r+n})}(n,"ctz="+t));return{id:e.id,title:e.summary,start:e.start.dateTime||e.start.date,end:e.end.dateTime||e.end.date,url:n,location:e.location,description:e.description,attachments:e.attachments||[],extendedProps:(e.extendedProperties||{}).shared||{}}}(e,t)})}function ii(e){var t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(si()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function ai(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(si()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}function si(){return Of=Of||function(){var e,t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",t.style.width="1px",t.style.height="1px",t.style.overflow="scroll",t.style.direction="rtl",t.style.fontSize="100px",t.innerHTML="A",document.body.appendChild(t),e=0<t.scrollLeft?"positive":(t.scrollLeft=1,0<t.scrollLeft?"reverse":"negative");return O(t),e}()}function li(){return Zf=null==Zf?function(){var e=document.createElement("div");e.style.position="sticky",document.body.appendChild(e);var t=window.getComputedStyle(e).position;return O(e),"sticky"===t}():Zf}function ui(e){e=L(e,".fc-scrollgrid-sync-inner").map(ci);return e.length?Math.max.apply(Math,e):0}function ci(e){return e.offsetHeight}function di(e){var t=pi(e.cols,"width"),n=pi(e.cols,"minWidth"),r=to(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&Boolean(t||n||r),cols:e.cols,width:e.width}}function pi(e,t){for(var n=0,r=0,o=e;r<o.length;r++){var i=o[r],a=i[t];"number"==typeof a&&(n+=a*(i.span||1))}return n}function fi(e,t){return Ne(e,t,ah)}function hi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new th(e,t)}function gi(e){e.destroy()}function vi(e,t){return new Kf(e,t)}function mi(e){e.destroy()}function yi(){for(var n,e,t=L(document.body,".fc-scroller-harness > .fc-scroller"),r=t.map(function(e){var t=window.getComputedStyle(e);return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}}),o=0,i=lh;o<i.length;o++)i[o].emitter.trigger("_beforeprint");yl(),n=r,t.forEach(function(e,t){e.style.overflowX="visible",e.style.overflowY="visible",e.style.marginBottom="",e.style.left=-n[t].scrollLeft+"px"}),uh.push(function(){var n;n=r,t.forEach(function(e,t){t=n[t];e.style.overflowX=t.overflowX,e.style.overflowY=t.overflowY,e.style.marginBottom=t.marginBottom,e.style.left="",e.scrollLeft=t.scrollLeft,e.scrollTop=t.scrollTop})}),uh.push(((e=L(document.body,".fc-scrollgrid")).forEach(Ei),function(){return e.forEach(Ci)}))}function Si(){for(var e=0,t=lh;e<t.length;e++)t[e].emitter.trigger("_afterprint");for(yl();uh.length;)uh.shift()()}function Ei(e){var t=e.getBoundingClientRect().width;(!e.classList.contains("fc-scrollgrid-collapsible")||t<vu.COLLAPSIBLE_WIDTH_THRESHOLD)&&(e.style.width=t+"px")}function Ci(e){e.style.width=""}function bi(e,t,n,r){var o={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};!function(e,t,n){t=t.currentRange;e.labelInterval&&n.countDurationsBetween(t.start,t.end,e.labelInterval)>vu.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null);e.slotDuration&&n.countDurationsBetween(t.start,t.end,e.slotDuration)>vu.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null);e.labelInterval&&e.slotDuration&&((null===(t=je(e.labelInterval,e.slotDuration))||t<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null))}(o,e,t),wi(o,e,t),function(e,t,n){var r=t.currentRange,o=e.slotDuration;if(!o){for(var i=wi(e,t,n),a=0,s=hh;a<s.length;a++){var l=Ae(s[a]),u=je(i,l);if(null!==u&&1<u&&u<=dh){o=l;break}}o&&(r=n.countDurationsBetween(r.start,r.end,o),ph<r&&(o=null)),o=o||i,e.slotDuration=o}}(o,e,t);var i=n.slotLabelFormat,a=Array.isArray(i)?i:null!=i?[i]:function(e,t,n,r){var o,i,a=e.labelInterval,e=qe(a).unit,s=r.weekNumbers,l=o=i=null;"week"!==e||s||(e="day");switch(e){case"year":l={year:"numeric"};break;case"month":1<Ti("years",t,n)&&(l={year:"numeric"}),o={month:"short"};break;case"week":1<Ti("years",t,n)&&(l={year:"numeric"}),o={week:"narrow"};break;case"day":1<Ti("years",t,n)?l={year:"numeric",month:"long"}:1<Ti("months",t,n)&&(l={month:"long"}),s&&(o={week:"short"}),i={weekday:"narrow",day:"numeric"};break;case"hour":s&&(l={week:"short"}),1<Ti("days",t,n)&&(o={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),i={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":Ve(a)/60>=dh?(l={hour:"numeric",meridiem:"short"},o=function(e){return":"+ie(e.date.minute,2)}):l={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":Fe(a)/60>=dh?(l={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},o=function(e){return":"+ie(e.date.second,2)}):l={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":l={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},o=function(e){return"."+ie(e.millisecond,3)}}return[].concat(l||[],o||[],i||[])}(o,e,t,n);o.headerFormats=a.map(at),o.isTimeScale=Boolean(o.slotDuration.milliseconds);i=null;o.isTimeScale||(a=qe(o.slotDuration).unit,/year|month|week/.test(a)&&(i=a)),o.largeUnit=i,o.emphasizeWeeks=1===Le(o.slotDuration)&&2<=Ti("weeks",e,t)&&!n.businessHours;n=n.snapDuration;n&&(s=Ae(n),l=je(o.slotDuration,s)),null==l&&(s=o.slotDuration,l=1),o.snapDuration=s,o.snapsPerSlot=l;var s=Ge(e.slotMaxTime)-Ge(e.slotMinTime),l=Di(e.renderRange.start,o,t),u=Di(e.renderRange.end,o,t);o.isTimeScale&&(l=t.add(l,e.slotMinTime),u=t.add(ce(u,-1),e.slotMaxTime)),o.timeWindowMs=s,o.normalizedRange={start:l,end:u};for(var c=[],d=l;d<u;)Ri(d,o,e,r)&&c.push(d),d=t.add(d,o.slotDuration);o.slotDates=c;for(var p=-1,f=0,h=[],g=[],d=l;d<u;)Ri(d,o,e,r)?(h.push(p+=1),g.push(f)):h.push(p+.5),d=t.add(d,o.snapDuration),f+=1;return o.snapDiffToIndex=h,o.snapIndexToDiff=g,o.snapCnt=p+1,o.slotCnt=o.snapCnt/o.snapsPerSlot,o.isWeekStarts=function(e,t){for(var n=e.slotDates,r=e.emphasizeWeeks,o=null,i=[],a=0,s=n;a<s.length;a++){var l=s[a],u=t.computeWeekNumber(l),l=r&&null!==o&&o!==u;o=u,i.push(l)}return i}(o,t),o.cellRows=function(e,t){for(var n=e.slotDates,r=e.headerFormats,o=r.map(function(){return[]}),i=Le(e.slotDuration),a=7===i?"week":1===i?"day":null,s=r.map(function(e){return e.getLargestUnit?e.getLargestUnit():null}),l=0;l<n.length;l+=1)for(var u=n[l],c=e.isWeekStarts[l],d=0;d<r.length;d+=1){var p,f=r[d],h=o[d],g=h[h.length-1],v=d===r.length-1,m=1<r.length&&!v,y=null,v=s[d]||(v?a:null);m?(p=t.format(u,f),g&&g.text===p?g.colspan+=1:y=xi(u,p,v)):!g||se(t.countDurationsBetween(e.normalizedRange.start,u,e.labelInterval))?(p=t.format(u,f),y=xi(u,p,v)):g.colspan+=1,y&&(y.weekStart=c,h.push(y))}return o}(o,t),o.slotsPerLabel=je(o.labelInterval,o.slotDuration),o}function Di(e,t,n){return t.isTimeScale||(e=me(e),t.largeUnit&&(e=n.startOf(e,t.largeUnit))),e}function Ri(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){r=me(e);return((e.valueOf()-r.valueOf()-Ge(n.slotMinTime))%864e5+864e5)%864e5<t.timeWindowMs}return!0}function wi(e,t,n){var r=t.currentRange;if(!(c=e.labelInterval)){if(e.slotDuration){for(var o=0,i=hh;o<i.length;o++){var a=Ae(i[o]),s=je(a,e.slotDuration);if(null!==s&&s<=dh){c=a;break}}c=c||e.slotDuration}else for(var l=0,u=hh;l<u.length;l++){var c=Ae(u[l]),d=n.countDurationsBetween(r.start,r.end,c);if(ch<=d)break}e.labelInterval=c}return c}function Ti(e,t,n){var r=t.currentRange,t=null;return"years"===e?t=n.diffWholeYears(r.start,r.end):"months"===e||"weeks"===e?t=n.diffWholeMonths(r.start,r.end):"days"===e&&(t=ve(r.start,r.end)),t||0}function xi(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}function ki(e){return e.text}function _i(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}function Mi(e,t,n){n=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(n<0)return 0;if(n>=t.snapDiffToIndex.length)return t.snapCnt;e=Math.floor(n),t=t.snapDiffToIndex[e];return se(t)?t+=n-e:t=Math.ceil(t),t}function Pi(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function Ii(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}function Ni(e,t,n){var r=[];if(n)for(var o=0,i=e;o<i.length;o++){var a=i[o],s=n.rangeToCoords(a),a=Math.round(s.start),s=Math.round(s.end);s-a<t&&(s=a+t),r.push({start:a,end:s})}return r}function Hi(e,t,n){if(!e.length||!t)return[];var r=function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o.seg;Array.isArray(i)||(t[i.eventRange.instance.instanceId]=o.top)}return t}(n);return e.map(function(e){return{seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]}})}function Oi(e,t){return[{span:e.slotCnt,minWidth:t||1}]}function Ai(e,t){var n=e.resourceEditable;return null!=n||null==(n=(e=e.sourceId&&t.getCurrentData().eventSources[e.sourceId])?e.extendedProps.resourceEditable:n)&&null==(n=t.options.eventResourceEditable)&&(n=t.options.editable),n}function Wi(e,t,n,r){if(t){var o=function(e,t){var n,r={};for(n in e)for(var o=e[n],i=0,a=t[o.defId].resourceIds;i<a.length;i++){var s=a[i];r[s]=!0}return r}((t=n.instances,i=r,xe(t,function(e){return Nt(e.range,i)})),n.defs);return Sa(o,function(e,t){var n,r={};for(n in e)for(var o=void 0;(o=t[n])&&(n=o.parentId);)r[n]=!0;return r}(o,e)),xe(e,function(e,t){return o[t]})}var i;return e}function Li(e){return ke(e,function(e){return e.ui})}function Ui(e,n,r){return ke(e,function(e,t){return t?function(e,t,n){for(var r=[],o=0,i=t.resourceIds;o<i.length;o++){var a=i[o];n[a]&&r.unshift(n[a])}return r.unshift(e),St(r)}(e,n[t],r):e})}function Bi(e){ag.push(e)}function zi(e){return ag[e]}function Vi(e){if("string"==typeof e?n={url:e}:"function"==typeof e||Array.isArray(e)?n={resources:e}:"object"==typeof e&&e&&(n=e),n){var t=ut(n,sg),n=t.refined;!function(e){for(var t in e)console.warn("Unknown resource prop '"+t+"'")}(t.extra);t=function(e){for(var t=ag,n=t.length-1;0<=n;--n){var r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}(n);if(t)return{_raw:e,sourceId:Z(),sourceDefId:t.sourceDefId,meta:t.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Fi(e,t,n){var r,o,i,a,s=n.options,l=n.dateProfile;if(!e||!t)return Gi(s.initialResources||s.resources,l.activeRange,s.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return Gi(t.resourceSourceInput,l.activeRange,s.refetchResourcesOnNavigate,n);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r=e,o=l.activeRange,i=s.refetchResourcesOnNavigate,a=n,!i||function(e){return Boolean(zi(e.sourceDefId).ignoreRange)}(r)||r.fetchRange&&It(r.fetchRange,o)?r:ji(r,o,a);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return r=e,o=t.fetchId,a=t.fetchRange,o!==r.latestFetchId?r:Sa(Sa({},r),{isFetching:!1,fetchRange:a});case"REFETCH_RESOURCES":return ji(e,l.activeRange,n);default:return e}}function Gi(e,t,n,r){return e?ji(Vi(e),n?t:null,r):null}function ji(e,t,n){var r=zi(e.sourceDefId),o=Z();return r.fetch({resourceSource:e,range:t,context:n},function(e){n.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:t,rawResources:e.rawResources})},function(e){n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:t,error:e})}),Sa(Sa({},e),{isFetching:!0,latestFetchId:o})}function qi(e,t,n,r){void 0===t&&(t="");var o=ut(e,lg),e=o.refined,o=o.extra,i={id:e.id||"_fc:"+Z(),parentId:e.parentId||t,title:e.title||"",businessHours:e.businessHours?vn(e.businessHours,r):null,ui:yt({editable:e.eventEditable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:e.eventOverlap,allow:e.eventAllow,classNames:e.eventClassNames,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},r),extendedProps:Sa(Sa({},o),e.extendedProps)};if(Object.freeze(i.ui.classNames),Object.freeze(i.extendedProps),!n[i.id]&&(n[i.id]=i,e.children))for(var a=0,s=e.children;a<s.length;a++)qi(s[a],i.id,n,r);return i}function Yi(e){return 0===e.indexOf("_fc:")?"":e}function Zi(e,t,n,r){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return function(e,t,n,r,o){if(r.latestFetchId!==n)return e;for(var i={},a=0,s=t;a<s.length;a++)qi(s[a],"",i,o);return i}(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return o=t.resourceHash,Sa(Sa({},e),o);case"REMOVE_RESOURCE":return function(e,t){var n,r=Sa({},e);for(n in delete r[t],r)r[n].parentId===t&&(r[n]=Sa(Sa({},r[n]),{parentId:""}));return r}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,n,r){var o,i=e[t];if(i)return Sa(Sa({},e),((o={})[t]=Sa(Sa({},i),((i={})[n]=r,i)),o));return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,n,r){var o,i=e[t];if(i)return Sa(Sa({},e),((o={})[t]=Sa(Sa({},i),{extendedProps:Sa(Sa({},i.extendedProps),((i={})[n]=r,i))}),o));return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var o}function Xi(e,t){return Sa(Sa({},t),{constraints:(r=e,t.constraints.map(function(e){var t=e.defs;if(t)for(var n in t){n=t[n].resourceIds;if(n.length&&-1===n.indexOf(r))return!1}return e}))});var r}function Ki(i){return pl(Dl.Consumer,null,function(e){var t=e.options,e={resource:new ug(e,i.resource),date:i.date?e.dateEnv.toDate(i.date):null,view:e.viewApi},o={"data-resource-id":i.resource.id,"data-date":i.date?Ze(i.date):void 0};return pl(Al,{hookProps:e,classNames:t.resourceLabelClassNames,content:t.resourceLabelContent,defaultContent:$i,didMount:t.resourceLabelDidMount,willUnmount:t.resourceLabelWillUnmount},function(e,t,n,r){return i.children(e,t,o,n,r)})})}function $i(e){return e.resource.title||e.resource.id}function Ji(e,t,n){return e||Wr(t,n)}function Qi(e,t){return ea(e,[],t,!1,{},!0).map(function(e){return e.resource})}function ea(e,t,n,r,o,i){var a=[];return function e(t,n,r,o,i,a,s){for(var l=0;l<t.length;l+=1){var u,c,d,p,f,h=t[l],g=h.group;g?r?(u=n.length,c=o.length,e(h.children,n,r,o.concat(0),i,a,s),u<n.length&&(d=n[u],(d.rowSpans=d.rowSpans.slice())[c]=n.length-u)):(p=g.spec.field+":"+g.value,f=null!=a[p]?a[p]:s,n.push({id:p,group:g,isExpanded:f}),f&&e(h.children,n,r,o,i+1,a,s)):h.resource&&(p=h.resource.id,f=null!=a[p]?a[p]:s,n.push({id:p,rowSpans:o,depth:i,isExpanded:f,hasChildren:Boolean(h.children.length),resource:h.resource,resourceFields:h.resourceFields}),f&&e(h.children,n,r,o,i+1,a,s))}}(function(e,t,n,r){var o,i=function(e,t){var n,r={};for(n in e){var o=e[n];r[n]={resource:o,resourceFields:ra(o),children:[]}}for(n in e){var i;!(o=e[n]).parentId||(i=r[o.parentId])&&na(r[n],i.children,t)}return r}(e,r),a=[];for(o in i){var s=i[o];s.resource.parentId||!function e(t,n,r,o,i,a){{var s;r.length&&(-1===i||o<=i)?(s=ta(t,n,r[0]),e(t,s.children,r.slice(1),o+1,i,a)):na(t,n,a)}}(s,a,n,0,t,r)}return a}(e,r?-1:1,t,n),a,r,[],0,o,i),a}function ta(e,t,n){var r,o,i,a=e.resourceFields[n.field];if(n.order){for(o=0;o<t.length;o+=1)if((i=t[o]).group){var s=oe(a,i.group.value)*n.order;if(0==s){r=i;break}if(s<0)break}}else for(o=0;o<t.length;o+=1)if((i=t[o]).group&&a===i.group.value){r=i;break}return r||t.splice(o,0,r={group:{value:a,spec:n},children:[]}),r}function na(e,t,n){for(var r=0;r<t.length;r+=1)if(0<ne(t[r].resourceFields,e.resourceFields,n))break;t.splice(r,0,e)}function ra(e){e=Sa(Sa(Sa({},e.extendedProps),e.ui),e);return delete e.ui,delete e.extendedProps,e}function oa(e,t){return e.spec===t.spec&&e.value===t.value}function ia(e,t,n,r,o){t=No(e,t);return new(r?xg:Rg)(t,n,o)}function aa(e,t,n,r,o){t=$o(e,t);return new(r?xg:Rg)(t,n,o)}function sa(e){for(var t=e.depth,n=e.hasChildren,r=e.isExpanded,o=e.onExpanderClick,i=[],a=0;a<t;a+=1)i.push(pl("span",{className:"fc-icon"}));e=["fc-icon"];return n&&(r?e.push("fc-icon-minus-square"):e.push("fc-icon-plus-square")),i.push(pl("span",{className:"fc-datagrid-expander"+(n?"":" fc-datagrid-expander-placeholder"),onClick:o},pl("span",{className:e.join(" ")}))),pl.apply(void 0,g([gl,{}],i))}function la(e){return{resource:new ug(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}function ua(e){return e.fieldValue||pl(gl,null,"�")}function ca(e){return e.groupValue||pl(gl,null,"�")}function da(e){return e.groupValue||pl(gl,null,"�")}function pa(e){return{resource:new ug(e.context,e.resource)}}function fa(e){for(var t=0,n=e;t<n.length;t++){var r=n[t].resource;if(r&&r.businessHours)return!0}return!1}function ha(e){for(var t={},n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function ga(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.group)return!0;if(r.resource&&r.hasChildren)return!0}return!1}function va(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||"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});for(var r=[],o=[],i=[],a=!1,s=0,l=t;s<l.length;s++){var u=l[s];u.group?o.push(Sa(Sa({},u),{cellClassNames:u.cellClassNames||e.resourceGroupLabelClassNames,cellContent:u.cellContent||e.resourceGroupLabelContent,cellDidMount:u.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:u.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(u)}t=r[0];t.isMain=!0,t.cellClassNames=t.cellClassNames||e.resourceLabelClassNames,t.cellContent=t.cellContent||e.resourceLabelContent,t.cellDidMount=t.cellDidMount||e.resourceLabelDidMount,t.cellWillUnmount=t.cellWillUnmount||e.resourceLabelWillUnmount,o.length?(i=o,a=!0):(t=e.resourceGroupField)&&i.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount});for(var c=[],d=0,p=e.resourceOrder||hg;d<p.length;d++){for(var f=p[d],h=!1,g=0,v=i;g<v.length;g++){var m=v[g];if(m.field===f.field){m.order=f.order,h=!0;break}}h||c.push(f)}return{superHeaderRendering:n,isVGrouping:a,groupSpecs:i,colSpecs:o.concat(r),orderSpecs:c}}var ma,ya=function(e,t){return(ya=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},Sa=function(){return(Sa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ea={},Ca=[],ba=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Da={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e},__v:0};R.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=C({},this.state);(e="function"==typeof e?e(C({},n),this.props):e)&&C(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),i(this))},R.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),i(this))},R.prototype.render=D;var Ra,wa=[],Ta="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xa=n.__r=0,ka=[],_a=Da.__b,Ma=Da.__r,Pa=Da.diffed,Ia=Da.__c,Na=Da.unmount;Da.__b=function(e){_a&&_a(e)},Da.__r=function(e){Ma&&Ma(e);e=e.__c.__H;e&&(e.__h.forEach(p),e.__h.forEach(f),e.__h=[])},Da.diffed=function(e){Pa&&Pa(e);e=e.__c;e&&e.__H&&e.__H.__h.length&&(1!==ka.push(e)&&Ra===Da.requestAnimationFrame||((Ra=Da.requestAnimationFrame)||function(e){function t(){clearTimeout(r),Ha&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);Ha&&(n=requestAnimationFrame(t))})(o))},Da.__c=function(e,n){n.some(function(t){try{t.__h.forEach(p),t.__h=t.__h.filter(function(e){return!e.__||f(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],Da.__e(e,t.__v)}}),Ia&&Ia(e,n)},Da.unmount=function(e){Na&&Na(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(p)}catch(e){Da.__e(e,t.__v)}};var Ha="function"==typeof requestAnimationFrame;(new R).isPureReactComponent=!0;var Oa=Da.__b;Da.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Oa&&Oa(e)};var Aa=Da.__e;Da.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Aa(e,t,n)};var Wa=Da.unmount;Da.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Wa&&Wa(e)},(new R).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);function o(){a||(a=!0,n.__R=null,i?i(s):s())}var i=h(r.__v),a=!1;n.__R=o;var s=function(){var e,t;if(!--r.__u)for(r.state.__e&&(e=r.state.__e,r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return t(e,n,r)}),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(e,e.__c.__P,e.__c.__O)),r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()},t=!0===t.__h;r.__u++||t||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)};function La(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(;3<n.length;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}}(new R).__e=function(n){var r=this,o=h(r.__v),i=r.o.get(n);return i[0]++,function(e){function t(){r.props.revealOrder?(i.push(e),La(r,n,i)):e()}o?o(t):t()}};var Ua="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ba=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;R.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(R.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var za=Da.event;Da.event=function(e){return(e=za?za(e):e).persist=y,e.isPropagationStopped=P,e.isDefaultPrevented=I,e.nativeEvent=e};var Va={configurable:!0,get:function(){return this.class}},Fa=Da.vnode;Da.vnode=function(e){var t,n=e.type,r=e.props,o=r;if("string"==typeof n){for(var i in o={},r){var a=r[i];"value"===i&&"defaultValue"in r&&null==a||("defaultValue"===i&&"value"in r&&null==r.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&(t=r.type,!("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t))?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():Ba.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),o[i]=a)}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=s(r.children).forEach(function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)})),"select"==n&&null!=o.defaultValue&&(o.value=s(r.children).forEach(function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value})),e.props=o}n&&r.class!=r.className&&(Va.enumerable="className"in r,null!=r.className&&(o.class=r.className),Object.defineProperty(o,"className",Va)),e.$$typeof=Ua,Fa&&Fa(e)};var Ga=Da.__r;Da.__r=function(e){Ga&&Ga(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var ja="undefined"!=typeof globalThis?globalThis:window;ja.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):ja.FullCalendarVDom={Component:R,createElement:a,render:r,createRef:function(){return{current:null}},Fragment:D,createContext:H,createPortal:function(e,t){return a(m,{__v:e,i:t})},flushToDom:N,unmountComponentAtNode:function(e){r(null,e)}};var qa,Ya=(t(Za,qa=R),Za.prototype.render=function(){return a("div",{})},Za.prototype.componentDidMount=function(){this.setState({})},Za);function Za(){return null!==qa&&qa.apply(this,arguments)||this}var Xa=(Ka.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},Ka.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(Ka.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(Ka.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(Ka.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),Ka);function Ka(e,t){this.context=e,this.internalEventSource=t}var $a=/(top|left|right|bottom|width|height)$/i,Ja=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],Qa=0,es=["sun","mon","tue","wed","thu","fri","sat"],ts=Object.prototype.hasOwnProperty,ns=["years","months","days","milliseconds"],rs=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/,os={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},is={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},as=/\s*([ap])\.?m\.?/i,ss=/,/g,ls=/\s+/g,us=/\u200e/g,cs=/UTC|GMT/,ds=(ps.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},ps.prototype.formatRange=function(e,t,n,r){var o=this.standardDateProps,i=this.extendedSettings,a=(s=e.marker,l=t.marker,(a=n.calendarSystem).getMarkerYear(s)!==a.getMarkerYear(l)?5:a.getMarkerMonth(s)!==a.getMarkerMonth(l)?4:a.getMarkerDay(s)!==a.getMarkerDay(l)?2:Re(s)!==Re(l)?1:0);if(!a)return this.format(e,n);var s=a;!(1<s)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(s=1);var l=this.format(e,n),a=this.format(t,n);if(l===a)return l;s=rt(function(e,t){var n,r={};for(n in e)n in is&&!(is[n]<=t)||(r[n]=e[n]);return r}(o,s),i,n),e=s(e),s=s(t),t=function(e,t,n,r){for(var o=0;o<e.length;){var i=e.indexOf(t,o);if(-1===i)break;for(var a=e.substr(0,i),o=i+t.length,s=e.substr(o),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u),l=u+r.length,u=n.substr(l);if(a===c&&s===u)return{before:a,after:s}}}return null}(l,e,a,s),n=i.separator||r||n.defaultSeparator||"";return t?t.before+e+n+s+t.after:l+n+a},ps.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},ps);function ps(e){var t,n={},r={},o=0;for(t in e)t in os?(r[t]=e[t],o=Math.max(os[t],o)):(n[t]=e[t],t in is&&(o=Math.max(is[t],o)));this.standardDateProps=n,this.extendedSettings=r,this.severity=o,this.buildFormattingFunc=Qe(rt)}var fs=(hs.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,it(e,null,t,n))},hs.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,it(e,t,n,r))},hs);function hs(e){this.cmdStr=e}var gs=(vs.prototype.format=function(e,t,n){return this.func(it(e,null,t,n))},vs.prototype.formatRange=function(e,t,n,r){return this.func(it(e,t,n,r))},vs);function vs(e){this.func=e}var ms={navLinkDayClick:ct,navLinkWeekClick:ct,duration:Ae,bootstrapFontAwesome:ct,buttonIcons:ct,customButtons:ct,defaultAllDayEventDuration:Ae,defaultTimedEventDuration:Ae,nextDayThreshold:Ae,scrollTime:Ae,scrollTimeReset:Boolean,slotMinTime:Ae,slotMaxTime:Ae,dayPopoverFormat:at,slotDuration:Ae,snapDuration:Ae,headerToolbar:ct,footerToolbar:ct,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:at,dayHeaderClassNames:ct,dayHeaderContent:ct,dayHeaderDidMount:ct,dayHeaderWillUnmount:ct,dayCellClassNames:ct,dayCellContent:ct,dayCellDidMount:ct,dayCellWillUnmount:ct,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:ct,weekNumbers:Boolean,weekNumberClassNames:ct,weekNumberContent:ct,weekNumberDidMount:ct,weekNumberWillUnmount:ct,editable:Boolean,viewClassNames:ct,viewDidMount:ct,viewWillUnmount:ct,nowIndicator:Boolean,nowIndicatorClassNames:ct,nowIndicatorContent:ct,nowIndicatorDidMount:ct,nowIndicatorWillUnmount:ct,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:ct,locale:ct,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:ct,eventOrder:te,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:ct,contentHeight:ct,direction:String,weekNumberFormat:at,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:ct,initialDate:ct,now:ct,eventDataTransform:ct,stickyHeaderDates:ct,stickyFooterScrollbar:ct,viewHeight:ct,defaultAllDay:Boolean,eventSourceFailure:ct,eventSourceSuccess:ct,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:ct,eventConstraint:ct,eventAllow:ct,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:ct,eventContent:ct,eventDidMount:ct,eventWillUnmount:ct,selectConstraint:ct,selectOverlap:ct,selectAllow:ct,droppable:Boolean,unselectCancel:String,slotLabelFormat:ct,slotLaneClassNames:ct,slotLaneContent:ct,slotLaneDidMount:ct,slotLaneWillUnmount:ct,slotLabelClassNames:ct,slotLabelContent:ct,slotLabelDidMount:ct,slotLabelWillUnmount:ct,dayMaxEvents:ct,dayMaxEventRows:ct,dayMinWidth:Number,slotLabelInterval:Ae,allDayText:String,allDayClassNames:ct,allDayContent:ct,allDayDidMount:ct,allDayWillUnmount:ct,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:at,rerenderDelay:Number,moreLinkText:ct,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:ct,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ae,hiddenDays:ct,monthMode:Boolean,fixedWeekCount:Boolean,validRange:ct,visibleRange:ct,titleFormat:ct,noEventsText:String,moreLinkClick:ct,moreLinkClassNames:ct,moreLinkContent:ct,moreLinkDidMount:ct,moreLinkWillUnmount:ct},ys={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},Ss={datesSet:ct,eventsSet:ct,eventAdd:ct,eventChange:ct,eventRemove:ct,windowResize:ct,eventClick:ct,eventMouseEnter:ct,eventMouseLeave:ct,select:ct,unselect:ct,loading:ct,_unmount:ct,_beforeprint:ct,_afterprint:ct,_noEventDrop:ct,_noEventResize:ct,_resize:ct,_scrollRequest:ct},Es={buttonText:ct,views:ct,plugins:ct,initialEvents:ct,events:ct,eventSources:ct},Cs={headerToolbar:st,footerToolbar:st,buttonText:st,buttonIcons:st},bs={type:String,component:ct,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:ct,usesMinMaxTime:Boolean,classNames:ct,content:ct,didMount:ct,willUnmount:ct},Ds={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:ct,overlap:ct,allow:ct,className:mt,classNames:mt,color:String,backgroundColor:String,borderColor:String,textColor:String},Rs={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]},ws={id:String,groupId:String,title:String,url:String},Ts={start:ct,end:ct,date:ct,allDay:Boolean},xs=Sa(Sa(Sa({},ws),Ts),{extendedProps:ct}),ks={start:ct,end:ct,allDay:Boolean},_s=(Object.defineProperty(Ms.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(Ms.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(Ms.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(Ms.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(Ms.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(Ms.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),Ms.prototype.getOption=function(e){return this.getCurrentData().options[e]},Ms);function Ms(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}var Ps={id:String,defaultAllDay:Boolean,url:String,format:String,events:ct,eventDataTransform:ct,success:ct,failure:ct},Is=(Ns.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},Ns.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(Ns.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),Ns.prototype.batchRendering=function(e){e()},Ns.prototype.updateSize=function(){this.trigger("_resize",!0)},Ns.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},Ns.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},Ns.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},Ns.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},Ns.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},Ns.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,g([e],n))},Ns.prototype.changeView=function(t,n){var r=this;this.batchRendering(function(){var e;r.unselect(),n?n.start&&n.end?(r.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),r.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n})):(e=r.getCurrentData().dateEnv,r.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:e.createMarker(n)})):r.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})})},Ns.prototype.zoomTo=function(e,t){t=this.getCurrentData().viewSpecs[t=t||"day"]||this.getUnitViewSpec(t);this.unselect(),t?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},Ns.prototype.getUnitViewSpec=function(e){var t,n,r,o=this.getCurrentData(),i=o.viewSpecs,o=o.toolbarConfig,a=[].concat(o.viewsWithButtons);for(r in i)a.push(r);for(t=0;t<a.length;t+=1)if((n=i[a[t]])&&n.singleUnit===e)return n;return null},Ns.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},Ns.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},Ns.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},Ns.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},Ns.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:ln(e.calendarOptions.now,e.dateEnv)})},Ns.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},Ns.prototype.incrementDate=function(e){var t=this.getCurrentData(),e=Ae(e);e&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,e)}))},Ns.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},Ns.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),at(t))},Ns.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),at(n),n)},Ns.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},Ns.prototype.select=function(e,t){e=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t},t=this.getCurrentData(),e=$t(e,t.dateEnv,Ae({days:1}));e&&(this.dispatch({type:"SELECT_DATES",selection:e}),tn(e,null,t))},Ns.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),e=e,(t=t).emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view}))},Ns.prototype.addEvent=function(e,t){if(e instanceof Hs){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:pt({def:n,instance:r})}),this.triggerEventAdd(e)),e}n=this.getCurrentData();if(t instanceof Xa)o=t.internalEventSource;else if("boolean"==typeof t)t&&(o=Me(n.eventSources)[0]);else if(null!=t){r=this.getEventSourceById(t);if(!r)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=r.internalEventSource}var o=Ct(e,o,n,!1);if(o){n=new Hs(n,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:pt(o)}),this.triggerEventAdd(n),n}return null},Ns.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:un(e)})}})},Ns.prototype.getEventById=function(e){var t,n=this.getCurrentData(),r=n.eventStore,o=r.defs,i=r.instances;for(t in e=String(e),o){var a=o[t];if(a.publicId===e){if(a.recurringDef)return new Hs(n,a,null);for(var s in i){s=i[s];if(s.defId===a.defId)return new Hs(n,a,s)}}}return null},Ns.prototype.getEvents=function(){var e=this.getCurrentData();return cn(e.eventStore,e)},Ns.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},Ns.prototype.getEventSources=function(){var e,t=this.getCurrentData(),n=t.eventSources,r=[];for(e in n)r.push(new Xa(t,n[e]));return r},Ns.prototype.getEventSourceById=function(e){var t,n=this.getCurrentData(),r=n.eventSources;for(t in e=String(e),r)if(r[t].publicId===e)return new Xa(n,r[t]);return null},Ns.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof Xa)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;e=an(e,t);return e?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e]}),new Xa(t,e)):null},Ns.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},Ns.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},Ns.prototype.scrollToTime=function(e){e=Ae(e);e&&this.trigger("_scrollRequest",{time:e})},Ns);function Ns(){}var Hs=(Os.prototype.setProp=function(e,t){var n,r;e in Ts?console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead."):"id"===e?(t=ws[e](t),this.mutate({standardProps:{publicId:t}})):e in ws?(t=ws[e](t),this.mutate({standardProps:((n={})[e]=t,n)})):e in Ds?(r=Ds[e](t),r="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:((n={})[e]=t,n),this.mutate({standardProps:{ui:r}})):console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},Os.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:((n={})[e]=t,n)})},Os.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,e=n.createMarker(e);e&&this._instance&&(n=kt(this._instance.range.start,e,n,t.granularity),t.maintainDuration?this.mutate({datesDelta:n}):this.mutate({startDelta:n}))},Os.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;(null==e||(n=r.createMarker(e)))&&this._instance&&(n?(t=kt(this._instance.range.end,n,r,t.granularity),this.mutate({endDelta:t})):this.mutate({standardProps:{hasEnd:!1}}))},Os.prototype.setDates=function(e,t,n){var r,o=this._context.dateEnv,i={allDay:(n=void 0===n?{}:n).allDay},e=o.createMarker(e);e&&(null==t||(r=o.createMarker(t)))&&this._instance&&(t=this._instance.range,e=kt((t=!0===n.allDay?wt(t):t).start,e,o,n.granularity),r?(r=kt(t.end,r,o,n.granularity),o=r,(n=e).years===o.years&&n.months===o.months&&n.days===o.days&&n.milliseconds===o.milliseconds?this.mutate({datesDelta:e,standardProps:i}):this.mutate({startDelta:e,endDelta:r,standardProps:i})):(i.hasEnd=!1,this.mutate({datesDelta:e,standardProps:i})))},Os.prototype.moveStart=function(e){e=Ae(e);e&&this.mutate({startDelta:e})},Os.prototype.moveEnd=function(e){e=Ae(e);e&&this.mutate({endDelta:e})},Os.prototype.moveDates=function(e){e=Ae(e);e&&this.mutate({datesDelta:e})},Os.prototype.setAllDay=function(e,t){var n={allDay:e},t=(t=void 0===t?{}:t).maintainDuration;null==t&&(t=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=t),this.mutate({standardProps:n})},Os.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,e=at(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,e,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,e,{forcedTzo:n.forcedStartTzo})},Os.prototype.mutate=function(e){var t,n,r,o,i=this._instance;i&&(t=this._def,n=this._context,o=on(o=ft(r=n.getCurrentData().eventStore,i.instanceId),{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,n),e=new Os(n,t,i),this._def=o.defs[t.defId],this._instance=o.instances[i.instanceId],n.dispatch({type:"MERGE_EVENTS",eventStore:o}),n.emitter.trigger("eventChange",{oldEvent:e,event:this,relatedEvents:cn(o,n,i),revert:function(){n.dispatch({type:"RESET_EVENTS",eventStore:r})}}))},Os.prototype.remove=function(){var e=this._context,t=un(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(Os.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new Xa(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(Os.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),Os.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,r=this.startStr,o=this.endStr,i={};return t.title&&(i.title=t.title),r&&(i.start=r),o&&(i.end=o),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),n.display&&"auto"!==n.display&&(i.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.color=n.backgroundColor:(n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.borderColor&&(i.borderColor=n.borderColor)),n.textColor&&(i.textColor=n.textColor),n.classNames.length&&(i.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Sa(i,t.extendedProps):i.extendedProps=t.extendedProps),i},Os.prototype.toJSON=function(){return this.toPlainObject()},Os);function Os(e,t,n){this._context=e,this._def=t,this._instance=n||null}var As={},Ws=(Ls.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},Ls.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},Ls.prototype.getMarkerDay=function(e){return e.getUTCDate()},Ls.prototype.arrayToMarker=be,Ls.prototype.markerToArray=Ce,Ls);function Ls(){}As["gregory"]=Ws;var Us=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/,Bs=(zs.prototype.createMarker=function(e){e=this.createMarkerMeta(e);return null===e?null:e.marker},zs.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):be(Se(new Date))},zs.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=be(e)),null!==t&&De(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},zs.prototype.parse=function(e){var t=dn(e);if(null===t)return null;var n=t.marker,e=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):e=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:e}},zs.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},zs.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},zs.prototype.add=function(e,t){e=this.calendarSystem.markerToArray(e);return e[0]+=t.years,e[1]+=t.months,e[2]+=t.days,e[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(e)},zs.prototype.subtract=function(e,t){e=this.calendarSystem.markerToArray(e);return e[0]-=t.years,e[1]-=t.months,e[2]-=t.days,e[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(e)},zs.prototype.addYears=function(e,t){e=this.calendarSystem.markerToArray(e);return e[0]+=t,this.calendarSystem.arrayToMarker(e)},zs.prototype.addMonths=function(e,t){e=this.calendarSystem.markerToArray(e);return e[1]+=t,this.calendarSystem.arrayToMarker(e)},zs.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return Re(e)===Re(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},zs.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return Re(e)===Re(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},zs.prototype.greatestWholeUnit=function(e,t){var n,r=this.diffWholeYears(e,t);return null!==r?{unit:"year",value:r}:null!==(r=this.diffWholeMonths(e,t))?{unit:"month",value:r}:null!==(r=ge(e,t))?{unit:"week",value:r}:null!==(r=ve(e,t))?{unit:"day",value:r}:(n=e,se(r=(t.valueOf()-n.valueOf())/36e5)?{unit:"hour",value:r}:(n=e,se(r=(t.valueOf()-n.valueOf())/6e4)?{unit:"minute",value:r}:(n=e,se(r=(t.valueOf()-n.valueOf())/1e3)?{unit:"second",value:r}:{unit:"millisecond",value:t.valueOf()-e.valueOf()})))},zs.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(ze(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/(ze(n)/30):n.days&&null!==(r=ve(e,t))?r/ze(n):(t.valueOf()-e.valueOf())/Ge(n)},zs.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?me(e):"hour"===t?be([(n=e).getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours()]):"minute"===t?be([(n=e).getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes()]):"second"===t?be([(e=e).getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()]):null;var n},zs.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},zs.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},zs.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},zs.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):(t=e,n=this.weekDow,r=this.weekDoy,o=t.getUTCFullYear(),(e=ye(t,o,n,r))<1?ye(t,o-1,n,r):1<=(r=ye(t,o+1,n,r))?Math.min(e,r):e);var t,n,r,o},zs.prototype.format=function(e,t,n){return t.format({marker:e,timeZoneOffset:null!=(n=void 0===n?{}:n).forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},zs.prototype.formatRange=function(e,t,n,r){return(r=void 0===r?{}:r).isEndExclusive&&(t=de(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)},zs.prototype.formatIso=function(e,t){var n=null;return Ye(e,n=!(t=void 0===t?{}:t).omitTimeZoneOffset?null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e):n,t.omitTime)},zs.prototype.timestampToMarker=function(e){return"local"===this.timeZone?be(Se(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?be(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},zs.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-Ee(Ce(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ce(e)):null},zs.prototype.toDate=function(e,t){return"local"===this.timeZone?Ee(Ce(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Ce(e))*60):new Date(e.valueOf()-(t||0))},zs);function zs(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=(n=e.calendarSystem,new As[n]),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=(null!=e.weekText?e:e.locale.options).weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}var Vs,Fs=[],Gs={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",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},js={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"},qs=ht(),Ys=(Zs.prototype.splitProps=function(e){var t,n=this,r=this.getKeyInfo(e),o=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,o),s=this.splitEventStore(e.eventStore,o),l=this.splitEventDrag(e.eventDrag),u=this.splitEventResize(e.eventResize),c={};for(t in this.eventUiBuilders=ke(r,function(e,t){return n.eventUiBuilders[t]||Qe(Rn)}),r){var d=r[t],p=s[t]||qs,f=this.eventUiBuilders[t];c[t]={businessHours:d.businessHours||e.businessHours,dateSelection:i[t]||null,eventStore:p,eventUiBases:f(e.eventUiBases[""],d.ui,a[t]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:l[t]||null,eventResize:u[t]||null}}return c},Zs.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++)t[r[n]]=e;return t},Zs.prototype._getKeysForEventDefs=function(e){var t=this;return ke(e.defs,function(e){return t.getKeysForEventDef(e)})},Zs.prototype._splitEventStore=function(e,t){var n,r,o=e.defs,i=e.instances,a={};for(n in o)for(var s=0,l=t[n];s<l.length;s++)a[u=l[s]]||(a[u]=ht()),a[u].defs[n]=o[n];for(r in i)for(var u,c=i[r],d=0,p=t[c.defId];d<p.length;d++)a[u=p[d]]&&(a[u].instances[r]=c);return a},Zs.prototype._splitIndividualUi=function(e,t){var n,r={};for(n in e)if(n)for(var o=0,i=t[n];o<i.length;o++){var a=i[o];r[a]||(r[a]={}),r[a][n]=e[n]}return r},Zs.prototype._splitInteraction=function(t){var n={};if(t){var e,r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),o=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,o),a=function(e){n[e]||(n[e]={affectedEvents:r[e]||qs,mutatedEvents:i[e]||qs,isEvent:t.isEvent})};for(e in r)a(e);for(e in i)a(e)}return n},Zs);function Zs(){this.getKeysForEventDefs=Qe(this._getKeysForEventDefs),this.splitDateSelection=Qe(this._splitDateSpan),this.splitEventStore=Qe(this._splitEventStore),this.splitIndividualUi=Qe(this._splitIndividualUi),this.splitEventDrag=Qe(this._splitInteraction),this.splitEventResize=Qe(this._splitInteraction),this.eventUiBuilders={}}var Xs,Ks=null,$s=(Js.prototype.setThisContext=function(e){this.thisContext=e},Js.prototype.setOptions=function(e){this.options=e},Js.prototype.on=function(e,t){var n;n=this.handlers,t=t,(n[e=e]||(n[e]=[])).push(t)},Js.prototype.off=function(e,t){var n,r;n=this.handlers,e=e,(r=t)?n[e]&&(n[e]=n[e].filter(function(e){return e!==r})):delete n[e]},Js.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],e=this.options&&this.options[e],o=0,i=[].concat(e||[],r);o<i.length;o++)i[o].apply(this.thisContext,t)},Js.prototype.hasHandlers=function(e){return this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e]},Js);function Js(){this.handlers={},this.thisContext=null}var Qs=(el.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n},el.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n},el.prototype.leftToIndex=function(e){for(var t=this.lefts,n=this.rights,r=t.length,o=0;o<r;o+=1)if(e>=t[o]&&e<n[o])return o},el.prototype.topToIndex=function(e){for(var t=this.tops,n=this.bottoms,r=t.length,o=0;o<r;o+=1)if(e>=t[o]&&e<n[o])return o},el.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},el.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},el);function el(e,t,n,r){this.els=t;e=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(e.left),r&&this.buildElVerticals(e.top)}var tl=(nl.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},nl.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},nl.prototype.canScrollVertically=function(){return 0<this.getMaxScrollTop()},nl.prototype.canScrollHorizontally=function(){return 0<this.getMaxScrollLeft()},nl.prototype.canScrollUp=function(){return 0<this.getScrollTop()},nl.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},nl.prototype.canScrollLeft=function(){return 0<this.getScrollLeft()},nl.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},nl);function nl(){}var rl,ol=(t(il,rl=tl),il.prototype.getScrollTop=function(){return this.el.scrollTop},il.prototype.getScrollLeft=function(){return this.el.scrollLeft},il.prototype.setScrollTop=function(e){this.el.scrollTop=e},il.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},il.prototype.getScrollWidth=function(){return this.el.scrollWidth},il.prototype.getScrollHeight=function(){return this.el.scrollHeight},il.prototype.getClientHeight=function(){return this.el.clientHeight},il.prototype.getClientWidth=function(){return this.el.clientWidth},il);function il(e){var t=rl.call(this)||this;return t.el=e,t}var al,sl=(t(ll,al=tl),ll.prototype.getScrollTop=function(){return window.pageYOffset},ll.prototype.getScrollLeft=function(){return window.pageXOffset},ll.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},ll.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},ll.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},ll.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},ll.prototype.getClientHeight=function(){return document.documentElement.clientHeight},ll.prototype.getClientWidth=function(){return document.documentElement.clientWidth},ll);function ll(){return null!==al&&al.apply(this,arguments)||this}var ul=(cl.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=Sa({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},cl.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return e=t&&0!==e.indexOf(t)?t+e:e},cl.prototype.getClass=function(e){return this.classes[e]||""},cl.prototype.getIconClass=function(e,t){e=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e];return e?this.baseIconClass+" "+e:""},cl.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},cl);function cl(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}if(ul.prototype.classes={},ul.prototype.iconClasses={},ul.prototype.baseIconClass="",ul.prototype.iconOverridePrefix="","undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var dl=FullCalendarVDom.Component,pl=FullCalendarVDom.createElement,fl=FullCalendarVDom.render,hl=FullCalendarVDom.createRef,gl=FullCalendarVDom.Fragment,vl=FullCalendarVDom.createContext,ml=FullCalendarVDom.createPortal,yl=FullCalendarVDom.flushToDom,Sl=FullCalendarVDom.unmountComponentAtNode,El=(Cl.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},Cl.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},Cl.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},Cl.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},Cl);function Cl(e,t,n,r){var o=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(e){o.queuedRequest=Sa({},o.queuedRequest||{},e),o.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}var bl,Dl=vl({}),Rl=(t(wl,bl=dl),wl.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Ie(e,this.props),Ie(t,this.state)),!Ne(this.props,e,this.propEquality)||!Ne(this.state,t,this.stateEquality)},wl.addPropsEquality=Ln,wl.addStateEquality=Un,wl.contextType=Dl,wl);function wl(){return null!==bl&&bl.apply(this,arguments)||this}Rl.prototype.propEquality={},Rl.prototype.stateEquality={};var Tl,xl=(t(kl,Tl=Rl),kl.contextType=Dl,kl);function kl(){return null!==Tl&&Tl.apply(this,arguments)||this}var _l,Ml=(t(Pl,_l=xl),Pl.prototype.prepareHits=function(){},Pl.prototype.queryHit=function(e,t,n,r){return null},Pl.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!A(e,".fc-event-mirror")},Pl.prototype.isValidDateDownEl=function(e){return!(A(e,".fc-event:not(.fc-bg-event)")||A(e,".fc-more-link")||A(e,"a[data-navlink]")||A(e,".fc-popover"))},Pl);function Pl(){var e=null!==_l&&_l.apply(this,arguments)||this;return e.uid=Z(),e}var Il,Nl=(t(Hl,Il=ul),Hl);function Hl(){return null!==Il&&Il.apply(this,arguments)||this}Nl.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Nl.prototype.baseIconClass="fc-icon",Nl.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"},Nl.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Nl.prototype.iconOverrideOption="buttonIcons",Nl.prototype.iconOverrideCustomButtonOption="icon",Nl.prototype.iconOverridePrefix="fc-icon-";var Ol,Al=(t(Wl,Ol=xl),Wl.prototype.render=function(){var e=this,r=this.props,o=r.hookProps;return pl(Fl,{hookProps:o,didMount:r.didMount,willUnmount:r.willUnmount,elRef:this.handleRootEl},function(n){return pl(Gn,{hookProps:o,content:r.content,defaultContent:r.defaultContent,backupElRef:e.rootElRef},function(e,t){return r.children(n,qn(r.classNames,o),e,t)})})},Wl);function Wl(){var t=null!==Ol&&Ol.apply(this,arguments)||this;return t.rootElRef=hl(),t.handleRootEl=function(e){Bn(t.rootElRef,e),t.props.elRef&&Bn(t.props.elRef,e)},t}var Ll,Ul=vl(0),Bl=(t(zl,Ll=xl),zl.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},zl.prototype.componentDidMount=function(){this.updateCustomContent()},zl.prototype.componentDidUpdate=function(){this.updateCustomContent()},zl.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},zl.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=Sa({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},zl.prototype.getInnerContent=function(){var e=this.props,t=Yn(e.content,e.hookProps);return null==(t=void 0===t?Yn(e.defaultContent,e.hookProps):t)?null:t},zl.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var o in t)if(void 0!==e[o]){r=t[n=o];break}return{contentKey:n,buildLifecycleFuncs:r}},zl.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},zl);function zl(){var e=null!==Ll&&Ll.apply(this,arguments)||this;return e.innerElRef=hl(),e}var Vl,Fl=(t(Gl,Vl=xl),Gl.prototype.render=function(){return this.props.children(this.handleRootEl)},Gl.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(Sa(Sa({},this.props.hookProps),{el:this.rootEl}))},Gl.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(Sa(Sa({},this.props.hookProps),{el:this.rootEl}))},Gl);function Gl(){var t=null!==Vl&&Vl.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&Bn(t.props.elRef,e)},t}var jl,ql=(t(Yl,jl=xl),Yl.prototype.render=function(){var t=this.props,e=this.context,n=e.options,e={view:e.viewApi},r=this.normalizeClassNames(n.viewClassNames,e);return pl(Fl,{hookProps:e,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:t.elRef},function(e){return t.children(e,["fc-"+t.viewSpec.type+"-view","fc-view"].concat(r))})},Yl);function Yl(){var e=null!==jl&&jl.apply(this,arguments)||this;return e.normalizeClassNames=jn(),e}var Zl={},Xl=(Kl.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,e=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(e,-1,n)},Kl.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,e=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(e,1,n)},Kl.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i=this.props,a=this.buildValidRange();return a=this.trimHiddenDays(a),n&&(r=e,e=null!=(o=a).start&&r<o.start?o.start:null!=o.end&&r>=o.end?new Date(o.end.valueOf()-1):r),n=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(n.unit),r=this.buildRenderRange(this.trimHiddenDays(n.range),n.unit,o),e=r=this.trimHiddenDays(r),i.showNonCurrentDates||(e=Pt(e,n.range)),e=Pt(e=this.adjustActiveRange(e),a),t=Nt(n.range,a),{validRange:a,currentRange:n.range,currentRangeUnit:n.unit,isRangeAllDay:o,activeRange:e,renderRange:r,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:t,dateIncrement:this.buildDateIncrement(n.duration)}},Kl.prototype.buildValidRange=function(){var e=this.props.validRangeInput,e="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(e)||{start:null,end:null}},Kl.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=qe(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},Kl.prototype.getFallbackDuration=function(){return Ae({day:1})},Kl.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,t=e.start,e=e.end;return r&&(ze(o)<0&&(t=me(t),t=n.add(t,o)),1<ze(i)&&(e=ce(e=me(e),-1),e=n.add(e,i))),{start:t,end:e}},Kl.prototype.buildRangeFromDuration=function(e,t,n,r){function o(){i=u.startOf(e,c),a=u.add(i,n),s={start:i,end:a}}var i,a,s,l=this.props,u=l.dateEnv,c=l.dateAlignment;return c||(l=this.props.dateIncrement,c=l&&Ge(l)<Ge(n)?qe(l).unit:r),ze(n)<=1&&this.isHiddenDay(i)&&(i=me(i=this.skipHiddenDays(i,t))),o(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),o()),s},Kl.prototype.buildRangeFromDayCount=function(e,t,n){for(var r=this.props,o=r.dateEnv,r=r.dateAlignment,i=0,e=e,e=me(e=r?o.startOf(e,r):e),a=e=this.skipHiddenDays(e,t);a=ce(a,1),this.isHiddenDay(a)||(i+=1),i<n;);return{start:e,end:a}},Kl.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,n="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,n=this.refineRange(n);return!n||null!=n.start&&null!=n.end?n:null},Kl.prototype.buildRenderRange=function(e,t,n){return e},Kl.prototype.buildDateIncrement=function(e){var t=this.props.dateIncrement;return t||((t=this.props.dateAlignment)?Ae(1,t):e||Ae({days:1}))},Kl.prototype.refineRange=function(e){if(e){e=(t=e,n=this.props.dateEnv,e=r=null,t.start&&(r=n.createMarker(t.start)),t.end&&(e=n.createMarker(t.end)),!r&&!e||r&&e&&e<r?null:{start:r,end:e});return e=e&&Tt(e)}var t,n,r;return null},Kl.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},Kl.prototype.trimHiddenDays=function(e){var t=e.start,e=e.end,t=t&&this.skipHiddenDays(t),e=e&&this.skipHiddenDays(e,-1,!0);return null==t||null==e||t<e?{start:t,end:e}:null},Kl.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},Kl.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=ce(e,t);return e},Kl);function Kl(e){this.props=e,this.nowDate=ln(e.nowInput,e.dateEnv),this.initHiddenDays()}var $l=[zn({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),zn({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;An(e.eventSource.meta.bind(null,Qt(e.range,r)),function(e){t({rawEvents:e})},n)}}]}),zn({eventSourceRefiners:{method:String,extraParams:ct,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,n,r){var t,o,i,a,s,l,u,c=e.eventSource.meta,l=(t=c,o=e.range,i=e.context,a=i.dateEnv,s=i.options,l={},null==(u=t.startParam)&&(u=s.startParam),null==(e=t.endParam)&&(e=s.endParam),null==(i=t.timeZoneParam)&&(i=s.timeZoneParam),t="function"==typeof t.extraParams?t.extraParams():t.extraParams||{},Sa(l,t),l[u]=a.formatIso(o.start),l[e]=a.formatIso(o.end),"local"!==a.timeZone&&(l[i]=a.timeZone),l);cr(c.method,c.url,l,function(e,t){n({rawEvents:e,xhr:t})},function(e,t){r({message:e,xhr:t})})}}]}),zn({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return!(r=e.duration?e.duration:r)&&e.startTime&&e.endTime&&(o=e.endTime,t=e.startTime,r={years:o.years-t.years,months:o.months-t.months,days:o.days-t.days,milliseconds:o.milliseconds-t.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var o;return null},expand:function(e,t,n){t=Pt(t,{start:e.startRecur,end:e.endRecur});return t?function(e,t,n,r){for(var o=e?_e(e):null,i=me(n.start),a=n.end,s=[];i<a;){var l=void 0;o&&!o[i.getUTCDay()]||(l=t?r.add(i,t):i,s.push(l)),i=ce(i,1)}return s}(e.daysOfWeek,e.startTime,t,n):[]}}],eventRefiners:{daysOfWeek:ct,startTime:Ae,endTime:Ae,duration:Ae,startRecur:ct,endRecur:ct}}),zn({optionChangeHandlers:{events:function(e,t){pr([e],t)},eventSources:pr}}),zn({isLoadingFuncs:[function(e){return Qn(e.eventSources)}],contentTypeHandlers:{html:function(){return{render:fr}},domNodes:function(){return{render:hr}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Sa(Sa({},Qt(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",cn(e,t))}}})],Jl=(Ql.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},Ql.prototype.pause=function(e){var t=this.pauseDepths;t[e=void 0===e?"":e]=(t[e]||0)+1,this.clearTimeout()},Ql.prototype.resume=function(e,t){var n=this.pauseDepths;(e=void 0===e?"":e)in n&&(t?delete n[e]:(--n[e],n[e]<=0&&delete n[e]),this.tryDrain())},Ql.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},Ql.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},Ql.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},Ql.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},Ql.prototype.drained=function(){this.drainedOption&&this.drainedOption()},Ql);function Ql(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}var eu=(tu.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},tu.prototype.pause=function(e){this.delayedRunner.pause(e)},tu.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},tu.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t,n=[];t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}},tu.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},tu.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},tu);function tu(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Jl(this.drain.bind(this))}var nu=(ru.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?Sa(Sa({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},ru.prototype._handleAction=function(e){var t=this.props,n=this.state,r=this.emitter,o=(d=n.dynamicOptionOverrides,"SET_OPTION"!==(g=e).type?d:Sa(Sa({},d),((d={})[g.optionName]=g.rawOptionValue,d))),i=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),a=(f=n.currentViewType,f="CHANGE_VIEW_TYPE"===(p=e).type?p.viewType:f),s=this.computeCurrentViewData(a,i,t.optionOverrides,o);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);var l={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},u=n.currentDate,c=n.dateProfile;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(c=s.dateProfileGenerator.build(u)),h=u,c=function(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((o=r.buildPrev(e,n)).isValid)return o;break;case"NEXT":if((o=r.buildNext(e,n)).isValid)return o}return e}(c,g=e,u="CHANGE_DATE"!==g.type?h:g.dateMarker,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ot(c.currentRange,u)||(u=c.currentRange.start);for(var d=Jn(n.eventSources,e,c,l),p=ir(n.eventStore,e,d,c,l),f=Qn(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||p,h=this.buildViewUiProps(l),g=h.eventUiSingleBase,s=h.selectionConfig,h=this.buildEventUiBySource(d),v={dynamicOptionOverrides:o,currentViewType:a,currentDate:u,dateProfile:c,eventSources:d,eventStore:p,renderableEventStore:f,selectionConfig:s,eventUiBases:this.buildEventUiBases(f.defs,g,h),businessHours:this.parseContextBusinessHours(l),dateSelection:function(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}(n.dateSelection,e),eventSelection:function(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}(n.eventSelection,e),eventDrag:function(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}}(n.eventDrag,e),eventResize:function(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}}(n.eventResize,e)},m=Sa(Sa({},l),v),y=0,S=i.pluginHooks.reducers;y<S.length;y++){var E=S[y];Sa(v,E(n,e,m))}i=Dr(n,l),l=Dr(v,l);!i&&l?r.trigger("loading",!0):i&&!l&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)},ru.prototype.updateData=function(){var n,r,o,e,t=this.props,i=this.state,a=this.data,s=this.computeOptionsData(t.optionOverrides,i.dynamicOptionOverrides,t.calendarApi),l=this.computeCurrentViewData(i.currentViewType,s,t.optionOverrides,i.dynamicOptionOverrides),u=this.data=Sa(Sa(Sa({viewTitle:this.buildTitle(i.dateProfile,l.options,s.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),l),i),c=s.pluginHooks.optionChangeHandlers,d=a&&a.calendarOptions,p=s.calendarOptions;if(d&&d!==p)for(var f in d.timeZone!==p.timeZone&&(i.eventSources=u.eventSources=(e=u.eventSources,l=i.dateProfile,s=u,l=l?l.activeRange:null,nr(e,rr(e,s),l,!0,s)),i.eventStore=u.eventStore=(i=u.eventStore,n=a.dateEnv,r=u.dateEnv,o=i.defs,i=ke(i.instances,function(e){var t=o[e.defId];return t.allDay||t.recurringDef?e:Sa(Sa({},e),{range:{start:r.createMarker(n.toDate(e.range.start,e.forcedStartTzo)),end:r.createMarker(n.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:e.forcedEndTzo})}),{defs:o,instances:i})),c)d[f]!==p[f]&&c[f](p[f],u);t.onData&&t.onData(u)},ru.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData;wr(r.extra);var l=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,s,o.defaultRangeSeparator),r=this.buildViewSpecs(i.views,e,t,a),t=this.buildTheme(o,i);return{calendarOptions:o,pluginHooks:i,dateEnv:l,viewSpecs:r,theme:t,toolbarConfig:this.parseToolbars(o,e,t,r,n),localeDefaults:a,availableRawLocales:s.map}},ru.prototype.processRawCalendarOptions=function(e,t){var n,r=lt([ys,e,t]),o=r.locales,i=r.locale,r=this.organizeRawLocales(o),o=r.map,i=this.buildLocale(i||r.defaultCode,o).options,o=this.buildPluginHooks(e.plugins||[],$l),a=this.currentCalendarOptionsRefiners=Sa(Sa(Sa(Sa(Sa({},ms),Ss),Es),o.listenerRefiners),o.optionRefiners),s={},l=lt([ys,i,e,t]),u={},c=this.currentCalendarOptionsInput,d=this.currentCalendarOptionsRefined,p=!1;for(n in l)"plugins"!==n&&(l[n]===c[n]||Cs[n]&&n in c&&Cs[n](c[n],l[n])?u[n]=d[n]:a[n]?(u[n]=a[n](l[n]),p=!0):s[n]=c[n]);return p&&(this.currentCalendarOptionsInput=l,this.currentCalendarOptionsRefined=u),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:r,localeDefaults:i,extra:s}},ru.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");n=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),r=n.refinedOptions;return wr(n.extra),{viewSpec:o,options:r,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,showNonCurrentDates:r.showNonCurrentDates,dayCount:r.dayCount,dateAlignment:r.dateAlignment,dateIncrement:r.dateIncrement,hiddenDays:r.hiddenDays,weekends:r.weekends,nowInput:r.now,validRangeInput:r.validRange,visibleRangeInput:r.visibleRange,monthMode:r.monthMode,fixedWeekCount:r.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},ru.prototype.processRawViewOptions=function(e,t,n,r,o){var i,a=lt([ys,e.optionDefaults,n,r,e.optionOverrides,o]),s=Sa(Sa(Sa(Sa(Sa(Sa({},ms),Ss),Es),bs),t.listenerRefiners),t.optionRefiners),l={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,p={};for(i in a)a[i]===u[i]?l[i]=c[i]:(a[i]===this.currentCalendarOptionsInput[i]?i in this.currentCalendarOptionsRefined&&(l[i]=this.currentCalendarOptionsRefined[i]):s[i]?l[i]=s[i](a[i]):p[i]=a[i],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}},ru);function ru(e){var n,r,o,t=this;this.computeOptionsData=Qe(this._computeOptionsData),this.computeCurrentViewData=Qe(this._computeCurrentViewData),this.organizeRawLocales=Qe(pn),this.buildLocale=Qe(fn),this.buildPluginHooks=(r=[],o=[],function(e,t){return n&&Je(e,r)&&Je(t,o)||(n=Vn(e,t)),r=e,o=t,n}),this.buildDateEnv=Qe(vr),this.buildTheme=Qe(mr),this.parseToolbars=Qe(lr),this.buildViewSpecs=Qe(Kn),this.buildDateProfileGenerator=et(yr),this.buildViewApi=Qe(Sr),this.buildViewUiProps=et(br),this.buildEventUiBySource=Qe(Er,Pe),this.buildEventUiBases=Qe(Cr),this.parseContextBusinessHours=et(Rr),this.buildTitle=Qe(gr),this.emitter=new $s,this.actionRunner=new eu(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var i={},a=this.computeOptionsData(e.optionOverrides,i,e.calendarApi),s=a.calendarOptions.initialView||a.pluginHooks.initialView,l=this.computeCurrentViewData(s,a,e.optionOverrides,i);(e.calendarApi.currentDataManager=this).emitter.setThisContext(e.calendarApi),this.emitter.setOptions(l.options);var u,c,d,c=(u=a.calendarOptions,c=a.dateEnv,null!=(d=u.initialDate)?c.createMarker(d):ln(u.now,c)),l=l.dateProfileGenerator.build(c);Ot(l.activeRange,c)||(c=l.currentRange.start);for(var p={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},f=0,h=a.pluginHooks.contextInit;f<h.length;f++)(0,h[f])(p);for(var e=$n(a.calendarOptions,l,p),g={dynamicOptionOverrides:i,currentViewType:s,currentDate:c,dateProfile:l,businessHours:this.parseContextBusinessHours(p),eventSources:e,eventUiBases:{},eventStore:ht(),renderableEventStore:ht(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(p).selectionConfig},v=Sa(Sa({},p),g),m=0,y=a.pluginHooks.reducers;m<y.length;m++){var S=y[m];Sa(g,S(null,null,v))}Dr(g,p)&&this.emitter.trigger("loading",!0),this.state=g,this.updateData(),this.actionRunner.resume()}var ou,iu=(t(au,ou=dl),au.prototype.render=function(){return this.props.children(this.state)},au.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},au);function au(e){var t=ou.call(this,e)||this;return t.handleData=function(e){t.dataManager?t.setState(e):t.state=e},t.dataManager=new nu({optionOverrides:e.optionOverrides,calendarApi:e.calendarApi,onData:t.handleData}),t}function su(e){this.timeZoneName=e}var lu=(uu.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];this.insertEntry(o,t)}return t},uu.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},uu.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},uu.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},uu.prototype.splitEntry=function(e,t,n){var r=0,o=[],i=e.span,t=t.span;return i.start<t.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:t.start}},o)),i.end>t.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:t.end,end:i.end}},o)),r?(n.push.apply(n,g([{index:e.index,thickness:e.thickness,span:Mr(t,i)}],o)),r):(n.push(e),0)},uu.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(Pr(r,t.level,t.levelCoord),Pr(n,t.level,[e])):Pr(n[t.level],t.lateral,e),this.stackCnts[xr(e)]=t.stackCnt},uu.prototype.findInsertion=function(e){for(var t=this.levelCoords,n=this.entriesByLevel,r=this.strictOrder,o=this.stackCnts,i=t.length,a=0,s=-1,l=-1,u=null,c=0,d=0;d<i;d+=1){var p=t[d];if(!r&&p>=a+e.thickness)break;for(var f,h=n[d],g=Ir(h,e.span.start,Tr),v=g[0]+g[1];(f=h[v])&&f.span.start<e.span.end;){var m=p+f.thickness;a<m&&(a=m,u=f,s=d,l=v),m===a&&(c=Math.max(c,o[xr(f)]+1)),v+=1}}var y=0;if(u)for(y=s+1;y<i&&t[y]<a;)y+=1;var S=-1;return{touchingLevel:s,touchingLateral:l,touchingEntry:u,stackCnt:c,levelCoord:a,level:y,lateral:S=y<i&&t[y]===a?Ir(n[y],e.span.end,Tr)[0]:S}},uu.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,r=[],o=0;o<n;o+=1)for(var i=e[o],a=t[o],s=0,l=i;s<l.length;s++){var u=l[s];r.push(Sa(Sa({},u),{levelCoord:a}))}return r},uu);function uu(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}var cu=(du.prototype.destroy=function(){},du);function du(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}var pu={},fu=(hu.prototype.destroy=function(){},hu.prototype.setMirrorIsVisible=function(e){},hu.prototype.setMirrorNeedsRevert=function(e){},hu.prototype.setAutoScrollEnabled=function(e){},hu);function hu(e,t){this.emitter=new $s}var gu,vu={},mu={startTime:Ae,duration:Ae,create:Boolean,sourceId:String},yu=(t(Su,gu=xl),Su.prototype.render=function(){var t=this,e=this.props.widgetGroups.map(function(e){return t.renderWidgetGroup(e)});return pl.apply(void 0,g(["div",{className:"fc-toolbar-chunk"}],e))},Su.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],o=!0,i=0,a=e;i<a.length;i++){var s,l=a[i],u=l.buttonName,c=l.buttonClick,d=l.buttonText,p=l.buttonIcon;"title"===u?(o=!1,r.push(pl("h2",{className:"fc-toolbar-title"},t.title))):(s=p?{"aria-label":u}:{},l=["fc-"+u+"-button",n.getClass("button")],u===t.activeButton&&l.push(n.getClass("buttonActive")),u=!t.isTodayEnabled&&"today"===u||!t.isPrevEnabled&&"prev"===u||!t.isNextEnabled&&"next"===u,r.push(pl("button",Sa({disabled:u,className:l.join(" "),onClick:c,type:"button"},s),d||(p?pl("span",{className:p}):""))))}if(1<r.length){e=o&&n.getClass("buttonGroup")||"";return pl.apply(void 0,g(["div",{className:e}],r))}return r[0]},Su);function Su(){return null!==gu&&gu.apply(this,arguments)||this}var Eu,Cu=(t(bu,Eu=xl),bu.prototype.render=function(){var e=this.props,t=e.model,n=e.extraClassName,r=!1,o=t.center,e=t.left?(r=!0,t.left):t.start,t=t.right?(r=!0,t.right):t.end;return pl("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))},bu.prototype.renderSection=function(e,t){var n=this.props;return pl(yu,{key:e,widgetGroups:t,title:n.title,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})},bu);function bu(){return null!==Eu&&Eu.apply(this,arguments)||this}var Du,Ru=(t(wu,Du=xl),wu.prototype.render=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"],o="",i="";return n?null!==t.availableWidth?o=t.availableWidth/n:i=1/n*100+"%":o=e.height||"",pl("div",{ref:this.handleEl,onClick:e.onClick,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)},wu.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},wu.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},wu.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},wu);function wu(){var t=null!==Du&&Du.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,Bn(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}var Tu,xu=(t(ku,Tu=cu),ku);function ku(e){var a=Tu.call(this,e)||this;return a.handleSegClick=function(e,t){var n,r=a.component,o=r.context,i=Ut(t);i&&r.isValidSegDownEl(e.target)&&(n=(n=A(e.target,".fc-event-forced-url"))?n.querySelector("a[href]").href:"",o.emitter.trigger("eventClick",{el:t,event:new Hs(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),n&&!e.defaultPrevented&&(window.location.href=n))},a.destroy=q(e.el,"click",".fc-event",a.handleSegClick),a}var _u,Mu=(t(Pu,_u=cu),Pu.prototype.destroy=function(){this.removeHoverListeners()},Pu.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=Ut(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new Hs(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},Pu);function Pu(e){var t,r,o,i,n=_u.call(this,e)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Ut(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=(t=e.el,e=".fc-event",r=n.handleSegEnter,o=n.handleSegLeave,q(t,"mouseover",e,function(e,t){var n;t!==i&&(r(e,i=t),n=function(e){i=null,o(e,t),t.removeEventListener("mouseleave",n)},t.addEventListener("mouseleave",n))})),n}var Iu,Nu=(t(Hu,Iu=Rl),Hu.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,r=t.options,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,ln(t.options.now,t.dateEnv),t.viewTitle),i=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=r.height?i=!0:null!=r.contentHeight?a=r.contentHeight:e=Math.max(r.aspectRatio,.5);r=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);return pl(Dl.Provider,{value:r},n.headerToolbar&&pl(Cu,Sa({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.headerToolbar},o)),pl(Ru,{liquid:i,height:a,aspectRatio:e,onClick:this.handleNavLinkClick},this.renderView(t),this.buildAppendContent()),n.footerToolbar&&pl(Cu,Sa({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footerToolbar},o)))},Hu.prototype.componentDidMount=function(){var t=this.props;this.calendarInteractions=t.pluginHooks.calendarInteractions.map(function(e){return new e(t)}),window.addEventListener("resize",this.handleWindowResize);var e,n=t.pluginHooks.propSetHandlers;for(e in n)n[e](t[e],t)},Hu.prototype.componentDidUpdate=function(e){var t,n=this.props,r=n.pluginHooks.propSetHandlers;for(t in r)n[t]!==e[t]&&r[t](n[t],n)},Hu.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++)t[e].destroy();this.props.emitter.trigger("_unmount")},Hu.prototype._handleNavLinkClick=function(e,t){var n=this.props,r=n.dateEnv,o=n.options,i=n.calendarApi,n=(n=t.getAttribute("data-navlink"))?JSON.parse(n):{},t=r.createMarker(n.date),n=n.type,o="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof o?o.call(i,r.toDate(t),e):i.zoomTo(t,n="string"==typeof o?o:n)},Hu.prototype.buildAppendContent=function(){var t=this.props,e=t.pluginHooks.viewContainerAppends.map(function(e){return e(t)});return pl.apply(void 0,g([gl,{}],e))},Hu.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=0,i=this.buildViewPropTransformers(t.viewPropsTransformers);o<i.length;o++){var a=i[o];Sa(r,a.transform(r,e))}n=n.component;return pl(n,Sa({},r))},Hu);function Hu(){var r=null!==Iu&&Iu.apply(this,arguments)||this;return r.buildViewContext=Qe(Wn),r.buildViewPropTransformers=Qe(Ar),r.buildToolbarProps=Qe(Or),r.handleNavLinkClick=j("a[data-navlink]",r._handleNavLinkClick.bind(r)),r.headerRef=hl(),r.footerRef=hl(),r.interactionsStore={},r.registerInteractiveComponent=function(e,t){var n={component:e,el:(t=t).el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null},t=[xu,Mu].concat(r.props.pluginHooks.componentInteractions).map(function(e){return new e(n)});r.interactionsStore[e.uid]=t,pu[e.uid]=n},r.unregisterInteractiveComponent=function(e){for(var t=0,n=r.interactionsStore[e.uid];t<n.length;t++)n[t].destroy();delete r.interactionsStore[e.uid],delete pu[e.uid]},r.resizeRunner=new Jl(function(){r.props.emitter.trigger("_resize",!0),r.props.emitter.trigger("windowResize",{view:r.props.viewApi})}),r.handleWindowResize=function(e){var t=r.props.options;t.handleWindowResize&&e.target===window&&r.resizeRunner.request(t.windowResizeDelay)},r}var Ou,Au=(t(Wu,Ou=xl),Wu.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,t=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Dn()||t.push("fc-liquid-hack"),e.children(t,o,r,n)},Wu.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},Wu.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},Wu);function Wu(){var e=null!==Ou&&Ou.apply(this,arguments)||this;return e.state={forPrint:!1},e.handleBeforePrint=function(){e.setState({forPrint:!0})},e.handleAfterPrint=function(){e.setState({forPrint:!1})},e}var Lu,Uu="fc-col-header-cell",Bu=(t(zu,Lu=xl),zu.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,o=e.viewApi,i=this.props,a=i.date,e=i.dateProfile,s=wn(a,i.todayRange,null,e),l=[Uu].concat(Tn(s,r)),r=t.format(a,i.dayHeaderFormat),u=n.navLinks&&!s.isDisabled&&1<i.colCnt?{"data-navlink":kn(a),tabIndex:0}:{},r=Sa(Sa(Sa({date:t.toDate(a),view:o},i.extraHookProps),{text:r}),s);return pl(Al,{hookProps:r,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Lr,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},function(e,t,n,r){return pl("th",Sa({ref:e,className:l.concat(t).join(" "),"data-date":s.isDisabled?void 0:Ze(a),colSpan:i.colSpan},i.extraDataAttrs),pl("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&pl("a",Sa({ref:n,className:["fc-col-header-cell-cushion",i.isSticky?"fc-sticky":""].join(" ")},u),r)))})},zu);function zu(){return null!==Lu&&Lu.apply(this,arguments)||this}var Vu,Fu=(t(Gu,Vu=xl),Gu.prototype.render=function(){var o=this.props,e=this.context,t=e.dateEnv,n=e.theme,r=e.viewApi,i=e.options,a=ce(new Date(2592e5),o.dow),e={dow:o.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=[Uu].concat(Tn(e,n),o.extraClassNames||[]),t=t.format(a,o.dayHeaderFormat),t=Sa(Sa(Sa(Sa({date:a},e),{view:r}),o.extraHookProps),{text:t});return pl(Al,{hookProps:t,classNames:i.dayHeaderClassNames,content:i.dayHeaderContent,defaultContent:Lr,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},function(e,t,n,r){return pl("th",Sa({ref:e,className:s.concat(t).join(" "),colSpan:o.colSpan},o.extraDataAttrs),pl("div",{className:"fc-scrollgrid-sync-inner"},pl("a",{className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" "),ref:n},r)))})},Gu);function Gu(){return null!==Vu&&Vu.apply(this,arguments)||this}var ju,qu=(t(Yu,ju=dl),Yu.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},Yu.prototype.componentDidMount=function(){this.setTimeout()},Yu.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},Yu.prototype.componentWillUnmount=function(){this.clearTimeout()},Yu.prototype.computeTiming=function(){var e=this.props,t=this.context,n=de(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),e=t.dateEnv.add(r,Ae(1,e.unit)),n=e.valueOf()-n.valueOf(),n=Math.min(864e5,n);return{currentState:{nowDate:r,todayRange:Ur(r)},nextState:{nowDate:e,todayRange:Ur(e)},waitMs:n}},Yu.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,t=t.waitMs;this.timeoutId=setTimeout(function(){e.setState(n,function(){e.setTimeout()})},t)},Yu.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},Yu.contextType=Dl,Yu);function Yu(e,t){e=ju.call(this,e,t)||this;return e.initialNowDate=ln(t.options.now,t.dateEnv),e.initialNowQueriedMs=(new Date).valueOf(),e.state=e.computeTiming().currentState,e}var Zu,Xu=(t(Ku,Zu=xl),Ku.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,i=t.renderIntro,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return pl(qu,{unit:"day"},function(e,t){return pl("tr",null,i&&i("day"),n.map(function(e){return o?pl(Bu,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:a}):pl(Fu,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a})}))})},Ku);function Ku(){var e=null!==Zu&&Zu.apply(this,arguments)||this;return e.createDayHeaderFormatter=Qe(Br),e}var $u=(Ju.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(ce(e.end,-1)),r=Math.max(0,t),e=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(e=Math.floor(e))?{firstIndex:r,lastIndex:e,isStart:t===r,isEnd:n===e}:null},Ju.prototype.getDateDayIndex=function(e){var t=this.indices,e=Math.floor(fe(this.dates[0],e));return e<0?t[0]-1:e>=t.length?t[t.length-1]+1:t[e]},Ju);function Ju(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n<r;)t.isHiddenDay(n)?o.push(a+.5):(o.push(a+=1),i.push(n)),n=ce(n,1);this.dates=i,this.indices=o,this.cnt=i.length}var Qu=(ec.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},ec.prototype.buildCell=function(e,t){t=this.daySeries.dates[e*this.colCnt+t];return{key:t.toISOString(),date:t}},ec.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},ec.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var o=n.firstIndex,i=n.lastIndex,a=o;a<=i;){var s=Math.floor(a/t),l=Math.min((s+1)*t,i+1);r.push({row:s,firstCol:a%t,lastCol:(l-1)%t,isStart:n.isStart&&a===o,isEnd:n.isEnd&&l-1===i}),a=l}return r},ec);function ec(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}var tc=(nc.prototype.sliceProps=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=e.eventUiBases,s=this.sliceEventStore.apply(this,g([e.eventStore,a,t,n],o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,g([e.dateSelection,a,r],o)),businessHourSegs:this.sliceBusinessHours.apply(this,g([e.businessHours,t,n,r],o)),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag.apply(this,g([e.eventDrag,a,t,n],o)),eventResize:this.sliceEventResize.apply(this,g([e.eventResize,a,t,n],o)),eventSelection:e.eventSelection}},nc.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,g([{range:{start:e,end:de(e,1)},allDay:!1},{},t],n))},nc.prototype._sliceBusinessHours=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];return e?this._sliceEventStore.apply(this,g([Oe(e,zr(t,Boolean(n)),r),{},t,n],o)).bg:[]},nc.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){r=At(e,t,zr(n,Boolean(r)),r);return{bg:this.sliceEventRanges(r.bg,o),fg:this.sliceEventRanges(r.fg,o)}}return{bg:[],fg:[]}},nc.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;r=At(e.mutatedEvents,t,zr(n,Boolean(r)),r);return{segs:this.sliceEventRanges(r.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},nc.prototype._sliceDateSpan=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];if(!e)return[];for(var i,a,s=(i=e,a=t,{def:t=Rt((n=bt({editable:!1},t=n)).refined,n.extra,"",i.allDay,!0,t),ui:zt(t,a),instance:we(t.defId,i.range),range:i.range,isStart:!0,isEnd:!0}),e=this.sliceRange.apply(this,g([e.range],r)),l=0,u=e;l<u.length;l++)u[l].eventRange=s;return e},nc.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},nc.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:ce(n.start,1)});for(var t=this.sliceRange.apply(this,g([n],t)),r=0,o=t;r<o.length;r++){var i=o[r];i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd}return t},nc);function nc(){this.sliceBusinessHours=Qe(this._sliceBusinessHours),this.sliceDateSelection=Qe(this._sliceDateSpan),this.sliceEventStore=Qe(this._sliceEventStore),this.sliceEventDrag=Qe(this._sliceInteraction),this.sliceEventResize=Qe(this._sliceInteraction),this.forceDayIfListItem=!1}var rc,oc=/^(visible|hidden)$/,ic=(t(ac,rc=xl),ac.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),pl("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},ac.prototype.needsXScrolling=function(){if(oc.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},ac.prototype.needsYScrolling=function(){if(oc.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},ac.prototype.getXScrollbarWidth=function(){return oc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},ac.prototype.getYScrollbarWidth=function(){return oc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},ac);function ac(){var t=null!==rc&&rc.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,Bn(t.props.elRef,e)},t}var sc=(lc.prototype.createRef=function(t){var n=this;return this.callbackMap[t]||(this.callbackMap[t]=function(e){n.handleValue(e,String(t))})},lc.prototype.collect=function(e,t,n){return He(this.currentMap,e,t,n)},lc.prototype.getAll=function(){return Me(this.currentMap)},lc);function lc(e){var a=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,t){var n=a.depths,r=a.currentMap,o=!1,i=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,i=!0):(--n[t],n[t]||(delete r[t],delete a.callbackMap[t],o=!0)),a.masterCallback&&(o&&a.masterCallback(null,String(t)),i&&a.masterCallback(e,String(t)))}}var uc,cc=(t(dc,uc=xl),dc.prototype.render=function(){var e=this.props,t=this.state,n=this.context,r=e.sections||[],o=this.processCols(e.cols),i=this.renderMicroColGroup(o,t.shrinkWidth),t=no(e.liquid,n);e.collapsibleWidth&&t.push("fc-scrollgrid-collapsible");for(var a,s=r.length,l=0,u=[],c=[],d=[];l<s&&"header"===(a=r[l]).type;)u.push(this.renderSection(a,i)),l+=1;for(;l<s&&"body"===(a=r[l]).type;)c.push(this.renderSection(a,i)),l+=1;for(;l<s&&"footer"===(a=r[l]).type;)d.push(this.renderSection(a,i)),l+=1;n=!Dn();return pl("table",{className:t.join(" "),style:{height:e.height}},Boolean(!n&&u.length)&&pl.apply(void 0,g(["thead",{}],u)),Boolean(!n&&c.length)&&pl.apply(void 0,g(["tbody",{}],c)),Boolean(!n&&d.length)&&pl.apply(void 0,g(["tfoot",{}],d)),n&&pl.apply(void 0,g(g(g(["tbody",{}],u),c),d)))},dc.prototype.renderSection=function(e,t){return"outerContent"in e?pl(gl,{key:e.key},e.outerContent):pl("tr",{key:e.key,className:ro(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk))},dc.prototype.renderChunkTd=function(e,t,n){if("outerContent"in n)return n.outerContent;var r=this.props,o=this.state,i=o.forceYScrollbars,a=o.scrollerClientWidths,s=o.scrollerClientHeights,l=Kr(r,e),o=Xr(r,e),i=r.liquid?i?"scroll":l?"auto":"hidden":"visible",l=e.key,s=$r(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===a[l]?null:a[l],clientHeight:void 0!==s[l]?s[l]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return pl("td",{ref:n.elRef},pl("div",{className:"fc-scroller-harness"+(o?" fc-scroller-harness-liquid":"")},pl(ic,{ref:this.scrollerRefs.createRef(l),elRef:this.scrollerElRefs.createRef(l),overflowY:i,overflowX:r.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:o,liquidIsAbsolute:!0},s)))},dc.prototype._handleScrollerEl=function(e,t){t=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}(this.props.sections,t);t&&Bn(t.chunk.scrollerElRef,e)},dc.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},dc.prototype.componentDidUpdate=function(){this.handleSizing()},dc.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},dc.prototype.computeShrinkWidth=function(){return to(this.props.cols)?Zr(this.scrollerElRefs.getAll()):0},dc.prototype.computeScrollerDims=function(){var e=Mn(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,o={},i={};for(u in t.currentMap){var a=t.currentMap[u];if(a&&a.needsYScrolling()){r=!0;break}}for(var s=0,l=this.props.sections;s<l.length;s++){var u=l[s].key,c=n.currentMap[u];c&&(c=c.parentNode,o[u]=Math.floor(c.getBoundingClientRect().width-(r?e.y:0)),i[u]=Math.floor(c.getBoundingClientRect().height))}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}},dc);function dc(){var e=null!==uc&&uc.apply(this,arguments)||this;return e.processCols=Qe(function(e){return e},Jr),e.renderMicroColGroup=Qe(Qr),e.scrollerRefs=new sc,e.scrollerElRefs=new sc(e._handleScrollerEl.bind(e)),e.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},e.handleSizing=function(){e.setState(Sa({shrinkWidth:e.computeShrinkWidth()},e.computeScrollerDims()))},e}cc.addStateEquality({scrollerClientWidths:Pe,scrollerClientHeights:Pe});var pc,fc=(t(hc,pc=xl),hc.prototype.render=function(){var o=this.props,e=this.context,t=e.options,n=o.seg,r=n.eventRange,i=r.ui,a={event:new Hs(e,r.def,r.instance),view:e.viewApi,timeText:o.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!o.disableDragging&&Gt(n,e),isStartResizable:!o.disableResizing&&jt(n,e),isEndResizable:!o.disableResizing&&qt(n),isMirror:Boolean(o.isDragging||o.isResizing||o.isDateSelecting),isStart:Boolean(n.isStart),isEnd:Boolean(n.isEnd),isPast:Boolean(o.isPast),isFuture:Boolean(o.isFuture),isToday:Boolean(o.isToday),isSelected:Boolean(o.isSelected),isDragging:Boolean(o.isDragging),isResizing:Boolean(o.isResizing)},s=Xt(a).concat(i.classNames);return pl(Al,{hookProps:a,classNames:t.eventClassNames,content:t.eventContent,defaultContent:o.defaultContent,didMount:t.eventDidMount,willUnmount:t.eventWillUnmount,elRef:this.elRef},function(e,t,n,r){return o.children(e,s.concat(t),n,r,a)})},hc.prototype.componentDidMount=function(){Lt(this.elRef.current,this.props.seg)},hc.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&Lt(this.elRef.current,t)},hc);function hc(){var e=null!==pc&&pc.apply(this,arguments)||this;return e.elRef=hl(),e}var gc,vc=(t(mc,gc=xl),mc.prototype.render=function(){var i=this.props,e=this.context,a=i.seg,t=e.options.eventTimeFormat||i.defaultTimeFormat,e=Yt(a,t,e,i.defaultDisplayEventTime,i.defaultDisplayEventEnd);return pl(fc,{seg:a,timeText:e,disableDragging:i.disableDragging,disableResizing:i.disableResizing,defaultContent:i.defaultContent||so,isDragging:i.isDragging,isResizing:i.isResizing,isDateSelecting:i.isDateSelecting,isSelected:i.isSelected,isPast:i.isPast,isFuture:i.isFuture,isToday:i.isToday},function(e,t,n,r,o){return pl("a",Sa({className:i.extraClassNames.concat(t).join(" "),style:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},ref:e},(e=(e=a).eventRange.def.url)?{href:e}:{}),pl("div",{className:"fc-event-main",ref:n,style:{color:o.textColor}},r),o.isStartResizable&&pl("div",{className:"fc-event-resizer fc-event-resizer-start"}),o.isEndResizable&&pl("div",{className:"fc-event-resizer fc-event-resizer-end"}))})},mc);function mc(){return null!==gc&&gc.apply(this,arguments)||this}function yc(n){return pl(Dl.Consumer,null,function(e){var t=e.options,e={isAxis:n.isAxis,date:e.dateEnv.toDate(n.date),view:e.viewApi};return pl(Al,{hookProps:e,classNames:t.nowIndicatorClassNames,content:t.nowIndicatorContent,didMount:t.nowIndicatorDidMount,willUnmount:t.nowIndicatorWillUnmount},n.children)})}var Sc,Ec=at({day:"numeric"}),Cc=(t(bc,Sc=xl),bc.prototype.render=function(){var e=this.props,t=this.context,n=t.options,t=lo({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return pl(Gn,{hookProps:t,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},bc);function bc(){return null!==Sc&&Sc.apply(this,arguments)||this}var Dc,Rc=(t(wc,Dc=xl),wc.prototype.render=function(){var t=this.props,e=this.context,n=e.options,r=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:e.viewApi,dateEnv:e.dateEnv}),o=Tn(r,e.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),i=r.isDisabled?{}:{"data-date":Ze(t.date)};return pl(Fl,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:t.elRef},function(e){return t.children(e,o,i,r.isDisabled)})},wc);function wc(){var e=null!==Dc&&Dc.apply(this,arguments)||this;return e.refineHookProps=et(lo),e.normalizeClassNames=jn(),e}function Tc(e){return pl(fc,{defaultContent:co,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},function(e,t,n,r,o){return pl("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)})}function xc(i){return pl(Dl.Consumer,null,function(e){var t=e.dateEnv,n=e.options,r=i.date,o=n.weekNumberFormat||i.defaultFormat,e=t.computeWeekNumber(r),o=t.format(r,o);return pl(Al,{hookProps:{num:e,text:o,date:r},classNames:n.weekNumberClassNames,content:n.weekNumberContent,defaultContent:po,didMount:n.weekNumberDidMount,willUnmount:n.weekNumberWillUnmount},i.children)})}var kc,_c=(t(Mc,kc=xl),Mc.prototype.render=function(){var e=this.context.theme,t=this.props,n=["fc-popover",e.getClass("popover")].concat(t.extraClassNames||[]);return ml(pl("div",Sa({className:n.join(" ")},t.extraAttrs,{ref:this.handleRootEl}),pl("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},pl("span",{className:"fc-popover-title"},t.title),pl("span",{className:"fc-popover-close "+e.getIconClass("close"),onClick:this.handleCloseClick})),pl("div",{className:"fc-popover-body "+e.getClass("popoverContent")},t.children)),t.parentEl)},Mc.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMousedown),this.updateSize()},Mc.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMousedown)},Mc.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,o=this.rootEl,i=function(e){for(var t=On(e),n=e.getBoundingClientRect(),r=0,o=t;r<o.length;r++){var i=yn(n,o[r].getBoundingClientRect());if(!i)return null;n=i}return n}(n);i&&(t=o.getBoundingClientRect(),n=(r?A(n,".fc-scrollgrid").getBoundingClientRect():i).top,i=e?i.right-t.width:i.left,n=Math.max(n,10),i=Math.min(i,document.documentElement.clientWidth-10-t.width),i=Math.max(i,10),t=o.offsetParent.getBoundingClientRect(),B(o,{top:n-t.top,left:i-t.left}))},Mc);function Mc(){var t=null!==kc&&kc.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&Bn(t.props.elRef,e)},t.handleDocumentMousedown=function(e){e=V(e);t.rootEl.contains(e)||t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}var Pc,Ic=(t(Nc,Pc=Ml),Nc.prototype.render=function(){var e=this.context,t=e.options,e=e.dateEnv,r=this.props,o=r.startDate,i=r.todayRange,a=r.dateProfile,s=e.format(o,t.dayPopoverFormat);return pl(Rc,{date:o,dateProfile:a,todayRange:i,elRef:this.handleRootEl},function(e,t,n){return pl(_c,{elRef:e,title:s,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},pl(Cc,{date:o,dateProfile:a,todayRange:i},function(e,t){return t&&pl("div",{className:"fc-more-popover-misc",ref:e},t)}),r.children)})},Nc.prototype.queryHit=function(e,t,n,r){var o=this.rootEl,i=this.props;return 0<=e&&e<n&&0<=t&&t<r?{dateProfile:i.dateProfile,dateSpan:Sa({allDay:!0,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},Nc);function Nc(){var t=null!==Pc&&Pc.apply(this,arguments)||this;return t.handleRootEl=function(e){(t.rootEl=e)?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}var Hc,Oc=(t(Ac,Hc=xl),Ac.prototype.render=function(){var a=this,s=this.props;return pl(Dl.Consumer,null,function(e){var t=e.viewApi,n=e.options,r=e.calendarApi,o=n.moreLinkText,i=s.moreCnt,e=ho(s),t={num:i,shortText:"+"+i,text:"function"==typeof o?o.call(r,i):"+"+i+" "+o,view:t};return pl(gl,null,Boolean(s.moreCnt)&&pl(Al,{elRef:a.linkElRef,hookProps:t,classNames:n.moreLinkClassNames,content:n.moreLinkContent,defaultContent:s.defaultContent||fo,didMount:n.moreLinkDidMount,willUnmount:n.moreLinkWillUnmount},function(e,t,n,r){return s.children(e,["fc-more-link"].concat(t),n,r,a.handleClick)}),a.state.isPopoverOpen&&pl(Ic,{startDate:e.start,endDate:e.end,dateProfile:s.dateProfile,todayRange:s.todayRange,extraDateSpan:s.extraDateSpan,parentEl:a.parentEl,alignmentEl:s.alignmentElRef.current,alignGridTop:s.alignGridTop,onClose:a.handlePopoverClose},s.popoverContent()))})},Ac.prototype.componentDidMount=function(){this.updateParentEl()},Ac.prototype.componentDidUpdate=function(){this.updateParentEl()},Ac.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=A(this.linkElRef.current,".fc-view-harness"))},Ac);function Ac(){var a=null!==Hc&&Hc.apply(this,arguments)||this;return a.linkElRef=hl(),a.state={isPopoverOpen:!1},a.handleClick=function(e){function t(e){var t=e.eventRange,n=t.def,r=t.instance,t=t.range;return{event:new Hs(o,n,r),start:o.dateEnv.toDate(t.start),end:o.dateEnv.toDate(t.end),isStart:e.isStart,isEnd:e.isEnd}}var n=a.props,o=a.context,r=o.options.moreLinkClick,i=ho(n).start;(r="function"==typeof r?r({date:i,allDay:Boolean(n.allDayDate),allSegs:n.allSegs.map(t),hiddenSegs:n.hiddenSegs.map(t),jsEvent:e,view:o.viewApi}):r)&&"popover"!==r?"string"==typeof r&&o.calendarApi.zoomTo(i,r):a.setState({isPopoverOpen:!0})},a.handlePopoverClose=function(){a.setState({isPopoverOpen:!1})},a}var Wc,Lc=(t(Uc,Wc=Is),Object.defineProperty(Uc.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),Uc.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},Uc.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},Uc.prototype.updateSize=function(){Wc.prototype.updateSize.call(this),yl()},Uc.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},Uc.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},Uc.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},Uc.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},Uc.prototype.setClassNames=function(e){if(!Je(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n<r.length;n++){var o=r[n];t.remove(o)}for(var i=0,a=e;i<a.length;i++){o=a[i];t.add(o)}this.currentClassNames=e}},Uc.prototype.setHeight=function(e){z(this.el,"height",e)},Uc);function Uc(e,t){void 0===t&&(t={});var i=Wc.call(this)||this;return i.isRendering=!1,i.isRendered=!1,i.currentClassNames=[],i.customContentRenderId=0,i.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":i.renderRunner.tryDrain()}},i.handleData=function(e){i.currentData=e,i.renderRunner.request(e.calendarOptions.rerenderDelay)},i.handleRenderRequest=function(){var o;i.isRendering?(i.isRendered=!0,o=i.currentData,fl(pl(Au,{options:o.calendarOptions,theme:o.theme,emitter:o.emitter},function(e,t,n,r){return i.setClassNames(e),i.setHeight(t),pl(Ul.Provider,{value:i.customContentRenderId},pl(Nu,Sa({isHeightAuto:n,forPrint:r},o)))}),i.el)):i.isRendered&&(i.isRendered=!1,Sl(i.el),i.setClassNames([]),i.setHeight("")),yl()},i.el=e,i.renderRunner=new Jl(i.handleRenderRequest),new nu({optionOverrides:t,calendarApi:i,onAction:i.handleAction,onData:i.handleData}),i}vu.touchMouseIgnoreWait=500;var Bc=0,zc=0,Vc=!1,Fc=(Gc.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),--zc||window.removeEventListener("touchmove",yo,{passive:!1})},Gc.prototype.tryStart=function(e){var t=this.querySubjectEl(e),e=e.target;return!(!t||this.handleSelector&&!A(e,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,!(this.wasTouchScroll=!1))},Gc.prototype.cleanup=function(){Vc=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},Gc.prototype.querySubjectEl=function(e){return this.selector?A(e.target,this.selector):this.containerEl},Gc.prototype.shouldIgnoreMouse=function(){return Bc||this.isTouchDragging},Gc.prototype.cancelTouchScroll=function(){this.isDragging&&(Vc=!0)},Gc.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},Gc.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},Gc.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},Gc.prototype.createEventFromMouse=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}},Gc.prototype.createEventFromTouch=function(e,t){var n,r=e.touches,o=0,i=0,r=r&&r.length?(n=r[0].pageX,r[0].pageY):(n=e.pageX,e.pageY);return t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,i=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:i}},Gc);function Gc(e){var r=this;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){var t;r.shouldIgnoreMouse()||(0!==(t=e).button||t.ctrlKey)||!r.tryStart(e)||(e=r.createEventFromMouse(e,!0),r.emitter.trigger("pointerdown",e),r.initScrollWatch(e),r.shouldIgnoreMove||document.addEventListener("mousemove",r.handleMouseMove),document.addEventListener("mouseup",r.handleMouseUp))},this.handleMouseMove=function(e){e=r.createEventFromMouse(e);r.recordCoords(e),r.emitter.trigger("pointermove",e)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",r.handleMouseMove),document.removeEventListener("mouseup",r.handleMouseUp),r.emitter.trigger("pointerup",r.createEventFromMouse(e)),r.cleanup()},this.handleTouchStart=function(e){var t;r.tryStart(e)&&(r.isTouchDragging=!0,t=r.createEventFromTouch(e,!0),r.emitter.trigger("pointerdown",t),r.initScrollWatch(t),e=e.target,r.shouldIgnoreMove||e.addEventListener("touchmove",r.handleTouchMove),e.addEventListener("touchend",r.handleTouchEnd),e.addEventListener("touchcancel",r.handleTouchEnd),window.addEventListener("scroll",r.handleTouchScroll,!0))},this.handleTouchMove=function(e){e=r.createEventFromTouch(e);r.recordCoords(e),r.emitter.trigger("pointermove",e)},this.handleTouchEnd=function(e){var t;r.isDragging&&((t=e.target).removeEventListener("touchmove",r.handleTouchMove),t.removeEventListener("touchend",r.handleTouchEnd),t.removeEventListener("touchcancel",r.handleTouchEnd),window.removeEventListener("scroll",r.handleTouchScroll,!0),r.emitter.trigger("pointerup",r.createEventFromTouch(e)),r.cleanup(),r.isTouchDragging=!1,Bc+=1,setTimeout(function(){--Bc},vu.touchMouseIgnoreWait))},this.handleTouchScroll=function(){r.wasTouchScroll=!0},this.handleScroll=function(e){var t,n;r.shouldIgnoreMove||(t=window.pageXOffset-r.prevScrollX+r.prevPageX,n=window.pageYOffset-r.prevScrollY+r.prevPageY,r.emitter.trigger("pointermove",{origEvent:e,isTouch:r.isTouchDragging,subjectEl:r.subjectEl,pageX:t,pageY:n,deltaX:t-r.origPageX,deltaY:n-r.origPageY}))},this.containerEl=e,this.emitter=new $s,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(zc+=1)&&window.addEventListener("touchmove",yo,{passive:!1})}var jc=(qc.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},qc.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},qc.prototype.setIsVisible=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)},qc.prototype.stop=function(e,t){function n(){r.cleanup(),t()}var r=this;e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)},qc.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",B(n,{left:r.left,top:r.top}),Y(n,function(){n.style.transition="",e()})},qc.prototype.cleanup=function(){this.mirrorEl&&(O(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},qc.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&B(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},qc.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),B(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},qc);function qc(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}var Yc,Zc=(t(Xc,Yc=tl),Xc.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},Xc.prototype.getScrollTop=function(){return this.scrollTop},Xc.prototype.getScrollLeft=function(){return this.scrollLeft},Xc.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},Xc.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},Xc.prototype.getClientWidth=function(){return this.clientWidth},Xc.prototype.getClientHeight=function(){return this.clientHeight},Xc.prototype.getScrollWidth=function(){return this.scrollWidth},Xc.prototype.getScrollHeight=function(){return this.scrollHeight},Xc.prototype.handleScrollChange=function(){},Xc);function Xc(e,t){var n=Yc.call(this)||this;return n.handleScroll=function(){n.scrollTop=n.scrollController.getScrollTop(),n.scrollLeft=n.scrollController.getScrollLeft(),n.handleScrollChange()},n.scrollController=e,n.doesListening=t,n.scrollTop=n.origScrollTop=e.getScrollTop(),n.scrollLeft=n.origScrollLeft=e.getScrollLeft(),n.scrollWidth=e.getScrollWidth(),n.scrollHeight=e.getScrollHeight(),n.clientWidth=e.getClientWidth(),n.clientHeight=e.getClientHeight(),n.clientRect=n.computeClientRect(),n.doesListening&&n.getEventTarget().addEventListener("scroll",n.handleScroll),n}var Kc,$c=(t(Jc,Kc=Zc),Jc.prototype.getEventTarget=function(){return this.scrollController.el},Jc.prototype.computeClientRect=function(){return Nn(this.scrollController.el)},Jc);function Jc(e,t){return Kc.call(this,new ol(e),t)||this}var Qc,ed=(t(td,Qc=Zc),td.prototype.getEventTarget=function(){return window},td.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},td.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},td);function td(e){return Qc.call(this,new sl,e)||this}var nd=("function"==typeof performance?performance:Date).now,rd=(od.prototype.start=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))},od.prototype.handleMove=function(e,t){var n,r;this.isEnabled&&(n=e-window.pageXOffset,r=t-window.pageYOffset,e=null===this.pointerScreenY?0:r-this.pointerScreenY,t=null===this.pointerScreenX?0:n-this.pointerScreenX,e<0?this.everMovedUp=!0:0<e&&(this.everMovedDown=!0),t<0?this.everMovedLeft=!0:0<t&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(nd())))},od.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++)t[e].destroy();this.scrollCaches=null}},od.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},od.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,o=r-e.distance,i=o*o/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*a)}},od.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,o=0,i=this.scrollCaches;o<i.length;o++){var a=i[o],s=a.clientRect,l=e-s.left,u=s.right-e,c=t-s.top,s=s.bottom-t;0<=l&&0<=u&&0<=c&&0<=s&&(c<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:a,name:"top",distance:c}),s<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>s)&&(r={scrollCache:a,name:"bottom",distance:s}),l<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:a,name:"left",distance:l}),u<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"right",distance:u}))}return r},od.prototype.buildCaches=function(e){return this.queryScrollEls(e).map(function(e){return e===window?new ed(!1):new $c(e,!1)})},od.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n<r.length;n++){var o=r[n];"object"==typeof o?t.push(o):t.push.apply(t,Array.prototype.slice.call(F(e).querySelectorAll(o)))}return t},od);function od(){var n=this;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(){var e,t;n.isAnimating&&((e=n.computeBestEdge(n.pointerScreenX+window.pageXOffset,n.pointerScreenY+window.pageYOffset))?(t=nd(),n.handleSide(e,(t-n.msSinceRequest)/1e3),n.requestAnimation(t)):n.isAnimating=!1)}}var id,ad=(t(sd,id=fu),sd.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},sd.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null,t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},sd.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},sd.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},sd.prototype.tryStartDrag=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()))},sd.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},sd.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},sd.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},sd.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},sd.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},sd.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},sd);function sd(e,t){var n=id.call(this,e)||this;n.containerEl=e,n.delay=null,n.minDistance=0,n.touchScrollAllowed=!0,n.mirrorNeedsRevert=!1,n.isInteracting=!1,n.isDragging=!1,n.isDelayEnded=!1,n.isDistanceSurpassed=!1,n.delayTimeoutId=null,n.onPointerDown=function(e){n.isDragging||(n.isInteracting=!0,n.isDelayEnded=!1,n.isDistanceSurpassed=!1,$(document.body),Q(document.body),e.isTouch||e.origEvent.preventDefault(),n.emitter.trigger("pointerdown",e),n.isInteracting&&!n.pointer.shouldIgnoreMove&&(n.mirror.setIsVisible(!1),n.mirror.start(e.subjectEl,e.pageX,e.pageY),n.startDelay(e),n.minDistance||n.handleDistanceSurpassed(e)))},n.onPointerMove=function(e){var t;n.isInteracting&&(n.emitter.trigger("pointermove",e),n.isDistanceSurpassed||(t=n.minDistance)*t<=(t=e.deltaX)*t+(t=e.deltaY)*t&&n.handleDistanceSurpassed(e),n.isDragging&&("scroll"!==e.origEvent.type&&(n.mirror.handleMove(e.pageX,e.pageY),n.autoScroller.handleMove(e.pageX,e.pageY)),n.emitter.trigger("dragmove",e)))},n.onPointerUp=function(e){n.isInteracting&&(n.isInteracting=!1,J(document.body),ee(document.body),n.emitter.trigger("pointerup",e),n.isDragging&&(n.autoScroller.stop(),n.tryStopDrag(e)),n.delayTimeoutId&&(clearTimeout(n.delayTimeoutId),n.delayTimeoutId=null))};e=n.pointer=new Fc(e);return e.emitter.on("pointerdown",n.onPointerDown),e.emitter.on("pointermove",n.onPointerMove),e.emitter.on("pointerup",n.onPointerUp),t&&(e.selector=t),n.mirror=new jc,n.autoScroller=new rd,n}var ld=(ud.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++)t[e].destroy()},ud.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},ud.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},ud.prototype.isWithinClipping=function(e,t){for(var n,r={left:e,top:t},o=0,i=this.scrollCaches;o<i.length;o++){var a=i[o];if("HTML"!==(n=(n=a.getEventTarget()).tagName)&&"BODY"!==n&&!mn(r,a.clientRect))return!1}return!0},ud);function ud(e){this.origRect=Hn(e),this.scrollCaches=On(e).map(function(e){return new $c(e,!0)})}var cd=(dd.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},r=n,e=e.subjectEl;e instanceof HTMLElement&&(r=En(r,t=Hn(e)));e=this.initialHit=this.queryHitForOffset(r.left,r.top);e?(this.useSubjectCenter&&t&&((e=yn(t,e.rect))&&(r=Cn(e))),this.coordAdjust=bn(r,n)):this.coordAdjust={left:0,top:0}},dd.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&So(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},dd.prototype.prepareHits=function(){this.offsetTrackers=ke(this.droppableStore,function(e){return e.component.prepareHits(),new ld(e.el)})},dd.prototype.releaseHits=function(){var e,t=this.offsetTrackers;for(e in t)t[e].destroy();this.offsetTrackers={}},dd.prototype.queryHitForOffset=function(e,t){var n,r=this.droppableStore,o=this.offsetTrackers,i=null;for(n in r){var a,s,l,u,c,d=r[n].component,p=o[n];p&&p.isWithinClipping(e,t)&&(a=p.computeLeft(),l=t-(s=p.computeTop()),c=(u=p.origRect).right-u.left,p=u.bottom-u.top,0<=(u=e-a)&&u<c&&0<=l&&l<p&&((p=d.queryHit(u,l,c,p))&&Ht(p.dateProfile.activeRange,p.dateSpan.range)&&(!i||p.layer>i.layer)&&(p.componentId=n,p.context=d.context,p.rect.left+=a,p.rect.right+=a,p.rect.top+=s,p.rect.bottom+=s,i=p)))}return i},dd);function dd(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new $s}var pd,fd=(t(hd,pd=cu),hd.prototype.destroy=function(){this.dragging.destroy()},hd);function hd(e){var o=pd.call(this,e)||this;o.handlePointerDown=function(e){var t=o.dragging,e=e.origEvent.target;t.setIgnoreMove(!o.component.isValidDateDownEl(e))},o.handleDragEnd=function(e){var t,n,r=o.component;o.dragging.pointer.wasTouchScroll||(t=(n=o.hitDragging).initialHit,n=n.finalHit,t&&n&&So(t,n)&&(r=r.context,e=Sa(Sa({},Eo(t.dateSpan,r)),{dayEl:t.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view}),r.emitter.trigger("dateClick",e)))},o.dragging=new ad(e.el),o.dragging.autoScroller.isEnabled=!1;e=o.hitDragging=new cd(o.dragging,Nr(e));return e.emitter.on("pointerdown",o.handlePointerDown),e.emitter.on("dragend",o.handleDragEnd),o}var gd,vd=(t(md,gd=cu),md.prototype.destroy=function(){this.dragging.destroy()},md);function md(e){var a=gd.call(this,e)||this;a.dragSelection=null,a.handlePointerDown=function(e){var t=a.component,n=a.dragging,r=t.context.options.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!r),n.delay=e.isTouch?e=null==(e=(t=(e=t).context.options).selectLongPressDelay)?t.longPressDelay:e:null},a.handleDragStart=function(e){a.component.context.calendarApi.unselect(e)},a.handleHitUpdate=function(e,t){var n,r=a.component.context,o=null,i=!1;e&&(n=a.hitDragging.initialHit,(o=!(e.componentId===n.componentId&&a.isHitComboAllowed&&!a.isHitComboAllowed(n,e))?function(e,t,n){var r=e.dateSpan,o=t.dateSpan;(o=[r.range.start,r.range.end,o.range.start,o.range.end]).sort(ae);for(var i={},a=0,s=n;a<s.length;a++){var l=(0,s[a])(e,t);if(!1===l)return null;l&&Sa(i,l)}return i.range={start:o[0],end:o[3]},i.allDay=r.allDay,i}(n,e,r.pluginHooks.dateSelectionTransformers):o)&&Fr(o,e.dateProfile,r)||(i=!0,o=null)),o?r.dispatch({type:"SELECT_DATES",selection:o}):t||r.dispatch({type:"UNSELECT_DATES"}),(i?X:K)(),t||(a.dragSelection=o)},a.handlePointerUp=function(e){a.dragSelection&&(tn(a.dragSelection,e,a.component.context),a.dragSelection=null)};var t=e.component.context.options,n=a.dragging=new ad(e.el);n.touchScrollAllowed=!1,n.minDistance=t.selectMinDistance||0,n.autoScroller.isEnabled=t.dragScroll;e=a.hitDragging=new cd(a.dragging,Nr(e));return e.emitter.on("pointerdown",a.handlePointerDown),e.emitter.on("dragstart",a.handleDragStart),e.emitter.on("hitupdate",a.handleHitUpdate),e.emitter.on("pointerup",a.handlePointerUp),a}var yd,Sd=(t(Ed,yd=cu),Ed.prototype.destroy=function(){this.dragging.destroy()},Ed.prototype.displayDrag=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:ht(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},Ed.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},Ed.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},Ed.SELECTOR=".fc-event-draggable, .fc-event-resizable",Ed);function Ed(e){var v=yd.call(this,e)||this;v.subjectEl=null,v.subjectSeg=null,v.isDragging=!1,v.eventRange=null,v.relevantEvents=null,v.receivingContext=null,v.validMutation=null,v.mutatedRelevantEvents=null,v.handlePointerDown=function(e){var t=e.origEvent.target,n=v.component,r=v.dragging,o=r.mirror,i=n.context.options,a=n.context;v.subjectEl=e.subjectEl;var s=v.subjectSeg=Ut(e.subjectEl),s=(v.eventRange=s.eventRange).instance.instanceId;v.relevantEvents=ft(a.getCurrentData().eventStore,s),r.minDistance=e.isTouch?0:i.eventDragMinDistance,r.delay=e.isTouch&&s!==n.props.eventSelection?a=null==(a=(s=(a=n).context.options).eventLongPressDelay)?s.longPressDelay:a:null,i.fixedMirrorParent?o.parentNode=i.fixedMirrorParent:o.parentNode=A(t,".fc"),o.revertDuration=i.dragRevertDuration;t=n.isValidSegDownEl(t)&&!A(t,".fc-event-resizer");r.setIgnoreMove(!t),v.isDragging=t&&e.subjectEl.classList.contains("fc-event-draggable")},v.handleDragStart=function(e){var t=v.component.context,n=v.eventRange,r=n.instance.instanceId;e.isTouch?r!==v.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),v.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:v.subjectEl,event:new Hs(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},v.handleHitUpdate=function(e,t){var n,r,o,i,a,s,l,u,c;v.isDragging&&(n=v.relevantEvents,r=v.hitDragging.initialHit,o=v.component.context,a=i=u=null,l={affectedEvents:n,mutatedEvents:ht(),isEvent:!(s=!1)},e&&(c=(u=e.context).options,o===u||c.editable&&c.droppable?(i=function(e,t,n){var r=e.dateSpan,o=t.dateSpan,i=r.range.start,a=o.range.start,s={};r.allDay!==o.allDay&&(s.allDay=o.allDay,s.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(i=me(i))),(a=kt(i,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null)).milliseconds&&(s.allDay=!1);for(var l={datesDelta:a,standardProps:s},u=0,c=n;u<c.length;u++)(0,c[u])(l,e,t);return l}(r,e,u.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(a=on(n,u.getCurrentData().eventUiBases,i,u),l.mutatedEvents=a,Vr(l,e.dateProfile,u)||(s=!0,a=i=null,l.mutatedEvents=ht())):u=null),v.displayDrag(u,l),(s?X:K)(),t||(o===u&&So(r,e)&&(i=null),v.dragging.setMirrorNeedsRevert(!i),v.dragging.setMirrorIsVisible(!e||!F(v.subjectEl).querySelector(".fc-event-mirror")),v.receivingContext=u,v.validMutation=i,v.mutatedRelevantEvents=a))},v.handlePointerUp=function(){v.isDragging||v.cleanup()},v.handleDragEnd=function(e){if(v.isDragging){var t=v.component.context,n=t.viewApi,r=v.receivingContext,o=v.validMutation,i=v.eventRange.def,a=v.eventRange.instance,s=new Hs(t,i,a),l=v.relevantEvents,u=v.mutatedRelevantEvents,c=v.hitDragging.finalHit;if(v.clearDrag(),t.emitter.trigger("eventDragStop",{el:v.subjectEl,event:s,jsEvent:e.origEvent,view:n}),o)if(r===t){var d=new Hs(t,u.defs[i.defId],a?u.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:u});for(var d={oldEvent:s,event:d,relatedEvents:cn(u,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},p={},f=0,h=t.getCurrentData().pluginHooks.eventDropTransformers;f<h.length;f++){var g=h[f];Sa(p,g(o,t))}t.emitter.trigger("eventDrop",Sa(Sa(Sa({},d),p),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",d)}else r&&(s={event:s,relatedEvents:cn(l,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},t.emitter.trigger("eventLeave",Sa(Sa({},s),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:l}),t.emitter.trigger("eventRemove",s),s=u.defs[i.defId],i=u.instances[a.instanceId],s=new Hs(r,s,i),r.dispatch({type:"MERGE_EVENTS",eventStore:u}),i={event:s,relatedEvents:cn(u,r,i),revert:function(){r.dispatch({type:"REMOVE_EVENTS",eventStore:u})}},r.emitter.trigger("eventAdd",i),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instanceId}),r.emitter.trigger("drop",Sa(Sa({},Eo(c.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:c.context.viewApi})),r.emitter.trigger("eventReceive",Sa(Sa({},i),{draggedEl:e.subjectEl,view:c.context.viewApi})));else t.emitter.trigger("_noEventDrop")}v.cleanup()};var t=v.component.context.options,n=v.dragging=new ad(e.el);n.pointer.selector=Ed.SELECTOR,n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.dragScroll;t=v.hitDragging=new cd(v.dragging,pu);return t.useSubjectCenter=e.useEventCenter,t.emitter.on("pointerdown",v.handlePointerDown),t.emitter.on("dragstart",v.handleDragStart),t.emitter.on("hitupdate",v.handleHitUpdate),t.emitter.on("pointerup",v.handlePointerUp),t.emitter.on("dragend",v.handleDragEnd),v}var Cd,bd=(t(Dd,Cd=cu),Dd.prototype.destroy=function(){this.dragging.destroy()},Dd.prototype.querySegEl=function(e){return A(e.subjectEl,".fc-event")},Dd);function Dd(e){var d=Cd.call(this,e)||this;d.draggingSegEl=null,d.draggingSeg=null,d.eventRange=null,d.relevantEvents=null,d.validMutation=null,d.mutatedRelevantEvents=null,d.handlePointerDown=function(e){var t=d.component,n=Ut(d.querySegEl(e)),n=d.eventRange=n.eventRange;d.dragging.minDistance=t.context.options.eventDragMinDistance,d.dragging.setIgnoreMove(!d.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&d.component.props.eventSelection!==n.instance.instanceId)},d.handleDragStart=function(e){var t=d.component.context,n=d.eventRange;d.relevantEvents=ft(t.getCurrentData().eventStore,d.eventRange.instance.instanceId);var r=d.querySegEl(e);d.draggingSegEl=r,d.draggingSeg=Ut(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new Hs(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},d.handleHitUpdate=function(e,t,n){var r=d.component.context,o=d.relevantEvents,i=d.hitDragging.initialHit,a=d.eventRange.instance,s=null,l=null,u=!1,c={affectedEvents:o,mutatedEvents:ht(),isEvent:!0};e&&(e.componentId===i.componentId&&d.isHitComboAllowed&&!d.isHitComboAllowed(i,e)||(s=function(e,t,n,r){var o=e.context.dateEnv,e=kt(e.dateSpan.range.start,t.dateSpan.range.start,o,e.largeUnit);if(n){if(o.add(r.start,e)<r.end)return{startDelta:e}}else if(o.add(r.end,e)>r.start)return{endDelta:e};return null}(i,e,n.subjectEl.classList.contains("fc-event-resizer-start"),a.range))),s&&(l=on(o,r.getCurrentData().eventUiBases,s,r),c.mutatedEvents=l,Vr(c,e.dateProfile,r)||(u=!0,c.mutatedEvents=l=s=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:c}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),(u?X:K)(),t||(s&&So(i,e)&&(s=null),d.validMutation=s,d.mutatedRelevantEvents=l)},d.handleDragEnd=function(e){var t=d.component.context,n=d.eventRange.def,r=d.eventRange.instance,o=new Hs(t,n,r),i=d.relevantEvents,a=d.mutatedRelevantEvents;t.emitter.trigger("eventResizeStop",{el:d.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),d.validMutation?(n=new Hs(t,a.defs[n.defId],r?a.instances[r.instanceId]:null),t.dispatch({type:"MERGE_EVENTS",eventStore:a}),r={oldEvent:o,event:n,relatedEvents:cn(a,t,r),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:i})}},t.emitter.trigger("eventResize",Sa(Sa({},r),{el:d.draggingSegEl,startDelta:d.validMutation.startDelta||Ae(0),endDelta:d.validMutation.endDelta||Ae(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",r)):t.emitter.trigger("_noEventResize"),d.draggingSeg=null,d.relevantEvents=null,d.validMutation=null};var t=e.component,n=d.dragging=new ad(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;e=d.hitDragging=new cd(d.dragging,Nr(e));return e.emitter.on("pointerdown",d.handlePointerDown),e.emitter.on("dragstart",d.handleDragStart),e.emitter.on("hitupdate",d.handleHitUpdate),e.emitter.on("dragend",d.handleDragEnd),d}var Rd=(wd.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},wd);function wd(e){var o=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(o.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var t=o.context.options.unselectCancel,e=V(e.origEvent);o.matchesCancel=!!A(e,t),o.matchesEvent=!!A(e,Sd.SELECTOR)},this.onDocumentPointerUp=function(e){var t=o.context,n=o.documentPointer,r=t.getCurrentData();n.wasTouchScroll||(r.dateSelection&&!o.isRecentPointerDateSelect&&(!t.options.unselectAuto||o.matchesCancel||t.calendarApi.unselect(e)),r.eventSelection&&!o.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})),o.isRecentPointerDateSelect=!1};var t=this.documentPointer=new Fc(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}var Td={fixedMirrorParent:ct},xd={dateClick:ct,eventDragStart:ct,eventDragStop:ct,eventDrop:ct,eventResizeStart:ct,eventResizeStop:ct,eventResize:ct,drop:ct,eventReceive:ct,eventLeave:ct},kd=(_d.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?Hr(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?Hr(this.suppliedDragMeta(e)):Co(e)},_d.prototype.displayDrag=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})},_d.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},_d.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean(W(e,n))},_d);function _d(e,t){var l=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){l.dragMeta=l.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,n){var r=l.hitDragging.dragging,o=null,i=null,a=!1,s={affectedEvents:ht(),mutatedEvents:ht(),isEvent:l.dragMeta.create};e&&(o=e.context,l.canDropElOnCalendar(n.subjectEl,o)&&(i=function(e,t,n){for(var r=Sa({},t.leftoverProps),o=0,i=n.pluginHooks.externalDefTransforms;o<i.length;o++){var a=i[o];Sa(r,a(e,t))}var s=Rt((l=bt(r,n)).refined,l.extra,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),l=e.range.start;return e.allDay&&t.startTime&&(l=n.dateEnv.add(l,t.startTime)),n=t.duration?n.dateEnv.add(l,t.duration):rn(e.allDay,l,n),{def:s,instance:we(s.defId,{start:l,end:n})}}(e.dateSpan,l.dragMeta,o),s.mutatedEvents=pt(i),(a=!Vr(s,e.dateProfile,o))&&(s.mutatedEvents=ht(),i=null))),l.displayDrag(o,s),r.setMirrorIsVisible(t||!i||!document.querySelector(".fc-event-mirror")),(a?X:K)(),t||(r.setMirrorNeedsRevert(!i),l.receivingContext=o,l.droppableEvent=i)},this.handleDragEnd=function(e){var t,n,r,o,i=l.receivingContext,a=l.droppableEvent;l.clearDrag(),i&&a&&(n=(t=l.hitDragging.finalHit).context.viewApi,r=l.dragMeta,i.emitter.trigger("drop",Sa(Sa({},Eo(t.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:n})),r.create&&(o=pt(a),i.dispatch({type:"MERGE_EVENTS",eventStore:o}),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instance.instanceId}),i.emitter.trigger("eventReceive",{event:new Hs(i,a.def,a.instance),relatedEvents:[],revert:function(){i.dispatch({type:"REMOVE_EVENTS",eventStore:o})},draggedEl:e.subjectEl,view:n}))),l.receivingContext=null,l.droppableEvent=null};e=this.hitDragging=new cd(e,pu);e.requireInitial=!1,e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("hitupdate",this.handleHitUpdate),e.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}vu.dataAttrPrefix="";var Md=(Pd.prototype.destroy=function(){this.dragging.destroy()},Pd);function Pd(e,t){var o=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=o.dragging,n=o.settings,r=n.minDistance,n=n.longPressDelay;t.minDistance=null!=r?r:e.isTouch?0:ys.eventDragMinDistance,t.delay=e.isTouch?null!=n?n:ys.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&o.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&o.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;e=this.dragging=new ad(e);e.touchScrollAllowed=!1,null!=t.itemSelector&&(e.pointer.selector=t.itemSelector),null!=t.appendTo&&(e.mirror.parentNode=t.appendTo),e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),new kd(e,t.eventData)}var Id,Nd=(t(Hd,Id=fu),Hd.prototype.destroy=function(){this.pointer.destroy()},Hd.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},Hd.prototype.setMirrorIsVisible=function(e){e?this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null):(e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null)&&((this.currentMirrorEl=e).style.visibility="hidden")},Hd);function Hd(e){var t=Id.call(this,e)||this;t.shouldIgnoreMove=!1,t.mirrorSelector="",t.currentMirrorEl=null,t.handlePointerDown=function(e){t.emitter.trigger("pointerdown",e),t.shouldIgnoreMove||t.emitter.trigger("dragstart",e)},t.handlePointerMove=function(e){t.shouldIgnoreMove||t.emitter.trigger("dragmove",e)},t.handlePointerUp=function(e){t.emitter.trigger("pointerup",e),t.shouldIgnoreMove||t.emitter.trigger("dragend",e)};e=t.pointer=new Fc(e);return e.emitter.on("pointerdown",t.handlePointerDown),e.emitter.on("pointermove",t.handlePointerMove),e.emitter.on("pointerup",t.handlePointerUp),t}var Od=(Ad.prototype.destroy=function(){this.dragging.destroy()},Ad);function Ad(e,t){var n=document;t=e===document||e instanceof Element?(n=e,t||{}):e||{};e=this.dragging=new Nd(n);"string"==typeof t.itemSelector?e.pointer.selector=t.itemSelector:n===document&&(e.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(e.mirrorSelector=t.mirrorSelector),new kd(e,t.eventData)}var Wd,Ld=zn({componentInteractions:[fd,vd,Sd,bd],calendarInteractions:[Rd],elementDraggingImpl:ad,optionRefiners:Td,listenerRefiners:xd}),Ud=(t(Bd,Wd=Ml),Bd.prototype.renderSimpleLayout=function(e,t){var n=this.props,r=this.context,o=[],i=io(r.options);return e&&o.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),pl(ql,{viewSpec:r.viewSpec},function(e,t){return pl("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},pl(cc,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))})},Bd.prototype.renderHScrollLayout=function(e,t,n,r){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var i=this.props,a=this.context,s=!i.forPrint&&io(a.options),l=!i.forPrint&&ao(a.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:s,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:oo}]}),pl(ql,{viewSpec:a.viewSpec},function(e,t){return pl("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},pl(o,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:u}))})},Bd);function Bd(){var e=null!==Wd&&Wd.apply(this,arguments)||this;return e.headerElRef=hl(),e}var zd,Vd=(t(Fd,zd=xl),Fd.prototype.render=function(){var n=this.props,r=this.context.options.navLinks?{"data-navlink":kn(n.date),tabIndex:0}:{};return pl(Cc,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,defaultContent:wo},function(e,t){return(t||n.forceDayTop)&&pl("div",{className:"fc-daygrid-day-top",ref:e},pl("a",Sa({className:"fc-daygrid-day-number"},r),t||pl(gl,null,"�")))})},Fd);function Fd(){return null!==zd&&zd.apply(this,arguments)||this}var Gd,jd=at({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),qd=(t(Yd,Gd=xl),Yd.prototype.render=function(){var e=this.props;return pl(vc,Sa({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:jd,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},Yd);function Yd(){return null!==Gd&&Gd.apply(this,arguments)||this}var Zd,Xd=(t(Kd,Zd=xl),Kd.prototype.render=function(){var o=this.props,e=this.context,t=e.options.eventTimeFormat||jd,e=Yt(o.seg,t,e,!0,o.defaultDisplayEventEnd);return pl(fc,{seg:o.seg,timeText:e,defaultContent:xo,isDragging:o.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:o.isSelected,isPast:o.isPast,isFuture:o.isFuture,isToday:o.isToday},function(e,t,n,r){return pl("a",Sa({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(t).join(" "),ref:e},(e=(e=o.seg).eventRange.def.url)?{href:e}:{}),r)})},Kd);function Kd(){return null!==Zd&&Zd.apply(this,arguments)||this}var $d,Jd=(t(Qd,$d=xl),Qd.prototype.render=function(){var r=this.props,e=this.compileSegs(r.singlePlacements),t=e.allSegs,e=e.invisibleSegs;return pl(Oc,{dateProfile:r.dateProfile,todayRange:r.todayRange,allDayDate:r.allDayDate,moreCnt:r.moreCnt,allSegs:t,hiddenSegs:e,alignmentElRef:r.alignmentElRef,alignGridTop:r.alignGridTop,extraDateSpan:r.extraDateSpan,popoverContent:function(){var n=(r.eventDrag?r.eventDrag.affectedInstances:null)||(r.eventResize?r.eventResize.affectedInstances:null)||{};return pl(gl,null,t.map(function(e){var t=e.eventRange.instance.instanceId;return pl("div",{className:"fc-daygrid-event-harness",key:t,style:{visibility:n[t]?"hidden":""}},To(e)?pl(Xd,Sa({seg:e,isDragging:!1,isSelected:t===r.eventSelection,defaultDisplayEventEnd:!1},Zt(e,r.todayRange))):pl(qd,Sa({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===r.eventSelection,defaultDisplayEventEnd:!1},Zt(e,r.todayRange))))}))}},function(e,t,n,r,o){return pl("a",{ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),onClick:o},r)})},Qd);function Qd(){var e=null!==$d&&$d.apply(this,arguments)||this;return e.compileSegs=Qe(ko),e}var ep,tp=at({week:"narrow"}),np=(t(rp,ep=Ml),rp.prototype.render=function(){var o=this.props,e=this.context,i=this.rootElRef,e=e.options,a=o.date,s=o.dateProfile,l=e.navLinks?{"data-navlink":kn(a,"week"),tabIndex:0}:{};return pl(Rc,{date:a,dateProfile:s,todayRange:o.todayRange,showDayNumber:o.showDayNumber,extraHookProps:o.extraHookProps,elRef:this.handleRootEl},function(e,t,n,r){return pl("td",Sa({ref:e,className:["fc-daygrid-day"].concat(t,o.extraClassNames||[]).join(" ")},n,o.extraDataAttrs),pl("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:o.innerElRef},o.showWeekNumber&&pl(xc,{date:a,defaultFormat:tp},function(e,t,n,r){return pl("a",Sa({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},l),r)}),!r&&pl(Vd,{date:a,dateProfile:s,showDayNumber:o.showDayNumber,forceDayTop:o.forceDayTop,todayRange:o.todayRange,extraHookProps:o.extraHookProps}),pl("div",{className:"fc-daygrid-day-events",ref:o.fgContentElRef},o.fgContent,pl("div",{className:"fc-daygrid-day-bottom",style:{marginTop:o.moreMarginTop}},pl(Jd,{allDayDate:a,singlePlacements:o.singlePlacements,moreCnt:o.moreCnt,alignmentElRef:i,alignGridTop:!o.showDayNumber,extraDateSpan:o.extraDateSpan,dateProfile:o.dateProfile,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,todayRange:o.todayRange}))),pl("div",{className:"fc-daygrid-day-bg"},o.bgContent)))})},rp);function rp(){var t=null!==ep&&ep.apply(this,arguments)||this;return t.rootElRef=hl(),t.handleRootEl=function(e){Bn(t.rootElRef,e),Bn(t.props.elRef,e)},t}var op,ip=(t(ap,op=lu),ap.prototype.addSegs=function(e){for(var t=this,e=op.prototype.addSegs.call(this,e),n=this.entriesByLevel,r=function(e){return!t.forceHidden[xr(e)]},o=0;o<n.length;o+=1)n[o]=n[o].filter(r);return e},ap.prototype.handleInvalidInsertion=function(e,t,n){var r,o,i=this.entriesByLevel,a=this.forceHidden,s=e.touchingEntry,l=e.touchingLevel,u=e.touchingLateral;return this.hiddenConsumes&&s&&(a[r=xr(s)]||(this.allowReslicing?(a[xr(o=Sa(Sa({},s),{span:Mr(s.span,t.span)}))]=!0,i[l][u]=o,this.splitEntry(s,t,n)):(a[r]=!0,n.push(s)))),op.prototype.handleInvalidInsertion.call(this,e,t,n)},ap);function ap(){var e=null!==op&&op.apply(this,arguments)||this;return e.hiddenConsumes=!1,e.forceHidden={},e}var sp,lp=(t(up,sp=Ml),up.prototype.render=function(){var o=this,i=this.props,e=this.state,t=this.context.options,n=i.cells.length,a=Do(i.businessHourSegs,n),s=Do(i.bgEventSegs,n),l=Do(this.getHighlightSegs(),n),u=Do(this.getMirrorSegs(),n),e=_o(Vt(i.fgEventSegs,t.eventOrder),i.dayMaxEvents,i.dayMaxEventRows,t.eventOrderStrict,e.eventInstanceHeights,e.maxContentHeight,i.cells),c=e.singleColPlacements,d=e.multiColPlacements,p=e.moreCnts,f=e.moreMarginTops,h=i.eventDrag&&i.eventDrag.affectedInstances||i.eventResize&&i.eventResize.affectedInstances||{};return pl("tr",{ref:this.rootElRef},i.renderIntro&&i.renderIntro(),i.cells.map(function(e,t){var n=o.renderFgSegs(t,(i.forPrint?c:d)[t],i.todayRange,h),r=o.renderFgSegs(t,Po(u[t],d),i.todayRange,{},Boolean(i.eventDrag),Boolean(i.eventResize),!1);return pl(np,{key:e.key,elRef:o.cellElRefs.createRef(e.key),innerElRef:o.frameElRefs.createRef(e.key),dateProfile:i.dateProfile,date:e.date,showDayNumber:i.showDayNumbers,showWeekNumber:i.showWeekNumbers&&0===t,forceDayTop:i.showWeekNumbers,todayRange:i.todayRange,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,extraHookProps:e.extraHookProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,moreCnt:p[t],moreMarginTop:f[t],singlePlacements:c[t],fgContentElRef:o.fgElRefs.createRef(e.key),fgContent:pl(gl,null,pl(gl,null,n),pl(gl,null,r)),bgContent:pl(gl,null,o.renderFillSegs(l[t],"highlight"),o.renderFillSegs(a[t],"non-business"),o.renderFillSegs(s[t],"bg-event"))})}))},up.prototype.componentDidMount=function(){this.updateSizing(!0)},up.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!Pe(e,n))},up.prototype.getHighlightSegs=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},up.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},up.prototype.renderFgSegs=function(e,t,n,r,o,i,a){var s=this.context,l=this.props.eventSelection,u=this.state.framePositions,c=1===this.props.cells.length,d=o||i||a,p=[];if(u)for(var f=0,h=t;f<h.length;f++){var g=h[f],v=g.seg,m=v.eventRange.instance.instanceId,y=m+":"+e,S=g.isVisible&&!r[m],E=g.isAbsolute,C="",b="";E&&(s.isRtl?(b=0,C=u.lefts[v.lastCol]-u.lefts[v.firstCol]):(C=0,b=u.rights[v.firstCol]-u.rights[v.lastCol])),p.push(pl("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:y,ref:d?null:this.segHarnessRefs.createRef(y),style:{visibility:S?"":"hidden",marginTop:E?"":g.marginTop,top:E?g.absoluteTop:"",left:C,right:b}},To(v)?pl(Xd,Sa({seg:v,isDragging:o,isSelected:m===l,defaultDisplayEventEnd:c},Zt(v,n))):pl(qd,Sa({seg:v,isDragging:o,isResizing:i,isDateSelecting:a,isSelected:m===l,defaultDisplayEventEnd:c},Zt(v,n)))))}return p},up.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,r=this.props.todayRange,o=this.state.framePositions,i=[];if(o)for(var a=0,s=e;a<s.length;a++){var l=s[a],u=n?{right:0,left:o.lefts[l.lastCol]-o.lefts[l.firstCol]}:{left:0,right:o.rights[l.firstCol]-o.rights[l.lastCol]};i.push(pl("div",{key:Kt(l.eventRange),className:"fc-daygrid-bg-harness",style:u},"bg-event"===t?pl(Tc,Sa({seg:l},Zt(l,r))):uo(t)))}return pl.apply(void 0,g([gl,{}],i))},up.prototype.updateSizing=function(e){var t,n=this.props,r=this.frameElRefs;n.forPrint||null===n.clientWidth||(!e||(t=n.cells.map(function(e){return r.currentMap[e.key]})).length&&(e=this.rootElRef.current,this.setState({framePositions:new Qs(e,t,!0,!1)})),n=!0===n.dayMaxEvents||!0===n.dayMaxEventRows,this.setState({eventInstanceHeights:this.queryEventInstanceHeights(),maxContentHeight:n?this.computeMaxContentHeight():null}))},up.prototype.queryEventInstanceHeights=function(){var e,t=this.segHarnessRefs.currentMap,n={};for(e in t){var r=Math.round(t[e].getBoundingClientRect().height),o=e.split(":")[0];n[o]=Math.max(n[o]||0,r)}return n},up.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],e=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-e.getBoundingClientRect().top},up.prototype.getCellEls=function(){var t=this.cellElRefs.currentMap;return this.props.cells.map(function(e){return t[e.key]})},up);function up(){var e=null!==sp&&sp.apply(this,arguments)||this;return e.cellElRefs=new sc,e.frameElRefs=new sc,e.fgElRefs=new sc,e.segHarnessRefs=new sc,e.rootElRef=hl(),e.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},e}lp.addStateEquality({eventInstanceHeights:Pe});var cp,dp=(t(pp,cp=Ml),pp.prototype.render=function(){var r=this,o=this.props,i=o.dateProfile,a=o.dayMaxEventRows,s=o.dayMaxEvents,t=o.expandRows,l=o.cells.length,u=this.splitBusinessHourSegs(o.businessHourSegs,l),c=this.splitBgEventSegs(o.bgEventSegs,l),d=this.splitFgEventSegs(o.fgEventSegs,l),p=this.splitDateSelectionSegs(o.dateSelectionSegs,l),f=this.splitEventDrag(o.eventDrag,l),h=this.splitEventResize(o.eventResize,l),e=!0===s||!0===a;return e&&!t&&(e=!1,s=a=null),pl("div",{className:["fc-daygrid-body",e?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",t?"":"fc-daygrid-body-natural"].join(" "),ref:this.handleRootEl,style:{width:o.clientWidth,minWidth:o.tableMinWidth}},pl(qu,{unit:"day"},function(e,n){return pl(gl,null,pl("table",{className:"fc-scrollgrid-sync-table",style:{width:o.clientWidth,minWidth:o.tableMinWidth,height:t?o.clientHeight:""}},o.colGroupNode,pl("tbody",null,o.cells.map(function(e,t){return pl(lp,{ref:r.rowRefs.createRef(t),key:e.length?e[0].date.toISOString():t,showDayNumbers:1<l,showWeekNumbers:o.showWeekNumbers,todayRange:n,dateProfile:i,cells:e,renderIntro:o.renderRowIntro,businessHourSegs:u[t],eventSelection:o.eventSelection,bgEventSegs:c[t].filter(Io),fgEventSegs:d[t],dateSelectionSegs:p[t],eventDrag:f[t],eventResize:h[t],dayMaxEvents:s,dayMaxEventRows:a,clientWidth:o.clientWidth,clientHeight:o.clientHeight,forPrint:o.forPrint})}))))}))},pp.prototype.prepareHits=function(){this.rowPositions=new Qs(this.rootEl,this.rowRefs.collect().map(function(e){return e.getCellEls()[0]}),!1,!0),this.colPositions=new Qs(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},pp.prototype.queryHit=function(e,t){var n=this.colPositions,r=this.rowPositions,o=n.leftToIndex(e),e=r.topToIndex(t);if(null==e||null==o)return null;t=this.props.cells[e][o];return{dateProfile:this.props.dateProfile,dateSpan:Sa({range:this.getCellRange(e,o),allDay:!0},t.extraDateSpan),dayEl:this.getCellEl(e,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[e],bottom:r.bottoms[e]},layer:0}},pp.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},pp.prototype.getCellRange=function(e,t){t=this.props.cells[e][t].date;return{start:t,end:ce(t,1)}},pp);function pp(){var t=null!==cp&&cp.apply(this,arguments)||this;return t.splitBusinessHourSegs=Qe(bo),t.splitBgEventSegs=Qe(bo),t.splitFgEventSegs=Qe(bo),t.splitDateSelectionSegs=Qe(bo),t.splitEventDrag=Qe(Ro),t.splitEventResize=Qe(Ro),t.rowRefs=new sc,t.handleRootEl=function(e){(t.rootEl=e)?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}var fp,hp=(t(gp,fp=tc),gp.prototype.sliceRange=function(e,t){return t.sliceRange(e)},gp);function gp(){var e=null!==fp&&fp.apply(this,arguments)||this;return e.forceDayIfListItem=!0,e}var vp,mp=(t(yp,vp=Ml),yp.prototype.render=function(){var e=this.props,t=this.context;return pl(dp,Sa({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}))},yp);function yp(){var e=null!==vp&&vp.apply(this,arguments)||this;return e.slicer=new hp,e.tableRef=hl(),e}var Sp,Ep,Cp=(t(bp,Sp=Ud),bp.prototype.render=function(){var t=this,e=this.context,n=e.options,r=e.dateProfileGenerator,o=this.props,i=this.buildDayTableModel(o.dateProfile,r),e=n.dayHeaders&&pl(Xu,{ref:this.headerRef,dateProfile:o.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),r=function(e){return pl(mp,{ref:t.tableRef,dateProfile:o.dateProfile,dayTableModel:i,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:t.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:o.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(e,r,i.colCnt,n.dayMinWidth):this.renderSimpleLayout(e,r)},bp);function bp(){var e=null!==Sp&&Sp.apply(this,arguments)||this;return e.buildDayTableModel=Qe(No),e.headerRef=hl(),e.tableRef=hl(),e}function Dp(){return null!==Ep&&Ep.apply(this,arguments)||this}var Rp,wp=zn({initialView:"dayGridMonth",views:{dayGrid:{component:Cp,dateProfileGeneratorClass:(t(Dp,Ep=Xl),Dp.prototype.buildRenderRange=function(e,t,n){var r=this.props.dateEnv,e=Ep.prototype.buildRenderRange.call(this,e,t,n),n=e.start,e=e.end;return/^(year|month)$/.test(t)&&(n=r.startOfWeek(n),(r=r.startOfWeek(e)).valueOf()!==e.valueOf()&&(e=ue(r,1))),{start:n,end:e=this.props.monthMode&&this.props.fixedWeekCount?ue(e,6-Math.ceil(pe(n,e))):e}},Dp)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),Tp=(t(xp,Rp=Ys),xp.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},xp.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},xp.prototype.getKeysForEventDef=function(e){return e.allDay?Wt(e)?["timed","allDay"]:["allDay"]:["timed"]},xp);function xp(){return null!==Rp&&Rp.apply(this,arguments)||this}var kp,_p=at({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),Mp=(t(Pp,kp=xl),Pp.prototype.render=function(){return this.props.slatMetas.map(function(e){return pl("tr",{key:e.key},pl(Ho,Sa({},e)))})},Pp);function Pp(){return null!==kp&&kp.apply(this,arguments)||this}var Ip,Np=at({week:"short"}),Hp=(t(Op,Ip=Ml),Op.prototype.renderSimpleLayout=function(e,t,n){var r=this.context,o=this.props,i=[],a=io(r.options);return e&&i.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(i.push({type:"body",key:"all-day",chunk:{content:t}}),i.push({type:"body",key:"all-day-divider",outerContent:pl("tr",{className:"fc-scrollgrid-section"},pl("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),pl(ql,{viewSpec:r.viewSpec,elRef:this.rootElRef},function(e,t){return pl("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},pl(cc,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:i}))})},Op.prototype.renderHScrollLayout=function(e,t,n,r,o,i,a){var s=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&io(u.options),p=!c.forPrint&&ao(u.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return pl("tr",null,s.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return pl("tr",null,s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:pl("tr",{className:"fc-scrollgrid-section"},pl("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var h=u.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return pl("div",{className:"fc-timegrid-axis-chunk"},pl("table",{style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,pl("tbody",null,pl(Mp,{slatMetas:i}))),pl("div",{className:"fc-timegrid-now-indicator-container"},pl(qu,{unit:h?"minute":"day"},function(e){var o=h&&a&&a.safeComputeTop(e);return"number"==typeof o?pl(yc,{isAxis:!0,date:e},function(e,t,n,r){return pl("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:o}},r)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),p&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:oo},{key:"cols",content:oo}]}),pl(ql,{viewSpec:u.viewSpec,elRef:this.rootElRef},function(e,t){return pl("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},pl(l,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]}],sections:f}))})},Op.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,e=e.dayMaxEventRows;return!0!==t&&!0!==e||(t=void 0,e=5),{dayMaxEvents:t,dayMaxEventRows:e}},Op);function Op(){var a=null!==Ip&&Ip.apply(this,arguments)||this;return a.allDaySplitter=new Tp,a.headerElRef=hl(),a.rootElRef=hl(),a.scrollerElRef=hl(),a.state={slatCoords:null},a.handleScrollTopRequest=function(e){var t=a.scrollerElRef.current;t&&(t.scrollTop=e)},a.renderHeadAxis=function(e,o){void 0===o&&(o="");var t=a.context.options,n=a.props.dateProfile.renderRange,r=fe(n.start,n.end),i=t.navLinks&&1===r?{"data-navlink":kn(n.start,"week"),tabIndex:0}:{};return t.weekNumbers&&"day"===e?pl(xc,{date:n.start,defaultFormat:Np},function(e,t,n,r){return pl("th",{ref:e,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},pl("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:o}},pl("a",Sa({ref:n,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},i),r)))}):pl("th",{className:"fc-timegrid-axis"},pl("div",{className:"fc-timegrid-axis-frame",style:{height:o}}))},a.renderTableRowAxis=function(o){var e=a.context,t=e.options,e=e.viewApi,e={text:t.allDayText,view:e};return pl(Al,{hookProps:e,classNames:t.allDayClassNames,content:t.allDayContent,defaultContent:Ao,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},function(e,t,n,r){return pl("td",{ref:e,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},pl("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==o?" fc-timegrid-axis-frame-liquid":""),style:{height:o}},pl("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:n},r)))})},a.handleSlatCoords=function(e){a.setState({slatCoords:e})},a}var Ap=(Wp.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(Ot(t.currentRange,e)){var n=me(e),n=e.valueOf()-n.valueOf();if(n>=Ge(t.slotMinTime)&&n<Ge(t.slotMaxTime))return this.computeTimeTop(Ae(n))}return null},Wp.prototype.computeDateTop=function(e,t){return t=t||me(e),this.computeTimeTop(Ae(e.valueOf()-t.valueOf()))},Wp.prototype.computeTimeTop=function(e){var t=this.positions,n=this.dateProfile,r=t.els.length,e=(e.milliseconds-Ge(n.slotMinTime))/Ge(this.slotDuration),e=Math.max(0,e);return e=Math.min(r,e),n=Math.floor(e),r=e-(n=Math.min(n,r-1)),t.tops[n]+t.getHeight(n)*r},Wp);function Wp(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}var Lp,Up=(t(Bp,Lp=xl),Bp.prototype.render=function(){var n=this.props,r=this.context,a=r.options,s=n.slatElRefs;return pl("tbody",null,n.slatMetas.map(function(o,e){var t={time:o.time,date:r.dateEnv.toDate(o.date),view:r.viewApi},i=["fc-timegrid-slot","fc-timegrid-slot-lane",o.isLabeled?"":"fc-timegrid-slot-minor"];return pl("tr",{key:o.key,ref:s.createRef(o.key)},n.axis&&pl(Ho,Sa({},o)),pl(Al,{hookProps:t,classNames:a.slotLaneClassNames,content:a.slotLaneContent,didMount:a.slotLaneDidMount,willUnmount:a.slotLaneWillUnmount},function(e,t,n,r){return pl("td",{ref:e,className:i.concat(t).join(" "),"data-time":o.isoTimeStr},r)}))}))},Bp);function Bp(){return null!==Lp&&Lp.apply(this,arguments)||this}var zp,Vp=(t(Fp,zp=xl),Fp.prototype.render=function(){var e=this.props,t=this.context;return pl("div",{className:"fc-timegrid-slots",ref:this.rootElRef},pl("table",{className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,pl(Up,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},Fp.prototype.componentDidMount=function(){this.updateSizing()},Fp.prototype.componentDidUpdate=function(){this.updateSizing()},Fp.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},Fp.prototype.updateSizing=function(){var t,e=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&this.rootElRef.current.offsetHeight&&n.onCoords(new Ap(new Qs(this.rootElRef.current,(t=this.slatElRefs.currentMap,n.slatMetas.map(function(e){return t[e.key]})),!1,!0),this.props.dateProfile,e.options.slotDuration))},Fp);function Fp(){var e=null!==zp&&zp.apply(this,arguments)||this;return e.rootElRef=hl(),e.slatElRefs=new sc,e}var Gp,jp=(t(qp,Gp=xl),qp.prototype.render=function(){var i=this,a=this.props;return pl(Oc,{allDayDate:null,moreCnt:a.hiddenSegs.length,allSegs:a.hiddenSegs,hiddenSegs:a.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:Uo,extraDateSpan:a.extraDateSpan,dateProfile:a.dateProfile,todayRange:a.todayRange,popoverContent:function(){return qo(a.hiddenSegs,a)}},function(t,e,n,r,o){return pl("a",{ref:function(e){Bn(t,e),Bn(i.rootElRef,e)},className:["fc-timegrid-more-link"].concat(e).join(" "),style:{top:a.top,bottom:a.bottom},onClick:o},pl("div",{ref:n,className:"fc-timegrid-more-link-inner fc-sticky"},r))})},qp);function qp(){var e=null!==Gp&&Gp.apply(this,arguments)||this;return e.rootElRef=hl(),e}var Yp,Zp=at({hour:"numeric",minute:"2-digit",meridiem:!1}),Xp=(t(Kp,Yp=xl),Kp.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),pl(vc,Sa({},this.props,{defaultTimeFormat:Zp,extraClassNames:e}))},Kp);function Kp(){return null!==Yp&&Yp.apply(this,arguments)||this}var $p,Jp=(t(Qp,$p=xl),Qp.prototype.render=function(){var e=this.props;return pl(Cc,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},function(e,t){return t&&pl("div",{className:"fc-timegrid-col-misc",ref:e},t)})},Qp);function Qp(){return null!==$p&&$p.apply(this,arguments)||this}var ef,tf=(t(nf,ef=xl),nf.prototype.render=function(){var r=this,o=this.props,e=this.context,i=e.options.selectMirror,a=o.eventDrag&&o.eventDrag.segs||o.eventResize&&o.eventResize.segs||i&&o.dateSelectionSegs||[],s=o.eventDrag&&o.eventDrag.affectedInstances||o.eventResize&&o.eventResize.affectedInstances||{},l=this.sortEventSegs(o.fgEventSegs,e.options.eventOrder);return pl(Rc,{elRef:o.elRef,date:o.date,dateProfile:o.dateProfile,todayRange:o.todayRange,extraHookProps:o.extraHookProps},function(e,t,n){return pl("td",Sa({ref:e,className:["fc-timegrid-col"].concat(t,o.extraClassNames||[]).join(" ")},n,o.extraDataAttrs),pl("div",{className:"fc-timegrid-col-frame"},pl("div",{className:"fc-timegrid-col-bg"},r.renderFillSegs(o.businessHourSegs,"non-business"),r.renderFillSegs(o.bgEventSegs,"bg-event"),r.renderFillSegs(o.dateSelectionSegs,"highlight")),pl("div",{className:"fc-timegrid-col-events"},r.renderFgSegs(l,s,!1,!1,!1)),pl("div",{className:"fc-timegrid-col-events"},r.renderFgSegs(a,{},Boolean(o.eventDrag),Boolean(o.eventResize),Boolean(i))),pl("div",{className:"fc-timegrid-now-indicator-container"},r.renderNowIndicator(o.nowIndicatorSegs)),pl(Jp,{date:o.date,dateProfile:o.dateProfile,todayRange:o.todayRange,extraHookProps:o.extraHookProps})))})},nf.prototype.renderFgSegs=function(e,t,n,r,o){var i=this.props;return i.forPrint?qo(e,i):this.renderPositionedFgSegs(e,t,n,r,o)},nf.prototype.renderPositionedFgSegs=function(e,s,l,u,c){var d=this,t=this.context.options,n=t.eventMaxStack,p=t.eventShortHeight,r=t.eventOrderStrict,o=t.eventMinHeight,i=this.props,a=i.date,t=i.slatCoords,f=i.eventSelection,h=i.todayRange,g=i.nowDate,v=l||u||c,r=function(e,t,n,r){for(var o=[],i=[],a=0;a<e.length;a+=1){var s=t[a];s?o.push({index:a,thickness:1,span:s}):i.push(e[a])}for(var r=(n=Bo(o,n,r)).segRects,n=n.hiddenGroups,l=[],u=0,c=r;u<c.length;u++){var d=c[u];l.push({seg:e[d.index],rect:d})}for(var p=0,f=i;p<f.length;p++){var h=f[p];l.push({seg:h,rect:null})}return{segPlacements:l,hiddenGroups:n}}(e,jo(e,a,t,o),r,n),n=r.segPlacements,r=r.hiddenGroups;return pl(gl,null,this.renderHiddenGroups(r,e),n.map(function(e){var t=e.seg,n=e.rect,r=t.eventRange.instance.instanceId,o=v||Boolean(!s[r]&&n),i=Yo(n&&n.span),a=!v&&n?d.computeSegHStyle(n):{left:0,right:0},e=Boolean(n)&&0<n.stackForward,n=Boolean(n)&&n.span.end-n.span.start<p;return pl("div",{className:"fc-timegrid-event-harness"+(e?" fc-timegrid-event-harness-inset":""),key:r,style:Sa(Sa({visibility:o?"":"hidden"},i),a)},pl(Xp,Sa({seg:t,isDragging:l,isResizing:u,isDateSelecting:c,isSelected:r===f,isShort:n},Zt(t,h,g))))}))},nf.prototype.renderHiddenGroups=function(e,r){var t=this.props,o=t.extraDateSpan,i=t.dateProfile,a=t.todayRange,s=t.nowDate,l=t.eventSelection,u=t.eventDrag,c=t.eventResize;return pl(gl,null,e.map(function(e){var t,n=Yo(e.span),e=(e=e.entries,t=r,e.map(function(e){return t[e.index]}));return pl(jp,{key:Ye(go(e)),hiddenSegs:e,top:n.top,bottom:n.bottom,extraDateSpan:o,dateProfile:i,todayRange:a,nowDate:s,eventSelection:l,eventDrag:u,eventResize:c})}))},nf.prototype.renderFillSegs=function(n,r){var o=this.props,e=this.context,e=jo(n,o.date,o.slatCoords,e.options.eventMinHeight).map(function(e,t){t=n[t];return pl("div",{key:Kt(t.eventRange),className:"fc-timegrid-bg-harness",style:Yo(e)},"bg-event"===r?pl(Tc,Sa({seg:t},Zt(t,o.todayRange,o.nowDate))):uo(r))});return pl(gl,null,e)},nf.prototype.renderNowIndicator=function(e){var t=this.props,i=t.slatCoords,a=t.date;return i?e.map(function(o,e){return pl(yc,{isAxis:!1,date:a,key:e},function(e,t,n,r){return pl("div",{ref:e,className:["fc-timegrid-now-indicator-line"].concat(t).join(" "),style:{top:i.computeDateTop(o.start,a)}},r)})}):null},nf.prototype.computeSegHStyle=function(e){var t,n=this.context,r=n.isRtl,o=n.options.slotEventOverlap,i=e.levelCoord,n=e.levelCoord+e.thickness;o&&(n=Math.min(1,i+2*(n-i)));n=r?(t=1-n,i):(t=i,1-n),n={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return o&&!e.stackForward&&(n[r?"marginLeft":"marginRight"]=20),n},nf);function nf(){var e=null!==ef&&ef.apply(this,arguments)||this;return e.sortEventSegs=Qe(Vt),e}var rf,of=(t(af,rf=xl),af.prototype.render=function(){var n=this,r=this.props,o=this.context.options.nowIndicator&&r.slatCoords&&r.slatCoords.safeComputeTop(r.nowDate),e=r.cells.length,i=this.splitFgEventSegs(r.fgEventSegs,e),a=this.splitBgEventSegs(r.bgEventSegs,e),s=this.splitBusinessHourSegs(r.businessHourSegs,e),l=this.splitNowIndicatorSegs(r.nowIndicatorSegs,e),u=this.splitDateSelectionSegs(r.dateSelectionSegs,e),c=this.splitEventDrag(r.eventDrag,e),d=this.splitEventResize(r.eventResize,e);return pl("div",{className:"fc-timegrid-cols",ref:this.rootElRef},pl("table",{style:{minWidth:r.tableMinWidth,width:r.clientWidth}},r.tableColGroupNode,pl("tbody",null,pl("tr",null,r.axis&&pl("td",{className:"fc-timegrid-col fc-timegrid-axis"},pl("div",{className:"fc-timegrid-col-frame"},pl("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof o&&pl(yc,{isAxis:!0,date:r.nowDate},function(e,t,n,r){return pl("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:o}},r)})))),r.cells.map(function(e,t){return pl(tf,{key:e.key,elRef:n.cellElRefs.createRef(e.key),dateProfile:r.dateProfile,date:e.date,nowDate:r.nowDate,todayRange:r.todayRange,extraHookProps:e.extraHookProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,fgEventSegs:i[t],bgEventSegs:a[t],businessHourSegs:s[t],nowIndicatorSegs:l[t],dateSelectionSegs:u[t],eventDrag:c[t],eventResize:d[t],slatCoords:r.slatCoords,eventSelection:r.eventSelection,forPrint:r.forPrint})})))))},af.prototype.componentDidMount=function(){this.updateCoords()},af.prototype.componentDidUpdate=function(){this.updateCoords()},af.prototype.updateCoords=function(){var t,e=this.props;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new Qs(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map(function(e){return t[e.key]})),!0,!1))},af);function af(){var e=null!==rf&&rf.apply(this,arguments)||this;return e.splitFgEventSegs=Qe(Wo),e.splitBgEventSegs=Qe(Wo),e.splitBusinessHourSegs=Qe(Wo),e.splitNowIndicatorSegs=Qe(Wo),e.splitDateSelectionSegs=Qe(Wo),e.splitEventDrag=Qe(Lo),e.splitEventResize=Qe(Lo),e.rootElRef=hl(),e.cellElRefs=new sc,e}var sf,lf=(t(uf,sf=Ml),uf.prototype.render=function(){var e=this.props,t=this.state;return pl("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},pl(Vp,{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}),pl(of,{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}))},uf.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},uf.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},uf.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},uf.prototype.queryHit=function(e,t){var n=this.context,r=n.dateEnv,o=n.options,i=this.colCoords,a=this.props.dateProfile,s=this.state.slatCoords,l=this.processSlotOptions(this.props.slotDuration,o.snapDuration),u=l.snapDuration,c=l.snapsPerSlot,d=i.leftToIndex(e),n=s.positions.topToIndex(t);if(null==d||null==n)return null;o=this.props.cells[d],l=s.positions.tops[n],e=s.positions.getHeight(n),s=Math.floor((t-l)/e*c),t=this.props.cells[d].date,s=Ue(a.slotMinTime,Be(u,n*c+s)),s=r.add(t,s),u=r.add(s,u);return{dateProfile:a,dateSpan:Sa({range:{start:s,end:u},allDay:!1},o.extraDateSpan),dayEl:i.els[d],rect:{left:i.lefts[d],right:i.rights[d],top:l,bottom:l+e},layer:0}},uf);function uf(){var r=null!==sf&&sf.apply(this,arguments)||this;return r.processSlotOptions=Qe(Zo),r.state={slatCoords:null},r.handleRootEl=function(e){e?r.context.registerInteractiveComponent(r,{el:e,isHitComboAllowed:r.props.isHitComboAllowed}):r.context.unregisterInteractiveComponent(r)},r.handleScrollRequest=function(e){var t=r.props.onScrollTopRequest,n=r.state.slatCoords;return!(!t||!n)&&(e.time&&(e=n.computeTimeTop(e.time),(e=Math.ceil(e))&&(e+=1),t(e)),!0)},r.handleColCoords=function(e){r.colCoords=e},r.handleSlatCoords=function(e){r.setState({slatCoords:e}),r.props.onSlatCoords&&r.props.onSlatCoords(e)},r}var cf,df=(t(pf,cf=tc),pf.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r+=1){var o=Pt(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n},pf);function pf(){return null!==cf&&cf.apply(this,arguments)||this}var ff,hf=(t(gf,ff=Ml),gf.prototype.render=function(){var n=this,r=this.props,o=this.context,i=r.dateProfile,a=r.dayTableModel,s=o.options.nowIndicator,l=this.buildDayRanges(a,i,o.dateEnv);return pl(qu,{unit:s?"minute":"day"},function(e,t){return pl(lf,Sa({ref:n.timeColsRef},n.slicer.sliceProps(r,i,null,o,l),{forPrint:r.forPrint,axis:r.axis,dateProfile:i,slatMetas:r.slatMetas,slotDuration:r.slotDuration,cells:a.cells[0],tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,clientWidth:r.clientWidth,clientHeight:r.clientHeight,expandRows:r.expandRows,nowDate:e,nowIndicatorSegs:s&&n.slicer.sliceNowDate(e,o,l),todayRange:t,onScrollTopRequest:r.onScrollTopRequest,onSlatCoords:r.onSlatCoords}))})},gf);function gf(){var e=null!==ff&&ff.apply(this,arguments)||this;return e.buildDayRanges=Qe(Xo),e.slicer=new df,e.timeColsRef=hl(),e}var vf,mf=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],yf=(t(Sf,vf=Hp),Sf.prototype.render=function(){var t=this,e=this.context,n=e.options,r=e.dateEnv,o=e.dateProfileGenerator,i=this.props,a=i.dateProfile,s=this.buildTimeColsModel(a,o),l=this.allDaySplitter.splitProps(i),u=this.buildSlatMetas(a.slotMinTime,a.slotMaxTime,n.slotLabelInterval,n.slotDuration,r),c=n.dayMinWidth,d=!c,p=c,e=n.dayHeaders&&pl(Xu,{dates:s.headerDates,dateProfile:a,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),o=!1!==n.allDaySlot&&function(e){return pl(mp,Sa({},l.allDay,{dateProfile:a,dayTableModel:s,nextDayThreshold:n.nextDayThreshold,tableMinWidth:e.tableMinWidth,colGroupNode:e.tableColGroupNode,renderRowIntro:d?t.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:t.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:i.forPrint},t.getAllDayMaxEventProps()))},r=function(e){return pl(hf,Sa({},l.timed,{dayTableModel:s,dateProfile:a,axis:d,slotDuration:n.slotDuration,slatMetas:u,forPrint:i.forPrint,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,onSlatCoords:t.handleSlatCoords,expandRows:e.expandRows,onScrollTopRequest:t.handleScrollTopRequest}))};return p?this.renderHScrollLayout(e,o,r,s.colCnt,c,u,this.state.slatCoords):this.renderSimpleLayout(e,o,r)},Sf);function Sf(){var e=null!==vf&&vf.apply(this,arguments)||this;return e.buildTimeColsModel=Qe($o),e.buildSlatMetas=Qe(Ko),e}var Ef,Cf=zn({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:yf,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),bf=(t(Df,Ef=xl),Df.prototype.render=function(){var e=this.props,o=e.dayDate,t=e.todayRange,n=this.context,i=n.theme,r=n.dateEnv,a=n.options,s=n.viewApi,l=wn(o,t),e=a.listDayFormat?r.format(o,a.listDayFormat):"",n=a.listDaySideFormat?r.format(o,a.listDaySideFormat):"",t=a.navLinks?kn(o):null,t=Sa({date:r.toDate(o),view:s,text:e,sideText:n,navLinkData:t},l),u=["fc-list-day"].concat(Tn(l,i));return pl(Al,{hookProps:t,classNames:a.dayHeaderClassNames,content:a.dayHeaderContent,defaultContent:Jo,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},function(e,t,n,r){return pl("tr",{ref:e,className:u.concat(t).join(" "),"data-date":Ze(o)},pl("th",{colSpan:3},pl("div",{className:"fc-list-day-cushion "+i.getClass("tableCellShaded"),ref:n},r)))})},Df);function Df(){return null!==Ef&&Ef.apply(this,arguments)||this}var Rf,wf=at({hour:"numeric",minute:"2-digit",meridiem:"short"}),Tf=(t(xf,Rf=xl),xf.prototype.render=function(){var e=this.props,i=this.context,a=e.seg,s=i.options.eventTimeFormat||wf;return pl(fc,{seg:a,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:Qo,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},function(e,t,n,r,o){return pl("tr",{className:["fc-list-event",o.event.url?"fc-event-forced-url":""].concat(t).join(" "),ref:e},function(e,t,n){var r=n.options;if(!1===r.displayEventTime)return null;var o=e.eventRange.def,i=e.eventRange.instance,a=!1,s=void 0;if(o.allDay?a=!0:xt(e.eventRange.range)?e.isStart?s=Yt(e,t,n,null,null,i.range.start,e.end):e.isEnd?s=Yt(e,t,n,null,null,e.start,i.range.end):a=!0:s=Yt(e,t,n),a){n={text:n.options.allDayText,view:n.viewApi};return pl(Al,{hookProps:n,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:ei,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},function(e,t,n,r){return pl("td",{className:["fc-list-event-time"].concat(t).join(" "),ref:e},r)})}return pl("td",{className:"fc-list-event-time"},s)}(a,s,i),pl("td",{className:"fc-list-event-graphic"},pl("span",{className:"fc-list-event-dot",style:{borderColor:o.borderColor||o.backgroundColor}})),pl("td",{className:"fc-list-event-title",ref:n},r))})},xf);function xf(){return null!==Rf&&Rf.apply(this,arguments)||this}var kf,_f=(t(Mf,kf=Ml),Mf.prototype.render=function(){var n=this,r=this.props,e=this.context,o=["fc-list",e.theme.getClass("table"),!1!==e.options.stickyHeaderDates?"fc-list-sticky":""],t=this.computeDateVars(r.dateProfile),i=t.dayDates,t=t.dayRanges,a=this.eventStoreToSegs(r.eventStore,r.eventUiBases,t);return pl(ql,{viewSpec:e.viewSpec,elRef:this.setRootEl},function(e,t){return pl("div",{ref:e,className:o.concat(t).join(" ")},pl(ic,{liquid:!r.isHeightAuto,overflowX:r.isHeightAuto?"visible":"hidden",overflowY:r.isHeightAuto?"visible":"auto"},0<a.length?n.renderSegList(a,i):n.renderEmptyMessage()))})},Mf.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,e=e.viewApi,e={text:t.noEventsText,view:e};return pl(Al,{hookProps:e,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:ti,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},function(e,t,n,r){return pl("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},pl("div",{className:"fc-list-empty-cushion",ref:n},r))})},Mf.prototype.renderSegList=function(e,u){var t=this.context,c=t.theme,d=t.options,p=function(e){for(var t,n=[],r=0;r<e.length;r+=1)(n[(t=e[r]).dayIndex]||(n[t.dayIndex]=[])).push(t);return n}(e);return pl(qu,{unit:"day"},function(e,t){for(var n=[],r=0;r<p.length;r+=1)if(i=p[r]){var o=u[r].toISOString();n.push(pl(bf,{key:o,dayDate:u[r],todayRange:t}));for(var i,a=0,s=i=Vt(i,d.eventOrder);a<s.length;a++){var l=s[a];n.push(pl(Tf,Sa({key:o+":"+l.eventRange.instance.instanceId,seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1},Zt(l,t,e))))}}return pl("table",{className:"fc-list-table "+c.getClass("table")},pl("tbody",null,n))})},Mf.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(At(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},Mf.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.eventRangeToSegs(i,t))}return n},Mf.prototype.eventRangeToSegs=function(e,t){for(var n,r,o=this.context.dateEnv,i=this.context.options.nextDayThreshold,a=e.range,s=e.def.allDay,l=[],u=0;u<t.length;u+=1)if((n=Pt(a,t[u]))&&(r={component:this,eventRange:e,start:n.start,end:n.end,isStart:e.isStart&&n.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&n.end.valueOf()===a.end.valueOf(),dayIndex:u},l.push(r),!r.isEnd&&!s&&u+1<t.length&&a.end<o.add(t[u+1].start,i))){r.end=a.end,r.isEnd=!0;break}return l},Mf);function Mf(){var t=null!==kf&&kf.apply(this,arguments)||this;return t.computeDateVars=Qe(ni),t.eventStoreToSegs=Qe(t._eventStoreToSegs),t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}var Pf,If=zn({optionRefiners:{listDayFormat:ri,listDaySideFormat:ri,noEventsClassNames:ct,noEventsContent:ct,noEventsDidMount:ct,noEventsWillUnmount:ct},views:{list:{component:_f,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"}}}}),Nf=(t(Hf,Pf=ul),Hf);function Hf(){return null!==Pf&&Pf.apply(this,arguments)||this}Nf.prototype.classes={root:"fc-theme-bootstrap",table:"table-bordered",tableCellShaded:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",popover:"popover",popoverHeader:"popover-header",popoverContent:"popover-body"},Nf.prototype.baseIconClass="fa",Nf.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},Nf.prototype.rtlIconClasses={prev:"fa-chevron-right",next:"fa-chevron-left",prevYear:"fa-angle-double-right",nextYear:"fa-angle-double-left"},Nf.prototype.iconOverrideOption="bootstrapFontAwesome",Nf.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",Nf.prototype.iconOverridePrefix="fa-";var Of,Af=zn({themeClasses:{bootstrap:Nf}}),Wf={googleCalendarApiKey:String},Lf={googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,extraParams:ct},Uf=zn({eventSourceDefs:[{parseMeta:function(e){var t,n,r=e.googleCalendarId;return!r&&e.url&&(t=e.url,r=/^[^/]+@([^/.]+\.)*(google|googlemail|gmail)\.com$/.test(t)?t:(n=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(t))||(n=/^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(t))?decodeURIComponent(n[1]):null),r?{googleCalendarId:r,googleCalendarApiKey:e.googleCalendarApiKey,googleCalendarApiBase:e.googleCalendarApiBase,extraParams:e.extraParams}:null},fetch:function(e,n,r){var o,t,i=e.context,a=i.dateEnv,s=i.options,l=e.eventSource.meta,i=l.googleCalendarApiKey||s.googleCalendarApiKey;i?(s=(l.googleCalendarApiBase||"https://www.googleapis.com/calendar/v3/calendars")+"/"+encodeURIComponent(l.googleCalendarId)+"/events",l="function"==typeof(l=l.extraParams)?l():l,cr("GET",s,o=(e=e.range,i=i,l=l,e=(a=a).canComputeOffset?(t=a.formatIso(e.start),a.formatIso(e.end)):(t=ce(e.start,-1).toISOString(),ce(e.end,1).toISOString()),e=Sa(Sa({},l||{}),{key:i,timeMin:t,timeMax:e,singleEvents:!0,maxResults:9999}),"local"!==a.timeZone&&(e.timeZone=a.timeZone),e),function(e,t){e.error?r({message:"Google Calendar API: "+e.error.message,errors:e.error.errors,xhr:t}):n({rawEvents:oi(e.items,o.timeZone),xhr:t})},function(e,t){r({message:e,xhr:t})})):r({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}}],optionRefiners:Wf,eventSourceRefiners:Lf}),Bf="2021-07-28",zf=372,Vf=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],Ff={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"},Gf=zn({optionRefiners:{schedulerLicenseKey:String},viewContainerAppends:[function(e){var t=e.options.schedulerLicenseKey,e="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(e)){t=function(e){if(-1!==Vf.indexOf(e))return"valid";var t=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){e=new Date(1e3*parseInt(t[2],10)),t=new Date(vu.mockSchedulerReleaseDate||Bf);if(De(t))return ce(t,-zf)<e?"valid":"outdated"}return"invalid"}(t);if("valid"!==t)return pl("div",{className:"fc-license-message",style:Ff},"outdated"===t?pl(gl,null,"Your license key is too old to work with this version. ",pl("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):pl(gl,null,"Your license key is invalid. ",pl("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]}),jf="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" "),qf=(Yf.prototype.destroy=function(){var e=this.el;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(var t=0,n=jf;t<n.length;t++){var r=n[t];e.removeEventListener(r,this.handleWheel)}},Yf.prototype.startScroll=function(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))},Yf.prototype.endScroll=function(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())},Yf.prototype._handleScrollWaited=function(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()},Yf.prototype._handleWheelWaited=function(){this.isRecentlyWheeled=!1},Yf);function Yf(e){var t=this;this.el=e,this.emitter=new $s,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new Jl(this._handleWheelWaited.bind(this)),this.scrollWaiter=new Jl(this._handleScrollWaited.bind(this)),this.handleScroll=function(){t.startScroll(),t.emitter.trigger("scroll",t.isRecentlyWheeled,t.isTouching),t.isRecentlyScrolled=!0,t.scrollWaiter.request(500)},this.handleWheel=function(){t.isRecentlyWheeled=!0,t.wheelWaiter.request(500)},this.handleTouchStart=function(){t.isTouching=!0},this.handleTouchEnd=function(){t.isTouching=!1,t.isRecentlyScrolled||t.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(var n=0,r=jf;n<r.length;n++){var o=r[n];e.addEventListener(o,this.handleWheel)}}var Zf,Xf="undefined"!=typeof navigator&&/Edge/.test(navigator.userAgent),Kf=($f.prototype.destroy=function(){this.listener&&this.listener.destroy()},$f.prototype.queryElGeoms=function(e){for(var t,n,r=this.scrollEl,o=this.isRtl,i=(n=(t=r).getBoundingClientRect(),r=In(t),{left:n.left+r.borderLeft+r.scrollbarLeft-ii(t),top:n.top+r.borderTop-t.scrollTop}),a=[],s=0,l=e;s<l.length;s++){var u=l[s],c=Sn(Nn(u.parentNode,!0,!0),-i.left,-i.top),d=u.getBoundingClientRect(),p=window.getComputedStyle(u),f=window.getComputedStyle(u.parentNode).textAlign,u=null;"start"===f?f=o?"right":"left":"end"===f&&(f=o?"left":"right"),"sticky"!==p.position&&(u=Sn(d,-i.left-(parseFloat(p.left)||0),-i.top-(parseFloat(p.top)||0))),a.push({parentBound:c,naturalBound:u,elWidth:d.width,elHeight:d.height,textAlign:f})}return a},$f.prototype.computeElDestinations=function(e,t){var n=this.scrollEl,a=n.scrollTop,s=ii(n),l=s+t;return e.map(function(e){var t,n=e.elWidth,r=e.elHeight,o=e.parentBound,i=e.naturalBound;switch(e.textAlign){case"left":t=s;break;case"right":t=l-n;break;case"center":t=(s+l)/2-n/2}return t=Math.min(t,o.right-n),t=Math.max(t,o.left),e=a,e=Math.min(e=a,o.bottom-r),{left:t,top:e=Math.max(e,i.top)}})},$f);function $f(e,t){var d=this;this.scrollEl=e,this.isRtl=t,this.usingRelative=null,this.updateSize=function(){var o,i,a,s,l,u,e=d.scrollEl,t=L(e,".fc-sticky"),n=d.queryElGeoms(t),r=e.clientWidth,c=e.clientHeight;d.usingRelative?(e=d.computeElDestinations(n,r),a=n,s=e,l=r,u=c,t.forEach(function(e,t){var n,r=a[t],o=r.naturalBound,i=r.parentBound,r=i.right-i.left,i=i.bottom-i.bottom,o=l<r||u<i?(n=s[t].left-o.left,s[t].top-o.top):n="";B(e,{position:"relative",left:n,right:-n,top:o})})):(o=n,i=r,t.forEach(function(e,t){var n=o[t],r=n.textAlign,t=n.elWidth,n=n.parentBound,n=n.right-n.left,t="center"===r&&i<n?(i-t)/2:"";B(e,{left:t,right:t,top:0})}))},this.usingRelative=!li()||Xf&&t,this.usingRelative&&(this.listener=new qf(e),this.listener.emitter.on("scrollEnd",this.updateSize))}var Jf,Qf=(t(eh,Jf=xl),eh.prototype.render=function(){var e=this.props,t=this.state,n=this.context.isRtl&&_n(),r=0,o=0,i=0;return"scroll-hidden"===e.overflowX&&(i=t.xScrollbarWidth),"scroll-hidden"===e.overflowY&&null!=t.yScrollbarWidth&&(n?r=t.yScrollbarWidth:o=t.yScrollbarWidth),pl("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},pl(ic,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===e.overflowX?"scroll":e.overflowX,overflowY:"scroll-hidden"===e.overflowY?"scroll":e.overflowY,overcomeLeft:r,overcomeRight:o,overcomeBottom:i,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===e.overflowX?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))},eh.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},eh.prototype.componentDidUpdate=function(e){Pe(e,this.props)||this.handleSizing()},eh.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},eh.prototype.needsXScrolling=function(){return this.scroller.needsXScrolling()},eh.prototype.needsYScrolling=function(){return this.scroller.needsYScrolling()},eh);function eh(){var t=null!==Jf&&Jf.apply(this,arguments)||this;return t.elRef=hl(),t.state={xScrollbarWidth:0,yScrollbarWidth:0},t.handleScroller=function(e){t.scroller=e,Bn(t.props.scrollerRef,e)},t.handleSizing=function(){var e=t.props;"scroll-hidden"===e.overflowY&&t.setState({yScrollbarWidth:t.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&t.setState({xScrollbarWidth:t.scroller.getXScrollbarWidth()})},t}var th=(nh.prototype.destroy=function(){for(var e=0,t=this.scrollListeners;e<t.length;e++)t[e].destroy()},nh.prototype.bindScroller=function(i){var a=this,s=this.scrollEls,l=this.isVertical,e=new qf(i);return e.emitter.on("scroll",function(e,t){if(!a.isPaused&&(a.masterEl&&(a.masterEl===i||!e&&!t)||a.assignMaster(i),a.masterEl===i))for(var n=0,r=s;n<r.length;n++){var o=r[n];o!==i&&(l?o.scrollTop=i.scrollTop:o.scrollLeft=i.scrollLeft)}}),e.emitter.on("scrollEnd",function(){a.masterEl===i&&(a.masterEl=null)}),e},nh.prototype.assignMaster=function(e){this.masterEl=e;for(var t=0,n=this.scrollListeners;t<n.length;t++){var r=n[t];r.el!==e&&r.endScroll()}},nh.prototype.forceScrollLeft=function(e){this.isPaused=!0;for(var t=0,n=this.scrollListeners;t<n.length;t++)ai(n[t].el,e);this.isPaused=!1},nh.prototype.forceScrollTop=function(e){this.isPaused=!0;for(var t=0,n=this.scrollListeners;t<n.length;t++)n[t].el.scrollTop=e;this.isPaused=!1},nh);function nh(e,t){var n=this;this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map(function(e){return n.bindScroller(e)})}var rh,oh=(t(ih,rh=xl),ih.prototype.render=function(){var e=this.props,t=this.state,n=this.context,r=t.shrinkWidths,o=this.compileColGroupStats(e.colGroups.map(function(e){return[e]})),i=this.renderMicroColGroups(o.map(function(e,t){return[e.cols,r[t]]})),a=no(e.liquid,n),n=this.getDims();n[0],n[1];for(var s,l=e.sections,u=l.length,c=0,d=[],p=[],f=[];c<u&&"header"===(s=l[c]).type;)d.push(this.renderSection(s,c,o,i,t.sectionRowMaxHeights)),c+=1;for(;c<u&&"body"===(s=l[c]).type;)p.push(this.renderSection(s,c,o,i,t.sectionRowMaxHeights)),c+=1;for(;c<u&&"footer"===(s=l[c]).type;)f.push(this.renderSection(s,c,o,i,t.sectionRowMaxHeights)),c+=1;var h,n=!Dn();return pl("table",{ref:e.elRef,className:a.join(" ")},(h=r,a=(a=o).map(function(e,t){var n=e.width;return"shrink"===n&&(n=e.totalColWidth+eo(h[t])+1),pl("col",{style:{width:n}})}),pl.apply(void 0,g(["colgroup",{}],a))),Boolean(!n&&d.length)&&pl.apply(void 0,g(["thead",{}],d)),Boolean(!n&&p.length)&&pl.apply(void 0,g(["tbody",{}],p)),Boolean(!n&&f.length)&&pl.apply(void 0,g(["tfoot",{}],f)),n&&pl.apply(void 0,g(g(g(["tbody",{}],d),p),f)))},ih.prototype.renderSection=function(n,r,o,i,a){var s=this;return"outerContent"in n?pl(gl,{key:n.key},n.outerContent):pl("tr",{key:n.key,className:ro(n,this.props.liquid).join(" ")},n.chunks.map(function(e,t){return s.renderChunk(n,r,o[t],i[t],e,t,(a[r]||[])[t]||[])}))},ih.prototype.renderChunk=function(e,t,n,r,o,i,a){if("outerContent"in o)return pl(gl,{key:o.key},o.outerContent);var s=this.state,l=s.scrollerClientWidths,u=s.scrollerClientHeights,c=this.getDims(),d=c[0],p=c[1],f=t*p+i,h=i===(!this.context.isRtl||_n()?p-1:0),g=t===d-1,c=g&&s.forceXScrollbars,i=h&&s.forceYScrollbars,p=n&&n.allowXScrolling,t=Kr(this.props,e),d=Xr(this.props,e),s=e.expandRows&&d,a=$r(e,o,{tableColGroupNode:r,tableMinWidth:n&&n.totalColMinWidth||"",clientWidth:void 0!==l[f]?l[f]:null,clientHeight:void 0!==u[f]?u[f]:null,expandRows:s,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:a,reportRowHeightChange:this.handleRowHeightChange}),g=c?g?"scroll":"scroll-hidden":p?g?"auto":"scroll-hidden":"hidden",h=i?h?"scroll":"scroll-hidden":t?h?"auto":"scroll-hidden":"hidden",a=pl(Qf,{ref:this.clippedScrollerRefs.createRef(f),scrollerElRef:this.scrollerElRefs.createRef(f),overflowX:g,overflowY:h,liquid:d,maxHeight:e.maxHeight},a);return pl("td",{key:o.key,ref:this.chunkElRefs.createRef(f)},a)},ih.prototype.componentDidMount=function(){this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)},ih.prototype.componentDidUpdate=function(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)},ih.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing),this.destroyStickyScrolling(),this.destroyScrollSyncers()},ih.prototype.allowSizing=function(){var e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+vu.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,!(this.recentSizingCnt=0)):(this.recentSizingCnt+=1)<=10},ih.prototype.computeShrinkWidths=function(){var n=this,e=this.compileColGroupStats(this.props.colGroups.map(function(e){return[e]})),t=this.getDims(),r=t[0],o=t[1],i=r*o,a=[];return e.forEach(function(e,t){e.hasShrinkCol&&(e=n.chunkElRefs.collect(t,i,o),a[t]=Zr(e))}),a},ih.prototype.computeSectionRowMaxHeights=function(){for(var n=new Map,e=this.getDims(),t=e[0],r=e[1],o=[],i=0;i<t;i+=1){var a=this.props.sections[i],s=[];if(a&&a.syncRowHeights){for(var l=[],u=0;u<r;u+=1){var c=[],d=this.chunkElRefs.currentMap[i*r+u],c=d?L(d,".fc-scrollgrid-sync-table tr").map(function(e){var t=ui(e);return n.set(e,t),t}):[];l.push(c)}for(var p=l[0].length,f=!0,u=1;u<r;u+=1)if(!(a.chunks[u]&&void 0!==a.chunks[u].outerContent)&&l[u].length!==p){f=!1;break}if(f){for(u=0;u<r;u+=1)s.push([]);for(S=0;S<p;S+=1){for(var h=[],u=0;u<r;u+=1){var g=l[u][S];null!=g&&h.push(g)}for(var v=Math.max.apply(Math,h),u=0;u<r;u+=1)s[u].push(v)}}else{for(var m=[],u=0;u<r;u+=1)m.push(function(e){for(var t=0,n=0,r=e;n<r.length;n++)t+=r[n];return t}(l[u])+l[u].length);for(var y=Math.max.apply(Math,m),u=0;u<r;u+=1){var S,E=l[u].length,C=y-E,b=Math.floor(C/E),D=[];for((S=0)<E&&(D.push(C-b*(E-1)),S+=1);S<E;)D.push(b),S+=1;s.push(D)}}}o.push(s)}return this.rowInnerMaxHeightMap=n,o},ih.prototype.computeScrollerDims=function(){for(var e=Mn(),t=this.getDims(),n=t[0],r=t[1],o=!this.context.isRtl||_n()?r-1:0,i=n-1,a=this.clippedScrollerRefs.currentMap,s=this.scrollerElRefs.currentMap,l=!1,u=!1,c={},d={},p=0;p<n;p+=1)if((f=a[g=p*r+o])&&f.needsYScrolling()){l=!0;break}for(var f,h=0;h<r;h+=1)if((f=a[g=i*r+h])&&f.needsXScrolling()){u=!0;break}for(p=0;p<n;p+=1)for(h=0;h<r;h+=1){var g,v=s[g=p*r+h];v&&(v=v.parentNode,c[g]=Math.floor(v.getBoundingClientRect().width-(h===o&&l?e.y:0)),d[g]=Math.floor(v.getBoundingClientRect().height-(p===i&&u?e.x:0)))}return{forceYScrollbars:l,forceXScrollbars:u,scrollerClientWidths:c,scrollerClientHeights:d}},ih.prototype.updateStickyScrolling=function(){var t=this.context.isRtl,e=this.scrollerElRefs.getAll().map(function(e){return[e,t]}),e=this.getStickyScrolling(e);e.forEach(function(e){return e.updateSize()}),this.stickyScrollings=e},ih.prototype.destroyStickyScrolling=function(){this.stickyScrollings.forEach(mi)},ih.prototype.updateScrollSyncers=function(){for(var e=this.getDims(),t=e[0],n=e[1],r=t*n,o={},i={},a=this.scrollerElRefs.currentMap,s=0;s<t;s+=1){var l=s*n;o[s]=He(a,l,l+n,1)}for(var u=0;u<n;u+=1)i[u]=this.scrollerElRefs.collect(u,r,n);this.scrollSyncersBySection=this.getScrollSyncersBySection(o),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(i)},ih.prototype.destroyScrollSyncers=function(){ke(this.scrollSyncersBySection,gi),ke(this.scrollSyncersByColumn,gi)},ih.prototype.getChunkConfigByIndex=function(e){var t=this.getDims()[1],n=Math.floor(e/t),n=this.props.sections[n];return n&&n.chunks[e%t]},ih.prototype.forceScrollLeft=function(e,t){e=this.scrollSyncersByColumn[e];e&&e.forceScrollLeft(t)},ih.prototype.forceScrollTop=function(e,t){e=this.scrollSyncersBySection[e];e&&e.forceScrollTop(t)},ih.prototype._handleChunkEl=function(e,t){t=this.getChunkConfigByIndex(parseInt(t,10));t&&Bn(t.elRef,e)},ih.prototype._handleScrollerEl=function(e,t){t=this.getChunkConfigByIndex(parseInt(t,10));t&&Bn(t.scrollerElRef,e)},ih.prototype.getDims=function(){var e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]},ih);function ih(){var o=null!==rh&&rh.apply(this,arguments)||this;return o.compileColGroupStats=tt(di,fi),o.renderMicroColGroups=tt(Qr),o.clippedScrollerRefs=new sc,o.scrollerElRefs=new sc(o._handleScrollerEl.bind(o)),o.chunkElRefs=new sc(o._handleChunkEl.bind(o)),o.getStickyScrolling=tt(vi,null,mi),o.getScrollSyncersBySection=nt(hi.bind(o,!0),null,gi),o.getScrollSyncersByColumn=nt(hi.bind(o,!1),null,gi),o.stickyScrollings=[],o.scrollSyncersBySection={},o.scrollSyncersByColumn={},o.rowUnstableMap=new Map,o.rowInnerMaxHeightMap=new Map,o.anyRowHeightsChanged=!1,o.recentSizingCnt=0,o.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},o.handleSizing=function(e,t){var n;o.allowSizing()&&(t||(o.anyRowHeightsChanged=!0),n={},!e&&(t||o.rowUnstableMap.size)||(n.sectionRowMaxHeights=o.computeSectionRowMaxHeights()),o.setState(Sa(Sa({shrinkWidths:o.computeShrinkWidths()},o.computeScrollerDims()),n),function(){o.rowUnstableMap.size||o.updateStickyScrolling()}))},o.handleRowHeightChange=function(e,t){var n=o.rowUnstableMap,r=o.rowInnerMaxHeightMap;t?(n.delete(e),t=ui(e),r.has(e)&&r.get(e)===t||(r.set(e,t),o.anyRowHeightsChanged=!0),!n.size&&o.anyRowHeightsChanged&&(o.anyRowHeightsChanged=!1,o.setState({sectionRowMaxHeights:o.computeSectionRowMaxHeights()}))):n.set(e,!0)},o}oh.addStateEquality({shrinkWidths:Je,scrollerClientWidths:Pe,scrollerClientHeights:Pe});var ah={cols:Jr},sh=zn({deps:[Gf],scrollGridImpl:oh});vu.SCROLLGRID_RESIZE_INTERVAL=500,vu.COLLAPSIBLE_WIDTH_THRESHOLD=1200;var lh=[],uh=[],ja=zn({deps:[Gf],contextInit:function(e){lh.length||(window.addEventListener("beforeprint",yi),window.addEventListener("afterprint",Si)),lh.push(e),e.calendarApi.on("_unmount",function(){$e(lh,e),lh.length||(window.removeEventListener("beforeprint",yi),window.removeEventListener("afterprint",Si))})}}),ch=18,dh=6,ph=200;vu.MAX_TIMELINE_SLOTS=1e3;var fh,hh=[{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}],gh=(t(vh,fh=xl),vh.prototype.render=function(){var n=this.props,e=this.context,r=n.navLinkData?{"data-navlink":n.navLinkData,tabIndex:0}:{};return pl(Gn,{hookProps:n.hookProps,content:e.options.slotLabelContent,defaultContent:ki},function(e,t){return pl("a",Sa({ref:e,className:"fc-timeline-slot-cushion fc-scrollgrid-sync-inner"+(n.isSticky?" fc-sticky":"")},r),t)})},vh);function vh(){return null!==fh&&fh.apply(this,arguments)||this}var mh,yh=(t(Sh,mh=xl),Sh.prototype.render=function(){var t=this.props,e=this.context,n=e.dateEnv,r=e.options,o=t.cell,i=t.dateProfile,a=t.tDateProfile,i=wn(o.date,t.todayRange,t.nowDate,i),s=["fc-timeline-slot","fc-timeline-slot-label"].concat(("time"===o.rowUnit?xn:Tn)(i,e.theme));o.isWeekStart&&s.push("fc-timeline-slot-em");var l=r.navLinks&&o.rowUnit&&"time"!==o.rowUnit?kn(o.date,o.rowUnit):null,u=this.refineHookProps({level:t.rowLevel,dateMarker:o.date,text:o.text,dateEnv:e.dateEnv,viewApi:e.viewApi}),c=this.normalizeClassNames(r.slotLabelClassNames,u);return pl(Fl,{hookProps:u,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},function(e){return pl("th",{ref:e,className:s.concat(c).join(" "),"data-date":n.formatIso(o.date,{omitTime:!a.isTimeScale,omitTimeZoneOffset:!0}),colSpan:o.colspan},pl("div",{className:"fc-timeline-slot-frame",style:{height:t.rowInnerHeight}},pl(gh,{hookProps:u,isSticky:t.isSticky,navLinkData:l})))})},Sh);function Sh(){var e=null!==mh&&mh.apply(this,arguments)||this;return e.refineHookProps=et(_i),e.normalizeClassNames=jn(),e}var Eh,Ch=(t(bh,Eh=xl),bh.prototype.render=function(){var e=this.props,o=e.dateProfile,i=e.tDateProfile,a=e.rowInnerHeights,s=e.todayRange,l=e.nowDate,u=i.cellRows;return pl(gl,null,u.map(function(e,t){var n=t===u.length-1,r=i.isTimeScale&&n;return pl("tr",{key:t,className:["fc-timeline-header-row",r?"fc-timeline-header-row-chrono":""].join(" ")},e.map(function(e){return pl(yh,{key:e.date.toISOString(),cell:e,rowLevel:t,dateProfile:o,tDateProfile:i,todayRange:s,nowDate:l,rowInnerHeight:a&&a[t],isSticky:!n})}))}))},bh);function bh(){return null!==Eh&&Eh.apply(this,arguments)||this}var Dh=(Rh.prototype.isDateInRange=function(e){return Ot(this.dateProfile.currentRange,e)},Rh.prototype.dateToCoord=function(e){var t=this.tDateProfile,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n),e=n-(r=Math.min(r,t.slotCnt-1)),n=this.innerCoordCache,t=this.outerCoordCache;return this.isRtl?t.originClientRect.width-(t.rights[r]-n.getWidth(r)*e):t.lefts[r]+n.getWidth(r)*e},Rh.prototype.rangeToCoords=function(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}},Rh.prototype.durationToCoord=function(e){var t=this.dateProfile,n=this.tDateProfile,r=this.dateEnv,o=this.isRtl,i=0;return t&&(e=r.add(t.activeRange.start,e),n.isTimeScale||(e=me(e)),i=this.dateToCoord(e),!o&&i&&(i+=1)),i},Rh.prototype.coordFromLeft=function(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e},Rh.prototype.computeDateSnapCoverage=function(e){return Mi(e,this.tDateProfile,this.dateEnv)},Rh);function Rh(e,t,n,r,o,i){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=o,this.isRtl=i,this.outerCoordCache=new Qs(e,t,!0,!1),this.innerCoordCache=new Qs(e,U(t,"div"),!0,!1)}var wh,Th=(t(xh,wh=xl),xh.prototype.render=function(){var t=this,n=this.props,i=this.context,e=qe(n.tDateProfile.slotDuration).unit,a=n.slatCoords&&n.slatCoords.dateProfile===n.dateProfile?n.slatCoords:null;return pl(qu,{unit:e},function(o,e){return pl("div",{className:"fc-timeline-header",ref:t.rootElRef},pl("table",{className:"fc-scrollgrid-sync-table",style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,pl("tbody",null,pl(Ch,{dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:o,todayRange:e,rowInnerHeights:n.rowInnerHeights}))),i.options.nowIndicator&&pl("div",{className:"fc-timeline-now-indicator-container"},a&&a.isDateInRange(o)&&pl(yc,{isAxis:!0,date:o},function(e,t,n,r){return pl("div",{ref:e,className:["fc-timeline-now-indicator-arrow"].concat(t).join(" "),style:Pi(a.dateToCoord(o),i.isRtl)},r)})))})},xh.prototype.componentDidMount=function(){this.updateSize()},xh.prototype.componentDidUpdate=function(){this.updateSize()},xh.prototype.updateSize=function(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())},xh.prototype.computeMaxCushionWidth=function(){return Math.max.apply(Math,L(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map(function(e){return e.getBoundingClientRect().width}))},xh);function xh(){var e=null!==wh&&wh.apply(this,arguments)||this;return e.rootElRef=hl(),e}var kh,_h=(t(Mh,kh=xl),Mh.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.options,o=t.theme,i=e.date,a=e.tDateProfile,s=e.isEm,l=wn(e.date,e.todayRange,e.nowDate,e.dateProfile),u=["fc-timeline-slot","fc-timeline-slot-lane"],c={"data-date":n.formatIso(i,{omitTimeZoneOffset:!0,omitTime:!a.isTimeScale})},t=Sa(Sa({date:n.toDate(e.date)},l),{view:t.viewApi});return s&&u.push("fc-timeline-slot-em"),a.isTimeScale&&u.push(se(n.countDurationsBetween(a.normalizedRange.start,e.date,a.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor"),u.push.apply(u,(e.isDay?Tn:xn)(l,o)),pl(Al,{hookProps:t,classNames:r.slotLaneClassNames,content:r.slotLaneContent,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount,elRef:e.elRef},function(e,t,n,r){return pl("td",Sa({ref:e,className:u.concat(t).join(" ")},c),pl("div",{ref:n},r))})},Mh);function Mh(){return null!==kh&&kh.apply(this,arguments)||this}var Ph,Ih=(t(Nh,Ph=xl),Nh.prototype.render=function(){var r=this.props,o=r.tDateProfile,i=r.cellElRefs,e=o.slotDates,a=o.isWeekStarts,s=!o.isTimeScale&&!o.largeUnit;return pl("tbody",null,pl("tr",null,e.map(function(e,t){var n=e.toISOString();return pl(_h,{key:n,elRef:i.createRef(n),date:e,dateProfile:r.dateProfile,tDateProfile:o,nowDate:r.nowDate,todayRange:r.todayRange,isEm:a[t],isDay:s})})))},Nh);function Nh(){return null!==Ph&&Ph.apply(this,arguments)||this}var Hh,Oh=(t(Ah,Hh=xl),Ah.prototype.render=function(){var e=this.props,t=this.context;return pl("div",{className:"fc-timeline-slots",ref:this.rootElRef},pl("table",{className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,pl(Ih,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))},Ah.prototype.componentDidMount=function(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},Ah.prototype.componentDidUpdate=function(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},Ah.prototype.componentWillUnmount=function(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)},Ah.prototype.updateSizing=function(){var t,e=this.props,n=this.context;null!==e.clientWidth&&this.scrollResponder&&this.rootElRef.current.offsetWidth&&(this.coords=new Dh(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.tDateProfile.slotDates.map(function(e){e=e.toISOString();return t[e]})),e.dateProfile,e.tDateProfile,n.dateEnv,n.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))},Ah.prototype.positionToHit=function(e){var t=this.coords.outerCoordCache,n=this.context,r=n.dateEnv,o=n.isRtl,i=this.props.tDateProfile,a=t.leftToIndex(e);if(null==a)return null;n=t.getWidth(a),n=o?(t.rights[a]-e)/n:(e-t.lefts[a])/n,n=Math.floor(n*i.snapsPerSlot),n=r.add(i.slotDates[a],Be(i.snapDuration,n));return{dateSpan:{range:{start:n,end:r.add(n,i.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[a],left:t.lefts[a],right:t.rights[a]}},Ah);function Ah(){var r=null!==Hh&&Hh.apply(this,arguments)||this;return r.rootElRef=hl(),r.cellElRefs=new sc,r.handleScrollRequest=function(e){var t=r.props.onScrollLeftRequest,n=r.coords;return t&&n?(e.time&&t(n.coordFromLeft(n.durationToCoord(e.time))),!0):null},r}var Wh,Lh=(t(Uh,Wh=xl),Uh.prototype.render=function(){var e=this.props,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&pl("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"))},Uh.prototype.renderSegs=function(e,t,n){var r=this.props,o=r.todayRange,i=r.nowDate,a=this.context.isRtl,s=Ni(e,0,t),e=e.map(function(e,t){t=Ii(s[t],a);return pl("div",{key:Kt(e.eventRange),className:"fc-timeline-bg-harness",style:t},"bg-event"===n?pl(Tc,Sa({seg:e},Zt(e,o,i))):uo(n))});return pl(gl,null,e)},Uh);function Uh(){return null!==Wh&&Wh.apply(this,arguments)||this}var Bh,zh=(t(Vh,Bh=tc),Vh.prototype.sliceRange=function(e,t,n,r,o){var i,a,i=(s=e,a=o,(i=r).isTimeScale||(s=Tt(s),i.largeUnit&&(e=s,((s={start:a.startOf(s.start,i.largeUnit),end:a.startOf(s.end,i.largeUnit)}).end.valueOf()!==e.end.valueOf()||s.end<=s.start)&&(s={start:s.start,end:a.add(s.end,i.slotDuration)}))),s),s=[];return Mi(i.start,r,o)<Mi(i.end,r,o)&&((o=Pt(i,r.normalizedRange))&&s.push({start:o.start,end:o.end,isStart:o.start.valueOf()===i.start.valueOf()&&Ri(o.start,r,t,n),isEnd:o.end.valueOf()===i.end.valueOf()&&Ri(de(o.end,-1),r,t,n)})),s},Vh);function Vh(){return null!==Bh&&Bh.apply(this,arguments)||this}var Fh,Gh=at({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),jh=(t(qh,Fh=xl),qh.prototype.render=function(){var e=this.props;return pl(vc,Sa({},e,{extraClassNames:["fc-timeline-event","fc-h-event"],defaultTimeFormat:Gh,defaultDisplayEventTime:!e.isTimeScale}))},qh);function qh(){return null!==Fh&&Fh.apply(this,arguments)||this}var Yh,Zh=(t(Xh,Yh=xl),Xh.prototype.render=function(){var i=this,n=this.props,e=this.context,t=n.hiddenSegs,a=n.elRef,r=n.placement,o=n.resourceId,s=r.top,r=r.hcoords,l=r&&null!==s,u=Ii(r,e.isRtl);return pl(Oc,{allDayDate:null,moreCnt:t.length,allSegs:t,hiddenSegs:t,alignmentElRef:this.rootElRef,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:o?{resourceId:o}:{},popoverContent:function(){return pl(gl,null,t.map(function(e){var t=e.eventRange.instance.instanceId;return pl("div",{key:t,style:{visibility:n.isForcedInvisible[t]?"hidden":""}},pl(jh,Sa({isTimeScale:n.isTimeScale,seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===n.eventSelection},Zt(e,n.todayRange,n.nowDate))))}))}},function(t,e,n,r,o){return pl("a",{ref:function(e){Bn(t,e),Bn(a,e),Bn(i.rootElRef,e)},className:["fc-timeline-more-link"].concat(e).join(" "),style:Sa({visibility:l?"":"hidden",top:s||0},u),onClick:o},pl("div",{ref:n,className:"fc-timeline-more-link-inner fc-sticky"},r))})},Xh);function Xh(){var e=null!==Yh&&Yh.apply(this,arguments)||this;return e.rootElRef=hl(),e}var Kh,$h=(t(Jh,Kh=xl),Jh.prototype.render=function(){var e=this.props,t=this.state,n=this.context,r=n.options,o=e.dateProfile,i=e.tDateProfile,o=this.slicer.sliceProps(e,o,i.isTimeScale?null:e.nextDayThreshold,n,o,n.dateProfileGenerator,i,n.dateEnv),i=(o.eventDrag?o.eventDrag.segs:null)||(o.eventResize?o.eventResize.segs:null)||[],n=this.sortEventSegs(o.fgEventSegs,r.eventOrder),n=function(t,e,n,r,o,i){for(var a=[],s=[],l=0;l<t.length;l+=1){var u=t[l],c=n[u.eventRange.instance.instanceId],d=e[l];c&&d?a.push({index:l,span:d,thickness:c}):s.push({seg:u,hcoords:d,top:null})}var p=new lu;null!=o&&(p.strictOrder=o),null!=i&&(p.maxStackCnt=i);for(var i=(o=p.addSegs(a)).map(function(e){return{seg:t[e.index],hcoords:e.span,top:0}}),f=kr(o),h=[],g=[],v=function(e){return t[e.index]},l=0;l<f.length;l+=1){var m=f[l],y=m.entries.map(v);null!=(c=r[Ye(go(y))])?h.push({index:t.length+l,thickness:c,span:m.span}):g.push({seg:y,hcoords:m.span,top:null})}p.maxStackCnt=-1,p.addSegs(h);for(var S=[],E=0,C=0,b=p.toRects();C<b.length;C++){var D=b[C],R=D.index;S.push({seg:R<t.length?t[R]:f[R-t.length].entries.map(v),hcoords:D.span,top:D.levelCoord}),E=Math.max(E,D.levelCoord+D.thickness)}return[S.concat(s,i,g),E]}(n,Ni(n,r.eventMinWidth,e.timelineCoords),t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),t=n[0],r=n[1],n=(o.eventDrag?o.eventDrag.affectedInstances:null)||(o.eventResize?o.eventResize.affectedInstances:null)||{};return pl(gl,null,pl(Lh,{businessHourSegs:o.businessHourSegs,bgEventSegs:o.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:o.eventResize?o.eventResize.segs:[],dateSelectionSegs:o.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),pl("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:r}},this.renderFgSegs(t,n,!1,!1,!1),this.renderFgSegs(Hi(i,e.timelineCoords,t),{},Boolean(o.eventDrag),Boolean(o.eventResize),!1)))},Jh.prototype.componentDidMount=function(){this.updateSize()},Jh.prototype.componentDidUpdate=function(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()},Jh.prototype.updateSize=function(){var e=this,t=this.props,n=t.timelineCoords;t.onHeightChange&&t.onHeightChange(this.innerElRef.current,!1),n&&this.setState({eventInstanceHeights:ke(this.harnessElRefs.currentMap,function(e){return Math.round(e.getBoundingClientRect().height)}),moreLinkHeights:ke(this.moreElRefs.currentMap,function(e){return Math.round(e.getBoundingClientRect().height)})},function(){t.onHeightChange&&t.onHeightChange(e.innerElRef.current,!0)})},Jh.prototype.renderFgSegs=function(e,i,a,s,l){var u=this.harnessElRefs,c=this.moreElRefs,d=this.props,p=this.context,f=a||s||l;return pl(gl,null,e.map(function(e){var t=e.seg,n=e.hcoords,r=e.top;if(Array.isArray(t)){var o=Ye(go(t));return pl(Zh,{key:"m:"+o,elRef:c.createRef(o),hiddenSegs:t,placement:e,dateProfile:d.dateProfile,nowDate:d.nowDate,todayRange:d.todayRange,isTimeScale:d.tDateProfile.isTimeScale,eventSelection:d.eventSelection,resourceId:d.resourceId,isForcedInvisible:i})}o=t.eventRange.instance.instanceId,e=f||Boolean(!i[o]&&n&&null!==r),n=Ii(n,p.isRtl);return pl("div",{key:"e:"+o,ref:f?null:u.createRef(o),className:"fc-timeline-event-harness",style:Sa({visibility:e?"":"hidden",top:r||0},n)},pl(jh,Sa({isTimeScale:d.tDateProfile.isTimeScale,seg:t,isDragging:a,isResizing:s,isDateSelecting:l,isSelected:o===d.eventSelection},Zt(t,d.todayRange,d.nowDate))))}))},Jh);function Jh(){var e=null!==Kh&&Kh.apply(this,arguments)||this;return e.slicer=new zh,e.sortEventSegs=Qe(Vt),e.harnessElRefs=new sc,e.moreElRefs=new sc,e.innerElRef=hl(),e.state={eventInstanceHeights:{},moreLinkHeights:{}},e}$h.addStateEquality({eventInstanceHeights:Pe,moreLinkHeights:Pe});var Qh,eg=(t(tg,Qh=Ml),tg.prototype.render=function(){var t=this,n=this.props,i=this.state,a=this.context,r=a.options,s=n.dateProfile,l=n.tDateProfile,e=qe(l.slotDuration).unit;return pl("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:n.tableMinWidth,height:n.clientHeight,width:n.clientWidth}},pl(qu,{unit:e},function(o,e){return pl(gl,null,pl(Oh,{ref:t.slatsRef,dateProfile:s,tDateProfile:l,nowDate:o,todayRange:e,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:t.handleCoords,onScrollLeftRequest:n.onScrollLeftRequest}),pl($h,{dateProfile:s,tDateProfile:n.tDateProfile,nowDate:o,todayRange:e,nextDayThreshold:r.nextDayThreshold,businessHours:n.businessHours,eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,timelineCoords:i.coords}),r.nowIndicator&&i.coords&&i.coords.isDateInRange(o)&&pl("div",{className:"fc-timeline-now-indicator-container"},pl(yc,{isAxis:!1,date:o},function(e,t,n,r){return pl("div",{ref:e,className:["fc-timeline-now-indicator-line"].concat(t).join(" "),style:Pi(i.coords.dateToCoord(o),a.isRtl)},r)})))}))},tg.prototype.queryHit=function(e,t,n,r){e=this.slatsRef.current.positionToHit(e);return e?{dateProfile:this.props.dateProfile,dateSpan:e.dateSpan,rect:{left:e.left,right:e.right,top:0,bottom:r},dayEl:e.dayEl,layer:0}:null},tg);function tg(){var t=null!==Qh&&Qh.apply(this,arguments)||this;return t.slatsRef=hl(),t.state={coords:null},t.handeEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t.handleCoords=function(e){t.setState({coords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}var ng,Rl=(t(rg,ng=Ml),rg.prototype.render=function(){var n=this,r=this.props,t=this.state,e=this.context,o=e.options,i=!r.forPrint&&io(o),a=!r.forPrint&&ao(o),s=this.buildTimelineDateProfile(r.dateProfile,e.dateEnv,o,e.dateProfileGenerator),l=["fc-timeline",!1===o.eventOverlap?"fc-timeline-overlap-disabled":""],u=o.slotMinWidth,c=Oi(s,u||this.computeFallbackSlotMinWidth(s)),d=[{type:"header",key:"header",isSticky:i,chunks:[{key:"timeline",content:function(e){return pl(Th,{dateProfile:r.dateProfile,clientWidth:e.clientWidth,clientHeight:e.clientHeight,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,tDateProfile:s,slatCoords:t.slatCoords,onMaxCushionWidth:u?null:n.handleMaxCushionWidth})}}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:function(e){return pl(eg,Sa({},r,{clientWidth:e.clientWidth,clientHeight:e.clientHeight,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,tDateProfile:s,onSlatCoords:n.handleSlatCoords,onScrollLeftRequest:n.handleScrollLeftRequest}))}}]}];return a&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:oo}]}),pl(ql,{viewSpec:e.viewSpec},function(e,t){return pl("div",{ref:e,className:l.concat(t).join(" ")},pl(oh,{ref:n.scrollGridRef,liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:!1,colGroups:[{cols:c}],sections:d}))})},rg.prototype.computeFallbackSlotMinWidth=function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)},rg);function rg(){var t=null!==ng&&ng.apply(this,arguments)||this;return t.buildTimelineDateProfile=Qe(bi),t.scrollGridRef=hl(),t.state={slatCoords:null,slotCushionMaxWidth:null},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t.handleScrollLeftRequest=function(e){t.scrollGridRef.current.forceScrollLeft(0,e)},t.handleMaxCushionWidth=function(e){t.setState({slotCushionMaxWidth:Math.ceil(e)})},t}Zc=zn({deps:[Gf],initialView:"timelineDay",views:{timeline:{component:Rl,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}}}}),og.prototype.transform=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},fd=og;function og(){this.filterResources=Qe(Wi)}ig.prototype.transform=function(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}},vd=ig;function ig(){this.buildResourceEventUis=Qe(Li,Pe),this.injectResourceEventUis=Qe(Ui)}var ag=[],sg={id:String,resources:ct,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:ct},lg={id:String,parentId:String,children:ct,title:String,businessHours:ct,extendedProps:ct,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:ct,eventOverlap:Boolean,eventAllow:ct,eventClassNames:mt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String},bd={resourceId:String,resourceIds:ct,resourceEditable:Boolean},ug=(cg.prototype.setProp=function(e,t){var n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)},cg.prototype.setExtendedProp=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)},cg.prototype.sync=function(t){var n=this._context,r=t.id;this._resource=n.getCurrentData().resourceStore[r],n.emitter.trigger("resourceChange",{oldResource:new cg(n,t),resource:this,revert:function(){var e;n.dispatch({type:"ADD_RESOURCE",resourceHash:((e={})[r]=t,e)})}})},cg.prototype.remove=function(){var t=this._context,n=this._resource,r=n.id;t.dispatch({type:"REMOVE_RESOURCE",resourceId:r}),t.emitter.trigger("resourceRemove",{resource:this,revert:function(){var e;t.dispatch({type:"ADD_RESOURCE",resourceHash:((e={})[r]=n,e)})}})},cg.prototype.getParent=function(){var e=this._context,t=this._resource.parentId;return t?new cg(e,e.getCurrentData().resourceSource[t]):null},cg.prototype.getChildren=function(){var e,t=this._resource.id,n=this._context,r=n.getCurrentData().resourceStore,o=[];for(e in r)r[e].parentId===t&&o.push(new cg(n,r[e]));return o},cg.prototype.getEvents=function(){var e,t=this._resource.id,n=this._context,r=n.getCurrentData().eventStore,o=r.defs,i=r.instances,a=[];for(e in i){var s=i[e],l=o[s.defId];-1!==l.resourceIds.indexOf(t)&&a.push(new Hs(n,l,s))}return a},Object.defineProperty(cg.prototype,"id",{get:function(){return Yi(this._resource.id)},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"title",{get:function(){return this._resource.title},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"eventConstraint",{get:function(){return this._resource.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"eventOverlap",{get:function(){return this._resource.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"eventAllow",{get:function(){return this._resource.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"eventBackgroundColor",{get:function(){return this._resource.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"eventBorderColor",{get:function(){return this._resource.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"eventTextColor",{get:function(){return this._resource.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"eventClassNames",{get:function(){return this._resource.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(cg.prototype,"extendedProps",{get:function(){return this._resource.extendedProps},enumerable:!1,configurable:!0}),cg.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._resource,n=t.ui,r=this.id,o={};return r&&(o.id=r),t.title&&(o.title=t.title),e.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.eventColor=n.backgroundColor:(n.backgroundColor&&(o.eventBackgroundColor=n.backgroundColor),n.borderColor&&(o.eventBorderColor=n.borderColor)),n.textColor&&(o.eventTextColor=n.textColor),n.classNames.length&&(o.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Sa(o,t.extendedProps):o.extendedProps=t.extendedProps),o},cg.prototype.toJSON=function(){return this.toPlainObject()},cg);function cg(e,t){this._context=e,this._resource=t}Is.prototype.addResource=function(e,t){var n=this;void 0===t&&(t=!0);var r,o,i=this.getCurrentData();e instanceof ug?((r={})[(o=e._resource).id]=o,r=r):o=qi(e,"",r={},i),this.dispatch({type:"ADD_RESOURCE",resourceHash:r}),t&&this.trigger("_scrollRequest",{resourceId:o.id});t=new ug(i,o);return i.emitter.trigger("resourceAdd",{resource:t,revert:function(){n.dispatch({type:"REMOVE_RESOURCE",resourceId:o.id})}}),t},Is.prototype.getResourceById=function(e){e=String(e);var t=this.getCurrentData();if(t.resourceStore){e=t.resourceStore[e];if(e)return new ug(t,e)}return null},Is.prototype.getResources=function(){var e=this.getCurrentData(),t=e.resourceStore,n=[];if(t)for(var r in t)n.push(new ug(e,t[r]));return n},Is.prototype.getTopLevelResources=function(){var e=this.getCurrentData(),t=e.resourceStore,n=[];if(t)for(var r in t)t[r].parentId||n.push(new ug(e,t[r]));return n},Is.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};var dg,pg=(t(fg,dg=Ys),fg.prototype.getKeyInfo=function(e){return Sa({"":{}},e.resourceStore)},fg.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},fg.prototype.getKeysForEventDef=function(e){e=e.resourceIds;return e.length?e:[""]},fg);function fg(){return null!==dg&&dg.apply(this,arguments)||this}Hs.prototype.getResources=function(){var t=this._context.calendarApi;return this._def.resourceIds.map(function(e){return t.getResourceById(e)})},Hs.prototype.setResources=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n],i=null;"string"==typeof o?i=o:"number"==typeof o?i=String(o):o instanceof ug?i=o.id:console.warn("unknown resource type: "+o),i&&t.push(i)}this.mutate({standardProps:{resourceIds:t}})};var Rd={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}},hg=te("id,title"),Td={initialResources:ct,resources:ct,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:te,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:ct,resourceAreaColumns:ct,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:ct,resourceAreaHeaderContent:ct,resourceAreaHeaderDidMount:ct,resourceAreaHeaderWillUnmount:ct,resourceGroupLabelClassNames:ct,resourceGroupLabelContent:ct,resourceGroupLabelDidMount:ct,resourceGroupLabelWillUnmount:ct,resourceLabelClassNames:ct,resourceLabelContent:ct,resourceLabelDidMount:ct,resourceLabelWillUnmount:ct,resourceLaneClassNames:ct,resourceLaneContent:ct,resourceLaneDidMount:ct,resourceLaneWillUnmount:ct,resourceGroupLaneClassNames:ct,resourceGroupLaneContent:ct,resourceGroupLaneDidMount:ct,resourceGroupLaneWillUnmount:ct},xd={resourcesSet:ct,resourceAdd:ct,resourceChange:ct,resourceRemove:ct};Bi({ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.resources)?e.resources:null},fetch:function(e,t){t({rawResources:e.resourceSource.meta})}}),Bi({parseMeta:function(e){return"function"==typeof e.resources?e.resources:null},fetch:function(e,t,n){var r=e.context.dateEnv,o=e.resourceSource.meta,r=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}:{};An(o.bind(null,r),function(e){t({rawResources:e})},n)}}),Bi({parseMeta:function(e){return e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null},fetch:function(e,n,r){var t,o,i,a,s,l,u,c=e.resourceSource.meta,u=(t=c,o=e.range,i=e.context,s=i.dateEnv,l=i.options,u={},o&&(null==(a=t.startParam)&&(a=l.startParam),null==(e=t.endParam)&&(e=l.endParam),null==(i=t.timeZoneParam)&&(i=l.timeZoneParam),u[a]=s.formatIso(o.start),u[e]=s.formatIso(o.end),"local"!==s.timeZone&&(u[i]=s.timeZone)),t="function"==typeof t.extraParams?t.extraParams():t.extraParams||{},Sa(u,t),u);cr(c.method,c.url,u,function(e,t){n({rawResources:e,xhr:t})},function(e,t){r({message:e,xhr:t})})}});var gg,vg=(t(mg,gg=xl),mg.prototype.render=function(){var i=this.props;return pl(Ki,{resource:i.resource,date:i.date},function(e,t,n,r,o){return pl("th",Sa({ref:e,className:["fc-col-header-cell","fc-resource"].concat(t).join(" "),colSpan:i.colSpan},n),pl("div",{className:"fc-scrollgrid-sync-inner"},pl("span",{className:["fc-col-header-cell-cushion",i.isSticky?"fc-sticky":""].join(" "),ref:r},o)))})},mg);function mg(){return null!==gg&&gg.apply(this,arguments)||this}var yg,Sg=(t(Eg,yg=xl),Eg.prototype.render=function(){var n=this,r=this.props,o=this.context,i=this.buildDateFormat(o.options.dayHeaderFormat,r.datesRepDistinctDays,r.dates.length);return pl(qu,{unit:"day"},function(e,t){return 1===r.dates.length?n.renderResourceRow(r.resources,r.dates[0]):o.options.datesAboveResources?n.renderDayAndResourceRows(r.dates,i,t,r.resources):n.renderResourceAndDayRows(r.resources,r.dates,i,t)})},Eg.prototype.renderResourceRow=function(e,t){e=e.map(function(e){return pl(vg,{key:e.id,resource:e,colSpan:1,date:t})});return this.buildTr(e,"resources")},Eg.prototype.renderDayAndResourceRows=function(e,t,n,r){for(var o=[],i=[],a=0,s=e;a<s.length;a++){var l=s[a];o.push(this.renderDateCell(l,t,n,r.length,null,!0));for(var u=0,c=r;u<c.length;u++){var d=c[u];i.push(pl(vg,{key:d.id+":"+l.toISOString(),resource:d,colSpan:1,date:l}))}}return pl(gl,null,this.buildTr(o,"day"),this.buildTr(i,"resources"))},Eg.prototype.renderResourceAndDayRows=function(e,t,n,r){for(var o=[],i=[],a=0,s=e;a<s.length;a++){var l=s[a];o.push(pl(vg,{key:l.id,resource:l,colSpan:t.length,isSticky:!0}));for(var u=0,c=t;u<c.length;u++){var d=c[u];i.push(this.renderDateCell(d,n,r,1,l))}}return pl(gl,null,this.buildTr(o,"resources"),this.buildTr(i,"day"))},Eg.prototype.renderDateCell=function(e,t,n,r,o,i){var a=this.props,s=o?":"+o.id:"",l=o?{resource:new ug(this.context,o)}:{},o=o?{"data-resource-id":o.id}:{};return a.datesRepDistinctDays?pl(Bu,{key:e.toISOString()+s,date:e,dateProfile:a.dateProfile,todayRange:n,colCnt:a.dates.length*a.resources.length,dayHeaderFormat:t,colSpan:r,isSticky:i,extraHookProps:l,extraDataAttrs:o}):pl(Fu,{key:e.getUTCDay()+s,dow:e.getUTCDay(),dayHeaderFormat:t,colSpan:r,isSticky:i,extraHookProps:l,extraDataAttrs:o})},Eg.prototype.buildTr=function(e,t){var n=this.props.renderIntro;return e.length||(e=[pl("td",{key:0},"�")]),pl("tr",{key:t},n&&n(t),e)},Eg);function Eg(){var e=null!==yg&&yg.apply(this,arguments)||this;return e.buildDateFormat=Qe(Ji),e}var Cg=function(e){for(var t={},n=[],r=0;r<e.length;r+=1){var o=e[r].id;n.push(o),t[o]=r}this.ids=n,this.indicesById=t,this.length=e.length},Wf=(bg.prototype.buildCells=function(){for(var e=this.rowCnt,t=this.dayTableModel,n=this.resources,r=[],o=0;o<e;o+=1){for(var i=[],a=0;a<t.colCnt;a+=1)for(var s=0;s<n.length;s+=1){var l=n[s],u={resource:new ug(this.context,l)},c={"data-resource-id":l.id},d={resourceId:l.id},p=t.cells[o][a].date;i[this.computeCol(a,s)]={key:l.id+":"+p.toISOString(),date:p,extraHookProps:u,extraDataAttrs:c,extraClassNames:["fc-resource"],extraDateSpan:d}}r.push(i)}return r},bg);function bg(e,t,n){this.dayTableModel=e,this.resources=t,this.context=n,this.resourceIndex=new Cg(t),this.rowCnt=e.rowCnt,this.colCnt=e.colCnt*t.length,this.cells=this.buildCells()}var Dg,Rg=(t(wg,Dg=Wf),wg.prototype.computeCol=function(e,t){return t*this.dayTableModel.colCnt+e},wg.prototype.computeColRanges=function(e,t,n){return[{firstCol:this.computeCol(e,n),lastCol:this.computeCol(t,n),isStart:!0,isEnd:!0}]},wg);function wg(){return null!==Dg&&Dg.apply(this,arguments)||this}var Tg,xg=(t(kg,Tg=Wf),kg.prototype.computeCol=function(e,t){return e*this.resources.length+t},kg.prototype.computeColRanges=function(e,t,n){for(var r=[],o=e;o<=t;o+=1){var i=this.computeCol(o,n);r.push({firstCol:i,lastCol:i,isStart:o===e,isEnd:o===t})}return r},kg);function kg(){return null!==Tg&&Tg.apply(this,arguments)||this}var _g=[],Lf=(Mg.prototype.joinProps=function(e,t){for(var n=[],r=[],o=[],i=[],a=[],s=[],l="",u=0,c=t.resourceIndex.ids.concat([""]);u<c.length;u++){var d=c[u],p=e[d];n.push(p.dateSelectionSegs),r.push(d?p.businessHourSegs:_g),o.push(d?p.fgEventSegs:_g),i.push(p.bgEventSegs),a.push(p.eventDrag),s.push(p.eventResize),l=l||p.eventSelection}return{dateSelectionSegs:this.joinDateSelection.apply(this,g([t],n)),businessHourSegs:this.joinBusinessHours.apply(this,g([t],r)),fgEventSegs:this.joinFgEvents.apply(this,g([t],o)),bgEventSegs:this.joinBgEvents.apply(this,g([t],i)),eventDrag:this.joinEventDrags.apply(this,g([t],a)),eventResize:this.joinEventResizes.apply(this,g([t],s)),eventSelection:l}},Mg.prototype.joinSegs=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=e.resources.length,o=[],i=0;i<r;i+=1){for(var a=0,s=t[i];a<s.length;a++){var l=s[a];o.push.apply(o,this.transformSeg(l,e,i))}for(var u=0,c=t[r];u<c.length;u++){l=c[u];o.push.apply(o,this.transformSeg(l,e,i))}}return o},Mg.prototype.expandSegs=function(e,t){for(var n=e.resources.length,r=[],o=0;o<n;o+=1)for(var i=0,a=t;i<a.length;i++){var s=a[i];r.push.apply(r,this.transformSeg(s,e,o))}return r},Mg.prototype.joinInteractions=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=e.resources.length,o={},i=[],a=!1,s=!1,l=0;l<r;l+=1){var u=t[l];if(u){for(var a=!0,c=0,d=u.segs;c<d.length;c++){var p=d[c];i.push.apply(i,this.transformSeg(p,e,l))}Sa(o,u.affectedInstances),s=s||u.isEvent}if(t[r])for(var f=0,h=t[r].segs;f<h.length;f++){p=h[f];i.push.apply(i,this.transformSeg(p,e,l))}}return a?{affectedInstances:o,segs:i,isEvent:s}:null},Mg);function Mg(){this.joinDateSelection=Qe(this.joinSegs),this.joinBusinessHours=Qe(this.joinSegs),this.joinFgEvents=Qe(this.joinSegs),this.joinBgEvents=Qe(this.joinSegs),this.joinEventDrags=Qe(this.joinInteractions),this.joinEventResizes=Qe(this.joinInteractions)}var Pg,Ig=(t(Ng,Pg=Ys),Ng.prototype.getKeyInfo=function(e){var t=e.resourceDayTableModel,e=ke(t.resourceIndex.indicesById,function(e){return t.resources[e]});return e[""]={},e},Ng.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},Ng.prototype.getKeysForEventDef=function(e){e=e.resourceIds;return e.length?e:[""]},Ng);function Ng(){return null!==Pg&&Pg.apply(this,arguments)||this}var Hg,bd=zn({deps:[Gf],reducers:[function(e,t,n){var r=Fi(e&&e.resourceSource,t,n);return{resourceSource:r,resourceStore:Zi(e&&e.resourceStore,t,r,n),resourceEntityExpansions:(e=e&&e.resourceEntityExpansions,t=t,e&&t?"SET_RESOURCE_ENTITY_EXPANDED"!==t.type?e:Sa(Sa({},e),((e={})[t.id]=t.isExpanded,e)):{})}}],isLoadingFuncs:[function(e){return e.resourceSource&&e.resourceSource.isFetching}],eventRefiners:bd,eventDefMemberAdders:[function(e){return{resourceIds:(e.resourceIds||[]).map(function(e){return String(e)}).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable}}],isDraggableTransformers:[function(e,t,n,r){if(!e){var o=r.getCurrentData(),o=o.viewSpecs[o.currentViewType];if(o.optionDefaults.needsResourceData&&Ai(t,r))return!0}return e}],eventDragMutationMassagers:[function(e,t,n){t=t.dateSpan.resourceId,n=n.dateSpan.resourceId,t&&n&&t!==n&&(e.resourceMutation={matchResourceId:t,setResourceId:n})}],eventDefMutationAppliers:[function(e,t,n){var r=t.resourceMutation;r&&Ai(e,n)&&(-1!==(t=e.resourceIds.indexOf(r.matchResourceId))&&((n=e.resourceIds.slice()).splice(t,1),-1===n.indexOf(r.setResourceId)&&n.push(r.setResourceId),e.resourceIds=n))}],dateSelectionTransformers:[function(e,t){return e=e.dateSpan.resourceId,t=t.dateSpan.resourceId,e&&t?{resourceId:e}: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:[fd,vd],isPropsValid:function(e,t){var n,r=(new pg).splitProps(Sa(Sa({},e),{resourceStore:t.getCurrentData().resourceStore}));for(n in r){var o=r[n];if(!jr(o=n&&r[""]?Sa(Sa({},o),{eventStore:gt(r[""].eventStore,o.eventStore),eventUiBases:Sa(Sa({},r[""].eventUiBases),o.eventUiBases)}):o,t,{resourceId:n},Xi.bind(null,n)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){if(e=e.resourceMutation){t=t.calendarApi;return{oldResource:t.getResourceById(e.matchResourceId),newResource:t.getResourceById(e.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:Rd,optionRefiners:Td,listenerRefiners:xd,propSetHandlers:{resourceStore:function(e,t){var n=t.emitter;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",function(e,t){var n,r=[];for(n in e)r.push(new ug(t,e[n]));return r}(e,t))}}}),Og=(t(Ag,Hg=Lf),Ag.prototype.transformSeg=function(t,e,n){return e.computeColRanges(t.firstCol,t.lastCol,n).map(function(e){return Sa(Sa(Sa({},t),e),{isStart:t.isStart&&e.isStart,isEnd:t.isEnd&&e.isEnd})})},Ag);function Ag(){return null!==Hg&&Hg.apply(this,arguments)||this}var Wg,Lg=(t(Ug,Wg=Ml),Ug.prototype.render=function(){var n=this,e=this.props,r=this.context,o=e.resourceDayTableModel,i=e.nextDayThreshold,a=e.dateProfile,s=this.splitter.splitProps(e);this.slicers=ke(s,function(e,t){return n.slicers[t]||new hp});var t=ke(this.slicers,function(e,t){return e.sliceProps(s[t],a,i,r,o.dayTableModel)});return pl(dp,Sa({forPrint:e.forPrint,ref:this.tableRef},this.joiner.joinProps(t,o),{cells:o.cells,dateProfile:a,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,isHitComboAllowed:this.isHitComboAllowed}))},Ug);function Ug(){var n=null!==Wg&&Wg.apply(this,arguments)||this;return n.splitter=new Ig,n.slicers={},n.joiner=new Og,n.tableRef=hl(),n.isHitComboAllowed=function(e,t){return 1===n.props.resourceDayTableModel.dayTableModel.colCnt||e.dateSpan.resourceId===t.dateSpan.resourceId},n}var Bg,fd=(t(zg,Bg=Ud),zg.prototype.render=function(){var t=this,n=this.props,e=this.context,r=e.options,o=r.resourceOrder||hg,o=this.flattenResources(n.resourceStore,o),i=this.buildResourceDayTableModel(n.dateProfile,e.dateProfileGenerator,o,r.datesAboveResources,e),e=r.dayHeaders&&pl(Sg,{ref:this.headerRef,resources:o,dateProfile:n.dateProfile,dates:i.dayTableModel.headerDates,datesRepDistinctDays:!0}),o=function(e){return pl(Lg,{ref:t.tableRef,dateProfile:n.dateProfile,resourceDayTableModel:i,businessHours:n.businessHours,eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:r.nextDayThreshold,tableMinWidth:e.tableMinWidth,colGroupNode:e.tableColGroupNode,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:t.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:n.forPrint})};return r.dayMinWidth?this.renderHScrollLayout(e,o,i.colCnt,r.dayMinWidth):this.renderSimpleLayout(e,o)},zg);function zg(){var e=null!==Bg&&Bg.apply(this,arguments)||this;return e.flattenResources=Qe(Qi),e.buildResourceDayTableModel=Qe(ia),e.headerRef=hl(),e.tableRef=hl(),e}var Vg,vd=zn({deps:[Gf,bd,wp],initialView:"resourceDayGridDay",views:{resourceDayGrid:{type:"dayGrid",component:fd,needsResourceData:!0},resourceDayGridDay:{type:"resourceDayGrid",duration:{days:1}},resourceDayGridWeek:{type:"resourceDayGrid",duration:{weeks:1}},resourceDayGridMonth:{type:"resourceDayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),Fg=(t(Gg,Vg=Lf),Gg.prototype.transformSeg=function(e,t,n){return[Sa(Sa({},e),{col:t.computeCol(e.col,n)})]},Gg);function Gg(){return null!==Vg&&Vg.apply(this,arguments)||this}var jg,qg=(t(Yg,jg=Ml),Yg.prototype.render=function(){var n=this,r=this.props,o=this.context,e=o.dateEnv,i=o.options,a=r.dateProfile,s=r.resourceDayTableModel,l=this.dayRanges=this.buildDayRanges(s.dayTableModel,a,e),u=this.splitter.splitProps(r);this.slicers=ke(u,function(e,t){return n.slicers[t]||new df});var c=ke(this.slicers,function(e,t){return e.sliceProps(u[t],a,null,o,l)});return pl(qu,{unit:i.nowIndicator?"minute":"day"},function(e,t){return pl(lf,Sa({ref:n.timeColsRef},n.joiner.joinProps(c,s),{dateProfile:a,axis:r.axis,slotDuration:r.slotDuration,slatMetas:r.slatMetas,cells:s.cells[0],tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,clientWidth:r.clientWidth,clientHeight:r.clientHeight,expandRows:r.expandRows,nowDate:e,nowIndicatorSegs:i.nowIndicator&&n.buildNowIndicatorSegs(e),todayRange:t,onScrollTopRequest:r.onScrollTopRequest,forPrint:r.forPrint,onSlatCoords:r.onSlatCoords,isHitComboAllowed:n.isHitComboAllowed}))})},Yg.prototype.buildNowIndicatorSegs=function(e){e=this.slicers[""].sliceNowDate(e,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,e)},Yg);function Yg(){var n=null!==jg&&jg.apply(this,arguments)||this;return n.buildDayRanges=Qe(Xo),n.splitter=new Ig,n.slicers={},n.joiner=new Fg,n.timeColsRef=hl(),n.isHitComboAllowed=function(e,t){return 1===n.dayRanges.length||e.dateSpan.resourceId===t.dateSpan.resourceId},n}var Zg,Rd=(t(Xg,Zg=Hp),Xg.prototype.render=function(){var t=this,n=this.props,e=this.context,r=e.options,o=e.dateEnv,i=n.dateProfile,a=this.allDaySplitter.splitProps(n),s=r.resourceOrder||hg,l=this.flattenResources(n.resourceStore,s),u=this.buildResourceTimeColsModel(i,e.dateProfileGenerator,l,r.datesAboveResources,e),c=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,r.slotLabelInterval,r.slotDuration,o),d=r.dayMinWidth,p=!d,s=d,e=r.dayHeaders&&pl(Sg,{resources:l,dates:u.dayTableModel.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:p?this.renderHeadAxis:null}),o=!1!==r.allDaySlot&&function(e){return pl(Lg,Sa({},a.allDay,{dateProfile:i,resourceDayTableModel:u,nextDayThreshold:r.nextDayThreshold,tableMinWidth:e.tableMinWidth,colGroupNode:e.tableColGroupNode,renderRowIntro:p?t.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:t.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:n.forPrint},t.getAllDayMaxEventProps()))},l=function(e){return pl(qg,Sa({},a.timed,{dateProfile:i,axis:p,slotDuration:r.slotDuration,slatMetas:c,resourceDayTableModel:u,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,onSlatCoords:t.handleSlatCoords,expandRows:e.expandRows,forPrint:n.forPrint,onScrollTopRequest:t.handleScrollTopRequest}))};return s?this.renderHScrollLayout(e,o,l,u.colCnt,d,c,this.state.slatCoords):this.renderSimpleLayout(e,o,l)},Xg);function Xg(){var e=null!==Zg&&Zg.apply(this,arguments)||this;return e.flattenResources=Qe(Qi),e.buildResourceTimeColsModel=Qe(aa),e.buildSlatMetas=Qe(Ko),e}var Kg,Td=zn({deps:[Gf,bd,Cf],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:Rd,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}}),$g=(t(Jg,Kg=xl),Jg.prototype.render=function(){var e=this.props;return pl(Gn,{hookProps:e.hookProps,content:e.colSpec.cellContent,defaultContent:ua},function(e,t){return pl("span",{className:"fc-datagrid-cell-main",ref:e},t)})},Jg);function Jg(){return null!==Kg&&Kg.apply(this,arguments)||this}var Qg,ev=(t(tv,Qg=xl),tv.prototype.render=function(){var t=this,n=this.props,e=this.context,r=n.colSpec,o=this.refineHookProps({resource:n.resource,fieldValue:n.fieldValue,context:e}),i=this.normalizeClassNames(r.cellClassNames,o);return pl(Fl,{hookProps:o,didMount:r.cellDidMount,willUnmount:r.cellWillUnmount},function(e){return pl("td",{ref:e,"data-resource-id":n.resource.id,className:["fc-datagrid-cell","fc-resource"].concat(i).join(" ")},pl("div",{className:"fc-datagrid-cell-frame",style:{height:n.innerHeight}},pl("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},r.isMain&&pl(sa,{depth:n.depth,hasChildren:n.hasChildren,isExpanded:n.isExpanded,onExpanderClick:t.onExpanderClick}),pl($g,{hookProps:o,colSpec:r}))))})},tv);function tv(){var n=null!==Qg&&Qg.apply(this,arguments)||this;return n.refineHookProps=et(la),n.normalizeClassNames=jn(),n.onExpanderClick=function(e){var t=n.props;t.hasChildren&&n.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})},n}var nv,rv=(t(ov,nv=xl),ov.prototype.render=function(){var o=this.props,e=this.context,t=o.colSpec,e={groupValue:o.fieldValue,view:e.viewApi};return pl(Al,{hookProps:e,classNames:t.cellClassNames,content:t.cellContent,defaultContent:ca,didMount:t.cellDidMount,willUnmount:t.cellWillUnmount},function(e,t,n,r){return pl("td",{className:["fc-datagrid-cell","fc-resource-group"].concat(t).join(" "),rowSpan:o.rowSpan,ref:e},pl("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},pl("div",{className:"fc-datagrid-cell-cushion fc-sticky",ref:n},r)))})},ov);function ov(){return null!==nv&&nv.apply(this,arguments)||this}var iv,av=(t(sv,iv=xl),sv.prototype.render=function(){var o=this.props,i=o.resource,a=o.rowSpans,s=o.depth,l=ra(i);return pl("tr",null,o.colSpecs.map(function(e,t){var n=a[t];if(0===n)return null;null==n&&(n=1);var r=e.field?l[e.field]:i.title||Yi(i.id);return 1<n?pl(rv,{key:t,colSpec:e,fieldValue:r,rowSpan:n}):pl(ev,{key:t,colSpec:e,resource:i,fieldValue:r,depth:s,hasChildren:o.hasChildren,isExpanded:o.isExpanded,innerHeight:o.innerHeight})}))},sv);function sv(){return null!==iv&&iv.apply(this,arguments)||this}av.addPropsEquality({rowSpans:Je});var lv,uv=(t(cv,lv=xl),cv.prototype.render=function(){var o=this,i=this.props,a=this.context,e={groupValue:i.group.value,view:a.viewApi},t=i.group.spec;return pl("tr",null,pl(Al,{hookProps:e,classNames:t.labelClassNames,content:t.labelContent,defaultContent:da,didMount:t.labelDidMount,willUnmount:t.labelWillUnmount},function(e,t,n,r){return pl("td",{ref:e,colSpan:i.spreadsheetColCnt,className:["fc-datagrid-cell","fc-resource-group",a.theme.getClass("tableCellShaded")].concat(t).join(" ")},pl("div",{className:"fc-datagrid-cell-frame",style:{height:i.innerHeight}},pl("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:o.innerInnerRef},pl(sa,{depth:0,hasChildren:!0,isExpanded:i.isExpanded,onExpanderClick:o.onExpanderClick}),pl("span",{className:"fc-datagrid-cell-main",ref:n},r))))}))},cv);function cv(){var t=null!==lv&&lv.apply(this,arguments)||this;return t.innerInnerRef=hl(),t.onExpanderClick=function(){var e=t.props;t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})},t}uv.addPropsEquality({group:oa});var dv,pv=(t(fv,dv=xl),fv.prototype.render=function(){var o,s=this,e=this.props,l=e.colSpecs,t=e.superHeaderRendering,n=e.rowInnerHeights,r={view:this.context.viewApi},e=[],n=n.slice();t&&(o=n.shift(),e.push(pl("tr",{key:"row-super"},pl(Al,{hookProps:r,classNames:t.headerClassNames,content:t.headerContent,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},function(e,t,n,r){return pl("th",{colSpan:l.length,ref:e,className:["fc-datagrid-cell","fc-datagrid-cell-super"].concat(t).join(" ")},pl("div",{className:"fc-datagrid-cell-frame",style:{height:o}},pl("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:n},r)))}))));var u=n.shift();return e.push(pl("tr",{key:"row"},l.map(function(o,i){var a=i===l.length-1;return pl(Al,{key:i,hookProps:r,classNames:o.headerClassNames,content:o.headerContent,didMount:o.headerDidMount,willUnmount:o.headerWillUnmount},function(e,t,n,r){return pl("th",{ref:e,className:["fc-datagrid-cell"].concat(t).join(" ")},pl("div",{className:"fc-datagrid-cell-frame",style:{height:u}},pl("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},o.isMain&&pl("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},pl("span",{className:"fc-icon"})),pl("span",{className:"fc-datagrid-cell-main",ref:n},r)),!a&&pl("div",{className:"fc-datagrid-cell-resizer",ref:s.resizerElRefs.createRef(i)})))})}))),pl(gl,null,e)},fv.prototype._handleColResizerEl=function(e,t){var n,r=this.colDraggings;e?(n=this.initColResizing(e,parseInt(t,10)))&&(r[t]=n):(n=r[t])&&(n.destroy(),delete r[t])},fv.prototype.initColResizing=function(t,n){var e=this.context,r=e.pluginHooks,o=e.isRtl,i=this.props.onColWidthChange,r=r.elementDraggingImpl;if(r){var a,s,r=new r(t);return r.emitter.on("dragstart",function(){var e=L(A(t,"tr"),"th");s=e.map(function(e){return e.getBoundingClientRect().width}),a=s[n]}),r.emitter.on("dragmove",function(e){s[n]=Math.max(a+e.deltaX*(o?-1:1),20),i&&i(s.slice())}),r.setAutoScrollEnabled(!1),r}return null},fv);function fv(){var e=null!==dv&&dv.apply(this,arguments)||this;return e.resizerElRefs=new sc(e._handleColResizerEl.bind(e)),e.colDraggings={},e}var hv,gv=(t(vv,hv=xl),vv.prototype.render=function(){var e=this.props,t=this.context,e={resource:new ug(t,e.resource)};return pl(Gn,{hookProps:e,content:t.options.resourceLaneContent},function(e,t){return t&&pl("div",{className:"fc-timeline-lane-misc",ref:e},t)})},vv);function vv(){return null!==hv&&hv.apply(this,arguments)||this}var mv,yv=(t(Sv,mv=xl),Sv.prototype.render=function(){var t=this,n=this.props,e=this.context,r=e.options,e=this.refineHookProps({resource:n.resource,context:e}),o=this.normalizeClassNames(r.resourceLaneClassNames,e);return pl("tr",{ref:n.elRef},pl(Fl,{hookProps:e,didMount:r.resourceLaneDidMount,willUnmount:r.resourceLaneWillUnmount},function(e){return pl("td",{ref:e,className:["fc-timeline-lane","fc-resource"].concat(o).join(" "),"data-resource-id":n.resource.id},pl("div",{className:"fc-timeline-lane-frame",style:{height:n.innerHeight}},pl(gv,{resource:n.resource}),pl($h,{dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,nextDayThreshold:n.nextDayThreshold,businessHours:n.businessHours,eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,timelineCoords:n.timelineCoords,onHeightChange:t.handleHeightChange,resourceId:n.resource.id})))}))},Sv);function Sv(){var n=null!==mv&&mv.apply(this,arguments)||this;return n.refineHookProps=et(pa),n.normalizeClassNames=jn(),n.handleHeightChange=function(e,t){n.props.onHeightChange&&n.props.onHeightChange(A(e,"tr"),t)},n}var Ev,Cv=(t(bv,Ev=xl),bv.prototype.render=function(){var o=this,i=this.props,e=this.props.renderingHooks,t={groupValue:i.groupValue,view:this.context.viewApi};return pl("tr",{ref:i.elRef},pl(Al,{hookProps:t,classNames:e.laneClassNames,content:e.laneContent,didMount:e.laneDidMount,willUnmount:e.laneWillUnmount},function(e,t,n,r){return pl("td",{ref:e,className:["fc-timeline-lane","fc-resource-group",o.context.theme.getClass("tableCellShaded")].concat(t).join(" ")},pl("div",{style:{height:i.innerHeight},ref:n},r))}))},bv);function bv(){return null!==Ev&&Ev.apply(this,arguments)||this}var Dv,Rv=(t(wv,Dv=xl),wv.prototype.render=function(){var r=this.props,o=this.context,i=r.rowElRefs,a=r.innerHeights;return pl("tbody",null,r.rowNodes.map(function(e,t){if(e.group)return pl(Cv,{key:e.id,elRef:i.createRef(e.id),groupValue:e.group.value,renderingHooks:e.group.spec,innerHeight:a[t]||""});if(e.resource){var n=e.resource;return pl(yv,Sa({key:e.id,elRef:i.createRef(e.id)},r.splitProps[n.id],{resource:n,dateProfile:r.dateProfile,tDateProfile:r.tDateProfile,nowDate:r.nowDate,todayRange:r.todayRange,nextDayThreshold:o.options.nextDayThreshold,businessHours:n.businessHours||r.fallbackBusinessHours,innerHeight:a[t]||"",timelineCoords:r.slatCoords,onHeightChange:r.onRowHeightChange}))}return null}))},wv);function wv(){return null!==Dv&&Dv.apply(this,arguments)||this}var Tv,xv=(t(kv,Tv=xl),kv.prototype.render=function(){var e=this.props,t=this.context;return pl("table",{ref:this.rootElRef,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},pl(Rv,{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}))},kv.prototype.componentDidMount=function(){this.updateCoords()},kv.prototype.componentDidUpdate=function(){this.updateCoords()},kv.prototype.componentWillUnmount=function(){this.props.onRowCoords&&this.props.onRowCoords(null)},kv.prototype.updateCoords=function(){var t,e=this.props;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new Qs(this.rootElRef.current,(t=this.rowElRefs.currentMap,e.rowNodes.map(function(e){return t[e.id]})),!1,!0))},kv);function kv(){var e=null!==Tv&&Tv.apply(this,arguments)||this;return e.rootElRef=hl(),e.rowElRefs=new sc,e}var _v,Mv=(t(Pv,_v=Ml),Pv.prototype.render=function(){var t=this,n=this.props,e=this.state,i=this.context,r=n.dateProfile,a=n.tDateProfile,o=qe(a.slotDuration).unit,s=this.computeHasResourceBusinessHours(n.rowNodes),l=this.resourceSplitter.splitProps(n),u=l[""],c=this.bgSlicer.sliceProps(u,r,a.isTimeScale?null:n.nextDayThreshold,i,r,i.dateProfileGenerator,a,i.dateEnv),d=e.slatCoords&&e.slatCoords.dateProfile===n.dateProfile?e.slatCoords:null;return pl("div",{ref:this.handleEl,className:["fc-timeline-body",n.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:n.tableMinWidth}},pl(qu,{unit:o},function(o,e){return pl(gl,null,pl(Oh,{ref:t.slatsRef,dateProfile:r,tDateProfile:a,nowDate:o,todayRange:e,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:t.handleSlatCoords,onScrollLeftRequest:n.onScrollLeftRequest}),pl(Lh,{businessHourSegs:s?null:c.businessHourSegs,bgEventSegs:c.bgEventSegs,timelineCoords:d,eventResizeSegs:c.eventResize?c.eventResize.segs:[],dateSelectionSegs:c.dateSelectionSegs,nowDate:o,todayRange:e}),pl(xv,{rowNodes:n.rowNodes,dateProfile:r,tDateProfile:n.tDateProfile,nowDate:o,todayRange:e,splitProps:l,fallbackBusinessHours:s?n.businessHours:null,clientWidth:n.clientWidth,minHeight:n.expandRows?n.clientHeight:"",tableMinWidth:n.tableMinWidth,innerHeights:n.rowInnerHeights,slatCoords:d,onRowCoords:t.handleRowCoords,onRowHeightChange:n.onRowHeightChange}),i.options.nowIndicator&&d&&d.isDateInRange(o)&&pl("div",{className:"fc-timeline-now-indicator-container"},pl(yc,{isAxis:!1,date:o},function(e,t,n,r){return pl("div",{ref:e,className:["fc-timeline-now-indicator-line"].concat(t).join(" "),style:Pi(d.dateToCoord(o),i.isRtl)},r)})))}))},Pv.prototype.queryHit=function(e,t){var n=this.rowCoords,r=n.topToIndex(t);if(null!=r){t=this.props.rowNodes[r].resource;if(t){e=this.slatsRef.current.positionToHit(e);if(e)return{dateProfile:this.props.dateProfile,dateSpan:{range:e.dateSpan.range,allDay:e.dateSpan.allDay,resourceId:t.id},rect:{left:e.left,right:e.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:e.dayEl,layer:0}}}return null},Pv);function Pv(){var t=null!==_v&&_v.apply(this,arguments)||this;return t.computeHasResourceBusinessHours=Qe(fa),t.resourceSplitter=new pg,t.bgSlicer=new zh,t.slatsRef=hl(),t.state={slatCoords:null},t.handleEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t.handleRowCoords=function(e){t.rowCoords=e,t.props.onRowCoords&&t.props.onRowCoords(e)},t}var Iv,Nv=(t(Hv,Iv=xl),Hv.prototype.render=function(){var e=this.props,t=this.state,n=this.context,r=n.options,o=!e.forPrint&&io(r),i=!e.forPrint&&ao(r),o=[{type:"header",key:"header",syncRowHeights:!0,isSticky:o,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:pl("td",{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:pl("td",{className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];i&&o.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:oo},{key:"divider",outerContent:pl("td",{className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:oo}]});r=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return pl(oh,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:r},{cols:[]},{cols:e.timeCols}],sections:o})},Hv.prototype.forceTimeScroll=function(e){this.scrollGridRef.current.forceScrollLeft(2,e)},Hv.prototype.forceResourceScroll=function(e){this.scrollGridRef.current.forceScrollTop(1,e)},Hv.prototype.getResourceScroll=function(){return this.timeBodyScrollerElRef.current.scrollTop},Hv.prototype.componentDidMount=function(){this.initSpreadsheetResizing()},Hv.prototype.componentWillUnmount=function(){this.destroySpreadsheetResizing()},Hv.prototype.initSpreadsheetResizing=function(){var e,t,n,r=this,o=this.context,i=o.isRtl,o=o.pluginHooks.elementDraggingImpl,a=this.spreadsheetHeaderChunkElRef.current;o&&(e=this.rootElRef.current,(o=this.spreadsheetResizerDragging=new o(e,".fc-resource-timeline-divider")).emitter.on("dragstart",function(){t=a.getBoundingClientRect().width,n=e.getBoundingClientRect().width}),o.emitter.on("dragmove",function(e){e=t+e.deltaX*(i?-1:1),e=Math.max(e,30);e=Math.min(e,n-30),r.setState({resourceAreaWidthOverride:e},r.ensureScrollGridResize)}),o.setAutoScrollEnabled(!1))},Hv.prototype.destroySpreadsheetResizing=function(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()},Hv);function Hv(){var e=null!==Iv&&Iv.apply(this,arguments)||this;return e.scrollGridRef=hl(),e.timeBodyScrollerElRef=hl(),e.spreadsheetHeaderChunkElRef=hl(),e.rootElRef=hl(),e.ensureScrollGridResizeId=0,e.state={resourceAreaWidthOverride:null},e.ensureScrollGridResize=function(){e.ensureScrollGridResizeId&&clearTimeout(e.ensureScrollGridResizeId),e.ensureScrollGridResizeId=setTimeout(function(){e.scrollGridRef.current.handleSizing(!1)},vu.SCROLLGRID_RESIZE_INTERVAL+1)},e}var Ov,xd=(t(Av,Ov=xl),Av.prototype.render=function(){var o=this,i=this.props,a=this.state,s=this.context,e=s.options,t=s.viewSpec,n=this.processColOptions(s.options),l=n.superHeaderRendering,r=n.groupSpecs,u=n.orderSpecs,c=n.isVGrouping,d=n.colSpecs,p=this.buildTimelineDateProfile(i.dateProfile,s.dateEnv,e,s.dateProfileGenerator),f=this.rowNodes=this.buildRowNodes(i.resourceStore,r,u,c,i.resourceEntityExpansions,e.resourcesInitiallyExpanded),h=["fc-resource-timeline",this.hasNesting(f)?"":"fc-resource-timeline-flat","fc-timeline",!1===e.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],g=e.slotMinWidth,v=Oi(p,g||this.computeFallbackSlotMinWidth(p));return pl(ql,{viewSpec:t},function(e,t){return pl("div",{ref:e,className:h.concat(t).join(" ")},pl(Nv,{ref:o.layoutRef,forPrint:i.forPrint,isHeightAuto:i.isHeightAuto,spreadsheetCols:(n=a.spreadsheetColWidths,void 0===(r="")&&(r=""),d.map(function(e,t){return{className:e.isMain?"fc-main-col":"",width:n[t]||e.width||r}})),spreadsheetHeaderRows:function(e){return pl(pv,{superHeaderRendering:l,colSpecs:d,onColWidthChange:o.handleColWidthChange,rowInnerHeights:e.rowSyncHeights})},spreadsheetBodyRows:function(e){return pl(gl,null,o.renderSpreadsheetRows(f,d,e.rowSyncHeights))},timeCols:v,timeHeaderContent:function(e){return pl(Th,{clientWidth:e.clientWidth,clientHeight:e.clientHeight,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,dateProfile:i.dateProfile,tDateProfile:p,slatCoords:a.slatCoords,rowInnerHeights:e.rowSyncHeights,onMaxCushionWidth:g?null:o.handleMaxCushionWidth})},timeBodyContent:function(e){return pl(Mv,{dateProfile:i.dateProfile,clientWidth:e.clientWidth,clientHeight:e.clientHeight,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,expandRows:e.expandRows,tDateProfile:p,rowNodes:f,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,resourceStore:i.resourceStore,nextDayThreshold:s.options.nextDayThreshold,rowInnerHeights:e.rowSyncHeights,onSlatCoords:o.handleSlatCoords,onRowCoords:o.handleRowCoords,onScrollLeftRequest:o.handleScrollLeftRequest,onRowHeightChange:e.reportRowHeightChange})}}));var n,r})},Av.prototype.renderSpreadsheetRows=function(e,n,r){return e.map(function(e,t){return e.group?pl(uv,{key:e.id,id:e.id,spreadsheetColCnt:n.length,isExpanded:e.isExpanded,group:e.group,innerHeight:r[t]||""}):e.resource?pl(av,{key:e.id,colSpecs:n,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:r[t]||""}):null})},Av.prototype.componentDidMount=function(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},Av.prototype.getSnapshotBeforeUpdate=function(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}},Av.prototype.componentDidUpdate=function(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)},Av.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},Av.prototype.computeFallbackSlotMinWidth=function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)},Av.prototype.queryResourceScroll=function(){var e=this.rowCoords,t=this.renderedRowNodes;if(e){for(var n=this.layoutRef.current,r=e.bottoms,o=n.getResourceScroll(),i={},a=0;a<r.length;a+=1){var s=t[a],l=r[a]-o;if(0<l){i.rowId=s.id,i.fromBottom=l;break}}return i}return null},Av);function Av(e,t){var o=Ov.call(this,e,t)||this;return o.processColOptions=Qe(va),o.buildTimelineDateProfile=Qe(bi),o.hasNesting=Qe(ga),o.buildRowNodes=Qe(ea),o.layoutRef=hl(),o.rowNodes=[],o.renderedRowNodes=[],o.buildRowIndex=Qe(ha),o.handleSlatCoords=function(e){o.setState({slatCoords:e})},o.handleRowCoords=function(e){o.rowCoords=e,o.scrollResponder.update(!1)},o.handleMaxCushionWidth=function(e){o.setState({slotCushionMaxWidth:Math.ceil(e)})},o.handleScrollLeftRequest=function(e){o.layoutRef.current.forceTimeScroll(e)},o.handleScrollRequest=function(e){var t=o.rowCoords,n=o.layoutRef.current,r=e.rowId||e.resourceId;return t?(!r||null!=(r=o.buildRowIndex(o.renderedRowNodes)[r])&&(r=null!=e.fromBottom?t.bottoms[r]-e.fromBottom:t.tops[r],n.forceResourceScroll(r)),!0):null},o.handleColWidthChange=function(e){o.setState({spreadsheetColWidths:e})},o.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]},o}xd.addStateEquality({spreadsheetColWidths:Je});Gf=zn({deps:[Gf,bd,Zc],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:xd,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 $l.push(Ld,wp,Cf,If,Af,Uf,sh,ja,Zc,bd,vd,Td,Gf),e.AbstractResourceDayTableModel=Wf,e.BASE_OPTION_DEFAULTS=ys,e.BASE_OPTION_REFINERS=ms,e.BaseComponent=xl,e.BgEvent=Tc,e.BootstrapTheme=Nf,e.Calendar=Lc,e.CalendarApi=Is,e.CalendarContent=Nu,e.CalendarDataManager=nu,e.CalendarDataProvider=iu,e.CalendarRoot=Au,e.Component=dl,e.ContentHook=Gn,e.CustomContentRenderContext=Ul,e.DEFAULT_RESOURCE_ORDER=hg,e.DateComponent=Ml,e.DateEnv=Bs,e.DateProfileGenerator=Xl,e.DayCellContent=Cc,e.DayCellRoot=Rc,e.DayGridView=Cp,e.DayHeader=Xu,e.DayResourceTableModel=xg,e.DaySeriesModel=$u,e.DayTable=mp,e.DayTableModel=Qu,e.DayTableSlicer=hp,e.DayTimeCols=hf,e.DayTimeColsSlicer=df,e.DayTimeColsView=yf,e.DelayedRunner=Jl,e.Draggable=Md,e.ElementDragging=fu,e.ElementScrollController=ol,e.Emitter=$s,e.EventApi=Hs,e.EventRoot=fc,e.EventSourceApi=Xa,e.FeaturefulElementDragging=ad,e.Fragment=gl,e.Interaction=cu,e.ListView=_f,e.MoreLinkRoot=Oc,e.MountHook=Fl,e.NamedTimeZoneImpl=su,e.NowIndicatorRoot=yc,e.NowTimer=qu,e.PointerDragging=Fc,e.PositionCache=Qs,e.RefMap=sc,e.RenderHook=Al,e.ResourceApi=ug,e.ResourceDayHeader=Sg,e.ResourceDayTable=Lg,e.ResourceDayTableModel=Rg,e.ResourceDayTableView=fd,e.ResourceDayTimeCols=qg,e.ResourceDayTimeColsView=Rd,e.ResourceLabelRoot=Ki,e.ResourceSplitter=pg,e.ResourceTimelineLane=yv,e.ResourceTimelineView=xd,e.ScrollController=tl,e.ScrollGrid=oh,e.ScrollResponder=El,e.Scroller=ic,e.SegHierarchy=lu,e.SimpleScrollGrid=cc,e.Slicer=tc,e.Splitter=Ys,e.SpreadsheetRow=av,e.StandardEvent=vc,e.Table=dp,e.TableDateCell=Bu,e.TableDowCell=Fu,e.TableView=Ud,e.Theme=ul,e.ThirdPartyDraggable=Od,e.TimeCols=lf,e.TimeColsSlatsCoords=Ap,e.TimeColsView=Hp,e.TimelineCoords=Dh,e.TimelineHeader=Th,e.TimelineHeaderRows=Ch,e.TimelineLane=$h,e.TimelineLaneBg=Lh,e.TimelineLaneSlicer=zh,e.TimelineSlats=Oh,e.TimelineView=Rl,e.VResourceJoiner=Lf,e.VResourceSplitter=Ig,e.ViewApi=_s,e.ViewContextType=Dl,e.ViewRoot=ql,e.WeekNumberRoot=xc,e.WindowScrollController=sl,e.addDays=ce,e.addDurations=Ue,e.addMs=de,e.addWeeks=ue,e.allowContextMenu=ee,e.allowSelection=J,e.applyMutationToEventStore=on,e.applyStyle=B,e.applyStyleProp=z,e.asCleanDays=Le,e.asRoughMinutes=Ve,e.asRoughMs=Ge,e.asRoughSeconds=Fe,e.binarySearch=Ir,e.buildClassNameNormalizer=jn,e.buildDayRanges=Xo,e.buildDayTableModel=No,e.buildEntryKey=xr,e.buildEventApis=cn,e.buildEventRangeKey=Kt,e.buildHashFromArray=function(e,t){for(var n={},r=0;r<e.length;r+=1){var o=t(e[r],r);n[o[0]]=o[1]}return n},e.buildIsoString=Ye,e.buildNavLinkData=kn,e.buildResourceFields=ra,e.buildRowNodes=ea,e.buildSegCompareObj=Ft,e.buildSegTimeText=Yt,e.buildSlatCols=Oi,e.buildSlatMetas=Ko,e.buildTimeColsModel=$o,e.buildTimelineDateProfile=bi,e.collectFromHash=He,e.combineEventUis=St,e.compareByFieldSpec=re,e.compareByFieldSpecs=ne,e.compareNumbers=ae,e.compareObjs=Ne,e.computeEarliestSegStart=go,e.computeEdges=In,e.computeFallbackHeaderFormat=Wr,e.computeHeightAndMargins=function(e){return e.getBoundingClientRect().height+function(e){e=window.getComputedStyle(e);return parseInt(e.marginTop,10)+parseInt(e.marginBottom,10)}(e)},e.computeInnerRect=Nn,e.computeRect=Hn,e.computeSegDraggable=Gt,e.computeSegEndResizable=qt,e.computeSegStartResizable=jt,e.computeShrinkWidth=Zr,e.computeSmallestCellWidth=le,e.computeVisibleDayRange=Tt,e.config=vu,e.constrainPoint=En,e.coordToCss=Pi,e.coordsToCss=Ii,e.createContext=vl,e.createDuration=Ae,e.createElement=pl,e.createEmptyEventStore=ht,e.createEventInstance=we,e.createEventUi=yt,e.createFormatter=at,e.createPlugin=zn,e.createPortal=ml,e.createRef=hl,e.diffDates=kt,e.diffDayAndTime=he,e.diffDays=fe,e.diffPoints=bn,e.diffWeeks=pe,e.diffWholeDays=ve,e.diffWholeWeeks=ge,e.disableCursor=X,e.elementClosest=A,e.elementMatches=W,e.enableCursor=K,e.eventTupleToStore=pt,e.filterEventStoreDefs=vt,e.filterHash=xe,e.findDirectChildren=U,e.findElements=L,e.flattenResources=Qi,e.flexibleCompare=oe,e.flushToDom=yl,e.formatDate=function(e,t){var n=gn(t=void 0===t?{}:t),t=at(t);return(e=n.createMarkerMeta(e))?n.format(e.marker,t,{forcedTzo:e.forcedTzo}):""},e.formatDayString=Ze,e.formatIsoTimeString=Xe,e.formatRange=function(e,t,n){var r=gn("object"==typeof n&&n?n:{}),o=at(n),e=r.createMarkerMeta(e),t=r.createMarkerMeta(t);return e&&t?r.formatRange(e.marker,t.marker,o,{forcedStartTzo:e.forcedTzo,forcedEndTzo:t.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:ys.defaultRangeSeparator}):""},e.getAllowYScrolling=Kr,e.getCanVGrowWithinCell=Dn,e.getClippingParents=On,e.getDateMeta=wn,e.getDayClassNames=Tn,e.getDefaultEventEnd=rn,e.getElRoot=F,e.getElSeg=Ut,e.getEntrySpanEnd=Tr,e.getEventClassNames=Xt,e.getEventTargetViaRoot=V,e.getIsRtlScrollbarOnLeft=_n,e.getPublicId=Yi,e.getRectCenter=Cn,e.getRelevantEvents=ft,e.getScrollGridClassNames=no,e.getScrollbarWidths=Mn,e.getSectionClassNames=ro,e.getSectionHasLiquidHeight=Xr,e.getSegMeta=Zt,e.getSlotClassNames=xn,e.getStickyFooterScrollbar=ao,e.getStickyHeaderDates=io,e.getUnequalProps=Ie,e.globalLocales=Fs,e.globalPlugins=$l,e.greatestDurationDenominator=qe,e.groupIntersectingEntries=kr,e.guid=Z,e.hasBgRendering=Wt,e.hasShrinkWidth=to,e.identity=ct,e.interactionSettingsStore=pu,e.interactionSettingsToStore=Nr,e.intersectRanges=Pt,e.intersectRects=yn,e.intersectSpans=Mr,e.isArraysEqual=Je,e.isColPropsEqual=Jr,e.isDateSelectionValid=Fr,e.isDateSpansEqual=Jt,e.isGroupsEqual=oa,e.isInt=se,e.isInteractionValid=Vr,e.isMultiDayRange=xt,e.isPropsEqual=Pe,e.isPropsValid=jr,e.isValidDate=De,e.joinSpans=_r,e.listenBySelector=q,e.mapHash=ke,e.memoize=Qe,e.memoizeArraylike=tt,e.memoizeHashlike=nt,e.memoizeObjArg=et,e.mergeEventStores=gt,e.multiplyDuration=Be,e.padStart=ie,e.parseBusinessHours=vn,e.parseClassNames=mt,e.parseDragMeta=Hr,e.parseEventDef=Rt,e.parseFieldSpecs=te,e.parseMarker=dn,e.pointInsideRect=mn,e.preventContextMenu=Q,e.preventDefault=G,e.preventSelection=$,e.rangeContainsMarker=Ot,e.rangeContainsRange=Ht,e.rangesEqual=It,e.rangesIntersect=Nt,e.refineEventDef=bt,e.refineProps=ut,e.removeElement=O,e.removeExact=$e,e.render=fl,e.renderChunkContent=$r,e.renderFill=uo,e.renderMicroColGroup=Qr,e.renderScrollShim=oo,e.requestJson=cr,e.sanitizeShrinkWidth=eo,e.setElSeg=Lt,e.setRef=Bn,e.setScrollFromLeftEdge=ai,e.sliceEventStore=At,e.sliceEvents=function(e,t){return At(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.sortEventSegs=Vt,e.startOfDay=me,e.translateRect=Sn,e.triggerDateSelect=tn,e.unmountComponentAtNode=Sl,e.unpromisify=An,e.version="5.9.0",e.whenTransitionDone=Y,e.wholeDivideDurations=je,Object.defineProperty(e,"__esModule",{value:!0}),e}({});