!function(e,t){var r=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=484)}({13:function(e,t,r){
/*!
FullCalendar Core Package v4.0.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
!function(e){"use strict";var t={className:!0,colSpan:!0,rowSpan:!0},r={"
");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return u(e),t}()),E}function D(e){return e=Math.max(0,e),e=Math.round(e)}function w(e,t){void 0===t&&(t=!1);var r=window.getComputedStyle(e),n=parseInt(r.borderLeftWidth,10)||0,i=parseInt(r.borderRightWidth,10)||0,o=parseInt(r.borderTopWidth,10)||0,s=parseInt(r.borderBottomWidth,10)||0,a=D(e.offsetWidth-e.clientWidth-n-i),l=D(e.offsetHeight-e.clientHeight-o-s),c={borderLeft:n,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:l,scrollbarLeft:0,scrollbarRight:0};return b()&&"rtl"===r.direction?c.scrollbarLeft=a:c.scrollbarRight=a,t&&(c.paddingLeft=parseInt(r.paddingLeft,10)||0,c.paddingRight=parseInt(r.paddingRight,10)||0,c.paddingTop=parseInt(r.paddingTop,10)||0,c.paddingBottom=parseInt(r.paddingBottom,10)||0),c}function T(e,t){void 0===t&&(t=!1);var r=C(e),n=w(e,t),i={left:r.left+n.borderLeft+n.scrollbarLeft,right:r.right-n.borderRight-n.scrollbarRight,top:r.top+n.borderTop,bottom:r.bottom-n.borderBottom-n.scrollbarBottom};return t&&(i.left+=n.paddingLeft,i.right-=n.paddingRight,i.top+=n.paddingTop,i.bottom-=n.paddingBottom),i}function C(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function R(e){var t=window.getComputedStyle(e);return e.getBoundingClientRect().height+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function I(e){for(var t=[];e instanceof HTMLElement;){var r=window.getComputedStyle(e);if("fixed"===r.position)break;/(auto|scroll)/.test(r.overflow+r.overflowY+r.overflowX)&&t.push(e),e=e.parentNode}return t}function M(e){e.preventDefault()}function P(e,t,r,n){function i(e){var t=p(e.target,r);t&&n.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var H=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],k=["sun","mon","tue","wed","thu","fri","sat"];function _(e,t){var r=F(e);return r[2]+=t,G(r)}function x(e,t){var r=F(e);return r[6]+=t,G(r)}function O(e,t){return(t.valueOf()-e.valueOf())/864e5}function z(e,t){var r=A(e),n=A(t);return{years:0,months:0,days:Math.round(O(r,n)),milliseconds:t.valueOf()-n.valueOf()-(e.valueOf()-r.valueOf())}}function L(e,t){var r=N(e,t);return null!==r&&r%7==0?r/7:null}function N(e,t){return Y(e)===Y(t)?Math.round(O(e,t)):null}function A(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function B(e,t,r,n){var i=G([t,0,1+V(t,r,n)]),o=A(e),s=Math.round(O(i,o));return Math.floor(s/7)+1}function V(e,t,r){var n=7+t-r,i=(7+G([e,0,n]).getUTCDay()-t)%7;return-i+n-1}function U(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function W(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function F(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function G(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function j(e){return!isNaN(e.valueOf())}function Y(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var q=["years","months","days","milliseconds"],Z=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function X(e,t){var r;return"string"==typeof e?function(e){var t=Z.exec(e);if(t){var r=t[1]?-1:1;return{years:0,months:0,days:r*(t[2]?parseInt(t[2],10):0),milliseconds:r*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?J(e):"number"==typeof e?J(((r={})[t||"milliseconds"]=e,r)):null}function J(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*K(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function K(e){return e.weeks||e.week||0}function Q(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function $(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function ee(e){return te(e)/864e5}function te(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function re(e,t){var r=e.milliseconds;if(r){if(r%1e3!=0)return{unit:"millisecond",value:r};if(r%6e4!=0)return{unit:"second",value:r/1e3};if(r%36e5!=0)return{unit:"minute",value:r/6e4};if(r)return{unit:"hour",value:r/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function ne(e){e.forEach(function(e){e.style.height=""})}function ie(e){var t,r,n=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t=te(t)&&(n=_(n,1))}return e.start&&(r=A(e.start),n&&n<=r&&(n=_(r,1))),{start:r,end:n}}function ye(e,t,r,n){return"year"===n?X(r.diffWholeYears(e,t),"year"):"month"===n?X(r.diffWholeMonths(e,t),"month"):z(e,t)}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function Ee(e,t){function r(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return(be=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;o--)if("object"==typeof(s=e[o][n])&&s)i.unshift(s);else if(void 0!==s){l[n]=s;break}i.length&&(l[n]=we(i))}for(r=e.length-1;r>=0;r--)for(n in a=e[r])n in l||(l[n]=a[n]);return l}function Te(e,t){var r={};for(var n in e)t(e[n],n)&&(r[n]=e[n]);return r}function Ce(e,t){var r={};for(var n in e)r[n]=t(e[n],n);return r}function Re(e){for(var t={},r=0,n=e;ro&&i.push({start:o,end:n.start}),n.end>o&&(o=n.end);return ot.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function We(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t1)||"numeric"!==s.year&&"2-digit"!==s.year||"numeric"!==s.month&&"2-digit"!==s.month||"numeric"!==s.day&&"2-digit"!==s.day||(c=1);var u=this.format(e,r),d=this.format(t,r);if(u===d)return u;var h=function(e,t){var r={};for(var n in e)n in qe&&!(qe[n]<=t)||(r[n]=e[n]);return r}(s,c),p=et(h,a,r),f=p(e),g=p(t),v=function(e,t,r,n){for(var i=0;i /g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g," ")}function Ht(e){var t=[];for(var r in e){var n=e[r];null!=n&&""!==n&&t.push(r+":"+n)}return t.join(";")}function kt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var _t={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:kt,classNames:kt,color:String,backgroundColor:String,borderColor:String,textColor:String};function xt(e,t,r){var n=fe(e,_t,{},r),i=function(e,t){return Array.isArray(e)?Me(e,"",t,!0):"object"==typeof e&&e?Me([e],"",t,!0):null!=e?String(e):null}(n.constraint,t);return{startEditable:null!=n.startEditable?n.startEditable:n.editable,durationEditable:null!=n.durationEditable?n.durationEditable:n.editable,constraints:null!=i?[i]:[],overlap:n.overlap,allows:null!=n.allow?[n.allow]:[],backgroundColor:n.backgroundColor||n.color,borderColor:n.borderColor||n.color,textColor:n.textColor,classNames:n.classNames.concat(n.className)}}function Ot(e,t,r,n){var i={},o={};for(var s in _t){var a=e+le(s);i[s]=t[a],o[a]=!0}if("event"===e&&(i.editable=t.editable),n)for(var s in t)o[s]||(n[s]=t[s]);return xt(i,r)}var zt={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Lt(e){return e.reduce(Nt,zt)}function Nt(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var At={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},Bt={start:null,date:null,end:null,allDay:null},Vt=0;function Ut(e,t,r,n){var i=function(e,t){var r=null;if(e){var n=t.state.eventSources[e];r=n.allDayDefault}return null==r&&(r=t.opt("allDayDefault")),r}(t,r),o={},s=function(e,t,r,n,i){for(var o=0;o0){if(e.length!==t.length)return!1;for(var n=0;n0){for(var n in e)if(!(n in t))return!1;for(var n in t){if(!(n in e))return!1;if(!qt(e[n],t[n],r-1))return!1}return!0}return!1}var Xt={defs:{},instances:{}},Jt=function(){function e(){this.getKeysForEventDefs=Ge(this._getKeysForEventDefs),this.splitDateSelection=Ge(this._splitDateSpan),this.splitEventStore=Ge(this._splitEventStore),this.splitIndividualUi=Ge(this._splitIndividualUi),this.splitEventDrag=Ge(this._splitInteraction),this.splitEventResize=Ge(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,r=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};for(var u in this.eventUiBuilders=Ce(r,function(e,r){return t.eventUiBuilders[r]||Ge(Kt)}),r){var d=r[u],h=s[u]||Xt,p=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:h,eventUiBases:p(e.eventUiBases[""],d.ui,o[u]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[u]||null,eventResize:l[u]||null}}return c},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var r=this.getKeysForDateSpan(e),n=0,i=r;n'+n+"":""+n+" "}function $t(e,t,r,n){var i,o,s=r.calendar,a=r.view,l=r.theme,c=r.dateEnv,u=[];return We(t.activeRange,e)?(u.push("fc-"+k[e.getUTCDay()]),a.opt("monthMode")&&c.getMonth(e)!==c.getMonth(t.currentRange.start)&&u.push("fc-other-month"),i=A(s.getNow()),o=_(i,1),e=o?u.push("fc-future"):(u.push("fc-today"),!0!==n&&u.push(l.getClass("today")))):u.push("fc-disabled-day"),u}function er(e,t,r){var n=!1,i=function(){n||(n=!0,t.apply(this,arguments))},o=function(){n||(n=!0,r&&r.apply(this,arguments))},s=e(i,o);s&&"function"==typeof s.then&&s.then(i,o)}var tr=function(){function e(){}return e.mixInto=function(e){this.mixIntoObj(e.prototype)},e.mixIntoObj=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(r){e[r]||(e[r]=t.prototype[r])})},e.mixOver=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(r){e.prototype[r]=t.prototype[r]})},e}(),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.on=function(e,t){return nr(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return nr(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&ir(this._handlers,e,t),this._oneHandlers&&ir(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],r=1;r=r[t]&&e=r[t]&&e0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft() *",pr.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var fr=0;function gr(e){return{id:String(fr++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}var vr=function(){function e(){this.hooks={reducers:[],eventDefParsers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}return e.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,r=e.deps;t=200&&s.status<400)try{var e=JSON.parse(s.responseText);n(e,s)}catch(e){i("Failure parsing JSON",s)}else i("Request failed",s)},s.onerror=function(){i("Request failed",s)},s.send(o)}function Er(e){var t=[];for(var r in e)t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t.join("&")}var br=gr({eventSourceDefs:[{parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,r){var n=e.eventSource.meta,i=function(e,t,r){var n,i,o,s,a=r.dateEnv,l={};return null==(n=e.startParam)&&(n=r.opt("startParam")),null==(i=e.endParam)&&(i=r.opt("endParam")),null==(o=e.timeZoneParam)&&(o=r.opt("timeZoneParam")),s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},be(l,s),l[n]=a.formatIso(t.start),l[i]=a.formatIso(t.end),"local"!==a.timeZone&&(l[o]=a.timeZone),l}(n,e.range,e.calendar);Sr(n.method,n.url,i,function(e,r){t({rawEvents:e,xhr:r})},function(e,t){r({message:e,xhr:t})})}}]}),Dr=gr({recurringTypes:[{parse:function(e,t,r){var n=r.createMarker.bind(r),i={daysOfWeek:null,startTime:X,endTime:X,startRecur:n,endRecur:n},o=fe(e,i,{},t),s=!1;for(var a in o)if(null!=o[a]){s=!0;break}return s?{allDayGuess:Boolean(!o.startTime&&!o.endTime),duration:o.startTime&&o.endTime?$(o.endTime,o.startTime):null,typeData:o}:null},expand:function(e,t,r){var n=Ae(t,{start:e.startRecur,end:e.endRecur});return n?function(e,t,r,n){for(var i=e?Re(e):null,o=A(r.start),s=r.end,a=[];o0?e[0].code:"en",r=window.FullCalendarLocalesAll||[],n=window.FullCalendarLocales||{},i=r.concat(Ie(n),e),o={en:Pr},s=0,a=i;s0;i--){var o=n.slice(0,i).join("-");if(t[o])return t[o]}return null}(r,t)||Pr;return _r(e,r,n)}(e,t):_r(e.code,[e.code],e)}function _r(e,t,r){var n=we([Pr,r],["buttonText"]);delete n.code;var i=n.week;return delete n.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:n}}var xr,Or,zr=function(){function e(e){this.overrides=be({},e),this.dynamicOverrides={},this.compute()}return e.prototype.add=function(e){be(this.overrides,e),this.compute()},e.prototype.addDynamic=function(e){be(this.dynamicOverrides,e),this.compute()},e.prototype.reset=function(e){this.overrides=e,this.compute()},e.prototype.compute=function(){var e=he(this.dynamicOverrides.locales,this.overrides.locales,Cr.locales),t=he(this.dynamicOverrides.locale,this.overrides.locale,Cr.locale),r=Hr(e),n=kr(t||r.defaultCode,r.map).options,i=he(this.dynamicOverrides.dir,this.overrides.dir,n.dir),o="rtl"===i?Rr:{};this.dirDefaults=o,this.localeDefaults=n,this.computed=we([Cr,o,n,this.overrides,this.dynamicOverrides],Ir)},e}(),Lr={};xr="gregory",Or=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return G(e)},e.prototype.markerToArray=function(e){return F(e)},e}(),Lr[xr]=Or;var Nr=/^\s*\d{4}-\d\d-\d\d([T ]\d)?/,Ar=/(?:(Z)|([-+])(\d\d)(?::(\d\d))?)$/;function Br(e){var t=null,r=!1,n=Nr.exec(e);n&&((r=!n[1])?e+="T00:00:00Z":e=e.replace(Ar,function(e,r,n,i,o){return t=r?0:(60*parseInt(i,10)+parseInt(o||0,10))*("-"===n?-1:1),""})+"Z");var i=new Date(e);return j(i)?{marker:i,isTimeUnspecified:r,timeZoneOffset:t}:null}var Vr=function(){function e(e){var t,r=this.timeZone=e.timeZone,n="local"!==r&&"UTC"!==r;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(r)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=(t=e.calendarSystem,new Lr[t]),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation?(this.weekDow=1,this.weekDoy=4):"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):G(U(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=G(e)),null!==t&&j(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=Br(e);if(null===t)return null;var r=t.marker,n=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-60*t.timeZoneOffset*1e3):n=t.timeZoneOffset),{marker:r,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:n}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[0]+=t.years,r[1]+=t.months,r[2]+=t.days,r[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(r)},e.prototype.subtract=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[0]-=t.years,r[1]-=t.months,r[2]-=t.days,r[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(r)},e.prototype.addYears=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[0]+=t,this.calendarSystem.arrayToMarker(r)},e.prototype.addMonths=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[1]+=t,this.calendarSystem.arrayToMarker(r)},e.prototype.diffWholeYears=function(e,t){var r=this.calendarSystem;return Y(e)===Y(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)&&r.getMarkerMonth(e)===r.getMarkerMonth(t)?r.getMarkerYear(t)-r.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var r=this.calendarSystem;return Y(e)===Y(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)?r.getMarkerMonth(t)-r.getMarkerMonth(e)+12*(r.getMarkerYear(t)-r.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var r=this.diffWholeYears(e,t);return null!==r?{unit:"year",value:r}:null!==(r=this.diffWholeMonths(e,t))?{unit:"month",value:r}:null!==(r=L(e,t))?{unit:"week",value:r}:null!==(r=N(e,t))?{unit:"day",value:r}:ue(r=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t))?{unit:"hour",value:r}:ue(r=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t))?{unit:"minute",value:r}:ue(r=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t))?{unit:"second",value:r}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},e.prototype.countDurationsBetween=function(e,t,r){var n;return r.years&&null!==(n=this.diffWholeYears(e,t))?n/(ee(r)/365):r.months&&null!==(n=this.diffWholeMonths(e,t))?n/function(e){return ee(e)/30}(r):r.days&&null!==(n=N(e,t))?n/ee(r):(t.valueOf()-e.valueOf())/te(r)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?A(e):"hour"===t?function(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return G([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):void 0},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,r){var n=e.getUTCFullYear(),i=B(e,n,t,r);if(i<1)return B(e,n-1,t,r);var o=B(e,n+1,t,r);return o>=1?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,r){return void 0===r&&(r={}),t.format({marker:e,timeZoneOffset:null!=r.forcedTzo?r.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,r,n){return void 0===n&&(n={}),n.isEndExclusive&&(t=x(t,-1)),r.formatRange({marker:e,timeZoneOffset:null!=n.forcedStartTzo?n.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=n.forcedEndTzo?n.forcedEndTzo:this.offsetForMarker(t)},this)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var r=null;return t.omitTimeZoneOffset||(r=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,r){void 0===r&&(r=!1);var n=e.toISOString();return n=n.replace(".000",""),r&&(n=n.replace("T00:00:00Z","")),n.length>10&&(null==t?n=n.replace("Z",""):0!==t&&(n=n.replace("Z",it(t,!0)))),n}(e,r,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?G(U(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?G(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-W(F(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(F(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?W(F(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(F(e))*60):new Date(e.valueOf()-(t||0))},e}(),Ur={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},Wr=0;function Fr(e,t){var r=t.pluginSystem.hooks.eventSourceDefs;return!r[e.sourceDefId].ignoreRange}function Gr(e,t){for(var r=t.pluginSystem.hooks.eventSourceDefs,n=r.length-1;n>=0;n--){var i=r[n],o=i.parseMeta(e);if(o){var s=jr("object"==typeof e?e:{},o,n,t);return s._raw=ge(e),s}}return null}function jr(e,t,r,n){var i={},o=fe(e,Ur,{},i),s={},a=xt(i,n,s);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(Wr++),o.sourceDefId=r,o.meta=t,o.ui=a,o.extendedProps=s,o}function Yr(e,t,r,n){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,r,n){for(var i={},o=0,s=t;oe.fetchRange.end:!e.latestFetchId}(e,t,r)}),t,r)}function Xr(e,t,r,n){var i={};for(var o in e){var s=e[o];t[o]?i[o]=Jr(s,r,n):i[o]=s}return i}function Jr(e,t,r){var n=r.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],i=String(qr++);return n.fetch({eventSource:e,calendar:r,range:t},function(n){var o,s,a=n.rawEvents,l=r.opt("eventSourceSuccess");e.success&&(s=e.success(a,n.xhr)),l&&(o=l(a,n.xhr)),a=s||o||a,r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:a})},function(n){var o=r.opt("eventSourceFailure");console.warn(n.message,n),e.failure&&e.failure(n),o&&o(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:n})}),be({},e,{isFetching:!0,latestFetchId:i})}var Kr=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var r=this.dateEnv,n=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(n,-1)},e.prototype.buildNext=function(e,t){var r=this.dateEnv,n=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(n,1)},e.prototype.build=function(e,t,r){var n;void 0===r&&(r=!1);var i,o,s,a,l,c,u,d=null,h=null;return n=this.buildValidRange(),n=this.trimHiddenDays(n),r&&(c=e,e=null!=(u=n).start&&c=u.end?new Date(u.end.valueOf()-1):c),i=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(i.unit),s=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),s=this.trimHiddenDays(s),a=s,this.options.showNonCurrentDates||(a=Ae(a,i.range)),d=X(this.options.minTime),h=X(this.options.maxTime),a=Ae(a=this.adjustActiveRange(a,d,h),n),l=Ve(i.range,n),{validRange:n,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:a,renderRange:s,minTime:d,maxTime:h,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var r,n=this.viewSpec,i=this.dateEnv,o=null,s=null,a=null;return n.duration?(o=n.duration,s=n.durationUnit,a=this.buildRangeFromDuration(e,t,o,s)):(r=this.options.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,t,r)):(a=this.buildCustomVisibleRange(e))?s=i.greatestWholeUnit(a.start,a.end).unit:(o=this.getFallbackDuration(),s=re(o).unit,a=this.buildRangeFromDuration(e,t,o,s)),{duration:o,unit:s,range:a}},e.prototype.getFallbackDuration=function(){return X({day:1})},e.prototype.adjustActiveRange=function(e,t,r){var n=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(ee(t)<0&&(i=A(i),i=n.add(i,t)),ee(r)>1&&(o=_(o=A(o),-1),o=n.add(o,r))),{start:i,end:o}},e.prototype.buildRangeFromDuration=function(e,t,r,n){var i,o,s,a,l,c=this.dateEnv,u=this.options.dateAlignment;function d(){s=c.startOf(e,u),a=c.add(s,r),l={start:s,end:a}}return u||((i=this.options.dateIncrement)?(o=X(i),u=te(o) ")),f=!1):((n=d[e])?(u=function(e){n.click&&n.click.call(S,e)},(g=o.getCustomButtonIconClass(n))||(g=o.getIconClass(e))||(v=n.text)):(a=c[e])?(r.viewsWithButtons.push(e),u=function(){s.changeView(e)},(v=a.buttonTextOverride)||(g=o.getIconClass(e))||(v=a.buttonTextDefault)):s[e]&&(u=function(){s[e]()},(v=h[e])||(g=o.getIconClass(e))||(v=p[e])),u&&(y=["fc-"+e+"-button",o.getClass("button")],v?(m=Pt(v),E=""):g&&(m=" ",E=' aria-label="'+e+'"'),(S=i('"+m+" ")).addEventListener("click",u),l.push(S)))}),l.length>1){n=document.createElement("div");var g=o.getClass("buttonGroup");f&&g&&n.classList.add(g),a(n,l),u.appendChild(n)}else a(u,l)}),u},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){g(this.el,"h2").forEach(function(t){t.innerText=e})},t.prototype.updateActiveButton=function(e){var t=this.theme.getClass("buttonActive");g(this.el,"button").forEach(function(r){e&&r.classList.contains("fc-"+e+"-button")?r.classList.add(t):r.classList.remove(t)})},t.prototype.toggleButtonEnabled=function(e,t){g(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},t}(hr),gn=function(e){function t(t,r){var i=e.call(this,t)||this;i._renderToolbars=Yt(i.renderToolbars),i.buildViewPropTransformers=Ge(mn),i.el=r,l(r,i.contentEl=n("div",{className:"fc-view-container"}));for(var o=i.calendar,s=0,a=o.pluginSystem.hooks.viewContainerModifiers;s1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function mn(e){return e.map(function(e){return new e})}var yn=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}(),Sn={},En=function(e){function t(t){var r=e.call(this,t)||this;r.handleSegClick=function(e,t){var n=r.component,i=ht(t);if(i&&n.isValidSegDownEl(e.target)){var o=p(e.target,".fc-has-url"),s=o?o.querySelector("a[href]").href:"";n.publiclyTrigger("eventClick",[{el:t,event:new lt(n.calendar,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:n.view}]),s&&!e.defaultPrevented&&(window.location.href=s)}};var n=t.component;return r.destroy=P(n.el,"click",n.fgSegSelector+","+n.bgSegSelector,r.handleSegClick),r}return Ee(t,e),t}(yn),bn=function(e){function t(t){var r=e.call(this,t)||this;r.handleEventElRemove=function(e){e===r.currentSegEl&&r.handleSegLeave(null,r.currentSegEl)},r.handleSegEnter=function(e,t){ht(t)&&(t.classList.add("fc-allow-mouse-resize"),r.currentSegEl=t,r.triggerEvent("eventMouseEnter",e,t))},r.handleSegLeave=function(e,t){r.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),r.currentSegEl=null,r.triggerEvent("eventMouseLeave",e,t))};var n,i,o,s,a,l=t.component;return r.removeHoverListeners=(n=l.el,i=l.fgSegSelector+","+l.bgSegSelector,o=r.handleSegEnter,s=r.handleSegLeave,P(n,"mouseover",i,function(e,t){if(t!==a){a=t,o(e,t);var r=function(e){a=null,s(e,t),t.removeEventListener("mouseleave",r)};t.addEventListener("mouseleave",r)}})),l.calendar.on("eventElRemove",r.handleEventElRemove),r}return Ee(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,r){var n=this.component,i=ht(r);t&&!n.isValidSegDownEl(t.target)||n.publiclyTrigger(e,[{el:r,event:new lt(this.component.calendar,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:n.view}])},t}(yn),Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t}(ur);Dn.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Dn.prototype.baseIconClass="fc-icon",Dn.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"},Dn.prototype.iconOverrideOption="buttonIcons",Dn.prototype.iconOverrideCustomButtonOption="icon",Dn.prototype.iconOverridePrefix="fc-icon-";var wn=function(){function e(e,t){var r=this;this.parseRawLocales=Ge(Hr),this.buildLocale=Ge(kr),this.buildDateEnv=Ge(Tn),this.buildTheme=Ge(Cn),this.buildEventUiSingleBase=Ge(this._buildEventUiSingleBase),this.buildSelectionConfig=Ge(this._buildSelectionConfig),this.buildEventUiBySource=je(In,Zt),this.buildEventUiBases=Ge(Mn),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.needsFullRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=Ge(Rn),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new zr(t||{}),this.pluginSystem=new vr,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){return new e(r)})}return e.prototype.addPluginInputs=function(e){for(var t=function(e){for(var t=[],r=0,n=e;r"+this.fillSegTag+">"},e.prototype.detachSegs=function(e,t){var r=this.containerElsByType[e];r&&(r.forEach(u),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),xn=function(e){this.timeZoneName=e},On=function(){function e(e){this.emitter=new rr}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}();function zn(e){var t=kr(e.locale||"en",Hr([]).map);return e=be({timeZone:Cr.timeZone,calendarSystem:"gregory"},e,{locale:t}),new Vr(e)}var Ln={startTime:X,duration:X,create:Boolean,sourceId:String},Nn={create:!0};function An(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function Bn(e,t,r,n,i,o,s,a){var l,c=o.view,u=o.dateEnv,d=o.theme,h=o.options,p=We(t.activeRange,e),f=["fc-day-header",d.getClass("widgetHeader")];return l="function"==typeof h.columnHeaderHtml?h.columnHeaderHtml(u.toDate(e)):"function"==typeof h.columnHeaderText?Pt(h.columnHeaderText(u.toDate(e))):Pt(u.format(e,i)),r?f=f.concat($t(e,t,o,!0)):f.push("fc-"+k[e.getUTCDay()]),'1?' colspan="'+s+'"':"")+(a?" "+a:"")+">"+(p?Qt(c,{date:e,forceOff:!r||1===n},l):l)+" "}var Vn=function(e){function t(t,r){var n=e.call(this,t)||this;return r.innerHTML="",r.appendChild(n.el=i('')),n.thead=n.el.querySelector("thead"),n}return Ee(t,e),t.prototype.destroy=function(){u(this.el)},t.prototype.render=function(e){var t=e.dates,r=e.datesRepDistinctDays,n=[];e.renderIntroHtml&&n.push(e.renderIntroHtml());for(var i=nt(this.opt("columnHeaderFormat")||An(r,t.length)),o=0,s=t;o"+n.join("")+" "},t}(hr),Un=function(){function e(e,t){for(var r=e.start,n=e.end,i=[],o=[],s=-1;r=t.length?t[t.length-1]+1:t[r]},e}(),Wn=function(){function e(e,t){var r,n,i,o=e.dates;if(t){for(n=o[0].getUTCDay(),r=1;r1},e.isObjectsSimilar=Zt,e.isPropsValid=Tt,e.isSingleDay=function(e){return 0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds},e.isValidDate=j,e.isValuesSimilar=qt,e.listenBySelector=P,e.mapHash=Ce,e.matchCellWidths=function(e){var t=0;return e.forEach(function(e){var r=e.firstChild;if(r instanceof HTMLElement){var n=r.offsetWidth;n>t&&(t=n)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t},e.memoize=Ge,e.memoizeOutput=je,e.memoizeRendering=Yt,e.mergeEventStores=Oe,e.multiplyDuration=function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}},e.padStart=ce,e.parseBusinessHours=jt,e.parseDragMeta=function(e){var t={},r=fe(e,Ln,Nn,t);return r.leftoverProps=t,r},e.parseEventDef=Wt,e.parseFieldSpecs=ie,e.parseMarker=Br,e.pointInsideRect=function(e,t){return e.left>=t.left&&e.left=t.top&&e.top0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=n,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(f()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e=0&&c>=0&&u>=0&&d>=0&&(u<=r&&this.everMovedUp&&s.canScrollUp()&&(!n||n.distance>u)&&(n={scrollCache:s,name:"top",distance:u}),d<=r&&this.everMovedDown&&s.canScrollDown()&&(!n||n.distance>d)&&(n={scrollCache:s,name:"bottom",distance:d}),l<=r&&this.everMovedLeft&&s.canScrollLeft()&&(!n||n.distance>l)&&(n={scrollCache:s,name:"left",distance:l}),c<=r&&this.everMovedRight&&s.canScrollRight()&&(!n||n.distance>c)&&(n={scrollCache:s,name:"right",distance:c}))}return n},e.prototype.buildCaches=function(){return this.queryScrollEls().map(function(e){return e===window?new p(!1):new h(e,!1)})},e.prototype.queryScrollEls=function(){for(var e=[],t=0,r=this.scrollQuery;t=t*t&&n.handleDistanceSurpassed(e)}n.isDragging&&("scroll"!==e.origEvent.type&&(n.mirror.handleMove(e.pageX,e.pageY),n.autoScroller.handleMove(e.pageX,e.pageY)),n.emitter.trigger("dragmove",e))}},n.onPointerUp=function(e){n.isInteracting&&(n.isInteracting=!1,t.allowSelection(document.body),t.allowContextMenu(document.body),n.emitter.trigger("pointerup",e),n.isDragging&&(n.autoScroller.stop(),n.tryStopDrag(e)),n.delayTimeoutId&&(clearTimeout(n.delayTimeoutId),n.delayTimeoutId=null))};var i=n.pointer=new l(r);return i.emitter.on("pointerdown",n.onPointerDown),i.emitter.on("pointermove",n.onPointerMove),i.emitter.on("pointerup",n.onPointerUp),n.mirror=new u,n.autoScroller=new g,n}return n(r,e),r.prototype.destroy=function(){this.pointer.destroy()},r.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null,t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},r.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},r.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},r.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},r.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},r.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},r.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},r.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},r.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},r.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},r}(t.ElementDragging),m=function(){function e(e){this.origRect=t.computeRect(e),this.scrollCaches=t.getClippingParents(e).map(function(e){return new h(e,!0)})}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e=0&&d=0&&ho.layer)||(v.rect.left+=c,v.rect.right+=c,v.rect.top+=u,v.rect.bottom+=u,o=v)}}}return o},e}();function S(e,r){return!e&&!r||Boolean(e)===Boolean(r)&&t.isDateSpansEqual(e.dateSpan,r.dateSpan)}var E=function(e){function r(r){var n=e.call(this,r)||this;n.handlePointerDown=function(e){var t=n.dragging;t.setIgnoreMove(!n.component.isValidDateDownEl(t.pointer.downEl))},n.handleDragEnd=function(e){var t=n.component,r=n.dragging.pointer;if(!r.wasTouchScroll){var i=n.hitDragging,o=i.initialHit,s=i.finalHit;o&&s&&S(o,s)&&t.calendar.triggerDateClick(o.dateSpan,o.dayEl,t.view,e.origEvent)}};var i=r.component;n.dragging=new v(i.el),n.dragging.autoScroller.isEnabled=!1;var o=n.hitDragging=new y(n.dragging,t.interactionSettingsToStore(r));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragend",n.handleDragEnd),n}return n(r,e),r.prototype.destroy=function(){this.dragging.destroy()},r}(t.Interaction),b=function(e){function r(r){var n=e.call(this,r)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,i=t.dragging,o=r.opt("selectable")&&r.isValidDateDownEl(e.origEvent.target);i.setIgnoreMove(!o),i.delay=e.isTouch?function(e){var t=e.opt("selectLongPressDelay");return null==t&&(t=e.opt("longPressDelay")),t}(r):null},n.handleDragStart=function(e){n.component.calendar.unselect(e)},n.handleHitUpdate=function(e,r){var o=n.component.calendar,s=null,a=!1;e&&((s=function(e,r,n){var o=e.dateSpan,s=r.dateSpan,a=[o.range.start,o.range.end,s.range.start,s.range.end];a.sort(t.compareNumbers);for(var l={},c=0,u=n;co.start)return d.endDelta=u,d;return null}(l,e,o.subjectEl.classList.contains("fc-start-resizer"),c.range,s.pluginSystem.hooks.eventResizeJoinTransforms)),u&&(d=t.applyMutationToEventStore(a,s.eventUiBases,u,s),p.mutatedEvents=d,n.component.isInteractionValid(p)||(h=!0,u=null,d=null,p.mutatedEvents=null)),d?s.dispatch({type:"SET_EVENT_RESIZE",state:p}):s.dispatch({type:"UNSET_EVENT_RESIZE"}),h?t.disableCursor():t.enableCursor(),r||(u&&S(l,e)&&(u=null),n.validMutation=u,n.mutatedRelevantEvents=d)},n.handleDragEnd=function(e){var r=n.component.calendar,i=n.component.view,o=n.eventRange.def,s=n.eventRange.instance,a=new t.EventApi(r,o,s),l=n.relevantEvents,c=n.mutatedRelevantEvents;r.publiclyTrigger("eventResizeStop",[{el:n.draggingSeg.el,event:a,jsEvent:e.origEvent,view:i}]),n.validMutation?(r.dispatch({type:"MERGE_EVENTS",eventStore:c}),r.publiclyTrigger("eventResize",[{el:n.draggingSeg.el,startDelta:n.validMutation.startDelta||t.createDuration(0),endDelta:n.validMutation.endDelta||t.createDuration(0),prevEvent:a,event:new t.EventApi(r,c.defs[o.defId],s?c.instances[s.instanceId]:null),revert:function(){r.dispatch({type:"MERGE_EVENTS",eventStore:l})},jsEvent:e.origEvent,view:i}])):r.publiclyTrigger("_noEventResize"),n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var o=r.component,s=n.dragging=new v(o.el);s.pointer.selector=".fc-resizer",s.touchScrollAllowed=!1,s.autoScroller.isEnabled=o.opt("dragScroll");var a=n.hitDragging=new y(n.dragging,t.interactionSettingsToStore(r));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("dragend",n.handleDragEnd),n}return n(r,e),r.prototype.destroy=function(){this.dragging.destroy()},r.prototype.querySeg=function(e){return t.getElSeg(t.elementClosest(e.subjectEl,this.component.fgSegSelector))},r}(t.Interaction),T=function(){function e(e){var r=this;this.isRecentPointerDateSelect=!1,this.onSelect=function(e){e.jsEvent&&(r.isRecentPointerDateSelect=!0)},this.onDocumentPointerUp=function(e){var n=r,i=n.calendar,o=n.documentPointer,s=i.state;if(!o.wasTouchScroll){if(s.dateSelection&&!r.isRecentPointerDateSelect){var a=i.viewOpt("unselectAuto"),l=i.viewOpt("unselectCancel");!a||a&&t.elementClosest(o.downEl,l)||i.unselect(e)}s.eventSelection&&!t.elementClosest(o.downEl,D.SELECTOR)&&i.dispatch({type:"UNSELECT_EVENT"})}r.isRecentPointerDateSelect=!1},this.calendar=e;var n=this.documentPointer=new l(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerup",this.onDocumentPointerUp),e.on("select",this.onSelect)}return e.prototype.destroy=function(){this.calendar.off("select",this.onSelect),this.documentPointer.destroy()},e}(),C=function(){function e(e,r){var n=this;this.receivingCalendar=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,r,o){var s=n.hitDragging.dragging,a=null,l=null,c=!1,u={affectedEvents:t.createEmptyEventStore(),mutatedEvents:t.createEmptyEventStore(),isEvent:n.dragMeta.create,origSeg:null};e&&(a=e.component.calendar,n.canDropElOnCalendar(o.subjectEl,a)&&(l=function(e,r,n){for(var o=i({},r.leftoverProps),s=0,a=n.pluginSystem.hooks.externalDefTransforms;s'+(this.displayEventTime?''+(r||"")+" ":"")+'"+t.htmlEscape(a.title||"")+" "},r.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},r}(t.FgEventRenderer),o=function(e){function r(r,n,o,a){var l=e.call(this,r,n,o,a)||this;l.computeDateVars=t.memoize(s),l.eventStoreToSegs=t.memoize(l._eventStoreToSegs);var c=l.eventRenderer=new i(l);l.renderContent=t.memoizeRendering(c.renderSegs.bind(c),c.unrender.bind(c)),l.el.classList.add("fc-list-view");for(var u=(l.theme.getClass("listView")||"").split(" "),d=0,h=u;d'+t.htmlEscape(this.opt("noEventsMessage"))+"
"},r.prototype.renderSegList=function(e){var r,n,i,o=this.groupSegsByDay(e),s=t.htmlToElement(''),a=s.querySelector("tbody");for(r=0;r'+(n?t.buildGotoAnchorHtml(this,e,{class:"fc-list-heading-main"},t.htmlEscape(r.format(e,n))):"")+(i?t.buildGotoAnchorHtml(this,e,{class:"fc-list-heading-alt"},t.htmlEscape(r.format(e,i))):"")+"")},r}(t.View);function s(e){for(var r=t.startOfDay(e.renderRange.start),n=e.renderRange.end,i=[],o=[];r'+(n?'
'+t.htmlEscape(n)+"
":"")+(a.title?'
'+t.htmlEscape(a.title)+"
":"")+"
"+(h?'
':"")+""},r.prototype.computeSegHorizontals=function(e){var t,r,n;if(function(e){var t,r,n,i,o;for(t=0;t0&&i.el.classList.add("fc-time-grid-event-inset"),i.eventRange.def.title&&i.bottom-i.top<30&&i.el.classList.add("fc-short")}},r.prototype.generateSegCss=function(e){var t,r,n=this.context.options.slotEventOverlap,i=e.backwardCoord,o=e.forwardCoord,s=this.timeGrid.generateSegVerticalCss(e),a=this.timeGrid.isRtl;return n&&(o=Math.min(1,i+2*(o-i))),a?(t=1-o,r=i):(t=i,r=1-o),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*r+"%",n&&e.forwardPressure&&(s[a?"marginLeft":"marginRight"]=20),s},r}(t.FgEventRenderer);function a(e){var t,r,n=e.forwardSegs,i=0;if(void 0===e.forwardPressure){for(t=0;to.top&&i.top
',o.rootBgContainerEl=n.querySelector(".fc-bg"),o.slatContainerEl=n.querySelector(".fc-slats"),o.bottomRuleEl=n.querySelector(".fc-divider"),o.renderProps=i,o}return i(n,e),n.prototype.processOptions=function(){var e,r,n=this.opt("slotDuration"),i=this.opt("snapDuration");n=t.createDuration(n),i=i?t.createDuration(i):n,null===(e=t.wholeDivideDurations(n,i))&&(i=n,e=1),this.slotDuration=n,this.snapDuration=i,this.snapsPerSlot=e,r=this.opt("slotLabelFormat"),Array.isArray(r)&&(r=r[r.length-1]),this.labelFormat=t.createFormatter(r||{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),r=this.opt("slotLabelInterval"),this.labelInterval=r?t.createDuration(r):this.computeLabelInterval(n)},n.prototype.computeLabelInterval=function(e){var r,n,i;for(r=h.length-1;r>=0;r--)if(n=t.createDuration(h[r]),null!==(i=t.wholeDivideDurations(n,e))&&i>1)return n;return e},n.prototype.render=function(e){var t=e.cells;this.colCnt=t.length,this.renderSlats(e.dateProfile),this.renderColumns(e.cells,e.dateProfile),this.renderBusinessHours(e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderFgEvents(e.fgEventSegs),this.renderBgEvents(e.bgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender()},n.prototype.updateSize=function(e){var t=this.fillRenderer,r=this.eventRenderer,n=this.mirrorRenderer;(e||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(e||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),t.computeSizes(e),r.computeSizes(e),n.computeSizes(e),t.assignSizes(e),r.assignSizes(e),n.assignSizes(e)},n.prototype._renderSlats=function(e){var r=this.theme;this.slatContainerEl.innerHTML=''+this.renderSlatRowHtml(e)+"
",this.slatEls=t.findElements(this.slatContainerEl,"tr"),this.slatPositions=new t.PositionCache(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},n.prototype.renderSlatRowHtml=function(e){for(var r,n,i,o=this.dateEnv,s=this.theme,a=this.isRtl,l="",c=t.startOfDay(e.renderRange.start),u=e.minTime,d=t.createDuration(0);t.asRoughMs(u)'+(n?""+t.htmlEscape(o.format(r,this.labelFormat))+" ":"")+"",l+='"+(a?"":i)+' '+(a?i:"")+" ",u=t.addDurations(u,this.slotDuration),d=t.addDurations(d,this.slotDuration);return l},n.prototype._renderColumns=function(e,n){var i=this.theme,o=new r.DayBgRow(this.context);this.rootBgContainerEl.innerHTML=''+o.renderHtml({cells:e,dateProfile:n,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"
",this.colEls=t.findElements(this.el,".fc-day, .fc-disabled-day"),this.isRtl&&this.colEls.reverse(),this.colPositions=new t.PositionCache(this.el,this.colEls,!0,!1),this.renderContentSkeleton(),this.isColSizesDirty=!0},n.prototype._unrenderColumns=function(){this.unrenderContentSkeleton()},n.prototype.renderContentSkeleton=function(){var e,r=[];r.push(this.renderProps.renderIntroHtml());for(var n=0;n');this.isRtl&&r.reverse(),e=this.contentSkeletonEl=t.htmlToElement('"),this.colContainerEls=t.findElements(e,".fc-content-col"),this.mirrorContainerEls=t.findElements(e,".fc-mirror-container"),this.fgContainerEls=t.findElements(e,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=t.findElements(e,".fc-bgevent-container"),this.highlightContainerEls=t.findElements(e,".fc-highlight-container"),this.businessContainerEls=t.findElements(e,".fc-business-container"),this.isRtl&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(e)},n.prototype.unrenderContentSkeleton=function(){t.removeElement(this.contentSkeletonEl)},n.prototype.groupSegsByCol=function(e){var t,r=[];for(t=0;t0){var a=t.createElement("div",{className:"fc-now-indicator fc-now-indicator-arrow"});a.style.top=i+"px",this.contentSkeletonEl.appendChild(a),o.push(a)}this.nowIndicatorEls=o}},n.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(t.removeElement),this.nowIndicatorEls=null)},n.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.offsetHeight},n.prototype.computeDateTop=function(e,r){return r||(r=t.startOfDay(e)),this.computeTimeTop(e.valueOf()-r.valueOf())},n.prototype.computeTimeTop=function(e){var r,n,i=this.slatEls.length,o=this.props.dateProfile,s=(e-t.asRoughMs(o.minTime))/t.asRoughMs(this.slotDuration);return s=Math.max(0,s),s=Math.min(i,s),r=Math.floor(s),r=Math.min(r,i-1),n=s-r,this.slatPositions.tops[r]+this.slatPositions.getHeight(r)*n},n.prototype.computeSegVerticals=function(e){var t,r,n,i=this.opt("timeGridEventMinHeight");for(t=0;t"+t.buildGotoAnchorHtml(a,{date:o.start,type:"week",forceOff:s>1},t.htmlEscape(e))+""):' "},a.renderTimeGridBgIntroHtml=function(){var e=a.theme;return' "},a.renderTimeGridIntroHtml=function(){return' "},a.renderDayGridBgIntroHtml=function(){var e=a.theme;return'"+t.getAllDayHtml(a)+" "},a.renderDayGridIntroHtml=function(){return' "},a.el.classList.add("fc-timeGrid-view"),a.el.innerHTML=a.renderSkeletonHtml(),a.scroller=new t.ScrollComponent("hidden","auto");var l=a.scroller.el;a.el.querySelector(".fc-body > tr > td").appendChild(l),l.classList.add("fc-time-grid-container");var c=t.createElement("div",{className:"fc-time-grid"});return l.appendChild(c),a.timeGrid=new p(a.context,c,{renderBgIntroHtml:a.renderTimeGridBgIntroHtml,renderIntroHtml:a.renderTimeGridIntroHtml}),a.opt("allDaySlot")&&(a.dayGrid=new r.DayGrid(a.context,a.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:a.renderDayGridIntroHtml,renderBgIntroHtml:a.renderDayGridBgIntroHtml,renderIntroHtml:a.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1}),a.dayGrid.bottomCoordPadding=a.el.querySelector(".fc-divider").offsetHeight),a}return i(n,e),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},n.prototype.renderSkeletonHtml=function(){var e=this.theme;return''+(this.opt("columnHeader")?' ':"")+''+(this.opt("allDaySlot")?'
':"")+"
"},n.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},n.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},n.prototype.updateSize=function(t,r,n){e.prototype.updateSize.call(this,t,r,n),this.timeGrid.updateSize(t),this.dayGrid&&this.dayGrid.updateSize(t)},n.prototype.updateBaseSize=function(e,r,n){var i,o,s,a=this;if(this.axisWidth=t.matchCellWidths(t.findElements(this.el,".fc-axis")),this.timeGrid.colEls){var l=t.findElements(this.el,".fc-row").filter(function(e){return!a.scroller.el.contains(e)});this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),l.forEach(t.uncompensateScroll),this.dayGrid&&(this.dayGrid.removeSegPopover(),(i=this.opt("eventLimit"))&&"number"!=typeof i&&(i=5),i&&this.dayGrid.limitRows(i)),n||(o=this.computeScrollerHeight(r),this.scroller.setHeight(o),((s=this.scroller.getScrollbarWidths()).left||s.right)&&(l.forEach(function(e){t.compensateScroll(e,s)}),o=this.computeScrollerHeight(r),this.scroller.setHeight(o)),this.scroller.lockOverflow(s),this.timeGrid.getTotalSlatHeight()
'),this.contentEl=this.el.querySelector(".fc-content"),this.bgEl=this.el.querySelector(".fc-bg")}return e.prototype.setGutters=function(e){e?o(this.gutters,e):this.gutters={},this.updateSize()},e.prototype.setWidth=function(e){this.width=e,this.updateSize()},e.prototype.setMinWidth=function(e){this.minWidth=e,this.updateSize()},e.prototype.clearWidth=function(){this.width=null,this.minWidth=null,this.updateSize()},e.prototype.updateSize=function(){var e=this.gutters,r=this.el;t.forceClassName(r,"fc-gutter-left",e.left),t.forceClassName(r,"fc-gutter-right",e.right),t.forceClassName(r,"fc-gutter-top",e.top),t.forceClassName(r,"fc-gutter-bottom",e.bottom),t.applyStyle(r,{paddingLeft:e.left||"",paddingRight:e.right||"",paddingTop:e.top||"",paddingBottom:e.bottom||"",width:null!=this.width?this.width+(e.left||0)+(e.right||0):"",minWidth:null!=this.minWidth?this.minWidth+(e.left||0)+(e.right||0):""}),t.applyStyle(this.bgEl,{left:e.left||"",right:e.right||"",top:e.top||"",bottom:e.bottom||""})},e}(),a=function(e){function r(r,n){var i=e.call(this,r,n)||this;return i.reportScroll=function(){i.isScrolling||i.reportScrollStart(),i.trigger("scroll"),i.isMoving=!0,i.requestMovingEnd()},i.reportScrollStart=function(){i.isScrolling||(i.isScrolling=!0,i.trigger("scrollStart",i.isTouching))},i.reportTouchStart=function(){i.isTouching=!0},i.reportTouchEnd=function(){i.isTouching&&(i.isTouching=!1,i.isTouchScrollEnabled&&i.unbindPreventTouchScroll(),i.isMoving||i.reportScrollEnd())},i.isScrolling=!1,i.isTouching=!1,i.isMoving=!1,i.isTouchScrollEnabled=!0,i.requestMovingEnd=t.debounce(i.reportMovingEnd,500),i.canvas=new s,i.el.appendChild(i.canvas.el),i.applyOverflow(),i.bindHandlers(),i}return n(r,e),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindHandlers()},r.prototype.disableTouchScroll=function(){this.isTouchScrollEnabled=!1,this.bindPreventTouchScroll()},r.prototype.enableTouchScroll=function(){this.isTouchScrollEnabled=!0,this.isTouching||this.unbindPreventTouchScroll()},r.prototype.bindPreventTouchScroll=function(){this.preventTouchScrollHandler||this.el.addEventListener("touchmove",this.preventTouchScrollHandler=t.preventDefault)},r.prototype.unbindPreventTouchScroll=function(){this.preventTouchScrollHandler&&(this.el.removeEventListener("touchmove",this.preventTouchScrollHandler),this.preventTouchScrollHandler=null)},r.prototype.bindHandlers=function(){this.el.addEventListener("scroll",this.reportScroll),this.el.addEventListener("touchstart",this.reportTouchStart,{passive:!0}),this.el.addEventListener("touchend",this.reportTouchEnd)},r.prototype.unbindHandlers=function(){this.el.removeEventListener("scroll",this.reportScroll),this.el.removeEventListener("touchstart",this.reportTouchStart,{passive:!0}),this.el.removeEventListener("touchend",this.reportTouchEnd)},r.prototype.reportMovingEnd=function(){this.isMoving=!1,this.isTouching||this.reportScrollEnd()},r.prototype.reportScrollEnd=function(){this.isScrolling&&(this.trigger("scrollEnd"),this.isScrolling=!1)},r.prototype.getScrollLeft=function(){var e=this.el,t=window.getComputedStyle(e).direction,r=e.scrollLeft;if("rtl"===t)switch(l()){case"positive":r=r+e.clientWidth-e.scrollWidth;break;case"reverse":r=-r}return r},r.prototype.setScrollLeft=function(e){var t=this.el,r=window.getComputedStyle(t).direction;if("rtl"===r)switch(l()){case"positive":e=e-t.clientWidth+t.scrollWidth;break;case"reverse":e=-e}t.scrollLeft=e},r.prototype.getScrollFromLeft=function(){var e=this.el,t=window.getComputedStyle(e).direction,r=e.scrollLeft;if("rtl"===t)switch(l()){case"negative":r=r-e.clientWidth+e.scrollWidth;break;case"reverse":r=-r-e.clientWidth+e.scrollWidth}return r},r}(t.ScrollComponent);function l(){return i||(r=t.htmlToElement('A
'),document.body.appendChild(r),r.scrollLeft>0?e="positive":(r.scrollLeft=1,e=r.scrollLeft>0?"reverse":"negative"),t.removeElement(r),i=e);var e,r}t.EmitterMixin.mixInto(a);var c=function(){function e(e,r,n){this.isHScrollbarsClipped=!1,this.isVScrollbarsClipped=!1,"clipped-scroll"===e&&(e="scroll",this.isHScrollbarsClipped=!0),"clipped-scroll"===r&&(r="scroll",this.isVScrollbarsClipped=!0),this.enhancedScroll=new a(e,r),n.appendChild(this.el=t.createElement("div",{className:"fc-scroller-clip"})),this.el.appendChild(this.enhancedScroll.el)}return e.prototype.destroy=function(){t.removeElement(this.el)},e.prototype.updateSize=function(){var e=this.enhancedScroll,r=e.el,n=t.computeEdges(r),i={marginLeft:0,marginRight:0,marginTop:0,marginBottom:0};this.isVScrollbarsClipped&&(i.marginLeft=-n.scrollbarLeft,i.marginRight=-n.scrollbarRight),this.isHScrollbarsClipped&&(i.marginBottom=-n.scrollbarBottom),t.applyStyle(r,i),!this.isHScrollbarsClipped&&"hidden"!==e.overflowX||!this.isVScrollbarsClipped&&"hidden"!==e.overflowY||n.scrollbarLeft||n.scrollbarRight||n.scrollbarBottom?r.classList.remove("fc-no-scrollbars"):r.classList.add("fc-no-scrollbars")},e.prototype.setHeight=function(e){this.enhancedScroll.setHeight(e)},e.prototype.getScrollbarWidths=function(){var e=this.enhancedScroll.getScrollbarWidths();return this.isVScrollbarsClipped&&(e.left=0,e.right=0),this.isHScrollbarsClipped&&(e.bottom=0),e},e}(),u=function(){function e(e,t){this.axis=e,this.scrollers=t;for(var r=0,n=this.scrollers;rt.asRoughMs(e.slotDuration),a=t.isSingleDay(e.slotDuration),l="",c=0,u=o;c ";l+=" ",l+="";for(var d=0,h=i;d";for(var g=0,v=p;g1?' colspan="'+m.colspan+'"':"")+'>'+m.spanHtml+"
"}l+=""}l+=" ",this.tableEl.innerHTML=l,this.slatColEls=t.findElements(this.tableEl,"col"),this.innerEls=t.findElements(this.tableEl.querySelector("tr:last-child"),"th .fc-cell-text"),t.findElements(this.tableEl.querySelectorAll("tr:not(:last-child)"),"th .fc-cell-text").forEach(function(e){e.classList.add("fc-sticky")})},r}(t.Component),p=function(e){function r(r,n){var i=e.call(this,r)||this;return n.appendChild(i.el=t.createElement("div",{className:"fc-slats"})),i}return n(r,e),r.prototype.destroy=function(){t.removeElement(this.el),e.prototype.destroy.call(this)},r.prototype.render=function(e){this.renderDates(e.tDateProfile)},r.prototype.renderDates=function(e){for(var r=this.theme,n=e.slotDates,i=e.isWeekStarts,o='',s=0;s ";o+=" ",o+="";for(var s=0;s
",this.el.innerHTML=o,this.slatColEls=t.findElements(this.el,"col"),this.slatEls=t.findElements(this.el,"td"),this.outerCoordCache=new t.PositionCache(this.el,this.slatEls,!0,!1),this.innerCoordCache=new t.PositionCache(this.el,t.findChildren(this.slatEls,"div"),!0,!1)},r.prototype.slatCellHtml=function(e,r,n){var i,o=this.theme,s=this.dateEnv;return n.isTimeScale?(i=[]).push(t.isInt(s.countDurationsBetween(n.normalizedRange.start,e,n.labelInterval))?"fc-major":"fc-minor"):(i=t.getDayClasses(e,this.props.dateProfile,this.context)).push("fc-day"),i.unshift(o.getClass("widgetContent")),r&&i.push("fc-em-cell"),'
'},r.prototype.updateSize=function(){this.outerCoordCache.build(),this.innerCoordCache.build()},r.prototype.positionToHit=function(e){var r=this.outerCoordCache,n=this.props.tDateProfile,i=r.leftToIndex(e);if(null!=i){var o=r.getWidth(i),s=this.isRtl?(r.rights[i]-e)/o:(e-r.lefts[i])/o,a=Math.floor(s*n.snapsPerSlot),l=this.dateEnv.add(n.slotDates[i],t.multiplyDuration(n.snapDuration,a)),c=this.dateEnv.add(l,n.snapDuration);return{dateSpan:{range:{start:l,end:c},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.slatColEls[i],left:r.lefts[i],right:r.rights[i]}}return null},r}(t.Component),f=18,g=6,v=200;t.config.MAX_TIMELINE_SLOTS=1e3;var m=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function y(e,r){var n=r.dateEnv,i={labelInterval:b(r,"slotLabelInterval"),slotDuration:b(r,"slotDuration")};!function(e,r,n){var i=r.currentRange;if(e.labelInterval){var o=n.countDurationsBetween(i.start,i.end,e.labelInterval);o>t.config.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null)}if(e.slotDuration){var s=n.countDurationsBetween(i.start,i.end,e.slotDuration);s>t.config.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){var a=t.wholeDivideDurations(e.labelInterval,e.slotDuration);(null===a||a<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(i,e,n),D(i,e,n),function(e,r,n){var i=r.currentRange,o=e.slotDuration;if(!o){for(var s=D(e,r,n),a=0,l=m;a1&&d<=g){o=u;break}}if(o){var h=n.countDurationsBetween(i.start,i.end,o);h>v&&(o=null)}o||(o=s),e.slotDuration=o}}(i,e,n);var o=r.opt("slotLabelFormat"),s=Array.isArray(o)?o:null!=o?[o]:function(e,r,n,i){var o,s,a=e.labelInterval,l=t.greatestDurationDenominator(a).unit,c=i.opt("weekNumbers"),u=o=s=null;switch("week"!==l||c||(l="day"),l){case"year":u={year:"numeric"};break;case"month":w("years",r,n)>1&&(u={year:"numeric"}),o={month:"short"};break;case"week":w("years",r,n)>1&&(u={year:"numeric"}),o={week:"narrow"};break;case"day":w("years",r,n)>1?u={year:"numeric",month:"long"}:w("months",r,n)>1&&(u={month:"long"}),c&&(o={week:"short"}),s={weekday:"narrow",day:"numeric"};break;case"hour":c&&(u={week:"short"}),w("days",r,n)>1&&(o={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),s={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":t.asRoughMinutes(a)/60>=g?(u={hour:"numeric",meridiem:"short"},o=function(e){return":"+t.padStart(e.date.minute,2)}):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":t.asRoughSeconds(a)/60>=g?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},o=function(e){return":"+t.padStart(e.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"},o=function(e){return"."+t.padStart(e.millisecond,3)}}return[].concat(u||[],o||[],s||[])}(i,e,n,r);i.headerFormats=s.map(function(e){return t.createFormatter(e)}),i.isTimeScale=Boolean(i.slotDuration.milliseconds);var a=null;if(!i.isTimeScale){var l=t.greatestDurationDenominator(i.slotDuration).unit;/year|month|week/.test(l)&&(a=l)}i.largeUnit=a,i.emphasizeWeeks=t.isSingleDay(i.slotDuration)&&w("weeks",e,n)>=2&&!r.opt("businessHours");var c,u,d=r.opt("snapDuration");d&&(c=t.createDuration(d),u=t.wholeDivideDurations(i.slotDuration,c)),null==u&&(c=i.slotDuration,u=1),i.snapDuration=c,i.snapsPerSlot=u;var h=t.asRoughMs(e.maxTime)-t.asRoughMs(e.minTime),p=S(e.renderRange.start,i,n),f=S(e.renderRange.end,i,n);i.isTimeScale&&(p=n.add(p,e.minTime),f=n.add(t.addDays(f,-1),e.maxTime)),i.timeWindowMs=h,i.normalizedRange={start:p,end:f};for(var y=[],C=p;C1&&d=f)break}e.labelInterval=o}return o}function w(e,r,n){var i=r.currentRange,o=null;return"years"===e?o=n.diffWholeYears(i.start,i.end):"months"===e?o=n.diffWholeMonths(i.start,i.end):"weeks"===e?o=n.diffWholeMonths(i.start,i.end):"days"===e&&(o=t.diffWholeDays(i.start,i.end)),o||0}function T(e,r,n,i){var o=t.buildGotoAnchorHtml(i,{date:e,type:n,forceOff:!n},{class:"fc-cell-text"},t.htmlEscape(r));return{text:r,spanHtml:o,date:e,colspan:1,isWeekStart:!1}}var C,R=function(){function e(e,t){this.headParent=e,this.bodyParent=t}return e.prototype.render=function(e,r){var n=r?{right:-e}:{left:e};this.headParent.appendChild(this.arrowEl=t.createElement("div",{className:"fc-now-indicator fc-now-indicator-arrow",style:n})),this.bodyParent.appendChild(this.lineEl=t.createElement("div",{className:"fc-now-indicator fc-now-indicator-line",style:n}))},e.prototype.unrender=function(){this.arrowEl&&t.removeElement(this.arrowEl),this.lineEl&&t.removeElement(this.lineEl)},e}(),I=-1!==(C=t.htmlToElement('
').style.position).indexOf("sticky")?C:null,M=/Edge/.test(navigator.userAgent),P="-webkit-sticky"===I,H="fc-sticky",k=function(){function e(e,r,n){var i=this;this.usingRelative=null,this.updateSize=function(){var e=Array.prototype.slice.call(i.scroller.canvas.el.querySelectorAll("."+H)),r=i.queryElGeoms(e),n=i.scroller.el.clientWidth;if(i.usingRelative){var o=i.computeElDestinations(r,n);!function(e,r,n){e.forEach(function(e,i){var o=r[i].naturalBound;t.applyStyle(e,{position:"relative",left:n[i].left-o.left,top:n[i].top-o.top})})}(e,r,o)}else!function(e,r,n){e.forEach(function(e,i){var o=0;"center"===r[i].intendedTextAlign&&(o=(n-r[i].elWidth)/2,"center"===r[i].computedTextAlign&&(e.setAttribute("data-sticky-center",""),e.parentNode.style.textAlign="left")),t.applyStyle(e,{position:I,left:o,right:0,top:0})})}(e,r,n)},this.scroller=e,this.usingRelative=!I||M&&r||(M||P)&&n,this.usingRelative&&e.on("scrollEnd",this.updateSize)}return e.prototype.destroy=function(){this.scroller.off("scrollEnd",this.updateSize)},e.prototype.queryElGeoms=function(e){for(var r=this.scroller.canvas.el.getBoundingClientRect(),n=[],i=0,o=e;in&&(i=s,n="",o=Math.floor(s/r.slotDates.length))}t.headerScroller.enhancedScroll.canvas.setWidth(n),t.headerScroller.enhancedScroll.canvas.setMinWidth(i),t.bodyScroller.enhancedScroll.canvas.setWidth(n),t.bodyScroller.enhancedScroll.canvas.setMinWidth(i),""!==o&&this.header.slatColEls.slice(0,-1).concat(this.slats.slatColEls.slice(0,-1)).forEach(function(e){e.style.width=o+"px"})},r.prototype.computeDateSnapCoverage=function(e){var r=this.dateEnv,n=this.tDateProfile,i=r.countDurationsBetween(n.normalizedRange.start,e,n.snapDuration);if(i<0)return 0;if(i>=n.snapDiffToIndex.length)return n.snapCnt;var o=Math.floor(i),s=n.snapDiffToIndex[o];return t.isInt(s)?s+=i-o:s=Math.ceil(s),s},r.prototype.dateToCoord=function(e){var t=this.tDateProfile,r=this.computeDateSnapCoverage(e),n=r/t.snapsPerSlot,i=Math.floor(n);i=Math.min(i,t.slotCnt-1);var o=n-i,s=this.slats,a=s.innerCoordCache,l=s.outerCoordCache;return this.isRtl?l.rights[i]-a.getWidth(i)*o-l.originClientRect.width:l.lefts[i]+a.getWidth(i)*o},r.prototype.rangeToCoords=function(e){return this.isRtl?{right:this.dateToCoord(e.start),left:this.dateToCoord(e.end)}:{left:this.dateToCoord(e.start),right:this.dateToCoord(e.end)}},r.prototype.computeInitialDateScroll=function(){var e=this.dateEnv,r=this.props.dateProfile,n=0;if(r){var i=this.opt("scrollTime");i&&(i=t.createDuration(i),n=this.dateToCoord(e.add(t.startOfDay(r.activeRange.start),i)),!this.isRtl&&n&&(n+=1))}return{left:n}},r.prototype.queryDateScroll=function(){var e=this.layout.bodyScroller.enhancedScroll;return{left:e.getScrollLeft()}},r.prototype.applyDateScroll=function(e){this.layout.bodyScroller.enhancedScroll.setScrollLeft(e.left||0),this.layout.headerScroller.enhancedScroll.setScrollLeft(e.left||0)},r}(t.Component),x=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.masterContainerEl=r,i.timeAxis=n,i}return n(r,e),r.prototype.renderSegHtml=function(e,r){var n=e.eventRange,i=n.def,o=n.ui,s=o.startEditable||function(e,t){var r=e.resourceEditable;if(null==r){var n=e.sourceId&&t.state.eventSources[e.sourceId];n&&(r=n.extendedProps.resourceEditable),null==r&&null==(r=t.opt("eventResourceEditable"))&&(r=!0)}return r}(i,this.timeAxis.calendar),a=e.isStart&&o.durationEditable&&this.context.options.eventResizableFromStart,l=e.isEnd&&o.durationEditable,c=this.getSegClasses(e,s,a||l,r);c.unshift("fc-timeline-event","fc-h-event");var u=this.getTimeText(n);return''+(u?''+t.htmlEscape(u)+" ":"")+''+(i.title?t.htmlEscape(i.title):" ")+"
"+(a?'
':"")+(l?'
':"")+" "},r.prototype.computeDisplayEventTime=function(){return!this.timeAxis.tDateProfile.isTimeScale},r.prototype.computeDisplayEventEnd=function(){return!1},r.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},r.prototype.attachSegs=function(e,r){if(!this.el&&this.masterContainerEl&&(this.el=t.createElement("div",{className:"fc-event-container"}),r&&this.el.classList.add("fc-mirror-container"),this.masterContainerEl.appendChild(this.el)),this.el)for(var n=0,i=e;nt.left}var N=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.masterContainerEl=r,i.timeAxis=n,i}return n(r,e),r.prototype.attachSegs=function(e,r){if(r.length){var n=void 0;n="businessHours"===e?"bgevent":e.toLowerCase();var i=t.createElement("div",{className:"fc-"+n+"-container"});this.masterContainerEl.appendChild(i);for(var o=0,s=r;o '},t.prototype.render=function(t){e.prototype.render.call(this,t),this.timeAxis.receiveProps({dateProfile:t.dateProfile}),this.lane.receiveProps(o({},t,{nextDayThreshold:this.nextDayThreshold}))},t.prototype.updateSize=function(e,t,r){this.timeAxis.updateSize(e,t,r),this.lane.updateSize(e)},t.prototype.getNowIndicatorUnit=function(e){return this.timeAxis.getNowIndicatorUnit(e)},t.prototype.renderNowIndicator=function(e){this.timeAxis.renderNowIndicator(e)},t.prototype.unrenderNowIndicator=function(){this.timeAxis.unrenderNowIndicator()},t.prototype.computeInitialDateScroll=function(){return this.timeAxis.computeInitialDateScroll()},t.prototype.applyScroll=function(t,r){e.prototype.applyScroll.call(this,t,r);var n=this.calendar;(r||n.isViewUpdated||n.isDatesUpdated||n.isEventsUpdated)&&this.timeAxis.updateStickyScrollers()},t.prototype.applyDateScroll=function(e){this.timeAxis.applyDateScroll(e)},t.prototype.queryScroll=function(){var e=this.timeAxis.layout.bodyScroller.enhancedScroll;return{top:e.getScrollTop(),left:e.getScrollLeft()}},t.prototype.queryHit=function(e,t,r,n){var i=this.timeAxis.slats.positionToHit(e);if(i)return{component:this,dateSpan:i.dateSpan,rect:{left:i.left,right:i.right,top:0,bottom:n},dayEl:i.dayEl,layer:0}},t}(t.View),U=t.createPlugin({defaultView:"timelineDay",views:{timeline:{class:V,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}}}});e.HeaderBodyLayout=d,e.ScrollJoiner=u,e.StickyScroller=k,e.TimeAxis=_,e.TimelineLane=A,e.TimelineView=V,e.default=U,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(13))},484:function(e,t,r){"use strict";r.r(t),r.d(t,"calendarPlugins",function(){return v});var n=r(13);r.n(n),r.d(t,"Calendar",function(){return n.Calendar});var i=r(250),o=r.n(i),s=r(65),a=r.n(s),l=r(251),c=r.n(l),u=r(252),d=r.n(u),h=r(253),p=r.n(h),f=r(254),g=r.n(f),v={bootstrap:o.a,dayGrid:a.a,interaction:c.a,list:d.a,timeGrid:p.a,timeline:g.a}},65:function(e,t,r){
/*!
@fullcalendar/daygrid v4.0.1
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
!function(e,t){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function n(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r'+t.htmlEscape(n)+""),i=''+(t.htmlEscape(a.title||"")||" ")+" ",''+("rtl"===o.dir?i+" "+g:g+" "+i)+"
"+(d?'
':"")+(h?'
':"")+" "},r.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},r.prototype.computeDisplayEventEnd=function(){return!1},r}(t.FgEventRenderer),l=function(e){function r(t){var r=e.call(this,t.context)||this;return r.dayGrid=t,r}return n(r,e),r.prototype.attachSegs=function(e,t){var r=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(r[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},r.prototype.detachSegs=function(){for(var e,r=this.rowStructs||[];e=r.pop();)t.removeElement(e.tbodyEl);this.rowStructs=null},r.prototype.renderSegRows=function(e){var t,r,n=[];for(t=this.groupSegRows(e),r=0;r=e.firstCol)return!0;return!1}function u(e,t){return e.leftCol-t.leftCol}var d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.attachSegs=function(e,r){var n=r.sourceSeg,i=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,r){var o,s,a=t.htmlToElement('');n&&n.row===r?o=n.el:(o=e.querySelector(".fc-content-skeleton tbody"))||(o=e.querySelector(".fc-content-skeleton table")),s=o.getBoundingClientRect().top-e.getBoundingClientRect().top,a.style.top=s+"px",a.querySelector("table").appendChild(i[r].tbodyEl),e.appendChild(a)})},r}(l),h=function(e){function r(t){var r=e.call(this,t.context)||this;return r.fillSegTag="td",r.dayGrid=t,r}return n(r,e),r.prototype.renderSegs=function(t,r){"bgEvent"===t&&(r=r.filter(function(e){return e.eventRange.def.allDay})),e.prototype.renderSegs.call(this,t,r)},r.prototype.attachSegs=function(e,t){var r,n,i,o=[];for(r=0;r'),o=i.getElementsByTagName("tr")[0],d>0&&t.appendToElement(o,new Array(d+1).join(" ")),r.el.colSpan=h-d,o.appendChild(r.el),h"));var p=s.renderProps.renderIntroHtml();return p&&(s.isRtl?t.appendToElement(o,p):t.prependToElement(o,p)),i},r}(t.FillRenderer),p=function(e){function r(r,n){var i=e.call(this,r,n)||this,o=i.eventRenderer=new f(i),s=i.renderFrame=t.memoizeRendering(i._renderFrame);return i.renderFgEvents=t.memoizeRendering(o.renderSegs.bind(o),o.unrender.bind(o),[s]),i.renderEventSelection=t.memoizeRendering(o.selectByInstanceId.bind(o),o.unselectByInstanceId.bind(o),[i.renderFgEvents]),i.renderEventDrag=t.memoizeRendering(o.hideByHash.bind(o),o.showByHash.bind(o),[s]),i.renderEventResize=t.memoizeRendering(o.hideByHash.bind(o),o.showByHash.bind(o),[s]),r.calendar.registerInteractiveComponent(i,{el:i.el,useEventCenter:!1}),i}return n(r,e),r.prototype.render=function(e){this.renderFrame(e.date),this.renderFgEvents(e.fgSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDragInstances),this.renderEventResize(e.eventResizeInstances)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderFrame.unrender(),this.calendar.unregisterInteractiveComponent(this)},r.prototype._renderFrame=function(e){var r=this.theme,n=this.dateEnv,i=n.format(e,t.createFormatter(this.opt("dayPopoverFormat")));this.el.innerHTML='',this.segContainerEl=this.el.querySelector(".fc-event-container")},r.prototype.queryHit=function(e,r,n,i){var o=this.props.date;if(e'),"rtl"===this.context.options.dir&&t.reverse(),""+t.join("")+" "},e}();function v(e,r,n,i){var o=n.dateEnv,s=n.theme,a=t.rangeContainsMarker(r.activeRange,e),l=t.getDayClasses(e,r,n);return l.unshift("fc-day",s.getClass("widgetContent")),' "}var m=t.createFormatter({day:"numeric"}),y=t.createFormatter({week:"numeric"}),S=function(e){function r(r,n,i){var o=e.call(this,r,n)||this;o.bottomCoordPadding=0,o.isCellSizesDirty=!1;var s=o.eventRenderer=new l(o),a=o.fillRenderer=new h(o);o.mirrorRenderer=new d(o);var c=o.renderCells=t.memoizeRendering(o._renderCells,o._unrenderCells);return o.renderBusinessHours=t.memoizeRendering(a.renderSegs.bind(a,"businessHours"),a.unrender.bind(a,"businessHours"),[c]),o.renderDateSelection=t.memoizeRendering(a.renderSegs.bind(a,"highlight"),a.unrender.bind(a,"highlight"),[c]),o.renderBgEvents=t.memoizeRendering(a.renderSegs.bind(a,"bgEvent"),a.unrender.bind(a,"bgEvent"),[c]),o.renderFgEvents=t.memoizeRendering(s.renderSegs.bind(s),s.unrender.bind(s),[c]),o.renderEventSelection=t.memoizeRendering(s.selectByInstanceId.bind(s),s.unselectByInstanceId.bind(s),[o.renderFgEvents]),o.renderEventDrag=t.memoizeRendering(o._renderEventDrag,o._unrenderEventDrag,[c]),o.renderEventResize=t.memoizeRendering(o._renderEventResize,o._unrenderEventResize,[c]),o.renderProps=i,o}return n(r,e),r.prototype.render=function(e){var t=e.cells;this.rowCnt=t.length,this.colCnt=t[0].length,this.renderCells(t,e.isRigid),this.renderBusinessHours(e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderBgEvents(e.bgEventSegs),this.renderFgEvents(e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderCells.unrender()},r.prototype.getCellRange=function(e,r){var n=this.props.cells[e][r].date,i=t.addDays(n,1);return{start:n,end:i}},r.prototype.updateSegPopoverTile=function(e,t){var r=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:r.eventSelection,eventDragInstances:r.eventDrag?r.eventDrag.affectedInstances:null,eventResizeInstances:r.eventResize?r.eventResize.affectedInstances:null})},r.prototype._renderCells=function(e,r){var n,i,o=this.view,s=this.dateEnv,a=this.rowCnt,l=this.colCnt,c="";for(n=0;n'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'
'+(this.getIsNumbersVisible()?""+this.renderNumberTrHtml(e)+" ":"")+"
"},r.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},r.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},r.prototype.renderNumberTrHtml=function(e){var t=this.renderProps.renderNumberIntroHtml(e,this);return""+(this.isRtl?"":t)+this.renderNumberCellsHtml(e)+(this.isRtl?t:"")+" "},r.prototype.renderNumberCellsHtml=function(e){var t,r,n=[];for(t=0;t",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(s+=t.buildGotoAnchorHtml(i,{date:e,type:"week"},{class:"fc-week-number"},o.format(e,y))),l&&(s+=t.buildGotoAnchorHtml(i,e,{class:"fc-day-number"},o.format(e,m))),s+=""):" "},r.prototype.updateSize=function(e){var t=this.fillRenderer,r=this.eventRenderer,n=this.mirrorRenderer;(e||this.isCellSizesDirty)&&(this.buildColPositions(),this.buildRowPositions(),this.isCellSizesDirty=!1),t.computeSizes(e),r.computeSizes(e),n.computeSizes(e),t.assignSizes(e),r.assignSizes(e),n.assignSizes(e)},r.prototype.buildColPositions=function(){this.colPositions.build()},r.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},r.prototype.positionToHit=function(e,t){var r=this.colPositions,n=this.rowPositions,i=r.leftToIndex(e),o=n.topToIndex(t);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:r.lefts[i],right:r.rights[i],top:n.tops[o],bottom:n.bottoms[o]}}},r.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},r.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",e.segs))},r.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight"))},r.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",e.segs),this.mirrorRenderer.renderSegs(e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},r.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight"),this.mirrorRenderer.unrender(e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},r.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},r.prototype.limitRows=function(e){var t,r,n=this.eventRenderer.rowStructs||[];for(t=0;to)return r;return!1},r.prototype.limitRow=function(e,r){var n,i,o,s,a,l,c,u,d,h,p,f,g,v,m,y=this,S=this.colCnt,E=this.isRtl,b=this.eventRenderer.rowStructs[e],D=[],w=0,T=function(n){for(;w"+t.htmlEscape(s.opt("weekLabel"))+" ":""},s.renderDayGridNumberIntroHtml=function(e,r){var n=s.dateEnv,i=r.props.cells[e][0].date;return s.colWeekNumbersVisible?'"+t.buildGotoAnchorHtml(s,{date:i,type:"week",forceOff:1===r.colCnt},n.format(i,E))+" ":""},s.renderDayGridBgIntroHtml=function(){var e=s.theme;return s.colWeekNumbersVisible?' ":""},s.renderDayGridIntroHtml=function(){return s.colWeekNumbersVisible?' ":""},s.el.classList.add("fc-dayGrid-view"),s.el.innerHTML=s.renderSkeletonHtml(),s.scroller=new t.ScrollComponent("hidden","auto");var a=s.scroller.el;s.el.querySelector(".fc-body > tr > td").appendChild(a),a.classList.add("fc-day-grid-container");var l,c=t.createElement("div",{className:"fc-day-grid"});return a.appendChild(c),s.opt("weekNumbers")?s.opt("weekNumbersWithinDays")?(l=!0,s.colWeekNumbersVisible=!1):(l=!1,s.colWeekNumbersVisible=!0):(s.colWeekNumbersVisible=!1,l=!1),s.dayGrid=new S(s.context,c,{renderNumberIntroHtml:s.renderDayGridNumberIntroHtml,renderBgIntroHtml:s.renderDayGridBgIntroHtml,renderIntroHtml:s.renderDayGridIntroHtml,colWeekNumbersVisible:s.colWeekNumbersVisible,cellWeekNumbersVisible:l}),s}return n(r,e),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.dayGrid.destroy(),this.scroller.destroy()},r.prototype.renderSkeletonHtml=function(){var e=this.theme;return''+(this.opt("columnHeader")?' ':"")+'
'},r.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},r.prototype.hasRigidRows=function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},r.prototype.updateSize=function(t,r,n){e.prototype.updateSize.call(this,t,r,n),this.dayGrid.updateSize(t)},r.prototype.updateBaseSize=function(e,r,n){var i,o,s=this.dayGrid,a=this.opt("eventLimit"),l=this.header?this.header.el:null;s.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=t.matchCellWidths(t.findElements(this.el,".fc-week-number"))),this.scroller.clear(),l&&t.uncompensateScroll(l),s.removeSegPopover(),a&&"number"==typeof a&&s.limitRows(a),i=this.computeScrollerHeight(r),this.setGridHeight(i,n),a&&"number"!=typeof a&&s.limitRows(a),n||(this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(l&&t.compensateScroll(l,o),i=this.computeScrollerHeight(r),this.scroller.setHeight(i)),this.scroller.lockOverflow(o))):n||(i=this.computeScrollerHeight(r),this.scroller.setHeight(i))},r.prototype.computeScrollerHeight=function(e){return e-t.subtractInnerElHeight(this.el,this.scroller.el)},r.prototype.setGridHeight=function(e,r){this.opt("monthMode")?(r&&(e*=this.dayGrid.rowCnt/6),t.distributeHeight(this.dayGrid.rowEls,e,!r)):r?t.undistributeHeight(this.dayGrid.rowEls):t.distributeHeight(this.dayGrid.rowEls,e,!0)},r.prototype.computeInitialDateScroll=function(){return{top:0}},r.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},r.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},r}(t.View);b.prototype.dateProfileGeneratorClass=o;var D=function(e){function t(t,r){var n=e.call(this,t,r.el)||this;return n.slicer=new w,n.dayGrid=r,t.calendar.registerInteractiveComponent(n,{el:n.dayGrid.el}),n}return n(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.calendar.unregisterInteractiveComponent(this)},t.prototype.render=function(e){var t=this.dayGrid,r=e.dateProfile,n=e.dayTable;t.receiveProps(i({},this.slicer.sliceProps(e,r,e.nextDayThreshold,t,n),{dateProfile:r,cells:n.cells,isRigid:e.isRigid}))},t.prototype.queryHit=function(e,t){var r=this.dayGrid.positionToHit(e,t);if(r)return{component:this.dayGrid,dateSpan:r.dateSpan,dayEl:r.dayEl,rect:{left:r.relativeRect.left,right:r.relativeRect.right,top:r.relativeRect.top,bottom:r.relativeRect.bottom},layer:0}},t}(t.DateComponent),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(t.Slicer),T=function(e){function r(r,n,i,o){var s=e.call(this,r,n,i,o)||this;return s.buildDayTable=t.memoize(C),s.opt("columnHeader")&&(s.header=new t.DayHeader(s.context,s.el.querySelector(".fc-head-container"))),s.simpleDayGrid=new D(s.context,s.dayGrid),s}return n(r,e),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},r.prototype.render=function(t){e.prototype.render.call(this,t);var r=this.props.dateProfile,n=this.dayTable=this.buildDayTable(r,this.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:r,dates:n.headerDates,datesRepDistinctDays:1===n.rowCnt,renderIntroHtml:this.renderHeadIntroHtml}),this.simpleDayGrid.receiveProps({dateProfile:r,dayTable:n,businessHours:t.businessHours,dateSelection:t.dateSelection,eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.nextDayThreshold})},r}(b);function C(e,r){var n=new t.DaySeries(e.renderRange,r);return new t.DayTable(n,/year|month|week/.test(e.currentRangeUnit))}var R=t.createPlugin({defaultView:"dayGridMonth",views:{dayGrid:T,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});e.default=R,e.SimpleDayGrid=D,e.DayGridSlicer=w,e.DayGrid=S,e.AbstractDayGridView=b,e.DayGridView=T,e.buildBasicDayTable=C,e.DayBgRow=g,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(13))}});if("object"==typeof r){var n=["object"==typeof module&&"object"==typeof module.exports?module.exports:null,"undefined"!=typeof window?window:null,e&&e!==window?e:null];for(var i in r)n[0]&&(n[0][i]=r[i]),n[1]&&"__esModule"!==i&&(n[1][i]=r[i]),n[2]&&(n[2][i]=r[i])}}(this);