1/*! For license information please see 2570.8384aa4c.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkpricexper_front=self.webpackChunkpricexper_front||[]).push([[2570],{34543:(e,t,n)=>{n.d(t,{p3z:()=>Ze,$GR:()=>ar,s_G:()=>Ro,fhD:()=>cn,o3v:()=>Ni,IyV:()=>pi,xRE:()=>Oi,gzh:()=>cr,rou:()=>xr,ux1:()=>bo,rrN:()=>wo,A1b:()=>zi,NC_:()=>Gi,mql:()=>qi,WDw:()=>Ci,_n8:()=>Jn,vli:()=>$n,fhX:()=>dn,Nty:()=>mo,FK:()=>s,N3M:()=>Di,knM:()=>No,qc:()=>Do,O6g:()=>Vi,Qnh:()=>Kn,kFN:()=>oo,iT7:()=>gr,w1c:()=>Qn,HOs:()=>io,XpW:()=>fi,en1:()=>vo,$He:()=>Yi,O3W:()=>On,y8j:()=>yo,TYi:()=>rr,q4f:()=>Cr,SUi:()=>xo,Wkc:()=>er,fij:()=>z,do1:()=>De,J4u:()=>B,iDH:()=>H,_8O:()=>N,on3:()=>tn,AVT:()=>g,Oh8:()=>Ce,ElE:()=>Ei,qAn:()=>gi,uEb:()=>fn,N8:()=>Gt,NIT:()=>Re,myk:()=>Vn,wWN:()=>zt,S$d:()=>F,aQG:()=>Oo,Qfg:()=>Yn,Cc$:()=>Zn,$WB:()=>wi,AF1:()=>Mn,kfp:()=>_,xCT:()=>ye,na4:()=>o,H8x:()=>at,OEO:()=>re,xi1:()=>qe,i1g:()=>dr,_3b:()=>a,FjJ:()=>_t,z$z:()=>q,puS:()=>Nn,Z3F:()=>G,tOV:()=>k,YAv:()=>p,C4N:()=>f,q2g:()=>M,tbu:()=>it,bxH:()=>Te,PeH:()=>xe,ccu:()=>Xn,qFr:()=>Ln,NP$:()=>Fn,hax:()=>en,UOc:()=>y,VVT:()=>Ot,m7H:()=>hi,Mpm:()=>m,QvU:()=>In,LkY:()=>ot,tPU:()=>qt,F29:()=>jt,v2o:()=>go,_Dp:()=>ho,znd:()=>D,XbD:()=>vi,CuQ:()=>Pt,D_O:()=>nt,BNQ:()=>bi,qIM:()=>Si,imr:()=>xt,B_7:()=>kn,RNt:()=>mi,rjW:()=>$i,U6q:()=>Xt,lVx:()=>Xi,HvV:()=>wt,vA0:()=>ce,d_K:()=>se,BjF:()=>Ie,Nay:()=>Se,PWO:()=>Ri,Rjd:()=>St,$UH:()=>xn,N7h:()=>P,vFY:()=>I,$Bw:()=>It,wj3:()=>Mt,Zl2:()=>Et,NzY:()=>d,aOA:()=>_o,bLJ:()=>fo,cZi:()=>ur,MXk:()=>Nt,B4w:()=>Ft,ol1:()=>Z,F5O:()=>Qt,SH7:()=>w,Y2k:()=>we});var r=n(37827);if("undefined"===typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var i=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,a=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=Full
2CalendarVDom.Fragment,l=FullCalendarVDom.createContext,u=FullCalendarVDom.createPortal,c=(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 g(e,t){for(var n in t)v(e,n,t[n])}function v(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 y(e){return e.getRootNode?e.getRootNode():document}var E=0;function D(){return"fc-dom-"+(E+=1)}function S(e){e.preventDefault()}function b(e,t,n,r){var i=function(e,t){return function(n){var r=p(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var C=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function w(e,t){var n=function(r){t(r),C.forEach((function(t){e.removeEventListener(t,n)}
2))};C.forEach((function(t){e.addEventListener(t,n)}))}function _(e){return(0,r.__assign)({onClick:e},R(e))}function R(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var T=0;function x(){return String(T+=1)}function k(){document.body.classList.add("fc-not-allowed")}function M(){document.body.classList.remove("fc-not-allowed")}function I(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",S)}function N(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",S)}function P(e){e.addEventListener("contextmenu",S)}function H(e){e.removeEventListener("contextmenu",S)}function O(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 A(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function L(e,t,n){return"function"===typeof e?e.apply(void 0,t):"string"===typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function F(e,t){return e-t}function U(e){return e%1===0}function W(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 V=["sun","mon","tue","wed","thu","fri","sat"];function B(e,t){var n=J(e);return n[2]+=7*t,ee(n)}function z(e,t){var n=J(e);return n[2]+=t,ee(n)}function j(e,t){var n=J(e);return n[6]+=t,ee(n)}function G(e,t){return q(e,t)/7}function q(e,t){return(t.valueOf()-e.valueOf())/864e5}function Y(e,t){return ne(e)===ne(t)?Math.round(q(e,t)):null}function Z(e){return ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function X(e,t,n,r){var i=ee([t,0,1+$(t,n,r)]),o=Z(e),a=Math.round(q(i,o));return Math.floor(a/7)+1}function $(e,t,n){var r=7+t-n;return-((7+ee([e,0,r]).getUTCDay()-t)%7)+r-1}function K(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Q(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 J(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ee(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function te(e){return!isNaN(e.valueOf())}function ne(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function re(e,t,n,r){return{instanceId:x(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var ie=Object.prototype.hasOwnProperty;function oe(e,t){var n={};if(t)for(var r in t){for(var i=[],o=e.length-1;o>=0;o-=1){var a=e[o][r];if("object"===typeof a&&a)i.unshift(a);else if(void 0!==a){n[r]=a;break}}i.length&&(n[r]=oe(i))}for(o=e.length-1;o>=0;o-=1){var s=e[o];for(var l in s)l in n||(n[l]=s[l])}return n}function ae(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function se(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function le(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function ue(e){var t=[];for(var n in e)t.push(e[n]);return t}function ce(e,t){if(e===t)return!0;for(var n in e)if(ie.call(e,n)&&!(n in t))return!1;for(var n in t)if(ie.call(t,n)&&e[n]!==t[n])return!1;return!0}function de(e,t){var n=[];for(var r in e)ie.call(e,r)&&(r in t||n.push(r));for(var r in t)ie.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function pe(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!fe(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function fe(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function he(e,t,n){var r=n.dateEnv,i=n.pluginHooks,o=n.options,a=e.defs,s=e.instances;for(var l in s=ae(s,(function(e){return!a[e.defId].recurringDef})),a){var u=a[l];if(u.recurringDef){var c=u.recurringDef.duration;c||(c=u.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var d=0,p=ge(u,c,t,r,i.recurringTypes);d<p.length;d++){var f=p[d],h=re(l,{start:f,end:r.add(f,c)});s[h.instanceId]=h}}}return{defs:a,instances:s}}function ge(e,t,n,r,i){var o=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(Z)),o}var ve=["years","months","days","milliseconds"],me=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ye(e,t){var n;return"string"===typeof e?function(e){var t=me.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?Ee(e):"number"===typeof e?Ee(((n={})[t||"milliseconds"]=e,n)):null}function Ee(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 De(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Se(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function be(e){return Ce(e)/864e5}
2function Ce(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function we(e,t){for(var n=null,r=0;r<ve.length;r+=1){var i=ve[r];if(t[i]){var o=e[i]/t[i];if(!U(o)||null!==n&&n!==o)return null;n=o}else if(e[i])return null}return n}function _e(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 Re(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",ke(t,!0)))),r}function Te(e){return e.toISOString().replace(/T.*$/,"")}function xe(e){return A(e.getUTCHours(),2)+":"+A(e.getUTCMinutes(),2)+":"+A(e.getUTCSeconds(),2)}function ke(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?n+A(i,2)+":"+A(o,2):"GMT"+n+i+(o?":"+A(o,2):"")}function Me(e,t,n){if(e===t)return!0;var r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function Ie(e,t,n){var r,i;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(r){if(!Me(r,o)){n&&n(i);var s=e.apply(this,o);t&&t(s,i)||(i=s)}}else i=e.apply(this,o);return r=o,i}}function Ne(e,t,n){var r,i,o=this;return function(a){if(r){if(!ce(r,a)){n&&n(i);var s=e.call(o,a);t&&t(s,i)||(i=s)}}else i=e.call(o,a);return r=a,i}}var Pe={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},He={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Oe=/\s*([ap])\.?m\.?/i,Ae=/,/g,Le=/\s+/g,Fe=/\u200e/g,Ue=/UTC|GMT/,We=function(){function e(e){var t={},n={},r=0;for(var i in e)i in Pe?(n[i]=e[i],r=Math.max(Pe[i],r)):(t[i]=e[i],i in He&&(r=Math.max(He[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Ie(Ve)}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 i=this.standardDateProps,o=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(ne(e)!==ne(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var s=a;!(s>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(s=1);var l=this.format(e,n),u=this.format(t,n);if(l===u)return l;var c=Ve(function(e,t){var n={};for(var r in e)(!(r in He)||He[r]<=t)&&(n[r]=e[r]);return n}(i,s),o,n),d=c(e),p=c(t),f=function(e,t,n,r){var i=0;for(;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var a=e.substr(0,o);i=o+t.length;for(var s=e.substr(i),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(a===c&&s===d)return{before:a,after:s}}}return null}(l,d,u,p),h=o.separator||r||n.defaultSeparator||"";return f?f.before+d+h+p+f.after:l+h+u},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 Ve(e,t,n){var i=Object.keys(e).length;return 1===i&&"short"===e.timeZoneName?function(e){return ke(e.timeZoneOffset)}:0===i&&t.week?function(e){return function(e,t,n,r,i){var o=[];"long"===i?o.push(n):"short"!==i&&"narrow"!==i||o.push(t);"long"!==i&&"short"!==i||o.push(" ");o.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&o.reverse();return o.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:function(e,t,n){e=(0,r.__assign)({},e),t=(0,r.__assign)({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var i,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=(0,r.__assign)({},e);delete a.minute,i=new Intl.DateTimeFormat(n.locale.codes,a)}return function(r){var a=r.marker;return function(e,t,n,r,i){e=e.replace(Fe,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(Ue,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":ke(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ae,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));
2!1===r.meridiem?e=e.replace(Oe,"").trim():"narrow"===r.meridiem?e=e.replace(Oe,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(Oe,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(Oe,(function(e){return e.toLocaleLowerCase()})));return e=e.replace(Le," "),e=e.trim(),e}((i&&!a.getUTCMinutes()?i:o).format(a),r,e,t,n)}}(e,t,n)}function Be(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 ze(e,t,n,r){var i=Be(e,n.calendarSystem);return{date:i,start:i,end:t?Be(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var je=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,ze(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,ze(e,t,n,r))},e}(),Ge=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(ze(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(ze(e,t,n,r))},e}();function qe(e){return"object"===typeof e&&e?new We(e):"string"===typeof e?new je(e):"function"===typeof e?new Ge(e):null}var Ye={navLinkDayClick:nt,navLinkWeekClick:nt,duration:ye,bootstrapFontAwesome:nt,buttonIcons:nt,customButtons:nt,defaultAllDayEventDuration:ye,defaultTimedEventDuration:ye,nextDayThreshold:ye,scrollTime:ye,scrollTimeReset:Boolean,slotMinTime:ye,slotMaxTime:ye,dayPopoverFormat:qe,slotDuration:ye,snapDuration:ye,headerToolbar:nt,footerToolbar:nt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:qe,dayHeaderClassNames:nt,dayHeaderContent:nt,dayHeaderDidMount:nt,dayHeaderWillUnmount:nt,dayCellClassNames:nt,dayCellContent:nt,dayCellDidMount:nt,dayCellWillUnmount:nt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:nt,weekNumbers:Boolean,weekNumberClassNames:nt,weekNumberContent:nt,weekNumberDidMount:nt,weekNumberWillUnmount:nt,editable:Boolean,viewClassNames:nt,viewDidMount:nt,viewWillUnmount:nt,nowIndicator:Boolean,nowIndicatorClassNames:nt,nowIndicatorContent:nt,nowIndicatorDidMount:nt,nowIndicatorWillUnmount:nt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:nt,locale:nt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:nt,eventOrder:function(e){var t,n,r=[],i=[];for("string"===typeof e?i=e.split(/\s*,\s*/):"function"===typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)"string"===typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"===typeof n&&r.push({func:n});return r},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:nt,contentHeight:nt,direction:String,weekNumberFormat:qe,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:nt,initialDate:nt,now:nt,eventDataTransform:nt,stickyHeaderDates:nt,stickyFooterScrollbar:nt,viewHeight:nt,defaultAllDay:Boolean,eventSourceFailure:nt,eventSourceSuccess:nt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:nt,eventConstraint:nt,eventAllow:nt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:nt,eventContent:nt,eventDidMount:nt,eventWillUnmount:nt,selectConstraint:nt,selectOverlap:nt,selectAllow:nt,droppable:Boolean,unselectCancel:String,slotLabelFormat:nt,slotLaneClassNames:nt,slotLaneContent:nt,slotLaneDidMount:nt,slotLaneWillUnmount:nt,slotLabelClassNames:nt,slotLabelContent:nt,slotLabelDidMount:nt,slotLabelWillUnmount:nt,dayMaxEvents:nt,dayMaxEventRows:nt,dayMinWidth:Number,slotLabelInterval:ye,allDayText:String,allDayClassNames:nt,allDayContent:nt,allDayDidMount:nt,allDayWillUnmount:nt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:qe,rerenderDelay:Number,moreLinkText:nt,moreLinkHint:nt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:nt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ye,hiddenDays:nt,monthMode:Boolean,fixedWeekCount:Boolean,validRange:nt,visibleRange:nt,titleFormat:nt,eventInteractive:Boolean,noEventsText:String,viewHint:nt,navLinkHint:nt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:nt,moreLinkClassNames:nt,moreLinkContent:nt,moreLinkDidMount:nt,moreLinkWillUnmount:nt},Ze={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},Xe={datesSet:nt,eventsSet:nt,eventAdd:nt,eventChange:nt,eventRemove:nt,windowResize:nt,eventClick:nt,eventMouseEnter:nt,eventMouseLeave:nt,select:nt,unselect:nt,loading:nt,_unmount:nt,_beforeprint:nt,_afterprint:nt,_noEventDrop:nt,_noEventResize:nt,_resize:nt,_scrollRequest:nt},$e={buttonText:nt,buttonHints:nt,views:nt,plugins:nt,initialEvents:nt,events:nt,eventSources:nt},Ke={headerToolbar:Qe,footerToolbar:Qe,buttonText:Qe,buttonHints:Qe,buttonIcons:Qe};function Qe(e,t){return"object"===typeof e&&"object"===typeof t&&e&&t?ce(e,t):e===t}var Je={type:String,component:nt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:nt,usesMinMaxTime:Boolean,classNames:nt,content:nt,didMount:nt,willUnmount:nt};function et(e){return oe(e,Ke)}function tt(e,t){var n={},r={};for(var i in t)i in e&&(n[i]=t[i](e[i]));for(var i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function nt(e){return e}
2function rt(e,t,n,r){for(var i={defs:{},instances:{}},o=Dt(n),a=0,s=e;a<s.length;a++){var l=yt(s[a],t,n,r,o);l&&it(l,i)}return i}function it(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 ot(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=lt(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function at(){return{defs:{},instances:{}}}function st(e,t){return{defs:(0,r.__assign)((0,r.__assign)({},e.defs),t.defs),instances:(0,r.__assign)((0,r.__assign)({},e.instances),t.instances)}}function lt(e,t){var n=ae(e.defs,t),r=ae(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function ut(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}var ct={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:nt,overlap:nt,allow:nt,className:ut,classNames:ut,color:String,backgroundColor:String,borderColor:String,textColor:String},dt={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function pt(e,t){var n=function(e,t){return Array.isArray(e)?rt(e,null,t,!0):"object"===typeof e&&e?rt([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 ft(e){return e.reduce(ht,dt)}function ht(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 gt={id:String,groupId:String,title:String,url:String,interactive:Boolean},vt={start:nt,end:nt,date:nt,allDay:Boolean},mt=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},gt),vt),{extendedProps:nt});function yt(e,t,n,r,i){void 0===i&&(i=Dt(n));var o=Et(e,n,i),a=o.refined,s=o.extra,l=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,r){for(var i=0;i<r.length;i+=1){var o=r[i].parse(e,n);if(o){var a=e.allDay;return null==a&&null==(a=t)&&null==(a=o.allDayGuess)&&(a=!1),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}(a,l,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(c=St(a,s,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:c,instance:null};var c,d=function(e,t,n,r){var i,o,a=e.allDay,s=null,l=!1,u=null,c=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(c),i)s=i.marker;else if(!r)return null;null!=e.end&&(o=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified));a&&s&&(s=Z(s));o&&(u=o.marker,a&&(u=Z(u)),s&&u<=s&&(u=null));u?l=!0:r||(l=n.options.forceEventDuration||!1,u=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:l,range:{start:s,end:u},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(a,l,n,r);return d?{def:c=St(a,s,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:re(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function Et(e,t,n){return void 0===n&&(n=Dt(t)),tt(e,n)}function Dt(e){return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},ct),mt),e.pluginHooks.eventRefiners)}function St(e,t,n,i,o,a){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:x(),sourceId:n,allDay:i,hasEnd:o,interactive:e.interactive,ui:pt(e,a),extendedProps:(0,r.__assign)((0,r.__assign)({},e.extendedProps||{}),t)},l=0,u=a.pluginHooks.eventDefMemberAdders;l<u.length;l++){var c=u[l];(0,r.__assign)(s,c(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function bt(e){var t=Math.floor(q(e.start,e.end))||1,n=Z(e.start);return{start:n,end:z(n,t)}}function Ct(e,t){void 0===t&&(t=ye(0));var n=null,r=null;if(e.end){r=Z(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=Ce(t)&&(r=z(r,1))}return e.start&&(n=Z(e.start),r&&r<=n&&(r=z(n,1))),{start:n,end:r}}function wt(e){var t=Ct(e);return q(t.start,t.end)>1}function _t(e,t,n,r){return"year"===r?ye(n.diffWholeYears(e,t),"year"):"month"===r?ye(n.diffWholeMonths(e,t),"month"):function(e,t){var n=Z(e),r=Z(t);return{years:0,months:0,days:Math.round(q(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}function Rt(e,t){var n,r,i=[],o=t.start;for(e.sort(Tt),n=0;n<e.length;n+=1)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function Tt(e,t){return e.start.valueOf()-t.start.valueOf()}function xt(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function kt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Mt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function It(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Nt(e,t,n,r){var i={},o={},a={}
2,s=[],l=[],u=At(e.defs,t);for(var c in e.defs){"inverse-background"===(f=u[(D=e.defs[c]).defId]).display&&(D.groupId?(i[D.groupId]=[],a[D.groupId]||(a[D.groupId]=D)):o[c]=[])}for(var d in e.instances){var p=e.instances[d],f=u[(D=e.defs[p.defId]).defId],h=p.range,g=!D.allDay&&r?Ct(h,r):h,v=xt(g,n);v&&("inverse-background"===f.display?D.groupId?i[D.groupId].push(v):o[p.defId].push(v):"none"!==f.display&&("background"===f.display?s:l).push({def:D,ui:f,instance:p,range:v,isStart:g.start&&g.start.valueOf()===v.start.valueOf(),isEnd:g.end&&g.end.valueOf()===v.end.valueOf()}))}for(var m in i)for(var y=0,E=Rt(i[m],n);y<E.length;y++){var D,S=E[y];f=u[(D=a[m]).defId];s.push({def:D,ui:f,instance:null,range:S,isStart:!1,isEnd:!1})}for(var c in o)for(var b=0,C=Rt(o[c],n);b<C.length;b++){S=C[b];s.push({def:e.defs[c],ui:u[c],instance:null,range:S,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function Pt(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function Ht(e,t){e.fcSeg=t}function Ot(e){return e.fcSeg||e.parentNode.fcSeg||null}function At(e,t){return se(e,(function(e){return Lt(e,t)}))}function Lt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ft(n)}function Ft(e,t){var n=e.map(Ut);return n.sort((function(e,n){return function(e,t,n){var r,i;for(r=0;r<n.length;r+=1)if(i=O(e,t,n[r]))return i;return 0}(e,n,t)})),n.map((function(e){return e._seg}))}function Ut(e){var t=e.eventRange,n=t.def,i=t.instance?t.instance.range:t.range,o=i.start?i.start.valueOf():0,a=i.end?i.end.valueOf():0;return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:e})}function Wt(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,i=r.def,o=r.ui,a=o.startEditable,s=0,l=n;s<l.length;s++){a=(0,l[s])(a,i,o,t)}return a}function Vt(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Bt(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function zt(e,t,n,r,i,o,a){var s=n.dateEnv,l=n.options,u=l.displayEventTime,c=l.displayEventEnd,d=e.eventRange.def,p=e.eventRange.instance;null==u&&(u=!1!==r),null==c&&(c=!1!==i);var f=p.range.start,h=p.range.end,g=o||e.start||e.eventRange.range.start,v=a||e.end||e.eventRange.range.end,m=Z(f).valueOf()===Z(g).valueOf(),y=Z(j(h,-1)).valueOf()===Z(j(v,-1)).valueOf();return u&&!d.allDay&&(m||y)?(g=m?f:g,v=y?h:v,c&&d.hasEnd?s.formatRange(g,v,t,{forcedStartTzo:o?null:p.forcedStartTzo,forcedEndTzo:a?null:p.forcedEndTzo}):s.format(g,t,{forcedTzo:o?null:p.forcedStartTzo})):""}function jt(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&It(t,r.start)}}function Gt(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function qt(e,t){var n=e.eventRange,r=n.def,i=n.instance,o=r.url;if(o)return{href:o};var a=t.emitter,s=t.options.eventInteractive;return null==s&&null==(s=r.interactive)&&(s=Boolean(a.hasHandlers("eventClick"))),s?R((function(e){a.trigger("eventClick",{el:e.target,event:new dn(t,r,i),jsEvent:e,view:t.viewApi})})):{}}var Yt={start:nt,end:nt,allDay:Boolean};function Zt(e,t,n){var i=function(e,t){var n=tt(e,Yt),i=n.refined,o=n.extra,a=i.start?t.createMarkerMeta(i.start):null,s=i.end?t.createMarkerMeta(i.end):null,l=i.allDay;null==l&&(l=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified));return(0,r.__assign)({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:l},o)}(e,t),o=i.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return i}function Xt(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 $t(e,t,n){return(0,r.__assign)((0,r.__assign)({},Kt(e,t,n)),{timeZone:t.timeZone})}function Kt(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",(0,r.__assign)((0,r.__assign)({},Jt(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Jt(e,t){for(var n,i,o={},a=0,s=t.pluginHooks.dateSpanTransforms;a<s.length;a++){var l=s[a];(0,r.__assign)(o,l(e,t))}return(0,r.__assign)(o,(n=e,i=t.dateEnv,(0,r.__assign)((0,r.__assign)({},Kt(n.range,i,n.allDay)),{allDay:n.allDay}))),o}
2function en(e,t,n){var r=n.dateEnv,i=n.options,o=t;return e?(o=Z(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function tn(e,t,n,r){var i=At(e.defs,t),o={defs:{},instances:{}};for(var a in e.defs){var s=e.defs[a];o.defs[a]=nn(s,i[a],n,r)}for(var l in e.instances){var u=e.instances[l];s=o.defs[u.defId];o.instances[l]=rn(u,s,i[u.defId],n,r)}return o}function nn(e,t,n,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var a=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},e),o),{ui:(0,r.__assign)((0,r.__assign)({},e.ui),o.ui)});n.extendedProps&&(a.extendedProps=(0,r.__assign)((0,r.__assign)({},a.extendedProps),n.extendedProps));for(var s=0,l=i.pluginHooks.eventDefMutationAppliers;s<l.length;s++){(0,l[s])(a,n,i)}return!a.hasEnd&&i.options.forceEventDuration&&(a.hasEnd=!0),a}function rn(e,t,n,i,o){var a=o.dateEnv,s=i.standardProps&&!0===i.standardProps.allDay,l=i.standardProps&&!1===i.standardProps.hasEnd,u=(0,r.__assign)({},e);return s&&(u.range=bt(u.range)),i.datesDelta&&n.startEditable&&(u.range={start:a.add(u.range.start,i.datesDelta),end:a.add(u.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(u.range={start:a.add(u.range.start,i.startDelta),end:u.range.end}),i.endDelta&&n.durationEditable&&(u.range={start:u.range.start,end:a.add(u.range.end,i.endDelta)}),l&&(u.range={start:u.range.start,end:en(t.allDay,u.range.start,o)}),t.allDay&&(u.range={start:Z(u.range.start),end:Z(u.range.end)}),u.range.end<u.range.start&&(u.range.end=en(t.allDay,u.range.start,o)),u}var on=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}(),an={id:String,defaultAllDay:Boolean,url:String,format:String,events:nt,eventDataTransform:nt,success:nt,failure:nt};function sn(e,t,n){var r;if(void 0===n&&(n=ln(t)),"string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){var i=tt(r,n),o=i.refined,a=i.extra,s=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var i=n[r].parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}(o,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:x(),sourceDefId:s.sourceDefId,meta:s.meta,ui:pt(o,t),extendedProps:a}}return null}function ln(e){return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},ct),an),e.pluginHooks.eventSourceRefiners)}function un(e,t){return"function"===typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var cn=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=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(t=this.currentDataManager.emitter).trigger.apply(t,(0,r.__spreadArray)([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(),i=r.viewSpecs,o=r.toolbarConfig,a=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(var s in i)a.push(s);for(t=0;t<a.length;t+=1)if((n=i[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:un(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=ye(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),qe(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),qe(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(),i=Zt(n,r.dateEnv,ye({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),Qt(i,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 dn){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:it({def:n,instance:r})}),this.triggerEventAdd(e)),e}var i,o=this.getCurrentData();if(t instanceof c)i=t.internalEventSource;else if("boolean"===typeof t)t&&(i=ue(o.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;i=a.internalEventSource}var s=yt(e,i,o,!1);if(s){var l=new dn(o,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:it(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:pn(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,i=n.instances;for(var o in e=String(e),r){var a=r[o];if(a.publicId===e){if(a.recurringDef)return new dn(t,a,null);for(var s in i){var l=i[s];if(l.defId===a.defId)return new dn(t,a,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return fn(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 c(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 c(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof c)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=sn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new c(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=ye(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),dn=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 vt)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=gt[e](t),this.mutate({standardProps:{publicId:t}});else if(e in gt)t=gt[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in ct){var i=ct[e](t);"color"===e?i={backgroundColor:t,borderColor:t}:"editable"===e?i={startEditable:t,durationEditable:t}:((r={})[e]=t,i=r),this.mutate({standardProps:{ui:i}})}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 i=_t(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},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 i=_t(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i,o,a=this._context.dateEnv,s={allDay:n.allDay},l=a.createMarker(e);if(l&&((null==t||(r=a.createMarker(t)))&&this._instance)){var u=this._instance.range;!0===n.allDay&&(u=bt(u));var c=_t(u.start,l,a,n.granularity);if(r){var d=_t(u.end,r,a,n.granularity);o=d,(i=c).years===o.years&&i.months===o.months&&i.days===o.days&&i.milliseconds===o.milliseconds?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}},e.prototype.moveStart=function(e){var t=ye(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=ye(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=ye(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=qe(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,i=this._context,o=i.getCurrentData().eventStore,a=ot(o,n.instanceId);a=tn(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);var s=new e(i,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:fn(a,i,n),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},e.prototype.remove=function(){var e=this._context,t=pn(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}
2,Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new c(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,i=this.startStr,o=this.endStr,a={};return t.title&&(a.title=t.title),i&&(a.start=i),o&&(a.end=o),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?(0,r.__assign)(a,t.extendedProps):a.extendedProps=t.extendedProps),a},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function pn(e){var t,n,r=e._def,i=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:i?(n={},n[i.instanceId]=i,n):{}}}function fn(e,t,n){var r=e.defs,i=e.instances,o=[],a=n?n.instanceId:"";for(var s in i){var l=i[s],u=r[l.defId];l.instanceId!==a&&o.push(new dn(t,u,l))}return o}var hn={};var gn,vn=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 ee(e)},e.prototype.markerToArray=function(e){return J(e)},e}();gn=vn,hn["gregory"]=gn;var mn=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var yn=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 hn[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.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.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()):ee(K(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=ee(e)),null!==t&&te(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=mn.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(te(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 ne(e)===ne(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 ne(e)===ne(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=Y(e,t);return null!==n&&n%7===0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:null!==(n=Y(e,t))?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),U(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),U(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),U(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=Y(e,t))?r/be(n):(t.valueOf()-e.valueOf())/Ce(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?Z(e):"hour"===t?function(e){return ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return ee([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(),i=X(e,r,t,n);if(i<1)return X(e,r-1,t,n);var o=X(e,r+1,t,n);return o>=1?Math.min(i,o):i}(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=j(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)),Re(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ee(K(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ee(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-Q(J(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(J(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?Q(J(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(J(e))*60):new Date(e.valueOf()-(t||0))},e}(),En=[],Dn={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Sn=(0,r.__assign)((0,r.__assign)({},Dn),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function bn(e){for(var t=e.length>0?e[0].code:"en",n=En.concat(e),r={en:Sn},i=0,o=n;i<o.length;i++){var a=o[i];r[a.code]=a}return{map:r,defaultCode:t}}function Cn(e,t){return"object"!==typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i-=1){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}(n,t)||Sn;return wn(e,n,r)}(e,t):wn(e.code,[e.code],e)}function wn(e,t,n){var r=oe([Dn,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var _n,Rn={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Tn(e,t){return rt(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(0,r.__assign)((0,r.__assign)({},Rn),e)}))}(e),null,t)}function xn(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function kn(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 Mn(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 In(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Nn(e,t){return{left:e.left-t.left,top:e.top-t.top}}
2function Pn(){return null==_n&&(_n=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}()),_n}var Hn={defs:{},instances:{}},On=function(){function e(){this.getKeysForEventDefs=Ie(this._getKeysForEventDefs),this.splitDateSelection=Ie(this._splitDateSpan),this.splitEventStore=Ie(this._splitEventStore),this.splitIndividualUi=Ie(this._splitIndividualUi),this.splitEventDrag=Ie(this._splitInteraction),this.splitEventResize=Ie(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=se(n,(function(e,n){return t.eventUiBuilders[n]||Ie(An)})),n){var d=n[c],p=a[c]||Hn,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:p,eventUiBases:f(e.eventUiBases[""],d.ui,o[c]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:l[c]||null}}return u},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 se(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var o in n)for(var a=0,s=t[o];a<s.length;a++){i[p=s[a]]||(i[p]={defs:{},instances:{}}),i[p].defs[o]=n[o]}for(var l in r)for(var u=r[l],c=0,d=t[u.defId];c<d.length;c++){var p;i[p=d[c]]&&(i[p].instances[l]=u)}return i},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,o=t[r];i<o.length;i++){var a=o[i];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),i=this._splitEventStore(e.mutatedEvents,r),o=function(r){t[r]||(t[r]={affectedEvents:n[r]||Hn,mutatedEvents:i[r]||Hn,isEvent:e.isEvent})};for(var a in n)o(a);for(var a in i)o(a)}return t},e}();function An(e,t,n){var i=[];e&&i.push(e),t&&i.push(t);var o={"":ft(i)};return n&&(0,r.__assign)(o,n),o}function Ln(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!It(r.activeRange,e)),isOther:Boolean(r&&!It(r.currentRange,e)),isToday:Boolean(t&&It(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Fn(e,t){var n=["fc-day","fc-day-"+V[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}var Un=qe({year:"numeric",month:"long",day:"numeric"}),Wn=qe({week:"long"});function Vn(e,t,n,i){void 0===n&&(n="day"),void 0===i&&(i=!0);var o=e.dateEnv,a=e.options,s=e.calendarApi,l=o.format(t,"week"===n?Wn:Un);if(a.navLinks){var u=o.toDate(t),c=function(e){var r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"===typeof r?r.call(s,o.toDate(t),e):("string"===typeof r&&(n=r),s.zoomTo(t,n))};return(0,r.__assign)({title:L(a.navLinkHint,[l,u],l),"data-navlink":""},i?_(c):{onClick:c})}return{"aria-label":l}}var Bn,zn=null;function jn(){return null===zn&&(zn=function(){var e=document.createElement("div");g(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}()),zn}function Gn(){return Bn||(Bn=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=qn(e);return document.body.removeChild(e),t}()),Bn}function qn(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}
2function Yn(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():Zn(e),i=function(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=qn(e),l=s.y-r-i,u={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:s.x-o-a,scrollbarLeft:0,scrollbarRight:0};return jn()&&"rtl"===n.direction?u.scrollbarLeft=l:u.scrollbarRight=l,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}(e,t),o={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(o.left+=i.paddingLeft,o.right-=i.paddingRight,o.top+=i.paddingTop,o.bottom-=i.paddingBottom),o}function Zn(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 Xn(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 $n=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]||[],i=this.options&&this.options[e],o=0,a=[].concat(i||[],r);o<a.length;o++){a[o].apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();var Kn=function(){function e(e,t,n,r){this.els=t;var i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t},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}(),Qn=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}(),Jn=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return(0,r.__extends)(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}(Qn),er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(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}(Qn),tr=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=(0,r.__assign)({},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}();tr.prototype.classes={},tr.prototype.iconClasses={},tr.prototype.baseIconClass="",tr.prototype.iconOverridePrefix="";var nr=function(){function e(e,t,n,i){var o=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=i,this.handleScrollRequest=function(e){o.queuedRequest=(0,r.__assign)({},o.queuedRequest||{},e),o.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}(),rr=l({});function ir(e,t,n,r,i,o,a,s,l,u,c,d,p){return{dateEnv:i,options:n,pluginHooks:a,emitter:u,dispatch:s,getCurrentData:l,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new nr(e,u,ye(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:p}}var or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(de(e,this.props),de(t,this.state)),!pe(this.props,e,this.propEquality)||!pe(this.state,t,this.stateEquality)},t.addPropsEquality=sr,t.addStateEquality=lr,t.contextType=rr,t}(i);or.prototype.propEquality={},or.prototype.stateEquality={};var ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.contextType=rr,t}(or);function sr(e){var t=Object.create(this.prototype.propEquality);(0,r.__assign)(t,e),this.prototype.propEquality=t}function lr(e){var t=Object.create(this.prototype.stateEquality);(0,r.__assign)(t,e),this.prototype.stateEquality=t}function ur(e,t){"function"===typeof e?e(t):e&&(e.current=t)}var cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=x(),t}return(0,r.__extends)(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}(ar);function dr(e){return{id:x(),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 pr(){var e,t=[],n=[];return function(i,o){return e&&Me(i,t)&&Me(o,n)||(e=function(e,t){var n={},i={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];n[s.id]||(n[s.id]=!0,o(s.deps),u=s,i={reducers:(l=i).reducers.concat(u.reducers),isLoadingFuncs:l.isLoadingFuncs.concat(u.isLoadingFuncs),contextInit:l.contextInit.concat(u.contextInit),eventRefiners:(0,r.__assign)((0,r.__assign)({},l.eventRefiners),u.eventRefiners),eventDefMemberAdders:l.eventDefMemberAdders.concat(u.eventDefMemberAdders),eventSourceRefiners:(0,r.__assign)((0,r.__assign)({},l.eventSourceRefiners),u.eventSourceRefiners),isDraggableTransformers:l.isDraggableTransformers.concat(u.isDraggableTransformers),eventDragMutationMassagers:l.eventDragMutationMassagers.concat(u.eventDragMutationMassagers),eventDefMutationAppliers:l.eventDefMutationAppliers.concat(u.eventDefMutationAppliers),dateSelectionTransformers:l.dateSelectionTransformers.concat(u.dateSelectionTransformers),datePointTransforms:l.datePointTransforms.concat(u.datePointTransforms),dateSpanTransforms:l.dateSpanTransforms.concat(u.dateSpanTransforms),views:(0,r.__assign)((0,r.__assign)({},l.views),u.views),viewPropsTransformers:l.viewPropsTransformers.concat(u.viewPropsTransformers),isPropsValid:u.isPropsValid||l.isPropsValid,externalDefTransforms:l.externalDefTransforms.concat(u.externalDefTransforms),viewContainerAppends:l.viewContainerAppends.concat(u.viewContainerAppends),eventDropTransformers:l.eventDropTransformers.concat(u.eventDropTransformers),calendarInteractions:l.calendarInteractions.concat(u.calendarInteractions),componentInteractions:l.componentInteractions.concat(u.componentInteractions),theme
2Classes:(0,r.__assign)((0,r.__assign)({},l.themeClasses),u.themeClasses),eventSourceDefs:l.eventSourceDefs.concat(u.eventSourceDefs),cmdFormatter:u.cmdFormatter||l.cmdFormatter,recurringTypes:l.recurringTypes.concat(u.recurringTypes),namedTimeZonedImpl:u.namedTimeZonedImpl||l.namedTimeZonedImpl,initialView:l.initialView||u.initialView,elementDraggingImpl:l.elementDraggingImpl||u.elementDraggingImpl,optionChangeHandlers:(0,r.__assign)((0,r.__assign)({},l.optionChangeHandlers),u.optionChangeHandlers),scrollGridImpl:u.scrollGridImpl||l.scrollGridImpl,contentTypeHandlers:(0,r.__assign)((0,r.__assign)({},l.contentTypeHandlers),u.contentTypeHandlers),listenerRefiners:(0,r.__assign)((0,r.__assign)({},l.listenerRefiners),u.listenerRefiners),optionRefiners:(0,r.__assign)((0,r.__assign)({},l.optionRefiners),u.optionRefiners),propSetHandlers:(0,r.__assign)((0,r.__assign)({},l.propSetHandlers),u.propSetHandlers)})}var l,u}return e&&o(e),o(t),i}(i,o)),t=i,n=o,e}}var fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t}(tr);function hr(e,t,n,i){if(t[e])return t[e];var o=function(e,t,n,i){var o=n[e],a=i[e],s=function(e){return o&&null!==o[e]?o[e]:a&&null!==a[e]?a[e]:null},l=s("component"),u=s("superType"),c=null;if(u){if(u===e)throw new Error("Can't have a custom view type that references itself");c=hr(u,t,n,i)}!l&&c&&(l=c.component);if(!l)return null;return{type:e,component:l,defaults:(0,r.__assign)((0,r.__assign)({},c?c.defaults:{}),o?o.rawOptions:{}),overrides:(0,r.__assign)((0,r.__assign)({},c?c.overrides:{}),a?a.rawOptions:{})}}(e,t,n,i);return o&&(t[e]=o),o}fr.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},fr.prototype.baseIconClass="fc-icon",fr.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"},fr.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},fr.prototype.iconOverrideOption="buttonIcons",fr.prototype.iconOverrideCustomButtonOption="icon",fr.prototype.iconOverridePrefix="fc-icon-";var gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=a(),t.handleRootEl=function(e){ur(t.rootElRef,e),t.props.elRef&&ur(t.props.elRef,e)},t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return o(Er,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return o(mr,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,i){return t.children(r,Sr(t.classNames,n),e,i)}))}))},t}(ar),vr=l(0);function mr(e){return o(vr.Consumer,null,(function(t){return o(yr,(0,r.__assign)({renderId:t},e))}))}var yr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=a(),t}return(0,r.__extends)(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=(0,r.__assign)({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=br(e.content,e.hookProps);return void 0===t&&(t=br(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 i in t)if(void 0!==e[i]){n=i,r=t[i];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}(ar),Er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&ur(t.props.elRef,e)},t}return(0,r.__extends)(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e((0,r.__assign)((0,r.__assign)({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e((0,r.__assign)((0,r.__assign)({},this.props.hookProps),{el:this.rootEl}))},t}(ar);function Dr(){var e,t,n=[];return function(r,i){return t&&ce(t,i)&&r===e||(e=r,t=i,n=Sr(r,i)),n}}function Sr(e,t){return"function"===typeof e&&(e=e(t)),ut(e)}function br(e,t){return"function"===typeof e?e(t,o):e}var Cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=Dr(),t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},i=this.normalizeClassNames(n.viewClassNames,r);return o(Er,{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(i))}))},t}(ar);function wr(e){return se(e,_r)}function _r(e){var t,n="function"===typeof e?{component:e}:e,i=n.component;return n.content&&(t=n,i=function(e){return o(rr.Consumer,null,(function(n){return o(Cr,{viewSpec:n.viewSpec},(function(i,a){var s=(0,r.__assign)((0,r.__assign)({},e),{nextDayThreshold:n.options.nextDayThreshold});return o(gr,{hookProps:s,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:i},(function(e,t,n,r){return o("div",{className:a.concat(t).join(" "),ref:e},r)}))}))}))}),{superType:n.type,component:i,rawOptions:n}}function Rr(e,t,n,i){var o=wr(e),a=wr(t.views),s=function(e,t){var n,r={};for(n in e)hr(n,r,e,t);for(n in t)hr(n,r,e,t);return r}(o,a);return se(s,(function(e){return function(e,t,n,i,o){var a=e.overrides.duration||e.defaults.duration||i.duration||n.duration,s=null,l="",u="",c={};
2if(a&&(s=function(e){var t=JSON.stringify(e),n=Tr[t];void 0===n&&(n=ye(e),Tr[t]=n);return n}(a),s)){var d=_e(s);l=d.unit,1===d.value&&(u=l,c=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[u]?n[u]:null},f=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[u]?n[u]:null};return{type:e.type,component:e.component,duration:s,durationUnit:l,singleUnit:u,optionDefaults:e.defaults,optionOverrides:(0,r.__assign)((0,r.__assign)({},c),e.overrides),buttonTextOverride:p(i)||p(n)||e.overrides.buttonText,buttonTextDefault:p(o)||e.defaults.buttonText||p(Ze)||e.type,buttonTitleOverride:f(i)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(o)||e.defaults.buttonHint||f(Ze)}}(e,a,t,n,i)}))}var Tr={};var xr=function(){function e(e){this.props=e,this.nowDate=un(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,i,o,a,s,l,u,c,d=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(u=e,e=null!=(c=r).start&&u<c.start?c.start:null!=c.end&&u>=c.end?new Date(c.end.valueOf()-1):u),i=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(i.unit),a=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),s=a=this.trimHiddenDays(a),d.showNonCurrentDates||(s=xt(s,i.range)),s=xt(s=this.adjustActiveRange(s),r),l=kt(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:s,renderRange:a,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.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,i=null,o=null,a=null;return r.duration?(i=r.duration,o=r.durationUnit,a=this.buildRangeFromDuration(e,t,i,o)):(n=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=_e(i=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,i,o)),{duration:i,unit:o,range:a}},e.prototype.getFallbackDuration=function(){return ye({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,i=t.slotMinTime,o=t.slotMaxTime,a=e.start,s=e.end;return r&&(be(i)<0&&(a=Z(a),a=n.add(a,i)),be(o)>1&&(s=z(s=Z(s),-1),s=n.add(s,o))),{start:a,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,a,s=this.props,l=s.dateEnv,u=s.dateAlignment;if(!u){var c=this.props.dateIncrement;u=c&&Ce(c)<Ce(n)?_e(c).unit:r}function d(){i=l.startOf(e,u),o=l.add(i,n),a={start:i,end:o}}return be(n)<=1&&this.isHiddenDay(i)&&(i=Z(i=this.skipHiddenDays(i,t))),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.props,o=i.dateEnv,a=i.dateAlignment,s=0,l=e;a&&(l=o.startOf(l,a)),l=Z(l),r=l=this.skipHiddenDays(l,t);do{r=z(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,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i: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)?ye(1,t):e||ye({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=Ct(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");
2this.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=z(e,t);return e},e}();function kr(e,t,n){var r=t?t.activeRange:null;return Nr({},function(e,t){var n=ln(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var o=0,a=r;o<a.length;o++){var s=sn(a[o],t,n);s&&i.push(s)}return i}(e,n),r,n)}function Mr(e,t,n,i){var o,a,s=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Nr(e,t.sources,s,i);case"REMOVE_EVENT_SOURCE":return o=e,a=t.sourceId,ae(o,(function(e){return e.sourceId!==a}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Pr(e,s,i):e;case"FETCH_EVENT_SOURCES":return Hr(e,t.sourceIds?le(t.sourceIds):Ar(e,i),s,t.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,i){var o,a=e[t];if(a&&n===a.latestFetchId)return(0,r.__assign)((0,r.__assign)({},e),((o={})[t]=(0,r.__assign)((0,r.__assign)({},a),{isFetching:!1,fetchRange:i}),o));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Ir(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Nr(e,t,n,i){for(var o={},a=0,s=t;a<s.length;a++){var l=s[a];o[l.sourceId]=l}return n&&(o=Pr(o,n,i)),(0,r.__assign)((0,r.__assign)({},e),o)}function Pr(e,t,n){return Hr(e,ae(e,(function(e){return function(e,t,n){if(!Lr(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 Hr(e,t,n,r,i){var o={};for(var a in e){var s=e[a];t[a]?o[a]=Or(s,n,r,i):o[a]=s}return o}function Or(e,t,n,i){var o=i.options,a=i.calendarApi,s=i.pluginHooks.eventSourceDefs[e.sourceDefId],l=x();return s.fetch({eventSource:e,range:t,isRefetch:n,context:i},(function(n){var r=n.rawEvents;o.eventSourceSuccess&&(r=o.eventSourceSuccess.call(a,r,n.xhr)||r),e.success&&(r=e.success.call(a,r,n.xhr)||r),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:r})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(a,n),e.failure&&e.failure(n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})})),(0,r.__assign)((0,r.__assign)({},e),{isFetching:!0,latestFetchId:l})}function Ar(e,t){return ae(e,(function(e){return Lr(e,t)}))}function Lr(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Fr(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var a=rt(function(e,t,n){var r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;i&&(e=Ur(e,i));r&&(e=Ur(e,r));return e}(i,t,o),t,o);return r&&(a=he(a,r,o)),st(Wr(e,t.sourceId),a)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=he(t,n,r));return st(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return st(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?he(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,i={},o={};for(var a in n)t.defs[a]||(i[a]=n[a]);for(var s in r)!t.instances[s]&&i[r[s].defId]&&(o[s]=r[s]);return{defs:i,instances:o}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Wr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return lt(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Ur(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],a=t(o);a?n.push(a):null==a&&n.push(o)}}else n=e;return n}function Wr(e,t){return lt(e,(function(e){return e.sourceId!==t}))}function Vr(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Br(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function zr(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 jr(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 Gr(e,t,n,r,i){return{header:e.headerToolbar?qr(e.headerToolbar,e,t,n,r,i):null,footer
2:e.footerToolbar?qr(e.footerToolbar,e,t,n,r,i):null}}function qr(e,t,n,r,i,o){var a={},s=[],l=!1;for(var u in e){var c=Yr(e[u],t,n,r,i,o);a[u]=c.widgets,s.push.apply(s,c.viewsWithButtons),l=l||c.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:l}}function Yr(e,t,n,r,i,o){var a="rtl"===t.direction,s=t.customButtons||{},l=n.buttonText||{},u=t.buttonText||{},c=n.buttonHints||{},d=t.buttonHints||{},p=e?e.split(" "):[],f=[],h=!1;return{widgets:p.map((function(e){return e.split(",").map((function(e){if("title"===e)return h=!0,{buttonName:e};var n,p,g,v,m,y;if(n=s[e])g=function(e){n.click&&n.click.call(e.target,e,e.target)},(v=r.getCustomButtonIconClass(n))||(v=r.getIconClass(e,a))||(m=n.text),y=n.hint||n.text;else if(p=i[e]){f.push(e),g=function(){o.changeView(e)},(m=p.buttonTextOverride)||(v=r.getIconClass(e,a))||(m=p.buttonTextDefault);var E=p.buttonTextOverride||p.buttonTextDefault;y=L(p.buttonTitleOverride||p.buttonTitleDefault||t.viewHint,[E,e],E)}else if(o[e])if(g=function(){o[e]()},(m=l[e])||(v=r.getIconClass(e,a))||(m=u[e]),"prevYear"===e||"nextYear"===e){var D="prevYear"===e?"prev":"next";y=L(c[D]||d[D],[u.year||"year","year"],u[e])}else y=function(t){return L(c[e]||d[e],[u[t]||t,t],u[e])};return{buttonName:e,buttonClick:g,buttonIcon:v,buttonText:m,buttonHint:y}}))})),viewsWithButtons:f,hasTitle:h}}function Zr(e,t,n,r,i){var o=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Xr(t)}(t,n):o=Xr(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):i("Failure parsing JSON",a)}else i("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}function Xr(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function $r(e,t){for(var n=ue(t.getCurrentData().eventSources),r=[],i=0,o=e;i<o.length;i++){for(var a=o[i],s=!1,l=0;l<n.length;l+=1)if(n[l]._raw===a){n.splice(l,1),s=!0;break}s||r.push(a)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var p=0,f=r;p<f.length;p++){var h=f[p];t.calendarApi.addEventSource(h)}}var Kr=[dr({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),dr({eventSourceDefs:[{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,i=function(){r||(r=!0,t.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(i,o);a&&"function"===typeof a.then&&a.then(i,o)}(e.eventSource.meta.bind(null,$t(e.range,r)),(function(e){t({rawEvents:e})}),n)}}]}),dr({eventSourceRefiners:{method:String,extraParams:nt,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 i=e.eventSource.meta,o=function(e,t,n){var i,o,a,s,l=n.dateEnv,u=n.options,c={};i=e.startParam,null==i&&(i=u.startParam);o=e.endParam,null==o&&(o=u.endParam);a=e.timeZoneParam,null==a&&(a=u.timeZoneParam);s="function"===typeof e.extraParams?e.extraParams():e.extraParams||{};(0,r.__assign)(c,s),c[i]=l.formatIso(t.start),c[o]=l.formatIso(t.end),"local"!==l.timeZone&&(c[a]=l.timeZone);return c}(i,e.range,e.context);Zr(i.method,i.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}}]}),dr({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&&(i=e.endTime,o=e.startTime,r={years:i.years-o.years,months:i.months-o.months,days:i.days-o.days,milliseconds:i.milliseconds-o.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var i,o;return null},expand:function(e,t,n){var r=xt(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var i=e?le(e):null,o=Z(n.start),a=n.end,s=[];for(;o<a;){var l=void 0;i&&!i[o.getUTCDay()]||(l=t?r.add(o,t):o,s.push(l)),o=z(o,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:nt,startTime:ye,endTime:ye,duration:ye,startRecur:nt,endRecur:nt}}
2),dr({optionChangeHandlers:{events:function(e,t){$r([e],t)},eventSources:$r}}),dr({isLoadingFuncs:[function(e){return Ir(e.eventSources)}],contentTypeHandlers:{html:function(){var e=null,t="";return{render:function(n,r){n===e&&r===t||(n.innerHTML=r),e=n,t=r},destroy:function(){e.innerHTML="",e=null,t=""}}},domNodes:function(){var e=null,t=[];function n(){t.forEach(d),t=[],e=null}return{render:function(r,i){var o=Array.prototype.slice.call(i);if(r!==e||!Me(t,o)){for(var a=0,s=o;a<s.length;a++){var l=s[a];r.appendChild(l)}n()}e=r,t=o},destroy:n}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",(0,r.__assign)((0,r.__assign)({},$t(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",fn(e,t))}}})];var Qr=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}(),Jr=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Qr(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 ei(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,qe(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=Y(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 ti=function(){function e(e){var t=this;this.computeOptionsData=Ie(this._computeOptionsData),this.computeCurrentViewData=Ie(this._computeCurrentViewData),this.organizeRawLocales=Ie(bn),this.buildLocale=Ie(Cn),this.buildPluginHooks=pr(),this.buildDateEnv=Ie(ni),this.buildTheme=Ie(ri),this.parseToolbars=Ie(Gr),this.buildViewSpecs=Ie(Rr),this.buildDateProfileGenerator=Ne(ii),this.buildViewApi=Ie(oi),this.buildViewUiProps=Ne(li),this.buildEventUiBySource=Ie(ai,ce),this.buildEventUiBases=Ie(si),this.parseContextBusinessHours=Ne(ci),this.buildTitle=Ie(ei),this.emitter=new $n,this.actionRunner=new Jr(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={},i=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=i.calendarOptions.initialView||i.pluginHooks.initialView,a=this.computeCurrentViewData(o,i,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):un(e.now,t)}(i.calendarOptions,i.dateEnv),l=a.dateProfileGenerator.build(s);It(l.activeRange,s)||(s=l.currentRange.start);for(var u={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},c=0,d=i.pluginHooks.contextInit;c<d.length;c++){(0,d[c])(u)}for(var p=kr(i.calendarOptions,l,u),f={dynamicOptionOverrides:n,currentViewType:o,currentDate:s,dateProfile:l,businessHours:this.parseContextBusinessHours(u),eventSources:p,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(u).selectionConfig},h=(0,r.__assign)((0,r.__assign)({},u),f),g=0,v=i.pluginHooks.reducers;g<v.length;g++){var m=v[g];(0,r.__assign)(f,m(null,null,h))}ui(f,u)&&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?(0,r.__assign)((0,r.__assign)({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,i=t.state,o=t.emitter,a=function(e,t){var n;return"SET_OPTION"===t.type?(0,r.__assign)((0,r.__assign)({},e),((n={})[t.optionName]=t.rawOptionValue,n)):e}(i.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),l=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(i.currentViewType,e),u=this.computeCurrentViewData(l,s,n.optionOverrides,a);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(u.options);var c={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},d=i.currentDate,p=i.dateProfile;this.data&&this.data.dateProfileGenerator!==u.dateProfileGenerator&&(p=u.dateProfileGenerator.build(d)),d=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(d,e),p=function(e,t,n,r){var i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((i=r.buildPrev(e,n)).isValid)return i;break;case"NEXT":if((i=r.buildNext(e,n)).isValid)return i}return e}(p,e,d,u.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&It(p.currentRange,d)||(d=p.currentRange.start);for(var f=Mr(i.eventSources,e,p,c),h=Fr(i.eventStore,e,f,p,c),g=Ir(f)&&!u.options.progressiveEventRendering&&i.renderableEventStore||h,v=this.buildViewUiProps(c),m=v.eventUiSingleBase,y=v.selectionConfig,E=this.buildEventUiBySource(f),D={dynamicOptionOverrides:a,currentViewType:l,currentDate:d,dateProfile:p,eventSources:f,eventStore:h,renderableEventStore:g,selectionConfig:y,eventUiBases:this.buildEventUiBases(g.defs,m,E),businessHours:this.parseContextBusinessHours(c),dateSelection:Vr(i.dateSelection,e),eventSelection:Br(i.eventSelection,e),eventDrag:zr(i.eventDrag,e),eventResize:jr(i.eventResize,e)},S=(0,r.__assign)((0,r.__assign)({},c),D),b=0,C=s.pluginHooks.reducers;b<C.length;b++){var w=C[b];(0,r.__assign)(D,w(i,e,S))}var _=ui(i,c),R=ui(D,c);!_&&R?o.trigger("loading",!0):_&&!R&&o.trigger("loading",!1),this.state=D,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e=this.props,t=this.state,n=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=(0,r.__assign)((0,r.__assign)((0,r.__assign)({viewTitle:this.buildTitle(t.dateProfile,o.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),t),s=i.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,u=i.calendarOptions;if(l&&l!==u)for(var c in l.timeZone!==u.timeZone&&(t.eventSources=a.eventSources=function(e,t,n){var r=t?t.activeRange:null;return Hr(e,Ar(e,n),r,!0,n)}(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=function(e,t,n){var i=e.defs,o=se(e.instances,(function(e){var o=i[e.defId];return o.allDay||o.recurringDef?e:(0,r.__assign)((0,r.__assign)({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:i,instances:o}}
2(a.eventStore,n.dateEnv,a.dateEnv)),s)l[c]!==u[c]&&s[c](u[c],a);e.onData&&e.onData(a)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),i=r.refinedOptions,o=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData;di(r.extra);var l=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),u=this.buildViewSpecs(o.views,e,t,a),c=this.buildTheme(i,o);return{calendarOptions:i,pluginHooks:o,dateEnv:l,viewSpecs:u,theme:c,toolbarConfig:this.parseToolbars(i,e,c,u,n),localeDefaults:a,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=et([Ze,e,t]),i=n.locales,o=n.locale,a=this.organizeRawLocales(i),s=a.map,l=this.buildLocale(o||a.defaultCode,s).options,u=this.buildPluginHooks(e.plugins||[],Kr),c=this.currentCalendarOptionsRefiners=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},Ye),Xe),$e),u.listenerRefiners),u.optionRefiners),d={},p=et([Ze,l,e,t]),f={},h=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,v=!1;for(var m in p)"plugins"!==m&&(p[m]===h[m]||Ke[m]&&m in h&&Ke[m](h[m],p[m])?f[m]=g[m]:c[m]?(f[m]=c[m](p[m]),v=!0):d[m]=h[m]);return v&&(this.currentCalendarOptionsInput=p,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:u,availableLocaleData:a,localeDefaults:l,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,r){var i=t.viewSpecs[e];if(!i)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var o=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r),a=o.refinedOptions;return di(o.extra),{viewSpec:i,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime: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,i,o){var a=et([Ze,e.optionDefaults,n,i,e.optionOverrides,o]),s=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},Ye),Xe),$e),Je),t.listenerRefiners),t.optionRefiners),l={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,p={};for(var f in a)a[f]===u[f]?l[f]=c[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 ni(e,t,n,r,i,o,a,s){var l=Cn(t||a.defaultCode,a.map);return new yn({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function ri(e,t){return new(t.themeClasses[e.themeSystem]||fr)(e)}function ii(e){return new(e.dateProfileGeneratorClass||xr)(e)}function oi(e,t,n){return new on(e,t,n)}function ai(e){return se(e,(function(e){return e.ui}))}function si(e,t,n){var r={"":t};for(var i in e){var o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function li(e){var t=e.options;return{eventUiSingleBase:pt({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.eventBackgroun
2dColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:pt({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ui(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function ci(e){return Tn(e.options.businessHours,e)}function di(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var pi=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 ti({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return(0,r.__extends)(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}(i);var fi=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 i=r[n];this.insertEntry(i,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 i=0,o=[],a=e.span,s=t.span;return a.start<s.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:s.start}},o)),a.end>s.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:a.end}},o)),i?(n.push.apply(n,(0,r.__spreadArray)([{index:e.index,thickness:e.thickness,span:mi(s,a)}],o)),i):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(yi(r,t.level,t.levelCoord),yi(n,t.level,[e])):yi(n[t.level],t.lateral,e),this.stackCnts[gi(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,i=t.strictOrder,o=t.stackCnts,a=n.length,s=0,l=-1,u=-1,c=null,d=0,p=0;p<a;p+=1){var f=n[p];if(!i&&f>=s+e.thickness)break;for(var h=r[p],g=void 0,v=Ei(h,e.span.start,hi),m=v[0]+v[1];(g=h[m])&&g.span.start<e.span.end;){var y=f+g.thickness;y>s&&(s=y,c=g,l=p,u=m),y===s&&(d=Math.max(d,o[gi(g)]+1)),m+=1}}var E=0;if(c)for(E=l+1;E<a&&n[E]<s;)E+=1;var D=-1;return E<a&&n[E]===s&&(D=Ei(r[E],e.span.end,hi)[0]),{touchingLevel:l,touchingLateral:u,touchingEntry:c,stackCnt:d,levelCoord:s,level:E,lateral:D}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,i=[],o=0;o<n;o+=1)for(var a=e[o],s=t[o],l=0,u=a;l<u.length;l++){var c=u[l];i.push((0,r.__assign)((0,r.__assign)({},c),{levelCoord:s}))}return i},e}();function hi(e){return e.span.end}function gi(e){return e.index+":"+e.span.start}function vi(e){for(var t,n,r=[],i=0,o=e;i<o.length;i++){for(var a=o[i],s=[],l={span:a.span,entries:[a]},u=0,c=r;u<c.length;u++){var d=c[u];mi(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 mi(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 yi(e,t,n){e.splice(t,0,n)}function Ei(e,t,n){var r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){var o=Math.floor(r+(i-r)/2),a=n(e[o]);if(t<a)i=o;else{if(!(t>a))return[o,1];r=o+1}}return[r,0]}var Di=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function Si(e){var t;return(t={})[e.component.uid]=e,t}var bi={},Ci=function(){function e(e,t){this.emitter=new $n}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),wi={},_i={startTime:ye,duration:ye,create:Boolean,sourceId:String};function Ri(e){var t=tt(e,_i),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 Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return o.apply(void 0,(0,r.__spreadArray)(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,i=[],a=!0,s=0,l=e;s<l.length;s++){var u=l[s],c=u.buttonName,d=u.buttonClick,p=u.buttonText,f=u.buttonIcon,h=u.buttonHint;if("title"===c)a=!1,i.push(o("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var g=c===t.activeButton,v=!t.isTodayEnabled&&"today"===c||!t.isPrevEnabled&&"prev"===c||!t.isNextEnabled&&"next"===c,m=["fc-"+c+"-button",n.getClass("button")];g&&m.push(n.getClass("buttonActive")),i.push(o("button",{type:"button",title:"function"===typeof h?h(t.navUnit):h,disabled:v,"aria-pressed":g,className:m.join(" "),onClick:d},p||(f?o("span",{className:f}):"")))}}if(i.length>1){var y=a&&n.getClass("buttonGroup")||"";return o.apply(void 0,(0,r.__spreadArray)(["div",{className:y}],i))}return i[0]},t}(ar),xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,i=n.extraClassName,a=!1,s=r.sectionWidgets,l=s.center;
2return s.left?(a=!0,e=s.left):e=s.start,s.right?(a=!0,t=s.right):t=s.end,o("div",{className:[i||"","fc-toolbar",a?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",l||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return o(Ti,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(ar),ki=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,ur(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return(0,r.__extends)(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"],i="",a="";return n?null!==t.availableWidth?i=t.availableWidth/n:a=1/n*100+"%":i=e.height||"",o("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,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}(ar),Mi=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,i=r.context,o=Ot(t);if(o&&r.isValidSegDownEl(e.target)){var a=p(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new dn(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:i.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=b(t.el,"click",".fc-event",n.handleSegClick),n}return(0,r.__extends)(t,e),t}(Di),Ii=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){Ot(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 i;return b(e,"mouseover",t,(function(e,t){if(t!==i){i=t,n(e,t);var o=function(e){i=null,r(e,t),t.removeEventListener("mouseleave",o)};t.addEventListener("mouseleave",o)}}))}(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return(0,r.__extends)(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,o=Ot(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new dn(i,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:i.viewApi})},t}(Di),Ni=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=Ie(ir),t.buildViewPropTransformers=Ie(Hi),t.buildToolbarProps=Ie(Pi),t.headerRef=a(),t.footerRef=a(),t.interactionsStore={},t.state={viewLabelId:D()},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),i=[Mi,Ii].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=i,bi[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 bi[e.uid]},t.resizeRunner=new Qr((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(0,r.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,i=t.options,a=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,un(t.options.now,t.dateEnv),t.viewTitle),s=!1,l="";t.isHeightAuto||t.forPrint?l="":null!=i.height?s=!0:null!=i.contentHeight?l=i.contentHeight:e=Math.max(i.aspectRatio,.5);var u=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),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return o(rr.Provider,{value:u},n.header&&o(xi,(0,r.__assign)({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},a)),o(ki,{liquid:s,height:l,aspectRatio:e,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&o(xi,(0,r.__assign)({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},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.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return o.apply(void 0,(0,r.__spreadArray)([s,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},a=0,s=this.buildViewPropTransformers(t.viewPropsTransformers);a<s.length;a++){var l=s[a];(0,r.__assign)(i,l.transform(i,e))}var u=n.component;return o(u,(0,r.__assign)({},i))},t}(or);function Pi(e,t,n,r,i,o){var a=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!It(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function Hi(e){return e.map((function(e){return new e}))}var Oi=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(0,r.__extends)(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,i=r||null==t.height?"":t.height,o=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")
2];return Pn()||o.push("fc-liquid-hack"),e.children(o,i,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}(ar);var Ai="fc-col-header-cell";function Li(e){return e.text}var Fi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,i=e.theme,a=e.viewApi,s=this.props,l=s.date,u=s.dateProfile,c=Ln(l,s.todayRange,null,u),d=[Ai].concat(Fn(c,i)),p=t.format(l,s.dayHeaderFormat),f=!c.isDisabled&&s.colCnt>1?Vn(this.context,l):{},h=(0,r.__assign)((0,r.__assign)((0,r.__assign)({date:t.toDate(l),view:a},s.extraHookProps),{text:p}),c);return o(gr,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Li,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,i){return o("th",(0,r.__assign)({ref:e,role:"columnheader",className:d.concat(t).join(" "),"data-date":c.isDisabled?void 0:Te(l),colSpan:s.colSpan},s.extraDataAttrs),o("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&o("a",(0,r.__assign)({ref:n,className:["fc-col-header-cell-cushion",s.isSticky?"fc-sticky":""].join(" ")},f),i)))}))},t}(ar),Ui=qe({weekday:"long"}),Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,i=t.theme,a=t.viewApi,s=t.options,l=z(new Date(2592e5),e.dow),u={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[Ai].concat(Fn(u,i),e.extraClassNames||[]),d=n.format(l,e.dayHeaderFormat),p=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({date:l},u),{view:a}),e.extraHookProps),{text:d});return o(gr,{hookProps:p,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:Li,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},(function(t,i,a,s){return o("th",(0,r.__assign)({ref:t,role:"columnheader",className:c.concat(i).join(" "),colSpan:e.colSpan},e.extraDataAttrs),o("div",{className:"fc-scrollgrid-sync-inner"},o("a",{"aria-label":n.format(l,Ui),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:a},s)))}))},t}(ar),Vi=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=un(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return(0,r.__extends)(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=j(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,ye(1,e.unit)),o=i.valueOf()-n.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:r,todayRange:Bi(r)},nextState:{nowDate:i,todayRange:Bi(i)},waitMs:o}},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=rr,t}(i);function Bi(e){var t=Z(e);return{start:t,end:z(t,1)}}var zi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=Ie(ji),t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,i=t.datesRepDistinctDays,a=t.renderIntro,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return o(Vi,{unit:"day"},(function(e,t){return o("tr",{role:"row"},a&&a("day"),n.map((function(e){return i?o(Fi,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:s}):o(Wi,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s})}
2)))}))},t}(ar);function ji(e,t,n){return e||function(e,t){return qe(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,n)}var Gi=function(){function e(e,t){for(var n=e.start,r=e.end,i=[],o=[],a=-1;n<r;)t.isHiddenDay(n)?i.push(a+.5):(a+=1,i.push(a),o.push(n)),n=z(n,1);this.dates=o,this.indices=i,this.cnt=o.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(z(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(q(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),qi=function(){function e(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n+=1);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,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 i=n.firstIndex,o=n.lastIndex,a=i;a<=o;){var s=Math.floor(a/t),l=Math.min((s+1)*t,o+1);r.push({row:s,firstCol:a%t,lastCol:(l-1)%t,isStart:n.isStart&&a===i,isEnd:n.isEnd&&l-1===o}),a=l}return r},e}(),Yi=function(){function e(){this.sliceBusinessHours=Ie(this._sliceBusinessHours),this.sliceDateSelection=Ie(this._sliceDateSpan),this.sliceEventStore=Ie(this._sliceEventStore),this.sliceEventDrag=Ie(this._sliceInteraction),this.sliceEventResize=Ie(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=e.eventUiBases,l=this.sliceEventStore.apply(this,(0,r.__spreadArray)([e.eventStore,s,t,n],o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,(0,r.__spreadArray)([e.dateSelection,s,i],o)),businessHourSegs:this.sliceBusinessHours.apply(this,(0,r.__spreadArray)([e.businessHours,t,n,i],o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,(0,r.__spreadArray)([e.eventDrag,s,t,n],o)),eventResize:this.sliceEventResize.apply(this,(0,r.__spreadArray)([e.eventResize,s,t,n],o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this._sliceDateSpan.apply(this,(0,r.__spreadArray)([{range:{start:e,end:j(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];return e?this._sliceEventStore.apply(this,(0,r.__spreadArray)([he(e,Zi(t,Boolean(n)),i),{},t,n],o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(e){var a=Nt(e,t,Zi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];if(!e)return null;var a=Nt(e.mutatedEvents,t,Zi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];if(!e)return[];for(var a=function(e,t,n){var r=Et({editable:!1},n),i=St(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Lt(i,t),instance:re(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e,t,n),s=this.sliceRange.apply(this,(0,r.__spreadArray)([e.range],i)),l=0,u=s;l<u.length;l++){u[l].eventRange=a}return s},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];n.push.apply(n,this.sliceEventRange(o,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:z(n.start,1)});for(var i=this.sliceRange.apply(this,(0,r.__spreadArray)([n],t)),o=0,a=i;o<a.length;o++){var s=a[o];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return i},e}();function Zi(e,t){var n=e.activeRange;return t?n:{start:j(n.start,e.slotMinTime.milliseconds),end:j(n.end,e.slotMaxTime.milliseconds-864e5)}}function Xi(e,t,n){var r=e.mutatedEvents.instances;for(var i in r)if(!Mt(t.validRange,r[i].range))return!1;return Ki({eventDrag:e},n)}function $i(e,t,n){return!!Mt(t.validRange,e.range)&&Ki({dateSelection:e},n)}function Ki(e,t){var n=t.getCurrentData(),i=(0,r.__assign)({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Qi)(i,t)}function Qi(e,t,n,i){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,i){var o=t.getCurrentData(),a=e.eventDrag,s=a.mutatedEvents,l=s.defs,u=s.instances,c=At(l,a.isEvent?e.eventUiBases:{"":o.selectionConfig});i&&(c=se(c,i));var d=(g=e.eventStore,v=a.affectedEvents.instances,{defs:g.defs,instances:ae(g.instances,(function(e){return!v[e.instanceId]}))}),p=d.defs,f=d.instances,h=At(p,e.eventUiBases);var g,v;for(var m in u){var y=u[m],E=y.range,D=c[y.defId],S=l[y.defId];
2if(!Ji(D.constraints,E,d,e.businessHours,t))return!1;var b=t.options.eventOverlap,C="function"===typeof b?b:null;for(var w in f){var _=f[w];if(kt(E,_.range)){if(!1===h[_.defId].overlap&&a.isEvent)return!1;if(!1===D.overlap)return!1;if(C&&!C(new dn(t,p[_.defId],_),new dn(t,S,y)))return!1}}for(var R=o.eventStore,T=0,x=D.allows;T<x.length;T++){var k=x[T],M=(0,r.__assign)((0,r.__assign)({},n),{range:y.range,allDay:S.allDay}),I=R.defs[S.defId],N=R.instances[m],P=void 0;if(P=I?new dn(t,I,N):new dn(t,S),!k(Jt(M,t),P))return!1}}return!0}(e,t,n,i))&&!(e.dateSelection&&!function(e,t,n,i){var o=e.eventStore,a=o.defs,s=o.instances,l=e.dateSelection,u=l.range,c=t.getCurrentData().selectionConfig;i&&(c=i(c));if(!Ji(c.constraints,u,o,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(kt(u,h.range)){if(!1===c.overlap)return!1;if(p&&!p(new dn(t,a[h.defId],h),null))return!1}}for(var g=0,v=c.allows;g<v.length;g++){if(!(0,v[g])(Jt((0,r.__assign)((0,r.__assign)({},n),l),t),null))return!1}return!0}(e,t,n,i))}function Ji(e,t,n,r,i){for(var o=0,a=e;o<a.length;o++){if(!no(eo(a[o],t,n,r,i),t))return!1}return!0}function eo(e,t,n,r,i){return"businessHours"===e?to(he(r,t,i)):"string"===typeof e?to(lt(n,(function(t){return t.groupId===e}))):"object"===typeof e&&e?to(he(e,t,i)):[]}function to(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function no(e,t){for(var n=0,r=e;n<r.length;n++){if(Mt(r[n],t))return!0}return!1}var ro=/^(visible|hidden)$/,io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,ur(t.props.elRef,e)},t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),o("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(ro.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(ro.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 ro.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return ro.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(ar),oo=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,i=r.depths,o=r.currentMap,a=!1,s=!1;null!==e?(a=n in o,o[n]=e,i[n]=(i[n]||0)+1,s=!0):(i[n]-=1,i[n]||(delete o[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 i=[];null==n&&(n=Object.keys(e).length);for(var o=t;o<n;o+=r){var a=e[o];void 0!==a&&i.push(a)}return i}(this.currentMap,e,t,n)},e.prototype.getAll=function(){return ue(this.currentMap)},e}();function ao(e){for(var t=0,n=0,r=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i+=1)for(var o=n[i].querySelectorAll(t),a=0;a<o.length;a+=1)r.push(o[a]);return r}(e,".fc-scrollgrid-shrink");n<r.length;n++){var i=r[n];t=Math.max(t,W(i))}return Math.ceil(t)}function so(e,t){return e.liquid&&t.liquid}function lo(e,t){return Me(e,t,ce)}function uo(e,t){for(var n=[],i=0,a=e;i<a.length;i++)for(var s=a[i],l=s.span||1,u=0;u<l;u+=1)n.push(o("col",{style:{width:"shrink"===s.width?co(t):s.width||"",minWidth:s.minWidth||""}}));return o.apply(void 0,(0,r.__spreadArray)(["colgroup",{}],n))}function co(e){return null==e?4:e}function po(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 fo(e){return o("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ho(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function go(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var vo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=Ie((function(e){return e}),lo),t.renderMicroColGroup=Ie(uo),t.scrollerRefs=new oo,t.scrollerElRefs=new oo(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState((0,r.__assign)({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,i=e.context,a=t.sections||[],s=this.processCols(t.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),u=function(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}(t.liquid,i);t.collapsibleWidth&&u.push("fc-scrollgrid-collapsible");for(var c,d=a.length,p=0,f=[],h=[],g=[];p<d&&"header"===(c=a[p]).type;)f.push(this.renderSection(c,l,!0)),p+=1;for(;p<d&&"body"===(c=a[p]).type;)h.push(this.renderSection(c,l,!1)),p+=1;for(;p<d&&"footer"===(c=a[p]).type;)g.push(this.renderSection(c,l,!0)),p+=1;var v=!Pn(),m={role:"rowgroup"};return o("table",{role:"grid",className:u.join(" "),style:{height:t.height}},Boolean(!v&&f.length)&&o.apply(void 0,(0,r.__spreadArray)(["thead",m],f)),Boolean(!v&&h.length)&&o.apply(void 0,(0,r.__spreadArray)(["tbody",m],h)),Boolean(!v&&g.length)&&o.apply(void 0,(0,r.__spreadArray)(["tfoot",m],g)),v&&o.apply(void 0,(0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)(["tbody",m],f),h),g)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?o(s,{key:e.key},e.outerContent):o("tr",{key:e.key,role:"presentation",className:po(e,this.props.liquid
2).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var i=this.props,a=this.state,s=a.forceYScrollbars,l=a.scrollerClientWidths,u=a.scrollerClientHeights,c=function(e,t){return null!=t.maxHeight||so(e,t)}(i,e),d=so(i,e),p=i.liquid?s?"scroll":c?"auto":"hidden":"visible",f=e.key,h=function(e,t,n,r){var i=n.expandRows;return"function"===typeof t.content?t.content(n):o("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,o(r?"thead":"tbody",{role:"presentation"},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent))}(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===l[f]?null:l[f],clientHeight:void 0!==u[f]?u[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return o(r?"th":"td",{ref:n.elRef,role:"presentation"},o("div",{className:"fc-scroller-harness"+(d?" fc-scroller-harness-liquid":"")},o(io,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:p,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},h)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.key===t)return i}return null}(this.props.sections,t);n&&ur(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)?ao(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=Gn(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,i={},o={};for(var a in t.currentMap){var s=t.currentMap[a];if(s&&s.needsYScrolling()){r=!0;break}}for(var l=0,u=this.props.sections;l<u.length;l++){a=u[l].key;var c=n.currentMap[a];if(c){var d=c.parentNode;i[a]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),o[a]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:o}},t}(ar);vo.addStateEquality({scrollerClientWidths:ce,scrollerClientHeights:ce});var mo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=a(),t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,i=r.eventRange,a=i.ui,s={event:new dn(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Wt(r,t),isStartResizable:!e.disableResizing&&Vt(r,t),isEndResizable:!e.disableResizing&&Bt(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 o(gr,{hookProps:s,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,i){return e.children(t,l.concat(n),r,i,s)}))},t.prototype.componentDidMount=function(){Ht(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&Ht(this.elRef.current,t)},t}(ar),yo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,i=t.options.eventTimeFormat||e.defaultTimeFormat,a=zt(n,i,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return o(mo,{seg:n,timeText:a,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||Eo,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(i,a,s,l,u){return o("a",(0,r.__assign)({className:e.extraClassNames.c
2oncat(a).join(" "),style:{borderColor:u.borderColor,backgroundColor:u.backgroundColor},ref:i},qt(n,t)),o("div",{className:"fc-event-main",ref:s,style:{color:u.textColor}},l),u.isStartResizable&&o("div",{className:"fc-event-resizer fc-event-resizer-start"}),u.isEndResizable&&o("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(ar);function Eo(e){return o("div",{className:"fc-event-main-frame"},e.timeText&&o("div",{className:"fc-event-time"},e.timeText),o("div",{className:"fc-event-title-container"},o("div",{className:"fc-event-title fc-sticky"},e.event.title||o(s,null,"\xa0"))))}var Do=function(e){return o(rr.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return o(gr,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},So=qe({day:"numeric"}),bo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=Co({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return o(mr,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(ar);function Co(e){var t=e.date,n=e.dateEnv,i=Ln(t,e.todayRange,null,e.dateProfile);return(0,r.__assign)((0,r.__assign)((0,r.__assign)({date:n.toDate(t),view:e.viewApi},i),{dayNumberText:e.showDayNumber?n.format(t,So):""}),e.extraProps)}var wo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Ne(Co),t.normalizeClassNames=Dr(),t}return(0,r.__extends)(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}),i=Fn(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),a=r.isDisabled?{}:{"data-date":Te(e.date)};return o(Er,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,i,a,r.isDisabled)}))},t}(ar);function _o(e){return o("div",{className:"fc-"+e})}var Ro=function(e){return o(mo,{defaultContent:To,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,i){return o("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:i.backgroundColor}},r)}))};function To(e){return e.event.title&&o("div",{className:"fc-event-title"},e.event.title)}var xo=function(e){return o(rr.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,i=e.date,a=r.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(i),l=n.format(i,a);return o(gr,{hookProps:{num:s,text:l,date:i},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:ko,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function ko(e){return e.text}var Mo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:D()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&ur(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=m(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,i=this.props,a=this.state,s=["fc-popover",t.getClass("popover")].concat(i.extraClassNames||[]);return u(o("div",(0,r.__assign)({id:i.id,className:s.join(" "),"aria-labelledby":a.titleId},i.extraAttrs,{ref:this.handleRootEl}),o("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},o("span",{className:"fc-popover-title",id:a.titleId},i.title),o("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),o("div",{className:"fc-popover-body "+t.getClass("popoverContent")},i.children)),i.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}
2,t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,i=this.rootEl,o=function(e){for(var t=Xn(e),n=e.getBoundingClientRect(),r=0,i=t;r<i.length;r++){var o=kn(n,i[r].getBoundingClientRect());if(!o)return null;n=o}return n}(n);if(o){var a=i.getBoundingClientRect(),s=r?p(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,l=e?o.right-a.width:o.left;s=Math.max(s,10),l=Math.min(l,document.documentElement.clientWidth-10-a.width),l=Math.max(l,10);var u=i.offsetParent.getBoundingClientRect();g(i,{top:s-u.top,left:l-u.left})}},t}(ar),Io=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(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,i=r.startDate,a=r.todayRange,s=r.dateProfile,l=n.format(i,t.dayPopoverFormat);return o(wo,{date:i,dateProfile:s,todayRange:a,elRef:this.handleRootEl},(function(e,t,n){return o(Mo,{elRef:e,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},o(bo,{date:i,dateProfile:s,todayRange:a},(function(e,t){return t&&o("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,i){var o=this.rootEl,a=this.props;return e>=0&&e<n&&t>=0&&t<i?{dateProfile:a.dateProfile,dateSpan:(0,r.__assign)({allDay:!0,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:i},layer:1}:null},t}(cr),No=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=a(),t.state={isPopoverOpen:!1,popoverId:D()},t.handleClick=function(e){var n=t,r=n.props,i=n.context,o=i.options.moreLinkClick,a=Ho(r).start;function s(e){var t=e.eventRange,n=t.def,r=t.instance,o=t.range;return{event:new dn(i,n,r),start:i.dateEnv.toDate(o.start),end:i.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof o&&(o=o({date:a,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(s),hiddenSegs:r.hiddenSegs.map(s),jsEvent:e,view:i.viewApi})),o&&"popover"!==o?"string"===typeof o&&i.calendarApi.zoomTo(a,o):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.state;return o(rr.Consumer,null,(function(r){var i=r.viewApi,a=r.options,l=r.calendarApi,u=a.moreLinkText,c=t.moreCnt,d=Ho(t),p="function"===typeof u?u.call(l,c):"+"+c+" "+u,f=L(a.moreLinkHint,[c],p),h={num:c,shortText:"+"+c,text:p,view:i};return o(s,null,Boolean(t.moreCnt)&&o(gr,{elRef:e.linkElRef,hookProps:h,classNames:a.moreLinkClassNames,content:a.moreLinkContent,defaultContent:t.defaultContent||Po,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},(function(r,i,o,a){return t.children(r,["fc-more-link"].concat(i),o,a,e.handleClick,f,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")})),n.isPopoverOpen&&o(Io,{id:n.popoverId,startDate:d.start,endDate:d.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}(ar);function Po(e){return e.text}function Ho(e){if(e.allDayDate)return{start:e.allDayDate,end:z(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:Oo(n),end:(t=n,t.reduce(Lo).eventRange.range.end)}}function Oo(e){return e.reduce(Ao).eventRange.range.start}function Ao(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Lo(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}},40053:(e,t,n)=>{n.d(t,{t7:()=>T,Ay:()=>I});var r=n(34543),i=n(37827),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
2return t.headerElRef=(0,r._3b)(),t}return(0,i.__extends)(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this.props,i=this.context,o=[],a=(0,r._Dp)(i.options);return e&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),(0,r.na4)(r.q4f,{viewSpec:i.viewSpec},(function(e,t){return(0,r.na4)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},(0,r.na4)(r.en1,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))}))},t.prototype.renderHScrollLayout=function(e,t,n,i){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var a=this.props,s=this.context,l=!a.forPrint&&(0,r._Dp)(s.options),u=!a.forPrint&&(0,r.v2o)(s.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),u&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:r.bLJ}]}),(0,r.na4)(r.q4f,{viewSpec:s.viewSpec},(function(e,t){return(0,r.na4)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},(0,r.na4)(o,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:c}))}))},t}(r.gzh);function a(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,o=e;i<o.length;i++){var a=o[i];n[a.row].push(a)}return n}function s(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,o=e;i<o.length;i++){var a=o[i];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,i=e.segs;r<i.length;r++){var o=i[r];n[o.row].segs.push(o)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=(0,r.myk)(this.context,e.date);return(0,r.na4)(r.ux1,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:c},(function(n,o){return(o||e.forceDayTop)&&(0,r.na4)("div",{className:"fc-daygrid-day-top",ref:n},(0,r.na4)("a",(0,i.__assign)({id:e.dayNumberId,className:"fc-daygrid-day-number"},t),o||(0,r.na4)(r.FK,null,"\xa0")))}))},t}(r.$GR);function c(e){return e.dayNumberText}var d=(0,r.xi1)({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(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props;return(0,r.na4)(r.y8j,(0,i.__assign)({}
2,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.$GR),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options.eventTimeFormat||d,o=(0,r.wWN)(e.seg,n,t,!0,e.defaultDisplayEventEnd);return(0,r.na4)(r.Nty,{seg:e.seg,timeText:o,defaultContent:g,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(n,o,a,s){return(0,r.na4)("a",(0,i.__assign)({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(o).join(" "),ref:n},(0,r.tPU)(e.seg,t)),s)}))},t}(r.$GR);function g(e){return(0,r.na4)(r.FK,null,(0,r.na4)("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&(0,r.na4)("div",{className:"fc-event-time"},e.timeText),(0,r.na4)("div",{className:"fc-event-title"},e.event.title||(0,r.na4)(r.FK,null,"\xa0")))}var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=(0,r.BjF)(m),t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,o=t.invisibleSegs;return(0,r.na4)(r.knM,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:o,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(0,r.na4)(r.FK,null,n.map((function(n){var o=n.eventRange.instance.instanceId;return(0,r.na4)("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:t[o]?"hidden":""}},p(n)?(0,r.na4)(h,(0,i.__assign)({seg:n,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},(0,r.F29)(n,e.todayRange))):(0,r.na4)(f,(0,i.__assign)({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},(0,r.F29)(n,e.todayRange))))})))}},(function(e,t,n,o,a,s,l,u){return(0,r.na4)("a",(0,i.__assign)({ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),title:s,"aria-expanded":l,"aria-controls":u},(0,r.kfp)(a)),o)}))},t}(r.$GR);function m(e){for(var t=[],n=[],r=0,i=e;r<i.length;r++){var o=i[r];t.push(o.seg),o.isVisible||n.push(o.seg)}return{allSegs:t,invisibleSegs:n}}var y=(0,r.xi1)({week:"narrow"}),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,r._3b)(),t.state={dayNumberId:(0,r.znd)()},t.handleRootEl=function(e){(0,r.cZi)(t.rootElRef,e),(0,r.cZi)(t.props.elRef,e)},t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=e.context,n=e.props,o=e.state,a=e.rootElRef,s=n.date,l=n.dateProfile,c=(0,r.myk)(t,s,"week");return(0,r.na4)(r.rrN,{date:s,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,elRef:this.handleRootEl},(function(e,t,d,p){return(0,r.na4)("td",(0,i.__assign)({ref:e,role:"gridcell",className:["fc-daygrid-day"].concat(t,n.extraClassNames||[]).join(" ")},d,n.extraDataAttrs,n.showDayNumber?{"aria-labelledby":o.dayNumberId}:{}),(0,r.na4)("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:n.innerElRef},n.showWeekNumber&&(0,r.na4)(r.SUi,{date:s,defaultFormat:y},(function(e,t,n,o){return(0,r.na4)("a",(0,i.__assign)({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},c),o)})),!p&&(0,r.na4)(u,{date:s,dateProfile:l,showDayNumber:n.showDayNumber,dayNumberId:o.dayNumberId,forceDayTop:n.forceDayTop,todayRange:n.todayRange,extraHookProps:n.extraHookProps}),(0,r.na4)("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,(0,r.na4)("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},(0,r.na4)(v,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:a,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}
2))),(0,r.na4)("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}))},t}(r.gzh);function D(e,t,n,r,i,o,a){var s=new b;s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=o,s.hiddenConsumes=!0):"number"===typeof t?s.maxStackCnt=t:"number"===typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var d=i[(T=e[c]).eventRange.instance.instanceId];null!=d?l.push({index:c,thickness:d,span:{start:T.firstCol,end:T.lastCol+1}}):u.push(T)}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 i=0,o=e;i<o.length;i++){var a=o[i];for(r=a.span.start;r<a.span.end;r+=1)n[r].push(a)}return n}(e,n.length),i=[],o=[],a=[],s=0;s<n.length;s+=1){for(var l=r[s],u=[],c=0,d=0,p=0,f=l;p<f.length;p++){var h=t[(y=f[p]).index];u.push({seg:S(h,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:y.levelCoord-c}),c=y.levelCoord+y.thickness}var g=[];c=0,d=0;for(var v=0,m=l;v<m.length;v++){h=t[(y=m[v]).index];var y,E=y.span.end-y.span.start>1,D=y.span.start===s;d+=y.levelCoord-c,c=y.levelCoord+y.thickness,E?(d+=y.thickness,D&&g.push({seg:S(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):D&&(g.push({seg:S(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:d}),d=0)}i.push(u),o.push(g),a.push(d)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}(s.toRects(),e,a),h=f.singleColPlacements,g=f.multiColPlacements,v=f.leftoverMargins,m=[],y=[],E=0,D=u;E<D.length;E++){g[(T=D[E]).firstCol].push({seg:T,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var C=T.firstCol;C<=T.lastCol;C+=1)h[C].push({seg:S(T,C,C+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(C=0;C<a.length;C+=1)m.push(0);for(var w=0,_=p;w<_.length;w++){var R=_[w],T=e[R.index],x=R.span;g[x.start].push({seg:S(T,x.start,x.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(C=x.start;C<x.end;C+=1)m[C]+=1,h[C].push({seg:S(T,C,C+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(C=0;C<a.length;C+=1)y.push(v[C]);return{singleColPlacements:h,multiColPlacements:g,moreCnts:m,moreMarginTops:y}}function S(e,t,n,o){if(e.firstCol===t&&e.lastCol===n-1)return e;var a=e.eventRange,s=a.range,l=(0,r.imr)(s,{start:o[t].date,end:(0,r.fij)(o[n-1].date,1)});return(0,i.__assign)((0,i.__assign)({},e),{firstCol:t,lastCol:n-1,eventRange:{def:a.def,ui:(0,i.__assign)((0,i.__assign)({},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 b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return(0,i.__extends)(t,e),t.prototype.addSegs=function(t){for(var n=this,i=e.prototype.addSegs.call(this,t),o=this.entriesByLevel,a=function(e){return!n.forceHidden[(0,r.qAn)(e)]},s=0;s<o.length;s+=1)o[s]=o[s].filter(a);return i},t.prototype.handleInvalidInsertion=function(t,n,o){var a=this.entriesByLevel,s=this.forceHidden,l=t.touchingEntry,u=t.touchingLevel,c=t.touchingLateral;if(this.hiddenConsumes&&l){var d=(0,r.qAn)(l);if(!s[d])if(this.allowReslicing){var p=(0,i.__assign)((0,i.__assign)({},l),{span:(0,r.RNt)(l.span,n.span)});s[(0,r.qAn)(p)]=!0,a[u][c]=p,this.splitEntry(l,n,o)}else s[d]=!0,o.push(l)}return e.prototype.handleInvalidInsertion.call(this,t,n,o)},t}(r.XpW),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new r.kFN,t.frameElRefs=new r.kFN,t.fgElRefs=new r.kFN,t.segHarnessRefs=new r.kFN,t.rootElRef=(0,r._3b)(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,i=t.state,o=t.context.options,a=n.cells.length,l=s(n.businessHourSegs,a),u=s(n.bgEventSegs,a),c=s(this.getHighlightSegs(),a),d=s(this.getMirrorSegs(),a),p=D((0,r.B4w)(n.fgEventSegs,o.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,o.eventOrderStrict,i.eventInstanceHeights,i.maxContentHeight,n.cells),f=p.singleColPlacements,h=p.multiColPlacements,g=p.moreCnts,v=p.moreMarginTops,m=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return(0,r.na4)("tr",{ref:this.rootElRef,role:"row"},n.renderIntro&&n.renderIntro(),n.cells.map((function(t,i){var o=e.renderFgSegs(i,n.forPrint?f[i]:h[i],n.todayRange,m),a=e.renderFgSegs(i,function(e,t){if(!e.length)return[];var n=function(e){for(var t={},n=0,r=e;n<r.length;n++)for(var i=0,o=r[n];i<o.length;i++){var a=o[i];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[i],h),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return(0,r.na4)(E,{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===i,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:g[i],moreMarginTop:v[i],singlePlacements:f[i],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:(0,r.na4)(r.FK,null,(0,r.na4)(r.FK,null,o),(0,r.na4)(r.FK,null,a)),bgContent:(0,r.na4)(r.FK,null,e.renderFillSegs(c[i],"highlight"),e.renderFillSegs(l[i],"non-business"),e.renderFillSegs(u[i],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!(0,r.vA0)(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,o,a,s,l){var u=this.context,c=this.props.eventSelection,d=this.state.framePositions,g=1===this.props.cells.length,v=a||s||l,m=[];if(d)for(var y=0,E=t;y<E.length;y++){var D=E[y],S=D.seg,b=S.eventRange.instance.instanceId,C=b+":"+e,w=D.isVisible&&!o[b],_=D.isAbsolute,R="",T="";_&&(u.isRtl?(T=0,R=d.lefts[S.lastCol]-d.lefts[S.firstCol]):(R=0,T=d.rights[S.firstCol]-d.rights[S.lastCol])),m.push((0,r.na4)("div",{className:"fc-daygri
2d-event-harness"+(_?" fc-daygrid-event-harness-abs":""),key:C,ref:v?null:this.segHarnessRefs.createRef(C),style:{visibility:w?"":"hidden",marginTop:_?"":D.marginTop,top:_?D.absoluteTop:"",left:R,right:T}},p(S)?(0,r.na4)(h,(0,i.__assign)({seg:S,isDragging:a,isSelected:b===c,defaultDisplayEventEnd:g},(0,r.F29)(S,n))):(0,r.na4)(f,(0,i.__assign)({seg:S,isDragging:a,isResizing:s,isDateSelecting:l,isSelected:b===c,defaultDisplayEventEnd:g},(0,r.F29)(S,n)))))}return m},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,o=this.props.todayRange,a=this.state.framePositions,s=[];if(a)for(var l=0,u=e;l<u.length;l++){var c=u[l],d=n?{right:0,left:a.lefts[c.lastCol]-a.lefts[c.firstCol]}:{left:0,right:a.rights[c.firstCol]-a.rights[c.lastCol]};s.push((0,r.na4)("div",{key:(0,r.N8)(c.eventRange),className:"fc-daygrid-bg-harness",style:d},"bg-event"===t?(0,r.na4)(r.s_G,(0,i.__assign)({seg:c},(0,r.F29)(c,o))):(0,r.aOA)(t)))}return r.na4.apply(void 0,(0,i.__spreadArray)([r.FK,{}],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 a=this.rootElRef.current;this.setState({framePositions:new r.Qnh(a,o,!0,!1)})}}var s=this.state.eventInstanceHeights,l=this.queryEventInstanceHeights(),u=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.setState({eventInstanceHeights:(0,i.__assign)((0,i.__assign)({},s),l),maxContentHeight:u?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),i=n.split(":")[0];t[i]=Math.max(t[i]||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.gzh);C.addStateEquality({eventInstanceHeights:r.vA0});var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=(0,r.BjF)(a),t.splitBgEventSegs=(0,r.BjF)(a),t.splitFgEventSegs=(0,r.BjF)(a),t.splitDateSelectionSegs=(0,r.BjF)(a),t.splitEventDrag=(0,r.BjF)(l),t.splitEventResize=(0,r.BjF)(l),t.rowRefs=new r.kFN,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,i=t.dayMaxEventRows,o=t.dayMaxEvents,a=t.expandRows,s=t.cells.length,l=this.splitBusinessHourSegs(t.businessHourSegs,s),u=this.splitBgEventSegs(t.bgEventSegs,s),c=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===o||!0===i;h&&!a&&(h=!1,i=null,o=null);var g=["fc-daygrid-body",h?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",a?"":"fc-daygrid-body-natural"];return(0,r.na4)("div",{className:g.join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},(0,r.na4)(r.O6g,{unit:"day"},(function(h,g){return(0,r.na4)(r.FK,null,(0,r.na4)("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:a?t.clientHeight:""}},t.colGroupNode,(0,r.na4)("tbody",{role:"presentation"},t.cells.map((function(a,h){return(0,r.na4)(C,{ref:e.rowRefs.createRef(h),key:a.length?a[0].date.toISOString():h,showDayNumbers:s>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:n,cells:a,renderIntro:t.renderRowIntro,businessHourSegs:l[h],eventSelection:t.eventSelection,bgEventSegs:u[h].filter(_),fgEventSegs:c[h],dateSelectionSegs:d[h],eventDrag:p[h],eventResize:f[h],dayMaxEvents:o,dayMaxEventRows:i,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new r.Qnh(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new r.Qnh(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,r=this.rowPositions,o=n.leftToIndex(e),a=r.topToIndex(t);if(null!=a&&null!=o){var s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:(0,i.__assign)({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:n.lefts[o],right:n.rights[o],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:(0,r.fij)(n,1)}},t}(r.gzh);function _(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(0,i.__extends)(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(r.$He),T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new R,t.tableRef=(0,r._3b)(),t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,r.na4)(w,(0,i.__assign)({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(r.gzh),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=(0,r.BjF)(k),t.headerRef=(0,r._3b)(),t.tableRef=(0,r._3b)(),t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,i=t.dateProfileGenerator,o=this.props,a=this.buildDayTableModel(o.dateProfile,i),s=n.dayHeaders&&(0,r.na4)(r.A1b,{ref:this.headerRef,dateProfile:o.dateProfile,dates:a.headerDates,datesRepDistinctDays:1===a.rowCnt}),l=function(t){return(0,r.na4)(T,{ref:e.tableRef,dateProfile:o.dateProfile,dayTableModel:a,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(s,l,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(s,l)},t}(o);
2function k(e,t){var n=new r.NC_(e.renderRange,t);return new r.mql(n,/year|month|week/.test(e.currentRangeUnit))}var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.buildRenderRange=function(t,n,i){var o,a=this.props.dateEnv,s=e.prototype.buildRenderRange.call(this,t,n,i),l=s.start,u=s.end;if(/^(year|month)$/.test(n)&&(l=a.startOfWeek(l),(o=a.startOfWeek(u)).valueOf()!==u.valueOf()&&(u=(0,r.J4u)(o,1))),this.props.monthMode&&this.props.fixedWeekCount){var c=Math.ceil((0,r.Z3F)(l,u));u=(0,r.J4u)(u,6-c)}return{start:l,end:u}},t}(r.rou);const I=(0,r.i1g)({initialView:"dayGridMonth",views:{dayGrid:{component:x,dateProfileGeneratorClass:M},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}})},36404:(e,t,n)=>{n.d(t,{Ay:()=>I});var r=n(34543),i=n(37827);r.$WB.touchMouseIgnoreWait=500;var o=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,o+=1,setTimeout((function(){o-=1}),r.$WB.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.vli,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(a+=1)&&window.addEventListener("touchmove",u,{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",u,{passive:!1})},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!(0,r.YAv)(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?(0,r.YAv)(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return o||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,i=e.touches,o=0,a=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:a}},e}();function u(e){s&&e.preventDefault()}var c=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,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",(0,r.AVT)(n,{left:i.left,top:i.top}),(0,r.SH7)(n,(function(){n.style.transition="",e()}
2))},e.prototype.cleanup=function(){this.mirrorEl&&((0,r.NzY)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&(0,r.AVT)(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"),(0,r.AVT)(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(0,i.__extends)(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.w1c),p=function(e){function t(t,n){return e.call(this,new r._n8(t),n)||this}return(0,i.__extends)(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return(0,r.Qfg)(this.scrollController.el)},t}(d),f=function(e){function t(t){return e.call(this,new r.Wkc,t)||this}return(0,i.__extends)(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,g=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,i=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>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;
2e<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,i=r-e.distance,o=i*i/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*a)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,i=0,o=this.scrollCaches;i<o.length;i++){var a=o[i],s=a.clientRect,l=e-s.left,u=s.right-e,c=t-s.top,d=s.bottom-t;l>=0&&u>=0&&c>=0&&d>=0&&(c<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:a,name:"top",distance:c}),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}),u<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"right",distance:u}))}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,i=this.scrollQuery;n<i.length;n++){var o=i[n];"object"===typeof o?t.push(o):t.push.apply(t,Array.prototype.slice.call((0,r.UOc)(e).querySelectorAll(o)))}return t},e}(),v=function(e){function t(t,n){var i=e.call(this,t)||this;i.containerEl=t,i.delay=null,i.minDistance=0,i.touchScrollAllowed=!0,i.mirrorNeedsRevert=!1,i.isInteracting=!1,i.isDragging=!1,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,i.delayTimeoutId=null,i.onPointerDown=function(e){i.isDragging||(i.isInteracting=!0,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,(0,r.vFY)(document.body),(0,r.N7h)(document.body),e.isTouch||e.origEvent.preventDefault(),i.emitter.trigger("pointerdown",e),i.isInteracting&&!i.pointer.shouldIgnoreMove&&(i.mirror.setIsVisible(!1),i.mirror.start(e.subjectEl,e.pageX,e.pageY),i.startDelay(e),i.minDistance||i.handleDistanceSurpassed(e)))},i.onPointerMove=function(e){if(i.isInteracting){if(i.emitter.trigger("pointermove",e),!i.isDistanceSurpassed){var t=i.minDistance,n=e.deltaX,r=e.deltaY;n*n+r*r>=t*t&&i.handleDistanceSurpassed(e)}i.isDragging&&("scroll"!==e.origEvent.type&&(i.mirror.handleMove(e.pageX,e.pageY),i.autoScroller.handleMove(e.pageX,e.pageY)),i.emitter.trigger("dragmove",e))}},i.onPointerUp=function(e){i.isInteracting&&(i.isInteracting=!1,(0,r._8O)(document.body),(0,r.iDH)(document.body),i.emitter.trigger("pointerup",e),i.isDragging&&(i.autoScroller.stop(),i.tryStopDrag(e)),i.delayTimeoutId&&(clearTimeout(i.delayTimeoutId),i.delayTimeoutId=null))};var o=i.pointer=new l(t);return o.emitter.on("pointerdown",i.onPointerDown),o.emitter.on("pointermove",i.onPointerMove),o.emitter.on("pointerup",i.onPointerUp),n&&(o.selector=n),i.mirror=new c,i.autoScroller=new g,i}return(0,i.__extends)(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.WDw),m=function(){function e(e){this.origRect=(0,r.Cc$)(e),this.scrollCaches=(0,r.ccu)(e).map((function(e){return new p(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;
2e<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},i=0,o=this.scrollCaches;i<o.length;i++){var a=o[i];if(!y(a.getEventTarget())&&!(0,r.$UH)(n,a.clientRect))return!1}return!0},e}();function y(e){var t=e.tagName;return"HTML"===t||"BODY"===t}var E=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.vli}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},i=n,o=e.subjectEl;o instanceof HTMLElement&&(t=(0,r.Cc$)(o),i=(0,r.AF1)(i,t));var a=this.initialHit=this.queryHitForOffset(i.left,i.top);if(a){if(this.useSubjectCenter&&t){var s=(0,r.B_7)(t,a.rect);s&&(i=(0,r.QvU)(s))}this.coordAdjust=(0,r.puS)(i,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&&D(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=(0,r.d_K)(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,i=this.offsetTrackers,o=null;for(var a in n){var s=n[a].component,l=i[a];if(l&&l.isWithinClipping(e,t)){var u=l.computeLeft(),c=l.computeTop(),d=e-u,p=t-c,f=l.origRect,h=f.right-f.left,g=f.bottom-f.top;if(d>=0&&d<h&&p>=0&&p<g){var v=s.queryHit(d,p,h,g);v&&(0,r.wj3)(v.dateProfile.activeRange,v.dateSpan.range)&&(!o||v.layer>o.layer)&&(v.componentId=a,v.context=s.context,v.rect.left+=u,v.rect.right+=u,v.rect.top+=c,v.rect.bottom+=c,o=v)}}}return o},e}();function D(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(0,r.U6q)(e.dateSpan,t.dateSpan)}function S(e,t){for(var n,r,o={},a=0,s=t.pluginHooks.datePointTransforms;a<s.length;a++){var l=s[a];(0,i.__assign)(o,l(e,t))}return(0,i.__assign)(o,(n=e,{date:(r=t.dateEnv).toDate(n.range.start),dateStr:r.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay})),o}var b=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,o=r.initialHit,a=r.finalHit;if(o&&a&&D(o,a)){var s=t.context,l=(0,i.__assign)((0,i.__assign)({},S(o.dateSpan,s)),{dayEl:o.dayEl,jsEvent:e.origEvent,view:s.viewApi||s.calendarApi.view});s.emitter.trigger("dateClick",l)}}},n.dragging=new v(t.el),n.dragging.autoScroller.isEnabled=!1;var o=n.hitDragging=new E(n.dragging,(0,r.qIM)(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragend",n.handleDragEnd),n}return(0,i.__extends)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r.N3M),C=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,i=t.dragging,o=r.context.options.selectable&&r.isValidDateDownEl(e.origEvent.target);i.setIgnoreMove(!o),i.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var o=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 o=e.dateSpan,a=t.dateSpan,s=[o.range.start,o.range.end,a.range.start,a.range.end];s.sort(r.S$d);for(var l={},u=0,c=n;u<c.length;u++){var d=(0,c[u])(e,t);if(!1===d)return null;d&&(0,i.__assign)(l,d)}return l.range={start:s[0],end:s[3]},l.allDay=o.allDay,l}(l,e,o.pluginHooks.dateSelectionTransformers)),a&&(0,r.rjW)(a,e.dateProfile,o)||(s=!0,a=null)}a?o.dispatch({type:"SELECT_DATES",selection:a}):t||o.dispatch({type:"UNSELECT_DATES"}),s?(0,r.tOV)():(0,r.q2g)(),t||(n.dragSelection=a)},n.handlePointerUp=function(e){n.dragSelection&&((0,r.F5O)(n.dragSelection,e,
2n.component.context),n.dragSelection=null)};var o=t.component.context.options,a=n.dragging=new v(t.el);a.touchScrollAllowed=!1,a.minDistance=o.selectMinDistance||0,a.autoScroller.isEnabled=o.dragScroll;var s=n.hitDragging=new E(n.dragging,(0,r.qIM)(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(0,i.__extends)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r.N3M);var w=function(e){function t(n){var o=e.call(this,n)||this;o.subjectEl=null,o.subjectSeg=null,o.isDragging=!1,o.eventRange=null,o.relevantEvents=null,o.receivingContext=null,o.validMutation=null,o.mutatedRelevantEvents=null,o.handlePointerDown=function(e){var t=e.origEvent.target,n=o,i=n.component,a=n.dragging,s=a.mirror,l=i.context.options,u=i.context;o.subjectEl=e.subjectEl;var c=o.subjectSeg=(0,r.VVT)(e.subjectEl),d=(o.eventRange=c.eventRange).instance.instanceId;o.relevantEvents=(0,r.LkY)(u.getCurrentData().eventStore,d),a.minDistance=e.isTouch?0:l.eventDragMinDistance,a.delay=e.isTouch&&d!==i.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(i):null,l.fixedMirrorParent?s.parentNode=l.fixedMirrorParent:s.parentNode=(0,r.YAv)(t,".fc"),s.revertDuration=l.dragRevertDuration;var p=i.isValidSegDownEl(t)&&!(0,r.YAv)(t,".fc-event-resizer");a.setIgnoreMove(!p),o.isDragging=p&&e.subjectEl.classList.contains("fc-event-draggable")},o.handleDragStart=function(e){var t=o.component.context,n=o.eventRange,i=n.instance.instanceId;e.isTouch?i!==o.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):t.dispatch({type:"UNSELECT_EVENT"}),o.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:o.subjectEl,event:new r.fhX(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},o.handleHitUpdate=function(e,t){if(o.isDragging){var n=o.relevantEvents,i=o.hitDragging.initialHit,a=o.component.context,s=null,l=null,u=null,c=!1,d={affectedEvents:n,mutatedEvents:(0,r.H8x)(),isEvent:!0};if(e){var p=(s=e.context).options;a===s||p.editable&&p.droppable?(l=function(e,t,n){var i=e.dateSpan,o=t.dateSpan,a=i.range.start,s=o.range.start,l={};i.allDay!==o.allDay&&(l.allDay=o.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(a=(0,r.ol1)(a)));var u=(0,r.FjJ)(a,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);u.milliseconds&&(l.allDay=!1);for(var c={datesDelta:u,standardProps:l},d=0,p=n;d<p.length;d++){(0,p[d])(c,e,t)}return c}(i,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(u=(0,r.on3)(n,s.getCurrentData().eventUiBases,l,s),d.mutatedEvents=u,(0,r.lVx)(d,e.dateProfile,s)||(c=!0,l=null,u=null,d.mutatedEvents=(0,r.H8x)())):s=null}o.displayDrag(s,d),c?(0,r.tOV)():(0,r.q2g)(),t||(a===s&&D(i,e)&&(l=null),o.dragging.setMirrorNeedsRevert(!l),o.dragging.setMirrorIsVisible(!e||!(0,r.UOc)(o.subjectEl).querySelector(".fc-event-mirror")),o.receivingContext=s,o.validMutation=l,o.mutatedRelevantEvents=u)}},o.handlePointerUp=function(){o.isDragging||o.cleanup()},o.handleDragEnd=function(e){if(o.isDragging){var t=o.component.context,n=t.viewApi,a=o,s=a.receivingContext,l=a.validMutation,u=o.eventRange.def,c=o.eventRange.instance,d=new r.fhX(t,u,c),p=o.relevantEvents,f=o.mutatedRelevantEvents,h=o.hitDragging.finalHit;if(o.clearDrag(),t.emitter.trigger("eventDragStop",{el:o.subjectEl,event:d,jsEvent:e.origEvent,view:n}),l){if(s===t){var g=new r.fhX(t,f.defs[u.defId],c?f.instances[c.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:f});for(var v={oldEvent:d,event:g,relatedEvents:(0,r.uEb)(f,t,c),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:p})}},m={},y=0,E=t.getCurrentData().pluginHooks.eventDropTransformers;y<E.length;y++){var D=E[y];(0,i.__assign)(m,D(l,t))}t.emitter.trigger("eventDrop",(0,i.__assign)((0,i.__assign)((0,i.__assign)({},v),m),{el:e.subjectEl,delta:l.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",v)}else if(s){var b={event:d,relatedEvents:(0,r.uEb)(p,t,c),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:p})}};t.emitter.trigger("eventLeave",(0,i.__assign)((0,i.__assign)({},b),{draggedEl:e.subjectEl,view:n}
2)),t.dispatch({type:"REMOVE_EVENTS",eventStore:p}),t.emitter.trigger("eventRemove",b);var C=f.defs[u.defId],w=f.instances[c.instanceId],_=new r.fhX(s,C,w);s.dispatch({type:"MERGE_EVENTS",eventStore:f});var R={event:_,relatedEvents:(0,r.uEb)(f,s,w),revert:function(){s.dispatch({type:"REMOVE_EVENTS",eventStore:f})}};s.emitter.trigger("eventAdd",R),e.isTouch&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:c.instanceId}),s.emitter.trigger("drop",(0,i.__assign)((0,i.__assign)({},S(h.dateSpan,s)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:h.context.viewApi})),s.emitter.trigger("eventReceive",(0,i.__assign)((0,i.__assign)({},R),{draggedEl:e.subjectEl,view:h.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}o.cleanup()};var a=o.component.context.options,s=o.dragging=new v(n.el);s.pointer.selector=t.SELECTOR,s.touchScrollAllowed=!1,s.autoScroller.isEnabled=a.dragScroll;var l=o.hitDragging=new E(o.dragging,r.BNQ);return l.useSubjectCenter=n.useEventCenter,l.emitter.on("pointerdown",o.handlePointerDown),l.emitter.on("dragstart",o.handleDragStart),l.emitter.on("hitupdate",o.handleHitUpdate),l.emitter.on("pointerup",o.handlePointerUp),l.emitter.on("dragend",o.handleDragEnd),o}return(0,i.__extends)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,i=this.receivingContext;i&&i!==e&&(i===n?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:(0,r.H8x)(),isEvent:!0}}):i.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.N3M);var _=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,i=n.querySegEl(e),o=(0,r.VVT)(i),a=n.eventRange=o.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,i=n.eventRange;n.relevantEvents=(0,r.LkY)(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var o=n.querySegEl(e);n.draggingSegEl=o,n.draggingSeg=(0,r.VVT)(o),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:o,event:new r.fhX(t,i.def,i.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,i){var o=n.component.context,a=n.relevantEvents,s=n.hitDragging.initialHit,l=n.eventRange.instance,u=null,c=null,d=!1,p={affectedEvents:a,mutatedEvents:(0,r.H8x)(),isEvent:!0};e&&(e.componentId===s.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(s,e)||(u=function(e,t,n,i){var o=e.context.dateEnv,a=e.dateSpan.range.start,s=t.dateSpan.range.start,l=(0,r.FjJ)(a,s,o,e.largeUnit);if(n){if(o.add(i.start,l)<i.end)return{startDelta:l}}else if(o.add(i.end,l)>i.start)return{endDelta:l};return null}(s,e,i.subjectEl.classList.contains("fc-event-resizer-start"),l.range)));u&&(c=(0,r.on3)(a,o.getCurrentData().eventUiBases,u,o),p.mutatedEvents=c,(0,r.lVx)(p,e.dateProfile,o)||(d=!0,u=null,c=null,p.mutatedEvents=null)),c?o.dispatch({type:"SET_EVENT_RESIZE",state:p}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),d?(0,r.tOV)():(0,r.q2g)(),t||(u&&D(s,e)&&(u=null),n.validMutation=u,n.mutatedRelevantEvents=c)},n.handleDragEnd=function(e){var t=n.component.context,o=n.eventRange.def,a=n.eventRange.instance,s=new r.fhX(t,o,a),l=n.relevantEvents,u=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:s,jsEvent:e.origEvent,view:t.viewApi}
2),n.validMutation){var c=new r.fhX(t,u.defs[o.defId],a?u.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:u});var d={oldEvent:s,event:c,relatedEvents:(0,r.uEb)(u,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventResize",(0,i.__assign)((0,i.__assign)({},d),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||(0,r.xCT)(0),endDelta:n.validMutation.endDelta||(0,r.xCT)(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 o=t.component,a=n.dragging=new v(t.el);a.pointer.selector=".fc-event-resizer",a.touchScrollAllowed=!1,a.autoScroller.isEnabled=o.context.options.dragScroll;var s=n.hitDragging=new E(n.dragging,(0,r.qIM)(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(0,i.__extends)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return(0,r.YAv)(e.subjectEl,".fc-event")},t}(r.N3M);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,i=(0,r.Mpm)(e.origEvent);t.matchesCancel=!!(0,r.YAv)(i,n),t.matchesEvent=!!(0,r.YAv)(i,w.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,i=n.getCurrentData();if(!r.wasTouchScroll){if(i.dateSelection&&!t.isRecentPointerDateSelect){var o=n.options.unselectAuto;!o||o&&t.matchesCancel||n.calendarApi.unselect(e)}i.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}(),T={fixedMirrorParent:r.D_O},x={dateClick:r.D_O,eventDragStart:r.D_O,eventDragStop:r.D_O,eventDrop:r.D_O,eventResizeStart:r.D_O,eventResizeStop:r.D_O,eventResize:r.D_O,drop:r.D_O,eventReceive:r.D_O,eventLeave:r.D_O},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,o){var a=n.hitDragging.dragging,s=null,l=null,u=!1,c={affectedEvents:(0,r.H8x)(),mutatedEvents:(0,r.H8x)(),isEvent:n.dragMeta.create};e&&(s=e.context,n.canDropElOnCalendar(o.subjectEl,s)&&(l=function(e,t,n){for(var o=(0,i.__assign)({},t.leftoverProps),a=0,s=n.pluginHooks.externalDefTransforms;a<s.length;a++){var l=s[a];(0,i.__assign)(o,l(e,t))}var u=(0,r.Zl2)(o,n),c=u.refined,d=u.extra,p=(0,r.Rjd)(c,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):(0,r.hax)(e.allDay,f,n),g=(0,r.OEO)(p.defId,{start:f,end:h});return{def:p,instance:g}}(e.dateSpan,n.dragMeta,s),c.mutatedEvents=(0,r.tbu)(l),(u=!(0,r.lVx)(c,e.dateProfile,s))&&(c.mutatedEvents=(0,r.H8x)(),l=null))),n.displayDrag(s,c),a.setMirrorIsVisible(t||!l||!document.querySelector(".fc-event-mirror")),u?(0,r.tOV)():(0,r.q2g)(),t||(a.setMirrorNeedsRevert(!l),n.receivingContext=s,n.droppableEvent=l)},this.handleDragEnd=function(e){var t=n,o=t.receivingContext,a=t.droppableEvent;if(n.clearDrag(),o&&a){var s=n.hitDragging.finalHit,l=s.context.viewApi,u=n.dragMeta;if(o.emitter.trigger("drop",(0,i.__assign)((0,i.__assign)({},S(s.dateSpan,o)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:l})),u.create){var c=(0,r.tbu)(a);o.dispatch({type:"MERGE_EVENTS",eventStore:c}),e.isTouch&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instance.instanceId}),o.emitter.trigger("eventReceive",{event:new r.fhX(o,a.def,a.instance),relatedEvents:[],revert:function(){o.dispatch({type:"REMOVE_EVENTS",eventStore:c})},draggedEl:e.subjectEl,view:l})}}n.receivingContext=null,n.droppableEvent=null};var o=this.hitDragging=new E(e,r.BNQ);o.requireInitial=!1,o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"===typeof this.suppliedDragMeta?(0,r.PWO)(this.suppliedDragMeta):"function"===typeof this.suppliedDragMeta?(0,r.PWO)(this.suppliedDragMeta(e)):function(e){var t=function(e,t){var n=r.$WB.dataAttrPrefix,i=(n?n+"-":"")+t;return e.getAttribute("data-"+i)||""}(e,"event"),n=t?JSON.parse(t):{create:!1};return(0,r.PWO)(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((0,r.C4N)(e,n))},e}();r.$WB.dataAttrPrefix="";!function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,i=n.settings,o=i.minDistance,a=i.longPressDelay;t.minDistance=null!=o?o:e.isTouch?0:r.p3z.eventDragMinDistance,t.delay=e.isTouch?null!=a?a:r.p3z.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 i=this.dragging=new v(e);i.touchScrollAllowed=!1,null!=t.itemSelector&&(i.pointer.selector=t.itemSelector),null!=t.appendTo&&(i.mirror.parentNode=t.appendTo),i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),new k(i,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(0,i.__extends)(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.WDw);!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()}}();const I=(0,r.i1g)({componentInteractions:[b,C,w,_],calendarInteractions:[R],elementDraggingImpl:v,optionRefiners:T,listenerRefiners:x})},40253:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(34543),i=n(37827),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={textId:(0,r.znd)()},t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.dateEnv,o=e.options,s=e.viewApi,l=this.props,u=l.cellId,c=l.dayDate,d=l.todayRange,p=this.state.textId,f=(0,r.qFr)(c,d),h=o.listDayFormat?n.format(c,o.listDayFormat):"",g=o.listDaySideFormat?n.format(c,o.listDaySideFormat):"",v=(0,i.__assign)({date:n.toDate(c),view:s,textId:p,text:h,sideText:g,navLinkAttrs:(0,r.myk)(this.context,c),sideNavLinkAttrs:(0,r.myk)(this.context,c,"day",!1)},f),m=["fc-list-day"].concat((0,r.NP$)(f,t));return(0,r.na4)(r.iT7,{hookProps:v,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:a,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(e,n,i,o){return(0,r.na4)("tr",{ref:e,className:m.concat(n).join(" "),"data-date":(0,r.bxH)(c)},(0,r.na4)("th",{scope:"colgroup",colSpan:3,id:u,"aria-labelledby":p},(0,r.na4)("div",{className:"fc-list-day-cushion "+t.getClass("tableCellShaded"),ref:i},o)))}))},t}(r.$GR);function a(e){return(0,r.na4)(r.FK,null,e.text&&(0,r.na4)("a",(0,i.__assign)({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&(0,r.na4)("a",(0,i.__assign)({"aria-hidden":!0,
2className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}var s=(0,r.xi1)({hour:"numeric",minute:"2-digit",meridiem:"short"}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,o=e.timeHeaderId,a=e.eventHeaderId,l=e.dateHeaderId,c=t.options.eventTimeFormat||s;return(0,r.na4)(r.Nty,{seg:n,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:function(){return function(e,t){var n=(0,r.tPU)(e,t);return(0,r.na4)("a",(0,i.__assign)({},n),e.eventRange.def.title)}(n,t)},isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},(function(e,i,s,d,p){return(0,r.na4)("tr",{className:["fc-list-event",p.event.url?"fc-event-forced-url":""].concat(i).join(" "),ref:e},function(e,t,n,i,o){var a=n.options;if(!1!==a.displayEventTime){var s=e.eventRange.def,l=e.eventRange.instance,c=!1,d=void 0;if(s.allDay?c=!0:(0,r.HvV)(e.eventRange.range)?e.isStart?d=(0,r.wWN)(e,t,n,null,null,l.range.start,e.end):e.isEnd?d=(0,r.wWN)(e,t,n,null,null,e.start,l.range.end):c=!0:d=(0,r.wWN)(e,t,n),c){var p={text:n.options.allDayText,view:n.viewApi};return(0,r.na4)(r.iT7,{hookProps:p,classNames:a.allDayClassNames,content:a.allDayContent,defaultContent:u,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount},(function(e,t,n,a){return(0,r.na4)("td",{ref:e,headers:i+" "+o,className:["fc-list-event-time"].concat(t).join(" ")},a)}))}return(0,r.na4)("td",{className:"fc-list-event-time"},d)}return null}(n,c,t,o,l),(0,r.na4)("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},(0,r.na4)("span",{className:"fc-list-event-dot",style:{borderColor:p.borderColor||p.backgroundColor}})),(0,r.na4)("td",{ref:s,headers:a+" "+l,className:"fc-list-event-title"},d))}))},t}(r.$GR);function u(e){return e.text}var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
2return t.computeDateVars=(0,r.BjF)(p),t.eventStoreToSegs=(0,r.BjF)(t._eventStoreToSegs),t.state={timeHeaderId:(0,r.znd)(),eventHeaderId:(0,r.znd)(),dateHeaderIdRoot:(0,r.znd)()},t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,i=["fc-list",n.theme.getClass("table"),!1!==n.options.stickyHeaderDates?"fc-list-sticky":""],o=this.computeDateVars(t.dateProfile),a=o.dayDates,s=o.dayRanges,l=this.eventStoreToSegs(t.eventStore,t.eventUiBases,s);return(0,r.na4)(r.q4f,{viewSpec:n.viewSpec,elRef:this.setRootEl},(function(n,o){return(0,r.na4)("div",{ref:n,className:i.concat(o).join(" ")},(0,r.na4)(r.HOs,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},l.length>0?e.renderSegList(l,a):e.renderEmptyMessage()))}))},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,i={text:t.noEventsText,view:n};return(0,r.na4)(r.iT7,{hookProps:i,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:d,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e,t,n,i){return(0,r.na4)("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},(0,r.na4)("div",{className:"fc-list-empty-cushion",ref:n},i))}))},t.prototype.renderSegList=function(e,t){var n=this.context,a=n.theme,s=n.options,u=this.state,c=u.timeHeaderId,d=u.eventHeaderId,p=u.dateHeaderIdRoot,f=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1)(r[(n=e[t]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return(0,r.na4)(r.O6g,{unit:"day"},(function(e,n){for(var u=[],h=0;h<f.length;h+=1){var g=f[h];if(g){var v=(0,r.bxH)(t[h]),m=p+"-"+v;u.push((0,r.na4)(o,{key:v,cellId:m,dayDate:t[h],todayRange:n}));for(var y=0,E=g=(0,r.B4w)(g,s.eventOrder);y<E.length;y++){var D=E[y];u.push((0,r.na4)(l,(0,i.__assign)({key:v+":"+D.eventRange.instance.instanceId,seg:D,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:c,eventHeaderId:d,dateHeaderId:m},(0,r.F29)(D,n,e))))}}}return(0,r.na4)("table",{className:"fc-list-table "+a.getClass("table")},(0,r.na4)("thead",null,(0,r.na4)("tr",null,(0,r.na4)("th",{scope:"col",id:c},s.timeHint),(0,r.na4)("th",{scope:"col","aria-hidden":!0}),(0,r.na4)("th",{scope:"col",id:d},s.eventHint))),(0,r.na4)("tbody",null,u))}))},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs((0,r.MXk)(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];n.push.apply(n,this.eventRangeToSegs(o,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n,i,o,a=this.context.dateEnv,s=this.context.options.nextDayThreshold,l=e.range,u=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if((i=(0,r.imr)(l,t[n]))&&(o={component:this,eventRange:e,start:i.start,end:i.end,isStart:e.isStart&&i.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&i.end.valueOf()===l.end.valueOf(),dayIndex:n},c.push(o),!o.isEnd&&!u&&n+1<t.length&&l.end<a.add(t[n+1].start,s))){o.end=l.end,o.isEnd=!0;break}return c},t}(r.gzh);function d(e){return e.text}function p(e){for(var t=(0,r.ol1)(e.renderRange.start),n=e.renderRange.end,i=[],o=[];t<n;)i.push(t),o.push({start:t,end:(0,r.fij)(t,1)}),t=(0,r.fij)(t,1);return{dayDates:i,dayRanges:o}}var f={listDayFormat:h,listDaySideFormat:h,noEventsClassNames:r.D_O,noEventsContent:r.D_O,noEventsDidMount:r.D_O,noEventsWillUnmount:r.D_O};function h(e){return!1===e?null:(0,r.xi1)(e)}const g=(0,r.i1g)({optionRefiners:f,views:{list:{component:c,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}})},90706:(e,t,n)=>{n.d(t,{Ay$:()=>s});var r=n(37827),i=n(9950),o=n(17119);("undefined"!==typeof globalThis?globalThis:window).FullCalendarVDom={Component:i.Component,createElement:i.createElement,render:
2o.render,createRef:i.createRef,Fragment:i.Fragment,createContext:i.createContext,createPortal:o.createPortal,flushToDom:function(){},unmountComponentAtNode:o.unmountComponentAtNode};var a=n(34543);const s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._calendarApi=new a.fhD,t}return(0,r.__extends)(t,e),t.prototype.render=function(){return i.createElement(a.IyV,{optionOverrides:this.props,calendarApi:this._calendarApi},(function(e){return i.createElement(a.xRE,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,o,s){return i.createElement("div",{className:t.join(" "),style:{height:n}},i.createElement(a.o3v,(0,r.__assign)({isHeightAuto:o,forPrint:s},e)))}))}))},t.prototype.getApi=function(){return this._calendarApi},t}(i.Component)},3744:(e,t,n)=>{n.d(t,{Ay:()=>j});var r=n(34543),i=n(37827),o=n(40053),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(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?(0,r.CuQ)(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(r.O3W),s=(0,r.xi1)({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(0,r.na4)(r.TYi.Consumer,null,(function(n){if(!e.isLabeled)return(0,r.na4)("td",{className:t.join(" "),"data-time":e.isoTimeStr});var i=n.dateEnv,o=n.options,a=n.viewApi,l=null==o.slotLabelFormat?s:Array.isArray(o.slotLabelFormat)?(0,r.xi1)(o.slotLabelFormat[0]):(0,r.xi1)(o.slotLabelFormat),c={level:0,time:e.time,date:i.toDate(e.date),view:a,text:i.format(e.date,l)};return(0,r.na4)(r.iT7,{hookProps:c,classNames:o.slotLabelClassNames,content:o.slotLabelContent,defaultContent:u,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(function(n,i,o,a){return(0,r.na4)("td",{ref:n,className:t.concat(i).join(" "),"data-time":e.isoTimeStr},(0,r.na4)("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},(0,r.na4)("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:o},a)))}))}))}function u(e){return e.text}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return(0,r.na4)("tr",{key:e.key},(0,r.na4)(l,(0,i.__assign)({},e)))}))},t}(r.$GR),d=(0,r.xi1)({week:"short"}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new a,t.headerElRef=(0,r._3b)(),t.rootElRef=(0,r._3b)(),t.scrollerElRef=(0,r._3b)(),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 o=t.context.options,a=t.props.dateProfile.renderRange,s=1===(0,r.z$z)(a.start,a.end)?(0,r.myk)(t.context,a.start,"week"):{};return o.weekNumbers&&"day"===e?(0,r.na4)(r.SUi,{date:a.start,defaultFormat:d},(function(e,t,o,a){return(0,r.na4)("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},(0,r.na4)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},(0,r.na4)("a",(0,i.__assign)({ref:o,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},s),a)))})):(0,r.na4)("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},(0,r.na4)("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,i=n.options,o=n.viewApi,a={text:i.allDayText,view:o};return(0,r.na4)(r.iT7,{hookProps:a,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:f,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},(function(t,n,i,o){return(0,r.na4)("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},(0,r.na4)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},(0,r.na4)("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:i},o)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return(0,i.__extends)(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var i=this.context,o=this.props,a=[],s=(0,r._Dp)(i.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:(0,r.na4)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,r.na4)("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),(0,r.na4)(r.q4f,{viewSpec:i.viewSpec,elRef:this.rootElRef},(function(e,t){return(0,r.na4)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},(0,r.na4)(r.en1,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}))},t.prototype.renderHScrollLayout=function(e,t,n,i,o,a,s){var l=this,u=this.context.pluginHooks.scrollGridImpl;if(!u)throw new Error("No ScrollGrid implementation");var d=this.context,p=this.props,f=!p.forPrint&&(0,r._Dp)(d.options),h=!p.forPrint&&(0,r.v2o)(d.options),g=[];
2e&&g.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return(0,r.na4)("tr",{role:"presentation"},l.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(g.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return(0,r.na4)("tr",{role:"presentation"},l.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),g.push({key:"all-day-divider",type:"body",outerContent:(0,r.na4)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,r.na4)("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));var v=d.options.nowIndicator;return g.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(d.options.expandRows),chunks:[{key:"axis",content:function(e){return(0,r.na4)("div",{className:"fc-timegrid-axis-chunk"},(0,r.na4)("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,(0,r.na4)("tbody",null,(0,r.na4)(c,{slatMetas:a}))),(0,r.na4)("div",{className:"fc-timegrid-now-indicator-container"},(0,r.na4)(r.O6g,{unit:v?"minute":"day"},(function(e){var t=v&&s&&s.safeComputeTop(e);return"number"===typeof t?(0,r.na4)(r.qc,{isAxis:!0,date:e},(function(e,n,i,o){return(0,r.na4)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},o)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),h&&g.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:r.bLJ},{key:"cols",content:r.bLJ}]}),(0,r.na4)(r.q4f,{viewSpec:d.viewSpec,elRef:this.rootElRef},(function(e,t){return(0,r.na4)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},(0,r.na4)(u,{liquid:!p.isHeightAuto&&!p.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:o}]}],sections:g}))}))},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.gzh);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((0,r.$Bw)(t.currentRange,e)){var n=(0,r.ol1)(e),i=e.valueOf()-n.valueOf();if(i>=(0,r.Oh8)(t.slotMinTime)&&i<(0,r.Oh8)(t.slotMaxTime))return this.computeTimeTop((0,r.xCT)(i))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=(0,r.ol1)(e)),this.computeTimeTop((0,r.xCT)(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,i=this.positions,o=this.dateProfile,a=i.els.length,s=(e.milliseconds-(0,r.Oh8)(o.slotMinTime))/(0,r.Oh8)(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)),i.tops[t]+i.getHeight(t)*n},e}(),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,o=e.slatElRefs;return(0,r.na4)("tbody",null,e.slatMetas.map((function(a,s){var u={time:a.time,date:t.dateEnv.toDate(a.date),view:t.viewApi},c=["fc-timegrid-slot","fc-timegrid-slot-lane",a.isLabeled?"":"fc-timegrid-slot-minor"];return(0,r.na4)("tr",{key:a.key,ref:o.createRef(a.key)},e.axis&&(0,r.na4)(l,(0,i.__assign)({},a)),(0,r.na4)(r.iT7,{hookProps:u,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},(function(e,t,n,i){return(0,r.na4)("td",{ref:e,className:c.concat(t).join(" "),"data-time":a.isoTimeStr},i)})))})))},t}(r.$GR),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,r._3b)(),t.slatElRefs=new r.kFN,t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,r.na4)("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},(0,r.na4)("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,(0,r.na4)(g,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}
2,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.Qnh(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.$GR);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 y(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,i=e.segs;r<i.length;r++){var o=i[r];n[o.col].segs.push(o)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,r._3b)(),t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props;return(0,r.na4)(r.knM,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:D,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return I(t.hiddenSegs,t)}},(function(n,i,o,a,s,l,u,c){return(0,r.na4)("a",{ref:function(t){(0,r.cZi)(n,t),(0,r.cZi)(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(i).join(" "),style:{top:t.top,bottom:t.bottom},onClick:s,title:l,"aria-expanded":u,"aria-controls":c},(0,r.na4)("div",{ref:o,className:"fc-timegrid-more-link-inner fc-sticky"},a))}))},t}(r.$GR);function D(e){return e.shortText}function S(e,t,n){var o=new r.XpW;null!=t&&(o.strictOrder=t),null!=n&&(o.maxStackCnt=n);var a=o.addSegs(e),s=(0,r.XbD)(a),l=function(e){var t=e.entriesByLevel,n=_((function(e,t){return e+":"+t}),(function(o,a){var s=function(e,t,n){for(var i=e.levelCoords,o=e.entriesByLevel,a=o[t][n],s=i[t]+a.thickness,l=i.length,u=t;u<l&&i[u]<s;u+=1);for(;u<l;u+=1){for(var c=o[u],d=void 0,p=(0,r.ElE)(c,a.span.start,r.m7H),f=p[0]+p[1],h=f;(d=c[h])&&d.span.start<a.span.end;)h+=1;if(f<h)return{level:u,lateralStart:f,lateralEnd:h}}return null}(e,o,a),l=b(s,n),u=t[o][a];return[(0,i.__assign)((0,i.__assign)({},u),{nextLevelNodes:l[0]}),u.thickness+l[1]]}));return b(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(o);return{segRects:function(e){var t=[],n=_((function(e,t,n){return(0,r.qAn)(e)}),(function(e,n,r){var a=(0,i.__assign)((0,i.__assign)({},e),{levelCoord:n,stackDepth:r,stackForward:0});return t.push(a),a.stackForward=o(e.nextLevelNodes,n+e.thickness,r+1)+1}));function o(e,t,r){for(var i=0,o=0,a=e;o<a.length;o++){var s=a[o];i=Math.max(n(s,t,r),i)}return i}return o(e,0,0),t}(l=function(e,t){var n=_((function(e,t,n){return(0,r.qAn)(e)}),(function(e,r,o){var a,s=e.nextLevelNodes,l=e.thickness,u=l+o,c=l/u,d=[];if(s.length)for(var p=0,f=s;p<f.length;p++){var h=f[p];if(void 0===a){a=(g=n(h,r,u))[0],d.push(g[1])}else{var g=n(h,a,0);d.push(g[1])}}else a=t;var v=(a-r)*c;return[a-v,(0,i.__assign)((0,i.__assign)({},e),{thickness:v,nextLevelNodes:d})]}));return e.map((function(e){return n(e,0,0)[1]}))}(l,1)),hiddenGroups:s}}function b(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,i=e.lateralEnd,o=r,a=[];o<i;)a.push(t(n,o)),o+=1;return a.sort(C),[a.map(w),a[0][1]]}function C(e,t){return t[1]-e[1]}function w(e){return e[0]}function _(e,t){var n={};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e.apply(void 0,r);return o in n?n[o]:n[o]=t.apply(void 0,r)}}function R(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=0);var i=[];if(n)for(var o=0;o<e.length;o+=1){var a=e[o],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}var T=(0,r.xi1)({hour:"numeric",minute:"2-digit",meridiem:!1}),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),(0,r.na4)(r.y8j,(0,i.__assign)({},this.props,{defaultTimeFormat:T,extraClassNames:e}))},t}(r.$GR),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props;return(0,r.na4)(r.ux1,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&(0,r.na4)("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(r.$GR),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=(0,r.BjF)(r.B4w),t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,o=n.options.selectMirror,a=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||o&&t.dateSelectionSegs||[],s=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},l=this.sortEventSegs(t.fgEventSegs,n.options.eventOrder);return(0,r.na4)(r.rrN,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(n,u,c){return(0,r.na4)("td",(0,i.__assign)({ref:n,role:"gridcell",className:["fc-timegrid-col"].concat(u,t.extraClassNames||[]).join(" ")},c,t.extraDataAttrs),(0,r.na4)("div",{className:"fc-timegrid-col-frame"},(0,r.na4)("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),(0,r.na4)("div",{className:"fc-timegrid-col-events"}
2,e.renderFgSegs(l,s,!1,!1,!1)),(0,r.na4)("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(a,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(o))),(0,r.na4)("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),(0,r.na4)(k,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,n,r,i){var o=this.props;return o.forPrint?I(e,o):this.renderPositionedFgSegs(e,t,n,r,i)},t.prototype.renderPositionedFgSegs=function(e,t,n,o,a){var s=this,l=this.context.options,u=l.eventMaxStack,c=l.eventShortHeight,d=l.eventOrderStrict,p=l.eventMinHeight,f=this.props,h=f.date,g=f.slatCoords,v=f.eventSelection,m=f.todayRange,y=f.nowDate,E=n||o||a,D=function(e,t,n,r){for(var i=[],o=[],a=0;a<e.length;a+=1){var s=t[a];s?i.push({index:a,thickness:1,span:s}):o.push(e[a])}for(var l=S(i,n,r),u=l.segRects,c=l.hiddenGroups,d=[],p=0,f=u;p<f.length;p++){var h=f[p];d.push({seg:e[h.index],rect:h})}for(var g=0,v=o;g<v.length;g++){var m=v[g];d.push({seg:m,rect:null})}return{segPlacements:d,hiddenGroups:c}}(e,R(e,h,g,p),d,u),b=D.segPlacements,C=D.hiddenGroups;return(0,r.na4)(r.FK,null,this.renderHiddenGroups(C,e),b.map((function(e){var l=e.seg,u=e.rect,d=l.eventRange.instance.instanceId,p=E||Boolean(!t[d]&&u),f=N(u&&u.span),h=!E&&u?s.computeSegHStyle(u):{left:0,right:0},g=Boolean(u)&&u.stackForward>0,D=Boolean(u)&&u.span.end-u.span.start<c;return(0,r.na4)("div",{className:"fc-timegrid-event-harness"+(g?" fc-timegrid-event-harness-inset":""),key:d,style:(0,i.__assign)((0,i.__assign)({visibility:p?"":"hidden"},f),h)},(0,r.na4)(x,(0,i.__assign)({seg:l,isDragging:n,isResizing:o,isDateSelecting:a,isSelected:d===v,isShort:D},(0,r.F29)(l,m,y))))})))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,i=n.extraDateSpan,o=n.dateProfile,a=n.todayRange,s=n.nowDate,l=n.eventSelection,u=n.eventDrag,c=n.eventResize;return(0,r.na4)(r.FK,null,e.map((function(e){var n,d,p=N(e.span),f=(n=e.entries,d=t,n.map((function(e){return d[e.index]})));return(0,r.na4)(E,{key:(0,r.NIT)((0,r.aQG)(f)),hiddenSegs:f,top:p.top,bottom:p.bottom,extraDateSpan:i,dateProfile:o,todayRange:a,nowDate:s,eventSelection:l,eventDrag:u,eventResize:c})})))},t.prototype.renderFillSegs=function(e,t){var n=this.props,o=this.context,a=R(e,n.date,n.slatCoords,o.options.eventMinHeight).map((function(o,a){var s=e[a];return(0,r.na4)("div",{key:(0,r.N8)(s.eventRange),className:"fc-timegrid-bg-harness",style:N(o)},"bg-event"===t?(0,r.na4)(r.s_G,(0,i.__assign)({seg:s},(0,r.F29)(s,n.todayRange,n.nowDate))):(0,r.aOA)(t))}));return(0,r.na4)(r.FK,null,a)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,i=t.date;return n?e.map((function(e,t){return(0,r.na4)(r.qc,{isAxis:!1,date:i,key:t},(function(t,o,a,s){return(0,r.na4)("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(o).join(" "),style:{top:n.computeDateTop(e.start,i)}},s)}))})):null},t.prototype.computeSegHStyle=function(e){var t,n,r=this.context,i=r.isRtl,o=r.options.slotEventOverlap,a=e.levelCoord,s=e.levelCoord+e.thickness;o&&(s=Math.min(1,a+2*(s-a))),i?(t=1-s,n=a):(t=a,n=1-s);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return o&&!e.stackForward&&(l[i?"marginLeft":"marginRight"]=20),l},t}(r.$GR);function I(e,t){var n=t.todayRange,o=t.nowDate,a=t.eventSelection,s=t.eventDrag,l=t.eventResize,u=(s?s.affectedInstances:null)||(l?l.affectedInstances:null)||{};return(0,r.na4)(r.FK,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return(0,r.na4)("div",{key:t,style:{visibility:u[t]?"hidden":""}},(0,r.na4)(x,(0,i.__assign)({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===a,isShort:!1},(0,r.F29)(e,n,o))))})))}function N(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=(0,r.BjF)(m),t.splitBgEventSegs=(0,r.BjF)(m),t.splitBusinessHourSegs=(0,r.BjF)(m),t.splitNowIndicatorSegs=(0,r.BjF)(m),t.splitDateSelectionSegs=(0,r.BjF)(m),t.splitEventDrag=(0,r.BjF)(y),t.splitEventResize=(0,r.BjF)(y),t.rootElRef=(0,r._3b)(),t.cellElRefs=new r.kFN,t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,i),a=this.splitBgEventSegs(t.bgEventSegs,i),s=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),u=this.splitDateSelectionSegs(t.dateSelectionSegs,i),c=this.splitEventDrag(t.eventDrag,i),d=this.splitEventResize(t.eventResize,i);return(0,r.na4)("div",{className:"fc-timegrid-cols",ref:this.rootElRef},(0,r.na4)("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,(0,r.na4)("tbody",{role:"presentation"},(0,r.na4)("tr",{role:"row"}
2,t.axis&&(0,r.na4)("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},(0,r.na4)("div",{className:"fc-timegrid-col-frame"},(0,r.na4)("div",{className:"fc-timegrid-now-indicator-container"},"number"===typeof n&&(0,r.na4)(r.qc,{isAxis:!0,date:t.nowDate},(function(e,t,i,o){return(0,r.na4)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:n}},o)}))))),t.cells.map((function(n,i){return(0,r.na4)(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:o[i],bgEventSegs:a[i],businessHourSegs:s[i],nowIndicatorSegs:l[i],dateSelectionSegs:u[i],eventDrag:c[i],eventResize:d[i],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.Qnh(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))},t}(r.$GR);var H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=(0,r.BjF)(O),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 i=r.computeTimeTop(e.time);(i=Math.ceil(i))&&(i+=1),n(i)}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(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return(0,r.na4)("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},(0,r.na4)(v,{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}),(0,r.na4)(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,o=n.dateEnv,a=n.options,s=this.colCoords,l=this.props.dateProfile,u=this.state.slatCoords,c=this.processSlotOptions(this.props.slotDuration,a.snapDuration),d=c.snapDuration,p=c.snapsPerSlot,f=s.leftToIndex(e),h=u.positions.topToIndex(t);if(null!=f&&null!=h){var g=this.props.cells[f],v=u.positions.tops[h],m=u.positions.getHeight(h),y=(t-v)/m,E=h*p+Math.floor(y*p),D=this.props.cells[f].date,S=(0,r.do1)(l.slotMinTime,(0,r.Nay)(d,E)),b=o.add(D,S),C=o.add(b,d);return{dateProfile:l,dateSpan:(0,i.__assign)({range:{start:b,end:C},allDay:!1},g.extraDateSpan),dayEl:s.els[f],rect:{left:s.lefts[f],right:s.rights[f],top:v,bottom:v+m},layer:0}}return null},t}(r.gzh);function O(e,t){var n=t||e,i=(0,r.Y2k)(e,n);return null===i&&(n=e,i=1),{snapDuration:n,snapsPerSlot:i}}var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],i=0;i<t.length;i+=1){var o=(0,r.imr)(e,t[i]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:i})}return n},t}(r.$He),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=(0,r.BjF)(F),t.slicer=new A,t.timeColsRef=(0,r._3b)(),t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,o=t.dateProfile,a=t.dayTableModel,s=n.options.nowIndicator,l=this.buildDayRanges(a,o,n.dateEnv);return(0,r.na4)(r.O6g,{unit:s?"minute":"day"},(function(u,c){return(0,r.na4)(H,(0,i.__assign)({ref:e.timeColsRef},e.slicer.sliceProps(t,o,null,n,l),{forPrint:t.forPrint,axis:t.axis,dateProfile:o,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:u,n
2owIndicatorSegs:s&&e.slicer.sliceNowDate(u,n,l),todayRange:c,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},t}(r.gzh);function F(e,t,n){for(var r=[],i=0,o=e.headerDates;i<o.length;i++){var a=o[i];r.push({start:n.add(a,t.slotMinTime),end:n.add(a,t.slotMaxTime)})}return r}var U=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function W(e,t,n,i,o){for(var a=new Date(0),s=e,l=(0,r.xCT)(0),u=n||function(e){var t,n,i;for(t=U.length-1;t>=0;t-=1)if(n=(0,r.xCT)(U[t]),null!==(i=(0,r.Y2k)(n,e))&&i>1)return n;return e}(i),c=[];(0,r.Oh8)(s)<(0,r.Oh8)(t);){var d=o.add(a,s),p=null!==(0,r.Y2k)(l,u);c.push({date:d,time:s,key:d.toISOString(),isoTimeStr:(0,r.PeH)(d),isLabeled:p}),s=(0,r.do1)(s,i),l=(0,r.do1)(l,i)}return c}var V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=(0,r.BjF)(B),t.buildSlatMetas=(0,r.BjF)(W),t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,a=t.dateEnv,s=t.dateProfileGenerator,l=this.props,u=l.dateProfile,c=this.buildTimeColsModel(u,s),d=this.allDaySplitter.splitProps(l),p=this.buildSlatMetas(u.slotMinTime,u.slotMaxTime,n.slotLabelInterval,n.slotDuration,a),f=n.dayMinWidth,h=!f,g=f,v=n.dayHeaders&&(0,r.na4)(r.A1b,{dates:c.headerDates,dateProfile:u,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),m=!1!==n.allDaySlot&&function(t){return(0,r.na4)(o.t7,(0,i.__assign)({},d.allDay,{dateProfile:u,dayTableModel:c,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()))},y=function(t){return(0,r.na4)(L,(0,i.__assign)({},d.timed,{dayTableModel:c,dateProfile:u,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 g?this.renderHScrollLayout(v,m,y,c.colCnt,f,p,this.state.slatCoords):this.renderSimpleLayout(v,m,y)},t}(p);function B(e,t){var n=new r.NC_(e.renderRange,t);return new r.mql(n,!1)}var z={allDaySlot:Boolean};const j=(0,r.i1g)({initialView:"timeGridWeek",optionRefiners:z,views:{timeGrid:{component:V,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.