%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/
Upload File :
Create Path :
Current File : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/77.126fe283.chunk.js

/*! For license information please see 77.126fe283.chunk.js.LICENSE.txt */
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[77],{1253:function(e,t,n){"use strict";n.d(t,"t",(function(){return s})),n.d(t,"hb",(function(){return i})),n.d(t,"mb",(function(){return a})),n.d(t,"a",(function(){return Be})),n.d(t,"b",(function(){return Jn})),n.d(t,"c",(function(){return bi})),n.d(t,"d",(function(){return rn})),n.d(t,"e",(function(){return Ro})),n.d(t,"f",(function(){return io})),n.d(t,"g",(function(){return ko})),n.d(t,"h",(function(){return tr})),n.d(t,"i",(function(){return yr})),n.d(t,"j",(function(){return hi})),n.d(t,"k",(function(){return gi})),n.d(t,"l",(function(){return Ao})),n.d(t,"m",(function(){return _o})),n.d(t,"n",(function(){return Vo})),n.d(t,"o",(function(){return mo})),n.d(t,"p",(function(){return Bn})),n.d(t,"q",(function(){return Wn})),n.d(t,"r",(function(){return on})),n.d(t,"s",(function(){return ci})),n.d(t,"u",(function(){return ho})),n.d(t,"v",(function(){return Ci})),n.d(t,"w",(function(){return pi})),n.d(t,"x",(function(){return No})),n.d(t,"y",(function(){return zn})),n.d(t,"z",(function(){return Qo})),n.d(t,"A",(function(){return ar})),n.d(t,"B",(function(){return Fn})),n.d(t,"C",(function(){return ao})),n.d(t,"D",(function(){return li})),n.d(t,"E",(function(){return Uo})),n.d(t,"F",(function(){return Tn})),n.d(t,"G",(function(){return ui})),n.d(t,"H",(function(){return Zn})),n.d(t,"I",(function(){return hr})),n.d(t,"J",(function(){return Ei})),n.d(t,"K",(function(){return Gn})),n.d(t,"L",(function(){return V})),n.d(t,"M",(function(){return ge})),n.d(t,"N",(function(){return _})),n.d(t,"O",(function(){return x})),n.d(t,"P",(function(){return k})),n.d(t,"Q",(function(){return Xt})),n.d(t,"R",(function(){return v})),n.d(t,"S",(function(){return ye})),n.d(t,"T",(function(){return fo})),n.d(t,"U",(function(){return lo})),n.d(t,"V",(function(){return sn})),n.d(t,"W",(function(){return Ut})),n.d(t,"X",(function(){return De})),n.d(t,"Y",(function(){return In})),n.d(t,"Z",(function(){return _t})),n.d(t,"ab",(function(){return N})),n.d(t,"bb",(function(){return ji})),n.d(t,"cb",(function(){return _n})),n.d(t,"db",(function(){return Vn})),n.d(t,"eb",(function(){return bo})),n.d(t,"fb",(function(){return On})),n.d(t,"gb",(function(){return he})),n.d(t,"ib",(function(){return nt})),n.d(t,"jb",(function(){return $})),n.d(t,"kb",(function(){return ze})),n.d(t,"lb",(function(){return nr})),n.d(t,"nb",(function(){return Et})),n.d(t,"ob",(function(){return z})),n.d(t,"pb",(function(){return wn})),n.d(t,"qb",(function(){return W})),n.d(t,"rb",(function(){return R})),n.d(t,"sb",(function(){return p})),n.d(t,"tb",(function(){return f})),n.d(t,"ub",(function(){return j})),n.d(t,"vb",(function(){return et})),n.d(t,"wb",(function(){return Ce})),n.d(t,"xb",(function(){return Un})),n.d(t,"yb",(function(){return Zt})),n.d(t,"zb",(function(){return b})),n.d(t,"Ab",(function(){return Mt})),n.d(t,"Bb",(function(){return so})),n.d(t,"Cb",(function(){return m})),n.d(t,"Db",(function(){return Cn})),n.d(t,"Eb",(function(){return tt})),n.d(t,"Fb",(function(){return Vt})),n.d(t,"Gb",(function(){return si})),n.d(t,"Hb",(function(){return ai})),n.d(t,"Ib",(function(){return co})),n.d(t,"Jb",(function(){return Tt})),n.d(t,"Kb",(function(){return Qe})),n.d(t,"Lb",(function(){return go})),n.d(t,"Mb",(function(){return vo})),n.d(t,"Nb",(function(){return Ot})),n.d(t,"Ob",(function(){return Dn})),n.d(t,"Pb",(function(){return uo})),n.d(t,"Qb",(function(){return Fo})),n.d(t,"Rb",(function(){return Ft})),n.d(t,"Sb",(function(){return zo})),n.d(t,"Tb",(function(){return ae})),n.d(t,"Ub",(function(){return re})),n.d(t,"Vb",(function(){return je})),n.d(t,"Wb",(function(){return me})),n.d(t,"Xb",(function(){return Eo})),n.d(t,"Yb",(function(){return mt})),n.d(t,"Zb",(function(){return Sn})),n.d(t,"ac",(function(){return M})),n.d(t,"bc",(function(){return T})),n.d(t,"cc",(function(){return Rt})),n.d(t,"dc",(function(){return wt})),n.d(t,"ec",(function(){return vt})),n.d(t,"fc",(function(){return d})),n.d(t,"gc",(function(){return mi})),n.d(t,"hc",(function(){return ii})),n.d(t,"ic",(function(){return er})),n.d(t,"jc",(function(){return Pt})),n.d(t,"kc",(function(){return B})),n.d(t,"lc",(function(){return qt})),n.d(t,"mc",(function(){return O})),n.d(t,"nc",(function(){return Ee}));n(1487);var r=n(4);if("undefined"===typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var o=FullCalendarVDom.Component,i=FullCalendarVDom.createElement,a=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=FullCalendarVDom.Fragment,l=FullCalendarVDom.createContext,c=FullCalendarVDom.createPortal,u=(FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode,function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}());function d(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(f(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function f(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}var h=/(top|left|right|bottom|width|height)$/i;function v(e,t){for(var n in t)g(e,n,t[n])}function g(e,t,n){null==n?e.style[t]="":"number"===typeof n&&h.test(t)?e.style[t]=n+"px":e.style[t]=n}function m(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function b(e){return e.getRootNode?e.getRootNode():document}function y(e){e.preventDefault()}function E(e,t){return function(n){var r=p(n.target,e);r&&t.call(r,n,r)}}function S(e,t,n,r){var o=E(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var D=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function O(e,t){var n=function(r){t(r),D.forEach((function(t){e.removeEventListener(t,n)}))};D.forEach((function(t){e.addEventListener(t,n)}))}var C=0;function w(){return String(C+=1)}function R(){document.body.classList.add("fc-not-allowed")}function j(){document.body.classList.remove("fc-not-allowed")}function T(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",y)}function k(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",y)}function M(e){e.addEventListener("contextmenu",y)}function x(e){e.removeEventListener("contextmenu",y)}function I(e,t,n){return n.func?n.func(e,t):function(e,t){if(!e&&!t)return 0;if(null==t)return-1;if(null==e)return 1;if("string"===typeof e||"string"===typeof t)return String(e).localeCompare(String(t));return e-t}(e[n.field],t[n.field])*(n.order||1)}function P(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function N(e,t){return e-t}function H(e){return e%1===0}function A(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var L=["sun","mon","tue","wed","thu","fri","sat"];function _(e,t){var n=X(e);return n[2]+=7*t,K(n)}function V(e,t){var n=X(e);return n[2]+=t,K(n)}function U(e,t){var n=X(e);return n[6]+=t,K(n)}function W(e,t){return z(e,t)/7}function z(e,t){return(t.valueOf()-e.valueOf())/864e5}function F(e,t){return Q(e)===Q(t)?Math.round(z(e,t)):null}function B(e){return K([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function G(e,t,n,r){var o=K([t,0,1+q(t,n,r)]),i=B(e),a=Math.round(z(o,i));return Math.floor(a/7)+1}function q(e,t,n){var r=7+t-n;return-((7+K([e,0,r]).getUTCDay()-t)%7)+r-1}function Y(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Z(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 X(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function K(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function J(e){return!isNaN(e.valueOf())}function Q(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function $(e,t,n,r){return{instanceId:w(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var ee=Object.prototype.hasOwnProperty;function te(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=0;i-=1){var a=e[i][r];if("object"===typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=te(o))}for(i=e.length-1;i>=0;i-=1){var s=e[i];for(var l in s)l in n||(n[l]=s[l])}return n}function ne(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function re(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function oe(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function ie(e){var t=[];for(var n in e)t.push(e[n]);return t}function ae(e,t){if(e===t)return!0;for(var n in e)if(ee.call(e,n)&&!(n in t))return!1;for(var n in t)if(ee.call(t,n)&&e[n]!==t[n])return!1;return!0}function se(e,t){var n=[];for(var r in e)ee.call(e,r)&&(r in t||n.push(r));for(var r in t)ee.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function le(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!ce(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function ce(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function ue(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,a=e.defs,s=e.instances;for(var l in s=ne(s,(function(e){return!a[e.defId].recurringDef})),a){var c=a[l];if(c.recurringDef){var u=c.recurringDef.duration;u||(u=c.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=0,p=de(c,u,t,r,o.recurringTypes);d<p.length;d++){var f=p[d],h=$(l,{start:f,end:r.add(f,u)});s[h.instanceId]=h}}}return{defs:a,instances:s}}function de(e,t,n,r,o){var i=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(B)),i}var pe=["years","months","days","milliseconds"],fe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function he(e,t){var n;return"string"===typeof e?function(e){var t=fe.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"===typeof e&&e?ve(e):"number"===typeof e?ve(((n={})[t||"milliseconds"]=e,n)):null}function ve(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function ge(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function me(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function be(e){return ye(e)/864e5}function ye(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Ee(e,t){for(var n=null,r=0;r<pe.length;r+=1){var o=pe[r];if(t[o]){var i=e[o]/t[o];if(!H(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function Se(e){var t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%6e4!==0)return{unit:"second",value:t/1e3};if(t%36e5!==0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function De(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",we(t,!0)))),r}function Oe(e){return e.toISOString().replace(/T.*$/,"")}function Ce(e){return P(e.getUTCHours(),2)+":"+P(e.getUTCMinutes(),2)+":"+P(e.getUTCSeconds(),2)}function we(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+P(o,2)+":"+P(i,2):"GMT"+n+o+(i?":"+P(i,2):"")}function Re(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function je(e,t,n){var r,o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r){if(!Re(r,i)){n&&n(o);var s=e.apply(this,i);t&&t(s,o)||(o=s)}}else o=e.apply(this,i);return r=i,o}}function Te(e,t,n){var r,o,i=this;return function(a){if(r){if(!ae(r,a)){n&&n(o);var s=e.call(i,a);t&&t(s,o)||(o=s)}}else o=e.call(i,a);return r=a,o}}var ke={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Me={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},xe=/\s*([ap])\.?m\.?/i,Ie=/,/g,Pe=/\s+/g,Ne=/\u200e/g,He=/UTC|GMT/,Ae=function(){function e(e){var t={},n={},r=0;for(var o in e)o in ke?(n[o]=e[o],r=Math.max(ke[o],r)):(t[o]=e[o],o in Me&&(r=Math.max(Me[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=je(Le)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var o=this.standardDateProps,i=this.extendedSettings,a=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(Q(e)!==Q(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var s=a;!(s>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(s=1);var l=this.format(e,n),c=this.format(t,n);if(l===c)return l;var u=Le(function(e,t){var n={};for(var r in e)(!(r in Me)||Me[r]<=t)&&(n[r]=e[r]);return n}(o,s),i,n),d=u(e),p=u(t),f=function(e,t,n,r){var o=0;for(;o<e.length;){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;for(var s=e.substr(o),l=0;l<n.length;){var c=n.indexOf(r,l);if(-1===c)break;var u=n.substr(0,c);l=c+r.length;var d=n.substr(l);if(a===u&&s===d)return{before:a,after:s}}}return null}(l,d,c,p),h=i.separator||r||n.defaultSeparator||"";return f?f.before+d+h+p+f.after:l+h+c},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function Le(e,t,n){var o=Object.keys(e).length;return 1===o&&"short"===e.timeZoneName?function(e){return we(e.timeZoneOffset)}:0===o&&t.week?function(e){return function(e,t,n,r){var o=[];"narrow"===r?o.push(t):"short"===r&&o.push(t," ");o.push(n.simpleNumberFormat.format(e)),"rtl"===n.options.direction&&o.reverse();return o.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.locale,t.week)}:function(e,t,n){e=Object(r.a)({},e),t=Object(r.a)({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var o,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=Object(r.a)({},e);delete a.minute,o=new Intl.DateTimeFormat(n.locale.codes,a)}return function(r){var a=r.marker;return function(e,t,n,r,o){e=e.replace(Ne,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(He,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":we(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ie,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(xe,"").trim():"narrow"===r.meridiem?e=e.replace(xe,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(xe,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(xe,(function(e){return e.toLocaleLowerCase()})));return e=e.replace(Pe," "),e=e.trim(),e}((o&&!a.getUTCMinutes()?o:i).format(a),r,e,t,n)}}(e,t,n)}function _e(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Ve(e,t,n,r){var o=_e(e,n.calendarSystem);return{date:o,start:o,end:t?_e(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var Ue=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,Ve(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,Ve(e,t,n,r))},e}(),We=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(Ve(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(Ve(e,t,n,r))},e}();function ze(e){return"object"===typeof e&&e?new Ae(e):"string"===typeof e?new Ue(e):"function"===typeof e?new We(e):null}var Fe={navLinkDayClick:Qe,navLinkWeekClick:Qe,duration:he,bootstrapFontAwesome:Qe,buttonIcons:Qe,customButtons:Qe,defaultAllDayEventDuration:he,defaultTimedEventDuration:he,nextDayThreshold:he,scrollTime:he,scrollTimeReset:Boolean,slotMinTime:he,slotMaxTime:he,dayPopoverFormat:ze,slotDuration:he,snapDuration:he,headerToolbar:Qe,footerToolbar:Qe,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ze,dayHeaderClassNames:Qe,dayHeaderContent:Qe,dayHeaderDidMount:Qe,dayHeaderWillUnmount:Qe,dayCellClassNames:Qe,dayCellContent:Qe,dayCellDidMount:Qe,dayCellWillUnmount:Qe,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Qe,weekNumbers:Boolean,weekNumberClassNames:Qe,weekNumberContent:Qe,weekNumberDidMount:Qe,weekNumberWillUnmount:Qe,editable:Boolean,viewClassNames:Qe,viewDidMount:Qe,viewWillUnmount:Qe,nowIndicator:Boolean,nowIndicatorClassNames:Qe,nowIndicatorContent:Qe,nowIndicatorDidMount:Qe,nowIndicatorWillUnmount:Qe,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Qe,locale:Qe,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Qe,eventOrder:function(e){var t,n,r=[],o=[];for("string"===typeof e?o=e.split(/\s*,\s*/):"function"===typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)"string"===typeof(n=o[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"===typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Qe,contentHeight:Qe,direction:String,weekNumberFormat:ze,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:Qe,initialDate:Qe,now:Qe,eventDataTransform:Qe,stickyHeaderDates:Qe,stickyFooterScrollbar:Qe,viewHeight:Qe,defaultAllDay:Boolean,eventSourceFailure:Qe,eventSourceSuccess:Qe,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Qe,eventConstraint:Qe,eventAllow:Qe,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Qe,eventContent:Qe,eventDidMount:Qe,eventWillUnmount:Qe,selectConstraint:Qe,selectOverlap:Qe,selectAllow:Qe,droppable:Boolean,unselectCancel:String,slotLabelFormat:Qe,slotLaneClassNames:Qe,slotLaneContent:Qe,slotLaneDidMount:Qe,slotLaneWillUnmount:Qe,slotLabelClassNames:Qe,slotLabelContent:Qe,slotLabelDidMount:Qe,slotLabelWillUnmount:Qe,dayMaxEvents:Qe,dayMaxEventRows:Qe,dayMinWidth:Number,slotLabelInterval:he,allDayText:String,allDayClassNames:Qe,allDayContent:Qe,allDayDidMount:Qe,allDayWillUnmount:Qe,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ze,rerenderDelay:Number,moreLinkText:Qe,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Qe,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:he,hiddenDays:Qe,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Qe,visibleRange:Qe,titleFormat:Qe,noEventsText:String,moreLinkClick:Qe,moreLinkClassNames:Qe,moreLinkContent:Qe,moreLinkDidMount:Qe,moreLinkWillUnmount:Qe},Be={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",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},Ge={datesSet:Qe,eventsSet:Qe,eventAdd:Qe,eventChange:Qe,eventRemove:Qe,windowResize:Qe,eventClick:Qe,eventMouseEnter:Qe,eventMouseLeave:Qe,select:Qe,unselect:Qe,loading:Qe,_unmount:Qe,_beforeprint:Qe,_afterprint:Qe,_noEventDrop:Qe,_noEventResize:Qe,_resize:Qe,_scrollRequest:Qe},qe={buttonText:Qe,views:Qe,plugins:Qe,initialEvents:Qe,events:Qe,eventSources:Qe},Ye={headerToolbar:Ze,footerToolbar:Ze,buttonText:Ze,buttonIcons:Ze};function Ze(e,t){return"object"===typeof e&&"object"===typeof t&&e&&t?ae(e,t):e===t}var Xe={type:String,component:Qe,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Qe,usesMinMaxTime:Boolean,classNames:Qe,content:Qe,didMount:Qe,willUnmount:Qe};function Ke(e){return te(e,Ye)}function Je(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function Qe(e){return e}function $e(e,t,n,r){for(var o={defs:{},instances:{}},i=gt(n),a=0,s=e;a<s.length;a++){var l=ht(s[a],t,n,r,i);l&&et(l,o)}return o}function et(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function tt(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=ot(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return{defs:{},instances:{}}}function nt(){return{defs:{},instances:{}}}function rt(e,t){return{defs:Object(r.a)(Object(r.a)({},e.defs),t.defs),instances:Object(r.a)(Object(r.a)({},e.instances),t.instances)}}function ot(e,t){var n=ne(e.defs,t),r=ne(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function it(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}var at={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Qe,overlap:Qe,allow:Qe,className:it,classNames:it,color:String,backgroundColor:String,borderColor:String,textColor:String},st={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function lt(e,t){var n=function(e,t){return Array.isArray(e)?$e(e,null,t,!0):"object"===typeof e&&e?$e([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function ct(e){return e.reduce(ut,st)}function ut(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"===typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var dt={id:String,groupId:String,title:String,url:String},pt={start:Qe,end:Qe,date:Qe,allDay:Boolean},ft=Object(r.a)(Object(r.a)(Object(r.a)({},dt),pt),{extendedProps:Qe});function ht(e,t,n,r,o){void 0===o&&(o=gt(n));var i=vt(e,n,o),a=i.refined,s=i.extra,l=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),c=function(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var a=e.allDay;return null==a&&null==(a=t)&&null==(a=i.allDayGuess)&&(a=!1),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(a,l,n.dateEnv,n.pluginHooks.recurringTypes);if(c)return(u=mt(a,s,t?t.sourceId:"",c.allDay,Boolean(c.duration),n)).recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:u,instance:null};var u,d=function(e,t,n,r){var o,i,a=e.allDay,s=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(u),o)s=o.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified));a&&s&&(s=B(s));i&&(c=i.marker,a&&(c=B(c)),s&&c<=s&&(c=null));c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:l,range:{start:s,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(a,l,n,r);return d?{def:u=mt(a,s,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:$(u.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function vt(e,t,n){return void 0===n&&(n=gt(t)),Je(e,n)}function gt(e){return Object(r.a)(Object(r.a)(Object(r.a)({},at),ft),e.pluginHooks.eventRefiners)}function mt(e,t,n,o,i,a){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:w(),sourceId:n,allDay:o,hasEnd:i,ui:lt(e,a),extendedProps:Object(r.a)(Object(r.a)({},e.extendedProps||{}),t)},l=0,c=a.pluginHooks.eventDefMemberAdders;l<c.length;l++){var u=c[l];Object(r.a)(s,u(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function bt(e){var t=Math.floor(z(e.start,e.end))||1,n=B(e.start);return{start:n,end:V(n,t)}}function yt(e,t){void 0===t&&(t=he(0));var n=null,r=null;if(e.end){r=B(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=ye(t)&&(r=V(r,1))}return e.start&&(n=B(e.start),r&&r<=n&&(r=V(n,1))),{start:n,end:r}}function Et(e,t,n,r){return"year"===r?he(n.diffWholeYears(e,t),"year"):"month"===r?he(n.diffWholeMonths(e,t),"month"):function(e,t){var n=B(e),r=B(t);return{years:0,months:0,days:Math.round(z(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}function St(e,t){var n,r,o=[],i=t.start;for(e.sort(Dt),n=0;n<e.length;n+=1)(r=e[n]).start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function Dt(e,t){return e.start.valueOf()-t.start.valueOf()}function Ot(e,t){var n=e.start,r=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function Ct(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function wt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Rt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function jt(e,t,n,r){var o={},i={},a={},s=[],l=[],c=xt(e.defs,t);for(var u in e.defs){"inverse-background"===(f=c[(E=e.defs[u]).defId]).display&&(E.groupId?(o[E.groupId]=[],a[E.groupId]||(a[E.groupId]=E)):i[u]=[])}for(var d in e.instances){var p=e.instances[d],f=c[(E=e.defs[p.defId]).defId],h=p.range,v=!E.allDay&&r?yt(h,r):h,g=Ot(v,n);g&&("inverse-background"===f.display?E.groupId?o[E.groupId].push(g):i[p.defId].push(g):"none"!==f.display&&("background"===f.display?s:l).push({def:E,ui:f,instance:p,range:g,isStart:v.start&&v.start.valueOf()===g.start.valueOf(),isEnd:v.end&&v.end.valueOf()===g.end.valueOf()}))}for(var m in o)for(var b=0,y=St(o[m],n);b<y.length;b++){var E,S=y[b];f=c[(E=a[m]).defId];s.push({def:E,ui:f,instance:null,range:S,isStart:!1,isEnd:!1})}for(var u in i)for(var D=0,O=St(i[u],n);D<O.length;D++){S=O[D];s.push({def:e.defs[u],ui:c[u],instance:null,range:S,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function Tt(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function kt(e,t){e.fcSeg=t}function Mt(e){return e.fcSeg||e.parentNode.fcSeg||null}function xt(e,t){return re(e,(function(e){return It(e,t)}))}function It(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ct(n)}function Pt(e,t){var n=e.map(Nt);return n.sort((function(e,n){return function(e,t,n){var r,o;for(r=0;r<n.length;r+=1)if(o=I(e,t,n[r]))return o;return 0}(e,n,t)})),n.map((function(e){return e._seg}))}function Nt(e){var t=e.eventRange,n=t.def,o=t.instance?t.instance.range:t.range,i=o.start?o.start.valueOf():0,a=o.end?o.end.valueOf():0;return Object(r.a)(Object(r.a)(Object(r.a)({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function Ht(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,o=r.def,i=r.ui,a=i.startEditable,s=0,l=n;s<l.length;s++){a=(0,l[s])(a,o,i,t)}return a}function At(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Lt(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function _t(e,t,n,r,o,i,a){var s=n.dateEnv,l=n.options,c=l.displayEventTime,u=l.displayEventEnd,d=e.eventRange.def,p=e.eventRange.instance;null==c&&(c=!1!==r),null==u&&(u=!1!==o);var f=p.range.start,h=p.range.end,v=i||e.start||e.eventRange.range.start,g=a||e.end||e.eventRange.range.end,m=B(f).valueOf()===B(v).valueOf(),b=B(U(h,-1)).valueOf()===B(U(g,-1)).valueOf();return c&&!d.allDay&&(m||b)?(v=m?f:v,g=b?h:g,u&&d.hasEnd?s.formatRange(v,g,t,{forcedStartTzo:i?null:p.forcedStartTzo,forcedEndTzo:a?null:p.forcedEndTzo}):s.format(v,t,{forcedTzo:i?null:p.forcedStartTzo})):""}function Vt(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Rt(t,r.start)}}function Ut(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}var Wt={start:Qe,end:Qe,allDay:Boolean};function zt(e,t,n){var o=function(e,t){var n=Je(e,Wt),o=n.refined,i=n.extra,a=o.start?t.createMarkerMeta(o.start):null,s=o.end?t.createMarkerMeta(o.end):null,l=o.allDay;null==l&&(l=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Object(r.a)({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:l},i)}(e,t),i=o.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return o}function Ft(e,t){return n=e.range,r=t.range,(null===n.start?null:n.start.valueOf())===(null===r.start?null:r.start.valueOf())&&(null===n.end?null:n.end.valueOf())===(null===r.end?null:r.end.valueOf())&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t);var n,r}function Bt(e,t,n){return Object(r.a)(Object(r.a)({},Gt(e,t,n)),{timeZone:t.timeZone})}function Gt(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function qt(e,t,n){n.emitter.trigger("select",Object(r.a)(Object(r.a)({},Yt(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Yt(e,t){for(var n,o,i={},a=0,s=t.pluginHooks.dateSpanTransforms;a<s.length;a++){var l=s[a];Object(r.a)(i,l(e,t))}return Object(r.a)(i,(n=e,o=t.dateEnv,Object(r.a)(Object(r.a)({},Gt(n.range,o,n.allDay)),{allDay:n.allDay}))),i}function Zt(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=B(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function Xt(e,t,n,r){var o=xt(e.defs,t),i={defs:{},instances:{}};for(var a in e.defs){var s=e.defs[a];i.defs[a]=Kt(s,o[a],n,r)}for(var l in e.instances){var c=e.instances[l];s=i.defs[c.defId];i.instances[l]=Jt(c,s,o[c.defId],n,r)}return i}function Kt(e,t,n,o){var i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);var a=Object(r.a)(Object(r.a)(Object(r.a)({},e),i),{ui:Object(r.a)(Object(r.a)({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=Object(r.a)(Object(r.a)({},a.extendedProps),n.extendedProps));for(var s=0,l=o.pluginHooks.eventDefMutationAppliers;s<l.length;s++){(0,l[s])(a,n,o)}return!a.hasEnd&&o.options.forceEventDuration&&(a.hasEnd=!0),a}function Jt(e,t,n,o,i){var a=i.dateEnv,s=o.standardProps&&!0===o.standardProps.allDay,l=o.standardProps&&!1===o.standardProps.hasEnd,c=Object(r.a)({},e);return s&&(c.range=bt(c.range)),o.datesDelta&&n.startEditable&&(c.range={start:a.add(c.range.start,o.datesDelta),end:a.add(c.range.end,o.datesDelta)}),o.startDelta&&n.durationEditable&&(c.range={start:a.add(c.range.start,o.startDelta),end:c.range.end}),o.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:a.add(c.range.end,o.endDelta)}),l&&(c.range={start:c.range.start,end:Zt(t.allDay,c.range.start,i)}),t.allDay&&(c.range={start:B(c.range.start),end:B(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Zt(t.allDay,c.range.start,i)),c}var Qt=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),$t={id:String,defaultAllDay:Boolean,url:String,format:String,events:Qe,eventDataTransform:Qe,success:Qe,failure:Qe};function en(e,t,n){var r;if(void 0===n&&(n=tn(t)),"string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){var o=Je(r,n),i=o.refined,a=o.extra,s=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:w(),sourceDefId:s.sourceDefId,meta:s.meta,ui:lt(i,t),extendedProps:a}}return null}function tn(e){return Object(r.a)(Object(r.a)(Object(r.a)({},at),$t),e.pluginHooks.eventSourceRefiners)}function nn(e,t){return"function"===typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var rn=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];(t=this.currentDataManager.emitter).trigger.apply(t,Object(r.g)([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),o=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.viewsWithButtons);for(var s in o)a.push(s);for(t=0;t<a.length;t+=1)if((n=o[a[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:nn(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=he(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),ze(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),ze(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),o=zt(n,r.dateEnv,he({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),qt(o,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof on){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:et({def:n,instance:r})}),this.triggerEventAdd(e)),e}var o,i=this.getCurrentData();if(t instanceof u)o=t.internalEventSource;else if("boolean"===typeof t)t&&(o=ie(i.eventSources)[0]);else if(null!=t){var a=this.getEventSourceById(t);if(!a)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=a.internalEventSource}var s=ht(e,o,i,!1);if(s){var l=new on(i,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:et(s)}),this.triggerEventAdd(l),l}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:an(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var a=r[i];if(a.publicId===e){if(a.recurringDef)return new on(t,a,null);for(var s in o){var l=o[s];if(l.defId===a.defId)return new on(t,a,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return sn(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new u(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new u(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof u)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=en(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new u(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=he(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),on=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in pt)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=dt[e](t),this.mutate({standardProps:{publicId:t}});else if(e in dt)t=dt[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in at){var o=at[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:((r={})[e]=t,o=r),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var o=Et(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var o=Et(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o,i,a=this._context.dateEnv,s={allDay:n.allDay},l=a.createMarker(e);if(l&&((null==t||(r=a.createMarker(t)))&&this._instance)){var c=this._instance.range;!0===n.allDay&&(c=bt(c));var u=Et(c.start,l,a,n.granularity);if(r){var d=Et(c.end,r,a,n.granularity);i=d,(o=u).years===i.years&&o.months===i.months&&o.days===i.days&&o.milliseconds===i.milliseconds?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}},e.prototype.moveStart=function(e){var t=he(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=he(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=he(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=ze(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,o=this._context,i=o.getCurrentData().eventStore,a=tt(i,n.instanceId);a=Xt(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);var s=new e(o,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:a}),o.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:sn(a,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=an(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new u(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,o=this.startStr,i=this.endStr,a={};return t.title&&(a.title=t.title),o&&(a.start=o),i&&(a.end=i),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object(r.a)(a,t.extendedProps):a.extendedProps=t.extendedProps),a},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function an(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function sn(e,t,n){var r=e.defs,o=e.instances,i=[],a=n?n.instanceId:"";for(var s in o){var l=o[s],c=r[l.defId];l.instanceId!==a&&i.push(new on(t,c,l))}return i}var ln={};var cn,un=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 K(e)},e.prototype.markerToArray=function(e){return X(e)},e}();cn=un,ln["gregory"]=cn;var dn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var pn=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new ln[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"===typeof e.firstDay&&(this.weekDow=e.firstDay),"function"===typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):K(Y(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=K(e)),null!==t&&J(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=dn.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(J(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return Q(e)===Q(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return Q(e)===Q(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:(n=function(e,t){var n=F(e,t);return null!==n&&n%7===0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:null!==(n=F(e,t))?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),H(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),H(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),H(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(be(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return be(e)/30}(n):n.days&&null!==(r=F(e,t))?r/be(n):(t.valueOf()-e.valueOf())/ye(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?B(e):"hour"===t?function(e){return K([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return K([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return K([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),o=G(e,r,t,n);if(o<1)return G(e,r-1,t,n);var i=G(e,r+1,t,n);return i>=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=U(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),De(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?K(Y(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?K(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-Z(X(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(X(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?Z(X(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(X(e))*60):new Date(e.valueOf()-(t||0))},e}(),fn=[],hn={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"};function vn(e){for(var t=e.length>0?e[0].code:"en",n=fn.concat(e),r={en:hn},o=0,i=n;o<i.length;o++){var a=i[o];r[a.code]=a}return{map:r,defaultCode:t}}function gn(e,t){return"object"!==typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;o>0;o-=1){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(n,t)||hn;return mn(e,n,r)}(e,t):mn(e.code,[e.code],e)}function mn(e,t,n){var r=te([hn,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var bn,yn={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function En(e,t){return $e(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"===typeof e&&e?[e]:[];return t=t.map((function(e){return Object(r.a)(Object(r.a)({},yn),e)}))}(e),null,t)}function Sn(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Dn(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function On(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Cn(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function wn(e,t){return{left:e.left-t.left,top:e.top-t.top}}function Rn(){return null==bn&&(bn=function(){if("undefined"===typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),bn}var jn={defs:{},instances:{}},Tn=function(){function e(){this.getKeysForEventDefs=je(this._getKeysForEventDefs),this.splitDateSelection=je(this._splitDateSpan),this.splitEventStore=je(this._splitEventStore),this.splitIndividualUi=je(this._splitIndividualUi),this.splitEventDrag=je(this._splitInteraction),this.splitEventResize=je(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};for(var u in this.eventUiBuilders=re(n,(function(e,n){return t.eventUiBuilders[n]||je(kn)})),n){var d=n[u],p=a[u]||jn,f=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:o[u]||null,eventStore:p,eventUiBases:f(e.eventUiBases[""],d.ui,i[u]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[u]||null,eventResize:l[u]||null}}return c},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return re(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,o={};for(var i in n)for(var a=0,s=t[i];a<s.length;a++){o[p=s[a]]||(o[p]={defs:{},instances:{}}),o[p].defs[i]=n[i]}for(var l in r)for(var c=r[l],u=0,d=t[c.defId];u<d.length;u++){var p;o[p=d[u]]&&(o[p].instances[l]=c)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var o=0,i=t[r];o<i.length;o++){var a=i[o];n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=function(r){t[r]||(t[r]={affectedEvents:n[r]||jn,mutatedEvents:o[r]||jn,isEvent:e.isEvent})};for(var a in n)i(a);for(var a in o)i(a)}return t},e}();function kn(e,t,n){var o=[];e&&o.push(e),t&&o.push(t);var i={"":ct(o)};return n&&Object(r.a)(i,n),i}function Mn(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Rt(r.activeRange,e)),isOther:Boolean(r&&!Rt(r.currentRange,e)),isToday:Boolean(t&&Rt(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function xn(e,t){var n=["fc-day","fc-day-"+L[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function In(e,t){return void 0===t&&(t="day"),JSON.stringify({date:Oe(e),type:t})}var Pn,Nn=null;function Hn(){return null===Nn&&(Nn=function(){var e=document.createElement("div");v(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return d(e),t}()),Nn}function An(){return Pn||(Pn=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=Ln(e);return document.body.removeChild(e),t}()),Pn}function Ln(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function _n(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():Vn(e),o=function(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=Ln(e),l=s.y-r-o,c={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:s.x-i-a,scrollbarLeft:0,scrollbarRight:0};return Hn()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}(e,t),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return t&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function Vn(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 Un(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}var Wn=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],o=this.options&&this.options[e],i=0,a=[].concat(o||[],r);i<a.length;i++){a[i].apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e]},e}();var zn=function(){function e(e,t,n,r){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),Fn=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),Bn=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return Object(r.c)(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(Fn),Gn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(Fn),qn=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"===typeof e&&e){for(n in t=Object(r.a)({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();qn.prototype.classes={},qn.prototype.iconClasses={},qn.prototype.baseIconClass="",qn.prototype.iconOverridePrefix="";var Yn=function(){function e(e,t,n,o){var i=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=o,this.handleScrollRequest=function(e){i.queuedRequest=Object(r.a)({},i.queuedRequest||{},e),i.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),Zn=l({});function Xn(e,t,n,r,o,i,a,s,l,c,u,d,p){return{dateEnv:o,options:n,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:l,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){c.on("_resize",e)},removeResizeHandler:function(e){c.off("_resize",e)},createScrollResponder:function(e){return new Yn(e,c,he(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:p}}var Kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(se(e,this.props),se(t,this.state)),!le(this.props,e,this.propEquality)||!le(this.state,t,this.stateEquality)},t.addPropsEquality=Qn,t.addStateEquality=$n,t.contextType=Zn,t}(o);Kn.prototype.propEquality={},Kn.prototype.stateEquality={};var Jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.contextType=Zn,t}(Kn);function Qn(e){var t=Object.create(this.prototype.propEquality);Object(r.a)(t,e),this.prototype.propEquality=t}function $n(e){var t=Object.create(this.prototype.stateEquality);Object(r.a)(t,e),this.prototype.stateEquality=t}function er(e,t){"function"===typeof e?e(t):e&&(e.current=t)}var tr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=w(),t}return Object(r.c)(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!p(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!p(e,".fc-event:not(.fc-bg-event)")&&!p(e,".fc-more-link")&&!p(e,"a[data-navlink]")&&!p(e,".fc-popover")},t}(Jn);function nr(e){return{id:w(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function rr(){var e,t=[],n=[];return function(o,i){return e&&Re(o,t)&&Re(i,n)||(e=function(e,t){var n={},o={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];n[s.id]||(n[s.id]=!0,i(s.deps),c=s,o={reducers:(l=o).reducers.concat(c.reducers),isLoadingFuncs:l.isLoadingFuncs.concat(c.isLoadingFuncs),contextInit:l.contextInit.concat(c.contextInit),eventRefiners:Object(r.a)(Object(r.a)({},l.eventRefiners),c.eventRefiners),eventDefMemberAdders:l.eventDefMemberAdders.concat(c.eventDefMemberAdders),eventSourceRefiners:Object(r.a)(Object(r.a)({},l.eventSourceRefiners),c.eventSourceRefiners),isDraggableTransformers:l.isDraggableTransformers.concat(c.isDraggableTransformers),eventDragMutationMassagers:l.eventDragMutationMassagers.concat(c.eventDragMutationMassagers),eventDefMutationAppliers:l.eventDefMutationAppliers.concat(c.eventDefMutationAppliers),dateSelectionTransformers:l.dateSelectionTransformers.concat(c.dateSelectionTransformers),datePointTransforms:l.datePointTransforms.concat(c.datePointTransforms),dateSpanTransforms:l.dateSpanTransforms.concat(c.dateSpanTransforms),views:Object(r.a)(Object(r.a)({},l.views),c.views),viewPropsTransformers:l.viewPropsTransformers.concat(c.viewPropsTransformers),isPropsValid:c.isPropsValid||l.isPropsValid,externalDefTransforms:l.externalDefTransforms.concat(c.externalDefTransforms),viewContainerAppends:l.viewContainerAppends.concat(c.viewContainerAppends),eventDropTransformers:l.eventDropTransformers.concat(c.eventDropTransformers),calendarInteractions:l.calendarInteractions.concat(c.calendarInteractions),componentInteractions:l.componentInteractions.concat(c.componentInteractions),themeClasses:Object(r.a)(Object(r.a)({},l.themeClasses),c.themeClasses),eventSourceDefs:l.eventSourceDefs.concat(c.eventSourceDefs),cmdFormatter:c.cmdFormatter||l.cmdFormatter,recurringTypes:l.recurringTypes.concat(c.recurringTypes),namedTimeZonedImpl:c.namedTimeZonedImpl||l.namedTimeZonedImpl,initialView:l.initialView||c.initialView,elementDraggingImpl:l.elementDraggingImpl||c.elementDraggingImpl,optionChangeHandlers:Object(r.a)(Object(r.a)({},l.optionChangeHandlers),c.optionChangeHandlers),scrollGridImpl:c.scrollGridImpl||l.scrollGridImpl,contentTypeHandlers:Object(r.a)(Object(r.a)({},l.contentTypeHandlers),c.contentTypeHandlers),listenerRefiners:Object(r.a)(Object(r.a)({},l.listenerRefiners),c.listenerRefiners),optionRefiners:Object(r.a)(Object(r.a)({},l.optionRefiners),c.optionRefiners),propSetHandlers:Object(r.a)(Object(r.a)({},l.propSetHandlers),c.propSetHandlers)})}var l,c}return e&&i(e),i(t),o}(o,i)),t=o,n=i,e}}var or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(qn);function ir(e,t,n,o){if(t[e])return t[e];var i=function(e,t,n,o){var i=n[e],a=o[e],s=function(e){return i&&null!==i[e]?i[e]:a&&null!==a[e]?a[e]:null},l=s("component"),c=s("superType"),u=null;if(c){if(c===e)throw new Error("Can't have a custom view type that references itself");u=ir(c,t,n,o)}!l&&u&&(l=u.component);if(!l)return null;return{type:e,component:l,defaults:Object(r.a)(Object(r.a)({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object(r.a)(Object(r.a)({},u?u.overrides:{}),a?a.rawOptions:{})}}(e,t,n,o);return i&&(t[e]=i),i}or.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},or.prototype.baseIconClass="fc-icon",or.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"},or.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},or.prototype.iconOverrideOption="buttonIcons",or.prototype.iconOverrideCustomButtonOption="icon",or.prototype.iconOverridePrefix="fc-icon-";var ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=a(),t.handleRootEl=function(e){er(t.rootElRef,e),t.props.elRef&&er(t.props.elRef,e)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return i(ur,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return i(lr,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,o){return t.children(r,pr(t.classNames,n),e,o)}))}))},t}(Jn),sr=l(0);function lr(e){return i(sr.Consumer,null,(function(t){return i(cr,Object(r.a)({renderId:t},e))}))}var cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=a(),t}return Object(r.c)(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=Object(r.a)({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=fr(e.content,e.hookProps);return void 0===t&&(t=fr(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var o in t)if(void 0!==e[o]){n=o,r=t[o];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(Jn),ur=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&er(t.props.elRef,e)},t}return Object(r.c)(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(Object(r.a)(Object(r.a)({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(Object(r.a)(Object(r.a)({},this.props.hookProps),{el:this.rootEl}))},t}(Jn);function dr(){var e,t,n=[];return function(r,o){return t&&ae(t,o)&&r===e||(e=r,t=o,n=pr(r,o)),n}}function pr(e,t){return"function"===typeof e&&(e=e(t)),it(e)}function fr(e,t){return"function"===typeof e?e(t,i):e}var hr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=dr(),t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},o=this.normalizeClassNames(n.viewClassNames,r);return i(ur,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(o))}))},t}(Jn);function vr(e){return re(e,gr)}function gr(e){var t,n="function"===typeof e?{component:e}:e,o=n.component;return n.content&&(t=n,o=function(e){return i(Zn.Consumer,null,(function(n){return i(hr,{viewSpec:n.viewSpec},(function(o,a){var s=Object(r.a)(Object(r.a)({},e),{nextDayThreshold:n.options.nextDayThreshold});return i(ar,{hookProps:s,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:o},(function(e,t,n,r){return i("div",{className:a.concat(t).join(" "),ref:e},r)}))}))}))}),{superType:n.type,component:o,rawOptions:n}}function mr(e,t,n,o){var i=vr(e),a=vr(t.views),s=function(e,t){var n,r={};for(n in e)ir(n,r,e,t);for(n in t)ir(n,r,e,t);return r}(i,a);return re(s,(function(e){return function(e,t,n,o,i){var a=e.overrides.duration||e.defaults.duration||o.duration||n.duration,s=null,l="",c="",u={};if(a&&(s=function(e){var t=JSON.stringify(e),n=br[t];void 0===n&&(n=he(e),br[t]=n);return n}(a),s)){var d=Se(s);l=d.unit,1===d.value&&(c=l,u=t[l]?t[l].rawOptions:{})}var p=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null};return{type:e.type,component:e.component,duration:s,durationUnit:l,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object(r.a)(Object(r.a)({},u),e.overrides),buttonTextOverride:p(o)||p(n)||e.overrides.buttonText,buttonTextDefault:p(i)||e.defaults.buttonText||p(Be)||e.type}}(e,a,t,n,o)}))}var br={};var yr=function(){function e(e){this.props=e,this.nowDate=nn(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i,a,s,l,c,u,d=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(c=e,e=null!=(u=r).start&&c<u.start?u.start:null!=u.end&&c>=u.end?new Date(u.end.valueOf()-1):c),o=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),s=a=this.trimHiddenDays(a),d.showNonCurrentDates||(s=Ot(s,o.range)),s=Ot(s=this.adjustActiveRange(s),r),l=Ct(o.range,r),{validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:s,renderRange:a,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"===typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=Se(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return he({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,a=e.start,s=e.end;return r&&(be(o)<0&&(a=B(a),a=n.add(a,o)),be(i)>1&&(s=V(s=B(s),-1),s=n.add(s,i))),{start:a,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,s=this.props,l=s.dateEnv,c=s.dateAlignment;if(!c){var u=this.props.dateIncrement;c=u&&ye(u)<ye(n)?Se(u).unit:r}function d(){o=l.startOf(e,c),i=l.add(o,n),a={start:o,end:i}}return be(n)<=1&&this.isHiddenDay(o)&&(o=B(o=this.skipHiddenDays(o,t))),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,o=this.props,i=o.dateEnv,a=o.dateAlignment,s=0,l=e;a&&(l=i.startOf(l,a)),l=B(l),r=l=this.skipHiddenDays(l,t);do{r=V(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:l,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"===typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?he(1,t):e||he({days:1}))},e.prototype.refineRange=function(e){if(e){var t=function(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=yt(t)),t}return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=V(e,t);return e},e}();function Er(e,t,n){var r=t?t.activeRange:null;return Or({},function(e,t){var n=tn(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var i=0,a=r;i<a.length;i++){var s=en(a[i],t,n);s&&o.push(s)}return o}(e,n),r,n)}function Sr(e,t,n,o){var i,a,s=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Or(e,t.sources,s,o);case"REMOVE_EVENT_SOURCE":return i=e,a=t.sourceId,ne(i,(function(e){return e.sourceId!==a}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Cr(e,s,o):e;case"FETCH_EVENT_SOURCES":return wr(e,t.sourceIds?oe(t.sourceIds):jr(e,o),s,t.isRefetch||!1,o);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,o){var i,a=e[t];if(a&&n===a.latestFetchId)return Object(r.a)(Object(r.a)({},e),((i={})[t]=Object(r.a)(Object(r.a)({},a),{isFetching:!1,fetchRange:o}),i));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Dr(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Or(e,t,n,o){for(var i={},a=0,s=t;a<s.length;a++){var l=s[a];i[l.sourceId]=l}return n&&(i=Cr(i,n,o)),Object(r.a)(Object(r.a)({},e),i)}function Cr(e,t,n){return wr(e,ne(e,(function(e){return function(e,t,n){if(!Tr(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)})),t,!1,n)}function wr(e,t,n,r,o){var i={};for(var a in e){var s=e[a];t[a]?i[a]=Rr(s,n,r,o):i[a]=s}return i}function Rr(e,t,n,o){var i=o.options,a=o.calendarApi,s=o.pluginHooks.eventSourceDefs[e.sourceDefId],l=w();return s.fetch({eventSource:e,range:t,isRefetch:n,context:o},(function(n){var r=n.rawEvents;i.eventSourceSuccess&&(r=i.eventSourceSuccess.call(a,r,n.xhr)||r),e.success&&(r=e.success.call(a,r,n.xhr)||r),o.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:r})}),(function(n){console.warn(n.message,n),i.eventSourceFailure&&i.eventSourceFailure.call(a,n),e.failure&&e.failure(n),o.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})})),Object(r.a)(Object(r.a)({},e),{isFetching:!0,latestFetchId:l})}function jr(e,t){return ne(e,(function(e){return Tr(e,t)}))}function Tr(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function kr(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var a=$e(function(e,t,n){var r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;o&&(e=Mr(e,o));r&&(e=Mr(e,r));return e}(o,t,i),t,i);return r&&(a=ue(a,r,i)),rt(xr(e,t.sourceId),a)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=ue(t,n,r));return rt(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return rt(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?ue(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,o={},i={};for(var a in n)t.defs[a]||(o[a]=n[a]);for(var s in r)!t.instances[s]&&o[r[s].defId]&&(i[s]=r[s]);return{defs:o,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return xr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return ot(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Mr(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}}else n=e;return n}function xr(e,t){return ot(e,(function(e){return e.sourceId!==t}))}function Ir(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Pr(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function Nr(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Hr(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Ar(e,t,n,r,o){var i=[];return{headerToolbar:e.headerToolbar?Lr(e.headerToolbar,e,t,n,r,o,i):null,footerToolbar:e.footerToolbar?Lr(e.footerToolbar,e,t,n,r,o,i):null,viewsWithButtons:i}}function Lr(e,t,n,r,o,i,a){return re(e,(function(e){return function(e,t,n,r,o,i,a){var s="rtl"===t.direction,l=t.customButtons||{},c=n.buttonText||{},u=t.buttonText||{},d=e?e.split(" "):[];return d.map((function(e){return e.split(",").map((function(e){return"title"===e?{buttonName:e}:((t=l[e])?(d=function(e){t.click&&t.click.call(e.target,e,e.target)},(p=r.getCustomButtonIconClass(t))||(p=r.getIconClass(e,s))||(f=t.text)):(n=o[e])?(a.push(e),d=function(){i.changeView(e)},(f=n.buttonTextOverride)||(p=r.getIconClass(e,s))||(f=n.buttonTextDefault)):i[e]&&(d=function(){i[e]()},(f=c[e])||(p=r.getIconClass(e,s))||(f=u[e])),{buttonName:e,buttonClick:d,buttonIcon:p,buttonText:f});var t,n,d,p,f}))}))}(e,t,n,r,o,i,a)}))}var _r={parseMeta:function(e){return"function"===typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;!function(e,t,n){var r=!1,o=function(){r||(r=!0,t.apply(this,arguments))},i=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(o,i);a&&"function"===typeof a.then&&a.then(o,i)}(e.eventSource.meta.bind(null,Bt(e.range,r)),(function(e){t({rawEvents:e})}),n)}};function Vr(e,t,n,r,o){var i=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Ur(t)}(t,n):i=Ur(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var e=!1,t=void 0;try{t=JSON.parse(a.responseText),e=!0}catch(n){}e?r(t,a):o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function Ur(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function Wr(e,t){for(var n=ie(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],s=!1,l=0;l<n.length;l+=1)if(n[l]._raw===a){n.splice(l,1),s=!0;break}s||r.push(a)}for(var c=0,u=n;c<u.length;c++){var d=u[c];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var p=0,f=r;p<f.length;p++){var h=f[p];t.calendarApi.addEventSource(h)}}var zr=[nr({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),nr({eventSourceDefs:[_r]}),nr({eventSourceRefiners:{method:String,extraParams:Qe,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var o=e.eventSource.meta,i=function(e,t,n){var o,i,a,s,l=n.dateEnv,c=n.options,u={};o=e.startParam,null==o&&(o=c.startParam);i=e.endParam,null==i&&(i=c.endParam);a=e.timeZoneParam,null==a&&(a=c.timeZoneParam);s="function"===typeof e.extraParams?e.extraParams():e.extraParams||{};Object(r.a)(u,s),u[o]=l.formatIso(t.start),u[i]=l.formatIso(t.end),"local"!==l.timeZone&&(u[a]=l.timeZone);return u}(o,e.range,e.context);Vr(o.method,o.url,i,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}}]}),nr({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(o=e.endTime,i=e.startTime,r={years:o.years-i.years,months:o.months-i.months,days:o.days-i.days,milliseconds:o.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var o,i;return null},expand:function(e,t,n){var r=Ot(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var o=e?oe(e):null,i=B(n.start),a=n.end,s=[];for(;i<a;){var l=void 0;o&&!o[i.getUTCDay()]||(l=t?r.add(i,t):i,s.push(l)),i=V(i,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:Qe,startTime:he,endTime:he,duration:he,startRecur:Qe,endRecur:Qe}}),nr({optionChangeHandlers:{events:function(e,t){Wr([e],t)},eventSources:Wr}}),nr({isLoadingFuncs:[function(e){return Dr(e.eventSources)}],contentTypeHandlers:{html:function(){return{render:Fr}},domNodes:function(){return{render:Br}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object(r.a)(Object(r.a)({},Bt(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",sn(e,t))}}})];function Fr(e,t){e.innerHTML=t}function Br(e,t){var n=Array.prototype.slice.call(e.childNodes),r=Array.prototype.slice.call(t);if(!Re(n,r)){for(var o=0,i=r;o<i.length;o++){var a=i[o];e.appendChild(a)}n.forEach(d)}}var Gr=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),qr=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Gr(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function Yr(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,ze(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=F(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var Zr=function(){function e(e){var t=this;this.computeOptionsData=je(this._computeOptionsData),this.computeCurrentViewData=je(this._computeCurrentViewData),this.organizeRawLocales=je(vn),this.buildLocale=je(gn),this.buildPluginHooks=rr(),this.buildDateEnv=je(Xr),this.buildTheme=je(Kr),this.parseToolbars=je(Ar),this.buildViewSpecs=je(mr),this.buildDateProfileGenerator=Te(Jr),this.buildViewApi=je(Qr),this.buildViewUiProps=Te(to),this.buildEventUiBySource=je($r,ae),this.buildEventUiBases=je(eo),this.parseContextBusinessHours=Te(ro),this.buildTitle=je(Yr),this.emitter=new Wn,this.actionRunner=new qr(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},o=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=o.calendarOptions.initialView||o.pluginHooks.initialView,a=this.computeCurrentViewData(i,o,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);var s=function(e,t){var n=e.initialDate;return null!=n?t.createMarker(n):nn(e.now,t)}(o.calendarOptions,o.dateEnv),l=a.dateProfileGenerator.build(s);Rt(l.activeRange,s)||(s=l.currentRange.start);for(var c={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u=0,d=o.pluginHooks.contextInit;u<d.length;u++){(0,d[u])(c)}for(var p=Er(o.calendarOptions,l,c),f={dynamicOptionOverrides:n,currentViewType:i,currentDate:s,dateProfile:l,businessHours:this.parseContextBusinessHours(c),eventSources:p,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},h=Object(r.a)(Object(r.a)({},c),f),v=0,g=o.pluginHooks.reducers;v<g.length;v++){var m=g[v];Object(r.a)(f,m(null,null,h))}no(f,c)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?Object(r.a)(Object(r.a)({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,o=t.state,i=t.emitter,a=function(e,t){var n;return"SET_OPTION"===t.type?Object(r.a)(Object(r.a)({},e),((n={})[t.optionName]=t.rawOptionValue,n)):e}(o.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),l=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(o.currentViewType,e),c=this.computeCurrentViewData(l,s,n.optionOverrides,a);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(c.options);var u={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},d=o.currentDate,p=o.dateProfile;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(p=c.dateProfileGenerator.build(d)),d=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(d,e),p=function(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((o=r.buildPrev(e,n)).isValid)return o;break;case"NEXT":if((o=r.buildNext(e,n)).isValid)return o}return e}(p,e,d,c.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Rt(p.currentRange,d)||(d=p.currentRange.start);for(var f=Sr(o.eventSources,e,p,u),h=kr(o.eventStore,e,f,p,u),v=Dr(f)&&!c.options.progressiveEventRendering&&o.renderableEventStore||h,g=this.buildViewUiProps(u),m=g.eventUiSingleBase,b=g.selectionConfig,y=this.buildEventUiBySource(f),E={dynamicOptionOverrides:a,currentViewType:l,currentDate:d,dateProfile:p,eventSources:f,eventStore:h,renderableEventStore:v,selectionConfig:b,eventUiBases:this.buildEventUiBases(v.defs,m,y),businessHours:this.parseContextBusinessHours(u),dateSelection:Ir(o.dateSelection,e),eventSelection:Pr(o.eventSelection,e),eventDrag:Nr(o.eventDrag,e),eventResize:Hr(o.eventResize,e)},S=Object(r.a)(Object(r.a)({},u),E),D=0,O=s.pluginHooks.reducers;D<O.length;D++){var C=O[D];Object(r.a)(E,C(o,e,S))}var w=no(o,u),R=no(E,u);!w&&R?i.trigger("loading",!0):w&&!R&&i.trigger("loading",!1),this.state=E,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e=this.props,t=this.state,n=this.data,o=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,o,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object(r.a)(Object(r.a)(Object(r.a)({viewTitle:this.buildTitle(t.dateProfile,i.options,o.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o),i),t),s=o.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,c=o.calendarOptions;if(l&&l!==c)for(var u in l.timeZone!==c.timeZone&&(t.eventSources=a.eventSources=function(e,t,n){var r=t?t.activeRange:null;return wr(e,jr(e,n),r,!0,n)}(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=function(e,t,n){var o=e.defs,i=re(e.instances,(function(e){var i=o[e.defId];return i.allDay||i.recurringDef?e:Object(r.a)(Object(r.a)({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:o,instances:i}}(a.eventStore,n.dateEnv,a.dateEnv)),s)l[u]!==c[u]&&s[u](c[u],a);e.onData&&e.onData(a)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData;oo(r.extra);var l=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,s,o.defaultRangeSeparator),c=this.buildViewSpecs(i.views,e,t,a),u=this.buildTheme(o,i);return{calendarOptions:o,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:this.parseToolbars(o,e,u,c,n),localeDefaults:a,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=Ke([Be,e,t]),o=n.locales,i=n.locale,a=this.organizeRawLocales(o),s=a.map,l=this.buildLocale(i||a.defaultCode,s).options,c=this.buildPluginHooks(e.plugins||[],zr),u=this.currentCalendarOptionsRefiners=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Fe),Ge),qe),c.listenerRefiners),c.optionRefiners),d={},p=Ke([Be,l,e,t]),f={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,g=!1;for(var m in p)"plugins"!==m&&(p[m]===h[m]||Ye[m]&&m in h&&Ye[m](h[m],p[m])?f[m]=v[m]:u[m]?(f[m]=u[m](p[m]),g=!0):d[m]=h[m]);return g&&(this.currentCalendarOptionsInput=p,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:a,localeDefaults:l,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var i=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),a=i.refinedOptions;return oo(i.extra),{viewSpec:o,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,o,i){var a=Ke([Be,e.optionDefaults,n,o,e.optionOverrides,i]),s=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Fe),Ge),qe),Xe),t.listenerRefiners),t.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,p={};for(var f in a)a[f]===c[f]?l[f]=u[f]:(a[f]===this.currentCalendarOptionsInput[f]?f in this.currentCalendarOptionsRefined&&(l[f]=this.currentCalendarOptionsRefined[f]):s[f]?l[f]=s[f](a[f]):p[f]=a[f],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}},e}();function Xr(e,t,n,r,o,i,a,s){var l=gn(t||a.defaultCode,a.map);return new pn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function Kr(e,t){return new(t.themeClasses[e.themeSystem]||or)(e)}function Jr(e){return new(e.dateProfileGeneratorClass||yr)(e)}function Qr(e,t,n){return new Qt(e,t,n)}function $r(e){return re(e,(function(e){return e.ui}))}function eo(e,t,n){var r={"":t};for(var o in e){var i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function to(e){var t=e.options;return{eventUiSingleBase:lt({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"===typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:lt({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function no(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function ro(e){return En(e.options.businessHours,e)}function oo(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var io=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new Zr({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return Object(r.c)(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(o);var ao=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];this.insertEntry(o,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var o=0,i=[],a=e.span,s=t.span;return a.start<s.start&&(o+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:s.start}},i)),a.end>s.end&&(o+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:a.end}},i)),o?(n.push.apply(n,Object(r.g)([{index:e.index,thickness:e.thickness,span:uo(s,a)}],i)),o):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(po(r,t.level,t.levelCoord),po(n,t.level,[e])):po(n[t.level],t.lateral,e),this.stackCnts[lo(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,o=t.strictOrder,i=t.stackCnts,a=n.length,s=0,l=-1,c=-1,u=null,d=0,p=0;p<a;p+=1){var f=n[p];if(!o&&f>=s+e.thickness)break;for(var h=r[p],v=void 0,g=fo(h,e.span.start,so),m=g[0]+g[1];(v=h[m])&&v.span.start<e.span.end;){var b=f+v.thickness;b>s&&(s=b,u=v,l=p,c=m),b===s&&(d=Math.max(d,i[lo(v)]+1)),m+=1}}var y=0;if(u)for(y=l+1;y<a&&n[y]<s;)y+=1;var E=-1;return y<a&&n[y]===s&&(E=fo(r[y],e.span.end,so)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:u,stackCnt:d,levelCoord:s,level:y,lateral:E}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,o=[],i=0;i<n;i+=1)for(var a=e[i],s=t[i],l=0,c=a;l<c.length;l++){var u=c[l];o.push(Object(r.a)(Object(r.a)({},u),{levelCoord:s}))}return o},e}();function so(e){return e.span.end}function lo(e){return e.index+":"+e.span.start}function co(e){for(var t,n,r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],s=[],l={span:a.span,entries:[a]},c=0,u=r;c<u.length;c++){var d=u[c];uo(d.span,l.span)?l={entries:d.entries.concat(l.entries),span:(t=d.span,n=l.span,{start:Math.min(t.start,n.start),end:Math.max(t.end,n.end)})}:s.push(d)}s.push(l),r=s}return r}function uo(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function po(e,t,n){e.splice(t,0,n)}function fo(e,t,n){var r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){var i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}var ho=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function vo(e){var t;return(t={})[e.component.uid]=e,t}var go={},mo=function(){function e(e,t){this.emitter=new Wn}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),bo={},yo={startTime:he,duration:he,create:Boolean,sourceId:String};function Eo(e){var t=Je(e,yo),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}var So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return i.apply(void 0,Object(r.g)(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,o=[],a=!0,s=0,l=e;s<l.length;s++){var c=l[s],u=c.buttonName,d=c.buttonClick,p=c.buttonText,f=c.buttonIcon;if("title"===u)a=!1,o.push(i("h2",{className:"fc-toolbar-title"},t.title));else{var h=f?{"aria-label":u}:{},v=["fc-"+u+"-button",n.getClass("button")];u===t.activeButton&&v.push(n.getClass("buttonActive"));var g=!t.isTodayEnabled&&"today"===u||!t.isPrevEnabled&&"prev"===u||!t.isNextEnabled&&"next"===u;o.push(i("button",Object(r.a)({disabled:g,className:v.join(" "),onClick:d,type:"button"},h),p||(f?i("span",{className:f}):"")))}}if(o.length>1){var m=a&&n.getClass("buttonGroup")||"";return i.apply(void 0,Object(r.g)(["div",{className:m}],o))}return o[0]},t}(Jn),Do=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,a=!1,s=r.center;return r.left?(a=!0,e=r.left):e=r.start,r.right?(a=!0,t=r.right):t=r.end,i("div",{className:[o||"","fc-toolbar",a?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return i(So,{key:e,widgetGroups:t,title:n.title,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})},t}(Jn),Oo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,er(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return n?null!==t.availableWidth?o=t.availableWidth/n:a=1/n*100+"%":o=e.height||"",i("div",{ref:this.handleEl,onClick:e.onClick,className:r.join(" "),style:{height:o,paddingBottom:a}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(Jn),Co=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,o=r.context,i=Mt(t);if(i&&r.isValidSegDownEl(e.target)){var a=p(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new on(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=S(t.el,"click",".fc-event",n.handleSegClick),n}return Object(r.c)(t,e),t}(ho),wo=function(e){function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Mt(t)&&(n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))},n.removeHoverListeners=function(e,t,n,r){var o;return S(e,"mouseover",t,(function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return Object(r.c)(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=Mt(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new on(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(ho),Ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=je(Xn),t.buildViewPropTransformers=je(To),t.buildToolbarProps=je(jo),t.handleNavLinkClick=E("a[data-navlink]",t._handleNavLinkClick.bind(t)),t.headerRef=a(),t.footerRef=a(),t.interactionsStore={},t.registerInteractiveComponent=function(e,n){var r=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,n),o=[Co,wo].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=o,go[e.uid]=r},t.unregisterInteractiveComponent=function(e){for(var n=0,r=t.interactionsStore[e.uid];n<r.length;n++){r[n].destroy()}delete t.interactionsStore[e.uid],delete go[e.uid]},t.resizeRunner=new Gr((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,o=t.options,a=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,nn(t.options.now,t.dateEnv),t.viewTitle),s=!1,l="";t.isHeightAuto||t.forPrint?l="":null!=o.height?s=!0:null!=o.contentHeight?l=o.contentHeight:e=Math.max(o.aspectRatio,.5);var c=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return i(Zn.Provider,{value:c},n.headerToolbar&&i(Do,Object(r.a)({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.headerToolbar},a)),i(Oo,{liquid:s,height:l,aspectRatio:e,onClick:this.handleNavLinkClick},this.renderView(t),this.buildAppendContent()),n.footerToolbar&&i(Do,Object(r.a)({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footerToolbar},a)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype._handleNavLinkClick=function(e,t){var n=this.props,r=n.dateEnv,o=n.options,i=n.calendarApi,a=t.getAttribute("data-navlink");a=a?JSON.parse(a):{};var s=r.createMarker(a.date),l=a.type,c="day"===l?o.navLinkDayClick:"week"===l?o.navLinkWeekClick:null;"function"===typeof c?c.call(i,r.toDate(s),e):("string"===typeof c&&(l=c),i.zoomTo(s,l))},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return i.apply(void 0,Object(r.g)([s,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},a=0,s=this.buildViewPropTransformers(t.viewPropsTransformers);a<s.length;a++){var l=s[a];Object(r.a)(o,l.transform(o,e))}var c=n.component;return i(c,Object(r.a)({},o))},t}(Kn);function jo(e,t,n,r,o,i){var a=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,isTodayEnabled:a.isValid&&!Rt(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function To(e){return e.map((function(e){return new e}))}var ko=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Rn()||i.push("fc-liquid-hack"),e.children(i,o,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(Jn);var Mo="fc-col-header-cell";function xo(e){return e.text}var Io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,o=e.theme,a=e.viewApi,s=this.props,l=s.date,c=s.dateProfile,u=Mn(l,s.todayRange,null,c),d=[Mo].concat(xn(u,o)),p=t.format(l,s.dayHeaderFormat),f=n.navLinks&&!u.isDisabled&&s.colCnt>1?{"data-navlink":In(l),tabIndex:0}:{},h=Object(r.a)(Object(r.a)(Object(r.a)({date:t.toDate(l),view:a},s.extraHookProps),{text:p}),u);return i(ar,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:xo,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,o){return i("th",Object(r.a)({ref:e,className:d.concat(t).join(" "),"data-date":u.isDisabled?void 0:Oe(l),colSpan:s.colSpan},s.extraDataAttrs),i("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&i("a",Object(r.a)({ref:n,className:["fc-col-header-cell-cushion",s.isSticky?"fc-sticky":""].join(" ")},f),o)))}))},t}(Jn),Po=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,o=t.theme,a=t.viewApi,s=t.options,l=V(new Date(2592e5),e.dow),c={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=[Mo].concat(xn(c,o),e.extraClassNames||[]),d=n.format(l,e.dayHeaderFormat),p=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({date:l},c),{view:a}),e.extraHookProps),{text:d});return i(ar,{hookProps:p,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:xo,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},(function(t,n,o,a){return i("th",Object(r.a)({ref:t,className:u.concat(n).join(" "),colSpan:e.colSpan},e.extraDataAttrs),i("div",{className:"fc-scrollgrid-sync-inner"},i("a",{className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},a)))}))},t}(Jn),No=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=nn(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=U(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,he(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:Ho(r)},nextState:{nowDate:o,todayRange:Ho(o)},waitMs:i}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=Zn,t}(o);function Ho(e){var t=B(e);return{start:t,end:V(t,1)}}var Ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=je(Lo),t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,a=t.renderIntro,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return i(No,{unit:"day"},(function(e,t){return i("tr",null,a&&a("day"),n.map((function(e){return o?i(Io,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:s}):i(Po,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s})})))}))},t}(Jn);function Lo(e,t,n){return e||function(e,t){return ze(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}var _o=function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n<r;)t.isHiddenDay(n)?o.push(a+.5):(a+=1,o.push(a),i.push(n)),n=V(n,1);this.dates=i,this.indices=o,this.cnt=i.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(V(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(o=Math.floor(o))?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(z(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Vo=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var o=n.firstIndex,i=n.lastIndex,a=o;a<=i;){var s=Math.floor(a/t),l=Math.min((s+1)*t,i+1);r.push({row:s,firstCol:a%t,lastCol:(l-1)%t,isStart:n.isStart&&a===o,isEnd:n.isEnd&&l-1===i}),a=l}return r},e}(),Uo=function(){function e(){this.sliceBusinessHours=je(this._sliceBusinessHours),this.sliceDateSelection=je(this._sliceDateSpan),this.sliceEventStore=je(this._sliceEventStore),this.sliceEventDrag=je(this._sliceInteraction),this.sliceEventResize=je(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,o){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=e.eventUiBases,l=this.sliceEventStore.apply(this,Object(r.g)([e.eventStore,s,t,n],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,Object(r.g)([e.dateSelection,s,o],i)),businessHourSegs:this.sliceBusinessHours.apply(this,Object(r.g)([e.businessHours,t,n,o],i)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,Object(r.g)([e.eventDrag,s,t,n],i)),eventResize:this.sliceEventResize.apply(this,Object(r.g)([e.eventResize,s,t,n],i)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return this._sliceDateSpan.apply(this,Object(r.g)([{range:{start:e,end:U(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,o){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];return e?this._sliceEventStore.apply(this,Object(r.g)([ue(e,Wo(t,Boolean(n)),o),{},t,n],i)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){var a=jt(e,t,Wo(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;var a=jt(e.mutatedEvents,t,Wo(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];if(!e)return[];for(var a=function(e,t,n){var r=vt({editable:!1},n),o=mt(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:It(o,t),instance:$(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e,t,n),s=this.sliceRange.apply(this,Object(r.g)([e.range],o)),l=0,c=s;l<c.length;l++){c[l].eventRange=a}return s},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:V(n.start,1)});for(var o=this.sliceRange.apply(this,Object(r.g)([n],t)),i=0,a=o;i<a.length;i++){var s=a[i];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return o},e}();function Wo(e,t){var n=e.activeRange;return t?n:{start:U(n.start,e.slotMinTime.milliseconds),end:U(n.end,e.slotMaxTime.milliseconds-864e5)}}function zo(e,t,n){var r=e.mutatedEvents.instances;for(var o in r)if(!wt(t.validRange,r[o].range))return!1;return Bo({eventDrag:e},n)}function Fo(e,t,n){return!!wt(t.validRange,e.range)&&Bo({dateSelection:e},n)}function Bo(e,t){var n=t.getCurrentData(),o=Object(r.a)({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Go)(o,t)}function Go(e,t,n,o){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,o){var i=t.getCurrentData(),a=e.eventDrag,s=a.mutatedEvents,l=s.defs,c=s.instances,u=xt(l,a.isEvent?e.eventUiBases:{"":i.selectionConfig});o&&(u=re(u,o));var d=(v=e.eventStore,g=a.affectedEvents.instances,{defs:v.defs,instances:ne(v.instances,(function(e){return!g[e.instanceId]}))}),p=d.defs,f=d.instances,h=xt(p,e.eventUiBases);var v,g;for(var m in c){var b=c[m],y=b.range,E=u[b.defId],S=l[b.defId];if(!qo(E.constraints,y,d,e.businessHours,t))return!1;var D=t.options.eventOverlap,O="function"===typeof D?D:null;for(var C in f){var w=f[C];if(Ct(y,w.range)){if(!1===h[w.defId].overlap&&a.isEvent)return!1;if(!1===E.overlap)return!1;if(O&&!O(new on(t,p[w.defId],w),new on(t,S,b)))return!1}}for(var R=i.eventStore,j=0,T=E.allows;j<T.length;j++){var k=T[j],M=Object(r.a)(Object(r.a)({},n),{range:b.range,allDay:S.allDay}),x=R.defs[S.defId],I=R.instances[m],P=void 0;if(P=x?new on(t,x,I):new on(t,S),!k(Yt(M,t),P))return!1}}return!0}(e,t,n,o))&&!(e.dateSelection&&!function(e,t,n,o){var i=e.eventStore,a=i.defs,s=i.instances,l=e.dateSelection,c=l.range,u=t.getCurrentData().selectionConfig;o&&(u=o(u));if(!qo(u.constraints,c,i,e.businessHours,t))return!1;var d=t.options.selectOverlap,p="function"===typeof d?d:null;for(var f in s){var h=s[f];if(Ct(c,h.range)){if(!1===u.overlap)return!1;if(p&&!p(new on(t,a[h.defId],h),null))return!1}}for(var v=0,g=u.allows;v<g.length;v++){if(!(0,g[v])(Yt(Object(r.a)(Object(r.a)({},n),l),t),null))return!1}return!0}(e,t,n,o))}function qo(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++){if(!Xo(Yo(a[i],t,n,r,o),t))return!1}return!0}function Yo(e,t,n,r,o){return"businessHours"===e?Zo(ue(r,t,o)):"string"===typeof e?Zo(ot(n,(function(t){return t.groupId===e}))):"object"===typeof e&&e?Zo(ue(e,t,o)):[]}function Zo(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Xo(e,t){for(var n=0,r=e;n<r.length;n++){if(wt(r[n],t))return!0}return!1}var Ko=/^(visible|hidden)$/,Jo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,er(t.props.elRef,e)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),i("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(Ko.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(Ko.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return Ko.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return Ko.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(Jn),Qo=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,o=r.depths,i=r.currentMap,a=!1,s=!1;null!==e?(a=n in i,i[n]=e,o[n]=(o[n]||0)+1,s=!0):(o[n]-=1,o[n]||(delete i[n],delete t.callbackMap[n],a=!0)),t.masterCallback&&(a&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return function(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var a=e[i];void 0!==a&&o.push(a)}return o}(this.currentMap,e,t,n)},e.prototype.getAll=function(){return ie(this.currentMap)},e}();function $o(e){for(var t=0,n=0,r=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a+=1)r.push(i[a]);return r}(e,".fc-scrollgrid-shrink");n<r.length;n++){var o=r[n];t=Math.max(t,A(o))}return Math.ceil(t)}function ei(e,t){return e.liquid&&t.liquid}function ti(e,t){return Re(e,t,ae)}function ni(e,t){for(var n=[],o=0,a=e;o<a.length;o++)for(var s=a[o],l=s.span||1,c=0;c<l;c+=1)n.push(i("col",{style:{width:"shrink"===s.width?ri(t):s.width||"",minWidth:s.minWidth||""}}));return i.apply(void 0,Object(r.g)(["colgroup",{}],n))}function ri(e){return null==e?4:e}function oi(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function ii(e){return i("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ai(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function si(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var li=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=je((function(e){return e}),ti),t.renderMicroColGroup=je(ni),t.scrollerRefs=new Qo,t.scrollerElRefs=new Qo(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState(Object(r.a)({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,o=e.context,a=t.sections||[],s=this.processCols(t.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),c=function(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(t.liquid,o);t.collapsibleWidth&&c.push("fc-scrollgrid-collapsible");for(var u,d=a.length,p=0,f=[],h=[],v=[];p<d&&"header"===(u=a[p]).type;)f.push(this.renderSection(u,l)),p+=1;for(;p<d&&"body"===(u=a[p]).type;)h.push(this.renderSection(u,l)),p+=1;for(;p<d&&"footer"===(u=a[p]).type;)v.push(this.renderSection(u,l)),p+=1;var g=!Rn();return i("table",{className:c.join(" "),style:{height:t.height}},Boolean(!g&&f.length)&&i.apply(void 0,Object(r.g)(["thead",{}],f)),Boolean(!g&&h.length)&&i.apply(void 0,Object(r.g)(["tbody",{}],h)),Boolean(!g&&v.length)&&i.apply(void 0,Object(r.g)(["tfoot",{}],v)),g&&i.apply(void 0,Object(r.g)(Object(r.g)(Object(r.g)(["tbody",{}],f),h),v)))},t.prototype.renderSection=function(e,t){return"outerContent"in e?i(s,{key:e.key},e.outerContent):i("tr",{key:e.key,className:oi(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk))},t.prototype.renderChunkTd=function(e,t,n){if("outerContent"in n)return n.outerContent;var r=this.props,o=this.state,a=o.forceYScrollbars,s=o.scrollerClientWidths,l=o.scrollerClientHeights,c=function(e,t){return null!=t.maxHeight||ei(e,t)}(r,e),u=ei(r,e),d=r.liquid?a?"scroll":c?"auto":"hidden":"visible",p=e.key,f=function(e,t,n){var r=n.expandRows;return"function"===typeof t.content?t.content(n):i("table",{className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,i("tbody",{},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===s[p]?null:s[p],clientHeight:void 0!==l[p]?l[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return i("td",{ref:n.elRef},i("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},i(Jo,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:d,overflowX:r.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},f)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}(this.props.sections,t);n&&er(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return function(e){for(var t=0,n=e;t<n.length;t++)if("shrink"===n[t].width)return!0;return!1}(this.props.cols)?$o(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=An(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,o={},i={};for(var a in t.currentMap){var s=t.currentMap[a];if(s&&s.needsYScrolling()){r=!0;break}}for(var l=0,c=this.props.sections;l<c.length;l++){a=c[l].key;var u=n.currentMap[a];if(u){var d=u.parentNode;o[a]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),i[a]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}},t}(Jn);li.addStateEquality({scrollerClientWidths:ae,scrollerClientHeights:ae});var ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=a(),t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,o=r.eventRange,a=o.ui,s={event:new on(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Ht(r,t),isStartResizable:!e.disableResizing&&At(r,t),isEndResizable:!e.disableResizing&&Lt(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)},l=function(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}(s).concat(a.classNames);return i(ar,{hookProps:s,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,o){return e.children(t,l.concat(n),r,o,s)}))},t.prototype.componentDidMount=function(){kt(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&kt(this.elRef.current,t)},t}(Jn),ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,o=t.options.eventTimeFormat||e.defaultTimeFormat,a=_t(n,o,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return i(ci,{seg:n,timeText:a,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||di,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(t,o,a,s,l){return i("a",Object(r.a)({className:e.extraClassNames.concat(o).join(" "),style:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},ref:t},function(e){var t=e.eventRange.def.url;return t?{href:t}:{}}(n)),i("div",{className:"fc-event-main",ref:a,style:{color:l.textColor}},s),l.isStartResizable&&i("div",{className:"fc-event-resizer fc-event-resizer-start"}),l.isEndResizable&&i("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(Jn);function di(e){return i("div",{className:"fc-event-main-frame"},e.timeText&&i("div",{className:"fc-event-time"},e.timeText),i("div",{className:"fc-event-title-container"},i("div",{className:"fc-event-title fc-sticky"},e.event.title||i(s,null,"\xa0"))))}var pi=function(e){return i(Zn.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return i(ar,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},fi=ze({day:"numeric"}),hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=vi({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return i(lr,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(Jn);function vi(e){var t=e.date,n=e.dateEnv,o=Mn(t,e.todayRange,null,e.dateProfile);return Object(r.a)(Object(r.a)(Object(r.a)({date:n.toDate(t),view:e.viewApi},o),{dayNumberText:e.showDayNumber?n.format(t,fi):""}),e.extraProps)}var gi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Te(vi),t.normalizeClassNames=dr(),t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),o=xn(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),a=r.isDisabled?{}:{"data-date":Oe(e.date)};return i(ur,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,o,a,r.isDisabled)}))},t}(Jn);function mi(e){return i("div",{className:"fc-"+e})}var bi=function(e){return i(ci,{defaultContent:yi,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return i("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function yi(e){return e.event.title&&i("div",{className:"fc-event-title"},e.event.title)}var Ei=function(e){return i(Zn.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,o=e.date,a=r.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(o),l=n.format(o,a);return i(ar,{hookProps:{num:s,text:l,date:o},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:Si,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function Si(e){return e.text}var Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&er(t.props.elRef,e)},t.handleDocumentMousedown=function(e){var n=m(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.context.theme,t=this.props,n=["fc-popover",e.getClass("popover")].concat(t.extraClassNames||[]);return c(i("div",Object(r.a)({className:n.join(" ")},t.extraAttrs,{ref:this.handleRootEl}),i("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},i("span",{className:"fc-popover-title"},t.title),i("span",{className:"fc-popover-close "+e.getIconClass("close"),onClick:this.handleCloseClick})),i("div",{className:"fc-popover-body "+e.getClass("popoverContent")},t.children)),t.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMousedown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMousedown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,o=this.rootEl,i=function(e){for(var t=Un(e),n=e.getBoundingClientRect(),r=0,o=t;r<o.length;r++){var i=Dn(n,o[r].getBoundingClientRect());if(!i)return null;n=i}return n}(n);if(i){var a=o.getBoundingClientRect(),s=r?p(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-a.width:i.left;s=Math.max(s,10),l=Math.min(l,document.documentElement.clientWidth-10-a.width),l=Math.max(l,10);var c=o.offsetParent.getBoundingClientRect();v(o,{top:s-c.top,left:l-c.left})}},t}(Jn),Oi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,o=r.startDate,a=r.todayRange,s=r.dateProfile,l=n.format(o,t.dayPopoverFormat);return i(gi,{date:o,dateProfile:s,todayRange:a,elRef:this.handleRootEl},(function(e,t,n){return i(Di,{elRef:e,title:l,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},i(hi,{date:o,dateProfile:s,todayRange:a},(function(e,t){return t&&i("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,o){var i=this.rootEl,a=this.props;return e>=0&&e<n&&t>=0&&t<o?{dateProfile:a.dateProfile,dateSpan:Object(r.a)({allDay:!0,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:o},layer:1}:null},t}(tr),Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=a(),t.state={isPopoverOpen:!1},t.handleClick=function(e){var n=t,r=n.props,o=n.context,i=o.options.moreLinkClick,a=Ri(r).start;function s(e){var t=e.eventRange,n=t.def,r=t.instance,i=t.range;return{event:new on(o,n,r),start:o.dateEnv.toDate(i.start),end:o.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof i&&(i=i({date:a,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(s),hiddenSegs:r.hiddenSegs.map(s),jsEvent:e,view:o.viewApi})),i&&"popover"!==i?"string"===typeof i&&o.calendarApi.zoomTo(a,i):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this,t=this.props;return i(Zn.Consumer,null,(function(n){var r=n.viewApi,o=n.options,a=n.calendarApi,l=o.moreLinkText,c=t.moreCnt,u=Ri(t),d={num:c,shortText:"+"+c,text:"function"===typeof l?l.call(a,c):"+"+c+" "+l,view:r};return i(s,null,Boolean(t.moreCnt)&&i(ar,{elRef:e.linkElRef,hookProps:d,classNames:o.moreLinkClassNames,content:o.moreLinkContent,defaultContent:t.defaultContent||wi,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},(function(n,r,o,i){return t.children(n,["fc-more-link"].concat(r),o,i,e.handleClick)})),e.state.isPopoverOpen&&i(Oi,{startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))}))},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=p(this.linkElRef.current,".fc-view-harness"))},t}(Jn);function wi(e){return e.text}function Ri(e){if(e.allDayDate)return{start:e.allDayDate,end:V(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:ji(n),end:(t=n,t.reduce(ki).eventRange.range.end)}}function ji(e){return e.reduce(Ti).eventRange.range.start}function Ti(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function ki(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}},1312:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(20),o=n(0),i=n.n(o),a=(n(553),n(1056)),s=(n(1167),n(2),n(7),n(1072)),l=n(43),c=n(1216),u=(n(1215),n(550)),d=(n(64),n(1217)),p=(n(88),n(34),n(164),n(196),n(197),n(1255)),f=n(1172),h=n(1117),v=n(1119),g=n(193),m=function(e){return"date"===e||"year"===e?"date":"time"},b=Object(s.a)((function(e){var t="light"===e.palette.type?e.palette.primary.main:e.palette.background.default;return{tabs:{color:e.palette.getContrastText(t),backgroundColor:t}}}),{name:"MuiPickerDTTabs"}),y=function(e){var t=e.view,n=e.onChange,r=e.dateRangeIcon,i=e.timeIcon,a=b(),s="light"===Object(l.a)().palette.type?"secondary":"primary";return Object(o.createElement)(g.a,null,Object(o.createElement)(v.a,{variant:"fullWidth",value:m(t),onChange:function(e,r){r!==m(t)&&n("date"===r?"date":"hours")},className:a.tabs,indicatorColor:s},Object(o.createElement)(h.a,{value:"date",icon:Object(o.createElement)(o.Fragment,null,r)}),Object(o.createElement)(h.a,{value:"time",icon:Object(o.createElement)(o.Fragment,null,i)})))};y.defaultProps={dateRangeIcon:Object(o.createElement)((function(e){return i.a.createElement(u.a,e,i.a.createElement("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),i.a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null),timeIcon:Object(o.createElement)((function(e){return i.a.createElement(u.a,e,i.a.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),i.a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),i.a.createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}))}),null)};var E=Object(s.a)((function(e){return{toolbar:{paddingLeft:16,paddingRight:16,justifyContent:"space-around"},separator:{margin:"0 4px 0 2px",cursor:"default"}}}),{name:"MuiPickerDTToolbar"}),S=function(e){var t=e.date,n=e.openView,r=e.setOpenView,i=e.ampm,s=e.hideTabs,u=e.dateRangeIcon,d=e.timeIcon,h=e.onChange,v=Object(a.b)(),g=E(),m=!s&&"undefined"!==typeof window&&window.innerHeight>667,b=Object(p.b)(t,i,h),S=b.meridiemMode,D=b.handleMeridiemChange,O="rtl"===Object(l.a)().direction;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.b,{isLandscape:!1,className:g.toolbar},Object(o.createElement)(f.a,{container:!0,justify:"center",wrap:"nowrap"},Object(o.createElement)(f.a,{item:!0,container:!0,xs:5,justify:"flex-start",direction:"column"},Object(o.createElement)("div",null,Object(o.createElement)(c.c,{variant:"subtitle1",onClick:function(){return r("year")},selected:"year"===n,label:v.getYearText(t)})),Object(o.createElement)("div",null,Object(o.createElement)(c.c,{variant:"h4",onClick:function(){return r("date")},selected:"date"===n,label:v.getDateTimePickerHeaderText(t)}))),Object(o.createElement)(f.a,{item:!0,container:!0,xs:6,justify:"center",alignItems:"flex-end",direction:O?"row-reverse":"row"},Object(o.createElement)(c.c,{variant:"h3",onClick:function(){return r("hours")},selected:"hours"===n,label:v.getHourText(t,i)}),Object(o.createElement)(c.f,{variant:"h3",label:":",className:g.separator}),Object(o.createElement)(c.c,{variant:"h3",onClick:function(){return r("minutes")},selected:"minutes"===n,label:v.getMinuteText(t)})),i&&Object(o.createElement)(f.a,{item:!0,container:!0,xs:1,direction:"column",justify:"flex-end"},Object(o.createElement)(c.c,{variant:"subtitle1",selected:"am"===S,label:v.getMeridiemText("am"),onClick:function(){return D("am")}}),Object(o.createElement)(c.c,{variant:"subtitle1",selected:"pm"===S,label:v.getMeridiemText("pm"),onClick:function(){return D("pm")}})))),m&&Object(o.createElement)(y,{dateRangeIcon:u,timeIcon:d,view:n,onChange:r}))};function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var O=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},d.b,{wider:!0,orientation:"portrait",openTo:"date",views:["year","date","hours","minutes"]});function C(e){var t=Object(a.b)();if("portrait"!==e.orientation)throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return{getDefaultFormat:function(){return Object(c.h)(e.format,e.ampm,{"12h":t.dateTime12hFormat,"24h":t.dateTime24hFormat})}}}var w=Object(c.g)({useOptions:C,Input:c.d,useState:c.i,DefaultToolbarComponent:S}),R=Object(c.g)({useOptions:C,Input:c.a,useState:c.e,DefaultToolbarComponent:S,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});w.defaultProps=O,R.defaultProps=O},1381:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));n(1488);var r=n(1253),o=n(4),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=Object(r.mb)(),t}return Object(o.c)(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this.props,o=this.context,i=[],a=Object(r.Hb)(o.options);return e&&i.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),i.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),Object(r.hb)(r.I,{viewSpec:o.viewSpec},(function(e,t){return Object(r.hb)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Object(r.hb)(r.D,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}))},t.prototype.renderHScrollLayout=function(e,t,n,o){var i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");var a=this.props,s=this.context,l=!a.forPrint&&Object(r.Hb)(s.options),c=!a.forPrint&&Object(r.Gb)(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),c&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:r.hc}]}),Object(r.hb)(r.I,{viewSpec:s.viewSpec},(function(e,t){return Object(r.hb)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Object(r.hb)(i,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:o}]}],sections:u}))}))},t}(r.h);function a(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.row].push(a)}return n}function s(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.firstCol].push(a)}return n}function l(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.row].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context.options.navLinks?{"data-navlink":Object(r.Y)(e.date),tabIndex:0}:{};return Object(r.hb)(r.j,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:u},(function(n,i){return(i||e.forceDayTop)&&Object(r.hb)("div",{className:"fc-daygrid-day-top",ref:n},Object(r.hb)("a",Object(o.a)({className:"fc-daygrid-day-number"},t),i||Object(r.hb)(r.t,null,"\xa0")))}))},t}(r.b);function u(e){return e.dayNumberText}var d=Object(r.kb)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function p(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props;return Object(r.hb)(r.G,Object(o.a)({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:d,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(r.b),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options.eventTimeFormat||d,i=Object(r.Z)(e.seg,n,t,!0,e.defaultDisplayEventEnd);return Object(r.hb)(r.s,{seg:e.seg,timeText:i,defaultContent:v,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(t,n,i,a){return Object(r.hb)("a",Object(o.a)({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(n).join(" "),ref:t},function(e){var t=e.eventRange.def.url;return t?{href:t}:{}}(e.seg)),a)}))},t}(r.b);function v(e){return Object(r.hb)(r.t,null,Object(r.hb)("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&Object(r.hb)("div",{className:"fc-event-time"},e.timeText),Object(r.hb)("div",{className:"fc-event-title"},e.event.title||Object(r.hb)(r.t,null,"\xa0")))}var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=Object(r.Vb)(m),t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,i=t.invisibleSegs;return Object(r.hb)(r.v,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:i,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return Object(r.hb)(r.t,null,n.map((function(n){var i=n.eventRange.instance.instanceId;return Object(r.hb)("div",{className:"fc-daygrid-event-harness",key:i,style:{visibility:t[i]?"hidden":""}},p(n)?Object(r.hb)(h,Object(o.a)({seg:n,isDragging:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},Object(r.Fb)(n,e.todayRange))):Object(r.hb)(f,Object(o.a)({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},Object(r.Fb)(n,e.todayRange))))})))}},(function(e,t,n,o,i){return Object(r.hb)("a",{ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),onClick:i},o)}))},t}(r.b);function m(e){for(var t=[],n=[],r=0,o=e;r<o.length;r++){var i=o[r];t.push(i.seg),i.isVisible||n.push(i.seg)}return{allSegs:t,invisibleSegs:n}}var b=Object(r.kb)({week:"narrow"}),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Object(r.mb)(),t.handleRootEl=function(e){Object(r.ic)(t.rootElRef,e),Object(r.ic)(t.props.elRef,e)},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,i=e.rootElRef,a=n.options,s=t.date,l=t.dateProfile,u=a.navLinks?{"data-navlink":Object(r.Y)(s,"week"),tabIndex:0}:{};return Object(r.hb)(r.k,{date:s,dateProfile:l,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraHookProps:t.extraHookProps,elRef:this.handleRootEl},(function(e,n,a,d){return Object(r.hb)("td",Object(o.a)({ref:e,className:["fc-daygrid-day"].concat(n,t.extraClassNames||[]).join(" ")},a,t.extraDataAttrs),Object(r.hb)("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&Object(r.hb)(r.J,{date:s,defaultFormat:b},(function(e,t,n,i){return Object(r.hb)("a",Object(o.a)({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},u),i)})),!d&&Object(r.hb)(c,{date:s,dateProfile:l,showDayNumber:t.showDayNumber,forceDayTop:t.forceDayTop,todayRange:t.todayRange,extraHookProps:t.extraHookProps}),Object(r.hb)("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,Object(r.hb)("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},Object(r.hb)(g,{allDayDate:s,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:i,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),Object(r.hb)("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}))},t}(r.h);function E(e,t,n,r,o,i,a){var s=new D;s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=i,s.hiddenConsumes=!0):"number"===typeof t?s.maxStackCnt=t:"number"===typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var l=[],c=[],u=0;u<e.length;u+=1){var d=o[(j=e[u]).eventRange.instance.instanceId];null!=d?l.push({index:u,thickness:d,span:{start:j.firstCol,end:j.lastCol+1}}):c.push(j)}for(var p=s.addSegs(l),f=function(e,t,n){for(var r=function(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var o=0,i=e;o<i.length;o++){var a=i[o];for(r=a.span.start;r<a.span.end;r+=1)n[r].push(a)}return n}(e,n.length),o=[],i=[],a=[],s=0;s<n.length;s+=1){for(var l=r[s],c=[],u=0,d=0,p=0,f=l;p<f.length;p++){var h=t[(b=f[p]).index];c.push({seg:S(h,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:b.levelCoord,marginTop:b.levelCoord-u}),u=b.levelCoord+b.thickness}var v=[];u=0,d=0;for(var g=0,m=l;g<m.length;g++){h=t[(b=m[g]).index];var b,y=b.span.end-b.span.start>1,E=b.span.start===s;d+=b.levelCoord-u,u=b.levelCoord+b.thickness,y?(d+=b.thickness,E&&v.push({seg:S(h,b.span.start,b.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:b.levelCoord,marginTop:0})):E&&(v.push({seg:S(h,b.span.start,b.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:b.levelCoord,marginTop:d}),d=0)}o.push(c),i.push(v),a.push(d)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:a}}(s.toRects(),e,a),h=f.singleColPlacements,v=f.multiColPlacements,g=f.leftoverMargins,m=[],b=[],y=0,E=c;y<E.length;y++){v[(j=E[y]).firstCol].push({seg:j,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var O=j.firstCol;O<=j.lastCol;O+=1)h[O].push({seg:S(j,O,O+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(O=0;O<a.length;O+=1)m.push(0);for(var C=0,w=p;C<w.length;C++){var R=w[C],j=e[R.index],T=R.span;v[T.start].push({seg:S(j,T.start,T.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(O=T.start;O<T.end;O+=1)m[O]+=1,h[O].push({seg:S(j,O,O+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(O=0;O<a.length;O+=1)b.push(g[O]);return{singleColPlacements:h,multiColPlacements:v,moreCnts:m,moreMarginTops:b}}function S(e,t,n,i){if(e.firstCol===t&&e.lastCol===n-1)return e;var a=e.eventRange,s=a.range,l=Object(r.Nb)(s,{start:i[t].date,end:Object(r.L)(i[n-1].date,1)});return Object(o.a)(Object(o.a)({},e),{firstCol:t,lastCol:n-1,eventRange:{def:a.def,ui:Object(o.a)(Object(o.a)({},a.ui),{durationEditable:!1}),instance:a.instance,range:l},isStart:e.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&l.end.valueOf()===s.end.valueOf()})}var D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return Object(o.c)(t,e),t.prototype.addSegs=function(t){for(var n=this,o=e.prototype.addSegs.call(this,t),i=this.entriesByLevel,a=function(e){return!n.forceHidden[Object(r.U)(e)]},s=0;s<i.length;s+=1)i[s]=i[s].filter(a);return o},t.prototype.handleInvalidInsertion=function(t,n,i){var a=this.entriesByLevel,s=this.forceHidden,l=t.touchingEntry,c=t.touchingLevel,u=t.touchingLateral;if(this.hiddenConsumes&&l){var d=Object(r.U)(l);if(!s[d])if(this.allowReslicing){var p=Object(o.a)(Object(o.a)({},l),{span:Object(r.Pb)(l.span,n.span)});s[Object(r.U)(p)]=!0,a[c][u]=p,this.splitEntry(l,n,i)}else s[d]=!0,i.push(l)}return e.prototype.handleInvalidInsertion.call(this,t,n,i)},t}(r.C),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new r.z,t.frameElRefs=new r.z,t.fgElRefs=new r.z,t.segHarnessRefs=new r.z,t.rootElRef=Object(r.mb)(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,o=t.state,i=t.context.options,a=n.cells.length,l=s(n.businessHourSegs,a),c=s(n.bgEventSegs,a),u=s(this.getHighlightSegs(),a),d=s(this.getMirrorSegs(),a),p=E(Object(r.jc)(n.fgEventSegs,i.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,i.eventOrderStrict,o.eventInstanceHeights,o.maxContentHeight,n.cells),f=p.singleColPlacements,h=p.multiColPlacements,v=p.moreCnts,g=p.moreMarginTops,m=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return Object(r.hb)("tr",{ref:this.rootElRef},n.renderIntro&&n.renderIntro(),n.cells.map((function(t,o){var i=e.renderFgSegs(o,n.forPrint?f[o]:h[o],n.todayRange,m),a=e.renderFgSegs(o,function(e,t){if(!e.length)return[];var n=function(e){for(var t={},n=0,r=e;n<r.length;n++)for(var o=0,i=r[n];o<i.length;o++){var a=i[o];t[a.seg.eventRange.instance.instanceId]=a.absoluteTop}return t}(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}}))}(d[o],h),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return Object(r.hb)(y,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===o,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:v[o],moreMarginTop:g[o],singlePlacements:f[o],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:Object(r.hb)(r.t,null,Object(r.hb)(r.t,null,i),Object(r.hb)(r.t,null,a)),bgContent:Object(r.hb)(r.t,null,e.renderFillSegs(u[o],"highlight"),e.renderFillSegs(l[o],"non-business"),e.renderFillSegs(c[o],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!Object(r.Tb)(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,i,a,s,l){var c=this.context,u=this.props.eventSelection,d=this.state.framePositions,v=1===this.props.cells.length,g=a||s||l,m=[];if(d)for(var b=0,y=t;b<y.length;b++){var E=y[b],S=E.seg,D=S.eventRange.instance.instanceId,O=D+":"+e,C=E.isVisible&&!i[D],w=E.isAbsolute,R="",j="";w&&(c.isRtl?(j=0,R=d.lefts[S.lastCol]-d.lefts[S.firstCol]):(R=0,j=d.rights[S.firstCol]-d.rights[S.lastCol])),m.push(Object(r.hb)("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:O,ref:g?null:this.segHarnessRefs.createRef(O),style:{visibility:C?"":"hidden",marginTop:w?"":E.marginTop,top:w?E.absoluteTop:"",left:R,right:j}},p(S)?Object(r.hb)(h,Object(o.a)({seg:S,isDragging:a,isSelected:D===u,defaultDisplayEventEnd:v},Object(r.Fb)(S,n))):Object(r.hb)(f,Object(o.a)({seg:S,isDragging:a,isResizing:s,isDateSelecting:l,isSelected:D===u,defaultDisplayEventEnd:v},Object(r.Fb)(S,n)))))}return m},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,i=this.props.todayRange,a=this.state.framePositions,s=[];if(a)for(var l=0,c=e;l<c.length;l++){var u=c[l],d=n?{right:0,left:a.lefts[u.lastCol]-a.lefts[u.firstCol]}:{left:0,right:a.rights[u.firstCol]-a.rights[u.lastCol]};s.push(Object(r.hb)("div",{key:Object(r.W)(u.eventRange),className:"fc-daygrid-bg-harness",style:d},"bg-event"===t?Object(r.hb)(r.c,Object(o.a)({seg:u},Object(r.Fb)(u,i))):Object(r.gc)(t)))}return r.hb.apply(void 0,Object(o.g)([r.t,{}],s))},t.prototype.updateSizing=function(e){var t=this.props,n=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var o=t.cells.map((function(e){return n.currentMap[e.key]}));if(o.length){var i=this.rootElRef.current;this.setState({framePositions:new r.y(i,o,!0,!1)})}}var a=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.setState({eventInstanceHeights:this.queryEventInstanceHeights(),maxContentHeight:a?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height),o=n.split(":")[0];t[o]=Math.max(t[o]||0,r)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},t}(r.h);O.addStateEquality({eventInstanceHeights:r.Tb});var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=Object(r.Vb)(a),t.splitBgEventSegs=Object(r.Vb)(a),t.splitFgEventSegs=Object(r.Vb)(a),t.splitDateSelectionSegs=Object(r.Vb)(a),t.splitEventDrag=Object(r.Vb)(l),t.splitEventResize=Object(r.Vb)(l),t.rowRefs=new r.z,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,o=t.dayMaxEventRows,i=t.dayMaxEvents,a=t.expandRows,s=t.cells.length,l=this.splitBusinessHourSegs(t.businessHourSegs,s),c=this.splitBgEventSegs(t.bgEventSegs,s),u=this.splitFgEventSegs(t.fgEventSegs,s),d=this.splitDateSelectionSegs(t.dateSelectionSegs,s),p=this.splitEventDrag(t.eventDrag,s),f=this.splitEventResize(t.eventResize,s),h=!0===i||!0===o;h&&!a&&(h=!1,o=null,i=null);var v=["fc-daygrid-body",h?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",a?"":"fc-daygrid-body-natural"];return Object(r.hb)("div",{className:v.join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Object(r.hb)(r.x,{unit:"day"},(function(h,v){return Object(r.hb)(r.t,null,Object(r.hb)("table",{className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:a?t.clientHeight:""}},t.colGroupNode,Object(r.hb)("tbody",null,t.cells.map((function(a,h){return Object(r.hb)(O,{ref:e.rowRefs.createRef(h),key:a.length?a[0].date.toISOString():h,showDayNumbers:s>1,showWeekNumbers:t.showWeekNumbers,todayRange:v,dateProfile:n,cells:a,renderIntro:t.renderRowIntro,businessHourSegs:l[h],eventSelection:t.eventSelection,bgEventSegs:c[h].filter(w),fgEventSegs:u[h],dateSelectionSegs:d[h],eventDrag:p[h],eventResize:f[h],dayMaxEvents:i,dayMaxEventRows:o,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new r.y(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new r.y(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(e),a=r.topToIndex(t);if(null!=a&&null!=i){var s=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object(o.a)({range:this.getCellRange(a,i),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:Object(r.L)(n,1)}},t}(r.h);function w(e){return e.eventRange.def.allDay}var R=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return Object(o.c)(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(r.E),j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new R,t.tableRef=Object(r.mb)(),t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return Object(r.hb)(C,Object(o.a)({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(r.h),T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=Object(r.Vb)(k),t.headerRef=Object(r.mb)(),t.tableRef=Object(r.mb)(),t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,o=t.dateProfileGenerator,i=this.props,a=this.buildDayTableModel(i.dateProfile,o),s=n.dayHeaders&&Object(r.hb)(r.l,{ref:this.headerRef,dateProfile:i.dateProfile,dates:a.headerDates,datesRepDistinctDays:1===a.rowCnt}),l=function(t){return Object(r.hb)(j,{ref:e.tableRef,dateProfile:i.dateProfile,dayTableModel:a,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(s,l,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(s,l)},t}(i);function k(e,t){var n=new r.m(e.renderRange,t);return new r.n(n,/year|month|week/.test(e.currentRangeUnit))}var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.buildRenderRange=function(t,n,o){var i,a=this.props.dateEnv,s=e.prototype.buildRenderRange.call(this,t,n,o),l=s.start,c=s.end;if(/^(year|month)$/.test(n)&&(l=a.startOfWeek(l),(i=a.startOfWeek(c)).valueOf()!==c.valueOf()&&(c=Object(r.N)(i,1))),this.props.monthMode&&this.props.fixedWeekCount){var u=Math.ceil(Object(r.qb)(l,c));c=Object(r.N)(c,6-u)}return{start:l,end:c}},t}(r.i),x=Object(r.lb)({initialView:"dayGridMonth",views:{dayGrid:{component:T,dateProfileGeneratorClass:M},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});t.b=x},1487:function(e,t,n){},1488:function(e,t,n){},1489:function(e,t,n){"use strict";n(1490);var r=n(1253),o=n(4),i=n(1381),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?Object(r.Jb)(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(r.F),s=Object(r.kb)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function l(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Object(r.hb)(r.H.Consumer,null,(function(n){if(!e.isLabeled)return Object(r.hb)("td",{className:t.join(" "),"data-time":e.isoTimeStr});var o=n.dateEnv,i=n.options,a=n.viewApi,l=null==i.slotLabelFormat?s:Array.isArray(i.slotLabelFormat)?Object(r.kb)(i.slotLabelFormat[0]):Object(r.kb)(i.slotLabelFormat),u={level:0,time:e.time,date:o.toDate(e.date),view:a,text:o.format(e.date,l)};return Object(r.hb)(r.A,{hookProps:u,classNames:i.slotLabelClassNames,content:i.slotLabelContent,defaultContent:c,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(n,o,i,a){return Object(r.hb)("td",{ref:n,className:t.concat(o).join(" "),"data-time":e.isoTimeStr},Object(r.hb)("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Object(r.hb)("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:i},a)))}))}))}function c(e){return e.text}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return Object(r.hb)("tr",{key:e.key},Object(r.hb)(l,Object(o.a)({},e)))}))},t}(r.b),d=Object(r.kb)({week:"short"}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new a,t.headerElRef=Object(r.mb)(),t.rootElRef=Object(r.mb)(),t.scrollerElRef=Object(r.mb)(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var i=t.context.options,a=t.props.dateProfile.renderRange,s=Object(r.ob)(a.start,a.end),l=i.navLinks&&1===s?{"data-navlink":Object(r.Y)(a.start,"week"),tabIndex:0}:{};return i.weekNumbers&&"day"===e?Object(r.hb)(r.J,{date:a.start,defaultFormat:d},(function(e,t,i,a){return Object(r.hb)("th",{ref:e,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},Object(r.hb)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},Object(r.hb)("a",Object(o.a)({ref:i,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},l),a)))})):Object(r.hb)("th",{className:"fc-timegrid-axis"},Object(r.hb)("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,o=n.options,i=n.viewApi,a={text:o.allDayText,view:i};return Object(r.hb)(r.A,{hookProps:a,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:f,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},(function(t,n,o,i){return Object(r.hb)("td",{ref:t,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Object(r.hb)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},Object(r.hb)("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:o},i)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return Object(o.c)(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var o=this.context,i=this.props,a=[],s=Object(r.Hb)(o.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:Object(r.hb)("tr",{className:"fc-scrollgrid-section"},Object(r.hb)("td",{className:"fc-timegrid-divider "+o.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(o.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Object(r.hb)(r.I,{viewSpec:o.viewSpec,elRef:this.rootElRef},(function(e,t){return Object(r.hb)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Object(r.hb)(r.D,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:a}))}))},t.prototype.renderHScrollLayout=function(e,t,n,o,i,a,s){var l=this,c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");var d=this.context,p=this.props,f=!p.forPrint&&Object(r.Hb)(d.options),h=!p.forPrint&&Object(r.Gb)(d.options),v=[];e&&v.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Object(r.hb)("tr",null,l.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(v.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Object(r.hb)("tr",null,l.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),v.push({key:"all-day-divider",type:"body",outerContent:Object(r.hb)("tr",{className:"fc-scrollgrid-section"},Object(r.hb)("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));var g=d.options.nowIndicator;return v.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(d.options.expandRows),chunks:[{key:"axis",content:function(e){return Object(r.hb)("div",{className:"fc-timegrid-axis-chunk"},Object(r.hb)("table",{style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,Object(r.hb)("tbody",null,Object(r.hb)(u,{slatMetas:a}))),Object(r.hb)("div",{className:"fc-timegrid-now-indicator-container"},Object(r.hb)(r.x,{unit:g?"minute":"day"},(function(e){var t=g&&s&&s.safeComputeTop(e);return"number"===typeof t?Object(r.hb)(r.w,{isAxis:!0,date:e},(function(e,n,o,i){return Object(r.hb)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},i)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),h&&v.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:r.hc},{key:"cols",content:r.hc}]}),Object(r.hb)(r.I,{viewSpec:d.viewSpec,elRef:this.rootElRef},(function(e,t){return Object(r.hb)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Object(r.hb)(c,{liquid:!p.isHeightAuto&&!p.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:i}]}],sections:v}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},t}(r.h);function f(e){return e.text}var h=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(Object(r.cc)(t.currentRange,e)){var n=Object(r.kc)(e),o=e.valueOf()-n.valueOf();if(o>=Object(r.S)(t.slotMinTime)&&o<Object(r.S)(t.slotMaxTime))return this.computeTimeTop(Object(r.gb)(o))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=Object(r.kc)(e)),this.computeTimeTop(Object(r.gb)(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,o=this.positions,i=this.dateProfile,a=o.els.length,s=(e.milliseconds-Object(r.S)(i.slotMinTime))/Object(r.S)(this.slotDuration);return s=Math.max(0,s),s=Math.min(a,s),t=Math.floor(s),n=s-(t=Math.min(t,a-1)),o.tops[t]+o.getHeight(t)*n},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,i=e.slatElRefs;return Object(r.hb)("tbody",null,e.slatMetas.map((function(a,s){var c={time:a.time,date:t.dateEnv.toDate(a.date),view:t.viewApi},u=["fc-timegrid-slot","fc-timegrid-slot-lane",a.isLabeled?"":"fc-timegrid-slot-minor"];return Object(r.hb)("tr",{key:a.key,ref:i.createRef(a.key)},e.axis&&Object(r.hb)(l,Object(o.a)({},a)),Object(r.hb)(r.A,{hookProps:c,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},(function(e,t,n,o){return Object(r.hb)("td",{ref:e,className:u.concat(t).join(" "),"data-time":a.isoTimeStr},o)})))})))},t}(r.b),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Object(r.mb)(),t.slatElRefs=new r.z,t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return Object(r.hb)("div",{className:"fc-timegrid-slots",ref:this.rootElRef},Object(r.hb)("table",{className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,Object(r.hb)(v,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&(this.rootElRef.current.offsetHeight&&n.onCoords(new h(new r.y(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map((function(t){return e[t.key]}))),!1,!0),this.props.dateProfile,t.options.slotDuration)))},t}(r.b);function m(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function b(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.col].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Object(r.mb)(),t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.props;return Object(r.hb)(r.v,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:E,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return x(t.hiddenSegs,t)}},(function(n,o,i,a,s){return Object(r.hb)("a",{ref:function(t){Object(r.ic)(n,t),Object(r.ic)(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(o).join(" "),style:{top:t.top,bottom:t.bottom},onClick:s},Object(r.hb)("div",{ref:i,className:"fc-timegrid-more-link-inner fc-sticky"},a))}))},t}(r.b);function E(e){return e.shortText}function S(e,t,n){var i=new r.C;null!=t&&(i.strictOrder=t),null!=n&&(i.maxStackCnt=n);var a=i.addSegs(e),s=Object(r.Ib)(a),l=function(e){var t=e.entriesByLevel,n=w((function(e,t){return e+":"+t}),(function(i,a){var s=function(e,t,n){for(var o=e.levelCoords,i=e.entriesByLevel,a=i[t][n],s=o[t]+a.thickness,l=o.length,c=t;c<l&&o[c]<s;c+=1);for(;c<l;c+=1){for(var u=i[c],d=void 0,p=Object(r.T)(u,a.span.start,r.Bb),f=p[0]+p[1],h=f;(d=u[h])&&d.span.start<a.span.end;)h+=1;if(f<h)return{level:c,lateralStart:f,lateralEnd:h}}return null}(e,i,a),l=D(s,n),c=t[i][a];return[Object(o.a)(Object(o.a)({},c),{nextLevelNodes:l[0]}),c.thickness+l[1]]}));return D(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(i);return{segRects:function(e){var t=[],n=w((function(e,t,n){return Object(r.U)(e)}),(function(e,n,r){var a=Object(o.a)(Object(o.a)({},e),{levelCoord:n,stackDepth:r,stackForward:0});return t.push(a),a.stackForward=i(e.nextLevelNodes,n+e.thickness,r+1)+1}));function i(e,t,r){for(var o=0,i=0,a=e;i<a.length;i++){var s=a[i];o=Math.max(n(s,t,r),o)}return o}return i(e,0,0),t}(l=function(e,t){var n=w((function(e,t,n){return Object(r.U)(e)}),(function(e,r,i){var a,s=e.nextLevelNodes,l=e.thickness,c=l+i,u=l/c,d=[];if(s.length)for(var p=0,f=s;p<f.length;p++){var h=f[p];if(void 0===a){a=(v=n(h,r,c))[0],d.push(v[1])}else{var v=n(h,a,0);d.push(v[1])}}else a=t;var g=(a-r)*u;return[a-g,Object(o.a)(Object(o.a)({},e),{thickness:g,nextLevelNodes:d})]}));return e.map((function(e){return n(e,0,0)[1]}))}(l,1)),hiddenGroups:s}}function D(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,o=e.lateralEnd,i=r,a=[];i<o;)a.push(t(n,i)),i+=1;return a.sort(O),[a.map(C),a[0][1]]}function O(e,t){return t[1]-e[1]}function C(e){return e[0]}function w(e,t){var n={};return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=e.apply(void 0,r);return i in n?n[i]:n[i]=t.apply(void 0,r)}}function R(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=0);var o=[];if(n)for(var i=0;i<e.length;i+=1){var a=e[i],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));o.push({start:Math.round(s),end:Math.round(l)})}return o}var j=Object(r.kb)({hour:"numeric",minute:"2-digit",meridiem:!1}),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),Object(r.hb)(r.G,Object(o.a)({},this.props,{defaultTimeFormat:j,extraClassNames:e}))},t}(r.b),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props;return Object(r.hb)(r.j,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&Object(r.hb)("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(r.b),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=Object(r.Vb)(r.jc),t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,i=n.options.selectMirror,a=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||i&&t.dateSelectionSegs||[],s=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},l=this.sortEventSegs(t.fgEventSegs,n.options.eventOrder);return Object(r.hb)(r.k,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(n,c,u){return Object(r.hb)("td",Object(o.a)({ref:n,className:["fc-timegrid-col"].concat(c,t.extraClassNames||[]).join(" ")},u,t.extraDataAttrs),Object(r.hb)("div",{className:"fc-timegrid-col-frame"},Object(r.hb)("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),Object(r.hb)("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(l,s,!1,!1,!1)),Object(r.hb)("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(a,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(i))),Object(r.hb)("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),Object(r.hb)(k,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,n,r,o){var i=this.props;return i.forPrint?x(e,i):this.renderPositionedFgSegs(e,t,n,r,o)},t.prototype.renderPositionedFgSegs=function(e,t,n,i,a){var s=this,l=this.context.options,c=l.eventMaxStack,u=l.eventShortHeight,d=l.eventOrderStrict,p=l.eventMinHeight,f=this.props,h=f.date,v=f.slatCoords,g=f.eventSelection,m=f.todayRange,b=f.nowDate,y=n||i||a,E=function(e,t,n,r){for(var o=[],i=[],a=0;a<e.length;a+=1){var s=t[a];s?o.push({index:a,thickness:1,span:s}):i.push(e[a])}for(var l=S(o,n,r),c=l.segRects,u=l.hiddenGroups,d=[],p=0,f=c;p<f.length;p++){var h=f[p];d.push({seg:e[h.index],rect:h})}for(var v=0,g=i;v<g.length;v++){var m=g[v];d.push({seg:m,rect:null})}return{segPlacements:d,hiddenGroups:u}}(e,R(e,h,v,p),d,c),D=E.segPlacements,O=E.hiddenGroups;return Object(r.hb)(r.t,null,this.renderHiddenGroups(O,e),D.map((function(e){var l=e.seg,c=e.rect,d=l.eventRange.instance.instanceId,p=y||Boolean(!t[d]&&c),f=I(c&&c.span),h=!y&&c?s.computeSegHStyle(c):{left:0,right:0},v=Boolean(c)&&c.stackForward>0,E=Boolean(c)&&c.span.end-c.span.start<u;return Object(r.hb)("div",{className:"fc-timegrid-event-harness"+(v?" fc-timegrid-event-harness-inset":""),key:d,style:Object(o.a)(Object(o.a)({visibility:p?"":"hidden"},f),h)},Object(r.hb)(T,Object(o.a)({seg:l,isDragging:n,isResizing:i,isDateSelecting:a,isSelected:d===g,isShort:E},Object(r.Fb)(l,m,b))))})))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,o=n.extraDateSpan,i=n.dateProfile,a=n.todayRange,s=n.nowDate,l=n.eventSelection,c=n.eventDrag,u=n.eventResize;return Object(r.hb)(r.t,null,e.map((function(e){var n,d,p=I(e.span),f=(n=e.entries,d=t,n.map((function(e){return d[e.index]})));return Object(r.hb)(y,{key:Object(r.X)(Object(r.bb)(f)),hiddenSegs:f,top:p.top,bottom:p.bottom,extraDateSpan:o,dateProfile:i,todayRange:a,nowDate:s,eventSelection:l,eventDrag:c,eventResize:u})})))},t.prototype.renderFillSegs=function(e,t){var n=this.props,i=this.context,a=R(e,n.date,n.slatCoords,i.options.eventMinHeight).map((function(i,a){var s=e[a];return Object(r.hb)("div",{key:Object(r.W)(s.eventRange),className:"fc-timegrid-bg-harness",style:I(i)},"bg-event"===t?Object(r.hb)(r.c,Object(o.a)({seg:s},Object(r.Fb)(s,n.todayRange,n.nowDate))):Object(r.gc)(t))}));return Object(r.hb)(r.t,null,a)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,o=t.date;return n?e.map((function(e,t){return Object(r.hb)(r.w,{isAxis:!1,date:o,key:t},(function(t,i,a,s){return Object(r.hb)("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(i).join(" "),style:{top:n.computeDateTop(e.start,o)}},s)}))})):null},t.prototype.computeSegHStyle=function(e){var t,n,r=this.context,o=r.isRtl,i=r.options.slotEventOverlap,a=e.levelCoord,s=e.levelCoord+e.thickness;i&&(s=Math.min(1,a+2*(s-a))),o?(t=1-s,n=a):(t=a,n=1-s);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return i&&!e.stackForward&&(l[o?"marginLeft":"marginRight"]=20),l},t}(r.b);function x(e,t){var n=t.todayRange,i=t.nowDate,a=t.eventSelection,s=t.eventDrag,l=t.eventResize,c=(s?s.affectedInstances:null)||(l?l.affectedInstances:null)||{};return Object(r.hb)(r.t,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return Object(r.hb)("div",{key:t,style:{visibility:c[t]?"hidden":""}},Object(r.hb)(T,Object(o.a)({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===a,isShort:!1},Object(r.Fb)(e,n,i))))})))}function I(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=Object(r.Vb)(m),t.splitBgEventSegs=Object(r.Vb)(m),t.splitBusinessHourSegs=Object(r.Vb)(m),t.splitNowIndicatorSegs=Object(r.Vb)(m),t.splitDateSelectionSegs=Object(r.Vb)(m),t.splitEventDrag=Object(r.Vb)(b),t.splitEventResize=Object(r.Vb)(b),t.rootElRef=Object(r.mb)(),t.cellElRefs=new r.z,t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),o=t.cells.length,i=this.splitFgEventSegs(t.fgEventSegs,o),a=this.splitBgEventSegs(t.bgEventSegs,o),s=this.splitBusinessHourSegs(t.businessHourSegs,o),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,o),c=this.splitDateSelectionSegs(t.dateSelectionSegs,o),u=this.splitEventDrag(t.eventDrag,o),d=this.splitEventResize(t.eventResize,o);return Object(r.hb)("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Object(r.hb)("table",{style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,Object(r.hb)("tbody",null,Object(r.hb)("tr",null,t.axis&&Object(r.hb)("td",{className:"fc-timegrid-col fc-timegrid-axis"},Object(r.hb)("div",{className:"fc-timegrid-col-frame"},Object(r.hb)("div",{className:"fc-timegrid-now-indicator-container"},"number"===typeof n&&Object(r.hb)(r.w,{isAxis:!0,date:t.nowDate},(function(e,t,o,i){return Object(r.hb)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:n}},i)}))))),t.cells.map((function(n,o){return Object(r.hb)(M,{key:n.key,elRef:e.cellElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:i[o],bgEventSegs:a[o],businessHourSegs:s[o],nowIndicatorSegs:l[o],dateSelectionSegs:c[o],eventDrag:u[o],eventResize:d[o],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new r.y(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))},t}(r.b);var N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=Object(r.Vb)(H),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var o=r.computeTimeTop(e.time);(o=Math.ceil(o))&&(o+=1),n(o)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return Object(r.hb)("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Object(r.hb)(g,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Object(r.hb)(P,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var n=this.context,i=n.dateEnv,a=n.options,s=this.colCoords,l=this.props.dateProfile,c=this.state.slatCoords,u=this.processSlotOptions(this.props.slotDuration,a.snapDuration),d=u.snapDuration,p=u.snapsPerSlot,f=s.leftToIndex(e),h=c.positions.topToIndex(t);if(null!=f&&null!=h){var v=this.props.cells[f],g=c.positions.tops[h],m=c.positions.getHeight(h),b=(t-g)/m,y=h*p+Math.floor(b*p),E=this.props.cells[f].date,S=Object(r.M)(l.slotMinTime,Object(r.Wb)(d,y)),D=i.add(E,S),O=i.add(D,d);return{dateProfile:l,dateSpan:Object(o.a)({range:{start:D,end:O},allDay:!1},v.extraDateSpan),dayEl:s.els[f],rect:{left:s.lefts[f],right:s.rights[f],top:g,bottom:g+m},layer:0}}return null},t}(r.h);function H(e,t){var n=t||e,o=Object(r.nc)(e,n);return null===o&&(n=e,o=1),{snapDuration:n,snapsPerSlot:o}}var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],o=0;o<t.length;o+=1){var i=Object(r.Nb)(e,t[o]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:o})}return n},t}(r.E),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=Object(r.Vb)(_),t.slicer=new A,t.timeColsRef=Object(r.mb)(),t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,i=t.dateProfile,a=t.dayTableModel,s=n.options.nowIndicator,l=this.buildDayRanges(a,i,n.dateEnv);return Object(r.hb)(r.x,{unit:s?"minute":"day"},(function(c,u){return Object(r.hb)(N,Object(o.a)({ref:e.timeColsRef},e.slicer.sliceProps(t,i,null,n,l),{forPrint:t.forPrint,axis:t.axis,dateProfile:i,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:a.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:c,nowIndicatorSegs:s&&e.slicer.sliceNowDate(c,n,l),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},t}(r.h);function _(e,t,n){for(var r=[],o=0,i=e.headerDates;o<i.length;o++){var a=i[o];r.push({start:n.add(a,t.slotMinTime),end:n.add(a,t.slotMaxTime)})}return r}var V=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function U(e,t,n,o,i){for(var a=new Date(0),s=e,l=Object(r.gb)(0),c=n||function(e){var t,n,o;for(t=V.length-1;t>=0;t-=1)if(n=Object(r.gb)(V[t]),null!==(o=Object(r.nc)(n,e))&&o>1)return n;return e}(o),u=[];Object(r.S)(s)<Object(r.S)(t);){var d=i.add(a,s),p=null!==Object(r.nc)(l,c);u.push({date:d,time:s,key:d.toISOString(),isoTimeStr:Object(r.wb)(d),isLabeled:p}),s=Object(r.M)(s,o),l=Object(r.M)(l,o)}return u}var W=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=Object(r.Vb)(z),t.buildSlatMetas=Object(r.Vb)(U),t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,a=t.dateEnv,s=t.dateProfileGenerator,l=this.props,c=l.dateProfile,u=this.buildTimeColsModel(c,s),d=this.allDaySplitter.splitProps(l),p=this.buildSlatMetas(c.slotMinTime,c.slotMaxTime,n.slotLabelInterval,n.slotDuration,a),f=n.dayMinWidth,h=!f,v=f,g=n.dayHeaders&&Object(r.hb)(r.l,{dates:u.headerDates,dateProfile:c,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),m=!1!==n.allDaySlot&&function(t){return Object(r.hb)(i.a,Object(o.a)({},d.allDay,{dateProfile:c,dayTableModel:u,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:h?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:l.forPrint},e.getAllDayMaxEventProps()))},b=function(t){return Object(r.hb)(L,Object(o.a)({},d.timed,{dayTableModel:u,dateProfile:c,axis:h,slotDuration:n.slotDuration,slatMetas:p,forPrint:l.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return v?this.renderHScrollLayout(g,m,b,u.colCnt,f,p,this.state.slatCoords):this.renderSimpleLayout(g,m,b)},t}(p);function z(e,t){var n=new r.m(e.renderRange,t);return new r.n(n,!1)}var F={allDaySlot:Boolean},B=Object(r.lb)({initialView:"timeGridWeek",optionRefiners:F,views:{timeGrid:{component:W,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});t.a=B},1490:function(e,t,n){},1491:function(e,t,n){"use strict";var r=n(1253),o=n(4);r.eb.touchMouseIgnoreWait=500;var i=0,a=0,s=!1,l=function(){function e(e){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(e){if(!t.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,i+=1,setTimeout((function(){i-=1}),r.eb.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new r.q,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(a+=1)&&window.addEventListener("touchmove",c,{passive:!1})}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(a-=1)||window.removeEventListener("touchmove",c,{passive:!1})},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Object(r.sb)(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){s=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?Object(r.sb)(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return i||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(s=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,o=e.touches,i=0,a=0;return o&&o.length?(n=o[0].pageX,r=o[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(i=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:i,deltaY:a}},e}();function c(e){s&&e.preventDefault()}var u=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",Object(r.R)(n,{left:o.left,top:o.top}),Object(r.mc)(n,(function(){n.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&(Object(r.fc)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&Object(r.R)(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),Object(r.R)(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),d=function(e){function t(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,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 Object(o.c)(t,e),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(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,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}(r.B),p=function(e){function t(t,n){return e.call(this,new r.p(t),n)||this}return Object(o.c)(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return Object(r.cb)(this.scrollController.el)},t}(d),f=function(e){function t(t){return e.call(this,new r.K,t)||this}return Object(o.c)(t,e),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}(d),h="function"===typeof performance?performance.now:Date.now,v=function(){function e(){var e=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(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=h();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,o=null===this.pointerScreenY?0:r-this.pointerScreenY,i=null===this.pointerScreenX?0:n-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(h()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,o=r-e.distance,i=o*o/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*a)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,o=0,i=this.scrollCaches;o<i.length;o++){var a=i[o],s=a.clientRect,l=e-s.left,c=s.right-e,u=t-s.top,d=s.bottom-t;l>=0&&c>=0&&u>=0&&d>=0&&(u<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"top",distance:u}),d<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:a,name:"bottom",distance:d}),l<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:a,name:"left",distance:l}),c<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:a,name:"right",distance:c}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map((function(e){return e===window?new f(!1):new p(e,!1)}))},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,o=this.scrollQuery;n<o.length;n++){var i=o[n];"object"===typeof i?t.push(i):t.push.apply(t,Array.prototype.slice.call(Object(r.zb)(e).querySelectorAll(i)))}return t},e}(),g=function(e){function t(t,n){var o=e.call(this,t)||this;o.containerEl=t,o.delay=null,o.minDistance=0,o.touchScrollAllowed=!0,o.mirrorNeedsRevert=!1,o.isInteracting=!1,o.isDragging=!1,o.isDelayEnded=!1,o.isDistanceSurpassed=!1,o.delayTimeoutId=null,o.onPointerDown=function(e){o.isDragging||(o.isInteracting=!0,o.isDelayEnded=!1,o.isDistanceSurpassed=!1,Object(r.bc)(document.body),Object(r.ac)(document.body),e.isTouch||e.origEvent.preventDefault(),o.emitter.trigger("pointerdown",e),o.isInteracting&&!o.pointer.shouldIgnoreMove&&(o.mirror.setIsVisible(!1),o.mirror.start(e.subjectEl,e.pageX,e.pageY),o.startDelay(e),o.minDistance||o.handleDistanceSurpassed(e)))},o.onPointerMove=function(e){if(o.isInteracting){if(o.emitter.trigger("pointermove",e),!o.isDistanceSurpassed){var t=o.minDistance,n=e.deltaX,r=e.deltaY;n*n+r*r>=t*t&&o.handleDistanceSurpassed(e)}o.isDragging&&("scroll"!==e.origEvent.type&&(o.mirror.handleMove(e.pageX,e.pageY),o.autoScroller.handleMove(e.pageX,e.pageY)),o.emitter.trigger("dragmove",e))}},o.onPointerUp=function(e){o.isInteracting&&(o.isInteracting=!1,Object(r.P)(document.body),Object(r.O)(document.body),o.emitter.trigger("pointerup",e),o.isDragging&&(o.autoScroller.stop(),o.tryStopDrag(e)),o.delayTimeoutId&&(clearTimeout(o.delayTimeoutId),o.delayTimeoutId=null))};var i=o.pointer=new l(t);return i.emitter.on("pointerdown",o.onPointerDown),i.emitter.on("pointermove",o.onPointerMove),i.emitter.on("pointerup",o.onPointerUp),n&&(i.selector=n),o.mirror=new u,o.autoScroller=new v,o}return Object(o.c)(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.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)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(r.o),m=function(){function e(e){this.origRect=Object(r.db)(e),this.scrollCaches=Object(r.xb)(e).map((function(e){return new p(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n={left:e,top:t},o=0,i=this.scrollCaches;o<i.length;o++){var a=i[o];if(!b(a.getEventTarget())&&!Object(r.Zb)(n,a.clientRect))return!1}return!0},e}();function b(e){var t=e.tagName;return"HTML"===t||"BODY"===t}var y=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new r.q}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},o=n,i=e.subjectEl;i instanceof HTMLElement&&(t=Object(r.db)(i),o=Object(r.fb)(o,t));var a=this.initialHit=this.queryHitForOffset(o.left,o.top);if(a){if(this.useSubjectCenter&&t){var s=Object(r.Ob)(t,a.rect);s&&(o=Object(r.Db)(s))}this.coordAdjust=Object(r.pb)(o,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&E(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=Object(r.Ub)(this.droppableStore,(function(e){return e.component.prepareHits(),new m(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this.droppableStore,o=this.offsetTrackers,i=null;for(var a in n){var s=n[a].component,l=o[a];if(l&&l.isWithinClipping(e,t)){var c=l.computeLeft(),u=l.computeTop(),d=e-c,p=t-u,f=l.origRect,h=f.right-f.left,v=f.bottom-f.top;if(d>=0&&d<h&&p>=0&&p<v){var g=s.queryHit(d,p,h,v);g&&Object(r.dc)(g.dateProfile.activeRange,g.dateSpan.range)&&(!i||g.layer>i.layer)&&(g.componentId=a,g.context=s.context,g.rect.left+=c,g.rect.right+=c,g.rect.top+=u,g.rect.bottom+=u,i=g)}}}return i},e}();function E(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Object(r.Rb)(e.dateSpan,t.dateSpan)}function S(e,t){for(var n,r,i={},a=0,s=t.pluginHooks.datePointTransforms;a<s.length;a++){var l=s[a];Object(o.a)(i,l(e,t))}return Object(o.a)(i,(n=e,{date:(r=t.dateEnv).toDate(n.range.start),dateStr:r.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay})),i}var D=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging,r=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(r))},n.handleDragEnd=function(e){var t=n.component;if(!n.dragging.pointer.wasTouchScroll){var r=n.hitDragging,i=r.initialHit,a=r.finalHit;if(i&&a&&E(i,a)){var s=t.context,l=Object(o.a)(Object(o.a)({},S(i.dateSpan,s)),{dayEl:i.dayEl,jsEvent:e.origEvent,view:s.viewApi||s.calendarApi.view});s.emitter.trigger("dateClick",l)}}},n.dragging=new g(t.el),n.dragging.autoScroller.isEnabled=!1;var i=n.hitDragging=new y(n.dragging,Object(r.Mb)(t));return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("dragend",n.handleDragEnd),n}return Object(o.c)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r.u),O=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,o=t.dragging,i=r.context.options.selectable&&r.isValidDateDownEl(e.origEvent.target);o.setIgnoreMove(!i),o.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var i=n.component.context,a=null,s=!1;if(e){var l=n.hitDragging.initialHit;e.componentId===l.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(l,e)||(a=function(e,t,n){var i=e.dateSpan,a=t.dateSpan,s=[i.range.start,i.range.end,a.range.start,a.range.end];s.sort(r.ab);for(var l={},c=0,u=n;c<u.length;c++){var d=(0,u[c])(e,t);if(!1===d)return null;d&&Object(o.a)(l,d)}return l.range={start:s[0],end:s[3]},l.allDay=i.allDay,l}(l,e,i.pluginHooks.dateSelectionTransformers)),a&&Object(r.Qb)(a,e.dateProfile,i)||(s=!0,a=null)}a?i.dispatch({type:"SELECT_DATES",selection:a}):t||i.dispatch({type:"UNSELECT_DATES"}),s?Object(r.rb)():Object(r.ub)(),t||(n.dragSelection=a)},n.handlePointerUp=function(e){n.dragSelection&&(Object(r.lc)(n.dragSelection,e,n.component.context),n.dragSelection=null)};var i=t.component.context.options,a=n.dragging=new g(t.el);a.touchScrollAllowed=!1,a.minDistance=i.selectMinDistance||0,a.autoScroller.isEnabled=i.dragScroll;var s=n.hitDragging=new y(n.dragging,Object(r.Mb)(t));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("pointerup",n.handlePointerUp),n}return Object(o.c)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r.u);var C=function(e){function t(n){var i=e.call(this,n)||this;i.subjectEl=null,i.subjectSeg=null,i.isDragging=!1,i.eventRange=null,i.relevantEvents=null,i.receivingContext=null,i.validMutation=null,i.mutatedRelevantEvents=null,i.handlePointerDown=function(e){var t=e.origEvent.target,n=i,o=n.component,a=n.dragging,s=a.mirror,l=o.context.options,c=o.context;i.subjectEl=e.subjectEl;var u=i.subjectSeg=Object(r.Ab)(e.subjectEl),d=(i.eventRange=u.eventRange).instance.instanceId;i.relevantEvents=Object(r.Eb)(c.getCurrentData().eventStore,d),a.minDistance=e.isTouch?0:l.eventDragMinDistance,a.delay=e.isTouch&&d!==o.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(o):null,l.fixedMirrorParent?s.parentNode=l.fixedMirrorParent:s.parentNode=Object(r.sb)(t,".fc"),s.revertDuration=l.dragRevertDuration;var p=o.isValidSegDownEl(t)&&!Object(r.sb)(t,".fc-event-resizer");a.setIgnoreMove(!p),i.isDragging=p&&e.subjectEl.classList.contains("fc-event-draggable")},i.handleDragStart=function(e){var t=i.component.context,n=i.eventRange,o=n.instance.instanceId;e.isTouch?o!==i.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:o}):t.dispatch({type:"UNSELECT_EVENT"}),i.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:i.subjectEl,event:new r.r(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},i.handleHitUpdate=function(e,t){if(i.isDragging){var n=i.relevantEvents,o=i.hitDragging.initialHit,a=i.component.context,s=null,l=null,c=null,u=!1,d={affectedEvents:n,mutatedEvents:Object(r.ib)(),isEvent:!0};if(e){var p=(s=e.context).options;a===s||p.editable&&p.droppable?(l=function(e,t,n){var o=e.dateSpan,i=t.dateSpan,a=o.range.start,s=i.range.start,l={};o.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,i.allDay&&(a=Object(r.kc)(a)));var c=Object(r.nb)(a,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(l.allDay=!1);for(var u={datesDelta:c,standardProps:l},d=0,p=n;d<p.length;d++){(0,p[d])(u,e,t)}return u}(o,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(c=Object(r.Q)(n,s.getCurrentData().eventUiBases,l,s),d.mutatedEvents=c,Object(r.Sb)(d,e.dateProfile,s)||(u=!0,l=null,c=null,d.mutatedEvents=Object(r.ib)())):s=null}i.displayDrag(s,d),u?Object(r.rb)():Object(r.ub)(),t||(a===s&&E(o,e)&&(l=null),i.dragging.setMirrorNeedsRevert(!l),i.dragging.setMirrorIsVisible(!e||!Object(r.zb)(i.subjectEl).querySelector(".fc-event-mirror")),i.receivingContext=s,i.validMutation=l,i.mutatedRelevantEvents=c)}},i.handlePointerUp=function(){i.isDragging||i.cleanup()},i.handleDragEnd=function(e){if(i.isDragging){var t=i.component.context,n=t.viewApi,a=i,s=a.receivingContext,l=a.validMutation,c=i.eventRange.def,u=i.eventRange.instance,d=new r.r(t,c,u),p=i.relevantEvents,f=i.mutatedRelevantEvents,h=i.hitDragging.finalHit;if(i.clearDrag(),t.emitter.trigger("eventDragStop",{el:i.subjectEl,event:d,jsEvent:e.origEvent,view:n}),l){if(s===t){var v=new r.r(t,f.defs[c.defId],u?f.instances[u.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:f});for(var g={oldEvent:d,event:v,relatedEvents:Object(r.V)(f,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:p})}},m={},b=0,y=t.getCurrentData().pluginHooks.eventDropTransformers;b<y.length;b++){var E=y[b];Object(o.a)(m,E(l,t))}t.emitter.trigger("eventDrop",Object(o.a)(Object(o.a)(Object(o.a)({},g),m),{el:e.subjectEl,delta:l.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",g)}else if(s){var D={event:d,relatedEvents:Object(r.V)(p,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:p})}};t.emitter.trigger("eventLeave",Object(o.a)(Object(o.a)({},D),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:p}),t.emitter.trigger("eventRemove",D);var O=f.defs[c.defId],C=f.instances[u.instanceId],w=new r.r(s,O,C);s.dispatch({type:"MERGE_EVENTS",eventStore:f});var R={event:w,relatedEvents:Object(r.V)(f,s,C),revert:function(){s.dispatch({type:"REMOVE_EVENTS",eventStore:f})}};s.emitter.trigger("eventAdd",R),e.isTouch&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),s.emitter.trigger("drop",Object(o.a)(Object(o.a)({},S(h.dateSpan,s)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:h.context.viewApi})),s.emitter.trigger("eventReceive",Object(o.a)(Object(o.a)({},R),{draggedEl:e.subjectEl,view:h.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}i.cleanup()};var a=i.component.context.options,s=i.dragging=new g(n.el);s.pointer.selector=t.SELECTOR,s.touchScrollAllowed=!1,s.autoScroller.isEnabled=a.dragScroll;var l=i.hitDragging=new y(i.dragging,r.Lb);return l.useSubjectCenter=n.useEventCenter,l.emitter.on("pointerdown",i.handlePointerDown),l.emitter.on("dragstart",i.handleDragStart),l.emitter.on("hitupdate",i.handleHitUpdate),l.emitter.on("pointerup",i.handlePointerUp),l.emitter.on("dragend",i.handleDragEnd),i}return Object(o.c)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,o=this.receivingContext;o&&o!==e&&(o===n?o.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:Object(r.ib)(),isEvent:!0}}):o.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},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}(r.u);var w=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,o=n.querySegEl(e),i=Object(r.Ab)(o),a=n.eventRange=i.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==a.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,o=n.eventRange;n.relevantEvents=Object(r.Eb)(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var i=n.querySegEl(e);n.draggingSegEl=i,n.draggingSeg=Object(r.Ab)(i),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:i,event:new r.r(t,o.def,o.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,o){var i=n.component.context,a=n.relevantEvents,s=n.hitDragging.initialHit,l=n.eventRange.instance,c=null,u=null,d=!1,p={affectedEvents:a,mutatedEvents:Object(r.ib)(),isEvent:!0};e&&(e.componentId===s.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(s,e)||(c=function(e,t,n,o){var i=e.context.dateEnv,a=e.dateSpan.range.start,s=t.dateSpan.range.start,l=Object(r.nb)(a,s,i,e.largeUnit);if(n){if(i.add(o.start,l)<o.end)return{startDelta:l}}else if(i.add(o.end,l)>o.start)return{endDelta:l};return null}(s,e,o.subjectEl.classList.contains("fc-event-resizer-start"),l.range)));c&&(u=Object(r.Q)(a,i.getCurrentData().eventUiBases,c,i),p.mutatedEvents=u,Object(r.Sb)(p,e.dateProfile,i)||(d=!0,c=null,u=null,p.mutatedEvents=null)),u?i.dispatch({type:"SET_EVENT_RESIZE",state:p}):i.dispatch({type:"UNSET_EVENT_RESIZE"}),d?Object(r.rb)():Object(r.ub)(),t||(c&&E(s,e)&&(c=null),n.validMutation=c,n.mutatedRelevantEvents=u)},n.handleDragEnd=function(e){var t=n.component.context,i=n.eventRange.def,a=n.eventRange.instance,s=new r.r(t,i,a),l=n.relevantEvents,c=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:s,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var u=new r.r(t,c.defs[i.defId],a?c.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});var d={oldEvent:s,event:u,relatedEvents:Object(r.V)(c,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventResize",Object(o.a)(Object(o.a)({},d),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||Object(r.gb)(0),endDelta:n.validMutation.endDelta||Object(r.gb)(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",d)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var i=t.component,a=n.dragging=new g(t.el);a.pointer.selector=".fc-event-resizer",a.touchScrollAllowed=!1,a.autoScroller.isEnabled=i.context.options.dragScroll;var s=n.hitDragging=new y(n.dragging,Object(r.Mb)(t));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("dragend",n.handleDragEnd),n}return Object(o.c)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return Object(r.sb)(e.subjectEl,".fc-event")},t}(r.u);var R=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,o=Object(r.Cb)(e.origEvent);t.matchesCancel=!!Object(r.sb)(o,n),t.matchesEvent=!!Object(r.sb)(o,C.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,o=n.getCurrentData();if(!r.wasTouchScroll){if(o.dateSelection&&!t.isRecentPointerDateSelect){var i=n.options.unselectAuto;!i||i&&t.matchesCancel||n.calendarApi.unselect(e)}o.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new l(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),j={fixedMirrorParent:r.Kb},T={dateClick:r.Kb,eventDragStart:r.Kb,eventDragStop:r.Kb,eventDrop:r.Kb,eventResizeStart:r.Kb,eventResizeStop:r.Kb,eventResize:r.Kb,drop:r.Kb,eventReceive:r.Kb,eventLeave:r.Kb},k=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,i){var a=n.hitDragging.dragging,s=null,l=null,c=!1,u={affectedEvents:Object(r.ib)(),mutatedEvents:Object(r.ib)(),isEvent:n.dragMeta.create};e&&(s=e.context,n.canDropElOnCalendar(i.subjectEl,s)&&(l=function(e,t,n){for(var i=Object(o.a)({},t.leftoverProps),a=0,s=n.pluginHooks.externalDefTransforms;a<s.length;a++){var l=s[a];Object(o.a)(i,l(e,t))}var c=Object(r.ec)(i,n),u=c.refined,d=c.extra,p=Object(r.Yb)(u,d,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),f=e.range.start;e.allDay&&t.startTime&&(f=n.dateEnv.add(f,t.startTime));var h=t.duration?n.dateEnv.add(f,t.duration):Object(r.yb)(e.allDay,f,n),v=Object(r.jb)(p.defId,{start:f,end:h});return{def:p,instance:v}}(e.dateSpan,n.dragMeta,s),u.mutatedEvents=Object(r.vb)(l),(c=!Object(r.Sb)(u,e.dateProfile,s))&&(u.mutatedEvents=Object(r.ib)(),l=null))),n.displayDrag(s,u),a.setMirrorIsVisible(t||!l||!document.querySelector(".fc-event-mirror")),c?Object(r.rb)():Object(r.ub)(),t||(a.setMirrorNeedsRevert(!l),n.receivingContext=s,n.droppableEvent=l)},this.handleDragEnd=function(e){var t=n,i=t.receivingContext,a=t.droppableEvent;if(n.clearDrag(),i&&a){var s=n.hitDragging.finalHit,l=s.context.viewApi,c=n.dragMeta;if(i.emitter.trigger("drop",Object(o.a)(Object(o.a)({},S(s.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:l})),c.create){var u=Object(r.vb)(a);i.dispatch({type:"MERGE_EVENTS",eventStore:u}),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instance.instanceId}),i.emitter.trigger("eventReceive",{event:new r.r(i,a.def,a.instance),relatedEvents:[],revert:function(){i.dispatch({type:"REMOVE_EVENTS",eventStore:u})},draggedEl:e.subjectEl,view:l})}}n.receivingContext=null,n.droppableEvent=null};var i=this.hitDragging=new y(e,r.Lb);i.requireInitial=!1,i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"===typeof this.suppliedDragMeta?Object(r.Xb)(this.suppliedDragMeta):"function"===typeof this.suppliedDragMeta?Object(r.Xb)(this.suppliedDragMeta(e)):function(e){var t=function(e,t){var n=r.eb.dataAttrPrefix,o=(n?n+"-":"")+t;return e.getAttribute("data-"+o)||""}(e,"event"),n=t?JSON.parse(t):{create:!1};return Object(r.Xb)(n)}(e)},e.prototype.displayDrag=function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return"function"===typeof n?n.call(t.calendarApi,e):"string"!==typeof n||!n||Boolean(Object(r.tb)(e,n))},e}();r.eb.dataAttrPrefix="";!function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,o=n.settings,i=o.minDistance,a=o.longPressDelay;t.minDistance=null!=i?i:e.isTouch?0:r.a.eventDragMinDistance,t.delay=e.isTouch?null!=a?a:r.a.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;var o=this.dragging=new g(e);o.touchScrollAllowed=!1,null!=t.itemSelector&&(o.pointer.selector=t.itemSelector),null!=t.appendTo&&(o.mirror.parentNode=t.appendTo),o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),new k(o,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}();var M=function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new l(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return Object(o.c)(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(r.o),x=(function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var r=this.dragging=new M(n);"string"===typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"===typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new k(r,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}(),Object(r.lb)({componentInteractions:[D,O,C,w],calendarInteractions:[R],elementDraggingImpl:g,optionRefiners:j,listenerRefiners:T}));t.a=x},2508:function(e,t,n){"use strict";var r=n(4),o=n(0),i=n(22);("undefined"!==typeof globalThis?globalThis:window).FullCalendarVDom={Component:o.Component,createElement:o.createElement,render:i.render,createRef:o.createRef,Fragment:o.Fragment,createContext:o.createContext,createPortal:i.createPortal,flushToDom:function(){},unmountComponentAtNode:i.unmountComponentAtNode};var a=n(1253),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._calendarApi=new a.d,t}return Object(r.c)(t,e),t.prototype.render=function(){return o.createElement(a.f,{optionOverrides:this.props,calendarApi:this._calendarApi},(function(e){return o.createElement(a.g,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,i,s){return o.createElement("div",{className:t.join(" "),style:{height:n}},o.createElement(a.e,Object(r.a)({isHeightAuto:i,forPrint:s},e)))}))}))},t.prototype.getApi=function(){return this._calendarApi},t}(o.Component);t.a=s}}]);

Zerion Mini Shell 1.0