property_hire/app/assets/javascripts/property_hire_fullcalendar....

19 lines
359 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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

/*!
FullCalendar Scheduler v5.8.0
Docs & License: https://fullcalendar.io/scheduler
(c) 2021 Adam Shaw
*/
var ie_args=navigator&&navigator.userAgent.match(/MSIE\s+(\d+)/),is_below_es6=!1,ie_ver,global,FullCalendar;ie_args&&(ie_ver=parseInt(ie_args[1]),(ie_ver<=10||!Object.__proto__)&&(Object.setPrototypeOf=function(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t;var i=Object.getOwnPropertyNames(t);return i.forEach(function(i){try{if(i=="caller"||i=="length"||i=="arguments")return;n[i]=t[i]}catch(r){}}),n},global=(typeof globalThis).toLowerCase()=="undefined"?window:globalThis,(typeof DOMTokenList).toLowerCase()=="undefined"&&function(n,t){"use strict";var i="exports";typeof define=="function"&&define["amd"]?define(function(){return t(n)}):typeof module=="function"&&module[i]?module[i]=t(n):t(n)}(this,function(n){"use strict";function o(n){var t=this.prototype[n];this.prototype[n]=function(){for(var r,n=0,i=arguments.length;n<i;n+=1)r=arguments[n],t.call(this,r)}}function r(n){var i=Array.prototype,t;if(!!i.indexOf)return i.indexOf.call(this,n);for(t=this.length-1;t>-1;){if(this[t]===n)return t;t-=1}return-1}function h(){return e+=1}function u(){var n=this.classes,t=n.join(" ");this.isSVG?this.setAttribute("class",t):this.element.className=t;this.list.length=n.length}function c(n){return r.call(t[this.id].classes,n)!==-1}function l(){for(var n=0,f=t[this.id],e=f.classes,s=arguments.length,i,o=!1;n<s;)i=arguments[n],r.call(e,i)===-1&&(e.push(i),o=!0),n+=1;o&&u.call(f)}function a(n){return t[this.id].classes[n]||null}function v(){for(var n=arguments.length-1,f=t[this.id],e=f.classes,i,o,s=!1;n>-1;)o=arguments[n],i=r.call(e,o),i!==-1&&(e.splice(i,1),s=!0),n-=1;s&&u.call(f)}function y(){var n=t[this.id];return u.call(n),n.element.className}function p(n,i){var f=r.call(t[this.id].classes,n)!==-1,u;return f?i!==!0&&(u="remove"):i!==!1&&(u="add"),u&&this[u](n),i===!0||i===!1?i:!f}function f(n){var r,i,u;if(i=n.domTokenListId,i&&i in t)return t[i].list;u=typeof n.className=="object";r=n.className;r=String(u?r.baseVal:r).replace(/^\s+|\s+$/,"");i=h();t[i]={classes:r.length!==0?r.split(/\s+/):[],element:n,list:this,isSVG:u};this.id=i;this.length=t[i].classes.length;n.domTokenListId=i}if(n.Element){var s=n.document,e=0,t={},i=s.createElement("_");"classList"in i?(i.classList.add("c1","c2"),i.classList.contains("c2")||(o.call(n.DOMTokenList,"add"),o.call(n.DOMTokenList,"remove")),i.classList.toggle("c3",!1),i.classList.contains("c3")&&(n.DOMTokenList.prototype.toggle=function(){var t=n.DOMTokenList.prototype.toggle;return function(n,i){var r=!i;return arguments.length>1&&!(this.contains(n)===r)?i:t.call(this,n)}}()),i=null):function(){function h(){var n=this.domTokenListId;return n&&n in t?t[n].list:new f(this)}for(var u=n.Element.prototype,o=[l,c,a,v,y,p],e=["add","contains","item","remove","toString","toggle"],r,s=f.prototype,i=e.length-1;i>-1;)s[e[i]]=o[i],i-=1;if(r={get:h,configurable:!0,enumerable:!0},Object.defineProperty)try{Object.defineProperty(u,"classList",r)}catch(w){w.number===-2146823252&&(r.enumerable=!1,Object.defineProperty(u,"classList",r))}else Object.prototype.__defineGetter__&&u.__defineGetter__("classList",r);n.DOMTokenList=f}()}}),is_below_es6=!0));FullCalendar=function(n){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function u(n,t){function i(){this.constructor=n}if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vh(n,t);n.__proto__=t;n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function l(n,t){for(var i=0,u=t.length,r=n.length;i<u;i++,r++)n[r]=t[i];return n}function oi(n,t){for(var i in t)n[i]=t[i];return n}function uw(n){var t=n.parentNode;t&&t.removeChild(n)}function si(n,t,i){var f,e,r,o=arguments,u={};for(r in t)"key"==r?f=t[r]:"ref"==r?e=t[r]:u[r]=t[r];if(arguments.length>3)for(i=[i],r=3;r<arguments.length;r++)i.push(o[r]);if(null!=i&&(u.children=i),"function"==typeof n&&null!=n.defaultProps)for(r in n.defaultProps)void 0===u[r]&&(u[r]=n.defaultProps[r]);return re(n,u,f,e,null)}function re(n,t,i,r,u){var f={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++o.__v:u};return null!=o.vnode&&o.vnode(f),f}function rft(){return{current:null}}function gi(n){return n.children}function ct(n,t){this.props=n;this.context=t}function hu(n,t){if(null==t)return n.__?hu(n.__,n.__.__k.indexOf(n)+1):null;for(var i;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof n.type?hu(n):null}function fw(n){var t,i;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e){n.__e=n.__c.base=i.__e;break}return fw(n)}}function ph(n){(!n.__d&&(n.__d=!0)&&su.push(n)&&!ue.__r++||iw!==o.debounceRendering)&&((iw=o.debounceRendering)||tw)(ue)}function ue(){for(var n;ue.__r=su.length;)n=su.sort(function(n,t){return n.__v.__b-t.__v.__b}),su=[],n.some(function(n){var r,u,e,t,i,f;n.__d&&(i=(t=(r=n).__v).__e,(f=r.__P)&&(u=[],(e=oi({},t)).__v=t.__v+1,wh(f,t,e,r.__n,void 0!==f.ownerSVGElement,null!=t.__h?[i]:null,u,null==i?hu(t):i,t.__h),aw(u,t),t.__e!=i&&fw(t)))})}function ew(n,t,i,r,u,f,e,o,s,h){var l,p,a,c,w,b,y,v=r&&r.__k||yh,k=v.length;for(i.__k=[],l=0;l<t.length;l++)if(null!=(c=i.__k[l]=null==(c=t[l])||"boolean"==typeof c?null:"string"==typeof c||"number"==typeof c||"bigint"==typeof c?re(null,c,null,null,c):Array.isArray(c)?re(gi,{children:c},null,null,null):c.__b>0?re(c.type,c.props,c.key,null,c.__v):c)){if(c.__=i,c.__b=i.__b+1,null===(a=v[l])||a&&c.key==a.key&&c.type===a.type)v[l]=void 0;else for(p=0;p<k;p++){if((a=v[p])&&c.key==a.key&&c.type===a.type){v[p]=void 0;break}a=null}wh(n,c,a=a||ie,u,f,e,o,s,h);w=c.__e;(p=c.ref)&&a.ref!=p&&(y||(y=[]),a.ref&&y.push(a.ref,null,c),y.push(p,c.__c||w,c));null!=w?(null==b&&(b=w),"function"==typeof c.type&&null!=c.__k&&c.__k===a.__k?c.__d=s=ow(c,s,n):s=sw(n,c,a,v,w,s),h||"option"!==i.type?"function"==typeof i.type&&(i.__d=s):n.value=""):s&&a.__e==s&&s.parentNode!=n&&(s=hu(a))}for(i.__e=b,l=k;l--;)null!=v[l]&&("function"==typeof i.type&&null!=v[l].__e&&v[l].__e==i.__d&&(i.__d=hu(r,l+1)),yw(v[l],v[l]));if(y)for(l=0;l<y.length;l++)vw(y[l],y[++l],y[++l])}function ow(n,t,i){for(var r,u=0;u<n.__k.length;u++)(r=n.__k[u])&&(r.__=n,t="function"==typeof r.type?ow(r,t,i):sw(i,r,r,n.__k,r.__e,t));return t}function fe(n,t){return t=t||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){fe(n,t)}):t.push(n)),t}function sw(n,t,i,r,u,f){var e,o,s;if(void 0!==t.__d)e=t.__d,t.__d=void 0;else if(null==i||u!=f||null==u.parentNode)n:if(null==f||f.parentNode!==n)n.appendChild(u),e=null;else{for(o=f,s=0;(o=o.nextSibling)&&s<r.length;s+=2)if(o==u)break n;n.insertBefore(u,f);e=f}return void 0!==e?e:u.nextSibling}function uft(n,t,i,r,u){for(var f in i)"children"===f||"key"===f||f in t||ee(n,f,null,i[f],r);for(f in t)u&&"function"!=typeof t[f]||"children"===f||"key"===f||"value"===f||"checked"===f||i[f]===t[f]||ee(n,f,t[f],i[f],r)}function hw(n,t,i){"-"===t[0]?n.setProperty(t,i):n[t]=null==i?"":"number"!=typeof i||ift.test(t)?i:i+"px"}function ee(n,t,i,r,u){var f;n:if("style"===t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)i&&t in i||hw(n.style,t,"");if(i)for(t in i)r&&i[t]===r[t]||hw(n.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])f=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+f]=i,i?r||n.addEventListener(t,f?lw:cw,f):n.removeEventListener(t,f?lw:cw,f);else if("dangerouslySetInnerHTML"!==t){if(u)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in n)try{n[t]=null==i?"":i;break n}catch(n){}"function"==typeof i||(null!=i&&(!1!==i||"a"===t[0]&&"r"===t[1])?n.setAttribute(t,i):n.removeAttribute(t))}}function cw(n){this.l[n.type+!1](o.event?o.event(n):n)}function lw(n){this.l[n.type+!0](o.event?o.event(n):n)}function wh(n,t,i,r,u,f,e,s,h){var l,c,k,w,d,g,nt,a,p,y,b,v=t.type;if(void 0!==t.constructor)return null;null!=i.__h&&(h=i.__h,s=t.__e=i.__e,t.__h=null,f=[s]);(l=o.__b)&&l(t);try{n:if("function"==typeof v){if(a=t.props,p=(l=v.contextType)&&r[l.__c],y=l?p?p.props.value:l.__:r,i.__c?nt=(c=t.__c=i.__c).__=c.__E:("prototype"in v&&v.prototype.render?t.__c=c=new v(a,y):(t.__c=c=new ct(a,y),c.constructor=v,c.render=eft),p&&p.sub(c),c.props=a,c.state||(c.state={}),c.context=y,c.__n=r,k=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=v.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=oi({},c.__s)),oi(c.__s,v.getDerivedStateFromProps(a,c.__s))),w=c.props,d=c.state,k)null==v.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==v.getDerivedStateFromProps&&a!==w&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(a,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(a,c.__s,y)||t.__v===i.__v){c.props=a;c.state=c.__s;t.__v!==i.__v&&(c.__d=!1);c.__v=t;t.__e=i.__e;t.__k=i.__k;t.__k.forEach(function(n){n&&(n.__=t)});c.__h.length&&e.push(c);break n}null!=c.componentWillUpdate&&c.componentWillUpdate(a,c.__s,y);null!=c.componentDidUpdate&&c.__h.push(function(){c.componentDidUpdate(w,d,g)})}c.context=y;c.props=a;c.state=c.__s;(l=o.__r)&&l(t);c.__d=!1;c.__v=t;c.__P=n;l=c.render(c.props,c.state,c.context);c.state=c.__s;null!=c.getChildContext&&(r=oi(oi({},r),c.getChildContext()));k||null==c.getSnapshotBeforeUpdate||(g=c.getSnapshotBeforeUpdate(w,d));b=null!=l&&l.type===gi&&null==l.key?l.props.children:l;ew(n,Array.isArray(b)?b:[b],t,i,r,u,f,e,s,h);c.base=t.__e;t.__h=null;c.__h.length&&e.push(c);nt&&(c.__E=c.__=null);c.__e=!1}else null==f&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=fft(i.__e,t,i,r,u,f,e,h);(l=o.diffed)&&l(t)}catch(n){t.__v=null;(h||null!=f)&&(t.__e=s,t.__h=!!h,f[f.indexOf(s)]=null);o.__e(n,t,i)}}function aw(n,t){o.__c&&o.__c(t,n);n.some(function(t){try{n=t.__h;t.__h=[];n.some(function(n){n.call(t)})}catch(n){o.__e(n,t.__v)}})}function fft(n,t,i,r,u,f,e,o){var v,p,l,y,a=i.props,h=t.props,c=t.type,s=0;if("svg"===c&&(u=!0),null!=f)for(;s<f.length;s++)if((v=f[s])&&(v===n||(c?v.localName==c:3==v.nodeType))){n=v;f[s]=null;break}if(null==n){if(null===c)return document.createTextNode(h);n=u?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,h.is&&h);f=null;o=!1}if(null===c)a===h||o&&n.data===h||(n.data=h);else{if(f=f&&yh.slice.call(n.childNodes),p=(a=i.props||ie).dangerouslySetInnerHTML,l=h.dangerouslySetInnerHTML,!o){if(null!=f)for(a={},y=0;y<n.attributes.length;y++)a[n.attributes[y].name]=n.attributes[y].value;(l||p)&&(l&&(p&&l.__html==p.__html||l.__html===n.innerHTML)||(n.innerHTML=l&&l.__html||""))}if(uft(n,h,a,u,o),l)t.__k=[];else if(s=t.props.children,ew(n,Array.isArray(s)?s:[s],t,i,r,u&&"foreignObject"!==c,f,e,n.firstChild,o),null!=f)for(s=f.length;s--;)null!=f[s]&&uw(f[s]);o||("value"in h&&void 0!==(s=h.value)&&(s!==n.value||"progress"===c&&!s)&&ee(n,"value",s,a.value,!1),"checked"in h&&void 0!==(s=h.checked)&&s!==n.checked&&ee(n,"checked",s,a.checked,!1))}return n}function vw(n,t,i){try{"function"==typeof n?n(t):n.current=t}catch(n){o.__e(n,i)}}function yw(n,t,i){var r,f,u;if(o.unmount&&o.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||vw(r,null,t)),i||"function"==typeof n.type||(i=null!=(f=n.__e)),n.__e=n.__d=void 0,null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){o.__e(n,t)}r.base=r.__P=null}if(r=n.__k)for(u=0;u<r.length;u++)r[u]&&yw(r[u],t,i);null!=f&&uw(f)}function eft(n,t,i){return this.constructor(n,i)}function cu(n,t,i){var r,u,f;o.__&&o.__(n,t);u=(r="function"==typeof i)?null:i&&i.__k||t.__k;f=[];wh(t,n=(!r&&i||t).__k=si(gi,null,[n]),u||ie,ie,void 0!==t.ownerSVGElement,!r&&i?[i]:u?null:t.firstChild?yh.slice.call(t.childNodes):null,f,!r&&i?i:u?u.__e:t.firstChild,r);aw(f,n)}function oft(n,t){var i={__c:t="__cC"+rw++,__:n,Consumer:function(n,t){return n.children(t)},Provider:function(n){var i,r;return this.getChildContext||(i=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&i.some(ph)},this.sub=function(n){i.push(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){i.splice(i.indexOf(n),1);t&&t.call(n)}}),n.children}};return i.Provider.__=i.Consumer.contextType=i}function sft(){bh.forEach(function(n){if(n.__P)try{n.__H.__h.forEach(oe);n.__H.__h.forEach(dh);n.__H.__h=[]}catch(t){n.__H.__h=[];o.__e(t,n.__v)}});bh=[]}function oe(n){"function"==typeof n.__c&&n.__c()}function dh(n){n.__c=n.__()}function hft(n,t){for(var i in t)n[i]=t[i];return n}function nb(n,t){var r,i;for(r in n)if("__source"!==r&&!(r in t))return!0;for(i in t)if("__source"!==i&&n[i]!==t[i])return!0;return!1}function tb(n){this.props=n}function tc(){this.__u=0;this.t=null;this.__b=null}function rb(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function se(){this.u=null;this.o=null}function cft(n){return this.getChildContext=function(){return n.context},n.children}function lft(n){var t=this,i=n.i;t.componentWillUnmount=function(){cu(null,t.l);t.l=null;t.i=null};t.i&&t.i!==i&&t.componentWillUnmount();n.__v?(t.l||(t.i=i,t.l={nodeType:1,parentNode:i,childNodes:[],appendChild:function(n){this.childNodes.push(n);t.i.appendChild(n)},insertBefore:function(n){this.childNodes.push(n);t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1);t.i.removeChild(n)}}),cu(si(cft,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount()}function aft(n,t){return si(lft,{__v:n,i:t})}function wft(){}function bft(){return this.cancelBubble}function kft(){return this.defaultPrevented}function dft(){function i(t){n.push(t)}var t=o.debounceRendering,n=[];for(o.debounceRendering=i,cu(si(ub,{}),document.createElement("div"));n.length;)n.shift()();o.debounceRendering=t}function gft(n){var t=oft(n),i=t.Provider;return t.Provider=function(){var t=this,r=!this.getChildContext,u=i.apply(this,arguments),n;return r&&(n=[],this.shouldComponentUpdate=function(i){t.props.value!==i.value&&n.forEach(function(n){n.context=i.value;n.forceUpdate()})},this.sub=function(t){n.push(t);var i=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1);i&&i.call(t)}}),u},t}function net(n){cu(null,n)}function vr(n){n.parentNode&&n.parentNode.removeChild(n)}function d(n,t){if(n.closest)return n.closest(t);if(!document.documentElement.contains(n))return null;do{if(he(n,t))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}function he(n,t){var i=n.matches||n.matchesSelector||n.msMatchesSelector;return i.call(n,t)}function dt(n,t){for(var u,i,f=n instanceof HTMLElement?[n]:n,e=[],r=0;r<f.length;r+=1)for(u=f[r].querySelectorAll(t),i=0;i<u.length;i+=1)e.push(u[i]);return e}function fb(n,t){for(var u,i,f,e=n instanceof HTMLElement?[n]:n,o=[],r=0;r<e.length;r+=1)for(u=e[r].children,i=0;i<u.length;i+=1)f=u[i],(!t||he(f,t))&&o.push(f);return o}function ci(n,t){for(var i in t)sc(n,i,t[i])}function sc(n,t,i){n.style[t]=i==null?"":typeof i=="number"&&eb.test(t)?i+"px":i}function tet(n){var t,i;return(i=(t=n.composedPath)===null||t===void 0?void 0:t.call(n)[0])!==null&&i!==void 0?i:n.target}function lu(n){n.preventDefault()}function ob(n,t){return function(i){var r=d(i.target,n);r&&t.call(r,i,r)}}function hc(n,t,i,r){var u=ob(i,r);return n.addEventListener(t,u),function(){n.removeEventListener(t,u)}}function iet(n,t,i,r){var u;return hc(n,"mouseover",t,function(n,t){if(t!==u){u=t;i(n,t);var f=function(n){u=null;r(n,t);t.removeEventListener("mouseleave",f)};t.addEventListener("mouseleave",f)}})}function sb(n,t){var i=function(r){t(r);cc.forEach(function(t){n.removeEventListener(t,i)})};cc.forEach(function(t){n.addEventListener(t,i)})}function vt(){return lc+=1,String(lc)}function au(){document.body.classList.add("fc-not-allowed")}function vu(){document.body.classList.remove("fc-not-allowed")}function hb(n){n.classList.add("fc-unselectable");n.addEventListener("selectstart",lu)}function cb(n){n.classList.remove("fc-unselectable");n.removeEventListener("selectstart",lu)}function lb(n){n.addEventListener("contextmenu",lu)}function ab(n){n.removeEventListener("contextmenu",lu)}function ce(n){var u=[],i=[],r,t;for(typeof n=="string"?i=n.split(/\s*,\s*/):typeof n=="function"?i=[n]:Array.isArray(n)&&(i=n),r=0;r<i.length;r+=1)t=i[r],typeof t=="string"?u.push(t.charAt(0)==="-"?{field:t.substring(1),order:-1}:{field:t,order:1}):typeof t=="function"&&u.push({func:t});return u}function ac(n,t,i){for(var u,r=0;r<i.length;r+=1)if(u=vb(n,t,i[r]),u)return u;return 0}function vb(n,t,i){return i.func?i.func(n,t):vc(n[i.field],t[i.field])*(i.order||1)}function vc(n,t){return!n&&!t?0:t==null?-1:n==null?1:typeof n=="string"||typeof t=="string"?String(n).localeCompare(String(t)):n-t}function yt(n,t){var i=String(n);return"000".substr(0,t-i.length)+i}function yb(n,t){return n-t}function li(n){return n%1==0}function pb(n){var t=n.querySelector(".fc-scrollgrid-shrink-frame"),i=n.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!i)throw new Error("needs fc-scrollgrid-shrink-cushion className");return n.getBoundingClientRect().width-t.getBoundingClientRect().width+i.getBoundingClientRect().width}function pc(n,t){var i=ai(n);return i[2]+=t*7,et(i)}function p(n,t){var i=ai(n);return i[2]+=t,et(i)}function gt(n,t){var i=ai(n);return i[6]+=t,et(i)}function wb(n,t){return ni(n,t)/7}function ni(n,t){return(t.valueOf()-n.valueOf())/864e5}function ret(n,t){return(t.valueOf()-n.valueOf())/36e5}function uet(n,t){return(t.valueOf()-n.valueOf())/6e4}function fet(n,t){return(t.valueOf()-n.valueOf())/1e3}function bb(n,t){var i=a(n),r=a(t);return{years:0,months:0,days:Math.round(ni(i,r)),milliseconds:t.valueOf()-r.valueOf()-(n.valueOf()-i.valueOf())}}function kb(n,t){var i=yr(n,t);return i!==null&&i%7==0?i/7:null}function yr(n,t){return vi(n)===vi(t)?Math.round(ni(n,t)):null}function a(n){return et([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),])}function eet(n){return et([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),])}function oet(n){return et([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),])}function set(n){return et([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),])}function het(n,t,i){var r=n.getUTCFullYear(),u=wc(n,r,t,i),f;return u<1?wc(n,r-1,t,i):(f=wc(n,r+1,t,i),f>=1)?Math.min(u,f):u}function wc(n,t,i,r){var u=et([t,0,1+cet(t,i,r)]),f=a(n),e=Math.round(ni(u,f));return Math.floor(e/7)+1}function cet(n,t,i){var r=7+t-i,u=(7+et([n,0,r]).getUTCDay()-t)%7;return-u+r-1}function db(n){return[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds(),]}function gb(n){return new Date(n[0],n[1]||0,n[2]==null?1:n[2],n[3]||0,n[4]||0,n[5]||0)}function ai(n){return[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds(),]}function et(n){return n.length===1&&(n=n.concat([0])),new Date(Date.UTC.apply(Date,n))}function le(n){return!isNaN(n.valueOf())}function vi(n){return n.getUTCHours()*36e5+n.getUTCMinutes()*6e4+n.getUTCSeconds()*1e3+n.getUTCMilliseconds()}function yu(n,t,i,r){return{instanceId:vt(),defId:n,range:t,forcedStartTzo:i==null?null:i,forcedEndTzo:r==null?null:r}}function bc(n,t){var u={},f,e,r,i,s,o;if(t)for(f in t){for(e=[],i=n.length-1;i>=0;i-=1)if(r=n[i][f],typeof r=="object"&&r)e.unshift(r);else if(r!==undefined){u[f]=r;break}e.length&&(u[f]=bc(e))}for(i=n.length-1;i>=0;i-=1){s=n[i];for(o in s)o in u||(u[o]=s[o])}return u}function pt(n,t){var r={};for(var i in n)t(n[i],i)&&(r[i]=n[i]);return r}function w(n,t){var r={};for(var i in n)r[i]=t(n[i],i);return r}function nk(n){for(var u,i={},t=0,r=n;t<r.length;t++)u=r[t],i[u]=!0;return i}function aet(n,t){for(var r,u={},i=0;i<n.length;i+=1)r=t(n[i],i),u[r[0]]=r[1];return u}function kc(n){var t=[];for(var i in n)t.push(n[i]);return t}function ut(n,t){var i;if(n===t)return!0;for(i in n)if(pu.call(n,i)&&!(i in t))return!1;for(i in t)if(pu.call(t,i)&&n[i]!==t[i])return!1;return!0}function dc(n,t){var r=[];for(var i in n)pu.call(n,i)&&(i in t||r.push(i));for(i in t)pu.call(t,i)&&n[i]!==t[i]&&r.push(i);return r}function ae(n,t,i){var r;if(i===void 0&&(i={}),n===t)return!0;for(r in t)if(!(r in n)||!vet(n[r],t[r],i[r]))return!1;for(r in n)if(!(r in t))return!1;return!0}function vet(n,t,i){return n===t||i===!0?!0:i?i(n,t):!1}function gc(n,t,i,r){var f,u,e;for(t===void 0&&(t=0),r===void 0&&(r=1),f=[],i==null&&(i=Object.keys(n).length),u=t;u<i;u+=r)e=n[u],e!==undefined&&f.push(e);return f}function yet(n,t,i,r){for(var e,u,f=0;f<r.length;f+=1)if(e=r[f].parse(n,i),e)return u=n.allDay,u==null&&(u=t,u==null&&(u=e.allDayGuess,u==null&&(u=!1))),{allDay:u,duration:e.duration,typeData:e.typeData,typeId:f};return null}function pr(n,t,i){var a=i.dateEnv,p=i.pluginHooks,v=i.options,f=n.defs,e=n.instances,s,r,u,y,o,h,c,l;e=pt(e,function(n){return!f[n.defId].recurringDef});for(s in f)if(r=f[s],r.recurringDef)for(u=r.recurringDef.duration,u||(u=r.allDay?v.defaultAllDayEventDuration:v.defaultTimedEventDuration),y=pet(r,u,t,a,p.recurringTypes),o=0,h=y;o<h.length;o++)c=h[o],l=yu(s,{start:c,end:a.add(c,u)}),e[l.instanceId]=l;return{defs:f,instances:e}}function pet(n,t,i,r,u){var e=u[n.recurringDef.typeId],f=e.expand(n.recurringDef.typeData,{start:r.subtract(i.start,t),end:i.end},r);return n.allDay&&(f=f.map(a)),f}function s(n,t){var i;return typeof n=="string"?wet(n):typeof n=="object"&&n?ik(n):typeof n=="number"?ik((i={},i[t||"milliseconds"]=n,i)):null}function wet(n){var t=tk.exec(n),i;return t?(i=t[1]?-1:1,{years:0,months:0,days:i*(t[2]?parseInt(t[2],10):0),milliseconds:i*((t[3]?parseInt(t[3],10):0)*36e5+(t[4]?parseInt(t[4],10):0)*6e4+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}):null}function ik(n){var t={years:n.years||n.year||0,months:n.months||n.month||0,days:n.days||n.day||0,milliseconds:(n.hours||n.hour||0)*36e5+(n.minutes||n.minute||0)*6e4+(n.seconds||n.second||0)*1e3+(n.milliseconds||n.millisecond||n.ms||0)},i=n.weeks||n.week;return i&&(t.days+=i*7,t.specifiedWeeks=!0),t}function bet(n,t){return n.years===t.years&&n.months===t.months&&n.days===t.days&&n.milliseconds===t.milliseconds}function tl(n){return!n.years&&!n.months&&!n.milliseconds?n.days:0}function ve(n,t){return{years:n.years+t.years,months:n.months+t.months,days:n.days+t.days,milliseconds:n.milliseconds+t.milliseconds}}function ket(n,t){return{years:n.years-t.years,months:n.months-t.months,days:n.days-t.days,milliseconds:n.milliseconds-t.milliseconds}}function il(n,t){return{years:n.years*t,months:n.months*t,days:n.days*t,milliseconds:n.milliseconds*t}}function det(n){return wr(n)/365}function get(n){return wr(n)/30}function wr(n){return tt(n)/864e5}function rk(n){return tt(n)/6e4}function uk(n){return tt(n)/1e3}function tt(n){return n.years*31536e6+n.months*2592e6+n.days*864e5+n.milliseconds}function ti(n,t){for(var i,u,r=null,f=0;f<nl.length;f+=1)if(i=nl[f],t[i]){if(u=n[i]/t[i],!li(u)||r!==null&&r!==u)return null;r=u}else if(n[i])return null;return r}function ii(n){var t=n.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 n.days?n.specifiedWeeks&&n.days%7==0?{unit:"week",value:n.days/7}:{unit:"day",value:n.days}:n.months?{unit:"month",value:n.months}:n.years?{unit:"year",value:n.years}:{unit:"millisecond",value:0}}function wu(n,t,i){i===void 0&&(i=!1);var r=n.toISOString();return r=r.replace(".000",""),i&&(r=r.replace("T00:00:00Z","")),r.length>10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",rl(t,!0)))),r}function br(n){return n.toISOString().replace(/T.*$/,"")}function fk(n){return yt(n.getUTCHours(),2)+":"+yt(n.getUTCMinutes(),2)+":"+yt(n.getUTCSeconds(),2)}function rl(n,t){t===void 0&&(t=!1);var r=n<0?"-":"+",u=Math.abs(n),f=Math.floor(u/60),i=Math.round(u%60);return t?r+yt(f,2)+":"+yt(i,2):"GMT"+r+f+(i?":"+yt(i,2):"")}function ek(n,t){for(var r=0,i=0;i<n.length;)n[i]===t?(n.splice(i,1),r+=1):i+=1;return r}function ht(n,t,i){if(n===t)return!0;var u=n.length,r;if(u!==t.length)return!1;for(r=0;r<u;r+=1)if(!(i?i(n[r],t[r]):n[r]===t[r]))return!1;return!0}function f(n,t,i){var u,r;return function(){for(var o,f=[],e=0;e<arguments.length;e++)f[e]=arguments[e];return u?ht(u,f)||(i&&i(r),o=n.apply(this,f),t&&t(o,r)||(r=o)):r=n.apply(this,f),u=f,r}}function yi(n,t,i){var f=this,u,r;return function(e){if(u){if(!ut(u,e)){i&&i(r);var o=n.call(f,e);t&&t(o,r)||(r=o)}}else r=n.call(f,e);return u=e,r}}function ye(n,t,i){var f=this,u=[],r=[];return function(e){for(var c=u.length,h=e.length,o=0,s;o<c;o+=1)e[o]?ht(u[o],e[o])||(i&&i(r[o]),s=n.apply(f,e[o]),t&&t(s,r[o])||(r[o]=s)):i&&i(r[o]);for(;o<h;o+=1)r[o]=n.apply(f,e[o]);return u=e,r.splice(h),r}}function ul(n,t,i){var u=this,f={},r={};return function(e){var s={},o,h;for(o in e)r[o]?ht(f[o],e[o])?s[o]=r[o]:(i&&i(r[o]),h=n.apply(u,e[o]),s[o]=t&&t(h,r[o])?r[o]:h):s[o]=n.apply(u,e[o]);return f=e,r=s,s}}function sk(n,t,i){var r=Object.keys(n).length;return r===1&&n.timeZoneName==="short"?function(n){return rl(n.timeZoneOffset)}:r===0&&t.week?function(n){return hot(i.computeWeekNumber(n.marker),i.weekText,i.locale,t.week)}:fot(n,t,i)}function fot(n,t,r){var e,u,f;return n=i({},n),t=i({},t),eot(n,t),n.timeZone="UTC",e=new Intl.DateTimeFormat(r.locale.codes,n),t.omitZeroMinute&&(f=i({},n),delete f.minute,u=new Intl.DateTimeFormat(r.locale.codes,f)),function(i){var f=i.marker,o,s;return o=u&&!f.getUTCMinutes()?u:e,s=o.format(f),oot(s,i,n,t,r)}}function eot(n,t){n.timeZoneName&&(n.hour||(n.hour="2-digit"),n.minute||(n.minute="2-digit"));n.timeZoneName==="long"&&(n.timeZoneName="short");t.omitZeroMinute&&(n.second||n.millisecond)&&delete t.omitZeroMinute}function oot(n,t,i,r,u){return n=n.replace(iot,""),i.timeZoneName==="short"&&(n=sot(n,u.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":rl(t.timeZoneOffset))),r.omitCommas&&(n=n.replace(not,"").trim()),r.omitZeroMinute&&(n=n.replace(":00","")),r.meridiem===!1?n=n.replace(we,"").trim():r.meridiem==="narrow"?n=n.replace(we,function(n,t){return t.toLocaleLowerCase()}):r.meridiem==="short"?n=n.replace(we,function(n,t){return t.toLocaleLowerCase()+"m"}):r.meridiem==="lowercase"&&(n=n.replace(we,function(n){return n.toLocaleLowerCase()})),n=n.replace(tot," "),n.trim()}function sot(n,t){var i=!1;return n=n.replace(rot,function(){return i=!0,t}),i||(n+=" "+t),n}function hot(n,t,i,r){var u=[];return r==="narrow"?u.push(t):r==="short"&&u.push(t," "),u.push(i.simpleNumberFormat.format(n)),i.options.direction==="rtl"&&u.reverse(),u.join("")}function cot(n,t,i){return i.getMarkerYear(n)!==i.getMarkerYear(t)?5:i.getMarkerMonth(n)!==i.getMarkerMonth(t)?4:i.getMarkerDay(n)!==i.getMarkerDay(t)?2:vi(n)!==vi(t)?1:0}function lot(n,t){var r={};for(var i in n)(!(i in pe)||pe[i]<=t)&&(r[i]=n[i]);return r}function aot(n,t,i,r){for(var f=0,e,s,h,u,o,c,l;f<n.length;){if(e=n.indexOf(t,f),e===-1)break;for(s=n.substr(0,e),f=e+t.length,h=n.substr(f),u=0;u<i.length;){if(o=i.indexOf(r,u),o===-1)break;if(c=i.substr(0,o),u=o+r.length,l=i.substr(u),s===c&&h===l)return{before:s,after:h}}}return null}function hk(n,t){var i=t.markerToArray(n.marker);return{marker:n.marker,timeZoneOffset:n.timeZoneOffset,array:i,year:i[0],month:i[1],day:i[2],hour:i[3],minute:i[4],second:i[5],millisecond:i[6]}}function be(n,t,i,r){var u=hk(n,i.calendarSystem),f=t?hk(t,i.calendarSystem):null;return{date:u,start:u,end:f,timeZone:i.timeZone,localeCodes:i.locale.codes,defaultSeparator:r||i.defaultSeparator}}function y(n){return typeof n=="object"&&n?new uot(n):typeof n=="string"?new ck(n):typeof n=="function"?new lk(n):null}function ke(n,t){return typeof n=="object"&&typeof t=="object"&&n&&t?ut(n,t):n===t}function ol(n){return bc(n,el)}function nr(n,t){var r={},u={};for(var i in t)i in n&&(r[i]=t[i](n[i]));for(i in n)i in t||(u[i]=n[i]);return{refined:r,extra:u}}function r(n){return n}function de(n,t,i,r){for(var s,f,e=it(),h=sl(i),u=0,o=n;u<o.length;u++)s=o[u],f=bk(s,t,i,r,h),f&&kr(f,e);return e}function kr(n,t){return t===void 0&&(t=it()),t.defs[n.def.defId]=n.def,n.instance&&(t.instances[n.instance.instanceId]=n.instance),t}function ge(n,t){var i=n.instances[t],r,u;return i?(r=n.defs[i.defId],u=ku(n,function(n){return vot(r,n)}),u.defs[r.defId]=r,u.instances[i.instanceId]=i,u):it()}function vot(n,t){return Boolean(n.groupId&&n.groupId===t.groupId)}function it(){return{defs:{},instances:{}}}function bu(n,t){return{defs:i(i({},n.defs),t.defs),instances:i(i({},n.instances),t.instances)}}function ku(n,t){var i=pt(n.defs,t),r=pt(n.instances,function(n){return i[n.defId]});return{defs:i,instances:r}}function yot(n,t){var e=n.defs,u=n.instances,f={},o={},r,i;for(r in e)t.defs[r]||(f[r]=e[r]);for(i in u)!t.instances[i]&&f[u[i].defId]&&(o[i]=u[i]);return{defs:f,instances:o}}function pot(n,t){return Array.isArray(n)?de(n,null,t,!0):typeof n=="object"&&n?de([n],null,t,!0):n!=null?String(n):null}function du(n){return Array.isArray(n)?n:typeof n=="string"?n.split(/\s+/):[]}function dr(n,t){var i=pot(n.constraint,t);return{display:n.display||null,startEditable:n.startEditable!=null?n.startEditable:n.editable,durationEditable:n.durationEditable!=null?n.durationEditable:n.editable,constraints:i!=null?[i]:[],overlap:n.overlap!=null?n.overlap:null,allows:n.allow!=null?[n.allow]:[],backgroundColor:n.backgroundColor||n.color||"",borderColor:n.borderColor||n.color||"",textColor:n.textColor||"",classNames:(n.className||[]).concat(n.classNames||[])}}function no(n){return n.reduce(wot,pk)}function wot(n,t){return{display:t.display!=null?t.display:n.display,startEditable:t.startEditable!=null?t.startEditable:n.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:n.durationEditable,constraints:n.constraints.concat(t.constraints),overlap:typeof t.overlap=="boolean"?t.overlap:n.overlap,allows:n.allows.concat(t.allows),backgroundColor:t.backgroundColor||n.backgroundColor,borderColor:t.borderColor||n.borderColor,textColor:t.textColor||n.textColor,classNames:n.classNames.concat(t.classNames)}}function bk(n,t,i,r,u){var f,o,a;u===void 0&&(u=sl(i));var h=io(n,i,u),s=h.refined,c=h.extra,l=dot(t,i),e=yet(s,l,i.dateEnv,i.pluginHooks.recurringTypes);return e?(o=nf(s,c,t?t.sourceId:"",e.allDay,Boolean(e.duration),i),o.recurringDef={typeId:e.typeId,typeData:e.typeData,duration:e.duration},{def:o,instance:null}):(f=kot(s,l,i,r),f)?(o=nf(s,c,t?t.sourceId:"",f.allDay,f.hasEnd,i),a=yu(o.defId,f.range,f.forcedStartTzo,f.forcedEndTzo),{def:o,instance:a}):null}function io(n,t,i){return i===void 0&&(i=sl(t)),nr(n,i)}function sl(n){return i(i(i({},gu),bot),n.pluginHooks.eventRefiners)}function nf(n,t,r,u,f,e){for(var c,o={title:n.title||"",groupId:n.groupId||"",publicId:n.id||"",url:n.url||"",recurringDef:null,defId:vt(),sourceId:r,allDay:u,hasEnd:f,ui:dr(n,e),extendedProps:i(i({},n.extendedProps||{}),t)},s=0,h=e.pluginHooks.eventDefMemberAdders;s<h.length;s++)c=h[s],i(o,c(n));return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function kot(n,t,i,r){var s=n.allDay,e,u=null,h=!1,o,f=null,c=n.start!=null?n.start:n.date;if(e=i.dateEnv.createMarkerMeta(c),e)u=e.marker;else if(!r)return null;return n.end!=null&&(o=i.dateEnv.createMarkerMeta(n.end)),s==null&&(s=t!=null?t:(!e||e.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),s&&u&&(u=a(u)),o&&(f=o.marker,s&&(f=a(f)),u&&f<=u&&(f=null)),f?h=!0:r||(h=i.options.forceEventDuration||!1,f=i.dateEnv.add(u,s?i.options.defaultAllDayEventDuration:i.options.defaultTimedEventDuration)),{allDay:s,hasEnd:h,range:{start:u,end:f},forcedStartTzo:e?e.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function dot(n,t){var i=null;return n&&(i=n.defaultAllDay),i==null&&(i=t.options.defaultAllDay),i}function kk(n){var i=Math.floor(ni(n.start,n.end))||1,t=a(n.start),r=p(t,i);return{start:t,end:r}}function tf(n,t){var r,i,u;return t===void 0&&(t=s(0)),r=null,i=null,n.end&&(i=a(n.end),u=n.end.valueOf()-i.valueOf(),u&&u>=tt(t)&&(i=p(i,1))),n.start&&(r=a(n.start),i&&i<=r&&(i=p(r,1))),{start:r,end:i}}function dk(n){var t=tf(n);return ni(t.start,t.end)>1}function tr(n,t,i,r){return r==="year"?s(i.diffWholeYears(n,t),"year"):r==="month"?s(i.diffWholeMonths(n,t),"month"):bb(n,t)}function got(n,t){var i=null,r=null;return(n.start&&(i=t.createMarker(n.start)),n.end&&(r=t.createMarker(n.end)),!i&&!r)?null:i&&r&&r<i?null:{start:i,end:r}}function gk(n,t){var f=[],i=t.start,u,r;for(n.sort(nst),u=0;u<n.length;u+=1)r=n[u],r.start>i&&f.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&f.push({start:i,end:t.end}),f}function nst(n,t){return n.start.valueOf()-t.start.valueOf()}function ui(n,t){var i=n.start,r=n.end,u=null;return t.start!==null&&(i=i===null?t.start:new Date(Math.max(i.valueOf(),t.start.valueOf()))),t.end!=null&&(r=r===null?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(i===null||r===null||i<r)&&(u={start:i,end:r}),u}function hl(n,t){return(n.start===null?null:n.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(n.end===null?null:n.end.valueOf())===(t.end===null?null:t.end.valueOf())}function rf(n,t){return(n.end===null||t.start===null||n.end>t.start)&&(n.start===null||t.end===null||n.start<t.end)}function uf(n,t){return(n.start===null||t.start!==null&&t.start>=n.start)&&(n.end===null||t.end!==null&&t.end<=n.end)}function wt(n,t){return(n.start===null||t>=n.start)&&(n.end===null||t<n.end)}function tst(n,t){return t.start!=null&&n<t.start?t.start:t.end!=null&&n>=t.end?new Date(t.end.valueOf()-1):n}function ff(n,t,i,r){var h={},c={},k={},l=[],it=[],a=ro(n.defs,t),u,e,rt,d,w,g,f,y,p,b,tt,nt;for(f in n.defs)u=n.defs[f],e=a[u.defId],e.display==="inverse-background"&&(u.groupId?(h[u.groupId]=[],k[u.groupId]||(k[u.groupId]=u)):c[f]=[]);for(rt in n.instances){var v=n.instances[rt],u=n.defs[v.defId],e=a[u.defId],ut=v.range,s=!u.allDay&&r?tf(ut,r):ut,o=ui(s,i);o&&(e.display==="inverse-background"?u.groupId?h[u.groupId].push(o):c[v.defId].push(o):e.display!=="none"&&(e.display==="background"?l:it).push({def:u,ui:e,instance:v,range:o,isStart:s.start&&s.start.valueOf()===o.start.valueOf(),isEnd:s.end&&s.end.valueOf()===o.end.valueOf()}))}for(d in h)for(y=h[d],p=gk(y,i),w=0,g=p;w<g.length;w++){var nt=g[w],u=k[d],e=a[u.defId];l.push({def:u,ui:e,instance:null,range:nt,isStart:!1,isEnd:!1})}for(f in c)for(y=c[f],p=gk(y,i),b=0,tt=p;b<tt.length;b++)nt=tt[b],l.push({def:n.defs[f],ui:a[f],instance:null,range:nt,isStart:!1,isEnd:!1});return{bg:l,fg:it}}function nd(n){return n.ui.display==="background"||n.ui.display==="inverse-background"}function cl(n,t){n.fcSeg=t}function ir(n){return n.fcSeg||n.parentNode.fcSeg||null}function ro(n,t){return w(n,function(n){return td(n,t)})}function td(n,t){var i=[];return t[""]&&i.push(t[""]),t[n.defId]&&i.push(t[n.defId]),i.push(n.ui),no(i)}function ef(n,t){var i=n.map(id);return i.sort(function(n,i){return ac(n,i,t)}),i.map(function(n){return n._seg})}function id(n){var t=n.eventRange,r=t.def,u=t.instance?t.instance.range:t.range,f=u.start?u.start.valueOf():0,e=u.end?u.end.valueOf():0;return i(i(i({},r.extendedProps),r),{id:r.publicId,start:f,end:e,duration:e-f,allDay:Number(r.allDay),_seg:n})}function rd(n,t){for(var o,s=t.pluginHooks,h=s.isDraggableTransformers,u=n.eventRange,c=u.def,f=u.ui,i=f.startEditable,r=0,e=h;r<e.length;r++)o=e[r],i=o(i,c,f,t);return i}function ud(n,t){return n.isStart&&n.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function fd(n){return n.isEnd&&n.eventRange.ui.durationEditable}function gr(n,t,i,r,u,f,e){var v=i.dateEnv,y=i.options,c=y.displayEventTime,l=y.displayEventEnd,p=n.eventRange.def,o=n.eventRange.instance;c==null&&(c=r!==!1);l==null&&(l=u!==!1);var w=o.range.start,b=o.range.end,s=f||n.start||n.eventRange.range.start,h=e||n.end||n.eventRange.range.end,k=a(w).valueOf()===a(s).valueOf(),d=a(gt(b,-1)).valueOf()===a(gt(h,-1)).valueOf();return c&&!p.allDay&&(k||d)?(s=k?w:s,h=d?b:h,l&&p.hasEnd)?v.formatRange(s,h,t,{forcedStartTzo:f?null:o.forcedStartTzo,forcedEndTzo:e?null:o.forcedEndTzo}):v.format(s,t,{forcedTzo:f?null:o.forcedStartTzo}):""}function st(n,t,i){var r=n.eventRange.range;return{isPast:r.end<(i||t.start),isFuture:r.start>=(i||t.end),isToday:t&&wt(t,r.start)}}function ed(n){var t=["fc-event"];return n.isMirror&&t.push("fc-event-mirror"),n.isDraggable&&t.push("fc-event-draggable"),(n.isStartResizable||n.isEndResizable)&&t.push("fc-event-resizable"),n.isDragging&&t.push("fc-event-dragging"),n.isResizing&&t.push("fc-event-resizing"),n.isSelected&&t.push("fc-event-selected"),n.isStart&&t.push("fc-event-start"),n.isEnd&&t.push("fc-event-end"),n.isPast&&t.push("fc-event-past"),n.isToday&&t.push("fc-event-today"),n.isFuture&&t.push("fc-event-future"),t}function uo(n){return n.instance?n.instance.instanceId:n.def.defId+":"+n.range.start.toISOString()}function ist(n,t,i){var u=rst(n,t),r=u.range;if(!r.start)return null;if(!r.end){if(i==null)return null;r.end=t.add(r.start,i)}return u}function rst(n,t){var o=nr(n,od),r=o.refined,s=o.extra,u=r.start?t.createMarkerMeta(r.start):null,f=r.end?t.createMarkerMeta(r.end):null,e=r.allDay;return e==null&&(e=u&&u.isTimeUnspecified&&(!f||f.isTimeUnspecified)),i({range:{start:u?u.marker:null,end:f?f.marker:null},allDay:e},s)}function sd(n,t){return hl(n.range,t.range)&&n.allDay===t.allDay&&ust(n,t)}function ust(n,t){for(var i in t)if(i!=="range"&&i!=="allDay"&&n[i]!==t[i])return!1;for(i in n)if(!(i in t))return!1;return!0}function fst(n,t){return i(i({},cd(n.range,t,n.allDay)),{allDay:n.allDay})}function hd(n,t,r){return i(i({},cd(n,t,r)),{timeZone:t.timeZone})}function cd(n,t,i){return{start:t.toDate(n.start),end:t.toDate(n.end),startStr:t.formatIso(n.start,{omitTime:i}),endStr:t.formatIso(n.end,{omitTime:i})}}function est(n,t,i){var u=io({editable:!1},i),r=nf(u.refined,u.extra,"",n.allDay,!0,i);return{def:r,ui:td(r,t),instance:yu(r.defId,n.range),range:n.range,isStart:!0,isEnd:!0}}function ll(n,t,r){r.emitter.trigger("select",i(i({},al(n,r)),{jsEvent:t?t.origEvent:null,view:r.viewApi||r.calendarApi.view}))}function ost(n,t){t.emitter.trigger("unselect",{jsEvent:n?n.origEvent:null,view:t.viewApi||t.calendarApi.view})}function al(n,t){for(var e,r={},u=0,f=t.pluginHooks.dateSpanTransforms;u<f.length;u++)e=f[u],i(r,e(n,t));return i(r,fst(n,t.dateEnv)),r}function fo(n,t,i){var u=i.dateEnv,f=i.options,r=t;return n?(r=a(r),r=u.add(r,f.defaultAllDayEventDuration)):r=u.add(r,f.defaultTimedEventDuration),r}function eo(n,t,i,r){var h=ro(n.defs,t),u=it(),f,s,o,e;for(f in n.defs)e=n.defs[f],u.defs[f]=sst(e,h[f],i,r);for(s in n.instances)o=n.instances[s],e=u.defs[o.defId],u.instances[s]=hst(o,e,h[o.defId],i,r);return u}function sst(n,t,r,u){var e=r.standardProps||{},f,o,s,h;for(e.hasEnd==null&&t.durationEditable&&(r.startDelta||r.endDelta)&&(e.hasEnd=!0),f=i(i(i({},n),e),{ui:i(i({},n.ui),e.ui)}),r.extendedProps&&(f.extendedProps=i(i({},f.extendedProps),r.extendedProps)),o=0,s=u.pluginHooks.eventDefMutationAppliers;o<s.length;o++)h=s[o],h(f,r,u);return!f.hasEnd&&u.options.forceEventDuration&&(f.hasEnd=!0),f}function hst(n,t,r,u,f){var o=f.dateEnv,s=u.standardProps&&u.standardProps.allDay===!0,h=u.standardProps&&u.standardProps.hasEnd===!1,e=i({},n);return s&&(e.range=kk(e.range)),u.datesDelta&&r.startEditable&&(e.range={start:o.add(e.range.start,u.datesDelta),end:o.add(e.range.end,u.datesDelta)}),u.startDelta&&r.durationEditable&&(e.range={start:o.add(e.range.start,u.startDelta),end:e.range.end}),u.endDelta&&r.durationEditable&&(e.range={start:e.range.start,end:o.add(e.range.end,u.endDelta)}),h&&(e.range={start:e.range.start,end:fo(t.allDay,e.range.start,f)}),t.allDay&&(e.range={start:a(e.range.start),end:a(e.range.end)}),e.range.end<e.range.start&&(e.range.end=fo(t.allDay,e.range.start,f)),e}function ad(n,t,i){var u;if(i===void 0&&(i=vd(t)),typeof n=="string"?u={url:n}:typeof n=="function"||Array.isArray(n)?u={events:n}:typeof n=="object"&&n&&(u=n),u){var e=nr(u,i),r=e.refined,o=e.extra,f=cst(r,t);if(f)return{_raw:n,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:vt(),sourceDefId:f.sourceDefId,meta:f.meta,ui:dr(r,t),extendedProps:o}}return null}function vd(n){return i(i(i({},gu),ld),n.pluginHooks.eventSourceRefiners)}function cst(n,t){for(var f,r,u=t.pluginHooks.eventSourceDefs,i=u.length-1;i>=0;i-=1)if(f=u[i],r=f.parseMeta(n),r)return{sourceDefId:i,meta:r};return null}function lst(n,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return n}}function ast(n,t){var i=n.initialDate;return i!=null?t.createMarker(i):of(n.now,t)}function of(n,t){return(typeof n=="function"&&(n=n()),n==null)?t.createNowMarker():t.createMarker(n)}function yd(n){var t,i,u=n._def,r=n._instance;return{defs:(t={},t[u.defId]=u,t),instances:r?(i={},i[r.instanceId]=r,i):{}}}function wi(n,t,i){var s=n.defs,u=n.instances,f=[],h=i?i.instanceId:"",e,r,o;for(e in u)r=u[e],o=s[r.defId],r.instanceId!==h&&f.push(new v(t,o,r));return f}function vst(n,t){yl[n]=t}function yst(n){return new yl[n]}function bd(n){var t=wd.exec(n),i,r;return t&&(i=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]?Number("0."+t[12])*1e3:0)),le(i))?(r=null,t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:i,isTimeUnspecified:!t[6],timeZoneOffset:r}):null}function dd(n){for(var i,f=n.length>0?n[0].code:"en",e=kd.concat(n),r={en:wl},t=0,u=e;t<u.length;t++)i=u[t],r[i.code]=i;return{map:r,defaultCode:f}}function bl(n,t){return typeof n=="object"&&!Array.isArray(n)?gd(n.code,[n.code],n):pst(n,t)}function pst(n,t){var i=[].concat(n||[]),r=wst(i,t)||wl;return gd(n,i,r)}function wst(n,t){for(var u,r,f,i=0;i<n.length;i+=1)for(u=n[i].toLocaleLowerCase().split("-"),r=u.length;r>0;r-=1)if(f=u.slice(0,r).join("-"),t[f])return t[f];return null}function gd(n,t,i){var r=bc([wl,i],["buttonText"]),u;return delete r.code,u=r.week,delete r.week,{codeArg:n,codes:t,week:u,simpleNumberFormat:new Intl.NumberFormat(n),options:r}}function bst(n,t){t===void 0&&(t={});var r=ng(t),u=y(t),i=r.createMarkerMeta(n);return i?r.format(i.marker,u,{forcedTzo:i.forcedTzo}):""}function kst(n,t,i){var r=ng(typeof i=="object"&&i?i:{}),e=y(i),u=r.createMarkerMeta(n),f=r.createMarkerMeta(t);return!u||!f?"":r.formatRange(u.marker,f.marker,e,{forcedStartTzo:u.forcedTzo,forcedEndTzo:f.forcedTzo,isEndExclusive:i.isEndExclusive,defaultSeparator:ri.defaultRangeSeparator})}function ng(n){var t=bl(n.locale||"en",dd([]).map);return new pl(i(i({timeZone:ri.timeZone,calendarSystem:"gregory"},n),{locale:t}))}function kl(n,t){return de(dst(n),null,t)}function dst(n){var t;return t=n===!0?[{}]:Array.isArray(n)?n.filter(function(n){return n.daysOfWeek}):typeof n=="object"&&n?[n]:[],t.map(function(n){return i(i({},tg),n)})}function ig(n,t){return n.left>=t.left&&n.left<t.right&&n.top>=t.top&&n.top<t.bottom}function dl(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom?i:!1}function gl(n,t,i){return{left:n.left+t,right:n.right+t,top:n.top+i,bottom:n.bottom+i}}function rg(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function ug(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function fg(n,t){return{left:n.left-t.left,top:n.top-t.top}}function oo(){return na==null&&(na=gst()),na}function gst(){var n,t,i;return typeof document=="undefined"?!0:(n=document.createElement("div"),n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.innerHTML="<table><tr><td><div><\/div><\/td><\/tr><\/table>",n.querySelector("table").style.height="100px",n.querySelector("div").style.height="100%",document.body.appendChild(n),t=n.querySelector("div"),i=t.offsetHeight>0,document.body.removeChild(n),i)}function nht(n,t,r){var u=[],f;return n&&u.push(n),t&&u.push(t),f={"":no(u)},r&&i(f,r),f}function nu(n,t,i,r){return{dow:n.getUTCDay(),isDisabled:Boolean(r&&!wt(r.activeRange,n)),isOther:Boolean(r&&!wt(r.currentRange,n)),isToday:Boolean(t&&wt(t,n)),isPast:Boolean(i?n<i:t?n<t.start:!1),isFuture:Boolean(i?n>i:t?n>=t.end:!1)}}function rr(n,t){var i=["fc-day","fc-day-"+yc[n.dow],];return n.isDisabled?i.push("fc-day-disabled"):(n.isToday&&(i.push("fc-day-today"),i.push(t.getClass("today"))),n.isPast&&i.push("fc-day-past"),n.isFuture&&i.push("fc-day-future"),n.isOther&&i.push("fc-day-other")),i}function ta(n,t){var i=["fc-slot","fc-slot-"+yc[n.dow],];return n.isDisabled?i.push("fc-slot-disabled"):(n.isToday&&(i.push("fc-slot-today"),i.push(t.getClass("today"))),n.isPast&&i.push("fc-slot-past"),n.isFuture&&i.push("fc-slot-future")),i}function ur(n,t){return t===void 0&&(t="day"),JSON.stringify({date:br(n),type:t})}function hf(){return ho===null&&(ho=tht()),ho}function tht(){var n=document.createElement("div"),t,i;return ci(n,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),n.innerHTML="<div><\/div>",document.body.appendChild(n),t=n.firstChild,i=t.getBoundingClientRect().left>n.getBoundingClientRect().left,vr(n),i}function ra(){return ia||(ia=iht()),ia}function iht(){var n=document.createElement("div"),t;return n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",document.body.appendChild(n),t=eg(n),document.body.removeChild(n),t}function eg(n){return{x:n.offsetHeight-n.clientHeight,y:n.offsetWidth-n.clientWidth}}function ua(n,t){t===void 0&&(t=!1);var i=window.getComputedStyle(n),u=parseInt(i.borderLeftWidth,10)||0,f=parseInt(i.borderRightWidth,10)||0,e=parseInt(i.borderTopWidth,10)||0,o=parseInt(i.borderBottomWidth,10)||0,s=eg(n),h=s.y-u-f,c=s.x-e-o,r={borderLeft:u,borderRight:f,borderTop:e,borderBottom:o,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return hf()&&i.direction==="rtl"?r.scrollbarLeft=h:r.scrollbarRight=h,t&&(r.paddingLeft=parseInt(i.paddingLeft,10)||0,r.paddingRight=parseInt(i.paddingRight,10)||0,r.paddingTop=parseInt(i.paddingTop,10)||0,r.paddingBottom=parseInt(i.paddingBottom,10)||0),r}function fa(n,t,i){t===void 0&&(t=!1);var f=i?n.getBoundingClientRect():co(n),r=ua(n,t),u={left:f.left+r.borderLeft+r.scrollbarLeft,right:f.right-r.borderRight-r.scrollbarRight,top:f.top+r.borderTop,bottom:f.bottom-r.borderBottom-r.scrollbarBottom};return t&&(u.left+=r.paddingLeft,u.right-=r.paddingRight,u.top+=r.paddingTop,u.bottom-=r.paddingBottom),u}function co(n){var t=n.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function rht(n){for(var f,r,e=ea(n),t=n.getBoundingClientRect(),i=0,u=e;i<u.length;i++)if(f=u[i],r=dl(t,f.getBoundingClientRect()),r)t=r;else return null;return t}function uht(n){return n.getBoundingClientRect().height+fht(n)}function fht(n){var t=window.getComputedStyle(n);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function ea(n){for(var i=[],t;n instanceof HTMLElement;){if(t=window.getComputedStyle(n),t.position==="fixed")break;/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)&&i.push(n);n=n.parentNode}return i}function oa(n,t,i){var r=!1,f=function(){r||(r=!0,t.apply(this,arguments))},e=function(){r||(r=!0,i&&i.apply(this,arguments))},u=n(f,e);u&&typeof u.then=="function"&&u.then(f,e)}function eht(n,t,i){(n[t]||(n[t]=[])).push(i)}function oht(n,t,i){i?n[t]&&(n[t]=n[t].filter(function(n){return n!==i})):delete n[t]}function sht(n,t,i,r,u,f,e,o,h,c,l,a,v){return{dateEnv:u,options:i,pluginHooks:e,emitter:c,dispatch:o,getCurrentData:h,calendarApi:l,viewSpec:n,viewApi:t,dateProfileGenerator:r,theme:f,isRtl:i.direction==="rtl",addResizeHandler:function(n){c.on("_resize",n)},removeResizeHandler:function(n){c.off("_resize",n)},createScrollResponder:function(n){return new ag(n,c,s(i.scrollTime),i.scrollTimeReset)},registerInteractiveComponent:a,unregisterInteractiveComponent:v}}function hht(n){var t=Object.create(this.prototype.propEquality);i(t,n);this.prototype.propEquality=t}function cht(n){var t=Object.create(this.prototype.stateEquality);i(t,n);this.prototype.stateEquality=t}function g(n,t){typeof n=="function"?n(t):n&&(n.current=t)}function k(n){return{id:vt(),deps:n.deps||[],reducers:n.reducers||[],isLoadingFuncs:n.isLoadingFuncs||[],contextInit:[].concat(n.contextInit||[]),eventRefiners:n.eventRefiners||{},eventDefMemberAdders:n.eventDefMemberAdders||[],eventSourceRefiners:n.eventSourceRefiners||{},isDraggableTransformers:n.isDraggableTransformers||[],eventDragMutationMassagers:n.eventDragMutationMassagers||[],eventDefMutationAppliers:n.eventDefMutationAppliers||[],dateSelectionTransformers:n.dateSelectionTransformers||[],datePointTransforms:n.datePointTransforms||[],dateSpanTransforms:n.dateSpanTransforms||[],views:n.views||{},viewPropsTransformers:n.viewPropsTransformers||[],isPropsValid:n.isPropsValid||null,externalDefTransforms:n.externalDefTransforms||[],viewContainerAppends:n.viewContainerAppends||[],eventDropTransformers:n.eventDropTransformers||[],componentInteractions:n.componentInteractions||[],calendarInteractions:n.calendarInteractions||[],themeClasses:n.themeClasses||{},eventSourceDefs:n.eventSourceDefs||[],cmdFormatter:n.cmdFormatter,recurringTypes:n.recurringTypes||[],namedTimeZonedImpl:n.namedTimeZonedImpl,initialView:n.initialView||"",elementDraggingImpl:n.elementDraggingImpl,optionChangeHandlers:n.optionChangeHandlers||{},scrollGridImpl:n.scrollGridImpl||null,contentTypeHandlers:n.contentTypeHandlers||{},listenerRefiners:n.listenerRefiners||{},optionRefiners:n.optionRefiners||{},propSetHandlers:n.propSetHandlers||{}}}function lht(n,t){function r(n){for(var t,f=0,e=n;f<e.length;f++)t=e[f],u[t.id]||(u[t.id]=!0,r(t.deps),i=vht(i,t))}var u={},i={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 n&&r(n),r(t),i}function aht(){var t=[],i=[],n;return function(r,u){return n&&ht(r,t)&&ht(u,i)||(n=lht(r,u)),t=r,i=u,n}}function vht(n,t){return{reducers:n.reducers.concat(t.reducers),isLoadingFuncs:n.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:n.contextInit.concat(t.contextInit),eventRefiners:i(i({},n.eventRefiners),t.eventRefiners),eventDefMemberAdders:n.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:i(i({},n.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:n.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:n.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:n.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:n.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:n.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:n.dateSpanTransforms.concat(t.dateSpanTransforms),views:i(i({},n.views),t.views),viewPropsTransformers:n.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||n.isPropsValid,externalDefTransforms:n.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:n.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:n.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:n.calendarInteractions.concat(t.calendarInteractions),componentInteractions:n.componentInteractions.concat(t.componentInteractions),themeClasses:i(i({},n.themeClasses),t.themeClasses),eventSourceDefs:n.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||n.cmdFormatter,recurringTypes:n.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||n.namedTimeZonedImpl,initialView:n.initialView||t.initialView,elementDraggingImpl:n.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:i(i({},n.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||n.scrollGridImpl,contentTypeHandlers:i(i({},n.contentTypeHandlers),t.contentTypeHandlers),listenerRefiners:i(i({},n.listenerRefiners),t.listenerRefiners),optionRefiners:i(i({},n.optionRefiners),t.optionRefiners),propSetHandlers:i(i({},n.propSetHandlers),t.propSetHandlers)}}function yht(n,t){var i={};for(var r in n)ha(r,i,n,t);for(r in t)ha(r,i,n,t);return i}function ha(n,t,i,r){if(t[n])return t[n];var u=pht(n,t,i,r);return u&&(t[n]=u),u}function pht(n,t,r,u){var e=r[n],o=u[n],c=function(n){return e&&e[n]!==null?e[n]:o&&o[n]!==null?o[n]:null},s=c("component"),h=c("superType"),f=null;if(h){if(h===n)throw new Error("Can't have a custom view type that references itself");f=ha(h,t,r,u)}return(!s&&f&&(s=f.component),!s)?null:{type:n,component:s,defaults:i(i({},f?f.defaults:{}),e?e.rawOptions:{}),overrides:i(i({},f?f.overrides:{}),o?o.rawOptions:{})}}function tu(n){return t(vo.Consumer,null,function(r){return t(vg,i({renderId:r},n))})}function iu(){var t,n,i=[];return function(r,u){return n&&ut(n,u)&&r===t||(t=r,n=u,i=yg(r,u)),i}}function yg(n,t){return typeof n=="function"&&(n=n(t)),du(n)}function pg(n,i){return typeof n=="function"?n(i,t):n}function wg(n){return w(n,wht)}function wht(n){var t=typeof n=="function"?{component:n}:n,i=t.component;return t.content&&(i=bht(t)),{superType:t.type,component:i,rawOptions:t}}function bht(n){return function(r){return t(lt.Consumer,null,function(u){return t(bt,{viewSpec:u.viewSpec},function(f,e){var o=i(i({},r),{nextDayThreshold:u.options.nextDayThreshold});return t(b,{hookProps:o,classNames:n.classNames,content:n.content,didMount:n.didMount,willUnmount:n.willUnmount,elRef:f},function(n,i,r,u){return t("div",{className:e.concat(i).join(" "),ref:n},u)})})})}}function kht(n,t,i,r){var f=wg(n),u=wg(t.views),e=yht(f,u);return w(e,function(n){return dht(n,u,t,i,r)})}function dht(n,t,r,u,f){var l=n.overrides.duration||n.defaults.duration||u.duration||r.duration,s=null,e="",h="",a={},c,o;return l&&(s=ght(l),s&&(c=ii(s),e=c.unit,c.value===1&&(h=e,a=t[e]?t[e].rawOptions:{}))),o=function(t){var i=t.buttonText||{},r=n.defaults.buttonTextKey;return r!=null&&i[r]!=null?i[r]:i[n.type]!=null?i[n.type]:i[h]!=null?i[h]:null},{type:n.type,component:n.component,duration:s,durationUnit:e,singleUnit:h,optionDefaults:n.defaults,optionOverrides:i(i({},a),n.overrides),buttonTextOverride:o(u)||o(r)||n.overrides.buttonText,buttonTextDefault:o(f)||n.defaults.buttonText||o(ri)||n.type}}function ght(n){var i=JSON.stringify(n),t=ca[i];return t===undefined&&(t=s(n),ca[i]=t),t}function nct(n,t){switch(t.type){case"CHANGE_VIEW_TYPE":n=t.viewType}return n}function tct(n,t){var r;switch(t.type){case"SET_OPTION":return i(i({},n),(r={},r[t.optionName]=t.rawOptionValue,r));default:return n}}function ict(n,t,i,r){var u;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||i);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(u=r.buildPrev(n,i),u.isValid)return u;break;case"NEXT":if(u=r.buildNext(n,i),u.isValid)return u}return n}function rct(n,t,i){var r=t?t.activeRange:null;return kg({},cct(n,i),r,i)}function uct(n,t,i,r){var u=i?i.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return kg(n,t.sources,u,r);case"REMOVE_EVENT_SOURCE":return ect(n,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?dg(n,u,r):n;case"FETCH_EVENT_SOURCES":return la(n,t.sourceIds?nk(t.sourceIds):gg(n,r),u,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return hct(n,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return n}}function fct(n,t,i){var r=t?t.activeRange:null;return la(n,gg(n,i),r,!0,i)}function bg(n){for(var t in n)if(n[t].isFetching)return!0;return!1}function kg(n,t,r,u){for(var o,f={},e=0,s=t;e<s.length;e++)o=s[e],f[o.sourceId]=o;return r&&(f=dg(f,r,u)),i(i({},n),f)}function ect(n,t){return pt(n,function(n){return n.sourceId!==t})}function dg(n,t,i){return la(n,pt(n,function(n){return oct(n,t,i)}),t,!1,i)}function oct(n,t,i){return nn(n,i)?!i.options.lazyFetching||!n.fetchRange||n.isFetching||t.start<n.fetchRange.start||t.end>n.fetchRange.end:!n.latestFetchId}function la(n,t,i,r,u){var o={},f,e;for(f in n)e=n[f],o[f]=t[f]?sct(e,i,r,u):e;return o}function sct(n,t,r,u){var f=u.options,e=u.calendarApi,s=u.pluginHooks.eventSourceDefs[n.sourceDefId],o=vt();return s.fetch({eventSource:n,range:t,isRefetch:r,context:u},function(i){var r=i.rawEvents;f.eventSourceSuccess&&(r=f.eventSourceSuccess.call(e,r,i.xhr)||r);n.success&&(r=n.success.call(e,r,i.xhr)||r);u.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:o,fetchRange:t,rawEvents:r})},function(i){console.warn(i.message,i);f.eventSourceFailure&&f.eventSourceFailure.call(e,i);n.failure&&n.failure(i);u.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:o,fetchRange:t,error:i})}),i(i({},n),{isFetching:!0,latestFetchId:o})}function hct(n,t,r,u){var f,e=n[t];return e&&r===e.latestFetchId?i(i({},n),(f={},f[t]=i(i({},e),{isFetching:!1,fetchRange:u}),f)):n}function gg(n,t){return pt(n,function(n){return nn(n,t)})}function cct(n,t){var s=vd(t),r=[].concat(n.eventSources||[]),e=[],i,u,o,f;for(n.initialEvents&&r.unshift(n.initialEvents),n.events&&r.unshift(n.events),i=0,u=r;i<u.length;i++)o=u[i],f=ad(o,t,s),f&&e.push(f);return e}function nn(n,t){var i=t.pluginHooks.eventSourceDefs;return!i[n.sourceDefId].ignoreRange}function lct(n,t,i,r,u){switch(t.type){case"RECEIVE_EVENTS":return act(n,i[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,u);case"ADD_EVENTS":return yct(n,t.eventStore,r?r.activeRange:null,u);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return bu(n,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?pr(n,r.activeRange,u):n;case"REMOVE_EVENTS":return yot(n,t.eventStore);case"REMOVE_EVENT_SOURCE":return rn(n,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return ku(n,function(n){return!n.sourceId});case"REMOVE_ALL_EVENTS":return it();default:return n}}function act(n,t,i,r,u,f){if(t&&i===t.latestFetchId){var e=de(vct(u,t,f),t,f);return r&&(e=pr(e,r,f)),bu(rn(n,t.sourceId),e)}return n}function vct(n,t,i){var r=i.options.eventDataTransform,u=t?t.eventDataTransform:null;return u&&(n=tn(n,u)),r&&(n=tn(n,r)),n}function tn(n,t){var i,r,f,e,u;if(t)for(i=[],r=0,f=n;r<f.length;r++)e=f[r],u=t(e),u?i.push(u):u==null&&i.push(e);else i=n;return i}function yct(n,t,i,r){return i&&(t=pr(t,i,r)),bu(n,t)}function pct(n,t,r){var u=n.defs,f=w(n.instances,function(n){var f=u[n.defId];return f.allDay||f.recurringDef?n:i(i({},n),{range:{start:r.createMarker(t.toDate(n.range.start,n.forcedStartTzo)),end:r.createMarker(t.toDate(n.range.end,n.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:n.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:n.forcedEndTzo})});return{defs:u,instances:f}}function rn(n,t){return ku(n,function(n){return n.sourceId!==t})}function wct(n,t){return{defs:n.defs,instances:pt(n.instances,function(n){return!t[n.instanceId]})}}function bct(n,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return n}}function kct(n,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return n}}function dct(n,t){var i;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return i=t.state,{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent};default:return n}}function gct(n,t){var i;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return i=t.state,{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent};default:return n}}function nlt(n,t,i,r,u){var f=[],e=n.headerToolbar?un(n.headerToolbar,n,t,i,r,u,f):null,o=n.footerToolbar?un(n.footerToolbar,n,t,i,r,u,f):null;return{headerToolbar:e,footerToolbar:o,viewsWithButtons:f}}function un(n,t,i,r,u,f,e){return w(n,function(n){return tlt(n,t,i,r,u,f,e)})}function tlt(n,t,i,r,u,f,e){var o=t.direction==="rtl",s=t.customButtons||{},h=i.buttonText||{},c=t.buttonText||{},l=n?n.split(" "):[];return l.map(function(n){return n.split(",").map(function(n){if(n==="title")return{buttonName:n};var i,v,a,l,t;return(i=s[n])?(a=function(n){i.click&&i.click.call(n.target,n,n.target)},(l=r.getCustomButtonIconClass(i))||(l=r.getIconClass(n,o))||(t=i.text)):(v=u[n])?(e.push(n),a=function(){f.changeView(n)},(t=v.buttonTextOverride)||(l=r.getIconClass(n,o))||(t=v.buttonTextDefault)):f[n]&&(a=function(){f[n]()},(t=h[n])||(l=r.getIconClass(n,o))||(t=c[n])),{buttonName:n,buttonClick:a,buttonIcon:l,buttonText:t}})})}function po(n,t,i,r,u){var e,f;n=n.toUpperCase();e=null;n==="GET"?t=elt(t,i):e=fn(i);f=new XMLHttpRequest;f.open(n,t,!0);n!=="GET"&&f.setRequestHeader("Content-Type","application/x-www-form-urlencoded");f.onload=function(){if(f.status>=200&&f.status<400){var n=!1,t=void 0;try{t=JSON.parse(f.responseText);n=!0}catch(i){}n?r(t,f):u("Failure parsing JSON",f)}else u("Request failed",f)};f.onerror=function(){u("Request failed",f)};f.send(e)}function elt(n,t){return n+(n.indexOf("?")===-1?"?":"&")+fn(t)}function fn(n){var t=[];for(var i in n)t.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return t.join("&")}function clt(n,t,r){var f=r.dateEnv,h=r.options,e,o,s,c,u={};return e=n.startParam,e==null&&(e=h.startParam),o=n.endParam,o==null&&(o=h.endParam),s=n.timeZoneParam,s==null&&(s=h.timeZoneParam),c=typeof n.extraParams=="function"?n.extraParams():n.extraParams||{},i(u,c),u[e]=f.formatIso(t.start),u[o]=f.formatIso(t.end),f.timeZone!=="local"&&(u[s]=f.timeZone),u}function ylt(n,t,i,r){for(var e=n?nk(n):null,u=a(i.start),s=i.end,o=[],f;u<s;)f=void 0,(!e||e[u.getUTCDay()])&&(f=t?r.add(u,t):u,o.push(f)),u=p(u,1);return o}function on(n,t){for(var o,s,i,u,h,v,f,c,y,r=kc(t.getCurrentData().eventSources),l=[],e=0,a=n;e<a.length;e++){for(o=a[e],s=!1,i=0;i<r.length;i+=1)if(r[i]._raw===o){r.splice(i,1);s=!0;break}s||l.push(o)}for(u=0,h=r;u<h.length;u++)v=h[u],t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:v.sourceId});for(f=0,c=l;f<c.length;f++)y=c[f],t.calendarApi.addEventSource(y)}function plt(n,t){t.emitter.trigger("datesSet",i(i({},hd(n.activeRange,t.dateEnv)),{view:t.viewApi}))}function wlt(n,t){var i=t.emitter;i.hasHandlers("eventsSet")&&i.trigger("eventsSet",wi(n,t))}function blt(n,t){n.innerHTML=t}function klt(n,t){var u=Array.prototype.slice.call(n.childNodes),f=Array.prototype.slice.call(t),i,r,e;if(!ht(u,f)){for(i=0,r=f;i<r.length;i++)e=r[i],n.appendChild(e);u.forEach(vr)}}function dlt(n,t,i){var r;return r=/^(year|month)$/.test(n.currentRangeUnit)?n.currentRange:n.activeRange,i.formatRange(r.start,r.end,y(t.titleFormat||glt(n)),{isEndExclusive:n.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function glt(n){var i=n.currentRangeUnit,t;return i==="year"?{year:"numeric"}:i==="month"?{year:"numeric",month:"long"}:(t=yr(n.currentRange.start,n.currentRange.end),t!==null&&t>1)?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function nat(n,t,i,r,u,f,e,o){var s=bl(t||e.defaultCode,e.map);return new pl({calendarSystem:"gregory",timeZone:n,namedTimeZoneImpl:f.namedTimeZonedImpl,locale:s,weekNumberCalculation:i,firstDay:r,weekText:u,cmdFormatter:f.cmdFormatter,defaultSeparator:o})}function tat(n,t){var i=t.themeClasses[n.themeSystem]||ei;return new i(n)}function iat(n){var t=n.dateProfileGeneratorClass||yo;return new t(n)}function rat(n,t,i){return new vl(n,t,i)}function uat(n){return w(n,function(n){return n.ui})}function fat(n,t,i){var f={"":t},u,r;for(u in n)r=n[u],r.sourceId&&i[r.sourceId]&&(f[u]=i[r.sourceId]);return f}function eat(n){var t=n.options;return{eventUiSingleBase:dr({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:undefined,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},n),selectionConfig:dr({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:undefined,allow:t.selectAllow},n)}}function aa(n,t){for(var u,i=0,r=t.pluginHooks.isLoadingFuncs;i<r.length;i++)if(u=r[i],u(n))return!0;return!1}function oat(n){return kl(n.options.businessHours,n)}function hn(n,t){for(var i in n)console.warn("Unknown option '"+i+"'"+(t?" for view '"+t+"'":""))}function sat(n,t){return ff(n.eventStore,n.eventUiBases,n.dateProfile.activeRange,t?n.nextDayThreshold:null).fg}function va(n){return n.span.end}function ki(n){return n.index+":"+n.span.start}function ya(n){for(var r,o,i,u=[],f=0,s=n;f<s.length;f++){var h=s[f],e=[],t={span:h.span,entries:[h]};for(r=0,o=u;r<o.length;r++)i=o[r],ko(i.span,t.span)?t={entries:i.entries.concat(t.entries),span:an(i.span,t.span)}:e.push(i);e.push(t);u=e}return u}function an(n,t){return{start:Math.min(n.start,t.start),end:Math.max(n.end,t.end)}}function ko(n,t){var i=Math.max(n.start,t.start),r=Math.min(n.end,t.end);return i<r?{start:i,end:r}:null}function pa(n,t,i){n.splice(t,0,i)}function wa(n,t,i){var r=0,u=n.length,f,e;if(!u||t<i(n[r]))return[0,0];if(t>i(n[u-1]))return[u,0];while(r<u)if(f=Math.floor(r+(u-r)/2),e=i(n[f]),t<e)u=f;else if(t>e)r=f+1;else return[f,1];return[r,0]}function hat(n,t){return{component:n,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}function go(n){var t;return t={},t[n.component.uid]=n,t}function ns(n){var i=nr(n,cat),t=i.refined,r=i.extra;return{startTime:t.startTime||null,duration:t.duration||null,create:t.create!=null?t.create:!0,sourceId:t.sourceId,leftoverProps:r}}function pat(n,t,i,r,u,f){var e=i.build(u,undefined,!1),o=i.buildPrev(t,r,!1),s=i.buildNext(t,r,!1);return{title:f,activeButton:n.type,isTodayEnabled:e.isValid&&!wt(t.currentRange,u),isPrevEnabled:o.isValid,isNextEnabled:s.isValid}}function wat(n){return n.map(function(n){return new n})}function da(n,t){return!n||t>10?y({weekday:"short"}):t>1?y({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):y({weekday:"long"})}function pn(n){return n.text}function wn(n){var t=a(n),i=p(t,1);return{start:t,end:i}}function bat(n,t,i){return n||da(t,i)}function uv(n,t){var i=n.activeRange;return t?i:{start:gt(i.start,n.slotMinTime.milliseconds),end:gt(i.end,n.slotMaxTime.milliseconds-864e5)}}function rs(n,t,i){var r=n.mutatedEvents.instances;for(var u in r)if(!uf(t.validRange,r[u].range))return!1;return kn({eventDrag:n},i)}function bn(n,t,i){return uf(t.validRange,n.range)?kn({dateSelection:n},i):!1}function kn(n,t){var r=t.getCurrentData(),u=i({businessHours:r.businessHours,dateSelection:"",eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},n);return(t.pluginHooks.isPropsValid||fv)(u,t)}function fv(n,t,i,r){return(i===void 0&&(i={}),n.eventDrag&&!kat(n,t,i,r))?!1:n.dateSelection&&!dat(n,t,i,r)?!1:!0}function kat(n,t,r,u){var g=t.getCurrentData(),o=n.eventDrag,nt=o.mutatedEvents,tt=nt.defs,it=nt.instances,c=ro(tt,o.isEvent?n.eventUiBases:{"":g.selectionConfig}),a,p,b,et,e,ot,k,h,d;u&&(c=w(c,u));var l=wct(n.eventStore,o.affectedEvents.instances),rt=l.defs,ut=l.instances,ct=ro(rt,n.eventUiBases);for(a in it){var f=it[a],ft=f.range,y=c[f.defId],s=tt[f.defId];if(!dn(y.constraints,ft,l,n.businessHours,t))return!1;p=t.options.eventOverlap;b=typeof p=="function"?p:null;for(et in ut)if(e=ut[et],rf(ft,e.range)&&((ot=ct[e.defId].overlap,ot===!1&&o.isEvent)||y.overlap===!1||b&&!b(new v(t,rt[e.defId],e),new v(t,s,f))))return!1;for(k=g.eventStore,h=0,d=y.allows;h<d.length;h++){var lt=d[h],at=i(i({},r),{range:f.range,allDay:s.allDay}),st=k.defs[s.defId],vt=k.instances[a],ht=void 0;if(ht=st?new v(t,st,vt):new v(t,s),!lt(al(at,t),ht))return!1}}return!0}function dat(n,t,r,u){var s=n.eventStore,d=s.defs,a=s.instances,y=n.dateSelection,p=y.range,f=t.getCurrentData().selectionConfig,h,c,w,e,o,l,b,k;if(u&&(f=u(f)),!dn(f.constraints,p,s,n.businessHours,t))return!1;h=t.options.selectOverlap;c=typeof h=="function"?h:null;for(w in a)if(e=a[w],rf(p,e.range)&&(f.overlap===!1||c&&!c(new v(t,d[e.defId],e),null)))return!1;for(o=0,l=f.allows;o<l.length;o++)if(b=l[o],k=i(i({},r),y),!b(al(k,t),null))return!1;return!0}function dn(n,t,i,r,u){for(var o,f=0,e=n;f<e.length;f++)if(o=e[f],!nvt(gat(o,t,i,r,u),t))return!1;return!0}function gat(n,t,i,r,u){return n==="businessHours"?ev(pr(r,t,u)):typeof n=="string"?ev(ku(i,function(t){return t.groupId===n})):typeof n=="object"&&n?ev(pr(n,t,u)):[]}function ev(n){var t=n.instances,i=[];for(var r in t)i.push(t[r].range);return i}function nvt(n,t){for(var u,i=0,r=n;i<r.length;i++)if(u=r[i],uf(u,t))return!0;return!1}function ov(n){for(var u,f=dt(n,".fc-scrollgrid-shrink"),t=0,i=0,r=f;i<r.length;i++)u=r[i],t=Math.max(t,pb(u));return Math.ceil(t)}function es(n,t){return n.liquid&&t.liquid}function sv(n,t){return t.maxHeight!=null||es(n,t)}function hv(n,i,r){var u=r.expandRows;return typeof i.content=="function"?i.content(r):t("table",{className:[i.tableClassName,n.syncRowHeights?"fc-scrollgrid-sync-table":"",].join(" "),style:{minWidth:r.tableMinWidth,width:r.clientWidth,height:u?r.clientHeight:""}},r.tableColGroupNode,t("tbody",{},typeof i.rowContent=="function"?i.rowContent(r):i.rowContent))}function cv(n,t){return ht(n,t,ut)}function lv(n,i){for(var r,s,f,e=[],u=0,o=n;u<o.length;u++)for(r=o[u],s=r.span||1,f=0;f<s;f+=1)e.push(t("col",{style:{width:r.width==="shrink"?av(i):r.width||"",minWidth:r.minWidth||""}}));return t.apply(void 0,l(["colgroup",{}],e))}function av(n){return n==null?4:n}function vv(n){for(var r,t=0,i=n;t<i.length;t++)if(r=i[t],r.width==="shrink")return!0;return!1}function yv(n,t){var i=["fc-scrollgrid",t.theme.getClass("table"),];return n&&i.push("fc-scrollgrid-liquid"),i}function pv(n,t){var i=["fc-scrollgrid-section","fc-scrollgrid-section-"+n.type,n.className,];return t&&n.liquid&&n.maxHeight==null&&i.push("fc-scrollgrid-section-liquid"),n.isSticky&&i.push("fc-scrollgrid-section-sticky"),i}function sr(n){return t("div",{className:"fc-scrollgrid-sticky-shim",style:{width:n.clientWidth,minWidth:n.tableMinWidth}})}function hr(n){var t=n.stickyHeaderDates;return(t==null||t==="auto")&&(t=n.height==="auto"||n.viewHeight==="auto"),t}function yf(n){var t=n.stickyFooterScrollbar;return(t==null||t==="auto")&&(t=n.height==="auto"||n.viewHeight==="auto"),t}function tvt(n,t){for(var u,i=0,r=n;i<r.length;i++)if(u=r[i],u.key===t)return u;return null}function ivt(n){return t("div",{className:"fc-event-main-frame"},n.timeText&&t("div",{className:"fc-event-time"},n.timeText),t("div",{className:"fc-event-title-container"},t("div",{className:"fc-event-title fc-sticky"},n.event.title||t(c,null," "))))}function rvt(n){var t=n.eventRange.def.url;return t?{href:t}:{}}function gn(n){var t=n.date,r=n.dateEnv,u=nu(t,n.todayRange,null,n.dateProfile);return i(i(i({date:r.toDate(t),view:n.viewApi},u),{dayNumberText:n.showDayNumber?r.format(t,uvt):""}),n.extraProps)}function ss(n){return t("div",{className:"fc-"+n})}function fvt(n){var i=n.event.title;return i&&t("div",{className:"fc-event-title"},n.event.title)}function evt(n){return n.text}function hvt(n){return n.text}function ntt(n){if(n.allDayDate)return{start:n.allDayDate,end:p(n.allDayDate,1)};var t=n.hiddenSegs;return{start:df(t),end:lvt(t)}}function df(n){return n.reduce(cvt).eventRange.range.start}function cvt(n,t){return n.eventRange.range.start<t.eventRange.range.start?n:t}function lvt(n){return n.reduce(avt).eventRange.range.end}function avt(n,t){return n.eventRange.range.end>t.eventRange.range.end?n:t}function vvt(n){return n.button===0&&!n.ctrlKey}function yvt(){bv+=1;setTimeout(function(){bv-=1},ot.touchMouseIgnoreWait)}function pvt(){ls+=1;ls===1&&window.addEventListener("touchmove",rtt,{passive:!1})}function wvt(){ls-=1;ls||window.removeEventListener("touchmove",rtt,{passive:!1})}function rtt(n){kv&&n.preventDefault()}function nyt(n){var t=n.tagName;return t==="HTML"||t==="BODY"}function vs(n,t){return!n&&!t?!0:Boolean(n)!==Boolean(t)?!1:sd(n.dateSpan,t.dateSpan)}function dv(n,t){for(var e,r={},u=0,f=t.pluginHooks.datePointTransforms;u<f.length;u++)e=f[u],i(r,e(n,t));return i(r,tyt(n,t.dateEnv)),r}function tyt(n,t){return{date:t.toDate(n.range.start),dateStr:t.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay}}function iyt(n){var i=n.context.options,t=i.selectLongPressDelay;return t==null&&(t=i.longPressDelay),t}function ryt(n,t,r){var o=n.dateSpan,c=t.dateSpan,s=[o.range.start,o.range.end,c.range.start,c.range.end,],u,f,h,l,e;for(s.sort(yb),u={},f=0,h=r;f<h.length;f++){if(l=h[f],e=l(n,t),e===!1)return null;e&&i(u,e)}return u.range={start:s[0],end:s[3]},u.allDay=o.allDay,u}function uyt(n,t,i){var c=n.dateSpan,r=t.dateSpan,e=c.range.start,v=r.range.start,u={},o,s,f,h,l;for(c.allDay!==r.allDay&&(u.allDay=r.allDay,u.hasEnd=t.context.options.allDayMaintainDuration,r.allDay&&(e=a(e))),o=tr(e,v,n.context.dateEnv,n.componentId===t.componentId?n.largeUnit:null),o.milliseconds&&(u.allDay=!1),s={datesDelta:o,standardProps:u},f=0,h=i;f<h.length;f++)l=h[f],l(s,n,t);return s}function fyt(n){var i=n.context.options,t=i.eventLongPressDelay;return t==null&&(t=i.longPressDelay),t}function eyt(n,t,i,r){var f=n.context.dateEnv,e=n.dateSpan.range.start,o=t.dateSpan.range.start,u=tr(e,o,f,n.largeUnit);if(i){if(f.add(r.start,u)<r.end)return{startDelta:u}}else if(f.add(r.end,u)>r.start)return{endDelta:u};return null}function cyt(n,t,r){for(var s,l,a,e=i({},t.leftoverProps),f=0,o=r.pluginHooks.externalDefTransforms;f<o.length;f++)s=o[f],i(e,s(n,t));var h=io(e,r),v=h.refined,y=h.extra,c=nf(v,y,t.sourceId,n.allDay,r.options.forceEventDuration||Boolean(t.duration),r),u=n.range.start;return n.allDay&&t.startTime&&(u=r.dateEnv.add(u,t.startTime)),l=t.duration?r.dateEnv.add(u,t.duration):fo(n.allDay,u,r),a=yu(c.defId,{start:u,end:l}),{def:c,instance:a}}function lyt(n){var t=ayt(n,"event"),i=t?JSON.parse(t):{create:!1};return ns(i)}function ayt(n,t){var i=ot.dataAttrPrefix,r=(i?i+"-":"")+t;return n.getAttribute("data-"+r)||""}function ys(n,t){for(var i,f,e,r=[],u=0;u<t;u+=1)r[u]=[];for(i=0,f=n;i<f.length;i++)e=f[i],r[e.row].push(e);return r}function ps(n,t){for(var i,f,e,r=[],u=0;u<t;u+=1)r[u]=[];for(i=0,f=n;i<f.length;i++)e=f[i],r[e.firstCol].push(e);return r}function ltt(n,t){var r=[],i,u,f,e;if(n){for(i=0;i<t;i+=1)r[i]={affectedInstances:n.affectedInstances,isEvent:n.isEvent,segs:[]};for(u=0,f=n.segs;u<f.length;u++)e=f[u],r[e.row].segs.push(e)}else for(i=0;i<t;i+=1)r[i]=null;return r}function byt(n){return n.dayNumberText}function vtt(n){var t=n.eventRange.ui.display;return t==="list-item"||t==="auto"&&!n.eventRange.def.allDay&&n.firstCol===n.lastCol&&n.isStart&&n.isEnd}function kyt(n){return t(c,null,t("div",{className:"fc-daygrid-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}}),n.timeText&&t("div",{className:"fc-event-time"},n.timeText),t("div",{className:"fc-event-title"},n.event.title||t(c,null," ")))}function dyt(n){var t=n.eventRange.def.url;return t?{href:t}:{}}function gyt(n){for(var t,r=[],u=[],i=0,f=n;i<f.length;i++)t=f[i],r.push(t.seg),t.isVisible||u.push(t.seg);return{allSegs:r,invisibleSegs:u}}function npt(n,t,i,r,u,f,e){var h=new btt,y,p,c,a,g,s,v,nt,o;for(h.allowReslicing=!0,h.strictOrder=r,t===!0||i===!0?(h.maxCoord=f,h.hiddenConsumes=!0):typeof t=="number"?h.maxStackCnt=t:typeof i=="number"&&(h.maxStackCnt=i,h.hiddenConsumes=!0),y=[],p=[],c=0;c<n.length;c+=1){var s=n[c],ut=s.eventRange.instance.instanceId,tt=u[ut];tt!=null?y.push({index:c,thickness:tt,span:{start:s.firstCol,end:s.lastCol+1}}):p.push(s)}var ft=h.addSegs(y),et=h.toRects(),w=tpt(et,n,e),b=w.singleColPlacements,k=w.multiColPlacements,ot=w.leftoverMargins,d=[],it=[];for(a=0,g=p;a<g.length;a++)for(s=g[a],k[s.firstCol].push({seg:s,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0}),o=s.firstCol;o<=s.lastCol;o+=1)b[o].push({seg:fu(s,o,o+1,e),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0});for(o=0;o<e.length;o+=1)d.push(0);for(v=0,nt=ft;v<nt.length;v++){var rt=nt[v],s=n[rt.index],l=rt.span;for(k[l.start].push({seg:fu(s,l.start,l.end,e),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0}),o=l.start;o<l.end;o+=1)d[o]+=1,b[o].push({seg:fu(s,o,o+1,e),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(o=0;o<e.length;o+=1)it.push(ot[o]);return{singleColPlacements:b,multiColPlacements:k,moreCnts:d,moreMarginTops:it}}function tpt(n,t,i){for(var o,l,r,s,h,c,a,d=ipt(n,i.length),v=[],y=[],p=[],u=0;u<i.length;u+=1){var w=d[u],b=[],e=0,f=0;for(o=0,l=w;o<l.length;o++)r=l[o],s=t[r.index],b.push({seg:fu(s,u,u+1,i),isVisible:!0,isAbsolute:!1,absoluteTop:0,marginTop:r.levelCoord-e}),e=r.levelCoord+r.thickness;for(h=[],e=0,f=0,c=0,a=w;c<a.length;c++){var r=a[c],s=t[r.index],g=r.span.end-r.span.start>1,k=r.span.start===u;f+=r.levelCoord-e;e=r.levelCoord+r.thickness;g?(f+=r.thickness,k&&h.push({seg:fu(s,r.span.start,r.span.end,i),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):k&&(h.push({seg:fu(s,r.span.start,r.span.end,i),isVisible:!0,isAbsolute:!1,absoluteTop:0,marginTop:f}),f=0)}v.push(b);y.push(h);p.push(f)}return{singleColPlacements:v,multiColPlacements:y,leftoverMargins:p}}function ipt(n,t){for(var r,e,u,f=[],i=0;i<t;i+=1)f.push([]);for(r=0,e=n;r<e.length;r++)for(u=e[r],i=u.span.start;i<u.span.end;i+=1)f[i].push(u);return f}function fu(n,t,r,u){if(n.firstCol===t&&n.lastCol===r-1)return n;var f=n.eventRange,e=f.range,o=ui(e,{start:u[t].date,end:p(u[r-1].date,1)});return i(i({},n),{firstCol:t,lastCol:r-1,eventRange:{def:f.def,ui:i(i({},f.ui),{durationEditable:!1}),instance:f.instance,range:o},isStart:n.isStart&&o.start.valueOf()===e.start.valueOf(),isEnd:n.isEnd&&o.end.valueOf()===e.end.valueOf()})}function rpt(n,t){if(!n.length)return[];var i=upt(t);return n.map(function(n){return{seg:n,isVisible:!0,isAbsolute:!0,absoluteTop:i[n.eventRange.instance.instanceId],marginTop:0}})}function upt(n){for(var e,t,r,u,o={},i=0,f=n;i<f.length;i++)for(e=f[i],t=0,r=e;t<r.length;t++)u=r[t],o[u.seg.eventRange.instance.instanceId]=u.absoluteTop;return n}function fpt(n){return n.eventRange.def.allDay}function oy(n,t){var i=new iv(n.renderRange,t);return new rv(i,/year|month|week/.test(n.currentRangeUnit))}function gtt(n){var i=["fc-timegrid-slot","fc-timegrid-slot-label",n.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor",];return t(lt.Consumer,null,function(r){if(!n.isLabeled)return t("td",{className:i.join(" "),"data-time":n.isoTimeStr});var f=r.dateEnv,u=r.options,e=r.viewApi,o=u.slotLabelFormat==null?spt:Array.isArray(u.slotLabelFormat)?y(u.slotLabelFormat[0]):y(u.slotLabelFormat),s={level:0,time:n.time,date:f.toDate(n.date),view:e,text:f.format(n.date,o)};return t(b,{hookProps:s,classNames:u.slotLabelClassNames,content:u.slotLabelContent,defaultContent:hpt,didMount:u.slotLabelDidMount,willUnmount:u.slotLabelWillUnmount},function(r,u,f,e){return t("td",{ref:r,className:i.concat(u).join(" "),"data-time":n.isoTimeStr},t("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},t("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:f},e)))})})}function hpt(n){return n.text}function vpt(n){return n.text}function wpt(n,t){return t.map(function(t){return n[t.key]})}function gf(n,t){for(var r=[],i=0;i<t;i+=1)r.push([]);if(n)for(i=0;i<n.length;i+=1)r[n[i].col].push(n[i]);return r}function tit(n,t){var r=[],i,u,f,e;if(n){for(i=0;i<t;i+=1)r[i]={affectedInstances:n.affectedInstances,isEvent:n.isEvent,segs:[]};for(u=0,f=n.segs;u<f.length;u++)e=f[u],r[e.col].segs.push(e)}else for(i=0;i<t;i+=1)r[i]=null;return r}function bpt(n){return n.shortText}function kpt(n,t,i){var r=new af,f;t!=null&&(r.strictOrder=t);i!=null&&(r.maxStackCnt=i);var e=r.addSegs(n),o=ya(e),u=dpt(r);return u=iwt(u,1),f=rwt(u),{segRects:f,hiddenGroups:o}}function dpt(n){var t=n.entriesByLevel,r=hy(function(n,t){return n+":"+t},function(u,f){var s=twt(n,u,f),e=rit(s,r),o=t[u][f];return[i(i({},o),{nextLevelNodes:e[0]}),o.thickness+e[1],]});return rit(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,r)[0]}function rit(n,t){if(!n)return[[],0];for(var u=n.level,f=n.lateralStart,e=n.lateralEnd,r=f,i=[];r<e;)i.push(t(u,r)),r+=1;return i.sort(gpt),[i.map(nwt),i[0][1],]}function gpt(n,t){return t[1]-n[1]}function nwt(n){return n[0]}function twt(n,t,i){for(var f=n.levelCoords,s=n.entriesByLevel,e=s[t][i],v=f[t]+e.thickness,h=f.length,r=t;r<h&&f[r]<v;r+=1);for(;r<h;r+=1){for(var c=s[r],l=void 0,a=wa(c,e.span.start,va),o=a[0]+a[1],u=o;(l=c[u])&&l.span.start<e.span.end;)u+=1;if(o<u)return{level:r,lateralStart:o,lateralEnd:u}}return null}function iwt(n,t){var r=hy(function(n){return ki(n)},function(n,u,f){var v=n.nextLevelNodes,y=n.thickness,p=y+f,w=y/p,e,h=[],s,c,l,o,a;if(v.length)for(s=0,c=v;s<c.length;s++)l=c[s],e===undefined?(o=r(l,u,p),e=o[0],h.push(o[1])):(o=r(l,e,0),h.push(o[1]));else e=t;return a=(e-u)*w,[e-a,i(i({},n),{thickness:a,nextLevelNodes:h})]});return n.map(function(n){return r(n,0,0)[1]})}function rwt(n){function r(n,t,i){for(var o,r=0,f=0,e=n;f<e.length;f++)o=e[f],r=Math.max(u(o,t,i),r);return r}var t=[],u=hy(function(n){return ki(n)},function(n,u,f){var e=i(i({},n),{levelCoord:u,stackDepth:f,stackForward:0});return t.push(e),e.stackForward=r(n.nextLevelNodes,u+n.thickness,f+1)+1});return r(n,0,0),t}function hy(n,t){var i={};return function(){for(var u,f=[],r=0;r<arguments.length;r++)f[r]=arguments[r];return u=n.apply(void 0,f),u in i?i[u]:i[u]=t.apply(void 0,f)}}function uit(n,t,i,r){var f,u;if(i===void 0&&(i=null),r===void 0&&(r=0),f=[],i)for(u=0;u<n.length;u+=1){var e=n[u],o=i.computeDateTop(e.start,t),s=Math.max(o+(r||0),i.computeDateTop(e.end,t));f.push({start:Math.round(o),end:Math.round(s)})}return f}function uwt(n,t,i,r){for(var o,f,h,c,e,l,p,a=[],v=[],u=0;u<n.length;u+=1)o=t[u],o?a.push({index:u,thickness:1,span:o}):v.push(n[u]);var y=kpt(a,i,r),w=y.segRects,b=y.hiddenGroups,s=[];for(f=0,h=w;f<h.length;f++)c=h[f],s.push({seg:n[c.index],rect:c});for(e=0,l=v;e<l.length;e++)p=l[e],s.push({seg:p,rect:null});return{segPlacements:s,hiddenGroups:b}}function eit(n,r){var e=r.todayRange,o=r.nowDate,s=r.eventSelection,u=r.eventDrag,f=r.eventResize,h=(u?u.affectedInstances:null)||(f?f.affectedInstances:null)||{};return t(c,null,n.map(function(n){var r=n.eventRange.instance.instanceId;return t("div",{key:r,style:{visibility:h[r]?"hidden":""}},t(fit,i({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===s,isShort:!1},st(n,e,o))))}))}function cy(n){return n?{top:n.start,bottom:-n.end}:{top:"",bottom:""}}function swt(n,t){return n.map(function(n){return t[n.index]})}function hwt(n,t){return t.map(function(t){return n[t.key]})}function cwt(n,t){var i=t||n,r=ti(n,i);return r===null&&(i=n,r=1),{snapDuration:i,snapsPerSlot:r}}function ay(n,t,i){for(var u,f=[],r=0,e=n.headerDates;r<e.length;r++)u=e[r],f.push({start:i.add(u,t.slotMinTime),end:i.add(u,t.slotMaxTime)});return f}function yy(n,t,i,r,u){for(var l=new Date(0),f=n,o=s(0),a=i||lwt(r),h=[],e,c;tt(f)<tt(t);)e=u.add(l,f),c=ti(o,a)!==null,h.push({date:e,time:f,key:e.toISOString(),isoTimeStr:fk(e),isLabeled:c}),f=ve(f,r),o=ve(o,r);return h}function lwt(n){for(var i,r,t=vy.length-1;t>=0;t-=1)if(i=s(vy[t]),r=ti(i,n),r!==null&&r>1)return i;return n}function wy(n,t){var i=new iv(n.renderRange,t);return new rv(i,!1)}function ywt(n){var r=n.navLinkData?{"data-navlink":n.navLinkData,tabIndex:0}:{};return t(c,null,n.text&&t("a",i({className:"fc-list-day-text"},r),n.text),n.sideText&&t("a",i({className:"fc-list-day-side-text"},r),n.sideText))}function pwt(n){var r=n.event,u=r.url,f=u?{href:u}:{};return t("a",i({},f),r.title)}function wwt(n,i,r){var u=r.options,s;if(u.displayEventTime!==!1){var h=n.eventRange.def,o=n.eventRange.instance,e=!1,f=void 0;return(h.allDay?e=!0:dk(n.eventRange.range)?n.isStart?f=gr(n,i,r,null,null,o.range.start,n.end):n.isEnd?f=gr(n,i,r,null,null,n.start,o.range.end):e=!0:f=gr(n,i,r),e)?(s={text:r.options.allDayText,view:r.viewApi},t(b,{hookProps:s,classNames:u.allDayClassNames,content:u.allDayContent,defaultContent:bwt,didMount:u.allDayDidMount,willUnmount:u.allDayWillUnmount},function(n,i,r,u){return t("td",{className:["fc-list-event-time"].concat(i).join(" "),ref:n},u)})):t("td",{className:"fc-list-event-time"},f)}return null}function bwt(n){return n.text}function kwt(n){return n.text}function dwt(n){for(var t=a(n.renderRange.start),u=n.renderRange.end,i=[],r=[];t<u;)i.push(t),r.push({start:t,end:p(t,1)}),t=p(t,1);return{dayDates:i,dayRanges:r}}function gwt(n){for(var r=[],i,t=0;t<n.length;t+=1)i=n[t],(r[i.dayIndex]||(r[i.dayIndex]=[])).push(i);return r}function ait(n){return n===!1?null:y(n)}function fbt(n){var t;return/^[^/]+@([^/.]+\.)*(google|googlemail|gmail)\.com$/.test(n)?n:(t=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(n))||(t=/^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(n))?decodeURIComponent(t[1]):null}function ebt(n){var t=n.googleCalendarApiBase;return t||(t=rbt),t+"/"+encodeURIComponent(n.googleCalendarId)+"/events"}function obt(n,t,r,u){var f,e,o;return u.canComputeOffset?(e=u.formatIso(n.start),o=u.formatIso(n.end)):(e=p(n.start,-1).toISOString(),o=p(n.end,1).toISOString()),f=i(i({},r||{}),{key:t,timeMin:e,timeMax:o,singleEvents:!0,maxResults:9999}),u.timeZone!=="local"&&(f.timeZone=u.timeZone),f}function sbt(n,t){return n.map(function(n){return hbt(n,t)})}function hbt(n,t){var i=n.htmlLink||null;return i&&t&&(i=cbt(i,"ctz="+t)),{id:n.id,title:n.summary,start:n.start.dateTime||n.start.date,end:n.end.dateTime||n.end.date,url:i,location:n.location,description:n.description,attachments:n.attachments||[],extendedProps:(n.extendedProperties||{}).shared||{}}}function cbt(n,t){return n.replace(/(\?.*?)?(#|$)/,function(n,i,r){return(i?i+"&":"?")+t+r})}function wbt(n){var i=n.getBoundingClientRect(),t=ua(n);return{left:i.left+t.borderLeft+t.scrollbarLeft-wit(n),top:i.top+t.borderTop-n.scrollTop}}function wit(n){var t=n.scrollLeft,i=window.getComputedStyle(n);if(i.direction==="rtl")switch(dit()){case"negative":t*=-1;case"reverse":t=n.scrollWidth-t-n.clientWidth}return t}function bit(n,t){var i=window.getComputedStyle(n);if(i.direction==="rtl")switch(dit()){case"reverse":t=n.scrollWidth-t;break;case"negative":t=-(n.scrollWidth-t)}n.scrollLeft=t}function dit(){return kit||(kit=bbt())}function bbt(){var n=document.createElement("div"),t;return n.style.position="absolute",n.style.top="-1000px",n.style.width="1px",n.style.height="1px",n.style.overflow="scroll",n.style.direction="rtl",n.style.fontSize="100px",n.innerHTML="A",document.body.appendChild(n),n.scrollLeft>0?t="positive":(n.scrollLeft=1,t=n.scrollLeft>0?"reverse":"negative"),vr(n),t}function nkt(n,t,i,r,u){n.forEach(function(n,f){var h=t[f],c=h.naturalBound,e=h.parentBound,l=e.right-e.left,a=e.bottom-e.bottom,o,s;l>r||a>u?(o=i[f].left-c.left,s=i[f].top-c.top):(o="",s="");ci(n,{position:"relative",left:o,right:-o,top:s})})}function tkt(n,t,i){n.forEach(function(n,r){var u=t[r],o=u.textAlign,s=u.elWidth,e=u.parentBound,h=e.right-e.left,f;f=o==="center"&&h>i?(i-s)/2:"";ci(n,{left:f,right:f,top:0})})}function ikt(){var n=document.createElement("div"),t;return(n.className="fc-sticky",document.body.appendChild(n),t=window.getComputedStyle(n).position,vr(n),t.indexOf("sticky")!==-1)?t:null}function fkt(n){for(var u,i=0,t=0,r=n;t<r.length;t++)u=r[t],i+=u;return i}function git(n){var t=dt(n,".fc-scrollgrid-sync-inner").map(ekt);return t.length?Math.max.apply(Math,t):0}function ekt(n){return n.offsetHeight}function okt(n,i){var r=n.map(function(n,r){var u=n.width;return u==="shrink"&&(u=n.totalColWidth+av(i[r])+1),t("col",{style:{width:u}})});return t.apply(void 0,l(["colgroup",{}],r))}function skt(n){var t=nrt(n.cols,"width"),i=nrt(n.cols,"minWidth"),r=vv(n.cols),u=n.width!=="shrink"&&Boolean(t||i||r);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:i,allowXScrolling:u,cols:n.cols,width:n.width}}function nrt(n,t){for(var r,u,f=0,i=0,e=n;i<e.length;i++)r=e[i],u=r[t],typeof u=="number"&&(f+=u*(r.span||1));return f}function hkt(n,t){return ae(n,t,trt)}function irt(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return new ukt(n,i)}function ds(n){n.destroy()}function ckt(n,t){return new gbt(n,t)}function rrt(n){n.destroy()}function akt(){window.addEventListener("beforeprint",frt);window.addEventListener("afterprint",ert)}function vkt(){window.removeEventListener("beforeprint",frt);window.removeEventListener("afterprint",ert)}function frt(){for(var u,n=bkt(),i=kkt(n),t=0,r=eu;t<r.length;t++)u=r[t],u.emitter.trigger("_beforeprint");cf();dkt(n,i);gs.push(function(){return gkt(n,i)});gs.push(ykt())}function ert(){for(var i,n=0,t=eu;n<t.length;n++)i=t[n],i.emitter.trigger("_afterprint");for(cf();gs.length;)gs.shift()()}function ykt(){var n=dt(document.body,".fc-scrollgrid");return n.forEach(pkt),function(){return n.forEach(wkt)}}function pkt(n){var t=n.getBoundingClientRect().width;(!n.classList.contains("fc-scrollgrid-collapsible")||t<ot.COLLAPSIBLE_WIDTH_THRESHOLD)&&(n.style.width=t+"px")}function wkt(n){n.style.width=""}function bkt(){return dt(document.body,".fc-scroller-harness > .fc-scroller")}function kkt(n){return n.map(function(n){var t=window.getComputedStyle(n);return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}})}function dkt(n,t){n.forEach(function(n,i){n.style.overflowX="visible";n.style.overflowY="visible";n.style.marginBottom="";n.style.left=-t[i].scrollLeft+"px"})}function gkt(n,t){n.forEach(function(n,i){var r=t[i];n.style.overflowX=r.overflowX;n.style.overflowY=r.overflowY;n.style.marginBottom=r.marginBottom;n.style.left="";n.scrollLeft=r.scrollLeft;n.scrollTop=r.scrollTop})}function ky(n,t,i,r){var u={labelInterval:i.slotLabelInterval,slotDuration:i.slotDuration},e,g,v,w,b,c,l,k,f;rdt(u,n,t);srt(u,n,t);udt(u,n,t);e=i.slotLabelFormat;g=Array.isArray(e)?e:e!=null?[e]:fdt(u,n,t,i);u.headerFormats=g.map(function(n){return y(n)});u.isTimeScale=Boolean(u.slotDuration.milliseconds);v=null;u.isTimeScale||(w=ii(u.slotDuration).unit,/year|month|week/.test(w)&&(v=w));u.largeUnit=v;u.emphasizeWeeks=tl(u.slotDuration)===1&&ou("weeks",n,t)>=2&&!i.businessHours;b=i.snapDuration;b&&(c=s(b),l=ti(u.slotDuration,c));l==null&&(c=u.slotDuration,l=1);u.snapDuration=c;u.snapsPerSlot=l;var rt=tt(n.slotMaxTime)-tt(n.slotMinTime),o=ort(n.renderRange.start,u,t),h=ort(n.renderRange.end,u,t);for(u.isTimeScale&&(o=t.add(o,n.slotMinTime),h=t.add(p(h,-1),n.slotMaxTime)),u.timeWindowMs=rt,u.normalizedRange={start:o,end:h},k=[],f=o;f<h;)ih(f,u,n,r)&&k.push(f),f=t.add(f,u.slotDuration);u.slotDates=k;var a=-1,nt=0,d=[],it=[];for(f=o;f<h;)ih(f,u,n,r)?(a+=1,d.push(a),it.push(nt)):d.push(a+.5),f=t.add(f,u.snapDuration),nt+=1;return u.snapDiffToIndex=d,u.snapIndexToDiff=it,u.snapCnt=a+1,u.slotCnt=u.snapCnt/u.snapsPerSlot,u.isWeekStarts=edt(u,t),u.cellRows=odt(u,t),u.slotsPerLabel=ti(u.labelInterval,u.slotDuration),u}function ort(n,t,i){var r=n;return t.isTimeScale||(r=a(r),t.largeUnit&&(r=i.startOf(r,t.largeUnit))),r}function idt(n,t,i){if(!t.isTimeScale&&(n=tf(n),t.largeUnit)){var r=n;n={start:i.startOf(n.start,t.largeUnit),end:i.startOf(n.end,t.largeUnit)};(n.end.valueOf()!==r.end.valueOf()||n.end<=n.start)&&(n={start:n.start,end:i.add(n.end,t.slotDuration)})}return n}function ih(n,t,i,r){if(r.isHiddenDay(n))return!1;if(t.isTimeScale){var f=a(n),e=n.valueOf()-f.valueOf(),u=e-tt(i.slotMinTime);return u=(u%864e5+864e5)%864e5,u<t.timeWindowMs}return!0}function rdt(n,t,i){var r=t.currentRange,f,e,u;n.labelInterval&&(f=i.countDurationsBetween(r.start,r.end,n.labelInterval),f>ot.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),n.labelInterval=null));n.slotDuration&&(e=i.countDurationsBetween(r.start,r.end,n.slotDuration),e>ot.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),n.slotDuration=null));n.labelInterval&&n.slotDuration&&(u=ti(n.labelInterval,n.slotDuration),(u===null||u<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),n.slotDuration=null))}function srt(n,t,i){var a=t.currentRange,r=n.labelInterval,u,f,o,h,c,e,l,v;if(!r){if(u=void 0,n.slotDuration){for(f=0,o=th;f<o.length;f++)if(u=o[f],h=s(u),c=ti(h,n.slotDuration),c!==null&&c<=nh){r=h;break}r||(r=n.slotDuration)}else for(e=0,l=th;e<l.length;e++)if(u=l[e],r=s(u),v=i.countDurationsBetween(a.start,a.end,r),v>=ndt)break;n.labelInterval=r}return r}function udt(n,t,i){var h=t.currentRange,r=n.slotDuration,f,u,e,l;if(!r){for(f=srt(n,t,i),u=0,e=th;u<e.length;u++){var a=e[u],c=s(a),o=ti(f,c);if(o!==null&&o>1&&o<=nh){r=c;break}}r&&(l=i.countDurationsBetween(h.start,h.end,r),l>tdt&&(r=null));r||(r=f);n.slotDuration=r}return r}function fdt(n,t,i,r){var f,e,o=n.labelInterval,s=ii(o).unit,h=r.weekNumbers,u=f=e=null;s!=="week"||h||(s="day");switch(s){case"year":u={year:"numeric"};break;case"month":ou("years",t,i)>1&&(u={year:"numeric"});f={month:"short"};break;case"week":ou("years",t,i)>1&&(u={year:"numeric"});f={week:"narrow"};break;case"day":ou("years",t,i)>1?u={year:"numeric",month:"long"}:ou("months",t,i)>1&&(u={month:"long"});h&&(f={week:"short"});e={weekday:"narrow",day:"numeric"};break;case"hour":h&&(u={week:"short"});ou("days",t,i)>1&&(f={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0});e={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":rk(o)/60>=nh?(u={hour:"numeric",meridiem:"short"},f=function(n){return":"+yt(n.date.minute,2)}):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":uk(o)/60>=nh?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},f=function(n){return":"+yt(n.date.second,2)}):u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};f=function(n){return"."+yt(n.millisecond,3)}}return[].concat(u||[],f||[],e||[])}function ou(n,t,i){var r=t.currentRange,u=null;return n==="years"?u=i.diffWholeYears(r.start,r.end):n==="months"?u=i.diffWholeMonths(r.start,r.end):n==="weeks"?u=i.diffWholeMonths(r.start,r.end):n==="days"&&(u=yr(r.start,r.end)),u||0}function edt(n,t){for(var o=n.slotDates,s=n.emphasizeWeeks,i=null,u=[],r=0,f=o;r<f.length;r++){var h=f[r],e=t.computeWeekNumber(h),c=s&&i!==null&&i!==e;i=e;u.push(c)}return u}function odt(n,t){for(var u,v,i,o,c=n.slotDates,r=n.headerFormats,l=r.map(function(){return[]}),a=tl(n.slotDuration),b=a===7?"week":a===1?"day":null,k=r.map(function(n){return n.getLargestUnit?n.getLargestUnit():null}),s=0;s<c.length;s+=1)for(u=c[s],v=n.isWeekStarts[s],i=0;i<r.length;i+=1){var y=r[i],h=l[i],f=h[h.length-1],p=i===r.length-1,d=r.length>1&&!p,e=null,w=k[i]||(p?b:null);d?(o=t.format(u,y),f&&f.text===o?f.colspan+=1:e=hrt(u,o,w)):!f||li(t.countDurationsBetween(n.normalizedRange.start,u,n.labelInterval))?(o=t.format(u,y),e=hrt(u,o,w)):f.colspan+=1;e&&(e.weekStart=v,h.push(e))}return l}function hrt(n,t,i){return{date:n,text:t,rowUnit:i,colspan:1,isWeekStart:!1}}function sdt(n){return n.text}function hdt(n){return{level:n.level,date:n.dateEnv.toDate(n.dateMarker),view:n.viewApi,text:n.text}}function dy(n,t,i){var u=i.countDurationsBetween(t.normalizedRange.start,n,t.snapDuration),f,r;return u<0?0:u>=t.snapDiffToIndex.length?t.snapCnt:(f=Math.floor(u),r=t.snapDiffToIndex[f],li(r)?r+=u-f:r=Math.ceil(r),r)}function rh(n,t){return n===null?{left:"",right:""}:t?{right:n,left:""}:{left:n,right:""}}function uh(n,t){return n?t?{right:n.start,left:-n.end}:{left:n.start,right:-n.end}:{left:"",right:""}}function vdt(n,t){return t.map(function(t){var i=t.toISOString();return n[i]})}function vrt(n,t,i){var o=[],r,u;if(i)for(r=0,u=n;r<u.length;r++){var h=u[r],s=i.rangeToCoords(h),f=Math.round(s.start),e=Math.round(s.end);e-f<t&&(e=f+t);o.push({start:f,end:e})}return o}function ydt(n,t,i,r,u,f){for(var o,c,w,s,l,b=[],k=[],e=0;e<n.length;e+=1){var d=n[e],ft=d.eventRange.instance.instanceId,h=i[ft],a=t[e];h&&a?b.push({index:e,span:a,thickness:h}):k.push({seg:d,hcoords:a,top:null})}o=new af;u!=null&&(o.strictOrder=u);f!=null&&(o.maxStackCnt=f);var g=o.addSegs(b),et=g.map(function(t){return{seg:n[t.index],hcoords:t.span,top:0}}),v=ya(g),nt=[],tt=[],it=function(t){return n[t.index]};for(e=0;e<v.length;e+=1){var y=v[e],rt=y.entries.map(it),h=r[wu(df(rt))];h!=null?nt.push({index:n.length+e,thickness:h,span:y.span}):tt.push({seg:rt,hcoords:y.span,top:null})}o.maxStackCnt=-1;o.addSegs(nt);var ot=o.toRects(),ut=[],p=0;for(c=0,w=ot;c<w.length;c++)s=w[c],l=s.index,ut.push({seg:l<n.length?n[l]:v[l-n.length].entries.map(it),hcoords:s.span,top:s.levelCoord}),p=Math.max(p,s.levelCoord+s.thickness);return[ut.concat(k,et,tt),p,]}function bdt(n,t,i){if(!n.length||!t)return[];var r=kdt(i);return n.map(function(n){return{seg:n,hcoords:t.rangeToCoords(n),top:r[n.eventRange.instance.instanceId]}})}function kdt(n){for(var i,r,u={},t=0,f=n;t<f.length;t++)i=f[t],r=i.seg,Array.isArray(r)||(u[r.eventRange.instance.instanceId]=i.top);return u}function up(n,t){return[{span:n.slotCnt,minWidth:t||1}]}function ddt(n,t,i){var r=t.dateSpan.resourceId,u=i.dateSpan.resourceId;r&&u&&r!==u&&(n.resourceMutation={matchResourceId:r,setResourceId:u})}function gdt(n,t,i){var u=t.resourceMutation,f,r;u&&wrt(n,i)&&(f=n.resourceIds.indexOf(u.matchResourceId),f!==-1&&(r=n.resourceIds.slice(),r.splice(f,1),r.indexOf(u.setResourceId)===-1&&r.push(u.setResourceId),n.resourceIds=r))}function wrt(n,t){var i=n.resourceEditable,r;return i==null&&(r=n.sourceId&&t.getCurrentData().eventSources[n.sourceId],r&&(i=r.extendedProps.resourceEditable),i==null&&(i=t.options.eventResourceEditable,i==null&&(i=t.options.editable))),i}function ngt(n,t){var i=n.resourceMutation,r;return i?(r=t.calendarApi,{oldResource:r.getResourceById(i.matchResourceId),newResource:r.getResourceById(i.setResourceId)}):{oldResource:null,newResource:null}}function tgt(n,t,r,u){if(t){var e=igt(r.instances,u),f=rgt(e,r.defs);return i(f,ugt(f,n)),pt(n,function(n,t){return f[t]})}return n}function igt(n,t){return pt(n,function(n){return rf(n.range,t)})}function rgt(n,t){var u={},f,e,i,r,o;for(f in n)for(e=n[f],i=0,r=t[e.defId].resourceIds;i<r.length;i++)o=r[i],u[o]=!0;return u}function ugt(n,t){var u={},i,r;for(i in n)for(r=void 0;r=t[i];)if(i=r.parentId,i)u[i]=!0;else break;return u}function fgt(n,t,i,r){if(!n){var u=r.getCurrentData(),f=u.viewSpecs[u.currentViewType];if(f.optionDefaults.needsResourceData&&wrt(t,r))return!0}return n}function egt(n){return w(n,function(n){return n.ui})}function ogt(n,t,i){return w(n,function(n,r){return r?sgt(n,t[r],i):n})}function sgt(n,t,i){for(var f,r=[],u=0,e=t.resourceIds;u<e.length;u++)f=e[u],i[f]&&r.unshift(i[f]);return r.unshift(n),no(r)}function ep(n){eh.push(n)}function drt(n){return eh[n]}function hgt(){return eh}function cgt(n){var t,i;if(typeof n=="string"?t={url:n}:typeof n=="function"||Array.isArray(n)?t={resources:n}:typeof n=="object"&&n&&(t=n),t){var r=nr(t,grt),u=r.refined,f=r.extra;if(agt(f),i=lgt(u),i)return{_raw:n,sourceId:vt(),sourceDefId:i.sourceDefId,meta:i.meta,publicId:u.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function lgt(n){for(var u,i,r=hgt(),t=r.length-1;t>=0;t-=1)if(u=r[t],i=u.parseMeta(n),i)return{meta:i,sourceDefId:t};return null}function agt(n){for(var t in n)console.warn("Unknown resource prop '"+t+"'")}function vgt(n,t,i){var r=i.options,u=i.dateProfile;if(!n||!t)return nut(r.initialResources||r.resources,u.activeRange,r.refetchResourcesOnNavigate,i);switch(t.type){case"RESET_RESOURCE_SOURCE":return nut(t.resourceSourceInput,u.activeRange,r.refetchResourcesOnNavigate,i);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return ygt(n,u.activeRange,r.refetchResourcesOnNavigate,i);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return wgt(n,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return op(n,u.activeRange,i);default:return n}}function nut(n,t,i,r){if(n){var u=cgt(n);return op(u,i?t:null,r)}return null}function ygt(n,t,i,r){return i&&!pgt(n)&&(!n.fetchRange||!hl(n.fetchRange,t))?op(n,t,r):n}function pgt(n){return Boolean(drt(n.sourceDefId).ignoreRange)}function op(n,t,r){var f=drt(n.sourceDefId),u=vt();return f.fetch({resourceSource:n,range:t,context:r},function(n){r.dispatch({type:"RECEIVE_RESOURCES",fetchId:u,fetchRange:t,rawResources:n.rawResources})},function(n){r.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:u,fetchRange:t,error:n})}),i(i({},n),{isFetching:!0,latestFetchId:u})}function wgt(n,t,r){return t===n.latestFetchId?i(i({},n),{isFetching:!1,fetchRange:r}):n}function hp(n,t,r,u){var o,s,c;t===void 0&&(t="");var h=nr(n,tut),f=h.refined,l=h.extra,e={id:f.id||sp+vt(),parentId:f.parentId||t,title:f.title||"",businessHours:f.businessHours?kl(f.businessHours,u):null,ui:dr({editable:f.eventEditable,startEditable:f.eventStartEditable,durationEditable:f.eventDurationEditable,constraint:f.eventConstraint,overlap:f.eventOverlap,allow:f.eventAllow,classNames:f.eventClassNames,backgroundColor:f.eventBackgroundColor,borderColor:f.eventBorderColor,textColor:f.eventTextColor,color:f.eventColor},u),extendedProps:i(i({},l),f.extendedProps)};if(Object.freeze(e.ui.classNames),Object.freeze(e.extendedProps),!r[e.id]&&(r[e.id]=e,f.children))for(o=0,s=f.children;o<s.length;o++)c=s[o],hp(c,e.id,r,u);return e}function cp(n){return n.indexOf(sp)===0?"":n}function bgt(n,t,i,r){if(!n||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return kgt(n,t.rawResources,t.fetchId,i,r);case"ADD_RESOURCE":return dgt(n,t.resourceHash);case"REMOVE_RESOURCE":return ggt(n,t.resourceId);case"SET_RESOURCE_PROP":return nnt(n,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return tnt(n,t.resourceId,t.propName,t.propValue);default:return n}}function kgt(n,t,i,r,u){var e,f,o,s;if(r.latestFetchId===i){for(e={},f=0,o=t;f<o.length;f++)s=o[f],hp(s,"",e,u);return e}return n}function dgt(n,t){return i(i({},n),t)}function ggt(n,t){var r=i({},n),u;delete r[t];for(u in r)r[u].parentId===t&&(r[u]=i(i({},r[u]),{parentId:""}));return r}function nnt(n,t,r,u){var f,e,o=n[t];return o?i(i({},n),(f={},f[t]=i(i({},o),(e={},e[r]=u,e)),f)):n}function tnt(n,t,r,u){var f,e,o=n[t];return o?i(i({},n),(f={},f[t]=i(i({},o),{extendedProps:i(i({},o.extendedProps),(e={},e[r]=u,e))}),f)):n}function int(n,t){var r;if(!n||!t)return{};switch(t.type){case"SET_RESOURCE_ENTITY_EXPANDED":return i(i({},n),(r={},r[t.id]=t.isExpanded,r));default:return n}}function rnt(n,t,i){var r=vgt(n&&n.resourceSource,t,i),u=bgt(n&&n.resourceStore,t,r,i),f=int(n&&n.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:u,resourceEntityExpansions:f}}function unt(n){return{resourceIds:fnt(n.resourceIds).concat(n.resourceId?[n.resourceId]:[]),resourceEditable:n.resourceEditable}}function fnt(n){return(n||[]).map(function(n){return String(n)})}function ent(n,t){var i=n.dateSpan.resourceId,r=t.dateSpan.resourceId;return i&&r?{resourceId:i}:null}function ont(n,t){var i=[];for(var r in n)i.push(new ft(t,n[r]));return i}function snt(n,t){return n.resourceId?{resource:t.calendarApi.getResourceById(n.resourceId)}:{}}function hnt(n,t){return n.resourceId?{resource:t.calendarApi.getResourceById(n.resourceId)}:{}}function cnt(n,t){var e=new oh,u=e.splitProps(i(i({},n),{resourceStore:t.getCurrentData().resourceStore})),f,r;for(f in u)if(r=u[f],f&&u[""]&&(r=i(i({},r),{eventStore:bu(u[""].eventStore,r.eventStore),eventUiBases:i(i({},u[""].eventUiBases),r.eventUiBases)})),!fv(r,t,{resourceId:f},lnt.bind(null,f)))return!1;return!0}function lnt(n,t){return i(i({},t),{constraints:ant(n,t.constraints)})}function ant(n,t){return t.map(function(t){var i=t.defs,u,r;if(i)for(u in i)if(r=i[u].resourceIds,r.length&&r.indexOf(n)===-1)return!1;return t})}function vnt(n){return n.resourceId?{resourceId:n.resourceId}:{}}function ynt(n,t){var i=t.getCurrentData().resourceSource._raw;i!==n&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:n})}function pnt(n,t){var i=t.emitter;i.hasHandlers("resourcesSet")&&i.trigger("resourcesSet",ont(n,t))}function wnt(n,t,r){var f=r.dateEnv,h=r.options,e,o,s,c,u={};return t&&(e=n.startParam,e==null&&(e=h.startParam),o=n.endParam,o==null&&(o=h.endParam),s=n.timeZoneParam,s==null&&(s=h.timeZoneParam),u[e]=f.formatIso(t.start),u[o]=f.formatIso(t.end),f.timeZone!=="local"&&(u[s]=f.timeZone)),c=typeof n.extraParams=="function"?n.extraParams():n.extraParams||{},i(u,c),u}function eut(n){return t(lt.Consumer,null,function(i){var r=i.options,u={resource:new ft(i,n.resource),date:n.date?i.dateEnv.toDate(n.date):null,view:i.viewApi},f={"data-resource-id":n.resource.id,"data-date":n.date?br(n.date):undefined};return t(b,{hookProps:u,classNames:r.resourceLabelClassNames,content:r.resourceLabelContent,defaultContent:bnt,didMount:r.resourceLabelDidMount,willUnmount:r.resourceLabelWillUnmount},function(t,i,r,u){return n.children(t,i,f,r,u)})})}function bnt(n){return n.resource.title||n.resource.id}function knt(n,t,i){return n||da(t,i)}function wp(n,t){return bp(n,[],t,!1,{},!0).map(function(n){return n.resource})}function bp(n,t,i,r,u,f){var o=gnt(n,r?-1:1,t,i),e=[];return ch(o,e,r,[],0,u,f),e}function ch(n,t,i,r,u,f,e){for(var o,c,a,y,v,p,s,h,l=0;l<n.length;l+=1)o=n[l],c=o.group,c?i?(a=t.length,y=r.length,ch(o.children,t,i,r.concat(0),u,f,e),a<t.length&&(v=t[a],p=v.rowSpans=v.rowSpans.slice(),p[y]=t.length-a)):(s=c.spec.field+":"+c.value,h=f[s]!=null?f[s]:e,t.push({id:s,group:c,isExpanded:h}),h&&ch(o.children,t,i,r,u+1,f,e)):o.resource&&(s=o.resource.id,h=f[s]!=null?f[s]:e,t.push({id:s,rowSpans:r,depth:u,isExpanded:h,hasChildren:Boolean(o.children.length),resource:o.resource,resourceFields:o.resourceFields}),h&&ch(o.children,t,i,r,u+1,f,e))}function gnt(n,t,i,r){var f=nti(n,r),e=[],o,u;for(o in f)u=f[o],u.resource.parentId||sut(u,e,i,0,t,r);return e}function nti(n,t){var u={},i,r,f;for(i in n)r=n[i],u[i]={resource:r,resourceFields:kp(r),children:[]};for(i in n)r=n[i],r.parentId&&(f=u[r.parentId],f&&hut(u[i],f.children,t));return u}function sut(n,t,i,r,u,f){if(i.length&&(u===-1||r<=u)){var e=tti(n,t,i[0]);sut(n,e.children,i.slice(1),r+1,u,f)}else hut(n,t,f)}function tti(n,t,i){var e=n.resourceFields[i.field],f,r,o,u;if(i.order){for(r=0;r<t.length;r+=1)if(u=t[r],u.group)if(o=vc(e,u.group.value)*i.order,o===0){f=u;break}else if(o<0)break}else for(r=0;r<t.length;r+=1)if(u=t[r],u.group&&e===u.group.value){f=u;break}return f||(f={group:{value:e,spec:i},children:[]},t.splice(r,0,f)),f}function hut(n,t,i){for(var u,r=0;r<t.length;r+=1)if(u=ac(t[r].resourceFields,n.resourceFields,i),u>0)break;t.splice(r,0,n)}function kp(n){var t=i(i(i({},n.extendedProps),n.ui),n);return delete t.ui,delete t.extendedProps,t}function cut(n,t){return n.spec===t.spec&&n.value===t.value}function rti(n,t,i,r,u){var f=oy(n,t);return r?new vp(f,i,u):new ap(f,i,u)}function eti(n,t,i,r,u){var f=wy(n,t);return r?new vp(f,i,u):new ap(f,i,u)}function put(n){for(var i,e=n.depth,u=n.hasChildren,o=n.isExpanded,s=n.onExpanderClick,r=[],f=0;f<e;f+=1)r.push(t("span",{className:"fc-icon"}));return i=["fc-icon"],u&&(o?i.push("fc-icon-minus-square"):i.push("fc-icon-plus-square")),r.push(t("span",{className:"fc-datagrid-expander"+(u?"":" fc-datagrid-expander-placeholder"),onClick:s},t("span",{className:i.join(" ")}))),t.apply(void 0,l([c,{}],r))}function oti(n){return{resource:new ft(n.context,n.resource),fieldValue:n.fieldValue,view:n.context.viewApi}}function sti(n){return n.fieldValue||t(c,null," ")}function hti(n){return n.groupValue||t(c,null," ")}function cti(n){return n.groupValue||t(c,null," ")}function yti(n){return{resource:new ft(n.context,n.resource)}}function kti(n,t){return t.map(function(t){return n[t.id]})}function dti(n){for(var u,r,t=0,i=n;t<i.length;t++)if(u=i[t],r=u.resource,r&&r.businessHours)return!0;return!1}function nii(n){for(var i={},t=0;t<n.length;t+=1)i[n[t].id]=t;return i}function tii(n,t,i){return i===void 0&&(i=""),n.map(function(n,r){return{className:n.isMain?"fc-main-col":"",width:t[r]||n.width||i}})}function iii(n){for(var i,t=0,r=n;t<r.length;t++)if((i=r[t],i.group)||i.resource&&i.hasChildren)return!0;return!1}function rii(n){var c=n.resourceAreaColumns||[],d=null,e,a,r,t,v,nt,y,o,p,s,w,h,b,k;c.length?n.resourceAreaHeaderContent&&(d={headerClassNames:n.resourceAreaHeaderClassNames,headerContent:n.resourceAreaHeaderContent,headerDidMount:n.resourceAreaHeaderDidMount,headerWillUnmount:n.resourceAreaHeaderWillUnmount}):c.push({headerClassNames:n.resourceAreaHeaderClassNames,headerContent:n.resourceAreaHeaderContent||"Resources",headerDidMount:n.resourceAreaHeaderDidMount,headerWillUnmount:n.resourceAreaHeaderWillUnmount});var l=[],u=[],f=[],g=!1;for(e=0,a=c;e<a.length;e++)r=a[e],r.group?u.push(i(i({},r),{cellClassNames:r.cellClassNames||n.resourceGroupLabelClassNames,cellContent:r.cellContent||n.resourceGroupLabelContent,cellDidMount:r.cellDidMount||n.resourceGroupLabelDidMount,cellWillUnmount:r.cellWillUnmount||n.resourceGroupLaneWillUnmount})):l.push(r);for(t=l[0],t.isMain=!0,t.cellClassNames=t.cellClassNames||n.resourceLabelClassNames,t.cellContent=t.cellContent||n.resourceLabelContent,t.cellDidMount=t.cellDidMount||n.resourceLabelDidMount,t.cellWillUnmount=t.cellWillUnmount||n.resourceLabelWillUnmount,u.length?(f=u,g=!0):(v=n.resourceGroupField,v&&f.push({field:v,labelClassNames:n.resourceGroupLabelClassNames,labelContent:n.resourceGroupLabelContent,labelDidMount:n.resourceGroupLabelDidMount,labelWillUnmount:n.resourceGroupLabelWillUnmount,laneClassNames:n.resourceGroupLaneClassNames,laneContent:n.resourceGroupLaneContent,laneDidMount:n.resourceGroupLaneDidMount,laneWillUnmount:n.resourceGroupLaneWillUnmount})),nt=n.resourceOrder||te,y=[],o=0,p=nt;o<p.length;o++){for(s=p[o],w=!1,h=0,b=f;h<b.length;h++)if(k=b[h],k.field===s.field){k.order=s.order;w=!0;break}w||y.push(s)}return{superHeaderRendering:d,isVGrouping:g,groupSpecs:f,colSpecs:u.concat(l),orderSpecs:y}}var vh=function(n,t){return vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},vh(n,t)},i=function(){return i=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},i.apply(this,arguments)},o,su,tw,iw,rw,ie={},yh=[],ift=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,kh,gh,ib,nc,ic,rc,uc,fc,ec,oc,ub,hi,eb,cc,lc,yc,pu,nl,tk,ck,lk,yk,gu,pk,od,vl,ld,pi,v,yl,pd,wd,tg,na,so,sf,ho,ia,fr,lf,e,rt,ei,b,vo,vg,bi,bt,ca,yo,en,wo,or,sn,bo,cn,ln,af,di,ka,ga,ts,pf,ru,wf,bf,kf,hs,ttt,itt,uu,ott,stt,gv,htt,att,ty,iy,ry,ytt,ptt,wtt,btt,uy,ws,iit,oit,bs,ks,ly,vy,py,hit,cit,by,lit,vit,kt,kit,trt,urt,th,crt,prt,rp,fp,brt,krt,eh,grt,sp,tut,iut,ft,oh,rut,te,uut,fut,sh,hh,yut,wut,but,kut,ah,gp,gut,tft;o={__e:function(n,t){for(var i,r,u;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),u=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n),u=i.__d),u)return i.__E=i}catch(t){n=t}throw n;},__v:0};ct.prototype.setState=function(n,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=oi({},this.state);"function"==typeof n&&(n=n(oi({},i),this.props));n&&oi(i,n);null!=n&&this.__v&&(t&&this.__h.push(t),ph(this))};ct.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),ph(this))};ct.prototype.render=gi;su=[];tw="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;ue.__r=0;rw=0;var pw,bh=[],ww=o.__b,bw=o.__r,kw=o.diffed,dw=o.__c,gw=o.unmount;o.__b=function(n){ww&&ww(n)};o.__r=function(n){bw&&bw(n);var t=n.__c.__H;t&&(t.__h.forEach(oe),t.__h.forEach(dh),t.__h=[])};o.diffed=function(n){kw&&kw(n);var t=n.__c;t&&t.__H&&t.__H.__h.length&&(1!==bh.push(t)&&pw===o.requestAnimationFrame||((pw=o.requestAnimationFrame)||function(n){var t,i=function(){clearTimeout(r);kh&&cancelAnimationFrame(t);setTimeout(n)},r=setTimeout(i,100);kh&&(t=requestAnimationFrame(i))})(sft))};o.__c=function(n,t){t.some(function(n){try{n.__h.forEach(oe);n.__h=n.__h.filter(function(n){return!n.__||dh(n)})}catch(i){t.some(function(n){n.__h&&(n.__h=[])});t=[];o.__e(i,n.__v)}});dw&&dw(n,t)};o.unmount=function(n){gw&&gw(n);var t=n.__c;if(t&&t.__H)try{t.__H.__.forEach(oe)}catch(n){o.__e(n,t.__v)}};kh="function"==typeof requestAnimationFrame;(tb.prototype=new ct).isPureReactComponent=!0;tb.prototype.shouldComponentUpdate=function(n,t){return nb(this.props,n)||nb(this.state,t)};gh=o.__b;o.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null);gh&&gh(n)};ib=o.__e;o.__e=function(n,t,i){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=i.__e,t.__k=i.__k),r.__c(n,t);ib(n,t,i)};nc=o.unmount;o.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R();t&&!0===n.__h&&(n.type=null);nc&&nc(n)};(tc.prototype=new ct).__c=function(n,t){var r=t.__c,i=this,f,s;null==i.t&&(i.t=[]);i.t.push(r);var e=rb(i.__v),o=!1,u=function(){o||(o=!0,r.__R=null,e?e(f):f())};r.__R=u;f=function(){var n,t;if(!--i.__u)for(i.state.__e&&(n=i.state.__e,i.__v.__k[0]=function n(t,i,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,i,r)}),t.__c&&t.__c.__P===i&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O)),i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()};s=!0===t.__h;i.__u++||s||i.setState({__e:i.__b=i.__v.__k[0]});n.then(u,u)};tc.prototype.componentWillUnmount=function(){this.t=[]};tc.prototype.render=function(n,t){var u,r,i;return this.__b&&(this.__v.__k&&(u=document.createElement("div"),r=this.__v.__k[0].__c,this.__v.__k[0]=function n(t,i,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),t.__c.__H=null),null!=(t=hft({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=i),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,i,r)})),t}(this.__b,u,r.__O=r.__P)),this.__b=null),i=t.__e&&si(gi,null,n.fallback),i&&(i.__h=null),[si(gi,null,t.__e?null:n.children),i]};ic=function(n,t,i){if(++i[1]===i[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(i=n.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;n.u=i=i[2]}};(se.prototype=new ct).__e=function(n){var t=this,r=rb(t.__v),i=t.o.get(n);return i[0]++,function(u){var f=function(){t.props.revealOrder?(i.push(u),ic(t,n,i)):u()};r?r(f):f()}};se.prototype.render=function(n){var t,i;for(this.u=null,this.o=new Map,t=fe(n.children),n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse(),i=t.length;i--;)this.o.set(t[i],this.u=[1,0,this.u]);return n.children};se.prototype.componentDidUpdate=se.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,i){ic(n,i,t)})};var vft="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,yft=/^(?: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]/,pft=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};ct.prototype.isReactComponent={};["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(ct.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t})}})});rc=o.event;o.event=function(n){return rc&&(n=rc(n)),n.persist=wft,n.isPropagationStopped=bft,n.isDefaultPrevented=kft,n.nativeEvent=n};uc={configurable:!0,get:function(){return this.class}};fc=o.vnode;o.vnode=function(n){var f=n.type,i=n.props,r=i,t,u;if("string"==typeof f){for(t in r={},i)u=i[t],"value"===t&&"defaultValue"in i&&null==u||("defaultValue"===t&&"value"in i&&null==i.value?t="value":"download"===t&&!0===u?u="":/ondoubleclick/i.test(t)?t="ondblclick":/^onchange(textarea|input)/i.test(t+f)&&!pft(i.type)?t="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(t)?t=t.toLowerCase():yft.test(t)?t=t.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[t]=u);"select"==f&&r.multiple&&Array.isArray(r.value)&&(r.value=fe(i.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value)}));"select"==f&&null!=r.defaultValue&&(r.value=fe(i.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value}));n.props=r}f&&i.class!=i.className&&(uc.enumerable="className"in i,null!=i.className&&(r.class=i.className),Object.defineProperty(r,"className",uc));n.$$typeof=vft;fc&&fc(n)};ec=o.__r;o.__r=function(n){ec&&ec(n)};"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()};oc=typeof globalThis!="undefined"?globalThis:window;oc.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):oc.FullCalendarVDom={Component:ct,createElement:si,render:cu,createRef:rft,Fragment:gi,createContext:gft,createPortal:aft,flushToDom:dft,unmountComponentAtNode:net};ub=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.render=function(){return si("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(ct);hi=function(){function n(n,t){this.context=n;this.internalEventSource=t}return n.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},n.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(n.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),n}();eb=/(top|left|right|bottom|width|height)$/i;cc=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend",];lc=0;yc=["sun","mon","tue","wed","thu","fri","sat"];pu=Object.prototype.hasOwnProperty;nl=["years","months","days","milliseconds"];tk=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;var ok={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},pe={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},we=/\s*([ap])\.?m\.?/i,not=/,/g,tot=/\s+/g,iot=/\u200e/g,rot=/UTC|GMT/,uot=function(){function n(n){var r={},u={},i=0;for(var t in n)t in ok?(u[t]=n[t],i=Math.max(ok[t],i)):(r[t]=n[t],t in pe&&(i=Math.max(pe[t],i)));this.standardDateProps=r;this.extendedSettings=u;this.severity=i;this.buildFormattingFunc=f(sk)}return n.prototype.format=function(n,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(n)},n.prototype.formatRange=function(n,t,i,r){var h=this,u=h.standardDateProps,c=h.extendedSettings,l=cot(n.marker,t.marker,i.calendarSystem),e,f,o;if(!l)return this.format(n,i);if(e=l,e>1&&(u.year==="numeric"||u.year==="2-digit")&&(u.month==="numeric"||u.month==="2-digit")&&(u.day==="numeric"||u.day==="2-digit")&&(e=1),f=this.format(n,i),o=this.format(t,i),f===o)return f;var w=lot(u,e),a=sk(w,c,i),v=a(n),y=a(t),s=aot(f,v,o,y),p=c.separator||r||i.defaultSeparator||"";return s?s.before+v+p+y+s.after:f+p+o},n.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"}},n}();ck=function(){function n(n){this.cmdStr=n}return n.prototype.format=function(n,t,i){return t.cmdFormatter(this.cmdStr,be(n,null,t,i))},n.prototype.formatRange=function(n,t,i,r){return i.cmdFormatter(this.cmdStr,be(n,t,i,r))},n}();lk=function(){function n(n){this.func=n}return n.prototype.format=function(n,t,i){return this.func(be(n,null,t,i))},n.prototype.formatRange=function(n,t,i,r){return this.func(be(n,t,i,r))},n}();var fl={navLinkDayClick:r,navLinkWeekClick:r,duration:s,bootstrapFontAwesome:r,buttonIcons:r,customButtons:r,defaultAllDayEventDuration:s,defaultTimedEventDuration:s,nextDayThreshold:s,scrollTime:s,scrollTimeReset:Boolean,slotMinTime:s,slotMaxTime:s,dayPopoverFormat:y,slotDuration:s,snapDuration:s,headerToolbar:r,footerToolbar:r,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:y,dayHeaderClassNames:r,dayHeaderContent:r,dayHeaderDidMount:r,dayHeaderWillUnmount:r,dayCellClassNames:r,dayCellContent:r,dayCellDidMount:r,dayCellWillUnmount:r,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:r,weekNumbers:Boolean,weekNumberClassNames:r,weekNumberContent:r,weekNumberDidMount:r,weekNumberWillUnmount:r,editable:Boolean,viewClassNames:r,viewDidMount:r,viewWillUnmount:r,nowIndicator:Boolean,nowIndicatorClassNames:r,nowIndicatorContent:r,nowIndicatorDidMount:r,nowIndicatorWillUnmount:r,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:r,locale:r,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:r,eventOrder:ce,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:r,contentHeight:r,direction:String,weekNumberFormat:y,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:r,initialDate:r,now:r,eventDataTransform:r,stickyHeaderDates:r,stickyFooterScrollbar:r,viewHeight:r,defaultAllDay:Boolean,eventSourceFailure:r,eventSourceSuccess:r,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:r,eventConstraint:r,eventAllow:r,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:r,eventContent:r,eventDidMount:r,eventWillUnmount:r,selectConstraint:r,selectOverlap:r,selectAllow:r,droppable:Boolean,unselectCancel:String,slotLabelFormat:r,slotLaneClassNames:r,slotLaneContent:r,slotLaneDidMount:r,slotLaneWillUnmount:r,slotLabelClassNames:r,slotLabelContent:r,slotLabelDidMount:r,slotLabelWillUnmount:r,dayMaxEvents:r,dayMaxEventRows:r,dayMinWidth:Number,slotLabelInterval:s,allDayText:String,allDayClassNames:r,allDayContent:r,allDayDidMount:r,allDayWillUnmount:r,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:y,rerenderDelay:Number,moreLinkText:r,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:r,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:s,hiddenDays:r,monthMode:Boolean,fixedWeekCount:Boolean,validRange:r,visibleRange:r,titleFormat:r,noEventsText:String,moreLinkClick:r,moreLinkClassNames:r,moreLinkContent:r,moreLinkDidMount:r,moreLinkWillUnmount:r},ri={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},ak={datesSet:r,eventsSet:r,eventAdd:r,eventChange:r,eventRemove:r,windowResize:r,eventClick:r,eventMouseEnter:r,eventMouseLeave:r,select:r,unselect:r,loading:r,_unmount:r,_beforeprint:r,_afterprint:r,_noEventDrop:r,_noEventResize:r,_resize:r,_scrollRequest:r},vk={buttonText:r,views:r,plugins:r,initialEvents:r,events:r,eventSources:r},el={headerToolbar:ke,footerToolbar:ke,buttonText:ke,buttonIcons:ke};yk={type:String,component:r,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:r,usesMinMaxTime:Boolean,classNames:r,content:r,didMount:r,willUnmount:r};gu={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:r,overlap:r,allow:r,className:du,classNames:du,color:String,backgroundColor:String,borderColor:String,textColor:String};pk={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};var to={id:String,groupId:String,title:String,url:String},wk={start:r,end:r,date:r,allDay:Boolean},bot=i(i(i({},to),wk),{extendedProps:r});od={start:r,end:r,allDay:Boolean};vl=function(){function n(n,t,i){this.type=n;this.getCurrentData=t;this.dateEnv=i}return Object.defineProperty(n.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),n.prototype.getOption=function(n){return this.getCurrentData().options[n]},n}();ld={id:String,defaultAllDay:Boolean,url:String,format:String,events:r,eventDataTransform:r,success:r,failure:r};pi=function(){function n(){}return n.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},n.prototype.dispatch=function(n){return this.currentDataManager.dispatch(n)},Object.defineProperty(n.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),n.prototype.batchRendering=function(n){n()},n.prototype.updateSize=function(){this.trigger("_resize",!0)},n.prototype.setOption=function(n,t){this.dispatch({type:"SET_OPTION",optionName:n,rawOptionValue:t})},n.prototype.getOption=function(n){return this.currentDataManager.currentCalendarOptionsInput[n]},n.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},n.prototype.on=function(n,t){var i=this.currentDataManager;if(i.currentCalendarOptionsRefiners[n])i.emitter.on(n,t);else console.warn("Unknown listener name '"+n+"'")},n.prototype.off=function(n,t){this.currentDataManager.emitter.off(n,t)},n.prototype.trigger=function(n){for(var i,r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];(i=this.currentDataManager.emitter).trigger.apply(i,l([n],r))},n.prototype.changeView=function(n,t){var i=this;this.batchRendering(function(){if(i.unselect(),t)if(t.start&&t.end)i.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n}),i.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=i.getCurrentData().dateEnv;i.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n,dateMarker:r.createMarker(t)})}else i.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n})})},n.prototype.zoomTo=function(n,t){var r=this.getCurrentData(),i;t=t||"day";i=r.viewSpecs[t]||this.getUnitViewSpec(t);this.unselect();i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:n}):this.dispatch({type:"CHANGE_DATE",dateMarker:n})},n.prototype.getUnitViewSpec=function(n){var u=this.getCurrentData(),f=u.viewSpecs,e=u.toolbarConfig,r=[].concat(e.viewsWithButtons),t,i;for(var o in f)r.push(o);for(t=0;t<r.length;t+=1)if(i=f[r[t]],i&&i.singleUnit===n)return i;return null},n.prototype.prev=function(){this.unselect();this.dispatch({type:"PREV"})},n.prototype.next=function(){this.unselect();this.dispatch({type:"NEXT"})},n.prototype.prevYear=function(){var n=this.getCurrentData();this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.addYears(n.currentDate,-1)})},n.prototype.nextYear=function(){var n=this.getCurrentData();this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.addYears(n.currentDate,1)})},n.prototype.today=function(){var n=this.getCurrentData();this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:of(n.calendarOptions.now,n.dateEnv)})},n.prototype.gotoDate=function(n){var t=this.getCurrentData();this.unselect();this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(n)})},n.prototype.incrementDate=function(n){var t=this.getCurrentData(),i=s(n);i&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,i)}))},n.prototype.getDate=function(){var n=this.getCurrentData();return n.dateEnv.toDate(n.currentDate)},n.prototype.formatDate=function(n,t){var i=this.getCurrentData().dateEnv;return i.format(i.createMarker(n),y(t))},n.prototype.formatRange=function(n,t,i){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(n),r.createMarker(t),y(i),i)},n.prototype.formatIso=function(n,t){var i=this.getCurrentData().dateEnv;return i.formatIso(i.createMarker(n),{omitTime:t})},n.prototype.select=function(n,t){var u,r,i;u=t==null?n.start!=null?n:{start:n,end:null}:{start:n,end:t};r=this.getCurrentData();i=ist(u,r.dateEnv,s({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),ll(i,null,r))},n.prototype.unselect=function(n){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),ost(n,t))},n.prototype.addEvent=function(n,t){var r,u,f,i,e;if(n instanceof v){var o=n._def,s=n._instance,h=this.getCurrentData();return h.eventStore.defs[o.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:kr({def:o,instance:s})}),this.triggerEventAdd(n)),n}if(r=this.getCurrentData(),t instanceof hi)u=t.internalEventSource;else if(typeof t=="boolean")t&&(u=kc(r.eventSources)[0]);else if(t!=null){if(f=this.getEventSourceById(t),!f)return console.warn('Could not find an event source with ID "'+t+'"'),null;u=f.internalEventSource}return(i=bk(n,u,r,!1),i)?(e=new v(r,i.def,i.def.recurringDef?null:i.instance),this.dispatch({type:"ADD_EVENTS",eventStore:kr(i)}),this.triggerEventAdd(e),e):null},n.prototype.triggerEventAdd=function(n){var t=this,i=this.getCurrentData().emitter;i.trigger("eventAdd",{event:n,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:yd(n)})}})},n.prototype.getEventById=function(n){var i=this.getCurrentData(),u=i.eventStore,f=u.defs,e=u.instances,o,t,s,r;n=String(n);for(o in f)if(t=f[o],t.publicId===n){if(t.recurringDef)return new v(i,t,null);for(s in e)if(r=e[s],r.defId===t.defId)return new v(i,t,r)}return null},n.prototype.getEvents=function(){var n=this.getCurrentData();return wi(n.eventStore,n)},n.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},n.prototype.getEventSources=function(){var n=this.getCurrentData(),t=n.eventSources,i=[];for(var r in t)i.push(new hi(n,t[r]));return i},n.prototype.getEventSourceById=function(n){var r=this.getCurrentData(),t=r.eventSources,i;n=String(n);for(i in t)if(t[i].publicId===n)return new hi(r,t[i]);return null},n.prototype.addEventSource=function(n){var i=this.getCurrentData(),t;return n instanceof hi?(i.eventSources[n.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n.internalEventSource]}),n):(t=ad(n,i),t)?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new hi(i,t)):null},n.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},n.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},n.prototype.scrollToTime=function(n){var t=s(n);t&&this.trigger("_scrollRequest",{time:t})},n}();v=function(){function n(n,t,i){this._context=n;this._def=t;this._instance=i||null}return n.prototype.setProp=function(n,t){var i,r,u;n in wk?console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead."):n==="id"?(t=to[n](t),this.mutate({standardProps:{publicId:t}})):n in to?(t=to[n](t),this.mutate({standardProps:(i={},i[n]=t,i)})):n in gu?(u=gu[n](t),u=n==="color"?{backgroundColor:t,borderColor:t}:n==="editable"?{startEditable:t,durationEditable:t}:(r={},r[n]=t,r),this.mutate({standardProps:{ui:u}})):console.warn("Could not set prop '"+n+"'. Use setExtendedProp instead.")},n.prototype.setExtendedProp=function(n,t){var i;this.mutate({extendedProps:(i={},i[n]=t,i)})},n.prototype.setStart=function(n,t){var i,r,f,u;t===void 0&&(t={});i=this._context.dateEnv;r=i.createMarker(n);r&&this._instance&&(f=this._instance.range,u=tr(f.start,r,i,t.granularity),t.maintainDuration?this.mutate({datesDelta:u}):this.mutate({startDelta:u}))},n.prototype.setEnd=function(n,t){var r,i,u;(t===void 0&&(t={}),r=this._context.dateEnv,n==null||(i=r.createMarker(n),i))&&this._instance&&(i?(u=tr(this._instance.range.end,i,r,t.granularity),this.mutate({endDelta:u})):this.mutate({standardProps:{hasEnd:!1}}))},n.prototype.setDates=function(n,t,i){var r,u,s;i===void 0&&(i={});var f=this._context.dateEnv,e={allDay:i.allDay},h=f.createMarker(n),o;h&&(t==null||(o=f.createMarker(t),o))&&this._instance&&(r=this._instance.range,i.allDay===!0&&(r=kk(r)),u=tr(r.start,h,f,i.granularity),o?(s=tr(r.end,o,f,i.granularity),bet(u,s)?this.mutate({datesDelta:u,standardProps:e}):this.mutate({startDelta:u,endDelta:s,standardProps:e})):(e.hasEnd=!1,this.mutate({datesDelta:u,standardProps:e})))},n.prototype.moveStart=function(n){var t=s(n);t&&this.mutate({startDelta:t})},n.prototype.moveEnd=function(n){var t=s(n);t&&this.mutate({endDelta:t})},n.prototype.moveDates=function(n){var t=s(n);t&&this.mutate({datesDelta:t})},n.prototype.setAllDay=function(n,t){t===void 0&&(t={});var r={allDay:n},i=t.maintainDuration;i==null&&(i=this._context.options.allDayMaintainDuration);this._def.allDay!==n&&(r.hasEnd=i);this.mutate({standardProps:r})},n.prototype.formatRange=function(n){var i=this._context.dateEnv,t=this._instance,r=y(n);return this._def.hasEnd?i.formatRange(t.range.start,t.range.end,r,{forcedStartTzo:t.forcedStartTzo,forcedEndTzo:t.forcedEndTzo}):i.format(t.range.start,r,{forcedTzo:t.forcedStartTzo})},n.prototype.mutate=function(t){var u=this._instance,o;if(u){var f=this._def,i=this._context,e=i.getCurrentData().eventStore,r=ge(e,u.instanceId);r=eo(r,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);o=new n(i,f,u);this._def=r.defs[f.defId];this._instance=r.instances[u.instanceId];i.dispatch({type:"MERGE_EVENTS",eventStore:r});i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:wi(r,i,u),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:e})}})}},n.prototype.remove=function(){var n=this._context,t=yd(this);n.dispatch({type:"REMOVE_EVENTS",eventStore:t});n.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){n.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(n.prototype,"source",{get:function(){var n=this._def.sourceId;return n?new hi(this._context,this._context.getCurrentData().eventSources[n]):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.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(n.prototype,"startStr",{get:function(){var n=this._instance;return n?this._context.dateEnv.formatIso(n.range.start,{omitTime:this._def.allDay,forcedTzo:n.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endStr",{get:function(){var n=this._instance;return n&&this._def.hasEnd?this._context.dateEnv.formatIso(n.range.end,{omitTime:this._def.allDay,forcedTzo:n.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),n.prototype.toPlainObject=function(n){n===void 0&&(n={});var u=this._def,t=u.ui,f=this,e=f.startStr,o=f.endStr,r={};return u.title&&(r.title=u.title),e&&(r.start=e),o&&(r.end=o),u.publicId&&(r.id=u.publicId),u.groupId&&(r.groupId=u.groupId),u.url&&(r.url=u.url),t.display&&t.display!=="auto"&&(r.display=t.display),n.collapseColor&&t.backgroundColor&&t.backgroundColor===t.borderColor?r.color=t.backgroundColor:(t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.borderColor&&(r.borderColor=t.borderColor)),t.textColor&&(r.textColor=t.textColor),t.classNames.length&&(r.classNames=t.classNames),Object.keys(u.extendedProps).length&&(n.collapseExtendedProps?i(r,u.extendedProps):r.extendedProps=u.extendedProps),r},n.prototype.toJSON=function(){return this.toPlainObject()},n}();yl={};pd=function(){function n(){}return n.prototype.getMarkerYear=function(n){return n.getUTCFullYear()},n.prototype.getMarkerMonth=function(n){return n.getUTCMonth()},n.prototype.getMarkerDay=function(n){return n.getUTCDate()},n.prototype.arrayToMarker=function(n){return et(n)},n.prototype.markerToArray=function(n){return ai(n)},n}();vst("gregory",pd);wd=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var pl=function(){function n(n){var t=this.timeZone=n.timeZone,i=t!=="local"&&t!=="UTC";n.namedTimeZoneImpl&&i&&(this.namedTimeZoneImpl=new n.namedTimeZoneImpl(t));this.canComputeOffset=Boolean(!i||this.namedTimeZoneImpl);this.calendarSystem=yst(n.calendarSystem);this.locale=n.locale;this.weekDow=n.locale.week.dow;this.weekDoy=n.locale.week.doy;n.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4);typeof n.firstDay=="number"&&(this.weekDow=n.firstDay);typeof n.weekNumberCalculation=="function"&&(this.weekNumberFunc=n.weekNumberCalculation);this.weekText=n.weekText!=null?n.weekText:n.locale.options.weekText;this.cmdFormatter=n.cmdFormatter;this.defaultSeparator=n.defaultSeparator}return n.prototype.createMarker=function(n){var t=this.createMarkerMeta(n);return t===null?null:t.marker},n.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):et(db(new Date))},n.prototype.createMarkerMeta=function(n){if(typeof n=="string")return this.parse(n);var t=null;return(typeof n=="number"?t=this.timestampToMarker(n):n instanceof Date?(n=n.valueOf(),isNaN(n)||(t=this.timestampToMarker(n))):Array.isArray(n)&&(t=et(n)),t===null||!le(t))?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}},n.prototype.parse=function(n){var t=bd(n),i,r;return t===null?null:(i=t.marker,r=null,t.timeZoneOffset!==null&&(this.canComputeOffset?i=this.timestampToMarker(i.valueOf()-t.timeZoneOffset*6e4):r=t.timeZoneOffset),{marker:i,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r})},n.prototype.getYear=function(n){return this.calendarSystem.getMarkerYear(n)},n.prototype.getMonth=function(n){return this.calendarSystem.getMarkerMonth(n)},n.prototype.add=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[0]+=t.years,i[1]+=t.months,i[2]+=t.days,i[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(i)},n.prototype.subtract=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[0]-=t.years,i[1]-=t.months,i[2]-=t.days,i[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(i)},n.prototype.addYears=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[0]+=t,this.calendarSystem.arrayToMarker(i)},n.prototype.addMonths=function(n,t){var i=this.calendarSystem.markerToArray(n);return i[1]+=t,this.calendarSystem.arrayToMarker(i)},n.prototype.diffWholeYears=function(n,t){var i=this.calendarSystem;return vi(n)===vi(t)&&i.getMarkerDay(n)===i.getMarkerDay(t)&&i.getMarkerMonth(n)===i.getMarkerMonth(t)?i.getMarkerYear(t)-i.getMarkerYear(n):null},n.prototype.diffWholeMonths=function(n,t){var i=this.calendarSystem;return vi(n)===vi(t)&&i.getMarkerDay(n)===i.getMarkerDay(t)?i.getMarkerMonth(t)-i.getMarkerMonth(n)+(i.getMarkerYear(t)-i.getMarkerYear(n))*12:null},n.prototype.greatestWholeUnit=function(n,t){var i=this.diffWholeYears(n,t);return i!==null?{unit:"year",value:i}:(i=this.diffWholeMonths(n,t),i!==null)?{unit:"month",value:i}:(i=kb(n,t),i!==null)?{unit:"week",value:i}:(i=yr(n,t),i!==null)?{unit:"day",value:i}:(i=ret(n,t),li(i))?{unit:"hour",value:i}:(i=uet(n,t),li(i))?{unit:"minute",value:i}:(i=fet(n,t),li(i))?{unit:"second",value:i}:{unit:"millisecond",value:t.valueOf()-n.valueOf()}},n.prototype.countDurationsBetween=function(n,t,i){var r;return i.years&&(r=this.diffWholeYears(n,t),r!==null)?r/det(i):i.months&&(r=this.diffWholeMonths(n,t),r!==null)?r/get(i):i.days&&(r=yr(n,t),r!==null)?r/wr(i):(t.valueOf()-n.valueOf())/tt(i)},n.prototype.startOf=function(n,t){return t==="year"?this.startOfYear(n):t==="month"?this.startOfMonth(n):t==="week"?this.startOfWeek(n):t==="day"?a(n):t==="hour"?eet(n):t==="minute"?oet(n):t==="second"?set(n):null},n.prototype.startOfYear=function(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n),])},n.prototype.startOfMonth=function(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n),this.calendarSystem.getMarkerMonth(n),])},n.prototype.startOfWeek=function(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n),this.calendarSystem.getMarkerMonth(n),n.getUTCDate()-(n.getUTCDay()-this.weekDow+7)%7,])},n.prototype.computeWeekNumber=function(n){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(n)):het(n,this.weekDow,this.weekDoy)},n.prototype.format=function(n,t,i){return i===void 0&&(i={}),t.format({marker:n,timeZoneOffset:i.forcedTzo!=null?i.forcedTzo:this.offsetForMarker(n)},this)},n.prototype.formatRange=function(n,t,i,r){return r===void 0&&(r={}),r.isEndExclusive&&(t=gt(t,-1)),i.formatRange({marker:n,timeZoneOffset:r.forcedStartTzo!=null?r.forcedStartTzo:this.offsetForMarker(n)},{marker:t,timeZoneOffset:r.forcedEndTzo!=null?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},n.prototype.formatIso=function(n,t){t===void 0&&(t={});var i=null;return t.omitTimeZoneOffset||(i=t.forcedTzo!=null?t.forcedTzo:this.offsetForMarker(n)),wu(n,i,t.omitTime)},n.prototype.timestampToMarker=function(n){return this.timeZone==="local"?et(db(new Date(n))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(n):et(this.namedTimeZoneImpl.timestampToArray(n))},n.prototype.offsetForMarker=function(n){return this.timeZone==="local"?-gb(ai(n)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ai(n)):null},n.prototype.toDate=function(n,t){return this.timeZone==="local"?gb(ai(n)):this.timeZone==="UTC"?new Date(n.valueOf()):this.namedTimeZoneImpl?new Date(n.valueOf()-this.namedTimeZoneImpl.offsetForArray(ai(n))*6e4):new Date(n.valueOf()-(t||0))},n}(),kd=[],wl={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"};tg={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};so=it();sf=function(){function n(){this.getKeysForEventDefs=f(this._getKeysForEventDefs);this.splitDateSelection=f(this._splitDateSpan);this.splitEventStore=f(this._splitEventStore);this.splitIndividualUi=f(this._splitIndividualUi);this.splitEventDrag=f(this._splitInteraction);this.splitEventResize=f(this._splitInteraction);this.eventUiBuilders={}}return n.prototype.splitProps=function(n){var s=this,i=this.getKeyInfo(n),r=this.getKeysForEventDefs(n.eventStore),h=this.splitDateSelection(n.dateSelection),c=this.splitIndividualUi(n.eventUiBases,r),l=this.splitEventStore(n.eventStore,r),a=this.splitEventDrag(n.eventDrag),v=this.splitEventResize(n.eventResize),u={},t;this.eventUiBuilders=w(i,function(n,t){return s.eventUiBuilders[t]||f(nht)});for(t in i){var e=i[t],o=l[t]||so,y=this.eventUiBuilders[t];u[t]={businessHours:e.businessHours||n.businessHours,dateSelection:h[t]||null,eventStore:o,eventUiBases:y(n.eventUiBases[""],e.ui,c[t]),eventSelection:o.instances[n.eventSelection]?n.eventSelection:"",eventDrag:a[t]||null,eventResize:v[t]||null}}return u},n.prototype._splitDateSpan=function(n){var r={},u,t,i,f;if(n)for(u=this.getKeysForDateSpan(n),t=0,i=u;t<i.length;t++)f=i[t],r[f]=n;return r},n.prototype._getKeysForEventDefs=function(n){var t=this;return w(n.defs,function(n){return t.getKeysForEventDef(n)})},n.prototype._splitEventStore=function(n,t){var l=n.defs,a=n.instances,r={},u,f,o,s,h,e,c,i;for(u in l)for(f=0,o=t[u];f<o.length;f++)i=o[f],r[i]||(r[i]=it()),r[i].defs[u]=l[u];for(s in a)for(h=a[s],e=0,c=t[h.defId];e<c.length;e++)i=c[e],r[i]&&(r[i].instances[s]=h);return r},n.prototype._splitIndividualUi=function(n,t){var r={},i,u,e,f;for(i in n)if(i)for(u=0,e=t[i];u<e.length;u++)f=e[u],r[f]||(r[f]={}),r[f][i]=n[i];return r},n.prototype._splitInteraction=function(n){var i={},t;if(n){var r=this._splitEventStore(n.affectedEvents,this._getKeysForEventDefs(n.affectedEvents)),e=this._getKeysForEventDefs(n.mutatedEvents),u=this._splitEventStore(n.mutatedEvents,e),f=function(t){i[t]||(i[t]={affectedEvents:r[t]||so,mutatedEvents:u[t]||so,isEvent:n.isEvent})};for(t in r)f(t);for(t in u)f(t)}return i},n}();ho=null;fr=function(){function n(){this.handlers={};this.thisContext=null}return n.prototype.setThisContext=function(n){this.thisContext=n},n.prototype.setOptions=function(n){this.options=n},n.prototype.on=function(n,t){eht(this.handlers,n,t)},n.prototype.off=function(n,t){oht(this.handlers,n,t)},n.prototype.trigger=function(n){for(var i,r,f,u=[],t=1;t<arguments.length;t++)u[t-1]=arguments[t];var e=this.handlers[n]||[],o=this.options&&this.options[n],s=[].concat(o||[],e);for(i=0,r=s;i<r.length;i++)f=r[i],f.apply(this.thisContext,u)},n.prototype.hasHandlers=function(n){return this.handlers[n]&&this.handlers[n].length||this.options&&this.options[n]},n}();var fi=function(){function n(n,t,i,r){this.els=t;var u=this.originClientRect=n.getBoundingClientRect();i&&this.buildElHorizontals(u.left);r&&this.buildElVerticals(u.top)}return n.prototype.buildElHorizontals=function(n){for(var e,i,r=[],u=[],t=0,f=this.els;t<f.length;t++)e=f[t],i=e.getBoundingClientRect(),r.push(i.left-n),u.push(i.right-n);this.lefts=r;this.rights=u},n.prototype.buildElVerticals=function(n){for(var e,i,r=[],u=[],t=0,f=this.els;t<f.length;t++)e=f[t],i=e.getBoundingClientRect(),r.push(i.top-n),u.push(i.bottom-n);this.tops=r;this.bottoms=u},n.prototype.leftToIndex=function(n){for(var i=this,r=i.lefts,u=i.rights,f=r.length,t=0;t<f;t+=1)if(n>=r[t]&&n<u[t])return t;return undefined},n.prototype.topToIndex=function(n){for(var i=this,r=i.tops,u=i.bottoms,f=r.length,t=0;t<f;t+=1)if(n>=r[t]&&n<u[t])return t;return undefined},n.prototype.getWidth=function(n){return this.rights[n]-this.lefts[n]},n.prototype.getHeight=function(n){return this.bottoms[n]-this.tops[n]},n}(),lo=function(){function n(){}return n.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},n.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},n.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},n.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},n.prototype.canScrollUp=function(){return this.getScrollTop()>0},n.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},n.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},n.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},n}(),og=function(n){function t(t){var i=n.call(this)||this;return i.el=t,i}return u(t,n),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(n){this.el.scrollTop=n},t.prototype.setScrollLeft=function(n){this.el.scrollLeft=n},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(lo),sg=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(n){window.scroll(window.pageXOffset,n)},t.prototype.setScrollLeft=function(n){window.scroll(n,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(lo),er=function(){function n(n){this.iconOverrideOption&&this.setIconOverride(n[this.iconOverrideOption])}return n.prototype.setIconOverride=function(n){var t,r;if(typeof n=="object"&&n){t=i({},this.iconClasses);for(r in n)t[r]=this.applyIconOverridePrefix(n[r]);this.iconClasses=t}else n===!1&&(this.iconClasses={})},n.prototype.applyIconOverridePrefix=function(n){var t=this.iconOverridePrefix;return t&&n.indexOf(t)!==0&&(n=t+n),n},n.prototype.getClass=function(n){return this.classes[n]||""},n.prototype.getIconClass=function(n,t){var i;return(i=t&&this.rtlIconClasses?this.rtlIconClasses[n]||this.iconClasses[n]:this.iconClasses[n],i)?this.baseIconClass+" "+i:""},n.prototype.getCustomButtonIconClass=function(n){var t;return this.iconOverrideCustomButtonOption&&(t=n[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},n}();if(er.prototype.classes={},er.prototype.iconClasses={},er.prototype.baseIconClass="",er.prototype.iconOverridePrefix="",typeof FullCalendarVDom=="undefined")throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var ao=FullCalendarVDom.Component,t=FullCalendarVDom.createElement,hg=FullCalendarVDom.render,h=FullCalendarVDom.createRef,c=FullCalendarVDom.Fragment,sa=FullCalendarVDom.createContext,cg=FullCalendarVDom.createPortal,cf=FullCalendarVDom.flushToDom,lg=FullCalendarVDom.unmountComponentAtNode,ag=function(){function n(n,t,r,u){var f=this;this.execFunc=n;this.emitter=t;this.scrollTime=r;this.scrollTimeReset=u;this.handleScrollRequest=function(n){f.queuedRequest=i({},f.queuedRequest||{},n);f.drain()};t.on("_scrollRequest",this.handleScrollRequest);this.fireInitialScroll()}return n.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},n.prototype.update=function(n){n&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},n.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},n.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},n}(),lt=sa({});lf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.shouldComponentUpdate=function(n,t){return this.debug&&console.log(dc(n,this.props),dc(t,this.state)),!ae(this.props,n,this.propEquality)||!ae(this.state,t,this.stateEquality)},t.addPropsEquality=hht,t.addStateEquality=cht,t.contextType=lt,t}(ao);lf.prototype.propEquality={};lf.prototype.stateEquality={};e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.contextType=lt,t}(lf);rt=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.uid=vt(),t}return u(t,n),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(){return null},t.prototype.isValidSegDownEl=function(n){return!this.props.eventDrag&&!this.props.eventResize&&!d(n,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(n){return!d(n,".fc-event:not(.fc-bg-event)")&&!d(n,".fc-more-link")&&!d(n,"a[data-navlink]")&&!d(n,".fc-popover")},t}(e);ei=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t}(er);ei.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ei.prototype.baseIconClass="fc-icon";ei.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"};ei.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ei.prototype.iconOverrideOption="buttonIcons";ei.prototype.iconOverrideCustomButtonOption="icon";ei.prototype.iconOverridePrefix="fc-icon-";b=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t.handleRootEl=function(n){g(t.rootElRef,n);t.props.elRef&&g(t.props.elRef,n)},t}return u(i,n),i.prototype.render=function(){var r=this,n=this.props,i=n.hookProps;return t(bi,{hookProps:i,didMount:n.didMount,willUnmount:n.willUnmount,elRef:this.handleRootEl},function(u){return t(tu,{hookProps:i,content:n.content,defaultContent:n.defaultContent,backupElRef:r.rootElRef},function(t,r){return n.children(u,yg(n.classNames,i),t,r)})})},i}(e);vo=sa(0);vg=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.innerElRef=h(),t}return u(t,n),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var f=this.context.pluginHooks.contentTypeHandlers,e=this,u=e.props,t=e.customContentInfo,h=u.content,n=pg(h,u.hookProps),o=null,r,s;if(n===undefined&&(n=pg(u.defaultContent,u.hookProps)),n!==undefined){if(t)t.contentVal=n[t.contentKey];else if(typeof n=="object")for(r in f)if(n[r]!==undefined){s=f[r]();t=this.customContentInfo=i({contentKey:r,contentVal:n[r]},s);break}o=t?[]:n}return o},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(e);bi=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.handleRootEl=function(n){t.rootEl=n;t.props.elRef&&g(t.props.elRef,n)},t}return u(t,n),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var n=this.props.didMount;n&&n(i(i({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var n=this.props.willUnmount;n&&n(i(i({},this.props.hookProps),{el:this.rootEl}))},t}(e);bt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.normalizeClassNames=iu(),t}return u(i,n),i.prototype.render=function(){var r=this,n=r.props,u=r.context,i=u.options,f={view:u.viewApi},e=this.normalizeClassNames(i.viewClassNames,f);return t(bi,{hookProps:f,didMount:i.viewDidMount,willUnmount:i.viewWillUnmount,elRef:n.elRef},function(t){return n.children(t,["fc-"+n.viewSpec.type+"-view","fc-view"].concat(e))})},i}(e);ca={};yo=function(){function n(n){this.props=n;this.nowDate=of(n.nowInput,n.dateEnv);this.initHiddenDays()}return n.prototype.buildPrev=function(n,t,i){var r=this.props.dateEnv,u=r.subtract(r.startOf(t,n.currentRangeUnit),n.dateIncrement);return this.build(u,-1,i)},n.prototype.buildNext=function(n,t,i){var r=this.props.dateEnv,u=r.add(r.startOf(t,n.currentRangeUnit),n.dateIncrement);return this.build(u,1,i)},n.prototype.build=function(n,t,i){i===void 0&&(i=!0);var o=this.props,f,r,s,e,u,h;return f=this.buildValidRange(),f=this.trimHiddenDays(f),i&&(n=tst(n,f)),r=this.buildCurrentRangeInfo(n,t),s=/^(year|month|week|day)$/.test(r.unit),e=this.buildRenderRange(this.trimHiddenDays(r.range),r.unit,s),e=this.trimHiddenDays(e),u=e,o.showNonCurrentDates||(u=ui(u,r.range)),u=this.adjustActiveRange(u),u=ui(u,f),h=rf(r.range,f),{validRange:f,currentRange:r.range,currentRangeUnit:r.unit,isRangeAllDay:s,activeRange:u,renderRange:e,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,isValid:h,dateIncrement:this.buildDateIncrement(r.duration)}},n.prototype.buildValidRange=function(){var n=this.props.validRangeInput,t=typeof n=="function"?n.call(this.props.calendarApi,this.nowDate):n;return this.refineRange(t)||{start:null,end:null}},n.prototype.buildCurrentRangeInfo=function(n,t){var f=this.props,u=null,i=null,r=null,e;return f.duration?(u=f.duration,i=f.durationUnit,r=this.buildRangeFromDuration(n,t,u,i)):(e=this.props.dayCount)?(i="day",r=this.buildRangeFromDayCount(n,t,e)):(r=this.buildCustomVisibleRange(n))?i=f.dateEnv.greatestWholeUnit(r.start,r.end).unit:(u=this.getFallbackDuration(),i=ii(u).unit,r=this.buildRangeFromDuration(n,t,u,i)),{duration:u,unit:i,range:r}},n.prototype.getFallbackDuration=function(){return s({day:1})},n.prototype.adjustActiveRange=function(n){var r=this.props,u=r.dateEnv,o=r.usesMinMaxTime,f=r.slotMinTime,e=r.slotMaxTime,i=n.start,t=n.end;return o&&(wr(f)<0&&(i=a(i),i=u.add(i,f)),wr(e)>1&&(t=a(t),t=p(t,-1),t=u.add(t,e))),{start:i,end:t}},n.prototype.buildRangeFromDuration=function(n,t,i,r){function l(){u=h.startOf(n,e);c=h.add(u,i);o={start:u,end:c}}var s=this.props,h=s.dateEnv,e=s.dateAlignment,u,c,o,f;return e||(f=this.props.dateIncrement,e=f?tt(f)<tt(i)?ii(f).unit:r:r),wr(i)<=1&&this.isHiddenDay(u)&&(u=this.skipHiddenDays(u,t),u=a(u)),l(),this.trimHiddenDays(o)||(n=this.skipHiddenDays(n,t),l()),o},n.prototype.buildRangeFromDayCount=function(n,t,i){var f=this.props,s=f.dateEnv,e=f.dateAlignment,o=0,r=n,u;e&&(r=s.startOf(r,e));r=a(r);r=this.skipHiddenDays(r,t);u=r;do u=p(u,1),this.isHiddenDay(u)||(o+=1);while(o<i);return{start:r,end:u}},n.prototype.buildCustomVisibleRange=function(n){var i=this.props,r=i.visibleRangeInput,u=typeof r=="function"?r.call(i.calendarApi,i.dateEnv.toDate(n)):r,t=this.refineRange(u);return t&&(t.start==null||t.end==null)?null:t},n.prototype.buildRenderRange=function(n){return n},n.prototype.buildDateIncrement=function(n){var t=this.props.dateIncrement,i;return t?t:(i=this.props.dateAlignment)?s(1,i):n?n:s({days:1})},n.prototype.refineRange=function(n){if(n){var t=got(n,this.props.dateEnv);return t&&(t=tf(t)),t}return null},n.prototype.initHiddenDays=function(){var t=this.props.hiddenDays||[],i=[],r=0,n;for(this.props.weekends===!1&&t.push(0,6),n=0;n<7;n+=1)(i[n]=t.indexOf(n)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=i},n.prototype.trimHiddenDays=function(n){var t=n.start,i=n.end;return(t&&(t=this.skipHiddenDays(t)),i&&(i=this.skipHiddenDays(i,-1,!0)),t==null||i==null||t<i)?{start:t,end:i}:null},n.prototype.isHiddenDay=function(n){return n instanceof Date&&(n=n.getUTCDay()),this.isHiddenDayHash[n]},n.prototype.skipHiddenDays=function(n,t,i){for(t===void 0&&(t=1),i===void 0&&(i=!1);this.isHiddenDayHash[(n.getUTCDay()+(i?t:0)+7)%7];)n=p(n,t);return n},n}();var ilt={ignoreRange:!0,parseMeta:function(n){return Array.isArray(n.events)?n.events:null},fetch:function(n,t){t({rawEvents:n.eventSource.meta})}},rlt=k({eventSourceDefs:[ilt]}),ult={parseMeta:function(n){return typeof n.events=="function"?n.events:null},fetch:function(n,t,i){var r=n.context.dateEnv,u=n.eventSource.meta;oa(u.bind(null,hd(n.range,r)),function(n){t({rawEvents:n})},i)}},flt=k({eventSourceDefs:[ult]});var olt={method:String,extraParams:r,startParam:String,endParam:String,timeZoneParam:String},slt={parseMeta:function(n){return n.url&&(n.format==="json"||!n.format)?{url:n.url,format:"json",method:(n.method||"GET").toUpperCase(),extraParams:n.extraParams,startParam:n.startParam,endParam:n.endParam,timeZoneParam:n.timeZoneParam}:null},fetch:function(n,t,i){var r=n.eventSource.meta,u=clt(r,n.range,n.context);po(r.method,r.url,u,function(n,i){t({rawEvents:n,xhr:i})},function(n,t){i({message:n,xhr:t})})}},hlt=k({eventSourceRefiners:olt,eventSourceDefs:[slt]});var llt={daysOfWeek:r,startTime:s,endTime:s,duration:s,startRecur:r,endRecur:r},alt={parse:function(n,t){if(n.daysOfWeek||n.startTime||n.endTime||n.startRecur||n.endRecur){var r={daysOfWeek:n.daysOfWeek||null,startTime:n.startTime||null,endTime:n.endTime||null,startRecur:n.startRecur?t.createMarker(n.startRecur):null,endRecur:n.endRecur?t.createMarker(n.endRecur):null},i=void 0;return n.duration&&(i=n.duration),!i&&n.startTime&&n.endTime&&(i=ket(n.endTime,n.startTime)),{allDayGuess:Boolean(!n.startTime&&!n.endTime),duration:i,typeData:r}}return null},expand:function(n,t,i){var r=ui(t,{start:n.startRecur,end:n.endRecur});return r?ylt(n.daysOfWeek,n.startTime,r,i):[]}},vlt=k({recurringTypes:[alt],eventRefiners:llt});en=k({optionChangeHandlers:{events:function(n,t){on([n],t)},eventSources:on}});wo=[rlt,flt,hlt,vlt,en,k({isLoadingFuncs:[function(n){return bg(n.eventSources)},],contentTypeHandlers:{html:function(){return{render:blt}},domNodes:function(){return{render:klt}}},propSetHandlers:{dateProfile:plt,eventStore:wlt}}),];or=function(){function n(n){this.drainedOption=n;this.isRunning=!1;this.isDirty=!1;this.pauseDepths={};this.timeoutId=0}return n.prototype.request=function(n){this.isDirty=!0;this.isPaused()||(this.clearTimeout(),n==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),n))},n.prototype.pause=function(n){n===void 0&&(n="");var t=this.pauseDepths;t[n]=(t[n]||0)+1;this.clearTimeout()},n.prototype.resume=function(n,t){var i,r;n===void 0&&(n="");i=this.pauseDepths;n in i&&(t?delete i[n]:(i[n]-=1,r=i[n],r<=0&&delete i[n]),this.tryDrain())},n.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},n.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},n.prototype.clear=function(){this.clearTimeout();this.isDirty=!1;this.pauseDepths={}},n.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},n.prototype.drained=function(){this.drainedOption&&this.drainedOption()},n}();sn=function(){function n(n,t){this.runTaskOption=n;this.drainedOption=t;this.queue=[];this.delayedRunner=new or(this.drain.bind(this))}return n.prototype.request=function(n,t){this.queue.push(n);this.delayedRunner.request(t)},n.prototype.pause=function(n){this.delayedRunner.pause(n)},n.prototype.resume=function(n,t){this.delayedRunner.resume(n,t)},n.prototype.drain=function(){for(var i=this.queue,t,n;i.length;){for(t=[],n=void 0;n=i.shift();)this.runTask(n),t.push(n);this.drained(t)}},n.prototype.runTask=function(n){this.runTaskOption&&this.runTaskOption(n)},n.prototype.drained=function(n){this.drainedOption&&this.drainedOption(n)},n}();bo=function(){function n(n){var v=this,u,e,r,o,l,w,h,a,b;this.computeOptionsData=f(this._computeOptionsData);this.computeCurrentViewData=f(this._computeCurrentViewData);this.organizeRawLocales=f(dd);this.buildLocale=f(bl);this.buildPluginHooks=aht();this.buildDateEnv=f(nat);this.buildTheme=f(tat);this.parseToolbars=f(nlt);this.buildViewSpecs=f(kht);this.buildDateProfileGenerator=yi(iat);this.buildViewApi=f(rat);this.buildViewUiProps=yi(eat);this.buildEventUiBySource=f(uat,ut);this.buildEventUiBases=f(fat);this.parseContextBusinessHours=yi(oat);this.buildTitle=f(dlt);this.emitter=new fr;this.actionRunner=new sn(this._handleAction.bind(this),this.updateData.bind(this));this.currentCalendarOptionsInput={};this.currentCalendarOptionsRefined={};this.currentViewOptionsInput={};this.currentViewOptionsRefined={};this.currentCalendarOptionsRefiners={};this.getCurrentData=function(){return v.data};this.dispatch=function(n){v.actionRunner.request(n)};this.props=n;this.actionRunner.pause();var c={},t=this.computeOptionsData(n.optionOverrides,c,n.calendarApi),y=t.calendarOptions.initialView||t.pluginHooks.initialView,p=this.computeCurrentViewData(y,t,n.optionOverrides,c);for(n.calendarApi.currentDataManager=this,this.emitter.setThisContext(n.calendarApi),this.emitter.setOptions(p.options),u=ast(t.calendarOptions,t.dateEnv),e=p.dateProfileGenerator.build(u),wt(e.activeRange,u)||(u=e.currentRange.start),r={dateEnv:t.dateEnv,options:t.calendarOptions,pluginHooks:t.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o=0,l=t.pluginHooks.contextInit;o<l.length;o++)w=l[o],w(r);var k=rct(t.calendarOptions,e,r),s={dynamicOptionOverrides:c,currentViewType:y,currentDate:u,dateProfile:e,businessHours:this.parseContextBusinessHours(r),eventSources:k,eventUiBases:{},eventStore:it(),renderableEventStore:it(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(r).selectionConfig},d=i(i({},r),s);for(h=0,a=t.pluginHooks.reducers;h<a.length;h++)b=a[h],i(s,b(null,null,d));aa(s,r)&&this.emitter.trigger("loading",!0);this.state=s;this.updateData();this.actionRunner.resume()}return n.prototype.resetOptions=function(n,t){var r=this.props;r.optionOverrides=t?i(i({},r.optionOverrides),n):n;this.actionRunner.request({type:"NOTHING"})},n.prototype._handleAction=function(n){var v=this,r=v.props,t=v.state,o=v.emitter,y=tct(t.dynamicOptionOverrides,n),s=this.computeOptionsData(r.optionOverrides,y,r.calendarApi),d=nct(t.currentViewType,n),h=this.computeCurrentViewData(d,s,r.optionOverrides,y),a,w,tt,b,k;r.calendarApi.currentDataManager=this;o.setThisContext(r.calendarApi);o.setOptions(h.options);var f={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},e=t.currentDate,u=t.dateProfile;this.data&&this.data.dateProfileGenerator!==h.dateProfileGenerator&&(u=h.dateProfileGenerator.build(e));e=lst(e,n);u=ict(u,n,e,h.dateProfileGenerator);n.type!=="PREV"&&n.type!=="NEXT"&&wt(u.currentRange,e)||(e=u.currentRange.start);var c=uct(t.eventSources,n,u,f),p=lct(t.eventStore,n,c,u,f),it=bg(c),g=it&&!h.options.progressiveEventRendering?t.renderableEventStore||p:p,nt=this.buildViewUiProps(f),rt=nt.eventUiSingleBase,ut=nt.selectionConfig,ft=this.buildEventUiBySource(c),et=this.buildEventUiBases(g.defs,rt,ft),l={dynamicOptionOverrides:y,currentViewType:d,currentDate:e,dateProfile:u,eventSources:c,eventStore:p,renderableEventStore:g,selectionConfig:ut,eventUiBases:et,businessHours:this.parseContextBusinessHours(f),dateSelection:bct(t.dateSelection,n),eventSelection:kct(t.eventSelection,n),eventDrag:dct(t.eventDrag,n),eventResize:gct(t.eventResize,n)},ot=i(i({},f),l);for(a=0,w=s.pluginHooks.reducers;a<w.length;a++)tt=w[a],i(l,tt(t,n,ot));if(b=aa(t,f),k=aa(l,f),!b&&k?o.trigger("loading",!0):b&&!k&&o.trigger("loading",!1),this.state=l,r.onAction)r.onAction(n)},n.prototype.updateData=function(){var h=this,r=h.props,n=h.state,s=this.data,u=this.computeOptionsData(r.optionOverrides,n.dynamicOptionOverrides,r.calendarApi),c=this.computeCurrentViewData(n.currentViewType,u,r.optionOverrides,n.dynamicOptionOverrides),t=this.data=i(i(i({viewTitle:this.buildTitle(n.dateProfile,c.options,u.dateEnv),calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u),c),n),l=u.pluginHooks.optionChangeHandlers,e=s&&s.calendarOptions,o=u.calendarOptions,f;if(e&&e!==o){e.timeZone!==o.timeZone&&(n.eventSources=t.eventSources=fct(t.eventSources,n.dateProfile,t),n.eventStore=t.eventStore=pct(t.eventStore,s.dateEnv,t.dateEnv));for(f in l)e[f]!==o[f]&&l[f](o[f],t)}if(r.onData)r.onData(t)},n.prototype._computeOptionsData=function(n,t,i){var u=this.processRawCalendarOptions(n,t),r=u.refinedOptions,f=u.pluginHooks,e=u.localeDefaults,o=u.availableLocaleData,c=u.extra;hn(c);var l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,f,o,r.defaultRangeSeparator),s=this.buildViewSpecs(f.views,n,t,e),h=this.buildTheme(r,f),a=this.parseToolbars(r,n,h,s,i);return{calendarOptions:r,pluginHooks:f,dateEnv:l,viewSpecs:s,theme:h,toolbarConfig:a,localeDefaults:e,availableRawLocales:o.map}},n.prototype.processRawCalendarOptions=function(n,t){var h=ol([ri,n,t,]),y=h.locales,p=h.locale,e=this.organizeRawLocales(y),w=e.map,c=this.buildLocale(p||e.defaultCode,w).options,o=this.buildPluginHooks(n.plugins||[],wo),l=this.currentCalendarOptionsRefiners=i(i(i(i(i({},fl),ak),vk),o.listenerRefiners),o.optionRefiners),a={},u=ol([ri,c,n,t,]),s={},f=this.currentCalendarOptionsInput,b=this.currentCalendarOptionsRefined,v=!1;for(var r in u)r!=="plugins"&&(u[r]===f[r]||el[r]&&r in f&&el[r](f[r],u[r])?s[r]=b[r]:l[r]?(s[r]=l[r](u[r]),v=!0):a[r]=f[r]);return v&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=s),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:e,localeDefaults:c,extra:a}},n.prototype._computeCurrentViewData=function(n,t,i,r){var f=t.viewSpecs[n],o,s;if(!f)throw new Error('viewType "'+n+"\" is not available. Please make sure you've loaded all neccessary plugins");var e=this.processRawViewOptions(f,t.pluginHooks,t.localeDefaults,i,r),u=e.refinedOptions,h=e.extra;return hn(h),o=this.buildDateProfileGenerator({dateProfileGeneratorClass:f.optionDefaults.dateProfileGeneratorClass,duration:f.duration,durationUnit:f.durationUnit,usesMinMaxTime:f.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,showNonCurrentDates:u.showNonCurrentDates,dayCount:u.dayCount,dateAlignment:u.dateAlignment,dateIncrement:u.dateIncrement,hiddenDays:u.hiddenDays,weekends:u.weekends,nowInput:u.now,validRangeInput:u.validRange,visibleRangeInput:u.visibleRange,monthMode:u.monthMode,fixedWeekCount:u.fixedWeekCount}),s=this.buildViewApi(n,this.getCurrentData,t.dateEnv),{viewSpec:f,options:u,dateProfileGenerator:o,viewApi:s}},n.prototype.processRawViewOptions=function(n,t,r,u,f){var o=ol([ri,n.optionDefaults,r,u,n.optionOverrides,f,]),h=i(i(i(i(i(i({},fl),ak),vk),yk),t.listenerRefiners),t.optionRefiners),s={},a=this.currentViewOptionsInput,v=this.currentViewOptionsRefined,c=!1,l={};for(var e in o)o[e]===a[e]?s[e]=v[e]:(o[e]===this.currentCalendarOptionsInput[e]?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):h[e]?s[e]=h[e](o[e]):l[e]=o[e],c=!0);return c&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:l}},n}();cn=function(n){function t(t){var i=n.call(this,t)||this;return i.handleData=function(n){i.dataManager?i.setState(n):i.state=n},i.dataManager=new bo({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:i.handleData}),i}return u(t,n),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(n){var t=this.props.optionOverrides;t!==n.optionOverrides&&this.dataManager.resetOptions(t)},t}(ao);ln=function(){function n(n){this.timeZoneName=n}return n}();af=function(){function n(){this.strictOrder=!1;this.allowReslicing=!1;this.maxCoord=-1;this.maxStackCnt=-1;this.levelCoords=[];this.entriesByLevel=[];this.stackCnts={}}return n.prototype.addSegs=function(n){for(var u,i=[],t=0,r=n;t<r.length;t++)u=r[t],this.insertEntry(u,i);return i},n.prototype.insertEntry=function(n,t){var i=this.findInsertion(n);return this.isInsertionValid(i,n)?(this.insertEntryAt(n,i),1):this.handleInvalidInsertion(i,n,t)},n.prototype.isInsertionValid=function(n,t){return(this.maxCoord===-1||n.levelCoord+t.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||n.stackCnt<this.maxStackCnt)},n.prototype.handleInvalidInsertion=function(n,t,i){return this.allowReslicing&&n.touchingEntry?this.splitEntry(t,n.touchingEntry,i):(i.push(t),0)},n.prototype.splitEntry=function(n,t,i){var f=0,e=[],r=n.span,u=t.span;return(r.start<u.start&&(f+=this.insertEntry({index:n.index,thickness:n.thickness,span:{start:r.start,end:u.start}},e)),r.end>u.end&&(f+=this.insertEntry({index:n.index,thickness:n.thickness,span:{start:u.end,end:r.end}},e)),f)?(i.push.apply(i,l([{index:n.index,thickness:n.thickness,span:ko(u,r)}],e)),f):(i.push(n),0)},n.prototype.insertEntryAt=function(n,t){var u=this,f=u.entriesByLevel,r=u.levelCoords,i=t.level;i>=r.length||r[i]>t.levelCoord?(pa(r,i,t.levelCoord),pa(f,i,[n])):pa(f[i],t.lateralEnd,n);this.stackCnts[ki(n)]=t.stackCnt},n.prototype.findInsertion=function(n){for(var r,f=this,h=f.levelCoords,p=f.entriesByLevel,w=f.stackCnts,c=f.strictOrder,b=h.length,t=0,l=0,s=0,e=0,a=-1,o=null,i=0;i<b;i+=1){if(r=h[i],!c&&r>=t+n.thickness)break;var v=p[i],u=void 0,y=wa(v,n.span.start,va);for(s=y[0]+y[1],e=s;(u=v[e])&&u.span.start<n.span.end;)(c||t<r+u.thickness&&t+n.thickness>r)&&(t=r+u.thickness,a=i,o=u),e+=1;r<t&&(l=i+1)}return{level:l,levelCoord:t,lateralStart:s,lateralEnd:e,touchingLevel:a,touchingEntry:o,stackCnt:o?w[ki(o)]+1:0}},n.prototype.toRects=function(){for(var o,s,t,r,h,u=this,f=u.entriesByLevel,c=u.levelCoords,l=f.length,e=[],n=0;n<l;n+=1)for(o=f[n],s=c[n],t=0,r=o;t<r.length;t++)h=r[t],e.push(i(i({},h),{levelCoord:s}));return e},n}();di=function(){function n(n){this.component=n.component;this.isHitComboAllowed=n.isHitComboAllowed||null}return n.prototype.destroy=function(){},n}();var vf={},ba=function(){function n(){this.emitter=new fr}return n.prototype.destroy=function(){},n.prototype.setMirrorIsVisible=function(){},n.prototype.setMirrorNeedsRevert=function(){},n.prototype.setAutoScrollEnabled=function(){},n}(),ot={},cat={startTime:s,duration:s,create:Boolean,sourceId:String};var lat=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this,i=this.props.widgetGroups.map(function(t){return n.renderWidgetGroup(t)});return t.apply(void 0,l(["div",{className:"fc-toolbar-chunk"}],i))},r.prototype.renderWidgetGroup=function(n){for(var y,c,p,w,u=this.props,o=this.context.theme,f=[],a=!0,s=0,v=n;s<v.length;s++){var e=v[s],r=e.buttonName,b=e.buttonClick,k=e.buttonText,h=e.buttonIcon;r==="title"?(a=!1,f.push(t("h2",{className:"fc-toolbar-title"},u.title))):(y=h?{"aria-label":r}:{},c=["fc-"+r+"-button",o.getClass("button")],r===u.activeButton&&c.push(o.getClass("buttonActive")),p=!u.isTodayEnabled&&r==="today"||!u.isPrevEnabled&&r==="prev"||!u.isNextEnabled&&r==="next",f.push(t("button",i({disabled:p,className:c.join(" "),onClick:b,type:"button"},y),k||(h?t("span",{className:h}):""))))}return f.length>1?(w=a&&o.getClass("buttonGroup")||"",t.apply(void 0,l(["div",{className:w}],f))):f[0]},r}(e),vn=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var f=this.props,n=f.model,o=f.extraClassName,i=!1,r,u,s=n.center,e;return n.left?(i=!0,r=n.left):r=n.start,n.right?(i=!0,u=n.right):u=n.end,e=[o||"","fc-toolbar",i?"fc-toolbar-ltr":"",],t("div",{className:e.join(" ")},this.renderSection("start",r||[]),this.renderSection("center",s||[]),this.renderSection("end",u||[]))},i.prototype.renderSection=function(n,i){var r=this.props;return t(lat,{key:n,widgetGroups:i,title:r.title,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled})},i}(e),aat=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(n){t.el=n;g(t.props.elRef,n);t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return u(i,n),i.prototype.render=function(){var u=this,n=u.props,f=u.state,i=n.aspectRatio,o=["fc-view-harness",i||n.liquid||n.height?"fc-view-harness-active":"fc-view-harness-passive",],r="",e="";return i?f.availableWidth!==null?r=f.availableWidth/i:e=100/i+"%":r=n.height||"",t("div",{ref:this.handleEl,onClick:n.onClick,className:o.join(" "),style:{height:r,paddingBottom:e}},n.children)},i.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},i.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},i.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},i}(e),vat=function(n){function t(t){var i=n.call(this,t)||this;return i.handleSegClick=function(n,t){var r=i.component,o=r.context,u=ir(t),f,e;u&&r.isValidSegDownEl(n.target)&&(f=d(n.target,".fc-event-forced-url"),e=f?f.querySelector("a[href]").href:"",o.emitter.trigger("eventClick",{el:t,event:new v(r.context,u.eventRange.def,u.eventRange.instance),jsEvent:n,view:o.viewApi}),e&&!n.defaultPrevented&&(window.location.href=e))},i.destroy=hc(t.el,"click",".fc-event",i.handleSegClick),i}return u(t,n),t}(di),yat=function(n){function t(t){var i=n.call(this,t)||this;return i.handleEventElRemove=function(n){n===i.currentSegEl&&i.handleSegLeave(null,i.currentSegEl)},i.handleSegEnter=function(n,t){ir(t)&&(i.currentSegEl=t,i.triggerEvent("eventMouseEnter",n,t))},i.handleSegLeave=function(n,t){i.currentSegEl&&(i.currentSegEl=null,i.triggerEvent("eventMouseLeave",n,t))},i.removeHoverListeners=iet(t.el,".fc-event",i.handleSegEnter,i.handleSegLeave),i}return u(t,n),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(n,t,i){var u=this.component,r=u.context,f=ir(i);(!t||u.isValidSegDownEl(t.target))&&r.emitter.trigger(n,{el:i,event:new v(r,f.eventRange.def,f.eventRange.instance),jsEvent:t,view:r.viewApi})},t}(di),yn=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildViewContext=f(sht),t.buildViewPropTransformers=f(wat),t.buildToolbarProps=f(pat),t.handleNavLinkClick=ob("a[data-navlink]",t._handleNavLinkClick.bind(t)),t.headerRef=h(),t.footerRef=h(),t.interactionsStore={},t.registerInteractiveComponent=function(n,i){var r=hat(n,i),u=[vat,yat,],f=u.concat(t.props.pluginHooks.componentInteractions),e=f.map(function(n){return new n(r)});t.interactionsStore[n.uid]=e;vf[n.uid]=r},t.unregisterInteractiveComponent=function(n){for(var u,i=0,r=t.interactionsStore[n.uid];i<r.length;i++)u=r[i],u.destroy();delete t.interactionsStore[n.uid];delete vf[n.uid]},t.resizeRunner=new or(function(){t.props.emitter.trigger("_resize",!0);t.props.emitter.trigger("windowResize",{view:t.props.viewApi})}),t.handleWindowResize=function(n){var i=t.props.options;i.handleWindowResize&&n.target===window&&t.resizeRunner.request(i.windowResizeDelay)},t}return u(r,n),r.prototype.render=function(){var n=this.props,r=n.toolbarConfig,u=n.options,e=this.buildToolbarProps(n.viewSpec,n.dateProfile,n.dateProfileGenerator,n.currentDate,of(n.options.now,n.dateEnv),n.viewTitle),o=!1,f="",s,h;return n.isHeightAuto||n.forPrint?f="":u.height!=null?o=!0:u.contentHeight!=null?f=u.contentHeight:s=Math.max(u.aspectRatio,.5),h=this.buildViewContext(n.viewSpec,n.viewApi,n.options,n.dateProfileGenerator,n.dateEnv,n.theme,n.pluginHooks,n.dispatch,n.getCurrentData,n.emitter,n.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),t(lt.Provider,{value:h},r.headerToolbar&&t(vn,i({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:r.headerToolbar},e)),t(aat,{liquid:o,height:f,aspectRatio:s,onClick:this.handleNavLinkClick},this.renderView(n),this.buildAppendContent()),r.footerToolbar&&t(vn,i({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:r.footerToolbar},e)))},r.prototype.componentDidMount=function(){var n=this.props,t,i;this.calendarInteractions=n.pluginHooks.calendarInteractions.map(function(t){return new t(n)});window.addEventListener("resize",this.handleWindowResize);t=n.pluginHooks.propSetHandlers;for(i in t)t[i](n[i],n)},r.prototype.componentDidUpdate=function(n){var t=this.props,r=t.pluginHooks.propSetHandlers;for(var i in r)t[i]!==n[i]&&r[i](t[i],t)},r.prototype.componentWillUnmount=function(){var n,t,i;for(window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear(),n=0,t=this.calendarInteractions;n<t.length;n++)i=t[n],i.destroy();this.props.emitter.trigger("_unmount")},r.prototype._handleNavLinkClick=function(n,t){var f=this.props,e=f.dateEnv,o=f.options,s=f.calendarApi,i=t.getAttribute("data-navlink");i=i?JSON.parse(i):{};var h=e.createMarker(i.date),r=i.type,u=r==="day"?o.navLinkDayClick:r==="week"?o.navLinkWeekClick:null;typeof u=="function"?u.call(s,e.toDate(h),n):(typeof u=="string"&&(r=u),s.zoomTo(h,r))},r.prototype.buildAppendContent=function(){var n=this.props,i=n.pluginHooks.viewContainerAppends.map(function(t){return t(n)});return t.apply(void 0,l([c,{}],i))},r.prototype.renderView=function(n){for(var e,o,s=n.pluginHooks,h=n.viewSpec,r={dateProfile:n.dateProfile,businessHours:n.businessHours,eventStore:n.renderableEventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,isHeightAuto:n.isHeightAuto,forPrint:n.forPrint},c=this.buildViewPropTransformers(s.viewPropsTransformers),u=0,f=c;u<f.length;u++)e=f[u],i(r,e.transform(r,n));return o=h.component,t(o,i({},r))},r}(lf);ka=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return u(t,n),t.prototype.render=function(){var t=this.props,n=t.options,i=this.state.forPrint,r=i||n.height==="auto"||n.contentHeight==="auto",f=!r&&n.height!=null?n.height:"",u=["fc",i?"fc-media-print":"fc-media-screen","fc-direction-"+n.direction,t.theme.getClass("root"),];return oo()||u.push("fc-liquid-hack"),t.children(u,f,r,i)},t.prototype.componentDidMount=function(){var n=this.props.emitter;n.on("_beforeprint",this.handleBeforePrint);n.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var n=this.props.emitter;n.off("_beforeprint",this.handleBeforePrint);n.off("_afterprint",this.handleAfterPrint)},t}(e);ga="fc-col-header-cell";var nv=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var e=this.context,o=e.dateEnv,r=e.options,s=e.theme,h=e.viewApi,n=this.props,u=n.date,c=n.dateProfile,f=nu(u,n.todayRange,null,c),l=[ga].concat(rr(f,s)),a=o.format(u,n.dayHeaderFormat),v=r.navLinks&&!f.isDisabled&&n.colCnt>1?{"data-navlink":ur(u),tabIndex:0}:{},y=i(i(i({date:o.toDate(u),view:h},n.extraHookProps),{text:a}),f);return t(b,{hookProps:y,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:pn,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},function(r,e,o,s){return t("th",i({ref:r,className:l.concat(e).join(" "),"data-date":f.isDisabled?undefined:br(u),colSpan:n.colSpan},n.extraDataAttrs),t("div",{className:"fc-scrollgrid-sync-inner"},!f.isDisabled&&t("a",i({ref:o,className:["fc-col-header-cell-cushion",n.isSticky?"fc-sticky":"",].join(" ")},v),s)))})},r}(e),tv=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props,r=this.context,o=r.dateEnv,s=r.theme,h=r.viewApi,u=r.options,f=p(new Date(2592e5),n.dow),e={dow:n.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[ga].concat(rr(e,s),n.extraClassNames||[]),l=o.format(f,n.dayHeaderFormat),a=i(i(i(i({date:f},e),{view:h}),n.extraHookProps),{text:l});return t(b,{hookProps:a,classNames:u.dayHeaderClassNames,content:u.dayHeaderContent,defaultContent:pn,didMount:u.dayHeaderDidMount,willUnmount:u.dayHeaderWillUnmount},function(r,u,f,e){return t("th",i({ref:r,className:c.concat(u).join(" "),colSpan:n.colSpan},n.extraDataAttrs),t("div",{className:"fc-scrollgrid-sync-inner"},t("a",{className:["fc-col-header-cell-cushion",n.isSticky?"fc-sticky":"",].join(" "),ref:f},e)))})},r}(e),at=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.initialNowDate=of(i.options.now,i.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return u(t,n),t.prototype.render=function(){var n=this,i=n.props,t=n.state;return i.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(n){n.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var r=this,u=r.props,f=r.context,e=gt(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),n=f.dateEnv.startOf(e,u.unit),t=f.dateEnv.add(n,s(1,u.unit)),i=t.valueOf()-e.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:n,todayRange:wn(n)},nextState:{nowDate:t,todayRange:wn(t)},waitMs:i}},t.prototype.setTimeout=function(){var n=this,t=this.computeTiming(),i=t.nextState,r=t.waitMs;this.timeoutId=setTimeout(function(){n.setState(i,function(){n.setTimeout()})},r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=lt,t}(ao);ts=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.createDayHeaderFormatter=f(bat),t}return u(i,n),i.prototype.render=function(){var e=this.context,n=this.props,i=n.dates,o=n.dateProfile,r=n.datesRepDistinctDays,u=n.renderIntro,f=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,i.length);return t(at,{unit:"day"},function(n,e){return t("tr",null,u&&u("day"),i.map(function(n){return r?t(nv,{key:n.toISOString(),date:n,dateProfile:o,todayRange:e,colCnt:i.length,dayHeaderFormat:f}):t(tv,{key:n.getUTCDay(),dow:n.getUTCDay(),dayHeaderFormat:f})}))})},i}(e);var iv=function(){function n(n,t){for(var i=n.start,e=n.end,r=[],u=[],f=-1;i<e;)t.isHiddenDay(i)?r.push(f+.5):(f+=1,r.push(f),u.push(i)),i=p(i,1);this.dates=u;this.indices=r;this.cnt=u.length}return n.prototype.sliceRange=function(n){var r=this.getDateDayIndex(n.start),u=this.getDateDayIndex(p(n.end,-1)),t=Math.max(0,r),i=Math.min(this.cnt-1,u);return(t=Math.ceil(t),i=Math.floor(i),t<=i)?{firstIndex:t,lastIndex:i,isStart:r===t,isEnd:u===i}:null},n.prototype.getDateDayIndex=function(n){var t=this.indices,i=Math.floor(ni(this.dates[0],n));return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},n}(),rv=function(){function n(n,t){var r=n.dates,i,f,u;if(t){for(f=r[0].getUTCDay(),i=1;i<r.length;i+=1)if(r[i].getUTCDay()===f)break;u=Math.ceil(r.length/i)}else u=1,i=r.length;this.rowCnt=u;this.colCnt=i;this.daySeries=n;this.cells=this.buildCells();this.headerDates=this.buildHeaderDates()}return n.prototype.buildCells=function(){for(var i,n,r=[],t=0;t<this.rowCnt;t+=1){for(i=[],n=0;n<this.colCnt;n+=1)i.push(this.buildCell(t,n));r.push(i)}return r},n.prototype.buildCell=function(n,t){var i=this.daySeries.dates[n*this.colCnt+t];return{key:i.toISOString(),date:i}},n.prototype.buildHeaderDates=function(){for(var t=[],n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t},n.prototype.sliceRange=function(n){var r=this.colCnt,t=this.daySeries.sliceRange(n),o=[],e,u;if(t)for(var s=t.firstIndex,f=t.lastIndex,i=s;i<=f;)e=Math.floor(i/r),u=Math.min((e+1)*r,f+1),o.push({row:e,firstCol:i%r,lastCol:(u-1)%r,isStart:t.isStart&&i===s,isEnd:t.isEnd&&u-1===f}),i=u;return o},n}(),is=function(){function n(){this.sliceBusinessHours=f(this._sliceBusinessHours);this.sliceDateSelection=f(this._sliceDateSpan);this.sliceEventStore=f(this._sliceEventStore);this.sliceEventDrag=f(this._sliceInteraction);this.sliceEventResize=f(this._sliceInteraction);this.forceDayIfListItem=!1}return n.prototype.sliceProps=function(n,t,i,r){for(var f,o,u=[],e=4;e<arguments.length;e++)u[e-4]=arguments[e];return f=n.eventUiBases,o=this.sliceEventStore.apply(this,l([n.eventStore,f,t,i],u)),{dateSelectionSegs:this.sliceDateSelection.apply(this,l([n.dateSelection,f,r],u)),businessHourSegs:this.sliceBusinessHours.apply(this,l([n.businessHours,t,i,r],u)),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag.apply(this,l([n.eventDrag,f,t,i],u)),eventResize:this.sliceEventResize.apply(this,l([n.eventResize,f,t,i],u)),eventSelection:n.eventSelection}},n.prototype.sliceNowDate=function(n,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this._sliceDateSpan.apply(this,l([{range:{start:n,end:gt(n,1)},allDay:!1},{},t],r))},n.prototype._sliceBusinessHours=function(n,t,i,r){for(var f=[],u=4;u<arguments.length;u++)f[u-4]=arguments[u];return n?this._sliceEventStore.apply(this,l([pr(n,uv(t,Boolean(i)),r),{},t,i],f)).bg:[]},n.prototype._sliceEventStore=function(n,t,i,r){for(var e,f=[],u=4;u<arguments.length;u++)f[u-4]=arguments[u];return n?(e=ff(n,t,uv(i,Boolean(r)),r),{bg:this.sliceEventRanges(e.bg,f),fg:this.sliceEventRanges(e.fg,f)}):{bg:[],fg:[]}},n.prototype._sliceInteraction=function(n,t,i,r){for(var e,f=[],u=4;u<arguments.length;u++)f[u-4]=arguments[u];return n?(e=ff(n.mutatedEvents,t,uv(i,Boolean(r)),r),{segs:this.sliceEventRanges(e.fg,f),affectedInstances:n.affectedEvents.instances,isEvent:n.isEvent}):null},n.prototype._sliceDateSpan=function(n,t,i){for(var s,f,u,e,h,o=[],r=3;r<arguments.length;r++)o[r-3]=arguments[r];if(!n)return[];for(s=est(n,t,i),f=this.sliceRange.apply(this,l([n.range],o)),u=0,e=f;u<e.length;u++)h=e[u],h.eventRange=s;return f},n.prototype.sliceEventRanges=function(n,t){for(var f,i=[],r=0,u=n;r<u.length;r++)f=u[r],i.push.apply(i,this.sliceEventRange(f,t));return i},n.prototype.sliceEventRange=function(n,t){var r=n.range,f,u,e,i;for(this.forceDayIfListItem&&n.ui.display==="list-item"&&(r={start:r.start,end:p(r.start,1)}),f=this.sliceRange.apply(this,l([r],t)),u=0,e=f;u<e.length;u++)i=e[u],i.eventRange=n,i.isStart=n.isStart&&i.isStart,i.isEnd=n.isEnd&&i.isEnd;return f},n}();var us=/^(visible|hidden)$/,fs=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.handleEl=function(n){t.el=n;g(t.props.elRef,n)},t}return u(i,n),i.prototype.render=function(){var n=this.props,u=n.liquid,f=n.liquidIsAbsolute,i=u&&f,r=["fc-scroller"];return u&&(f?r.push("fc-scroller-liquid-absolute"):r.push("fc-scroller-liquid")),t("div",{ref:this.handleEl,className:r.join(" "),style:{overflowX:n.overflowX,overflowY:n.overflowY,left:i&&-(n.overcomeLeft||0)||"",right:i&&-(n.overcomeRight||0)||"",bottom:i&&-(n.overcomeBottom||0)||"",marginLeft:!i&&-(n.overcomeLeft||0)||"",marginRight:!i&&-(n.overcomeRight||0)||"",marginBottom:!i&&-(n.overcomeBottom||0)||"",maxHeight:n.maxHeight||""}},n.children)},i.prototype.needsXScrolling=function(){var n,i;if(us.test(this.props.overflowX))return!1;var r=this.el,u=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),t=r.children;for(n=0;n<t.length;n+=1)if(i=t[n],i.getBoundingClientRect().width>u)return!0;return!1},i.prototype.needsYScrolling=function(){var n,i;if(us.test(this.props.overflowY))return!1;var r=this.el,u=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),t=r.children;for(n=0;n<t.length;n+=1)if(i=t[n],i.getBoundingClientRect().height>u)return!0;return!1},i.prototype.getXScrollbarWidth=function(){return us.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},i.prototype.getYScrollbarWidth=function(){return us.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},i}(e),nt=function(){function n(n){var t=this;this.masterCallback=n;this.currentMap={};this.depths={};this.callbackMap={};this.handleValue=function(n,i){var e=t,r=e.depths,u=e.currentMap,f=!1,o=!1;n!==null?(f=i in u,u[i]=n,r[i]=(r[i]||0)+1,o=!0):(r[i]-=1,r[i]||(delete u[i],delete t.callbackMap[i],f=!0));t.masterCallback&&(f&&t.masterCallback(null,String(i)),o&&t.masterCallback(n,String(i)))}}return n.prototype.createRef=function(n){var i=this,t=this.callbackMap[n];return t||(t=this.callbackMap[n]=function(t){i.handleValue(t,String(n))}),t},n.prototype.collect=function(n,t,i){return gc(this.currentMap,n,t,i)},n.prototype.getAll=function(){return kc(this.currentMap)},n}();pf=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.processCols=f(function(n){return n},cv),t.renderMicroColGroup=f(lv),t.scrollerRefs=new nt,t.scrollerElRefs=new nt(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState(i({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return u(r,n),r.prototype.render=function(){var h=this,r=h.props,y=h.state,p=h.context,f=r.sections||[],w=this.processCols(r.cols),c=this.renderMicroColGroup(w,y.shrinkWidth),v=yv(r.liquid,p),u;r.collapsibleWidth&&v.push("fc-scrollgrid-collapsible");for(var a=f.length,n=0,i,e=[],o=[],s=[];n<a&&(i=f[n]).type==="header";)e.push(this.renderSection(i,c)),n+=1;while(n<a&&(i=f[n]).type==="body")o.push(this.renderSection(i,c)),n+=1;while(n<a&&(i=f[n]).type==="footer")s.push(this.renderSection(i,c)),n+=1;return u=!oo(),t("table",{className:v.join(" "),style:{height:r.height}},Boolean(!u&&e.length)&&t.apply(void 0,l(["thead",{}],e)),Boolean(!u&&o.length)&&t.apply(void 0,l(["tbody",{}],o)),Boolean(!u&&s.length)&&t.apply(void 0,l(["tfoot",{}],s)),u&&t.apply(void 0,l(l(l(["tbody",{}],e),o),s)))},r.prototype.renderSection=function(n,i){return"outerContent"in n?t(c,{key:n.key},n.outerContent):t("tr",{key:n.key,className:pv(n,this.props.liquid).join(" ")},this.renderChunkTd(n,i,n.chunk))},r.prototype.renderChunkTd=function(n,i,r){if("outerContent"in r)return r.outerContent;var f=this.props,e=this.state,c=e.forceYScrollbars,o=e.scrollerClientWidths,s=e.scrollerClientHeights,l=sv(f,n),h=es(f,n),a=f.liquid?c?"auto":l?"auto":"hidden":"visible",u=n.key,v=hv(n,r,{tableColGroupNode:i,tableMinWidth:"",clientWidth:!f.collapsibleWidth&&o[u]!==undefined?o[u]:null,clientHeight:s[u]!==undefined?s[u]:null,expandRows:n.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return t("td",{ref:r.elRef},t("div",{className:"fc-scroller-harness"+(h?" fc-scroller-harness-liquid":"")},t(fs,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:a,overflowX:f.liquid?"hidden":"visible",maxHeight:n.maxHeight,liquid:h,liquidIsAbsolute:!0},v)))},r.prototype._handleScrollerEl=function(n,t){var i=tvt(this.props.sections,t);i&&g(i.chunk.scrollerElRef,n)},r.prototype.componentDidMount=function(){this.handleSizing();this.context.addResizeHandler(this.handleSizing)},r.prototype.componentDidUpdate=function(){this.handleSizing()},r.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},r.prototype.computeShrinkWidth=function(){return vv(this.props.cols)?ov(this.scrollerElRefs.getAll()):0},r.prototype.computeScrollerDims=function(){var l=ra(),e=this,o=e.scrollerRefs,a=e.scrollerElRefs,i=!1,s={},h={},n,r,t,u,f;for(n in o.currentMap)if(r=o.currentMap[n],r&&r.needsYScrolling()){i=!0;break}for(t=0,u=this.props.sections;t<u.length;t++){var v=u[t],n=v.key,c=a.currentMap[n];c&&(f=c.parentNode,s[n]=Math.floor(f.getBoundingClientRect().width-(i?l.y:0)),h[n]=Math.floor(f.getBoundingClientRect().height))}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:h}},r}(e);pf.addStateEquality({scrollerClientWidths:ut,scrollerClientHeights:ut});ru=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.elRef=h(),t}return u(i,n),i.prototype.render=function(){var s=this,n=s.props,r=s.context,u=r.options,i=n.seg,e=i.eventRange,f=e.ui,o={event:new v(r,e.def,e.instance),view:r.viewApi,timeText:n.timeText,textColor:f.textColor,backgroundColor:f.backgroundColor,borderColor:f.borderColor,isDraggable:!n.disableDragging&&rd(i,r),isStartResizable:!n.disableResizing&&ud(i,r),isEndResizable:!n.disableResizing&&fd(i),isMirror:Boolean(n.isDragging||n.isResizing||n.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(n.isPast),isFuture:Boolean(n.isFuture),isToday:Boolean(n.isToday),isSelected:Boolean(n.isSelected),isDragging:Boolean(n.isDragging),isResizing:Boolean(n.isResizing)},h=ed(o).concat(f.classNames);return t(b,{hookProps:o,classNames:u.eventClassNames,content:u.eventContent,defaultContent:n.defaultContent,didMount:u.eventDidMount,willUnmount:u.eventWillUnmount,elRef:this.elRef},function(t,i,r,u){return n.children(t,h.concat(i),r,u,o)})},i.prototype.componentDidMount=function(){cl(this.elRef.current,this.props.seg)},i.prototype.componentDidUpdate=function(n){var t=this.props.seg;t!==n.seg&&cl(this.elRef.current,t)},i}(e);wf=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var u=this,n=u.props,f=u.context,r=n.seg,e=f.options.eventTimeFormat||n.defaultTimeFormat,o=gr(r,e,f,n.defaultDisplayEventTime,n.defaultDisplayEventEnd);return t(ru,{seg:r,timeText:o,disableDragging:n.disableDragging,disableResizing:n.disableResizing,defaultContent:n.defaultContent||ivt,isDragging:n.isDragging,isResizing:n.isResizing,isDateSelecting:n.isDateSelecting,isSelected:n.isSelected,isPast:n.isPast,isFuture:n.isFuture,isToday:n.isToday},function(u,f,e,o,s){return t("a",i({className:n.extraClassNames.concat(f).join(" "),style:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},ref:u},rvt(r)),t("div",{className:"fc-event-main",ref:e,style:{color:s.textColor}},o),s.isStartResizable&&t("div",{className:"fc-event-resizer fc-event-resizer-start"}),s.isEndResizable&&t("div",{className:"fc-event-resizer fc-event-resizer-end"}))})},r}(e);var cr=function(n){return t(lt.Consumer,null,function(i){var r=i.options,u={isAxis:n.isAxis,date:i.dateEnv.toDate(n.date),view:i.viewApi};return t(b,{hookProps:u,classNames:r.nowIndicatorClassNames,content:r.nowIndicatorContent,didMount:r.nowIndicatorDidMount,willUnmount:r.nowIndicatorWillUnmount},n.children)})},uvt=y({day:"numeric"}),os=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var r=this,n=r.props,i=r.context,u=i.options,f=gn({date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraProps:n.extraHookProps,viewApi:i.viewApi,dateEnv:i.dateEnv});return t(tu,{hookProps:f,content:u.dayCellContent,defaultContent:n.defaultContent},n.children)},i}(e);bf=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.refineHookProps=yi(gn),t.normalizeClassNames=iu(),t}return u(i,n),i.prototype.render=function(){var f=this,n=f.props,r=f.context,u=r.options,i=this.refineHookProps({date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraProps:n.extraHookProps,viewApi:r.viewApi,dateEnv:r.dateEnv}),e=rr(i,r.theme).concat(i.isDisabled?[]:this.normalizeClassNames(u.dayCellClassNames,i)),o=i.isDisabled?{}:{"data-date":br(n.date)};return t(bi,{hookProps:i,didMount:u.dayCellDidMount,willUnmount:u.dayCellWillUnmount,elRef:n.elRef},function(t){return n.children(t,e,o,i.isDisabled)})},i}(e);kf=function(n){return t(ru,{defaultContent:fvt,seg:n.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:n.isPast,isFuture:n.isFuture,isToday:n.isToday},function(n,i,r,u,f){return t("div",{ref:n,className:["fc-bg-event"].concat(i).join(" "),style:{backgroundColor:f.backgroundColor}},u)})};hs=function(n){return t(lt.Consumer,null,function(i){var f=i.dateEnv,r=i.options,u=n.date,e=r.weekNumberFormat||n.defaultFormat,o=f.computeWeekNumber(u),s=f.format(u,e),h={num:o,text:s,date:u};return t(b,{hookProps:h,classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:evt,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},n.children)})};var wv=10,ovt=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.handleRootEl=function(n){t.rootEl=n;t.props.elRef&&g(t.props.elRef,n)},t.handleDocumentMousedown=function(n){var i=tet(n);t.rootEl.contains(i)||window.auto_close_popup===!1||t.handleCloseClick()},t.handleCloseClick=function(){var n=t.props.onClose;n&&n()},t}return u(r,n),r.prototype.render=function(){var r=this.context.theme,n=this.props,u=["fc-popover",r.getClass("popover"),].concat(n.extraClassNames||[]);return cg(t("div",i({className:u.join(" ")},n.extraAttrs,{ref:this.handleRootEl}),t("div",{className:"fc-popover-header "+r.getClass("popoverHeader")},t("span",{className:"fc-popover-title"},n.title),t("span",{className:"fc-popover-close "+r.getIconClass("close"),onClick:this.handleCloseClick})),t("div",{className:"fc-popover-body "+r.getClass("popoverContent")},n.children)),n.parentEl)},r.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMousedown);this.updateSize()},r.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMousedown)},r.prototype.updateSize=function(){var h=this.context.isRtl,e=this.props,o=e.alignmentEl,c=e.alignGridTop,n=this.rootEl,i=rht(o),u,a,f,s;if(i){var l=n.getBoundingClientRect(),r=c?d(o,".fc-scrollgrid").getBoundingClientRect().top:i.top,t=h?i.right-l.width:i.left;n.style.display="block";u=n.clientWidth;a=n.clientHeigh;r=Math.max(r,wv);t=Math.min(t-u,document.documentElement.clientWidth-wv-u);t=Math.max(t,wv);f=n.offsetParent.getBoundingClientRect();s={top:r-f.top,left:t-f.left};ci(n,s)}},r}(e),svt=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.handleRootEl=function(n){t.rootEl=n;n?t.context.registerInteractiveComponent(t,{el:n,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return u(r,n),r.prototype.render=function(){var r=this.context,e=r.options,o=r.dateEnv,n=this.props,i=n.startDate,u=n.todayRange,f=n.dateProfile,s=o.format(i,e.dayPopoverFormat);return t(bf,{date:i,dateProfile:f,todayRange:u,elRef:this.handleRootEl},function(r,e,o){return t(ovt,{elRef:r,title:s,extraClassNames:["fc-more-popover"].concat(e),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},t(os,{date:i,dateProfile:f,todayRange:u},function(n,i){return i&&t("div",{className:"fc-more-popover-misc",ref:n},i)}),n.children)})},r.prototype.queryHit=function(n,t,r,u){var e=this,o=e.rootEl,f=e.props;return n>=0&&n<r&&t>=0&&t<u?{dateProfile:f.dateProfile,dateSpan:i({allDay:!0,range:{start:f.startDate,end:f.endDate}},f.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:u},layer:1}:null},r}(rt),cs=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.linkElRef=h(),t.state={isPopoverOpen:!1},t.handleClick=function(n){function o(n){var t=n.eventRange,u=t.def,f=t.instance,i=t.range;return{event:new v(r,u,f),start:r.dateEnv.toDate(i.start),end:r.dateEnv.toDate(i.end),isStart:n.isStart,isEnd:n.isEnd}}var f=t,u=f.props,r=f.context,i=r.options.moreLinkClick,e=ntt(u).start;typeof i=="function"&&(i=i({date:e,allDay:Boolean(u.allDayDate),allSegs:u.allSegs.map(o),hiddenSegs:u.hiddenSegs.map(o),jsEvent:n,view:r.viewApi}));i&&i!=="popover"?typeof i=="string"&&r.calendarApi.zoomTo(e,i):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return u(i,n),i.prototype.render=function(){var i=this,n=this.props;return t(lt.Consumer,null,function(r){var s=r.viewApi,u=r.options,h=r.calendarApi,e=u.moreLinkText,f=n.moreCnt,o=ntt(n),l={num:f,shortText:"+"+f,text:typeof e=="function"?e.call(h,f):"+"+f+" "+e,view:s};return t(c,null,Boolean(n.moreCnt)&&t(b,{elRef:i.linkElRef,hookProps:l,classNames:u.moreLinkClassNames,content:u.moreLinkContent,defaultContent:n.defaultContent||hvt,didMount:u.moreLinkDidMount,willUnmount:u.moreLinkWillUnmount},function(t,r,u,f){return n.children(t,["fc-more-link"].concat(r),u,f,i.handleClick)}),i.state.isPopoverOpen&&t(svt,{startDate:o.start,endDate:o.end,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:n.extraDateSpan,parentEl:i.parentEl,alignmentEl:n.alignmentElRef.current,alignGridTop:n.alignGridTop,onClose:i.handlePopoverClose},n.popoverContent()))})},i.prototype.componentDidMount=function(){this.updateParentEl()},i.prototype.componentDidUpdate=function(){this.updateParentEl()},i.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=d(this.linkElRef.current,".fc-view-harness"))},i}(e);ttt="5.8.0";itt=function(n){function r(r,u){u===void 0&&(u={});var f=n.call(this)||this;return f.isRendering=!1,f.isRendered=!1,f.currentClassNames=[],f.customContentRenderId=0,f.handleAction=function(n){switch(n.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":f.renderRunner.tryDrain()}},f.handleData=function(n){f.currentData=n;f.renderRunner.request(n.calendarOptions.rerenderDelay)},f.handleRenderRequest=function(){if(f.isRendering){f.isRendered=!0;var n=f.currentData;hg(t(ka,{options:n.calendarOptions,theme:n.theme,emitter:n.emitter},function(r,u,e,o){return f.setClassNames(r),f.setHeight(u),t(vo.Provider,{value:f.customContentRenderId},t(yn,i({isHeightAuto:e,forPrint:o},n)))}),f.el)}else f.isRendered&&(f.isRendered=!1,lg(f.el),f.setClassNames([]),f.setHeight(""));cf()},f.el=r,f.renderRunner=new or(f.handleRenderRequest),new bo({optionOverrides:u,calendarApi:f,onAction:f.handleAction,onData:f.handleData}),f}return u(r,n),Object.defineProperty(r.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),r.prototype.render=function(){var n=this.isRendering;n?this.customContentRenderId+=1:this.isRendering=!0;this.renderRunner.request();n&&this.updateSize()},r.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},r.prototype.updateSize=function(){n.prototype.updateSize.call(this);cf()},r.prototype.batchRendering=function(n){this.renderRunner.pause("batchRendering");n();this.renderRunner.resume("batchRendering")},r.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},r.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},r.prototype.resetOptions=function(n,t){this.currentDataManager.resetOptions(n,t)},r.prototype.setClassNames=function(n){var u,t,f,r,e,i;if(!ht(n,this.currentClassNames)){for(u=this.el.classList,t=0,f=this.currentClassNames;t<f.length;t++)i=f[t],u.remove(i);for(r=0,e=n;r<e.length;r++)i=e[r],u.add(i);this.currentClassNames=n}},r.prototype.setHeight=function(n){sc(this.el,"height",n)},r}(pi);ot.touchMouseIgnoreWait=500;var bv=0,ls=0,kv=!1,as=function(){function n(n){var t=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(n){if(!t.shouldIgnoreMouse()&&vvt(n)&&t.tryStart(n)){var i=t.createEventFromMouse(n,!0);t.emitter.trigger("pointerdown",i);t.initScrollWatch(i);t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove);document.addEventListener("mouseup",t.handleMouseUp)}};this.handleMouseMove=function(n){var i=t.createEventFromMouse(n);t.recordCoords(i);t.emitter.trigger("pointermove",i)};this.handleMouseUp=function(n){document.removeEventListener("mousemove",t.handleMouseMove);document.removeEventListener("mouseup",t.handleMouseUp);t.emitter.trigger("pointerup",t.createEventFromMouse(n));t.cleanup()};this.handleTouchStart=function(n){var r,i;t.tryStart(n)&&(t.isTouchDragging=!0,r=t.createEventFromTouch(n,!0),t.emitter.trigger("pointerdown",r),t.initScrollWatch(r),i=n.target,t.shouldIgnoreMove||i.addEventListener("touchmove",t.handleTouchMove),i.addEventListener("touchend",t.handleTouchEnd),i.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0))};this.handleTouchMove=function(n){var i=t.createEventFromTouch(n);t.recordCoords(i);t.emitter.trigger("pointermove",i)};this.handleTouchEnd=function(n){if(t.isDragging){var i=n.target;i.removeEventListener("touchmove",t.handleTouchMove);i.removeEventListener("touchend",t.handleTouchEnd);i.removeEventListener("touchcancel",t.handleTouchEnd);window.removeEventListener("scroll",t.handleTouchScroll,!0);t.emitter.trigger("pointerup",t.createEventFromTouch(n));t.cleanup();t.isTouchDragging=!1;yvt()}};this.handleTouchScroll=function(){t.wasTouchScroll=!0};this.handleScroll=function(n){if(!t.shouldIgnoreMove){var i=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:n,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:i,pageY:r,deltaX:i-t.origPageX,deltaY:r-t.origPageY})}};this.containerEl=n;this.emitter=new fr;n.addEventListener("mousedown",this.handleMouseDown);n.addEventListener("touchstart",this.handleTouchStart,{passive:!0});pvt()}return n.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown);this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0});wvt()},n.prototype.tryStart=function(n){var t=this.querySubjectEl(n),i=n.target;return t&&(!this.handleSelector||d(i,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1},n.prototype.cleanup=function(){kv=!1;this.isDragging=!1;this.subjectEl=null;this.destroyScrollWatch()},n.prototype.querySubjectEl=function(n){return this.selector?d(n.target,this.selector):this.containerEl},n.prototype.shouldIgnoreMouse=function(){return bv||this.isTouchDragging},n.prototype.cancelTouchScroll=function(){this.isDragging&&(kv=!0)},n.prototype.initScrollWatch=function(n){this.shouldWatchScroll&&(this.recordCoords(n),window.addEventListener("scroll",this.handleScroll,!0))},n.prototype.recordCoords=function(n){this.shouldWatchScroll&&(this.prevPageX=n.pageX,this.prevPageY=n.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},n.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},n.prototype.createEventFromMouse=function(n,t){var i=0,r=0;return t?(this.origPageX=n.pageX,this.origPageY=n.pageY):(i=n.pageX-this.origPageX,r=n.pageY-this.origPageY),{origEvent:n,isTouch:!1,subjectEl:this.subjectEl,pageX:n.pageX,pageY:n.pageY,deltaX:i,deltaY:r}},n.prototype.createEventFromTouch=function(n,t){var u=n.touches,i,r,f=0,e=0;return u&&u.length?(i=u[0].pageX,r=u[0].pageY):(i=n.pageX,r=n.pageY),t?(this.origPageX=i,this.origPageY=r):(f=i-this.origPageX,e=r-this.origPageY),{origEvent:n,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:r,deltaX:f,deltaY:e}},n}();var bvt=function(){function n(){this.isVisible=!1;this.sourceEl=null;this.mirrorEl=null;this.sourceElRect=null;this.parentNode=document.body;this.zIndex=9999;this.revertDuration=0}return n.prototype.start=function(n,t,i){this.sourceEl=n;this.sourceElRect=this.sourceEl.getBoundingClientRect();this.origScreenX=t-window.pageXOffset;this.origScreenY=i-window.pageYOffset;this.deltaX=0;this.deltaY=0;this.updateElPosition()},n.prototype.handleMove=function(n,t){this.deltaX=n-window.pageXOffset-this.origScreenX;this.deltaY=t-window.pageYOffset-this.origScreenY;this.updateElPosition()},n.prototype.setIsVisible=function(n){n?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=n,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=n)},n.prototype.stop=function(n,t){var r=this,i=function(){r.cleanup();t()};n&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)},n.prototype.doRevertAnimation=function(n,t){var i=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();i.style.transition="top "+t+"ms,left "+t+"ms";ci(i,{left:r.left,top:r.top});sb(i,function(){i.style.transition="";n()})},n.prototype.cleanup=function(){this.mirrorEl&&(vr(this.mirrorEl),this.mirrorEl=null);this.sourceEl=null},n.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&ci(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},n.prototype.getMirrorEl=function(){var t=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.classList.add("fc-unselectable"),n.classList.add("fc-event-dragging"),ci(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:t.right-t.left,height:t.bottom-t.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n},n}(),utt=function(n){function t(t,i){var r=n.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop();r.scrollLeft=r.scrollController.getScrollLeft();r.handleScrollChange()},r.scrollController=t,r.doesListening=i,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return u(t,n),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(n){this.scrollController.setScrollTop(n);this.doesListening||(this.scrollTop=Math.max(Math.min(n,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(n){this.scrollController.setScrollLeft(n);this.doesListening||(this.scrollLeft=Math.max(Math.min(n,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(lo),ftt=function(n){function t(t,i){return n.call(this,new og(t),i)||this}return u(t,n),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return fa(this.scrollController.el)},t}(utt),kvt=function(n){function t(t){return n.call(this,new sg,t)||this}return u(t,n),t.prototype.getEventTarget=function(){return window},t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(utt),ett=typeof performance=="function"?performance.now:Date.now,dvt=function(){function n(){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 t,i;n.isAnimating&&(t=n.computeBestEdge(n.pointerScreenX+window.pageXOffset,n.pointerScreenY+window.pageYOffset),t?(i=ett(),n.handleSide(t,(i-n.msSinceRequest)/1e3),n.requestAnimation(i)):n.isAnimating=!1)}}return n.prototype.start=function(n,t){this.isEnabled&&(this.scrollCaches=this.buildCaches(),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(n,t))},n.prototype.handleMove=function(n,t){if(this.isEnabled){var i=n-window.pageXOffset,r=t-window.pageYOffset,u=this.pointerScreenY===null?0:r-this.pointerScreenY,f=this.pointerScreenX===null?0:i-this.pointerScreenX;u<0?this.everMovedUp=!0:u>0&&(this.everMovedDown=!0);f<0?this.everMovedLeft=!0:f>0&&(this.everMovedRight=!0);this.pointerScreenX=i;this.pointerScreenY=r;this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ett()))}},n.prototype.stop=function(){var n,t,i;if(this.isEnabled){for(this.isAnimating=!1,n=0,t=this.scrollCaches;n<t.length;n++)i=t[n],i.destroy();this.scrollCaches=null}},n.prototype.requestAnimation=function(n){this.msSinceRequest=n;requestAnimationFrame(this.animate)},n.prototype.handleSide=function(n,t){var i=n.scrollCache,u=this.edgeThreshold,f=u-n.distance,e=f*f/(u*u)*this.maxVelocity*t,r=1;switch(n.name){case"left":r=-1;case"right":i.setScrollLeft(i.getScrollLeft()+e*r);break;case"top":r=-1;case"bottom":i.setScrollTop(i.getScrollTop()+e*r)}},n.prototype.computeBestEdge=function(n,t){for(var u=this.edgeThreshold,i=null,c=0,l=this.scrollCaches;c<l.length;c++){var r=l[c],f=r.clientRect,e=n-f.left,o=f.right-n,s=t-f.top,h=f.bottom-t;e>=0&&o>=0&&s>=0&&h>=0&&(s<=u&&this.everMovedUp&&r.canScrollUp()&&(!i||i.distance>s)&&(i={scrollCache:r,name:"top",distance:s}),h<=u&&this.everMovedDown&&r.canScrollDown()&&(!i||i.distance>h)&&(i={scrollCache:r,name:"bottom",distance:h}),e<=u&&this.everMovedLeft&&r.canScrollLeft()&&(!i||i.distance>e)&&(i={scrollCache:r,name:"left",distance:e}),o<=u&&this.everMovedRight&&r.canScrollRight()&&(!i||i.distance>o)&&(i={scrollCache:r,name:"right",distance:o}))}return i},n.prototype.buildCaches=function(){return this.queryScrollEls().map(function(n){return n===window?new kvt(!1):new ftt(n,!1)})},n.prototype.queryScrollEls=function(){for(var t,n=[],i=0,r=this.scrollQuery;i<r.length;i++)t=r[i],typeof t=="object"?n.push(t):n.push.apply(n,Array.prototype.slice.call(document.querySelectorAll(t)));return n},n}(),lr=function(n){function t(t,i){var r=n.call(this,t)||this,u;r.delay=null;r.minDistance=0;r.touchScrollAllowed=!0;r.mirrorNeedsRevert=!1;r.isInteracting=!1;r.isDragging=!1;r.isDelayEnded=!1;r.isDistanceSurpassed=!1;r.delayTimeoutId=null;r.onPointerDown=function(n){r.isDragging||(r.isInteracting=!0,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,hb(document.body),lb(document.body),n.isTouch||n.origEvent.preventDefault(),r.emitter.trigger("pointerdown",n),r.isInteracting&&!r.pointer.shouldIgnoreMove&&(r.mirror.setIsVisible(!1),r.mirror.start(n.subjectEl,n.pageX,n.pageY),r.startDelay(n),r.minDistance||r.handleDistanceSurpassed(n)))};r.onPointerMove=function(n){if(r.isInteracting){if(r.emitter.trigger("pointermove",n),!r.isDistanceSurpassed){var t=r.minDistance,i=void 0,u=n.deltaX,f=n.deltaY;i=u*u+f*f;i>=t*t&&r.handleDistanceSurpassed(n)}r.isDragging&&(n.origEvent.type!=="scroll"&&(r.mirror.handleMove(n.pageX,n.pageY),r.autoScroller.handleMove(n.pageX,n.pageY)),r.emitter.trigger("dragmove",n))}};r.onPointerUp=function(n){r.isInteracting&&(r.isInteracting=!1,cb(document.body),ab(document.body),r.emitter.trigger("pointerup",n),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(n)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};u=r.pointer=new as(t);u.emitter.on("pointerdown",r.onPointerDown);u.emitter.on("pointermove",r.onPointerMove);u.emitter.on("pointerup",r.onPointerUp);return i&&(u.selector=i),r.mirror=new bvt,r.autoScroller=new dvt,r}return u(t,n),t.prototype.destroy=function(){this.pointer.destroy();this.onPointerUp({})},t.prototype.startDelay=function(n){var t=this;typeof this.delay=="number"?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null;t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},t.prototype.handleDelayEnd=function(n){this.isDelayEnded=!0;this.tryStartDrag(n)},t.prototype.handleDistanceSurpassed=function(n){this.isDistanceSurpassed=!0;this.tryStartDrag(n)},t.prototype.tryStartDrag=function(n){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(n.pageX,n.pageY),this.emitter.trigger("dragstart",n),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())},t.prototype.tryStopDrag=function(n){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,n))},t.prototype.stopDrag=function(n){this.isDragging=!1;this.emitter.trigger("dragend",n)},t.prototype.setIgnoreMove=function(n){this.pointer.shouldIgnoreMove=n},t.prototype.setMirrorIsVisible=function(n){this.mirror.setIsVisible(n)},t.prototype.setMirrorNeedsRevert=function(n){this.mirrorNeedsRevert=n},t.prototype.setAutoScrollEnabled=function(n){this.autoScroller.isEnabled=n},t}(ba),gvt=function(){function n(n){this.origRect=co(n);this.scrollCaches=ea(n).map(function(n){return new ftt(n,!0)})}return n.prototype.destroy=function(){for(var i,n=0,t=this.scrollCaches;n<t.length;n++)i=t[n],i.destroy()},n.prototype.computeLeft=function(){for(var t,i=this.origRect.left,n=0,r=this.scrollCaches;n<r.length;n++)t=r[n],i+=t.origScrollLeft-t.getScrollLeft();return i},n.prototype.computeTop=function(){for(var t,i=this.origRect.top,n=0,r=this.scrollCaches;n<r.length;n++)t=r[n],i+=t.origScrollTop-t.getScrollTop();return i},n.prototype.isWithinClipping=function(n,t){for(var r,f={left:n,top:t},i=0,u=this.scrollCaches;i<u.length;i++)if(r=u[i],!nyt(r.getEventTarget())&&!ig(f,r.clientRect))return!1;return!0},n}();uu=function(){function n(n,t){var i=this;this.useSubjectCenter=!1;this.requireInitial=!0;this.initialHit=null;this.movingHit=null;this.finalHit=null;this.handlePointerDown=function(n){var t=i.dragging;i.initialHit=null;i.movingHit=null;i.finalHit=null;i.prepareHits();i.processFirstCoord(n);i.initialHit||!i.requireInitial?(t.setIgnoreMove(!1),i.emitter.trigger("pointerdown",n)):t.setIgnoreMove(!0)};this.handleDragStart=function(n){i.emitter.trigger("dragstart",n);i.handleMove(n,!0)};this.handleDragMove=function(n){i.emitter.trigger("dragmove",n);i.handleMove(n)};this.handlePointerUp=function(n){i.releaseHits();i.emitter.trigger("pointerup",n)};this.handleDragEnd=function(n){i.movingHit&&i.emitter.trigger("hitupdate",null,!0,n);i.finalHit=i.movingHit;i.movingHit=null;i.emitter.trigger("dragend",n)};this.droppableStore=t;n.emitter.on("pointerdown",this.handlePointerDown);n.emitter.on("dragstart",this.handleDragStart);n.emitter.on("dragmove",this.handleDragMove);n.emitter.on("pointerup",this.handlePointerUp);n.emitter.on("dragend",this.handleDragEnd);this.dragging=n;this.emitter=new fr}return n.prototype.processFirstCoord=function(n){var f={left:n.pageX,top:n.pageY},t=f,e=n.subjectEl,i,r,u;e!==document&&(i=co(e),t=rg(t,i));r=this.initialHit=this.queryHitForOffset(t.left,t.top);r?(this.useSubjectCenter&&i&&(u=dl(i,r.rect),u&&(t=ug(u))),this.coordAdjust=fg(t,f)):this.coordAdjust={left:0,top:0}},n.prototype.handleMove=function(n,t){var i=this.queryHitForOffset(n.pageX+this.coordAdjust.left,n.pageY+this.coordAdjust.top);(t||!vs(this.movingHit,i))&&(this.movingHit=i,this.emitter.trigger("hitupdate",i,!1,n))},n.prototype.prepareHits=function(){this.offsetTrackers=w(this.droppableStore,function(n){return n.component.prepareHits(),new gvt(n.el)})},n.prototype.releaseHits=function(){var n=this.offsetTrackers;for(var t in n)n[t].destroy();this.offsetTrackers={}},n.prototype.queryHitForOffset=function(n,t){var a=this,v=a.droppableStore,w=a.offsetTrackers,u=null,f,o,r,i;for(f in v)if(o=v[f].component,r=w[f],r&&r.isWithinClipping(n,t)){var s=r.computeLeft(),h=r.computeTop(),c=n-s,l=t-h,e=r.origRect,y=e.right-e.left,p=e.bottom-e.top;c>=0&&c<y&&l>=0&&l<p&&(i=o.queryHit(c,l,y,p),i&&uf(i.dateProfile.activeRange,i.dateSpan.range)&&(!u||i.layer>u.layer)&&(i.componentId=f,i.context=o.context,i.rect.left+=s,i.rect.right+=s,i.rect.top+=h,i.rect.bottom+=h,u=i))}return u},n}();ott=function(n){function t(t){var r=n.call(this,t)||this,u;r.handlePointerDown=function(n){var t=r.dragging,i=n.origEvent.target;t.setIgnoreMove(!r.component.isValidDateDownEl(i))};r.handleDragEnd=function(n){var s=r.component,h=r.dragging.pointer,t,o;if(!h.wasTouchScroll){var f=r.hitDragging,u=f.initialHit,e=f.finalHit;u&&e&&vs(u,e)&&(t=s.context,o=i(i({},dv(u.dateSpan,t)),{dayEl:u.dayEl,jsEvent:n.origEvent,view:t.viewApi||t.calendarApi.view}),t.emitter.trigger("dateClick",o))}};r.dragging=new lr(t.el);r.dragging.autoScroller.isEnabled=!1;u=r.hitDragging=new uu(r.dragging,go(t));u.emitter.on("pointerdown",r.handlePointerDown);u.emitter.on("dragend",r.handleDragEnd);return r}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t}(di);stt=function(n){function t(t){var i=n.call(this,t)||this,r;i.dragSelection=null;i.handlePointerDown=function(n){var r=i,t=r.component,u=r.dragging,f=t.context.options,e=f.selectable&&t.isValidDateDownEl(n.origEvent.target);u.setIgnoreMove(!e);u.delay=n.isTouch?iyt(t):null};i.handleDragStart=function(n){i.component.context.calendarApi.unselect(n)};i.handleHitUpdate=function(n,t){var u=i.component.context,r=null,e=!1,f,o;n&&(f=i.hitDragging.initialHit,o=n.componentId===f.componentId&&i.isHitComboAllowed&&!i.isHitComboAllowed(f,n),o||(r=ryt(f,n,u.pluginHooks.dateSelectionTransformers)),r&&bn(r,n.dateProfile,u)||(e=!0,r=null));r?u.dispatch({type:"SELECT_DATES",selection:r}):t||u.dispatch({type:"UNSELECT_DATES"});e?au():vu();t||(i.dragSelection=r)};i.handlePointerUp=function(n){i.dragSelection&&(ll(i.dragSelection,n,i.component.context),i.dragSelection=null)};var e=t.component,f=e.context.options,u=i.dragging=new lr(t.el);u.touchScrollAllowed=!1;u.minDistance=f.selectMinDistance||0;u.autoScroller.isEnabled=f.dragScroll;r=i.hitDragging=new uu(i.dragging,go(t));r.emitter.on("pointerdown",i.handlePointerDown);r.emitter.on("dragstart",i.handleDragStart);r.emitter.on("hitupdate",i.handleHitUpdate);r.emitter.on("pointerup",i.handlePointerUp);return i}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t}(di);gv=function(n){function t(r){var u=n.call(this,r)||this,f;u.subjectEl=null;u.subjectSeg=null;u.isDragging=!1;u.eventRange=null;u.relevantEvents=null;u.receivingContext=null;u.validMutation=null;u.mutatedRelevantEvents=null;u.handlePointerDown=function(n){var f=n.origEvent.target,o=u,t=o.component,i=o.dragging,s=i.mirror,r=t.context.options,c=t.context,e;u.subjectEl=n.subjectEl;var l=u.subjectSeg=ir(n.subjectEl),a=u.eventRange=l.eventRange,h=a.instance.instanceId;u.relevantEvents=ge(c.getCurrentData().eventStore,h);i.minDistance=n.isTouch?0:r.eventDragMinDistance;i.delay=n.isTouch&&h!==t.props.eventSelection?fyt(t):null;s.parentNode=r.fixedMirrorParent?r.fixedMirrorParent:d(f,".fc");s.revertDuration=r.dragRevertDuration;e=t.isValidSegDownEl(f)&&!d(f,".fc-event-resizer");i.setIgnoreMove(!e);u.isDragging=e&&n.subjectEl.classList.contains("fc-event-draggable")};u.handleDragStart=function(n){var t=u.component.context,i=u.eventRange,r=i.instance.instanceId;n.isTouch?r!==u.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"});u.isDragging&&(t.calendarApi.unselect(n),t.emitter.trigger("eventDragStart",{el:u.subjectEl,event:new v(t,i.def,i.instance),jsEvent:n.origEvent,view:t.viewApi}))};u.handleHitUpdate=function(n,t){var o;if(u.isDragging){var s=u.relevantEvents,h=u.hitDragging.initialHit,c=u.component.context,i=null,r=null,f=null,l=!1,e={affectedEvents:s,mutatedEvents:it(),isEvent:!0};n&&(i=n.context,o=i.options,c===i||o.editable&&o.droppable?(r=uyt(h,n,i.getCurrentData().pluginHooks.eventDragMutationMassagers),r&&(f=eo(s,i.getCurrentData().eventUiBases,r,i),e.mutatedEvents=f,rs(e,n.dateProfile,i)||(l=!0,r=null,f=null,e.mutatedEvents=it()))):i=null);u.displayDrag(i,e);l?au():vu();t||(c===i&&vs(h,n)&&(r=null),u.dragging.setMirrorNeedsRevert(!r),u.dragging.setMirrorIsVisible(!n||!document.querySelector(".fc-event-mirror")),u.receivingContext=i,u.validMutation=r,u.mutatedRelevantEvents=f)}};u.handlePointerUp=function(){u.isDragging||u.cleanup()};u.handleDragEnd=function(n){var nt,p,w,s,b,tt,k,d;if(u.isDragging){var t=u.component.context,h=t.viewApi,g=u,r=g.receivingContext,c=g.validMutation,l=u.eventRange.def,e=u.eventRange.instance,a=new v(t,l,e),o=u.relevantEvents,f=u.mutatedRelevantEvents,y=u.hitDragging.finalHit;if(u.clearDrag(),t.emitter.trigger("eventDragStop",{el:u.subjectEl,event:a,jsEvent:n.origEvent,view:h}),c){if(r===t){for(nt=new v(t,f.defs[l.defId],e?f.instances[e.instanceId]:null),t.dispatch({type:"MERGE_EVENTS",eventStore:f}),p={oldEvent:a,event:nt,relatedEvents:wi(f,t,e),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:o})}},w={},s=0,b=t.getCurrentData().pluginHooks.eventDropTransformers;s<b.length;s++)tt=b[s],i(w,tt(c,t));t.emitter.trigger("eventDrop",i(i(i({},p),w),{el:n.subjectEl,delta:c.datesDelta,jsEvent:n.origEvent,view:h}));t.emitter.trigger("eventChange",p)}else if(r){k={event:a,relatedEvents:wi(o,t,e),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:o})}};t.emitter.trigger("eventLeave",i(i({},k),{draggedEl:n.subjectEl,view:h}));t.dispatch({type:"REMOVE_EVENTS",eventStore:o});t.emitter.trigger("eventRemove",k);var rt=f.defs[l.defId],it=f.instances[e.instanceId],ut=new v(r,rt,it);r.dispatch({type:"MERGE_EVENTS",eventStore:f});d={event:ut,relatedEvents:wi(f,r,it),revert:function(){r.dispatch({type:"REMOVE_EVENTS",eventStore:f})}};r.emitter.trigger("eventAdd",d);n.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:e.instanceId});r.emitter.trigger("drop",i(i({},dv(y.dateSpan,r)),{draggedEl:n.subjectEl,jsEvent:n.origEvent,view:y.context.viewApi}));r.emitter.trigger("eventReceive",i(i({},d),{draggedEl:n.subjectEl,view:y.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}u.cleanup()};var o=u.component,s=o.context.options,e=u.dragging=new lr(r.el);e.pointer.selector=t.SELECTOR;e.touchScrollAllowed=!1;e.autoScroller.isEnabled=s.dragScroll;f=u.hitDragging=new uu(u.dragging,vf);f.useSubjectCenter=r.useEventCenter;f.emitter.on("pointerdown",u.handlePointerDown);f.emitter.on("dragstart",u.handleDragStart);f.emitter.on("hitupdate",u.handleHitUpdate);f.emitter.on("pointerup",u.handlePointerUp);f.emitter.on("dragend",u.handleDragEnd);return u}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(n,t){var r=this.component.context,i=this.receivingContext;i&&i!==n&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:it(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"}));n&&n.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var t=this.component.context,n=this.receivingContext;n&&n.dispatch({type:"UNSET_EVENT_DRAG"});t!==n&&t.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null;this.isDragging=!1;this.eventRange=null;this.relevantEvents=null;this.receivingContext=null;this.validMutation=null;this.mutatedRelevantEvents=null},t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t}(di);htt=function(n){function t(t){var r=n.call(this,t)||this,e,f,u;r.draggingSegEl=null;r.draggingSeg=null;r.eventRange=null;r.relevantEvents=null;r.validMutation=null;r.mutatedRelevantEvents=null;r.handlePointerDown=function(n){var t=r.component,i=r.querySegEl(n),u=ir(i),f=r.eventRange=u.eventRange;r.dragging.minDistance=t.context.options.eventDragMinDistance;r.dragging.setIgnoreMove(!r.component.isValidSegDownEl(n.origEvent.target)||n.isTouch&&r.component.props.eventSelection!==f.instance.instanceId)};r.handleDragStart=function(n){var t=r.component.context,u=r.eventRange,i;r.relevantEvents=ge(t.getCurrentData().eventStore,r.eventRange.instance.instanceId);i=r.querySegEl(n);r.draggingSegEl=i;r.draggingSeg=ir(i);t.calendarApi.unselect();t.emitter.trigger("eventResizeStart",{el:i,event:new v(t,u.def,u.instance),jsEvent:n.origEvent,view:t.viewApi})};r.handleHitUpdate=function(n,t,i){var f=r.component.context,h=r.relevantEvents,o=r.hitDragging.initialHit,a=r.eventRange.instance,u=null,e=null,c=!1,s={affectedEvents:h,mutatedEvents:it(),isEvent:!0},l;n&&(l=n.componentId===o.componentId&&r.isHitComboAllowed&&!r.isHitComboAllowed(o,n),l||(u=eyt(o,n,i.subjectEl.classList.contains("fc-event-resizer-start"),a.range)));u&&(e=eo(h,f.getCurrentData().eventUiBases,u,f),s.mutatedEvents=e,rs(s,n.dateProfile,f)||(c=!0,u=null,e=null,s.mutatedEvents=null));e?f.dispatch({type:"SET_EVENT_RESIZE",state:s}):f.dispatch({type:"UNSET_EVENT_RESIZE"});c?au():vu();t||(u&&vs(o,n)&&(u=null),r.validMutation=u,r.mutatedRelevantEvents=e)};r.handleDragEnd=function(n){var t=r.component.context,o=r.eventRange.def,u=r.eventRange.instance,h=new v(t,o,u),l=r.relevantEvents,f=r.mutatedRelevantEvents,c,e;t.emitter.trigger("eventResizeStop",{el:r.draggingSegEl,event:h,jsEvent:n.origEvent,view:t.viewApi});r.validMutation?(c=new v(t,f.defs[o.defId],u?f.instances[u.instanceId]:null),t.dispatch({type:"MERGE_EVENTS",eventStore:f}),e={oldEvent:h,event:c,relatedEvents:wi(f,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},t.emitter.trigger("eventResize",i(i({},e),{el:r.draggingSegEl,startDelta:r.validMutation.startDelta||s(0),endDelta:r.validMutation.endDelta||s(0),jsEvent:n.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",e)):t.emitter.trigger("_noEventResize");r.draggingSeg=null;r.relevantEvents=null;r.validMutation=null};e=t.component;f=r.dragging=new lr(t.el);f.pointer.selector=".fc-event-resizer";f.touchScrollAllowed=!1;f.autoScroller.isEnabled=e.context.options.dragScroll;u=r.hitDragging=new uu(r.dragging,go(t));u.emitter.on("pointerdown",r.handlePointerDown);u.emitter.on("dragstart",r.handleDragStart);u.emitter.on("hitupdate",r.handleHitUpdate);u.emitter.on("dragend",r.handleDragEnd);return r}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(n){return d(n.subjectEl,".fc-event")},t}(di);var oyt=function(){function n(n){var t=this,i;this.context=n;this.isRecentPointerDateSelect=!1;this.matchesCancel=!1;this.matchesEvent=!1;this.onSelect=function(n){n.jsEvent&&(t.isRecentPointerDateSelect=!0)};this.onDocumentPointerDown=function(n){var r=t.context.options.unselectCancel,i=n.origEvent.target;t.matchesCancel=!!d(i,r);t.matchesEvent=!!d(i,gv.SELECTOR)};this.onDocumentPointerUp=function(n){var i=t.context,f=t.documentPointer,u=i.getCurrentData(),r;f.wasTouchScroll||(u.dateSelection&&!t.isRecentPointerDateSelect&&(r=i.options.unselectAuto,!r||r&&t.matchesCancel||i.calendarApi.unselect(n)),u.eventSelection&&!t.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"}));t.isRecentPointerDateSelect=!1};i=this.documentPointer=new as(document);i.shouldIgnoreMove=!0;i.shouldWatchScroll=!1;i.emitter.on("pointerdown",this.onDocumentPointerDown);i.emitter.on("pointerup",this.onDocumentPointerUp);n.emitter.on("select",this.onSelect)}return n.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect);this.documentPointer.destroy()},n}(),syt={fixedMirrorParent:r},hyt={dateClick:r,eventDragStart:r,eventDragStop:r,eventDrop:r,eventResizeStart:r,eventResizeStop:r,eventResize:r,drop:r,eventReceive:r,eventLeave:r},ctt=function(){function n(n,t){var r=this,u;this.receivingContext=null;this.droppableEvent=null;this.suppliedDragMeta=null;this.dragMeta=null;this.handleDragStart=function(n){r.dragMeta=r.buildDragMeta(n.subjectEl)};this.handleHitUpdate=function(n,t,i){var s=r.hitDragging.dragging,u=null,f=null,o=!1,e={affectedEvents:it(),mutatedEvents:it(),isEvent:r.dragMeta.create};n&&(u=n.context,r.canDropElOnCalendar(i.subjectEl,u)&&(f=cyt(n.dateSpan,r.dragMeta,u),e.mutatedEvents=kr(f),o=!rs(e,n.dateProfile,u),o&&(e.mutatedEvents=it(),f=null)));r.displayDrag(u,e);s.setMirrorIsVisible(t||!f||!document.querySelector(".fc-event-mirror"));o?au():vu();t||(s.setMirrorNeedsRevert(!f),r.receivingContext=u,r.droppableEvent=f)};this.handleDragEnd=function(n){var e=r,t=e.receivingContext,u=e.droppableEvent,f;if(r.clearDrag(),t&&u){var o=r.hitDragging.finalHit,s=o.context.viewApi,h=r.dragMeta;t.emitter.trigger("drop",i(i({},dv(o.dateSpan,t)),{draggedEl:n.subjectEl,jsEvent:n.origEvent,view:s}));h.create&&(f=kr(u),t.dispatch({type:"MERGE_EVENTS",eventStore:f}),n.isTouch&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instance.instanceId}),t.emitter.trigger("eventReceive",{event:new v(t,u.def,u.instance),relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:f})},draggedEl:n.subjectEl,view:s}))}r.receivingContext=null;r.droppableEvent=null};u=this.hitDragging=new uu(n,vf);u.requireInitial=!1;u.emitter.on("dragstart",this.handleDragStart);u.emitter.on("hitupdate",this.handleHitUpdate);u.emitter.on("dragend",this.handleDragEnd);this.suppliedDragMeta=t}return n.prototype.buildDragMeta=function(n){return typeof this.suppliedDragMeta=="object"?ns(this.suppliedDragMeta):typeof this.suppliedDragMeta=="function"?ns(this.suppliedDragMeta(n)):lyt(n)},n.prototype.displayDrag=function(n,t){var i=this.receivingContext;i&&i!==n&&i.dispatch({type:"UNSET_EVENT_DRAG"});n&&n.dispatch({type:"SET_EVENT_DRAG",state:t})},n.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},n.prototype.canDropElOnCalendar=function(n,t){var i=t.options.dropAccept;return typeof i=="function"?i.call(t.calendarApi,n):typeof i=="string"&&i?Boolean(he(n,i)):!0},n}();ot.dataAttrPrefix="";var vyt=function(){function n(n,t){var r=this,i;t===void 0&&(t={});this.handlePointerDown=function(n){var t=r.dragging,i=r.settings,u=i.minDistance,f=i.longPressDelay;t.minDistance=u!=null?u:n.isTouch?0:ri.eventDragMinDistance;t.delay=n.isTouch?f!=null?f:ri.longPressDelay:0};this.handleDragStart=function(n){n.isTouch&&r.dragging.delay&&n.subjectEl.classList.contains("fc-event")&&r.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")};this.settings=t;i=this.dragging=new lr(n);i.touchScrollAllowed=!1;t.itemSelector!=null&&(i.pointer.selector=t.itemSelector);t.appendTo!=null&&(i.mirror.parentNode=t.appendTo);i.emitter.on("pointerdown",this.handlePointerDown);i.emitter.on("dragstart",this.handleDragStart);new ctt(i,t.eventData)}return n.prototype.destroy=function(){this.dragging.destroy()},n}(),yyt=function(n){function t(t){var i=n.call(this,t)||this,r;i.shouldIgnoreMove=!1;i.mirrorSelector="";i.currentMirrorEl=null;i.handlePointerDown=function(n){i.emitter.trigger("pointerdown",n);i.shouldIgnoreMove||i.emitter.trigger("dragstart",n)};i.handlePointerMove=function(n){i.shouldIgnoreMove||i.emitter.trigger("dragmove",n)};i.handlePointerUp=function(n){i.emitter.trigger("pointerup",n);i.shouldIgnoreMove||i.emitter.trigger("dragend",n)};r=i.pointer=new as(t);r.emitter.on("pointerdown",i.handlePointerDown);r.emitter.on("pointermove",i.handlePointerMove);r.emitter.on("pointerup",i.handlePointerUp);return i}return u(t,n),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(n){this.shouldIgnoreMove=n},t.prototype.setMirrorIsVisible=function(n){if(n)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(ba),pyt=function(){function n(n,t){var r=document,i;n===document||n instanceof Element?(r=n,t=t||{}):t=n||{};i=this.dragging=new yyt(r);typeof t.itemSelector=="string"?i.pointer.selector=t.itemSelector:r===document&&(i.pointer.selector="[data-event]");typeof t.mirrorSelector=="string"&&(i.mirrorSelector=t.mirrorSelector);new ctt(i,t.eventData)}return n.prototype.destroy=function(){this.dragging.destroy()},n}(),wyt=k({componentInteractions:[ott,stt,gv,htt],calendarInteractions:[oyt],elementDraggingImpl:lr,optionRefiners:syt,listenerRefiners:hyt}),ny=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.headerElRef=h(),t}return u(i,n),i.prototype.renderSimpleLayout=function(n,i){var f=this,r=f.props,e=f.context,u=[],o=hr(e.options);return n&&u.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}}),u.push({type:"body",key:"body",liquid:!0,chunk:{content:i}}),t(bt,{viewSpec:e.viewSpec},function(n,i){return t("div",{ref:n,className:["fc-daygrid"].concat(i).join(" ")},t(pf,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:u}))})},i.prototype.renderHScrollLayout=function(n,i,r,u){var s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");var h=this,f=h.props,o=h.context,c=!f.forPrint&&hr(o.options),l=!f.forPrint&&yf(o.options),e=[];return n&&e.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}]}),e.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:i}]}),l&&e.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:sr}]}),t(bt,{viewSpec:o.viewSpec},function(n,i){return t("div",{ref:n,className:["fc-daygrid"].concat(i).join(" ")},t(s,{liquid:!f.isHeightAuto&&!f.forPrint,collapsibleWidth:f.forPrint,colGroups:[{cols:[{span:r,minWidth:u}]}],sections:e}))})},i}(rt);att=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props,r=this.context.options.navLinks?{"data-navlink":ur(n.date),tabIndex:0}:{};return t(os,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,defaultContent:byt},function(u,f){return(f||n.forceDayTop)&&t("div",{className:"fc-daygrid-day-top",ref:u},t("a",i({className:"fc-daygrid-day-number"},r),f||t(c,null," ")))})},r}(e);ty=y({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});iy=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props;return t(wf,i({},n,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:ty,defaultDisplayEventEnd:n.defaultDisplayEventEnd,disableResizing:!n.seg.eventRange.def.allDay}))},r}(e);ry=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,u=r.context,f=u.options.eventTimeFormat||ty,e=gr(n.seg,f,u,!0,n.defaultDisplayEventEnd);return t(ru,{seg:n.seg,timeText:e,defaultContent:kyt,isDragging:n.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:n.isSelected,isPast:n.isPast,isFuture:n.isFuture,isToday:n.isToday},function(r,u,f,e){return t("a",i({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(u).join(" "),ref:r},dyt(n.seg)),e)})},r}(e);ytt=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.compileSegs=f(gyt),t}return u(r,n),r.prototype.render=function(){var n=this.props,r=this.compileSegs(n.singlePlacements),u=r.allSegs,f=r.invisibleSegs;return t(cs,{dateProfile:n.dateProfile,todayRange:n.todayRange,allDayDate:n.allDayDate,moreCnt:n.moreCnt,allSegs:u,hiddenSegs:f,alignmentElRef:n.alignmentElRef,alignGridTop:n.alignGridTop,extraDateSpan:n.extraDateSpan,popoverContent:function(){var r=(n.eventDrag?n.eventDrag.affectedInstances:null)||(n.eventResize?n.eventResize.affectedInstances:null)||{};return t(c,null,u.map(function(u){var f=u.eventRange.instance.instanceId;return t("div",{className:"fc-daygrid-event-harness",key:f,style:{visibility:r[f]?"hidden":""}},vtt(u)?t(ry,i({seg:u,isDragging:!1,isSelected:f===n.eventSelection,defaultDisplayEventEnd:!1},st(u,n.todayRange))):t(iy,i({seg:u,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:f===n.eventSelection,defaultDisplayEventEnd:!1},st(u,n.todayRange))))}))}},function(n,i,r,u,f){return t("a",{ref:n,className:["fc-daygrid-more-link"].concat(i).join(" "),onClick:f},u)})},r}(e);ptt=y({week:"narrow"});wtt=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t.handleRootEl=function(n){g(t.rootElRef,n);g(t.props.elRef,n)},t}return u(r,n),r.prototype.render=function(){var u=this,n=u.props,e=u.context,o=u.rootElRef,s=e.options,r=n.date,f=n.dateProfile,h=s.navLinks?{"data-navlink":ur(r,"week"),tabIndex:0}:{};return t(bf,{date:r,dateProfile:f,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,elRef:this.handleRootEl},function(u,e,s,c){return t("td",i({ref:u,className:["fc-daygrid-day"].concat(e,n.extraClassNames||[]).join(" ")},s,n.extraDataAttrs),t("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:n.innerElRef},n.showWeekNumber&&t(hs,{date:r,defaultFormat:ptt},function(n,r,u,f){return t("a",i({ref:n,className:["fc-daygrid-week-number"].concat(r).join(" ")},h),f)}),!c&&t(att,{date:r,dateProfile:f,showDayNumber:n.showDayNumber,forceDayTop:n.forceDayTop,todayRange:n.todayRange,extraHookProps:n.extraHookProps}),t("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,t("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},t(ytt,{allDayDate:r,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:o,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),t("div",{className:"fc-daygrid-day-bg"},n.bgContent)))})},r}(rt);btt=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return u(t,n),t.prototype.addSegs=function(t){for(var u=this,f=n.prototype.addSegs.call(this,t),r=this.entriesByLevel,e=function(n){return!u.forceHidden[ki(n)]},i=0;i<r.length;i+=1)r[i]=r[i].filter(e);return f},t.prototype.handleInvalidInsertion=function(t,r,u){var l=this,a=l.entriesByLevel,s=l.forceHidden,h=t.touchingLevel,o,f,c,e;if(this.hiddenConsumes&&h>=0)for(o=t.lateralStart;o<t.lateralEnd;o+=1)f=a[h][o],this.allowReslicing?(c=i(i({},f),{span:ko(f.span,r.span)}),e=ki(c),s[e]||(s[e]=!0,a[h][o]=c,this.splitEntry(f,r,u))):(e=ki(f),s[e]||(s[e]=!0,u.push(f)));return n.prototype.handleInvalidInsertion.call(this,t,r,u)},t}(af);uy=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.cellElRefs=new nt,t.frameElRefs=new nt,t.fgElRefs=new nt,t.segHarnessRefs=new nt,t.rootElRef=h(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return u(r,n),r.prototype.render=function(){var i=this,f=this,n=f.props,e=f.state,l=f.context,o=l.options,r=n.cells.length,a=ps(n.businessHourSegs,r),v=ps(n.bgEventSegs,r),y=ps(this.getHighlightSegs(),r),p=ps(this.getMirrorSegs(),r),u=npt(ef(n.fgEventSegs,o.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,o.eventOrderStrict,e.eventInstanceHeights,e.maxContentHeight,n.cells),s=u.singleColPlacements,h=u.multiColPlacements,w=u.moreCnts,b=u.moreMarginTops,k=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return t("tr",{ref:this.rootElRef},n.renderIntro&&n.renderIntro(),n.cells.map(function(r,u){var f=i.renderFgSegs(u,n.forPrint?s[u]:h[u],n.todayRange,k),e=i.renderFgSegs(u,rpt(p[u],h),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return t(wtt,{key:r.key,elRef:i.cellElRefs.createRef(r.key),innerElRef:i.frameElRefs.createRef(r.key),dateProfile:n.dateProfile,date:r.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&u===0,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:r.extraHookProps,extraDataAttrs:r.extraDataAttrs,extraClassNames:r.extraClassNames,extraDateSpan:r.extraDateSpan,moreCnt:w[u],moreMarginTop:b[u],singlePlacements:s[u],fgContentElRef:i.fgElRefs.createRef(r.key),fgContent:t(c,null,t(c,null,f),t(c,null,e)),bgContent:t(c,null,i.renderFillSegs(y[u],"highlight"),i.renderFillSegs(a[u],"non-business"),i.renderFillSegs(v[u],"bg-event"))})}))},r.prototype.componentDidMount=function(){this.updateSizing(!0)},r.prototype.componentDidUpdate=function(n){var t=this.props;this.updateSizing(!ut(n,t))},r.prototype.getHighlightSegs=function(){var n=this.props;return n.eventDrag&&n.eventDrag.segs.length?n.eventDrag.segs:n.eventResize&&n.eventResize.segs.length?n.eventResize.segs:n.dateSelectionSegs},r.prototype.getMirrorSegs=function(){var n=this.props;return n.eventResize&&n.eventResize.segs.length?n.eventResize.segs:[]},r.prototype.renderFgSegs=function(n,r,u,f,e,o,s){var tt=this.context,k=this.props.eventSelection,c=this.state.framePositions,d=this.props.cells.length===1,it=e||o||s,g=[],a,p;if(c)for(a=0,p=r;a<p.length;a++){var l=p[a],h=l.seg,v=h.eventRange.instance.instanceId,nt=v+":"+n,rt=l.isVisible&&!f[v],y=l.isAbsolute,w="",b="";y&&(tt.isRtl?(b=0,w=c.lefts[h.lastCol]-c.lefts[h.firstCol]):(w=0,b=c.rights[h.firstCol]-c.rights[h.lastCol]));g.push(t("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:nt,ref:it?null:this.segHarnessRefs.createRef(nt),style:{visibility:rt?"":"hidden",marginTop:y?"":l.marginTop,top:y?l.absoluteTop:"",left:w,right:b}},vtt(h)?t(ry,i({seg:h,isDragging:e,isSelected:v===k,defaultDisplayEventEnd:d},st(h,u))):t(iy,i({seg:h,isDragging:e,isResizing:o,isDateSelecting:s,isSelected:v===k,defaultDisplayEventEnd:d},st(h,u)))))}return g},r.prototype.renderFillSegs=function(n,r){var a=this.context.isRtl,v=this.props.todayRange,f=this.state.framePositions,s=[],e,o,u,h;if(f)for(e=0,o=n;e<o.length;e++)u=o[e],h=a?{right:0,left:f.lefts[u.lastCol]-f.lefts[u.firstCol]}:{left:0,right:f.rights[u.firstCol]-f.rights[u.lastCol]},s.push(t("div",{key:uo(u.eventRange),className:"fc-daygrid-bg-harness",style:h},r==="bg-event"?t(kf,i({seg:u},st(u,v))):ss(r)));return t.apply(void 0,l([c,{}],s))},r.prototype.updateSizing=function(n){var r=this,t=r.props,e=r.frameElRefs,i,u,f;t.forPrint||t.clientWidth===null||(n&&(i=t.cells.map(function(n){return e.currentMap[n.key]}),i.length&&(u=this.rootElRef.current,this.setState({framePositions:new fi(u,i,!0,!1)}))),f=t.dayMaxEvents===!0||t.dayMaxEventRows===!0,this.setState({eventInstanceHeights:this.queryEventInstanceHeights(),maxContentHeight:f?this.computeMaxContentHeight():null}))},r.prototype.queryEventInstanceHeights=function(){var r=this.segHarnessRefs.currentMap,n={},t,u,i;for(t in r)u=Math.round(r[t].getBoundingClientRect().height),i=t.split(":")[0],n[i]=Math.max(n[i]||0,u);return n},r.prototype.computeMaxContentHeight=function(){var n=this.props.cells[0].key,t=this.cellElRefs.currentMap[n],i=this.fgElRefs.currentMap[n];return t.getBoundingClientRect().bottom-i.getBoundingClientRect().top},r.prototype.getCellEls=function(){var n=this.cellElRefs.currentMap;return this.props.cells.map(function(t){return n[t.key]})},r}(rt);uy.addStateEquality({eventInstanceHeights:ut});ws=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.splitBusinessHourSegs=f(ys),t.splitBgEventSegs=f(ys),t.splitFgEventSegs=f(ys),t.splitDateSelectionSegs=f(ys),t.splitEventDrag=f(ltt),t.splitEventResize=f(ltt),t.rowRefs=new nt,t.handleRootEl=function(n){t.rootEl=n;n?t.context.registerInteractiveComponent(t,{el:n,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return u(r,n),r.prototype.render=function(){var s=this,n=this.props,h=n.dateProfile,r=n.dayMaxEventRows,u=n.dayMaxEvents,f=n.expandRows,i=n.cells.length,l=this.splitBusinessHourSegs(n.businessHourSegs,i),a=this.splitBgEventSegs(n.bgEventSegs,i),v=this.splitFgEventSegs(n.fgEventSegs,i),y=this.splitDateSelectionSegs(n.dateSelectionSegs,i),p=this.splitEventDrag(n.eventDrag,i),w=this.splitEventResize(n.eventResize,i),e=u===!0||r===!0,o;return e&&!f&&(e=!1,r=null,u=null),o=["fc-daygrid-body",e?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",f?"":"fc-daygrid-body-natural",],t("div",{className:o.join(" "),ref:this.handleRootEl,style:{width:n.clientWidth,minWidth:n.tableMinWidth}},t(at,{unit:"day"},function(e,o){return t(c,null,t("table",{className:"fc-scrollgrid-sync-table",style:{width:n.clientWidth,minWidth:n.tableMinWidth,height:f?n.clientHeight:""}},n.colGroupNode,t("tbody",null,n.cells.map(function(f,e){return t(uy,{ref:s.rowRefs.createRef(e),key:f.length?f[0].date.toISOString():e,showDayNumbers:i>1,showWeekNumbers:n.showWeekNumbers,todayRange:o,dateProfile:h,cells:f,renderIntro:n.renderRowIntro,businessHourSegs:l[e],eventSelection:n.eventSelection,bgEventSegs:a[e].filter(fpt),fgEventSegs:v[e],dateSelectionSegs:y[e],eventDrag:p[e],eventResize:w[e],dayMaxEvents:u,dayMaxEventRows:r,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint})}))))}))},r.prototype.prepareHits=function(){this.rowPositions=new fi(this.rootEl,this.rowRefs.collect().map(function(n){return n.getCellEls()[0]}),!1,!0);this.colPositions=new fi(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},r.prototype.queryHit=function(n,t){var o=this,f=o.colPositions,e=o.rowPositions,r=f.leftToIndex(n),u=e.topToIndex(t),s;return u!=null&&r!=null?(s=this.props.cells[u][r],{dateProfile:this.props.dateProfile,dateSpan:i({range:this.getCellRange(u,r),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(u,r),rect:{left:f.lefts[r],right:f.rights[r],top:e.tops[u],bottom:e.bottoms[u]},layer:0}):null},r.prototype.getCellEl=function(n,t){return this.rowRefs.currentMap[n].getCellEls()[t]},r.prototype.getCellRange=function(n,t){var i=this.props.cells[n][t].date,r=p(i,1);return{start:i,end:r}},r}(rt);var fy=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return u(t,n),t.prototype.sliceRange=function(n,t){return t.sliceRange(n)},t}(is),ey=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.slicer=new fy,t.tableRef=h(),t}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,u=r.context;return t(ws,i({ref:this.tableRef},this.slicer.sliceProps(n,n.dateProfile,n.nextDayThreshold,u,n.dayTableModel),{dateProfile:n.dateProfile,cells:n.dayTableModel.cells,colGroupNode:n.colGroupNode,tableMinWidth:n.tableMinWidth,renderRowIntro:n.renderRowIntro,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.showWeekNumbers,expandRows:n.expandRows,headerAlignElRef:n.headerAlignElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint}))},r}(rt),ktt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildDayTableModel=f(oy),t.headerRef=h(),t.tableRef=h(),t}return u(i,n),i.prototype.render=function(){var u=this,f=this.context,i=f.options,s=f.dateProfileGenerator,n=this.props,r=this.buildDayTableModel(n.dateProfile,s),e=i.dayHeaders&&t(ts,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),o=function(f){return t(ey,{ref:u.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:i.nextDayThreshold,colGroupNode:f.tableColGroupNode,tableMinWidth:f.tableMinWidth,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:u.headerElRef,clientWidth:f.clientWidth,clientHeight:f.clientHeight,forPrint:n.forPrint})};return i.dayMinWidth?this.renderHScrollLayout(e,o,r.colCnt,i.dayMinWidth):this.renderSimpleLayout(e,o)},i}(ny);var ept=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.buildRenderRange=function(t,i,r){var o=this.props.dateEnv,s=n.prototype.buildRenderRange.call(this,t,i,r),f=s.start,u=s.end,e,h;return/^(year|month)$/.test(i)&&(f=o.startOfWeek(f),e=o.startOfWeek(u),e.valueOf()!==u.valueOf()&&(u=pc(e,1))),this.props.monthMode&&this.props.fixedWeekCount&&(h=Math.ceil(wb(f,u)),u=pc(u,6-h)),{start:f,end:u}},t}(yo),dtt=k({initialView:"dayGridMonth",views:{dayGrid:{component:ktt,dateProfileGeneratorClass:ept},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),opt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(n){return n.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(n){return n.allDay?nd(n)?["timed","allDay"]:["allDay"]:["timed"]},t}(sf),spt=y({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});var cpt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){return this.props.slatMetas.map(function(n){return t("tr",{key:n.key},t(gtt,i({},n)))})},r}(e),lpt=y({week:"short"}),apt=5,sy=function(n){function r(){var r=n!==null&&n.apply(this,arguments)||this;return r.allDaySplitter=new opt,r.headerElRef=h(),r.rootElRef=h(),r.scrollerElRef=h(),r.state={slatCoords:null},r.handleScrollTopRequest=function(n){var t=r.scrollerElRef.current;t&&(t.scrollTop=n)},r.renderHeadAxis=function(n,u){u===void 0&&(u="");var e=r.context.options,o=r.props.dateProfile,f=o.renderRange,s=ni(f.start,f.end),h=e.navLinks&&s===1?{"data-navlink":ur(f.start,"week"),tabIndex:0}:{};return e.weekNumbers&&n==="day"?t(hs,{date:f.start,defaultFormat:lpt},function(n,r,f,e){return t("th",{ref:n,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(r).join(" ")},t("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:u}},t("a",i({ref:f,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},h),e)))}):t("th",{className:"fc-timegrid-axis"},t("div",{className:"fc-timegrid-axis-frame",style:{height:u}}))},r.renderTableRowAxis=function(n){var u=r.context,i=u.options,f=u.viewApi,e={text:i.allDayText,view:f};return t(b,{hookProps:e,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:vpt,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},function(i,r,u,f){return t("td",{ref:i,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(r).join(" ")},t("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(n==null?" fc-timegrid-axis-frame-liquid":""),style:{height:n}},t("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:u},f)))})},r.handleSlatCoords=function(n){r.setState({slatCoords:n})},r}return u(r,n),r.prototype.renderSimpleLayout=function(n,i,r){var o=this,f=o.context,e=o.props,u=[],s=hr(f.options);return n&&u.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}}),i&&(u.push({type:"body",key:"all-day",chunk:{content:i}}),u.push({type:"body",key:"all-day-divider",outerContent:t("tr",{className:"fc-scrollgrid-section"},t("td",{className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))})),u.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(f.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:r}}),t(bt,{viewSpec:f.viewSpec,elRef:this.rootElRef},function(n,i){return t("div",{className:["fc-timegrid"].concat(i).join(" "),ref:n},t(pf,{liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:e.forPrint,cols:[{width:"shrink"}],sections:u}))})},r.prototype.renderHScrollLayout=function(n,i,r,u,f,e,o){var a=this,v=this.context.pluginHooks.scrollGridImpl,l;if(!v)throw new Error("No ScrollGrid implementation");var y=this,s=y.context,c=y.props,p=!c.forPrint&&hr(s.options),w=!c.forPrint&&yf(s.options),h=[];return n&&h.push({type:"header",key:"header",isSticky:p,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(n){return t("tr",null,a.renderHeadAxis("day",n.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n},]}),i&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(n){return t("tr",null,a.renderTableRowAxis(n.rowSyncHeights[0]))}},{key:"cols",content:i},]}),h.push({key:"all-day-divider",type:"body",outerContent:t("tr",{className:"fc-scrollgrid-section"},t("td",{colSpan:2,className:"fc-timegrid-divider "+s.theme.getClass("tableCellShaded")}))})),l=s.options.nowIndicator,h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(s.options.expandRows),chunks:[{key:"axis",content:function(n){return t("div",{className:"fc-timegrid-axis-chunk"},t("table",{style:{height:n.expandRows?n.clientHeight:""}},n.tableColGroupNode,t("tbody",null,t(cpt,{slatMetas:e}))),t("div",{className:"fc-timegrid-now-indicator-container"},t(at,{unit:l?"minute":"day"},function(n){var i=l&&o&&o.safeComputeTop(n);return typeof i=="number"?t(cr,{isAxis:!0,date:n},function(n,r,u,f){return t("div",{ref:n,className:["fc-timegrid-now-indicator-arrow"].concat(r).join(" "),style:{top:i}},f)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:r},]}),w&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:sr},{key:"cols",content:sr},]}),t(bt,{viewSpec:s.viewSpec,elRef:this.rootElRef},function(n,i){return t("div",{className:["fc-timegrid"].concat(i).join(" "),ref:n},t(v,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:u,minWidth:f}]},],sections:h}))})},r.prototype.getAllDayMaxEventProps=function(){var i=this.context.options,n=i.dayMaxEvents,t=i.dayMaxEventRows;return(n===!0||t===!0)&&(n=undefined,t=apt),{dayMaxEvents:n,dayMaxEventRows:t}},r}(rt);var nit=function(){function n(n,t,i){this.positions=n;this.dateProfile=t;this.slotDuration=i}return n.prototype.safeComputeTop=function(n){var i=this.dateProfile,r,t;return wt(i.currentRange,n)&&(r=a(n),t=n.valueOf()-r.valueOf(),t>=tt(i.slotMinTime)&&t<tt(i.slotMaxTime))?this.computeTimeTop(s(t)):null},n.prototype.computeDateTop=function(n,t){return t||(t=a(n)),this.computeTimeTop(s(n.valueOf()-t.valueOf()))},n.prototype.computeTimeTop=function(n){var u=this,r=u.positions,o=u.dateProfile,f=r.els.length,t=(n.milliseconds-tt(o.slotMinTime))/tt(this.slotDuration),i,e;return t=Math.max(0,t),t=Math.min(f,t),i=Math.floor(t),i=Math.min(i,f-1),e=t-i,r.tops[i]+r.getHeight(i)*e},n}(),ypt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var f=this,r=f.props,u=f.context,n=u.options,e=r.slatElRefs;return t("tbody",null,r.slatMetas.map(function(f){var o={time:f.time,date:u.dateEnv.toDate(f.date),view:u.viewApi},s=["fc-timegrid-slot","fc-timegrid-slot-lane",f.isLabeled?"":"fc-timegrid-slot-minor",];return t("tr",{key:f.key,ref:e.createRef(f.key)},r.axis&&t(gtt,i({},f)),t(b,{hookProps:o,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},function(n,i,r,u){return t("td",{ref:n,className:s.concat(i).join(" "),"data-time":f.isoTimeStr},u)}))}))},r}(e),ppt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t.slatElRefs=new nt,t}return u(i,n),i.prototype.render=function(){var i=this,n=i.props,r=i.context;return t("div",{className:"fc-timegrid-slots",ref:this.rootElRef},t("table",{className:r.theme.getClass("table"),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:n.minHeight}},n.tableColGroupNode,t(ypt,{slatElRefs:this.slatElRefs,axis:n.axis,slatMetas:n.slatMetas})))},i.prototype.componentDidMount=function(){this.updateSizing()},i.prototype.componentDidUpdate=function(){this.updateSizing()},i.prototype.componentWillUnmount=function(){if(this.props.onCoords)this.props.onCoords(null)},i.prototype.updateSizing=function(){var t=this,r=t.context,n=t.props,i;if(n.onCoords&&n.clientWidth!==null&&(i=this.rootElRef.current,i.offsetHeight))n.onCoords(new nit(new fi(this.rootElRef.current,wpt(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,r.options.slotDuration))},i}(e);iit=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t}return u(i,n),i.prototype.render=function(){var i=this,n=this.props;return t(cs,{allDayDate:null,moreCnt:n.hiddenSegs.length,allSegs:n.hiddenSegs,hiddenSegs:n.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:bpt,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,todayRange:n.todayRange,popoverContent:function(){return eit(n.hiddenSegs,n)}},function(r,u,f,e,o){return t("a",{ref:function(n){g(r,n);g(i.rootElRef,n)},className:["fc-timegrid-more-link"].concat(u).join(" "),style:{top:n.top,bottom:n.bottom},onClick:o},t("div",{ref:f,className:"fc-timegrid-more-link-inner fc-sticky"},e))})},i}(e);var fwt=y({hour:"numeric",minute:"2-digit",meridiem:!1}),fit=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=["fc-timegrid-event","fc-v-event",];return this.props.isShort&&n.push("fc-timegrid-event-short"),t(wf,i({},this.props,{defaultTimeFormat:fwt,extraClassNames:n}))},r}(e),ewt=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this.props;return t(os,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},function(n,i){return i&&t("div",{className:"fc-timegrid-col-misc",ref:n},i)})},i}(e),owt=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.sortEventSegs=f(ef),t}return u(r,n),r.prototype.render=function(){var r=this,u=this,n=u.props,f=u.context,e=f.options.selectMirror,o=n.eventDrag&&n.eventDrag.segs||n.eventResize&&n.eventResize.segs||e&&n.dateSelectionSegs||[],s=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{},h=this.sortEventSegs(n.fgEventSegs,f.options.eventOrder);return t(bf,{elRef:n.elRef,date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},function(u,f,c){return t("td",i({ref:u,className:["fc-timegrid-col"].concat(f,n.extraClassNames||[]).join(" ")},c,n.extraDataAttrs),t("div",{className:"fc-timegrid-col-frame"},t("div",{className:"fc-timegrid-col-bg"},r.renderFillSegs(n.businessHourSegs,"non-business"),r.renderFillSegs(n.bgEventSegs,"bg-event"),r.renderFillSegs(n.dateSelectionSegs,"highlight")),t("div",{className:"fc-timegrid-col-events"},r.renderFgSegs(h,s,!1,!1,!1)),t("div",{className:"fc-timegrid-col-events"},r.renderFgSegs(o,{},Boolean(n.eventDrag),Boolean(n.eventResize),Boolean(e))),t("div",{className:"fc-timegrid-now-indicator-container"},r.renderNowIndicator(n.nowIndicatorSegs)),t(ewt,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps})))})},r.prototype.renderFgSegs=function(n,t,i,r,u){var f=this.props;return f.forPrint?eit(n,f):this.renderPositionedFgSegs(n,t,i,r,u)},r.prototype.renderPositionedFgSegs=function(n,r,u,f,e){var a=this,s=this.context.options,v=s.eventMaxStack,y=s.eventShortHeight,p=s.eventOrderStrict,w=s.eventMinHeight,o=this.props,b=o.date,k=o.slatCoords,d=o.eventSelection,g=o.todayRange,nt=o.nowDate,h=u||f||e,tt=uit(n,b,k,w),l=uwt(n,tt,p,v),it=l.segPlacements,rt=l.hiddenGroups;return t(c,null,this.renderHiddenGroups(rt,n),it.map(function(n){var s=n.seg,o=n.rect,c=s.eventRange.instance.instanceId,l=h||Boolean(!r[c]&&o),v=cy(o&&o.span),p=!h&&o?a.computeSegHStyle(o):{left:0,right:0},w=Boolean(o)&&o.stackForward>0,b=Boolean(o)&&o.span.end-o.span.start<y;return t("div",{className:"fc-timegrid-event-harness"+(w?" fc-timegrid-event-harness-inset":""),key:c,style:i(i({visibility:l?"":"hidden"},v),p)},t(fit,i({seg:s,isDragging:u,isResizing:f,isDateSelecting:e,isSelected:c===d,isShort:b},st(s,g,nt))))}))},r.prototype.renderHiddenGroups=function(n,i){var r=this.props,u=r.extraDateSpan,f=r.dateProfile,e=r.todayRange,o=r.nowDate,s=r.eventSelection,h=r.eventDrag,l=r.eventResize;return t(c,null,n.map(function(n){var r=cy(n.span),c=swt(n.entries,i);return t(iit,{key:wu(df(c)),hiddenSegs:c,top:r.top,bottom:r.bottom,extraDateSpan:u,dateProfile:f,todayRange:e,nowDate:o,eventSelection:s,eventDrag:h,eventResize:l})}))},r.prototype.renderFillSegs=function(n,r){var f=this,u=f.props,e=f.context,o=uit(n,u.date,u.slatCoords,e.options.eventMinHeight),s=o.map(function(f,e){var o=n[e];return t("div",{key:uo(o.eventRange),className:"fc-timegrid-bg-harness",style:cy(f)},r==="bg-event"?t(kf,i({seg:o},st(o,u.todayRange,u.nowDate))):ss(r))});return t(c,null,s)},r.prototype.renderNowIndicator=function(n){var i=this.props,r=i.slatCoords,u=i.date;return r?n.map(function(n,i){return t(cr,{isAxis:!1,date:u,key:i},function(i,f,e,o){return t("div",{ref:i,className:["fc-timegrid-now-indicator-line"].concat(f).join(" "),style:{top:r.computeDateTop(n.start,u)}},o)})}):null},r.prototype.computeSegHStyle=function(n){var e=this.context,o=e.isRtl,h=e.options,s=h.slotEventOverlap,t=n.levelCoord,i=n.levelCoord+n.thickness,r,u,f;return s&&(i=Math.min(1,t+(i-t)*2)),o?(r=1-i,u=t):(r=t,u=1-i),f={zIndex:n.stackDepth+1,left:r*100+"%",right:u*100+"%"},s&&!n.stackForward&&(f[o?"marginLeft":"marginRight"]=20),f},r}(e);oit=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.splitFgEventSegs=f(gf),t.splitBgEventSegs=f(gf),t.splitBusinessHourSegs=f(gf),t.splitNowIndicatorSegs=f(gf),t.splitDateSelectionSegs=f(gf),t.splitEventDrag=f(tit),t.splitEventResize=f(tit),t.rootElRef=h(),t.cellElRefs=new nt,t}return u(i,n),i.prototype.render=function(){var f=this,r=this,n=r.props,e=r.context,u=e.options.nowIndicator&&n.slatCoords&&n.slatCoords.safeComputeTop(n.nowDate),i=n.cells.length,o=this.splitFgEventSegs(n.fgEventSegs,i),s=this.splitBgEventSegs(n.bgEventSegs,i),h=this.splitBusinessHourSegs(n.businessHourSegs,i),c=this.splitNowIndicatorSegs(n.nowIndicatorSegs,i),l=this.splitDateSelectionSegs(n.dateSelectionSegs,i),a=this.splitEventDrag(n.eventDrag,i),v=this.splitEventResize(n.eventResize,i);return t("div",{className:"fc-timegrid-cols",ref:this.rootElRef},t("table",{style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,t("tbody",null,t("tr",null,n.axis&&t("td",{className:"fc-timegrid-col fc-timegrid-axis"},t("div",{className:"fc-timegrid-col-frame"},t("div",{className:"fc-timegrid-now-indicator-container"},typeof u=="number"&&t(cr,{isAxis:!0,date:n.nowDate},function(n,i,r,f){return t("div",{ref:n,className:["fc-timegrid-now-indicator-arrow"].concat(i).join(" "),style:{top:u}},f)})))),n.cells.map(function(i,r){return t(owt,{key:i.key,elRef:f.cellElRefs.createRef(i.key),dateProfile:n.dateProfile,date:i.date,nowDate:n.nowDate,todayRange:n.todayRange,extraHookProps:i.extraHookProps,extraDataAttrs:i.extraDataAttrs,extraClassNames:i.extraClassNames,extraDateSpan:i.extraDateSpan,fgEventSegs:o[r],bgEventSegs:s[r],businessHourSegs:h[r],nowIndicatorSegs:c[r],dateSelectionSegs:l[r],eventDrag:a[r],eventResize:v[r],slatCoords:n.slatCoords,eventSelection:n.eventSelection,forPrint:n.forPrint})})))))},i.prototype.componentDidMount=function(){this.updateCoords()},i.prototype.componentDidUpdate=function(){this.updateCoords()},i.prototype.updateCoords=function(){var n=this.props;if(n.onColCoords&&n.clientWidth!==null)n.onColCoords(new fi(this.rootElRef.current,hwt(this.cellElRefs.currentMap,n.cells),!0,!1))},i}(e);bs=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.processSlotOptions=f(cwt),t.state={slatCoords:null},t.handleRootEl=function(n){n?t.context.registerInteractiveComponent(t,{el:n,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(n){var r=t.props.onScrollTopRequest,u=t.state.slatCoords,i;return r&&u?(n.time&&(i=u.computeTimeTop(n.time),i=Math.ceil(i),i&&(i+=1),r(i)),!0):!1},t.handleColCoords=function(n){t.colCoords=n},t.handleSlatCoords=function(n){if(t.setState({slatCoords:n}),t.props.onSlatCoords)t.props.onSlatCoords(n)},t}return u(r,n),r.prototype.render=function(){var i=this,n=i.props,r=i.state;return t("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:n.clientWidth,minWidth:n.tableMinWidth}},t(ppt,{axis:n.axis,dateProfile:n.dateProfile,slatMetas:n.slatMetas,clientWidth:n.clientWidth,minHeight:n.expandRows?n.clientHeight:"",tableMinWidth:n.tableMinWidth,tableColGroupNode:n.axis?n.tableColGroupNode:null,onCoords:this.handleSlatCoords}),t(oit,{cells:n.cells,axis:n.axis,dateProfile:n.dateProfile,businessHourSegs:n.businessHourSegs,bgEventSegs:n.bgEventSegs,fgEventSegs:n.fgEventSegs,dateSelectionSegs:n.dateSelectionSegs,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange,nowDate:n.nowDate,nowIndicatorSegs:n.nowIndicatorSegs,clientWidth:n.clientWidth,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,slatCoords:r.slatCoords,onColCoords:this.handleColCoords,forPrint:n.forPrint}))},r.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},r.prototype.componentDidUpdate=function(n){this.scrollResponder.update(n.dateProfile!==this.props.dateProfile)},r.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},r.prototype.queryHit=function(n,t){var s=this.context,h=s.dateEnv,w=s.options,u=this.colCoords,c=this.props.dateProfile,e=this.state.slatCoords,l=this.processSlotOptions(this.props.slotDuration,w.snapDuration),a=l.snapDuration,v=l.snapsPerSlot,r=u.leftToIndex(n),f=e.positions.topToIndex(t);if(r!=null&&f!=null){var b=this.props.cells[r],o=e.positions.tops[f],y=e.positions.getHeight(f),k=(t-o)/y,d=Math.floor(k*v),g=f*v+d,nt=this.props.cells[r].date,tt=ve(c.slotMinTime,il(a,g)),p=h.add(nt,tt),it=h.add(p,a);return{dateProfile:c,dateSpan:i({range:{start:p,end:it},allDay:!1},b.extraDateSpan),dayEl:u.els[r],rect:{left:u.lefts[r],right:u.rights[r],top:o,bottom:o+y},layer:0}}return null},r}(rt);ks=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.sliceRange=function(n,t){for(var i,u=[],r=0;r<t.length;r+=1)i=ui(n,t[r]),i&&u.push({start:i.start,end:i.end,isStart:i.start.valueOf()===n.start.valueOf(),isEnd:i.end.valueOf()===n.end.valueOf(),col:r});return u},t}(is);ly=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildDayRanges=f(ay),t.slicer=new ks,t.timeColsRef=h(),t}return u(r,n),r.prototype.render=function(){var u=this,e=this,n=e.props,r=e.context,f=n.dateProfile,o=n.dayTableModel,s=r.options.nowIndicator,h=this.buildDayRanges(o,f,r.dateEnv);return t(at,{unit:s?"minute":"day"},function(e,c){return t(bs,i({ref:u.timeColsRef},u.slicer.sliceProps(n,f,null,r,h),{forPrint:n.forPrint,axis:n.axis,dateProfile:f,slatMetas:n.slatMetas,slotDuration:n.slotDuration,cells:o.cells[0],tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,expandRows:n.expandRows,nowDate:e,nowIndicatorSegs:s&&u.slicer.sliceNowDate(e,r,h),todayRange:c,onScrollTopRequest:n.onScrollTopRequest,onSlatCoords:n.onSlatCoords}))})},r}(rt);vy=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15},];py=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildTimeColsModel=f(wy),t.buildSlatMetas=f(yy),t}return u(r,n),r.prototype.render=function(){var u=this,o=this.context,n=o.options,p=o.dateEnv,w=o.dateProfileGenerator,f=this.props,r=f.dateProfile,e=this.buildTimeColsModel(r,w),c=this.allDaySplitter.splitProps(f),l=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,n.slotLabelInterval,n.slotDuration,p),s=n.dayMinWidth,h=!s,b=s,a=n.dayHeaders&&t(ts,{dates:e.headerDates,dateProfile:r,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),v=n.allDaySlot!==!1&&function(o){return t(ey,i({},c.allDay,{dateProfile:r,dayTableModel:e,nextDayThreshold:n.nextDayThreshold,tableMinWidth:o.tableMinWidth,colGroupNode:o.tableColGroupNode,renderRowIntro:h?u.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:u.headerElRef,clientWidth:o.clientWidth,clientHeight:o.clientHeight,forPrint:f.forPrint},u.getAllDayMaxEventProps()))},y=function(o){return t(ly,i({},c.timed,{dayTableModel:e,dateProfile:r,axis:h,slotDuration:n.slotDuration,slatMetas:l,forPrint:f.forPrint,tableColGroupNode:o.tableColGroupNode,tableMinWidth:o.tableMinWidth,clientWidth:o.clientWidth,clientHeight:o.clientHeight,onSlatCoords:u.handleSlatCoords,expandRows:o.expandRows,onScrollTopRequest:u.handleScrollTopRequest}))};return b?this.renderHScrollLayout(a,v,y,e.colCnt,s,l,this.state.slatCoords):this.renderSimpleLayout(a,v,y)},r}(sy);var awt={allDaySlot:Boolean},sit=k({initialView:"timeGridWeek",optionRefiners:awt,views:{timeGrid:{component:py,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),vwt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var e=this.props,r=e.dayDate,h=e.todayRange,u=this.context,o=u.theme,f=u.dateEnv,n=u.options,c=u.viewApi,s=nu(r,h),l=n.listDayFormat?f.format(r,n.listDayFormat):"",a=n.listDaySideFormat?f.format(r,n.listDaySideFormat):"",v=n.navLinks?ur(r):null,y=i({date:f.toDate(r),view:c,text:l,sideText:a,navLinkData:v},s),p=["fc-list-day"].concat(rr(s,o));return t(b,{hookProps:y,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:ywt,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},function(n,i,u,f){return t("tr",{ref:n,className:p.concat(i).join(" "),"data-date":br(r)},t("th",{colSpan:3},t("div",{className:"fc-list-day-cushion "+o.getClass("tableCellShaded"),ref:u},f)))})},r}(e);hit=y({hour:"numeric",minute:"2-digit",meridiem:"short"});cit=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var i=this,n=i.props,r=i.context,u=n.seg,f=r.options.eventTimeFormat||hit;return t(ru,{seg:u,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:pwt,isPast:n.isPast,isFuture:n.isFuture,isToday:n.isToday,isSelected:n.isSelected,isDragging:n.isDragging,isResizing:n.isResizing,isDateSelecting:n.isDateSelecting},function(n,i,e,o,s){return t("tr",{className:["fc-list-event",s.event.url?"fc-event-forced-url":""].concat(i).join(" "),ref:n},wwt(u,f,r),t("td",{className:"fc-list-event-graphic"},t("span",{className:"fc-list-event-dot",style:{borderColor:s.borderColor||s.backgroundColor}})),t("td",{className:"fc-list-event-title",ref:e},o))})},i}(e);by=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.computeDateVars=f(dwt),t.eventStoreToSegs=f(t._eventStoreToSegs),t.setRootEl=function(n){n?t.context.registerInteractiveComponent(t,{el:n}):t.context.unregisterInteractiveComponent(t)},t}return u(r,n),r.prototype.render=function(){var r=this,u=this,n=u.props,i=u.context,o=["fc-list",i.theme.getClass("table"),i.options.stickyHeaderDates!==!1?"fc-list-sticky":"",],f=this.computeDateVars(n.dateProfile),s=f.dayDates,h=f.dayRanges,e=this.eventStoreToSegs(n.eventStore,n.eventUiBases,h);return t(bt,{viewSpec:i.viewSpec,elRef:this.setRootEl},function(i,u){return t("div",{ref:i,className:o.concat(u).join(" ")},t(fs,{liquid:!n.isHeightAuto,overflowX:n.isHeightAuto?"visible":"hidden",overflowY:n.isHeightAuto?"visible":"auto"},e.length>0?r.renderSegList(e,s):r.renderEmptyMessage()))})},r.prototype.renderEmptyMessage=function(){var i=this.context,n=i.options,r=i.viewApi,u={text:n.noEventsText,view:r};return t(b,{hookProps:u,classNames:n.noEventsClassNames,content:n.noEventsContent,defaultContent:kwt,didMount:n.noEventsDidMount,willUnmount:n.noEventsWillUnmount},function(n,i,r,u){return t("div",{className:["fc-list-empty"].concat(i).join(" "),ref:n},t("div",{className:"fc-list-empty-cushion",ref:r},u))})},r.prototype.renderSegList=function(n,r){var u=this.context,e=u.theme,o=u.options,f=gwt(n);return t(at,{unit:"day"},function(n,u){for(var h,v,c,y,l,a=[],s=0;s<f.length;s+=1)if(h=f[s],h)for(v=r[s].toISOString(),a.push(t(vwt,{key:v,dayDate:r[s],todayRange:u})),h=ef(h,o.eventOrder),c=0,y=h;c<y.length;c++)l=y[c],a.push(t(cit,i({key:v+":"+l.eventRange.instance.instanceId,seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1},st(l,u,n))));return t("table",{className:"fc-list-table "+e.getClass("table")},t("tbody",null,a))})},r.prototype._eventStoreToSegs=function(n,t,i){return this.eventRangesToSegs(ff(n,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,i)},r.prototype.eventRangesToSegs=function(n,t){for(var f,i=[],r=0,u=n;r<u.length;r++)f=u[r],i.push.apply(i,this.eventRangeToSegs(f,t));return i},r.prototype.eventRangeToSegs=function(n,t){for(var o=this.context.dateEnv,s=this.context.options.nextDayThreshold,u=n.range,h=n.def.allDay,r,f,e=[],i=0;i<t.length;i+=1)if(r=ui(u,t[i]),r&&(f={component:this,eventRange:n,start:r.start,end:r.end,isStart:n.isStart&&r.start.valueOf()===u.start.valueOf(),isEnd:n.isEnd&&r.end.valueOf()===u.end.valueOf(),dayIndex:i},e.push(f),!f.isEnd&&!h&&i+1<t.length&&u.end<o.add(t[i+1].start,s))){f.end=u.end;f.isEnd=!0;break}return e},r}(rt);lit={listDayFormat:ait,listDaySideFormat:ait,noEventsClassNames:r,noEventsContent:r,noEventsDidMount:r,noEventsWillUnmount:r};vit=k({optionRefiners:lit,views:{list:{component:by,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"}}}});kt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t}(er);kt.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"};kt.prototype.baseIconClass="fa";kt.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"};kt.prototype.rtlIconClasses={prev:"fa-chevron-right",next:"fa-chevron-left",prevYear:"fa-angle-double-right",nextYear:"fa-angle-double-left"};kt.prototype.iconOverrideOption="bootstrapFontAwesome";kt.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome";kt.prototype.iconOverridePrefix="fa-";var nbt=k({themeClasses:{bootstrap:kt}}),tbt={googleCalendarApiKey:String},ibt={googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,extraParams:r},rbt="https://www.googleapis.com/calendar/v3/calendars",ubt={parseMeta:function(n){var t=n.googleCalendarId;return(!t&&n.url&&(t=fbt(n.url)),t)?{googleCalendarId:t,googleCalendarApiKey:n.googleCalendarApiKey,googleCalendarApiBase:n.googleCalendarApiBase,extraParams:n.extraParams}:null},fetch:function(n,t,i){var f=n.context,s=f.dateEnv,h=f.options,r=n.eventSource.meta,e=r.googleCalendarApiKey||h.googleCalendarApiKey;if(e){var c=ebt(r),u=r.extraParams,l=typeof u=="function"?u():u,o=obt(n.range,e,l,s);po("GET",c,o,function(n,r){n.error?i({message:"Google Calendar API: "+n.error.message,errors:n.error.errors,xhr:r}):t({rawEvents:sbt(n.items,o.timeZone),xhr:r})},function(n,t){i({message:n,xhr:t})})}else i({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}};var lbt=k({eventSourceDefs:[ubt],optionRefiners:tbt,eventSourceRefiners:ibt}),abt="2021-06-16",vbt=372,ybt=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives",];var pbt={schedulerLicenseKey:String},ar=k({optionRefiners:pbt,viewContainerAppends:[]}),yit="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" "),pit=function(){function n(n){var t=this,i,r,u;for(this.el=n,this.emitter=new fr,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new or(this._handleWheelWaited.bind(this)),this.scrollWaiter=new or(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()},n.addEventListener("scroll",this.handleScroll),n.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),n.addEventListener("touchend",this.handleTouchEnd),i=0,r=yit;i<r.length;i++)u=r[i],n.addEventListener(u,this.handleWheel)}return n.prototype.destroy=function(){var n=this.el,t,i,r;for(n.removeEventListener("scroll",this.handleScroll),n.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),n.removeEventListener("touchend",this.handleTouchEnd),t=0,i=yit;t<i.length;t++)r=i[t],n.removeEventListener(r,this.handleWheel)},n.prototype.startScroll=function(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))},n.prototype.endScroll=function(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())},n.prototype._handleScrollWaited=function(){this.isRecentlyScrolled=!1;this.isTouching||this.endScroll()},n.prototype._handleWheelWaited=function(){this.isRecentlyWheeled=!1},n}();var kbt=typeof navigator!="undefined"&&/Edge/.test(navigator.userAgent),dbt=".fc-sticky",gbt=function(){function n(n,t){var i=this;if(this.scrollEl=n,this.isRtl=t,this.usingRelative=null,this.updateSize=function(){var n=i.scrollEl,t=dt(n,dbt),r=i.queryElGeoms(t),u=n.clientWidth,e=n.clientHeight,f;i.usingRelative?(f=i.computeElDestinations(r,u),nkt(t,r,f,u,e)):tkt(t,r,u)},this.usingRelative=!ikt()||kbt&&t,this.usingRelative){this.listener=new pit(n);this.listener.emitter.on("scrollEnd",this.updateSize)}}return n.prototype.destroy=function(){this.listener&&this.listener.destroy()},n.prototype.queryElGeoms=function(n){for(var o=this,a=o.scrollEl,s=o.isRtl,i=wbt(a),h=[],u=0,c=n;u<c.length;u++){var r=c[u],v=gl(fa(r.parentNode,!0,!0),-i.left,-i.top),f=r.getBoundingClientRect(),e=window.getComputedStyle(r),t=window.getComputedStyle(r.parentNode).textAlign,l=null;t==="start"?t=s?"right":"left":t==="end"&&(t=s?"left":"right");e.position!=="sticky"&&(l=gl(f,-i.left-(parseFloat(e.left)||0),-i.top-(parseFloat(e.top)||0)));h.push({parentBound:v,naturalBound:l,elWidth:f.width,elHeight:f.height,textAlign:t})}return h},n.prototype.computeElDestinations=function(n,t){var r=this.scrollEl,f=r.scrollTop,i=wit(r),u=i+t;return n.map(function(n){var e=n.elWidth,s=n.elHeight,o=n.parentBound,h=n.naturalBound,t,r;switch(n.textAlign){case"left":t=i;break;case"right":t=u-e;break;case"center":t=(i+u)/2-e/2}return t=Math.min(t,o.right-e),t=Math.max(t,o.left),r=f,r=Math.min(r,o.bottom-s),r=Math.max(r,h.top),{left:t,top:r}})},n}();var rkt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.elRef=h(),t.state={xScrollbarWidth:0,yScrollbarWidth:0},t.handleScroller=function(n){t.scroller=n;g(t.props.scrollerRef,n)},t.handleSizing=function(){var n=t.props;n.overflowY==="scroll-hidden"&&t.setState({yScrollbarWidth:t.scroller.getYScrollbarWidth()});n.overflowX==="scroll-hidden"&&t.setState({xScrollbarWidth:t.scroller.getXScrollbarWidth()})},t}return u(i,n),i.prototype.render=function(){var r=this,n=r.props,i=r.state,o=r.context,s=o.isRtl&&hf(),u=0,f=0,e=0;return n.overflowX==="scroll-hidden"&&(e=i.xScrollbarWidth),n.overflowY==="scroll-hidden"&&i.yScrollbarWidth!=null&&(s?u=i.yScrollbarWidth:f=i.yScrollbarWidth),t("div",{ref:this.elRef,className:"fc-scroller-harness"+(n.liquid?" fc-scroller-harness-liquid":"")},t(fs,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:n.overflowX==="scroll-hidden"?"scroll":n.overflowX,overflowY:n.overflowY==="scroll-hidden"?"scroll":n.overflowY,overcomeLeft:u,overcomeRight:f,overcomeBottom:e,maxHeight:typeof n.maxHeight=="number"?n.maxHeight+(n.overflowX==="scroll-hidden"?i.xScrollbarWidth:0):"",liquid:n.liquid,liquidIsAbsolute:!0},n.children))},i.prototype.componentDidMount=function(){this.handleSizing();this.context.addResizeHandler(this.handleSizing)},i.prototype.componentDidUpdate=function(n){ut(n,this.props)||this.handleSizing()},i.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},i.prototype.needsXScrolling=function(){return this.scroller.needsXScrolling()},i.prototype.needsYScrolling=function(){return this.scroller.needsYScrolling()},i}(e),ukt=function(){function n(n,t){var i=this;this.isVertical=n;this.scrollEls=t;this.isPaused=!1;this.scrollListeners=t.map(function(n){return i.bindScroller(n)})}return n.prototype.destroy=function(){for(var i,n=0,t=this.scrollListeners;n<t.length;n++)i=t[n],i.destroy()},n.prototype.bindScroller=function(n){var t=this,r=this,u=r.scrollEls,f=r.isVertical,i=new pit(n),e=function(i,r){var e,s,o;if(!t.isPaused&&((!t.masterEl||t.masterEl!==n&&(i||r))&&t.assignMaster(n),t.masterEl===n))for(e=0,s=u;e<s.length;e++)o=s[e],o!==n&&(f?o.scrollTop=n.scrollTop:o.scrollLeft=n.scrollLeft)},o=function(){t.masterEl===n&&(t.masterEl=null)};i.emitter.on("scroll",e);i.emitter.on("scrollEnd",o);return i},n.prototype.assignMaster=function(n){var t,i,r;for(this.masterEl=n,t=0,i=this.scrollListeners;t<i.length;t++)r=i[t],r.el!==n&&r.endScroll()},n.prototype.forceScrollLeft=function(n){var t,i,r;for(this.isPaused=!0,t=0,i=this.scrollListeners;t<i.length;t++)r=i[t],bit(r.el,n);this.isPaused=!1},n.prototype.forceScrollTop=function(n){var t,i,r;for(this.isPaused=!0,t=0,i=this.scrollListeners;t<i.length;t++)r=i[t],r.el.scrollTop=n;this.isPaused=!1},n}(),ne=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.compileColGroupStats=ye(skt,hkt),t.renderMicroColGroups=ye(lv),t.clippedScrollerRefs=new nt,t.scrollerElRefs=new nt(t._handleScrollerEl.bind(t)),t.chunkElRefs=new nt(t._handleChunkEl.bind(t)),t.getStickyScrolling=ye(ckt,null,rrt),t.getScrollSyncersBySection=ul(irt.bind(t,!0),null,ds),t.getScrollSyncersByColumn=ul(irt.bind(t,!1),null,ds),t.stickyScrollings=[],t.scrollSyncersBySection={},t.scrollSyncersByColumn={},t.rowUnstableMap=new Map,t.rowInnerMaxHeightMap=new Map,t.anyRowHeightsChanged=!1,t.recentSizingCnt=0,t.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},t.handleSizing=function(n,r){if(t.allowSizing()){r||(t.anyRowHeightsChanged=!0);var u={};!n&&(r||t.rowUnstableMap.size)||(u.sectionRowMaxHeights=t.computeSectionRowMaxHeights());t.setState(i(i({shrinkWidths:t.computeShrinkWidths()},t.computeScrollerDims()),u),function(){t.rowUnstableMap.size||t.updateStickyScrolling()})}},t.handleRowHeightChange=function(n,i){var e=t,r=e.rowUnstableMap,u=e.rowInnerMaxHeightMap,f;i?(r.delete(n),f=git(n),u.has(n)&&u.get(n)===f||(u.set(n,f),t.anyRowHeightsChanged=!0),!r.size&&t.anyRowHeightsChanged&&(t.anyRowHeightsChanged=!1,t.setState({sectionRowMaxHeights:t.computeSectionRowMaxHeights()}))):r.set(n,!0)},t}return u(r,n),r.prototype.render=function(){var a=this,f=a.props,e=a.state,b=a.context,p=e.shrinkWidths,r=this.compileColGroupStats(f.colGroups.map(function(n){return[n]})),v=this.renderMicroColGroups(r.map(function(n,t){return[n.cols,p[t]]})),k=yv(f.liquid,b),w=this.getDims(),u;w[0];w[1];for(var o=f.sections,y=o.length,n=0,i,s=[],h=[],c=[];n<y&&(i=o[n]).type==="header";)s.push(this.renderSection(i,n,r,v,e.sectionRowMaxHeights)),n+=1;while(n<y&&(i=o[n]).type==="body")h.push(this.renderSection(i,n,r,v,e.sectionRowMaxHeights)),n+=1;while(n<y&&(i=o[n]).type==="footer")c.push(this.renderSection(i,n,r,v,e.sectionRowMaxHeights)),n+=1;return u=!oo(),t("table",{ref:f.elRef,className:k.join(" ")},okt(r,p),Boolean(!u&&s.length)&&t.apply(void 0,l(["thead",{}],s)),Boolean(!u&&h.length)&&t.apply(void 0,l(["tbody",{}],h)),Boolean(!u&&c.length)&&t.apply(void 0,l(["tfoot",{}],c)),u&&t.apply(void 0,l(l(l(["tbody",{}],s),h),c)))},r.prototype.renderSection=function(n,i,r,u,f){var e=this;return"outerContent"in n?t(c,{key:n.key},n.outerContent):t("tr",{key:n.key,className:pv(n,this.props.liquid).join(" ")},n.chunks.map(function(t,o){return e.renderChunk(n,i,r[o],u[o],t,o,(f[i]||[])[o]||[])}))},r.prototype.renderChunk=function(n,i,r,u,f,e,o){if("outerContent"in f)return t(c,{key:f.key},f.outerContent);var h=this.state,y=h.scrollerClientWidths,p=h.scrollerClientHeights,w=this.getDims(),d=w[0],b=w[1],s=i*b+e,g=!this.context.isRtl||hf()?b-1:0,l=e===g,a=i===d-1,nt=a&&h.forceXScrollbars,tt=l&&h.forceYScrollbars,it=r&&r.allowXScrolling,rt=sv(this.props,n),k=es(this.props,n),ut=n.expandRows&&k,ft=r&&r.totalColMinWidth||"",v=hv(n,f,{tableColGroupNode:u,tableMinWidth:ft,clientWidth:y[s]!==undefined?y[s]:null,clientHeight:p[s]!==undefined?p[s]:null,expandRows:ut,syncRowHeights:Boolean(n.syncRowHeights),rowSyncHeights:o,reportRowHeightChange:this.handleRowHeightChange}),et=nt?a?"auto":"scroll-hidden":it?a?"auto":"scroll-hidden":"hidden",ot=tt?l?"auto":"scroll-hidden":rt?l?"auto":"scroll-hidden":"hidden";return v=t(rkt,{ref:this.clippedScrollerRefs.createRef(s),scrollerElRef:this.scrollerElRefs.createRef(s),overflowX:et,overflowY:ot,liquid:k,maxHeight:n.maxHeight},v),t("td",{key:f.key,ref:this.chunkElRefs.createRef(s)},v)},r.prototype.componentDidMount=function(){this.updateScrollSyncers();this.handleSizing(!1);this.context.addResizeHandler(this.handleSizing)},r.prototype.componentDidUpdate=function(n,t){this.updateScrollSyncers();this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)},r.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing);this.destroyStickyScrolling();this.destroyScrollSyncers()},r.prototype.allowSizing=function(){var n=new Date;return!this.lastSizingDate||n.valueOf()>this.lastSizingDate.valueOf()+ot.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=n,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10},r.prototype.computeShrinkWidths=function(){var r=this,u=this.compileColGroupStats(this.props.colGroups.map(function(n){return[n]})),n=this.getDims(),f=n[0],t=n[1],e=f*t,i=[];return u.forEach(function(n,u){if(n.hasShrinkCol){var f=r.chunkElRefs.collect(u,e,t);i[u]=ov(f)}}),i},r.prototype.computeSectionRowMaxHeights=function(){for(var u,f,i,s,h,d,c,g,r,a,v,it,n,y=new Map,p=this.getDims(),rt=p[0],t=p[1],w=[],o=0;o<rt;o+=1){if(u=this.props.sections[o],f=[],u&&u.syncRowHeights){for(i=[],n=0;n<t;n+=1){var ut=o*t+n,b=[],k=this.chunkElRefs.currentMap[ut];b=k?dt(k,".fc-scrollgrid-sync-table tr").map(function(n){var t=git(n);return y.set(n,t),t}):[];i.push(b)}for(s=i[0].length,h=!0,n=1;n<t;n+=1)if(d=u.chunks[n]&&u.chunks[n].outerContent!==undefined,!d&&i[n].length!==s){h=!1;break}if(h){for(n=0;n<t;n+=1)f.push([]);for(r=0;r<s;r+=1){for(a=[],n=0;n<t;n+=1)v=i[n][r],v!=null&&a.push(v);for(it=Math.max.apply(Math,a),n=0;n<t;n+=1)f[n].push(it)}}else{for(c=[],n=0;n<t;n+=1)c.push(fkt(i[n])+i[n].length);for(g=Math.max.apply(Math,c),n=0;n<t;n+=1){var e=i[n].length,nt=g-e,tt=Math.floor(nt/e),ft=nt-tt*(e-1),l=[],r=0;for(r<e&&(l.push(ft),r+=1);r<e;)l.push(tt),r+=1;f.push(l)}}}w.push(f)}return this.rowInnerMaxHeightMap=y,w},r.prototype.computeScrollerDims=function(){for(var u,n,i,s,h,c=ra(),l=this.getDims(),f=l[0],r=l[1],a=!this.context.isRtl||hf()?r-1:0,v=f-1,y=this.clippedScrollerRefs.currentMap,b=this.scrollerElRefs.currentMap,e=!1,o=!1,p={},w={},t=0;t<f;t+=1)if(i=t*r+a,u=y[i],u&&u.needsYScrolling()){e=!0;break}for(n=0;n<r;n+=1)if(i=v*r+n,u=y[i],u&&u.needsXScrolling()){o=!0;break}for(t=0;t<f;t+=1)for(n=0;n<r;n+=1)i=t*r+n,s=b[i],s&&(h=s.parentNode,p[i]=Math.floor(h.getBoundingClientRect().width-(n===a&&e?c.y:0)),w[i]=Math.floor(h.getBoundingClientRect().height-(t===v&&o?c.x:0)));return{forceYScrollbars:e,forceXScrollbars:o,scrollerClientWidths:p,scrollerClientHeights:w}},r.prototype.updateStickyScrolling=function(){var t=this.context.isRtl,i=this.scrollerElRefs.getAll().map(function(n){return[n,t]}),n=this.getStickyScrolling(i);n.forEach(function(n){return n.updateSize()});this.stickyScrollings=n},r.prototype.destroyStickyScrolling=function(){this.stickyScrollings.forEach(rrt)},r.prototype.updateScrollSyncers=function(){for(var r,s,t,u=this.getDims(),f=u[0],n=u[1],h=f*n,e={},o={},c=this.scrollerElRefs.currentMap,i=0;i<f;i+=1)r=i*n,s=r+n,e[i]=gc(c,r,s,1);for(t=0;t<n;t+=1)o[t]=this.scrollerElRefs.collect(t,h,n);this.scrollSyncersBySection=this.getScrollSyncersBySection(e);this.scrollSyncersByColumn=this.getScrollSyncersByColumn(o)},r.prototype.destroyScrollSyncers=function(){w(this.scrollSyncersBySection,ds);w(this.scrollSyncersByColumn,ds)},r.prototype.getChunkConfigByIndex=function(n){var t=this.getDims()[1],r=Math.floor(n/t),u=n%t,i=this.props.sections[r];return i&&i.chunks[u]},r.prototype.forceScrollLeft=function(n,t){var i=this.scrollSyncersByColumn[n];i&&i.forceScrollLeft(t)},r.prototype.forceScrollTop=function(n,t){var i=this.scrollSyncersBySection[n];i&&i.forceScrollTop(t)},r.prototype._handleChunkEl=function(n,t){var i=this.getChunkConfigByIndex(parseInt(t,10));i&&g(i.elRef,n)},r.prototype._handleScrollerEl=function(n,t){var i=this.getChunkConfigByIndex(parseInt(t,10));i&&g(i.scrollerElRef,n)},r.prototype.getDims=function(){var n=this.props.sections.length,t=n?this.props.sections[0].chunks.length:0;return[n,t]},r}(e);ne.addStateEquality({shrinkWidths:ht,scrollerClientWidths:ut,scrollerClientHeights:ut});trt={cols:cv};urt=k({deps:[ar,],scrollGridImpl:ne});ot.SCROLLGRID_RESIZE_INTERVAL=500;ot.COLLAPSIBLE_WIDTH_THRESHOLD=1200;var eu=[],gs=[],lkt=k({deps:[ar,],contextInit:function(n){eu.length||akt();eu.push(n);n.calendarApi.on("_unmount",function(){ek(eu,n);eu.length||vkt()})}});var ndt=18,nh=6,tdt=200;ot.MAX_TIMELINE_SLOTS=1e3;th=[{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},];crt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,u=r.context,f=n.navLinkData?{"data-navlink":n.navLinkData,tabIndex:0}:{};return t(tu,{hookProps:n.hookProps,content:u.options.slotLabelContent,defaultContent:sdt},function(r,u){return t("a",i({ref:r,className:"fc-timeline-slot-cushion fc-scrollgrid-sync-inner"+(n.isSticky?" fc-sticky":"")},f),u)})},r}(e);var cdt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.refineHookProps=yi(hdt),t.normalizeClassNames=iu(),t}return u(i,n),i.prototype.render=function(){var e=this,i=e.props,r=e.context,h=r.dateEnv,u=r.options,n=i.cell,c=i.dateProfile,l=i.tDateProfile,o=nu(n.date,i.todayRange,i.nowDate,c),s=["fc-timeline-slot","fc-timeline-slot-label"].concat(n.rowUnit==="time"?ta(o,r.theme):rr(o,r.theme));n.isWeekStart&&s.push("fc-timeline-slot-em");var a=u.navLinks&&n.rowUnit&&n.rowUnit!=="time"?ur(n.date,n.rowUnit):null,f=this.refineHookProps({level:i.rowLevel,dateMarker:n.date,text:n.text,dateEnv:r.dateEnv,viewApi:r.viewApi}),v=this.normalizeClassNames(u.slotLabelClassNames,f);return t(bi,{hookProps:f,didMount:u.slotLabelDidMount,willUnmount:u.slotLabelWillUnmount},function(r){return t("th",{ref:r,className:s.concat(v).join(" "),"data-date":h.formatIso(n.date,{omitTime:!l.isTimeScale,omitTimeZoneOffset:!0}),colSpan:n.colspan},t("div",{className:"fc-timeline-slot-frame",style:{height:i.rowInnerHeight}},t(crt,{hookProps:f,isSticky:i.isSticky,navLinkData:a})))})},i}(e),lrt=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this.props,f=n.dateProfile,i=n.tDateProfile,r=n.rowInnerHeights,e=n.todayRange,o=n.nowDate,u=i.cellRows;return t(c,null,u.map(function(n,s){var h=s===u.length-1,c=i.isTimeScale&&h,l=["fc-timeline-header-row",c?"fc-timeline-header-row-chrono":"",];return t("tr",{key:s,className:l.join(" ")},n.map(function(n){return t(cdt,{key:n.date.toISOString(),cell:n,rowLevel:s,dateProfile:f,tDateProfile:i,todayRange:e,nowDate:o,rowInnerHeight:r&&r[s],isSticky:!h})}))}))},i}(e),art=function(){function n(n,t,i,r,u,f){this.slatRootEl=n;this.dateProfile=i;this.tDateProfile=r;this.dateEnv=u;this.isRtl=f;this.outerCoordCache=new fi(n,t,!0,!1);this.innerCoordCache=new fi(n,fb(t,"div"),!0,!1)}return n.prototype.isDateInRange=function(n){return wt(this.dateProfile.currentRange,n)},n.prototype.dateToCoord=function(n){var r=this.tDateProfile,s=this.computeDateSnapCoverage(n),u=s/r.snapsPerSlot,t=Math.floor(u);t=Math.min(t,r.slotCnt-1);var f=u-t,e=this,o=e.innerCoordCache,i=e.outerCoordCache;return this.isRtl?i.originClientRect.width-(i.rights[t]-o.getWidth(t)*f):i.lefts[t]+o.getWidth(t)*f},n.prototype.rangeToCoords=function(n){return{start:this.dateToCoord(n.start),end:this.dateToCoord(n.end)}},n.prototype.durationToCoord=function(n){var t=this,u=t.dateProfile,f=t.tDateProfile,e=t.dateEnv,o=t.isRtl,i=0,r;return u&&(r=e.add(u.activeRange.start,n),f.isTimeScale||(r=a(r)),i=this.dateToCoord(r),!o&&i&&(i+=1)),i},n.prototype.coordFromLeft=function(n){return this.isRtl?this.outerCoordCache.originClientRect.width-n:n},n.prototype.computeDateSnapCoverage=function(n){return dy(n,this.tDateProfile,this.dateEnv)},n}();var gy=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t}return u(i,n),i.prototype.render=function(){var f=this,r=this,n=r.props,u=r.context,e=ii(n.tDateProfile.slotDuration).unit,i=n.slatCoords&&n.slatCoords.dateProfile===n.dateProfile?n.slatCoords:null;return t(at,{unit:e},function(r,e){return t("div",{className:"fc-timeline-header",ref:f.rootElRef},t("table",{className:"fc-scrollgrid-sync-table",style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,t("tbody",null,t(lrt,{dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:r,todayRange:e,rowInnerHeights:n.rowInnerHeights}))),u.options.nowIndicator&&t("div",{className:"fc-timeline-now-indicator-container"},i&&i.isDateInRange(r)&&t(cr,{isAxis:!0,date:r},function(n,f,e,o){return t("div",{ref:n,className:["fc-timeline-now-indicator-arrow"].concat(f).join(" "),style:rh(i.dateToCoord(r),u.isRtl)},o)})))})},i.prototype.componentDidMount=function(){this.updateSize()},i.prototype.componentDidUpdate=function(){this.updateSize()},i.prototype.updateSize=function(){if(this.props.onMaxCushionWidth)this.props.onMaxCushionWidth(this.computeMaxCushionWidth())},i.prototype.computeMaxCushionWidth=function(){return Math.max.apply(Math,dt(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map(function(n){return n.getBoundingClientRect().width}))},i}(e),ldt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var h=this,n=h.props,u=h.context,o=u.dateEnv,f=u.options,c=u.theme,l=n.date,e=n.tDateProfile,a=n.isEm,s=nu(n.date,n.todayRange,n.nowDate,n.dateProfile),r=["fc-timeline-slot","fc-timeline-slot-lane"],v={"data-date":o.formatIso(l,{omitTimeZoneOffset:!0,omitTime:!e.isTimeScale})},y=i(i({date:o.toDate(n.date)},s),{view:u.viewApi});return a&&r.push("fc-timeline-slot-em"),e.isTimeScale&&r.push(li(o.countDurationsBetween(e.normalizedRange.start,n.date,e.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor"),r.push.apply(r,n.isDay?rr(s,c):ta(s,c)),t(b,{hookProps:y,classNames:f.slotLaneClassNames,content:f.slotLaneContent,didMount:f.slotLaneDidMount,willUnmount:f.slotLaneWillUnmount,elRef:n.elRef},function(n,u,f,e){return t("td",i({ref:n,className:r.concat(u).join(" ")},v),t("div",{ref:f},e))})},r}(e),adt=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this.props,i=n.tDateProfile,r=n.cellElRefs,u=i.slotDates,f=i.isWeekStarts,e=!i.isTimeScale&&!i.largeUnit;return t("tbody",null,t("tr",null,u.map(function(u,o){var s=u.toISOString();return t(ldt,{key:s,elRef:r.createRef(s),date:u,dateProfile:n.dateProfile,tDateProfile:i,nowDate:n.nowDate,todayRange:n.todayRange,isEm:f[o],isDay:e})})))},i}(e),np=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t.cellElRefs=new nt,t.handleScrollRequest=function(n){var r=t.props.onScrollLeftRequest,i=t.coords,u;return r&&i?(n.time&&(u=i.coordFromLeft(i.durationToCoord(n.time)),r(u)),!0):null},t}return u(i,n),i.prototype.render=function(){var i=this,n=i.props,r=i.context;return t("div",{className:"fc-timeline-slots",ref:this.rootElRef},t("table",{className:r.theme.getClass("table"),style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,t(adt,{cellElRefs:this.cellElRefs,dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange})))},i.prototype.componentDidMount=function(){this.updateSizing();this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},i.prototype.componentDidUpdate=function(n){this.updateSizing();this.scrollResponder.update(n.dateProfile!==this.props.dateProfile)},i.prototype.componentWillUnmount=function(){if(this.scrollResponder.detach(),this.props.onCoords)this.props.onCoords(null)},i.prototype.updateSizing=function(){var t=this,n=t.props,i=t.context,r;if(n.clientWidth!==null&&this.scrollResponder&&(r=this.rootElRef.current,r.offsetWidth)){if(this.coords=new art(this.rootElRef.current,vdt(this.cellElRefs.currentMap,n.tDateProfile.slotDates),n.dateProfile,n.tDateProfile,i.dateEnv,i.isRtl),n.onCoords)n.onCoords(this.coords);this.scrollResponder.update(!1)}},i.prototype.positionToHit=function(n){var i=this.coords.outerCoordCache,u=this.context,f=u.dateEnv,s=u.isRtl,r=this.props.tDateProfile,t=i.leftToIndex(n);if(t!=null){var e=i.getWidth(t),h=s?(i.rights[t]-n)/e:(n-i.lefts[t])/e,c=Math.floor(h*r.snapsPerSlot),o=f.add(r.slotDates[t],il(r.snapDuration,c)),l=f.add(o,r.snapDuration);return{dateSpan:{range:{start:o,end:l},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[t],left:i.lefts[t],right:i.rights[t]}}return null},i}(e);var tp=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props,i=[].concat(n.eventResizeSegs,n.dateSelectionSegs);return n.timelineCoords&&t("div",{className:"fc-timeline-bg"},this.renderSegs(n.businessHourSegs||[],n.timelineCoords,"non-business"),this.renderSegs(n.bgEventSegs||[],n.timelineCoords,"bg-event"),this.renderSegs(i,n.timelineCoords,"highlight"))},r.prototype.renderSegs=function(n,r,u){var f=this.props,e=f.todayRange,o=f.nowDate,s=this.context.isRtl,h=vrt(n,0,r),l=n.map(function(n,r){var f=h[r],c=uh(f,s);return t("div",{key:uo(n.eventRange),className:"fc-timeline-bg-harness",style:c},u==="bg-event"?t(kf,i({seg:n},st(n,e,o))):ss(u))});return t(c,null,l)},r}(e),ip=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.sliceRange=function(n,t,i,r,u){var e=idt(n,r,u),o=[],f;return dy(e.start,r,u)<dy(e.end,r,u)&&(f=ui(e,r.normalizedRange),f&&o.push({start:f.start,end:f.end,isStart:f.start.valueOf()===e.start.valueOf()&&ih(f.start,r,t,i),isEnd:f.end.valueOf()===e.end.valueOf()&&ih(gt(f.end,-1),r,t,i)})),o},t}(is),pdt=y({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),yrt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props;return t(wf,i({},n,{extraClassNames:["fc-timeline-event","fc-h-event"],defaultTimeFormat:pdt,defaultDisplayEventTime:!n.isTimeScale}))},r}(e),wdt=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t}return u(r,n),r.prototype.render=function(){var h=this,u=this,n=u.props,l=u.context,r=n.hiddenSegs,a=n.elRef,f=n.placement,e=n.resourceId,o=f.top,s=f.hcoords,v=s&&o!==null,y=uh(s,l.isRtl),p=e?{resourceId:e}:{};return t(cs,{allDayDate:null,moreCnt:r.length,allSegs:r,hiddenSegs:r,alignmentElRef:this.rootElRef,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:p,popoverContent:function(){return t(c,null,r.map(function(r){var u=r.eventRange.instance.instanceId;return t("div",{key:u,style:{visibility:n.isForcedInvisible[u]?"hidden":""}},t(yrt,i({isTimeScale:n.isTimeScale,seg:r,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:u===n.eventSelection},st(r,n.todayRange,n.nowDate))))}))}},function(n,r,u,f,e){return t("a",{ref:function(t){g(n,t);g(a,t);g(h.rootElRef,t)},className:["fc-timeline-more-link"].concat(r).join(" "),style:i({visibility:v?"":"hidden",top:o||0},y),onClick:e},t("div",{ref:u,className:"fc-timeline-more-link-inner fc-sticky"},f))})},r}(e),fh=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.slicer=new ip,t.sortEventSegs=f(ef),t.harnessElRefs=new nt,t.moreElRefs=new nt,t.innerElRef=h(),t.state={eventInstanceHeights:{},moreLinkHeights:{}},t}return u(r,n),r.prototype.render=function(){var f=this,i=f.props,e=f.state,r=f.context,u=r.options,o=i.dateProfile,s=i.tDateProfile,n=this.slicer.sliceProps(i,o,s.isTimeScale?null:i.nextDayThreshold,r,o,r.dateProfileGenerator,s,r.dateEnv),v=(n.eventDrag?n.eventDrag.segs:null)||(n.eventResize?n.eventResize.segs:null)||[],h=this.sortEventSegs(n.fgEventSegs,u.eventOrder),y=vrt(h,u.eventMinWidth,i.timelineCoords),l=ydt(h,y,e.eventInstanceHeights,e.moreLinkHeights,u.eventOrderStrict,u.eventMaxStack),a=l[0],p=l[1],w=(n.eventDrag?n.eventDrag.affectedInstances:null)||(n.eventResize?n.eventResize.affectedInstances:null)||{};return t(c,null,t(tp,{businessHourSegs:n.businessHourSegs,bgEventSegs:n.bgEventSegs,timelineCoords:i.timelineCoords,eventResizeSegs:n.eventResize?n.eventResize.segs:[],dateSelectionSegs:n.dateSelectionSegs,nowDate:i.nowDate,todayRange:i.todayRange}),t("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:p}},this.renderFgSegs(a,w,!1,!1,!1),this.renderFgSegs(bdt(v,i.timelineCoords,a),{},Boolean(n.eventDrag),Boolean(n.eventResize),!1)))},r.prototype.componentDidMount=function(){this.updateSize()},r.prototype.componentDidUpdate=function(n,t){(n.eventStore!==this.props.eventStore||n.timelineCoords!==this.props.timelineCoords||t.moreLinkHeights!==this.state.moreLinkHeights)&&this.updateSize()},r.prototype.updateSize=function(){var t=this,n=this.props,i=n.timelineCoords;if(n.onHeightChange)n.onHeightChange(this.innerElRef.current,!1);i&&this.setState({eventInstanceHeights:w(this.harnessElRefs.currentMap,function(n){return Math.round(n.getBoundingClientRect().height)}),moreLinkHeights:w(this.moreElRefs.currentMap,function(n){return Math.round(n.getBoundingClientRect().height)})},function(){if(n.onHeightChange)n.onHeightChange(t.innerElRef.current,!0)})},r.prototype.renderFgSegs=function(n,r,u,f,e){var s=this,l=s.harnessElRefs,a=s.moreElRefs,o=s.props,v=s.context,h=u||f||e;return t(c,null,n.map(function(n){var s=n.seg,p=n.hcoords,w=n.top,y;if(Array.isArray(s))return y=wu(df(s)),t(wdt,{key:"m:"+y,elRef:a.createRef(y),hiddenSegs:s,placement:n,dateProfile:o.dateProfile,nowDate:o.nowDate,todayRange:o.todayRange,isTimeScale:o.tDateProfile.isTimeScale,eventSelection:o.eventSelection,resourceId:o.resourceId,isForcedInvisible:r});var c=s.eventRange.instance.instanceId,b=h||Boolean(!r[c]&&p&&w!==null),k=uh(p,v.isRtl);return t("div",{key:"e:"+c,ref:h?null:l.createRef(c),className:"fc-timeline-event-harness",style:i({visibility:b?"":"hidden",top:w||0},k)},t(yrt,i({isTimeScale:o.tDateProfile.isTimeScale,seg:s,isDragging:u,isResizing:f,isDateSelecting:e,isSelected:c===o.eventSelection},st(s,o.todayRange,o.nowDate))))}))},r}(e);fh.addStateEquality({eventInstanceHeights:ut,moreLinkHeights:ut});prt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.slatsRef=h(),t.state={coords:null},t.handeEl=function(n){n?t.context.registerInteractiveComponent(t,{el:n}):t.context.unregisterInteractiveComponent(t)},t.handleCoords=function(n){if(t.setState({coords:n}),t.props.onSlatCoords)t.props.onSlatCoords(n)},t}return u(i,n),i.prototype.render=function(){var u=this,r=this,n=r.props,i=r.state,f=r.context,e=f.options,o=n.dateProfile,s=n.tDateProfile,h=ii(s.slotDuration).unit;return t("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:n.tableMinWidth,height:n.clientHeight,width:n.clientWidth}},t(at,{unit:h},function(r,h){return t(c,null,t(np,{ref:u.slatsRef,dateProfile:o,tDateProfile:s,nowDate:r,todayRange:h,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:u.handleCoords,onScrollLeftRequest:n.onScrollLeftRequest}),t(fh,{dateProfile:o,tDateProfile:n.tDateProfile,nowDate:r,todayRange:h,nextDayThreshold:e.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}),e.nowIndicator&&i.coords&&i.coords.isDateInRange(r)&&t("div",{className:"fc-timeline-now-indicator-container"},t(cr,{isAxis:!1,date:r},function(n,u,e,o){return t("div",{ref:n,className:["fc-timeline-now-indicator-line"].concat(u).join(" "),style:rh(i.coords.dateToCoord(r),f.isRtl)},o)})))}))},i.prototype.queryHit=function(n,t,i,r){var f=this.slatsRef.current,u=f.positionToHit(n);return u?{dateProfile:this.props.dateProfile,dateSpan:u.dateSpan,rect:{left:u.left,right:u.right,top:0,bottom:r},dayEl:u.dayEl,layer:0}:null},i}(rt);rp=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildTimelineDateProfile=f(ky),t.scrollGridRef=h(),t.state={slatCoords:null,slotCushionMaxWidth:null},t.handleSlatCoords=function(n){t.setState({slatCoords:n})},t.handleScrollLeftRequest=function(n){var i=t.scrollGridRef.current;i.forceScrollLeft(0,n)},t.handleMaxCushionWidth=function(n){t.setState({slotCushionMaxWidth:Math.ceil(n)})},t}return u(r,n),r.prototype.render=function(){var u=this,o=this,n=o.props,c=o.state,f=o.context,r=f.options,l=!n.forPrint&&hr(r),a=!n.forPrint&&yf(r),e=this.buildTimelineDateProfile(n.dateProfile,f.dateEnv,r,f.dateProfileGenerator),v=["fc-timeline",r.eventOverlap===!1?"fc-timeline-overlap-disabled":"",],s=r.slotMinWidth,y=up(e,s||this.computeFallbackSlotMinWidth(e)),h=[{type:"header",key:"header",isSticky:l,chunks:[{key:"timeline",content:function(i){return t(gy,{dateProfile:n.dateProfile,clientWidth:i.clientWidth,clientHeight:i.clientHeight,tableMinWidth:i.tableMinWidth,tableColGroupNode:i.tableColGroupNode,tDateProfile:e,slatCoords:c.slatCoords,onMaxCushionWidth:s?null:u.handleMaxCushionWidth})}}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:function(r){return t(prt,i({},n,{clientWidth:r.clientWidth,clientHeight:r.clientHeight,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,tDateProfile:e,onSlatCoords:u.handleSlatCoords,onScrollLeftRequest:u.handleScrollLeftRequest}))}}]},];return a&&h.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:sr}]}),t(bt,{viewSpec:f.viewSpec},function(i,r){return t("div",{ref:i,className:v.concat(r).join(" ")},t(ne,{ref:u.scrollGridRef,liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:!1,colGroups:[{cols:y},],sections:h}))})},r.prototype.computeFallbackSlotMinWidth=function(n){return Math.max(30,(this.state.slotCushionMaxWidth||0)/n.slotsPerLabel)},r}(rt);fp=k({deps:[ar,],initialView:"timelineDay",views:{timeline:{component:rp,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}}}});brt=function(){function n(){this.filterResources=f(tgt)}return n.prototype.transform=function(n,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null},n}();krt=function(){function n(){this.buildResourceEventUis=f(egt,ut);this.injectResourceEventUis=f(ogt)}return n.prototype.transform=function(n,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(n.eventUiBases,n.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}},n}();eh=[];grt={id:String,resources:r,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:r};sp="_fc:";tut={id:String,parentId:String,children:r,title:String,businessHours:r,extendedProps:r,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:r,eventOverlap:Boolean,eventAllow:r,eventClassNames:du,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};iut={resourceId:String,resourceIds:r,resourceEditable:Boolean};ft=function(){function n(n,t){this._context=n;this._resource=t}return n.prototype.setProp=function(n,t){var i=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:i.id,propName:n,propValue:t});this.sync(i)},n.prototype.setExtendedProp=function(n,t){var i=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:i.id,propName:n,propValue:t});this.sync(i)},n.prototype.sync=function(t){var i=this._context,r=t.id;this._resource=i.getCurrentData().resourceStore[r];i.emitter.trigger("resourceChange",{oldResource:new n(i,t),resource:this,revert:function(){var n;i.dispatch({type:"ADD_RESOURCE",resourceHash:(n={},n[r]=t,n)})}})},n.prototype.remove=function(){var n=this._context,t=this._resource,i=t.id;n.dispatch({type:"REMOVE_RESOURCE",resourceId:i});n.emitter.trigger("resourceRemove",{resource:this,revert:function(){var r;n.dispatch({type:"ADD_RESOURCE",resourceHash:(r={},r[i]=t,r)})}})},n.prototype.getParent=function(){var t=this._context,i=this._resource.parentId;return i?new n(t,t.getCurrentData().resourceSource[i]):null},n.prototype.getChildren=function(){var f=this._resource.id,i=this._context,t=i.getCurrentData().resourceStore,r=[];for(var u in t)t[u].parentId===f&&r.push(new n(i,t[u]));return r},n.prototype.getEvents=function(){var o=this._resource.id,i=this._context,r=i.getCurrentData().eventStore,s=r.defs,u=r.instances,f=[],e,n,t;for(e in u)n=u[e],t=s[n.defId],t.resourceIds.indexOf(o)!==-1&&f.push(new v(i,t,n));return f},Object.defineProperty(n.prototype,"id",{get:function(){return cp(this._resource.id)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._resource.title},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventConstraint",{get:function(){return this._resource.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventOverlap",{get:function(){return this._resource.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventAllow",{get:function(){return this._resource.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventBackgroundColor",{get:function(){return this._resource.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventBorderColor",{get:function(){return this._resource.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventTextColor",{get:function(){return this._resource.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventClassNames",{get:function(){return this._resource.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"extendedProps",{get:function(){return this._resource.extendedProps},enumerable:!1,configurable:!0}),n.prototype.toPlainObject=function(n){n===void 0&&(n={});var u=this._resource,t=u.ui,f=this.id,r={};return f&&(r.id=f),u.title&&(r.title=u.title),n.collapseEventColor&&t.backgroundColor&&t.backgroundColor===t.borderColor?r.eventColor=t.backgroundColor:(t.backgroundColor&&(r.eventBackgroundColor=t.backgroundColor),t.borderColor&&(r.eventBorderColor=t.borderColor)),t.textColor&&(r.eventTextColor=t.textColor),t.classNames.length&&(r.eventClassNames=t.classNames),Object.keys(u.extendedProps).length&&(n.collapseExtendedProps?i(r,u.extendedProps):r.extendedProps=u.extendedProps),r},n.prototype.toJSON=function(){return this.toPlainObject()},n}();pi.prototype.addResource=function(n,t){var f,o=this,r,u,i,e;return t===void 0&&(t=!0),r=this.getCurrentData(),n instanceof ft?(i=n._resource,u=(f={},f[i.id]=i,f)):(u={},i=hp(n,"",u,r)),this.dispatch({type:"ADD_RESOURCE",resourceHash:u}),t&&this.trigger("_scrollRequest",{resourceId:i.id}),e=new ft(r,i),r.emitter.trigger("resourceAdd",{resource:e,revert:function(){o.dispatch({type:"REMOVE_RESOURCE",resourceId:i.id})}}),e};pi.prototype.getResourceById=function(n){var t,i;return(n=String(n),t=this.getCurrentData(),t.resourceStore&&(i=t.resourceStore[n],i))?new ft(t,i):null};pi.prototype.getResources=function(){var t=this.getCurrentData(),n=t.resourceStore,i=[],r;if(n)for(r in n)i.push(new ft(t,n[r]));return i};pi.prototype.getTopLevelResources=function(){var i=this.getCurrentData(),n=i.resourceStore,r=[],t;if(n)for(t in n)n[t].parentId||r.push(new ft(i,n[t]));return r};pi.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};oh=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.getKeyInfo=function(n){return i({"":{}},n.resourceStore)},t.prototype.getKeysForDateSpan=function(n){return[n.resourceId||""]},t.prototype.getKeysForEventDef=function(n){var t=n.resourceIds;return t.length?t:[""]},t}(sf);v.prototype.getResources=function(){var n=this._context.calendarApi;return this._def.resourceIds.map(function(t){return n.getResourceById(t)})};v.prototype.setResources=function(n){for(var t,i,u=[],r=0,f=n;r<f.length;r++)t=f[r],i=null,typeof t=="string"?i=t:typeof t=="number"?i=String(t):t instanceof ft?i=t.id:console.warn("unknown resource type: "+t),i&&u.push(i);this.mutate({standardProps:{resourceIds:u}})};rut={resources:ynt};te=ce("id,title");uut={initialResources:r,resources:r,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:ce,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:r,resourceAreaColumns:r,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:r,resourceAreaHeaderContent:r,resourceAreaHeaderDidMount:r,resourceAreaHeaderWillUnmount:r,resourceGroupLabelClassNames:r,resourceGroupLabelContent:r,resourceGroupLabelDidMount:r,resourceGroupLabelWillUnmount:r,resourceLabelClassNames:r,resourceLabelContent:r,resourceLabelDidMount:r,resourceLabelWillUnmount:r,resourceLaneClassNames:r,resourceLaneContent:r,resourceLaneDidMount:r,resourceLaneWillUnmount:r,resourceGroupLaneClassNames:r,resourceGroupLaneContent:r,resourceGroupLaneDidMount:r,resourceGroupLaneWillUnmount:r};fut={resourcesSet:r,resourceAdd:r,resourceChange:r,resourceRemove:r};ep({ignoreRange:!0,parseMeta:function(n){return Array.isArray(n.resources)?n.resources:null},fetch:function(n,t){t({rawResources:n.resourceSource.meta})}});ep({parseMeta:function(n){return typeof n.resources=="function"?n.resources:null},fetch:function(n,t,i){var r=n.context.dateEnv,u=n.resourceSource.meta,f=n.range?{start:r.toDate(n.range.start),end:r.toDate(n.range.end),startStr:r.formatIso(n.range.start),endStr:r.formatIso(n.range.end),timeZone:r.timeZone}:{};oa(u.bind(null,f),function(n){t({rawResources:n})},i)}});ep({parseMeta:function(n){return n.url?{url:n.url,method:(n.method||"GET").toUpperCase(),extraParams:n.extraParams}:null},fetch:function(n,t,i){var r=n.resourceSource.meta,u=wnt(r,n.range,n.context);po(r.method,r.url,u,function(n,i){t({rawResources:n,xhr:i})},function(n,t){i({message:n,xhr:t})})}});sh=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props;return t(eut,{resource:n.resource,date:n.date},function(r,u,f,e,o){return t("th",i({ref:r,className:["fc-col-header-cell","fc-resource"].concat(u).join(" "),colSpan:n.colSpan},f),t("div",{className:"fc-scrollgrid-sync-inner"},t("span",{className:["fc-col-header-cell-cushion",n.isSticky?"fc-sticky":"",].join(" "),ref:e},o)))})},r}(e);hh=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildDateFormat=f(knt),t}return u(i,n),i.prototype.render=function(){var i=this,r=this,n=r.props,u=r.context,f=this.buildDateFormat(u.options.dayHeaderFormat,n.datesRepDistinctDays,n.dates.length);return t(at,{unit:"day"},function(t,r){return n.dates.length===1?i.renderResourceRow(n.resources,n.dates[0]):u.options.datesAboveResources?i.renderDayAndResourceRows(n.dates,f,r,n.resources):i.renderResourceAndDayRows(n.resources,n.dates,f,r)})},i.prototype.renderResourceRow=function(n,i){var r=n.map(function(n){return t(sh,{key:n.id,resource:n,colSpan:1,date:i})});return this.buildTr(r,"resources")},i.prototype.renderDayAndResourceRows=function(n,i,r,u){for(var f,e,s,h,l=[],a=[],o=0,v=n;o<v.length;o++)for(f=v[o],l.push(this.renderDateCell(f,i,r,u.length,null,!0)),e=0,s=u;e<s.length;e++)h=s[e],a.push(t(sh,{key:h.id+":"+f.toISOString(),resource:h,colSpan:1,date:f}));return t(c,null,this.buildTr(l,"day"),this.buildTr(a,"resources"))},i.prototype.renderResourceAndDayRows=function(n,i,r,u){for(var f,e,s,v,h=[],l=[],o=0,a=n;o<a.length;o++)for(f=a[o],h.push(t(sh,{key:f.id,resource:f,colSpan:i.length,isSticky:!0})),e=0,s=i;e<s.length;e++)v=s[e],l.push(this.renderDateCell(v,r,u,1,f));return t(c,null,this.buildTr(h,"resources"),this.buildTr(l,"day"))},i.prototype.renderDateCell=function(n,i,r,u,f,e){var o=this.props,s=f?":"+f.id:"",h=f?{resource:new ft(this.context,f)}:{},c=f?{"data-resource-id":f.id}:{};return o.datesRepDistinctDays?t(nv,{key:n.toISOString()+s,date:n,dateProfile:o.dateProfile,todayRange:r,colCnt:o.dates.length*o.resources.length,dayHeaderFormat:i,colSpan:u,isSticky:e,extraHookProps:h,extraDataAttrs:c}):t(tv,{key:n.getUTCDay()+s,dow:n.getUTCDay(),dayHeaderFormat:i,colSpan:u,isSticky:e,extraHookProps:h,extraDataAttrs:c})},i.prototype.buildTr=function(n,i){var r=this.props.renderIntro;return n.length||(n=[t("td",{key:0}," ")]),t("tr",{key:i},r&&r(i),n)},i}(e);var dnt=function(){function n(n){for(var i,r={},u=[],t=0;t<n.length;t+=1)i=n[t].id,u.push(i),r[i]=t;this.ids=u;this.indicesById=r;this.length=n.length}return n}(),lp=function(){function n(n,t,i){this.dayTableModel=n;this.resources=t;this.context=i;this.resourceIndex=new dnt(t);this.rowCnt=n.rowCnt;this.colCnt=n.colCnt*t.length;this.cells=this.buildCells()}return n.prototype.buildCells=function(){for(var f,n,t,r=this,c=r.rowCnt,e=r.dayTableModel,o=r.resources,s=[],u=0;u<c;u+=1){for(f=[],n=0;n<e.colCnt;n+=1)for(t=0;t<o.length;t+=1){var i=o[t],l={resource:new ft(this.context,i)},a={"data-resource-id":i.id},v={resourceId:i.id},h=e.cells[u][n].date;f[this.computeCol(n,t)]={key:i.id+":"+h.toISOString(),date:h,extraHookProps:l,extraDataAttrs:a,extraClassNames:["fc-resource"],extraDateSpan:v}}s.push(f)}return s},n}(),ap=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.computeCol=function(n,t){return t*this.dayTableModel.colCnt+n},t.prototype.computeColRanges=function(n,t,i){return[{firstCol:this.computeCol(n,i),lastCol:this.computeCol(t,i),isStart:!0,isEnd:!0},]},t}(lp),vp=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.computeCol=function(n,t){return n*this.resources.length+t},t.prototype.computeColRanges=function(n,t,i){for(var u,f=[],r=n;r<=t;r+=1)u=this.computeCol(r,i),f.push({firstCol:u,lastCol:u,isStart:r===n,isEnd:r===t});return f},t}(lp),out=[],yp=function(){function n(){this.joinDateSelection=f(this.joinSegs);this.joinBusinessHours=f(this.joinSegs);this.joinFgEvents=f(this.joinSegs);this.joinBgEvents=f(this.joinSegs);this.joinEventDrags=f(this.joinInteractions);this.joinEventResizes=f(this.joinInteractions)}return n.prototype.joinProps=function(n,t){for(var r,i,e=[],o=[],s=[],h=[],c=[],a=[],u="",y=t.resourceIndex.ids.concat([""]),f=0,v=y;f<v.length;f++)r=v[f],i=n[r],e.push(i.dateSelectionSegs),o.push(r?i.businessHourSegs:out),s.push(r?i.fgEventSegs:out),h.push(i.bgEventSegs),c.push(i.eventDrag),a.push(i.eventResize),u=u||i.eventSelection;return{dateSelectionSegs:this.joinDateSelection.apply(this,l([t],e)),businessHourSegs:this.joinBusinessHours.apply(this,l([t],o)),fgEventSegs:this.joinFgEvents.apply(this,l([t],s)),bgEventSegs:this.joinBgEvents.apply(this,l([t],h)),eventDrag:this.joinEventDrags.apply(this,l([t],c)),eventResize:this.joinEventResizes.apply(this,l([t],a)),eventSelection:u}},n.prototype.joinSegs=function(n){for(var s,t,i,u,h,e,c,f,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];for(s=n.resources.length,t=[],i=0;i<s;i+=1){for(u=0,h=o[i];u<h.length;u++)f=h[u],t.push.apply(t,this.transformSeg(f,n,i));for(e=0,c=o[s];e<c.length;e++)f=c[e],t.push.apply(t,this.transformSeg(f,n,i))}return t},n.prototype.expandSegs=function(n,t){for(var i,f,e,o=n.resources.length,r=[],u=0;u<o;u+=1)for(i=0,f=t;i<f.length;i++)e=f[i],r.push.apply(r,this.transformSeg(e,n,u));return r},n.prototype.joinInteractions=function(n){for(var t,u,o,a,h,v,s,f=[],e=1;e<arguments.length;e++)f[e-1]=arguments[e];var c=n.resources.length,y={},r=[],p=!1,l=!1;for(t=0;t<c;t+=1){if(u=f[t],u){for(p=!0,o=0,a=u.segs;o<a.length;o++)s=a[o],r.push.apply(r,this.transformSeg(s,n,t));i(y,u.affectedInstances);l=l||u.isEvent}if(f[c])for(h=0,v=f[c].segs;h<v.length;h++)s=v[h],r.push.apply(r,this.transformSeg(s,n,t))}return p?{affectedInstances:y,segs:r,isEvent:l}:null},n}(),pp=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.getKeyInfo=function(n){var t=n.resourceDayTableModel,i=w(t.resourceIndex.indicesById,function(n){return t.resources[n]});return i[""]={},i},t.prototype.getKeysForDateSpan=function(n){return[n.resourceId||""]},t.prototype.getKeysForEventDef=function(n){var t=n.resourceIds;return t.length?t:[""]},t}(sf);var lh=k({deps:[ar,],reducers:[rnt,],isLoadingFuncs:[function(n){return n.resourceSource&&n.resourceSource.isFetching},],eventRefiners:iut,eventDefMemberAdders:[unt],isDraggableTransformers:[fgt],eventDragMutationMassagers:[ddt],eventDefMutationAppliers:[gdt],dateSelectionTransformers:[ent],datePointTransforms:[snt],dateSpanTransforms:[hnt],viewPropsTransformers:[brt,krt],isPropsValid:cnt,externalDefTransforms:[vnt],eventDropTransformers:[ngt],optionChangeHandlers:rut,optionRefiners:uut,listenerRefiners:fut,propSetHandlers:{resourceStore:pnt}}),iti=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.transformSeg=function(n,t,r){var u=t.computeColRanges(n.firstCol,n.lastCol,r);return u.map(function(t){return i(i(i({},n),t),{isStart:n.isStart&&t.isStart,isEnd:n.isEnd&&t.isEnd})})},t}(yp),dp=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.splitter=new pp,t.slicers={},t.joiner=new iti,t.tableRef=h(),t.isHitComboAllowed=function(n,i){var r=t.props.resourceDayTableModel.dayTableModel.colCnt===1;return r||n.dateSpan.resourceId===i.dateSpan.resourceId},t}return u(r,n),r.prototype.render=function(){var s=this,u=this,n=u.props,h=u.context,r=n.resourceDayTableModel,c=n.nextDayThreshold,f=n.dateProfile,e=this.splitter.splitProps(n),o;return this.slicers=w(e,function(n,t){return s.slicers[t]||new fy}),o=w(this.slicers,function(n,t){return n.sliceProps(e[t],f,c,h,r.dayTableModel)}),t(ws,i({forPrint:n.forPrint,ref:this.tableRef},this.joiner.joinProps(o,r),{cells:r.cells,dateProfile:f,colGroupNode:n.colGroupNode,tableMinWidth:n.tableMinWidth,renderRowIntro:n.renderRowIntro,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.showWeekNumbers,expandRows:n.expandRows,headerAlignElRef:n.headerAlignElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,isHitComboAllowed:this.isHitComboAllowed}))},r}(rt),lut=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.flattenResources=f(wp),t.buildResourceDayTableModel=f(rti),t.headerRef=h(),t.tableRef=h(),t}return u(i,n),i.prototype.render=function(){var f=this,e=this,n=e.props,r=e.context,i=r.options,c=i.resourceOrder||te,o=this.flattenResources(n.resourceStore,c),u=this.buildResourceDayTableModel(n.dateProfile,r.dateProfileGenerator,o,i.datesAboveResources,r),s=i.dayHeaders&&t(hh,{ref:this.headerRef,resources:o,dateProfile:n.dateProfile,dates:u.dayTableModel.headerDates,datesRepDistinctDays:!0}),h=function(r){return t(dp,{ref:f.tableRef,dateProfile:n.dateProfile,resourceDayTableModel:u,businessHours:n.businessHours,eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:i.nextDayThreshold,tableMinWidth:r.tableMinWidth,colGroupNode:r.tableColGroupNode,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:f.headerElRef,clientWidth:r.clientWidth,clientHeight:r.clientHeight,forPrint:n.forPrint})};return i.dayMinWidth?this.renderHScrollLayout(s,h,u.colCnt,i.dayMinWidth):this.renderSimpleLayout(s,h)},i}(ny);var uti=k({deps:[ar,lh,dtt,],initialView:"resourceDayGridDay",views:{resourceDayGrid:{type:"dayGrid",component:lut,needsResourceData:!0},resourceDayGridDay:{type:"resourceDayGrid",duration:{days:1}},resourceDayGridWeek:{type:"resourceDayGrid",duration:{weeks:1}},resourceDayGridMonth:{type:"resourceDayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),fti=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.transformSeg=function(n,t,r){return[i(i({},n),{col:t.computeCol(n.col,r)}),]},t}(yp),aut=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildDayRanges=f(ay),t.splitter=new pp,t.slicers={},t.joiner=new fti,t.timeColsRef=h(),t.isHitComboAllowed=function(n,i){var r=t.dayRanges.length===1;return r||n.dateSpan.resourceId===i.dateSpan.resourceId},t}return u(r,n),r.prototype.render=function(){var r=this,o=this,n=o.props,u=o.context,l=u.dateEnv,s=u.options,f=n.dateProfile,e=n.resourceDayTableModel,a=this.dayRanges=this.buildDayRanges(e.dayTableModel,f,l),h=this.splitter.splitProps(n),c;return this.slicers=w(h,function(n,t){return r.slicers[t]||new ks}),c=w(this.slicers,function(n,t){return n.sliceProps(h[t],f,null,u,a)}),t(at,{unit:s.nowIndicator?"minute":"day"},function(u,o){return t(bs,i({ref:r.timeColsRef},r.joiner.joinProps(c,e),{dateProfile:f,axis:n.axis,slotDuration:n.slotDuration,slatMetas:n.slatMetas,cells:e.cells[0],tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,expandRows:n.expandRows,nowDate:u,nowIndicatorSegs:s.nowIndicator&&r.buildNowIndicatorSegs(u),todayRange:o,onScrollTopRequest:n.onScrollTopRequest,forPrint:n.forPrint,onSlatCoords:n.onSlatCoords,isHitComboAllowed:r.isHitComboAllowed}))})},r.prototype.buildNowIndicatorSegs=function(n){var t=this.slicers[""].sliceNowDate(n,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)},r}(rt),vut=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.flattenResources=f(wp),t.buildResourceTimeColsModel=f(eti),t.buildSlatMetas=f(yy),t}return u(r,n),r.prototype.render=function(){var u=this,c=this,f=c.props,e=c.context,n=e.options,b=e.dateEnv,r=f.dateProfile,l=this.allDaySplitter.splitProps(f),k=n.resourceOrder||te,a=this.flattenResources(f.resourceStore,k),o=this.buildResourceTimeColsModel(r,e.dateProfileGenerator,a,n.datesAboveResources,e),v=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,n.slotLabelInterval,n.slotDuration,b),s=n.dayMinWidth,h=!s,d=s,y=n.dayHeaders&&t(hh,{resources:a,dates:o.dayTableModel.headerDates,dateProfile:r,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),p=n.allDaySlot!==!1&&function(e){return t(dp,i({},l.allDay,{dateProfile:r,resourceDayTableModel:o,nextDayThreshold:n.nextDayThreshold,tableMinWidth:e.tableMinWidth,colGroupNode:e.tableColGroupNode,renderRowIntro:h?u.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:u.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:f.forPrint},u.getAllDayMaxEventProps()))},w=function(e){return t(aut,i({},l.timed,{dateProfile:r,axis:h,slotDuration:n.slotDuration,slatMetas:v,resourceDayTableModel:o,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,onSlatCoords:u.handleSlatCoords,expandRows:e.expandRows,forPrint:f.forPrint,onScrollTopRequest:u.handleScrollTopRequest}))};return d?this.renderHScrollLayout(y,p,w,o.colCnt,s,v,this.state.slatCoords):this.renderSimpleLayout(y,p,w)},r}(sy);yut=k({deps:[ar,lh,sit,],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:vut,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}});wut=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this.props;return t(tu,{hookProps:n.hookProps,content:n.colSpec.cellContent,defaultContent:sti},function(n,i){return t("span",{className:"fc-datagrid-cell-main",ref:n},i)})},i}(e);but=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.refineHookProps=yi(oti),t.normalizeClassNames=iu(),t.onExpanderClick=function(){var n=t.props;n.hasChildren&&t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:n.resource.id,isExpanded:!n.isExpanded})},t}return u(i,n),i.prototype.render=function(){var f=this,u=this,n=u.props,e=u.context,i=n.colSpec,r=this.refineHookProps({resource:n.resource,fieldValue:n.fieldValue,context:e}),o=this.normalizeClassNames(i.cellClassNames,r);return t(bi,{hookProps:r,didMount:i.cellDidMount,willUnmount:i.cellWillUnmount},function(u){return t("td",{ref:u,"data-resource-id":n.resource.id,className:["fc-datagrid-cell","fc-resource",].concat(o).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:n.innerHeight}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},i.isMain&&t(put,{depth:n.depth,hasChildren:n.hasChildren,isExpanded:n.isExpanded,onExpanderClick:f.onExpanderClick}),t(wut,{hookProps:r,colSpec:i}))))})},i}(e);kut=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var r=this,i=r.props,u=r.context,n=i.colSpec,f={groupValue:i.fieldValue,view:u.viewApi};return t(b,{hookProps:f,classNames:n.cellClassNames,content:n.cellContent,defaultContent:hti,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},function(n,r,u,f){return t("td",{className:["fc-datagrid-cell","fc-resource-group"].concat(r).join(" "),rowSpan:i.rowSpan,ref:n},t("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},t("div",{className:"fc-datagrid-cell-cushion fc-sticky",ref:u},f)))})},i}(e);ah=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this.props,i=n.resource,r=n.rowSpans,u=n.depth,f=kp(i);return t("tr",null,n.colSpecs.map(function(e,o){var s=r[o],h;return s===0?null:(s==null&&(s=1),h=e.field?f[e.field]:i.title||cp(i.id),s>1)?t(kut,{key:o,colSpec:e,fieldValue:h,rowSpan:s}):t(but,{key:o,colSpec:e,resource:i,fieldValue:h,depth:u,hasChildren:n.hasChildren,isExpanded:n.isExpanded,innerHeight:n.innerHeight})}))},i}(e);ah.addPropsEquality({rowSpans:ht});gp=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.innerInnerRef=h(),t.onExpanderClick=function(){var n=t.props;t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:n.id,isExpanded:!n.isExpanded})},t}return u(i,n),i.prototype.render=function(){var r=this,u=this,n=u.props,f=u.context,e={groupValue:n.group.value,view:f.viewApi},i=n.group.spec;return t("tr",null,t(b,{hookProps:e,classNames:i.labelClassNames,content:i.labelContent,defaultContent:cti,didMount:i.labelDidMount,willUnmount:i.labelWillUnmount},function(i,u,e,o){return t("td",{ref:i,colSpan:n.spreadsheetColCnt,className:["fc-datagrid-cell","fc-resource-group",f.theme.getClass("tableCellShaded"),].concat(u).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:n.innerHeight}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:r.innerInnerRef},t(put,{depth:0,hasChildren:!0,isExpanded:n.isExpanded,onExpanderClick:r.onExpanderClick}),t("span",{className:"fc-datagrid-cell-main",ref:e},o))))}))},i}(e);gp.addPropsEquality({group:cut});var lti=20,ati=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.resizerElRefs=new nt(t._handleColResizerEl.bind(t)),t.colDraggings={},t}return u(i,n),i.prototype.render=function(){var h=this,r=this.props,u=r.colSpecs,n=r.superHeaderRendering,i=r.rowInnerHeights,e={view:this.context.viewApi},f=[],o,s;return i=i.slice(),n&&(o=i.shift(),f.push(t("tr",{key:"row-super"},t(b,{hookProps:e,classNames:n.headerClassNames,content:n.headerContent,didMount:n.headerDidMount,willUnmount:n.headerWillUnmount},function(n,i,r,f){return t("th",{colSpan:u.length,ref:n,className:["fc-datagrid-cell","fc-datagrid-cell-super",].concat(i).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:o}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:r},f)))})))),s=i.shift(),f.push(t("tr",{key:"row"},u.map(function(n,i){var r=i===u.length-1;return t(b,{key:i,hookProps:e,classNames:n.headerClassNames,content:n.headerContent,didMount:n.headerDidMount,willUnmount:n.headerWillUnmount},function(u,f,e,o){return t("th",{ref:u,className:["fc-datagrid-cell"].concat(f).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:s}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&t("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},t("span",{className:"fc-icon"})),t("span",{className:"fc-datagrid-cell-main",ref:e},o)),!r&&t("div",{className:"fc-datagrid-cell-resizer",ref:h.resizerElRefs.createRef(i)})))})}))),t(c,null,f)},i.prototype._handleColResizerEl=function(n,t){var r=this.colDraggings,i;n?(i=this.initColResizing(n,parseInt(t,10)),i&&(r[t]=i)):(i=r[t],i&&(i.destroy(),delete r[t]))},i.prototype.initColResizing=function(n,t){var u=this.context,s=u.pluginHooks,h=u.isRtl,f=this.props.onColWidthChange,e=s.elementDraggingImpl,i,o,r;if(e){i=new e(n);i.emitter.on("dragstart",function(){var i=dt(d(n,"tr"),"th");r=i.map(function(n){return n.getBoundingClientRect().width});o=r[t]});i.emitter.on("dragmove",function(n){r[t]=Math.max(o+n.deltaX*(h?-1:1),lti);f&&f(r.slice())});return i.setAutoScrollEnabled(!1),i}return null},i}(e),vti=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this,r=n.props,i=n.context,u={resource:new ft(i,r.resource)};return t(tu,{hookProps:u,content:i.options.resourceLaneContent},function(n,i){return i&&t("div",{className:"fc-timeline-lane-misc",ref:n},i)})},i}(e),dut=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.refineHookProps=yi(yti),t.normalizeClassNames=iu(),t.handleHeightChange=function(n,i){if(t.props.onHeightChange)t.props.onHeightChange(d(n,"tr"),i)},t}return u(i,n),i.prototype.render=function(){var e=this,r=this,n=r.props,u=r.context,i=u.options,f=this.refineHookProps({resource:n.resource,context:u}),o=this.normalizeClassNames(i.resourceLaneClassNames,f);return t("tr",{ref:n.elRef},t(bi,{hookProps:f,didMount:i.resourceLaneDidMount,willUnmount:i.resourceLaneWillUnmount},function(i){return t("td",{ref:i,className:["fc-timeline-lane","fc-resource"].concat(o).join(" "),"data-resource-id":n.resource.id},t("div",{className:"fc-timeline-lane-frame",style:{height:n.innerHeight}},t(vti,{resource:n.resource}),t(fh,{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:e.handleHeightChange,resourceId:n.resource.id})))}))},i}(e);var pti=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var r=this,i=this.props,n=this.props.renderingHooks,u={groupValue:i.groupValue,view:this.context.viewApi};return t("tr",{ref:i.elRef},t(b,{hookProps:u,classNames:n.laneClassNames,content:n.laneContent,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},function(n,u,f,e){return t("td",{ref:n,className:["fc-timeline-lane","fc-resource-group",r.context.theme.getClass("tableCellShaded"),].concat(u).join(" ")},t("div",{style:{height:i.innerHeight},ref:f},e))}))},i}(e),wti=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,e=r.context,u=n.rowElRefs,f=n.innerHeights;return t("tbody",null,n.rowNodes.map(function(r,o){if(r.group)return t(pti,{key:r.id,elRef:u.createRef(r.id),groupValue:r.group.value,renderingHooks:r.group.spec,innerHeight:f[o]||""});if(r.resource){var s=r.resource;return t(dut,i({key:r.id,elRef:u.createRef(r.id)},n.splitProps[s.id],{resource:s,dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,nextDayThreshold:e.options.nextDayThreshold,businessHours:s.businessHours||n.fallbackBusinessHours,innerHeight:f[o]||"",timelineCoords:n.slatCoords,onHeightChange:n.onRowHeightChange}))}return null}))},r}(e),bti=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t.rowElRefs=new nt,t}return u(i,n),i.prototype.render=function(){var i=this,n=i.props,r=i.context;return t("table",{ref:this.rootElRef,className:"fc-scrollgrid-sync-table "+r.theme.getClass("table"),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:n.minHeight}},t(wti,{rowElRefs:this.rowElRefs,rowNodes:n.rowNodes,dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,splitProps:n.splitProps,fallbackBusinessHours:n.fallbackBusinessHours,slatCoords:n.slatCoords,innerHeights:n.innerHeights,onRowHeightChange:n.onRowHeightChange}))},i.prototype.componentDidMount=function(){this.updateCoords()},i.prototype.componentDidUpdate=function(){this.updateCoords()},i.prototype.componentWillUnmount=function(){if(this.props.onRowCoords)this.props.onRowCoords(null)},i.prototype.updateCoords=function(){var n=this.props;if(n.onRowCoords&&n.clientWidth!==null)this.props.onRowCoords(new fi(this.rootElRef.current,kti(this.rowElRefs.currentMap,n.rowNodes),!1,!0))},i}(e);gut=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.computeHasResourceBusinessHours=f(dti),t.resourceSplitter=new oh,t.bgSlicer=new ip,t.slatsRef=h(),t.state={slatCoords:null},t.handleEl=function(n){n?t.context.registerInteractiveComponent(t,{el:n}):t.context.unregisterInteractiveComponent(t)},t.handleSlatCoords=function(n){if(t.setState({slatCoords:n}),t.props.onSlatCoords)t.props.onSlatCoords(n)},t.handleRowCoords=function(n){if(t.rowCoords=n,t.props.onRowCoords)t.props.onRowCoords(n)},t}return u(i,n),i.prototype.render=function(){var o=this,s=this,n=s.props,h=s.state,i=s.context,f=n.dateProfile,e=n.tDateProfile,v=ii(e.slotDuration).unit,l=this.computeHasResourceBusinessHours(n.rowNodes),a=this.resourceSplitter.splitProps(n),y=a[""],r=this.bgSlicer.sliceProps(y,f,e.isTimeScale?null:n.nextDayThreshold,i,f,i.dateProfileGenerator,e,i.dateEnv),u=h.slatCoords&&h.slatCoords.dateProfile===n.dateProfile?h.slatCoords:null;return t("div",{ref:this.handleEl,className:["fc-timeline-body",n.expandRows?"fc-timeline-body-expandrows":"",].join(" "),style:{minWidth:n.tableMinWidth}},t(at,{unit:v},function(s,h){return t(c,null,t(np,{ref:o.slatsRef,dateProfile:f,tDateProfile:e,nowDate:s,todayRange:h,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:o.handleSlatCoords,onScrollLeftRequest:n.onScrollLeftRequest}),t(tp,{businessHourSegs:l?null:r.businessHourSegs,bgEventSegs:r.bgEventSegs,timelineCoords:u,eventResizeSegs:r.eventResize?r.eventResize.segs:[],dateSelectionSegs:r.dateSelectionSegs,nowDate:s,todayRange:h}),t(bti,{rowNodes:n.rowNodes,dateProfile:f,tDateProfile:n.tDateProfile,nowDate:s,todayRange:h,splitProps:a,fallbackBusinessHours:l?n.businessHours:null,clientWidth:n.clientWidth,minHeight:n.expandRows?n.clientHeight:"",tableMinWidth:n.tableMinWidth,innerHeights:n.rowInnerHeights,slatCoords:u,onRowCoords:o.handleRowCoords,onRowHeightChange:n.onRowHeightChange}),i.options.nowIndicator&&u&&u.isDateInRange(s)&&t("div",{className:"fc-timeline-now-indicator-container"},t(cr,{isAxis:!1,date:s},function(n,r,f,e){return t("div",{ref:n,className:["fc-timeline-now-indicator-line"].concat(r).join(" "),style:rh(u.dateToCoord(s),i.isRtl)},e)})))}))},i.prototype.queryHit=function(n,t){var u=this.rowCoords,r=u.topToIndex(t),f,i;return r!=null&&(f=this.props.rowNodes[r].resource,f&&(i=this.slatsRef.current.positionToHit(n),i))?{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:f.id},rect:{left:i.left,right:i.right,top:u.tops[r],bottom:u.bottoms[r]},dayEl:i.dayEl,layer:0}:null},i}(rt);var nft=30,gti=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.scrollGridRef=h(),t.timeBodyScrollerElRef=h(),t.spreadsheetHeaderChunkElRef=h(),t.rootElRef=h(),t.ensureScrollGridResizeId=0,t.state={resourceAreaWidthOverride:null},t.ensureScrollGridResize=function(){t.ensureScrollGridResizeId&&clearTimeout(t.ensureScrollGridResizeId);t.ensureScrollGridResizeId=setTimeout(function(){t.scrollGridRef.current.handleSizing(!1)},ot.SCROLLGRID_RESIZE_INTERVAL+1)},t}return u(i,n),i.prototype.render=function(){var u=this,n=u.props,f=u.state,i=u.context,r=i.options,s=!n.forPrint&&hr(r),h=!n.forPrint&&yf(r),e=[{type:"header",key:"header",syncRowHeights:!0,isSticky:s,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:n.spreadsheetHeaderRows},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:n.timeHeaderContent},]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:n.spreadsheetBodyRows},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:n.timeBodyContent},]},],o;return h&&e.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:sr},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:sr},]}),o=f.resourceAreaWidthOverride!=null?f.resourceAreaWidthOverride:r.resourceAreaWidth,t(ne,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:!1,colGroups:[{cols:n.spreadsheetCols,width:o},{cols:[]},{cols:n.timeCols},],sections:e})},i.prototype.forceTimeScroll=function(n){var t=this.scrollGridRef.current;t.forceScrollLeft(2,n)},i.prototype.forceResourceScroll=function(n){var t=this.scrollGridRef.current;t.forceScrollTop(1,n)},i.prototype.getResourceScroll=function(){var n=this.timeBodyScrollerElRef.current;return n.scrollTop},i.prototype.componentDidMount=function(){this.initSpreadsheetResizing()},i.prototype.componentWillUnmount=function(){this.destroySpreadsheetResizing()},i.prototype.initSpreadsheetResizing=function(){var i=this,r=this.context,o=r.isRtl,s=r.pluginHooks,u=s.elementDraggingImpl,h=this.spreadsheetHeaderChunkElRef.current,t,n,f,e;if(u){t=this.rootElRef.current;n=this.spreadsheetResizerDragging=new u(t,".fc-resource-timeline-divider");n.emitter.on("dragstart",function(){f=h.getBoundingClientRect().width;e=t.getBoundingClientRect().width});n.emitter.on("dragmove",function(n){var t=f+n.deltaX*(o?-1:1);t=Math.max(t,nft);t=Math.min(t,e-nft);i.setState({resourceAreaWidthOverride:t},i.ensureScrollGridResize)});n.setAutoScrollEnabled(!1)}},i.prototype.destroySpreadsheetResizing=function(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()},i}(e),nw=function(n){function i(t,i){var r=n.call(this,t,i)||this;return r.processColOptions=f(rii),r.buildTimelineDateProfile=f(ky),r.hasNesting=f(iii),r.buildRowNodes=f(bp),r.layoutRef=h(),r.rowNodes=[],r.renderedRowNodes=[],r.buildRowIndex=f(nii),r.handleSlatCoords=function(n){r.setState({slatCoords:n})},r.handleRowCoords=function(n){r.rowCoords=n;r.scrollResponder.update(!1)},r.handleMaxCushionWidth=function(n){r.setState({slotCushionMaxWidth:Math.ceil(n)})},r.handleScrollLeftRequest=function(n){var t=r.layoutRef.current;t.forceTimeScroll(n)},r.handleScrollRequest=function(n){var i=r.rowCoords,o=r.layoutRef.current,u=n.rowId||n.resourceId,f,t,e;return i?(u&&(f=r.buildRowIndex(r.renderedRowNodes),t=f[u],t!=null&&(e=n.fromBottom!=null?i.bottoms[t]-n.fromBottom:i.tops[t],o.forceResourceScroll(e))),!0):null},r.handleColWidthChange=function(n){r.setState({spreadsheetColWidths:n})},r.state={resourceAreaWidth:i.options.resourceAreaWidth,spreadsheetColWidths:[]},r}return u(i,n),i.prototype.render=function(){var i=this,o=this,n=o.props,l=o.state,r=o.context,f=r.options,v=r.viewSpec,u=this.processColOptions(r.options),y=u.superHeaderRendering,p=u.groupSpecs,w=u.orderSpecs,b=u.isVGrouping,s=u.colSpecs,e=this.buildTimelineDateProfile(n.dateProfile,r.dateEnv,f,r.dateProfileGenerator),h=this.rowNodes=this.buildRowNodes(n.resourceStore,p,w,b,n.resourceEntityExpansions,f.resourcesInitiallyExpanded),k=["fc-resource-timeline",this.hasNesting(h)?"":"fc-resource-timeline-flat","fc-timeline",f.eventOverlap===!1?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled",],a=f.slotMinWidth,d=up(e,a||this.computeFallbackSlotMinWidth(e));return t(bt,{viewSpec:v},function(u,f){return t("div",{ref:u,className:k.concat(f).join(" ")},t(gti,{ref:i.layoutRef,forPrint:n.forPrint,isHeightAuto:n.isHeightAuto,spreadsheetCols:tii(s,l.spreadsheetColWidths,""),spreadsheetHeaderRows:function(n){return t(ati,{superHeaderRendering:y,colSpecs:s,onColWidthChange:i.handleColWidthChange,rowInnerHeights:n.rowSyncHeights})},spreadsheetBodyRows:function(n){return t(c,null,i.renderSpreadsheetRows(h,s,n.rowSyncHeights))},timeCols:d,timeHeaderContent:function(r){return t(gy,{clientWidth:r.clientWidth,clientHeight:r.clientHeight,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,dateProfile:n.dateProfile,tDateProfile:e,slatCoords:l.slatCoords,rowInnerHeights:r.rowSyncHeights,onMaxCushionWidth:a?null:i.handleMaxCushionWidth})},timeBodyContent:function(u){return t(gut,{dateProfile:n.dateProfile,clientWidth:u.clientWidth,clientHeight:u.clientHeight,tableMinWidth:u.tableMinWidth,tableColGroupNode:u.tableColGroupNode,expandRows:u.expandRows,tDateProfile:e,rowNodes:h,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,resourceStore:n.resourceStore,nextDayThreshold:r.options.nextDayThreshold,rowInnerHeights:u.rowSyncHeights,onSlatCoords:i.handleSlatCoords,onRowCoords:i.handleRowCoords,onScrollLeftRequest:i.handleScrollLeftRequest,onRowHeightChange:u.reportRowHeightChange})}}))})},i.prototype.renderSpreadsheetRows=function(n,i,r){return n.map(function(n,u){return n.group?t(gp,{key:n.id,id:n.id,spreadsheetColCnt:i.length,isExpanded:n.isExpanded,group:n.group,innerHeight:r[u]||""}):n.resource?t(ah,{key:n.id,colSpecs:i,rowSpans:n.rowSpans,depth:n.depth,isExpanded:n.isExpanded,hasChildren:n.hasChildren,resource:n.resource,innerHeight:r[u]||""}):null})},i.prototype.componentDidMount=function(){this.renderedRowNodes=this.rowNodes;this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},i.prototype.getSnapshotBeforeUpdate=function(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}},i.prototype.componentDidUpdate=function(n,t,i){this.renderedRowNodes=this.rowNodes;this.scrollResponder.update(n.dateProfile!==this.props.dateProfile);i.resourceScroll&&this.handleScrollRequest(i.resourceScroll)},i.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},i.prototype.computeFallbackSlotMinWidth=function(n){return Math.max(30,(this.state.slotCushionMaxWidth||0)/n.slotsPerLabel)},i.prototype.queryResourceScroll=function(){var r=this,u=r.rowCoords,o=r.renderedRowNodes,n,e,i;if(u){var s=this.layoutRef.current,f=u.bottoms,h=s.getResourceScroll(),t={};for(n=0;n<f.length;n+=1)if(e=o[n],i=f[n]-h,i>0){t.rowId=e.id;t.fromBottom=i;break}return t}return null},i}(e);return nw.addStateEquality({spreadsheetColWidths:ht}),tft=k({deps:[ar,lh,fp,],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:nw,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}}}}),wo.push(wyt,dtt,sit,vit,nbt,lbt,urt,lkt,fp,lh,uti,yut,tft),n.AbstractResourceDayTableModel=lp,n.BASE_OPTION_DEFAULTS=ri,n.BASE_OPTION_REFINERS=fl,n.BaseComponent=e,n.BgEvent=kf,n.BootstrapTheme=kt,n.Calendar=itt,n.CalendarApi=pi,n.CalendarContent=yn,n.CalendarDataManager=bo,n.CalendarDataProvider=cn,n.CalendarRoot=ka,n.Component=ao,n.ContentHook=tu,n.CustomContentRenderContext=vo,n.DEFAULT_RESOURCE_ORDER=te,n.DateComponent=rt,n.DateEnv=pl,n.DateProfileGenerator=yo,n.DayCellContent=os,n.DayCellRoot=bf,n.DayGridView=ktt,n.DayHeader=ts,n.DayResourceTableModel=vp,n.DaySeriesModel=iv,n.DayTable=ey,n.DayTableModel=rv,n.DayTableSlicer=fy,n.DayTimeCols=ly,n.DayTimeColsSlicer=ks,n.DayTimeColsView=py,n.DelayedRunner=or,n.Draggable=vyt,n.ElementDragging=ba,n.ElementScrollController=og,n.Emitter=fr,n.EventApi=v,n.EventRoot=ru,n.EventSourceApi=hi,n.FeaturefulElementDragging=lr,n.Fragment=c,n.Interaction=di,n.ListView=by,n.MoreLinkRoot=cs,n.MountHook=bi,n.NamedTimeZoneImpl=ln,n.NowIndicatorRoot=cr,n.NowTimer=at,n.PointerDragging=as,n.PositionCache=fi,n.RefMap=nt,n.RenderHook=b,n.ResourceApi=ft,n.ResourceDayHeader=hh,n.ResourceDayTable=dp,n.ResourceDayTableModel=ap,n.ResourceDayTableView=lut,n.ResourceDayTimeCols=aut,n.ResourceDayTimeColsView=vut,n.ResourceLabelRoot=eut,n.ResourceSplitter=oh,n.ResourceTimelineLane=dut,n.ResourceTimelineView=nw,n.ScrollController=lo,n.ScrollGrid=ne,n.ScrollResponder=ag,n.Scroller=fs,n.SegHierarchy=af,n.SimpleScrollGrid=pf,n.Slicer=is,n.Splitter=sf,n.SpreadsheetRow=ah,n.StandardEvent=wf,n.Table=ws,n.TableDateCell=nv,n.TableDowCell=tv,n.TableView=ny,n.Theme=er,n.ThirdPartyDraggable=pyt,n.TimeCols=bs,n.TimeColsSlatsCoords=nit,n.TimeColsView=sy,n.TimelineCoords=art,n.TimelineHeader=gy,n.TimelineHeaderRows=lrt,n.TimelineLane=fh,n.TimelineLaneBg=tp,n.TimelineLaneSlicer=ip,n.TimelineSlats=np,n.TimelineView=rp,n.VResourceJoiner=yp,n.VResourceSplitter=pp,n.ViewApi=vl,n.ViewContextType=lt,n.ViewRoot=bt,n.WeekNumberRoot=hs,n.WindowScrollController=sg,n.addDays=p,n.addDurations=ve,n.addMs=gt,n.addWeeks=pc,n.allowContextMenu=ab,n.allowSelection=cb,n.applyMutationToEventStore=eo,n.applyStyle=ci,n.applyStyleProp=sc,n.asCleanDays=tl,n.asRoughMinutes=rk,n.asRoughMs=tt,n.asRoughSeconds=uk,n.binarySearch=wa,n.buildClassNameNormalizer=iu,n.buildDayRanges=ay,n.buildDayTableModel=oy,n.buildEntryKey=ki,n.buildEventApis=wi,n.buildEventRangeKey=uo,n.buildHashFromArray=aet,n.buildIsoString=wu,n.buildNavLinkData=ur,n.buildResourceFields=kp,n.buildRowNodes=bp,n.buildSegCompareObj=id,n.buildSegTimeText=gr,n.buildSlatCols=up,n.buildSlatMetas=yy,n.buildTimeColsModel=wy,n.buildTimelineDateProfile=ky,n.collectFromHash=gc,n.combineEventUis=no,n.compareByFieldSpec=vb,n.compareByFieldSpecs=ac,n.compareNumbers=yb,n.compareObjs=ae,n.computeEarliestSegStart=df,n.computeEdges=ua,n.computeFallbackHeaderFormat=da,n.computeHeightAndMargins=uht,n.computeInnerRect=fa,n.computeRect=co,n.computeSegDraggable=rd,n.computeSegEndResizable=fd,n.computeSegStartResizable=ud,n.computeShrinkWidth=ov,n.computeSmallestCellWidth=pb,n.computeVisibleDayRange=tf,n.config=ot,n.constrainPoint=rg,n.coordToCss=rh,n.coordsToCss=uh,n.createContext=sa,n.createDuration=s,n.createElement=t,n.createEmptyEventStore=it,n.createEventInstance=yu,n.createEventUi=dr,n.createFormatter=y,n.createPlugin=k,n.createPortal=cg,n.createRef=h,n.diffDates=tr,n.diffDayAndTime=bb,n.diffDays=ni,n.diffPoints=fg,n.diffWeeks=wb,n.diffWholeDays=yr,n.diffWholeWeeks=kb,n.disableCursor=au,n.elementClosest=d,n.elementMatches=he,n.enableCursor=vu,n.eventTupleToStore=kr,n.filterEventStoreDefs=ku,n.filterHash=pt,n.findDirectChildren=fb,n.findElements=dt,n.flattenResources=wp,n.flexibleCompare=vc,n.flushToDom=cf,n.formatDate=bst,n.formatDayString=br,n.formatIsoTimeString=fk,n.formatRange=kst,n.getAllowYScrolling=sv,n.getCanVGrowWithinCell=oo,n.getClippingParents=ea,n.getDateMeta=nu,n.getDayClassNames=rr,n.getDefaultEventEnd=fo,n.getElSeg=ir,n.getEntrySpanEnd=va,n.getEventClassNames=ed,n.getIsRtlScrollbarOnLeft=hf,n.getPublicId=cp,n.getRectCenter=ug,n.getRelevantEvents=ge,n.getScrollGridClassNames=yv,n.getScrollbarWidths=ra,n.getSectionClassNames=pv,n.getSectionHasLiquidHeight=es,n.getSegMeta=st,n.getSlotClassNames=ta,n.getStickyFooterScrollbar=yf,n.getStickyHeaderDates=hr,n.getUnequalProps=dc,n.globalLocales=kd,n.globalPlugins=wo,n.greatestDurationDenominator=ii,n.groupIntersectingEntries=ya,n.guid=vt,n.hasBgRendering=nd,n.hasShrinkWidth=vv,n.identity=r,n.interactionSettingsStore=vf,n.interactionSettingsToStore=go,n.intersectRanges=ui,n.intersectRects=dl,n.intersectSpans=ko,n.isArraysEqual=ht,n.isColPropsEqual=cv,n.isDateSelectionValid=bn,n.isDateSpansEqual=sd,n.isGroupsEqual=cut,n.isInt=li,n.isInteractionValid=rs,n.isMultiDayRange=dk,n.isPropsEqual=ut,n.isPropsValid=fv,n.isValidDate=le,n.joinSpans=an,n.listenBySelector=hc,n.mapHash=w,n.memoize=f,n.memoizeArraylike=ye,n.memoizeHashlike=ul,n.memoizeObjArg=yi,n.mergeEventStores=bu,n.multiplyDuration=il,n.padStart=yt,n.parseBusinessHours=kl,n.parseClassNames=du,n.parseDragMeta=ns,n.parseEventDef=nf,n.parseFieldSpecs=ce,n.parseMarker=bd,n.pointInsideRect=ig,n.preventContextMenu=lb,n.preventDefault=lu,n.preventSelection=hb,n.rangeContainsMarker=wt,n.rangeContainsRange=uf,n.rangesEqual=hl,n.rangesIntersect=rf,n.refineEventDef=io,n.refineProps=nr,n.removeElement=vr,n.removeExact=ek,n.render=hg,n.renderChunkContent=hv,n.renderFill=ss,n.renderMicroColGroup=lv,n.renderScrollShim=sr,n.requestJson=po,n.sanitizeShrinkWidth=av,n.setElSeg=cl,n.setRef=g,n.setScrollFromLeftEdge=bit,n.sliceEventStore=ff,n.sliceEvents=sat,n.sortEventSegs=ef,n.startOfDay=a,n.translateRect=gl,n.triggerDateSelect=ll,n.unmountComponentAtNode=lg,n.unpromisify=oa,n.version=ttt,n.whenTransitionDone=sb,n.wholeDivideDurations=ti,Object.defineProperty(n,"__esModule",{value:!0}),n}({});