!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t((e=e||self).FullCalendar={})}(this,function(e){"use strict";vart={className:!0,colSpan:!0,rowSpan:!0},n={"<tr":"tbody","<td":"tr"};functionr(e,n,r){vari=document.createElement(e);if(n)for(varoinn)"style"===o?y(i,n[o]):t[o]?i[o]=n[o]:i.setAttribute(o,n[o]);return"string"==typeofr?i.innerHTML=r:null!=r&&s(i,r),i}functioni(e){e=e.trim();vart=document.createElement(a(e));returnt.innerHTML=e,t.firstChild}functiono(e){returnArray.prototype.slice.call(function(e){e=e.trim();vart=document.createElement(a(e));returnt.innerHTML=e,t.childNodes}(e))}functiona(e){returnn[e.substr(0,3)]||"div"}functions(e,t){for(varn=l(t),r=0;r<n.length;r++)e.appendChild(n[r])}functionu(e,t){for(varn=l(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}functionl(e){return"string"==typeofe?o(e):einstanceofNode?[e]:Array.prototype.slice.call(e)}functionc(e){e.parentNode&&e.parentNode.removeChild(e)}vard=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,f=Element.prototype.closest||function(e){vart=this;if(!document.documentElement.contains(t))returnnull;do{if(h(t,e))returnt;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);returnnull};functionp(e,t){returnf.call(e,t)}functionh(e,t){returnd.call(e,t)}functionv(e,t){for(varn=einstanceofHTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(varo=n[i].querySelectorAll(t),a=0;a<o.length;a++)r.push(o[a]);returnr}varg=/(top|left|right|bottom|width|height)$/i;functiony(e,t){for(varnint)m(e,n,t[n])}functionm(e,t,n){null==n?e.style[t]="":"number"==typeofn&&g.test(t)?e.style[t]=n+"px":e.style[t]=n}functionE(e,t){varn={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)};returnn.left<n.right&&n.top<n.bottom&&n}varS=null;functionb(){returnnull===S&&(S=function(){vare=r("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);vart=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;returnc(e),t}()),S}functionD(e){returne=Math.max(0,e),e=Math.round(e)}functionT(e,t){void0===t&&(t=!1);varn=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=D(e.offsetWidth-e.clientWidth-r-i),u={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:D(e.offsetHeight-e.clientHeight-o-a),scrollbarLeft:0,scrollbarRight:0};returnb()&&"rtl"===n.direction?u.scrollbarLeft=s:u.scrollbarRight=s,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}functionw(e,t){void0===t&&(t=!1);varn=R(e),r=T(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};returnt&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}functionR(e){vart=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}functionC(e){returne.getBoundingClientRect().height+I(e)}functionI(e){vart=window.getComputedStyle(e);returnparseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}functionM(e){for(vart=[];einstanceofHTMLElement;){varn=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}returnt}functionk(e){e.preventDefault()}function_(e,t,n,r){functioni(e){vart=p(e.target,n);t&&r.call(t,e,t)}returne.addEventListener(t,i),function(){e.removeEventListener(t,i)}}varO=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];varP=["sun","mon","tue","wed","thu","fri","sat"];functionx(e,t){varn=Z(e);returnn[2]+=t,j(n)}functionN(e,t){varn=Z(e);returnn[6]+=t,j(n)}functionH(e,t){return(t.valueOf()-e.valueOf())/864e5}functionU(e,t){varn=B(e),r=B(t);return{years:0,months:0,days:Math.round(H(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}functionz(e,t){varn=L(e,t);returnnull!==n&&n%7==0?n/7:null}functionL(e,t){returnq(e)===q(t)?Math.round(H(e,t)):null}functionB(e){returnj([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}functionV(e,t,n,r){vari=j([t,0,1+A(t,n,r)]),o=B(e),a=Math.round(H(i,o));returnMath.floor(a/7)+1}functionA(e,t,n){varr=7+t-n;return-((7+j([e,0,r]).getUTCDay()-t)%7)+r-1}functionF(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}functionW(e){returnnewDate(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}functionZ(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}functionj(e){return1===e.length&&(e=e.concat([0])),newDate(Date.UTC.apply(Date,e))}functionY(e){return!isNaN(e.valueOf())}functionq(e){return1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}varG=["years","months","days","milliseconds"],X=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;functionJ(e,t){varn;return"string"==typeofe?function(e){vart=X.exec(e);if(t){varn=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))}}returnnull}(e):"object"==typeofe&&e?K(e):"number"==typeofe?K(((n={})[t||"milliseconds"]=e,n)):null}functionK(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*Q(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}functionQ(e){returne.weeks||e.week||0}function$(e,t){returne.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}functionee(e){returnte(e)/864e5}functionte(e){return31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}functionne(e,t){varn=e.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}returne.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}functionre(e){e.forEach(function(e){e.style.height=""})}functionie(e){vart,n,r=[],i=[];for("string"==typeofe?i=e.split(/\s*,\s*/):"function"==typeofe?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeofn&&r.push({func:n});returnr}functionoe(e,t,n){varr,i;for(r=0;r<n.length;r++)if(i=ae(e,t,n[r]))returni;return0}functionae(e,t,n){returnn.func?n.func(e,t):se(e[n.field],t[n.field])*(n.order||1)}functionse(e,t){returne||t?null==t?-1:null==e?1:"string"==typeofe||"string"==typeoft?String(e).localeCompare(String(t)):e-t:0}functionue(e){returne.charAt(0).toUpperCase()+e.slice(1)}functionle(e,t){varn=String(e);return"000".substr(0,t-n.length)+n}functionce(e){returne%1==0}functionde(e,t,n){if("function"==typeofe&&(e=[e]),e){varr=void0,i=void0;for(r=0;r<e.length;r++)i=e[r].apply(t,n)||i;returni}}functionfe(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(varn=0;n<e.length;n++)if(void0!==e[n])returne[n]}functionpe(e,t){varn,r,i,o,a,s=function(){varu=(newDate).valueOf()-o;u<t?n=setTimeout(s,t-u):(n=null,a=e.apply(i,r),i=r=null)};returnfunction(){returni=this,r=arguments,o=(newDate).valueOf(),n||(n=setTimeout(s,t)),a}}functionhe(e,t,n,r){void0===n&&(n={});vari={};for(varoint){vara=t[o];void0!==e[o]?a===Function?i[o]="function"==typeofe[o]?e[o]:null:i[o]=a?a(e[o]):e[o]:void0!==n[o]?i[o]=n[o]:a===String?i[o]="":a&&a!==Number&&a!==Boolean&&a!==Function?i[o]=a(null):i[o]=null}if(r)for(varoine)void0===t[o]&&(r[o]=e[o]);returni}functionve(e){vart=Math.floor(H(e.start,e.end))||1,n=B(e.start);return{start:n,end:x(n,t)}}functionge(e,t){void0===t&&(t=J(0));varn=null,r=null;if(e.end){r=B(e.end);vari=e.end.valueOf()-r.valueOf();i&&i>=te(t)&&(r=x(r,1))}returne.start&&(n=B(e.start),r&&r<=n&&(r=x(n,1))),{start:n,end:r}}functionye(e,t,n,r){return"year"===r?J(n.diffWholeYears(e,t),"year"):"month"===r?J(n.diffWholeMonths(e,t),"month"):U(e,t)}varme=function(e,t){return(me=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(e,t){e.__proto__=t}||function(e,t){for(varnint)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};functionEe(e,t){functionn(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,newn)}varSe=function(){return(Se=Object.assign||function(e){for(vart,n=1,r=arguments.length;n<r;n++)for(variint=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);returne}).apply(this,arguments)};functionbe(e,t,n,r,i){varo=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);returne.allDay&&(o=o.map(B)),o}varDe=Object.prototype.hasOwnProperty;functionTe(e,t){varn,r,i,o,a,s,u={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;o>=0;o--)if("object"==typeof(a=e[o][r])&&a)i.unshift(a);elseif(void0!==a){u[r]=a;break}i.length&&(u[r]=Te(i))}for(n=e.length-1;n>=0;n--)for(rins=e[n])rinu||(u[r]=s[r]);returnu}functionwe(e,t){varn={};for(varrine)t(e[r],r)&&(n[r]=e[r]);returnn}functionRe(e,t){varn={};for(varrine)n[r]=t(e[r],r);returnn}functionCe(e){for(vart={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}returnt}functionIe(e){vart=[];for(varnine)t.push(e[n]);returnt}functionMe(e,t){for(varnine)if(De.call(e,n)&&!(nint))return!1;for(varnint)if(De.call(t,n)&&e[n]!==t[n])return!1;return!0}functionke(e,t,n,r){for(vari={defs:{},instances:{}},o=0,a=e;o<a.length;o++){vars=Zt(a[o],t,n,r);s&&_e(s,i)}returni}function_e(e,t){returnvoid0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}functionOe(e,t,n){varr=n.dateEnv,i=e.defs,o=e.instances;for(varaino=we(o,function(e){return!i[e.defId].recurringDef}),i){vars=i[a];if(s.recurringDef){varu=s.recurringDef.duration;u||(u=s.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(varl=0,c=be(s,u,t,n.dateEnv,n.pluginSystem.hooks.recurringTypes);l<c.length;l++){vard=c[l],f=Yt(a,{start:d,end:r.add(d,u)});o[f.instanceId]=f}}}return{defs:i,instances:o}}functionPe(e,t){varn=e.instances[t];if(n){varr=e.defs[n.defId],i=Ue(e,function(e){returnt=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);vart,n});returni.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}functionxe(e,t){varn;if(t){n=[];for(varr=0,i=e;r<i.length;r++){varo=i[r],a=t(o);a?n.push(a):null==a&&n.push(o)}}elsen=e;returnn}functionNe(){return{defs:{},instances:{}}}functionHe(e,t){return{defs:Se({},e.defs,t.defs),instances:Se({},e.instances,t.instances)}}functionUe(e,t){varn=we(e.defs,t),r=we(e.instances,function(e){returnn[e.defId]});return{defs:n,instances:r}}functionze(e,t){varn=null,r=null;returne.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}functionLe(e,t){varn,r,i=[],o=t.start;for(e.sort(Be),n=0;n<e.length;n++)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);returno<t.end&&i.push({start:o,end:t.end}),i}functionBe(e,t){returne.start.valueOf()-t.start.valueOf()}functionVe(e,t){varn=e.start,r=e.end,i=null;returnnull!==t.start&&(n=null===n?t.start:newDate(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:newDate(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}functionAe(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}functionFe(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}functionWe(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}functionZe(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}functionje(e,t){varn,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}functionYe(e){vart,n;returnfunction(){returnt&&je(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}functionqe(e,t){varn=null;returnfunction(){varr=e.apply(this,arguments);return(null===n||n!==r&&!t(n,r))&&(n=r),n}}varGe={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Xe={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Je=/\s*([ap])\.?m\.?/i,Ke=/,/g,Qe=/\s+/g,$e=/\u200e/g,et=/UTC|GMT/,tt=function(){functione(e){vart={},n={},r=0;for(variine)iinGe?(n[i]=e[i],r=Math.max(Ge[i],r)):(t[i]=e[i],iinXe&&(r=Math.max(Xe[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Ye(nt)}returne.prototype.format=function(e,t){returnthis.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n){varr=this.standardDateProps,i=this.extendedSettings,o=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return2;if(q(e)!==q(t))return1;return0}(e.marker,t.marker,n.calendarSystem);if(!o)returnthis.format(e,n);vara=o;!(a>1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(a=1);vars=this.format(e,n),u=this.format(t,n);if(s===u)returns;varl=nt(function(e,t){varn={};for(varrine)rinXe&&!(Xe[r]<=t)||(n[r]=e[r]);returnn}(r,a),i,n),c=l(e),d=l(t),f=function(e,t,n,r){vari=0;for(;i<e.length;){varo=e.indexOf(t,i);if(-1===o)break;vara=e.substr(0,o);i=o+t.length;for(vars=e.substr(i),u=0;u<n.length;){varl=n.indexOf(r,u);if(-1===l)break;varc=n.substr(0,l);u=l+r.length;vard=n.substr(u);if(a===c&&s===d)return{before:a,after:s}}}returnnull}(s,c,u,d),p=i.separator||"";returnf?f.before+c+p+d+f.after:s+p+u},e.prototype.getLargestUnit=function(){switch(this.severity){case7:case6:case5:return"year";case4:return"month";case3:return"week";default:return"day"}},e}();functionnt(e,t,n){varr=Object.keys(e).length;return1===r&&"short"===e.timeZoneName?function(e){returnat(e.timeZoneOffset)}:0===r&&t.week?function(e){returnfunction(e,t,n,r){vari=[];"narrow"===r?i.push(t):"short"===r&&i.push(t,"");i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse();returni.join("")}(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:function(e,t,n){e=Se({},e),t=Se({},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)&&deletet.omitZeroMinute}(e,t),e.timeZone="UTC";varr,i=newIntl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){varo=Se({},e);deleteo.minute,r=newIntl.DateTimeFormat(n.locale.codes,o)}returnfunction(o){vara=o.marker,s=(r&&!a.getUTCMinutes()?r:i).format(a);returnfunction(e,t,n,r,i){e=e.replace($e,""),"short"===n.timeZoneName&&(e=function(e,t){varn=!1;e=e.replace(et,function(){returnn=!0,t}),n||(e+=""+t);returne}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":at(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ke,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Je,"").trim():"narrow"===r.meridiem?e=e.replace(Je,function(e,t){returnt.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(Je,function(e,t){returnt.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(Je,function(e){returne.toLocaleLowerCase()}));returne=(e=e.replace(Qe,"")).trim()}(s,o,e,t,n)}}(e,t,n)}varrt=function(){functione(e,t){this.cmdStr=e,this.separator=t}returne.prototype.format=function(e,t){returnt.cmdFormatter(this.cmdStr,st(e,null,t,this.separator))},e.prototype.formatRange=function(e,t,n){returnn.cmdFormatter(this.cmdStr,st(e,t,n,this.separator))},e}(),it=function(){functione(e){this.func=e}returne.prototype.format=function(e,t){returnthis.func(st(e,null,t))},e.prototype.formatRange=function(e,t,n){returnthis.func(st(e,t,n))},e}();functionot(e,t){return"object"==typeofe&&e?("string"==typeoft&&(e=Se({separator:t},e)),newtt(e)):"string"==typeofe?newrt(e,t):"function"==typeofe?newit(e):void0}functionat(e,t){void0===t&&(t=!1);varn=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);returnt?n+le(i,2)+":"+le(o,2):"GMT"+n+i+(o?":"+le(o,2):"")}functionst(e,t,n,r){vari=ut(e,n.calendarSystem);return{date:i,start:i,end:t?ut(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}functionut(e,t){varn=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]}}varlt=function(){functione(e,t){this.calendar=e,this.internalEventSource=t}returne.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(e.prototype,"id",{get:function(){returnthis.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){returnthis.internalEventSource.meta.url},enumerable:!0,configurable:!0}),e}(),ct=function(){functione(e,t,n){this._calendar=e,this._def=t,this._instance=n||null}returne.prototype.setProp=function(e,t){varn,r;if(einFt);elseif(einAt)"function"==typeofAt[e]&&(t=At[e](t)),this.mutate({standardProps:(n={},n[e]=t,n)});elseif(einHt){vari=void0;"function"==typeofHt[e]&&(t=Ht[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}})}},e.prototype.setExtendedProp=function(e,t){varn;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void0===t&&(t={});varn=this._calendar.dateEnv,r=n.createMarker(e);if(r&&this._instance){vari=ye(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},e.prototype.setEnd=function(e,t){void0===t&&(t={});varn,r=this._calendar.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){vari=ye(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}elsethis.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void0===n&&(n={});varr,i=this._calendar.dateEnv,o={allDay:n.allDay},a=i.createMarker(e);if(a&&(null==t||(r=i.createMarker(t)))&&this._instance){vars=this._instance.range;!0===n.allDay&&(s=ve(s));varu=ye(s.start,a,i,n.granularity);if(r){varl=ye(s.end,r,i,n.granularity);$(u,l)?this.mutate({datesDelta:u,standardProps:o}):this.mutate({startDelta:u,endDelta:l,standardProps:o})}elseo.hasEnd=!1,this.mutate({datesDelta:u,standardProps:o})}},e.prototype.moveStart=function(e){vart=J(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){vart=J(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){vart=J(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void0===t&&(t={});varn={allDay:e},r=t.maintainDuration;null==r&&(r=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){vart=this._calendar.dateEnv,n=this._instance,r=ot(e,this._calendar.opt("defaultRangeSeparator"));returnthis._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(e){vart=this._def,n=this._instance;if(n){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:n.instanceId,mutation:e,fromApi:!0});varr=this._calendar.state.eventStore;this._def=r.defs[t.defId],this._instance=r.instances[n.instanceId]}},e.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(e.prototype,"source",{get:function(){vare=this._def.sourceId;returne?newlt(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){returnthis._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){returnthis._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){returnthis._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){returnthis._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){returnthis._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){returnthis._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){returnthis._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rendering",{get:function(){returnthis._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){returnthis._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){returnthis._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){returnthis._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){returnthis._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){returnthis._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){returnthis._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){returnthis._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){returnthis._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){returnthis._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){returnthis._def.extendedProps},enumerable:!0,configurable:!0}),e}();functiondt(e,t,n,r){vari={},o={},a={},s=[],u=[],l=vt(e.defs,t);for(varcine.defs){"inverse-background"===(S=e.defs[c]).rendering&&(S.groupId?(i[S.groupId]=[],a[S.groupId]||(a[S.groupId]=S)):o[c]=[])}for(vardine.instances){varf=e.instances[d],p=l[(S=e.defs[f.defId]).defId],h=f.range,v=!S.allDay&&r?ge(h,r):h,g=Ve(v,n);g&&("inverse-background"===S.rendering?S.groupId?i[S.groupId].push(g):o[f.defId].push(g):("background"===S.rendering?s:u).push({def:S,ui:p,instance:f,range:g,isStart:v.start&&v.start.valueOf()===g.start.valueOf(),isEnd:v.end&&v.end.valueOf()===g.end.valueOf()}))}for(varyini)for(varm=0,E=Le(i[y],n);m<E.length;m++){varS,b=E[m];p=l[(S=a[y]).defId];s.push({def:S,ui:p,instance:null,range:b,isStart:!1,isEnd:!1})}for(varcino)for(varD=0,T=Le(o[c],n);D<T.length;D++){b=T[D];s.push({def:e.defs[c],ui:l[c],instance:null,range:b,isStart:!1,isEnd:!1})}return{bg:s,fg:u}}functionft(e,t,n){varr=e.calendar,i=e.view;r.hasPublicHandlers("eventRender")&&(t=t.filter(function(e){vart=r.publiclyTrigger("eventRender",[{event:newct(r,e.eventRange.def,e.eventRange.instance),isMirror:n,isStart:e.isStart,isEnd:e.isEnd,el:e.el,view:i}]);return!1!==t&&(t&&!0!==t&&(e.el=t),!0)}));for(varo=0,a=t;o<a.length;o++){vars=a[o];pt(s.el,s)}returnt}functionpt(e,t){e.fcSeg=t}functionht(e){returne.fcSeg||null}functionvt(e,t){returnRe(e,function(e){returngt(e,t)})}functiongt(e,t){varn=[];returnt[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Bt(n)}functionyt(e,t,n){varr=e.calendar,i=e.view;if(r.hasPublicHandlers("eventPositioned"))for(varo=0,a=t;o<a.length;o++){vars=a[o];r.publiclyTriggerAfterSizing("eventPositioned",[{event:newct(r,s.eventRange.def,s.eventRange.instance),isMirror:n,isStart:s.isStart,isEnd:s.isEnd,el:s.el,view:i}])}r.state.loadingLevel||(r.afterSizingTriggers._eventsPositioned=[null])}functionmt(e,t,n){for(varr=e.calendar,i=e.view,o=0,a=t;o<a.length;o++){vars=a[o];r.trigger("eventElRemove",s.el)}if(r.hasPublicHandlers("eventDestroy"))for(varu=0,l=t;u<l.length;u++){s=l[u];r.publiclyTrigger("eventDestroy",[{event:newct(r,s.eventRange.def,s.eventRange.instance),isMirror:n,el:s.el,view:i}])}}functionEt(e,t,n,r){vari=vt(e.defs,t),o={defs:{},instances:{}};for(varaine.defs){vars=e.defs[a];o.defs[a]=St(s,i[a],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(varuine.instances){varl=e.instances[u];s=o.defs[l.defId];o.instances[u]=bt(l,s,i[l.defId],n,r)}returno}functionSt(e,t,n,r,i){varo=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);vara=Se({},e,o,{ui:Se({},e.ui,o.ui)});n.extendedProps&&(a.extendedProps=Se({},a.extendedProps,n.extendedProps));for(vars=0,u=r;s<u.length;s++){(0,u[s])(a,n,i)}return!a.hasEnd&&i.opt("forceEventDuration")&&(a.hasEnd=!0),a}functionbt(e,t,n,r,i){varo=i.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,u=Se({},e);returna&&(u.range=ve(u.range)),r.datesDelta&&n.startEditable&&(u.range={start:o.add(u.range.start,r.datesDelta),end:o.add(u.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(u.range={start:o.add(u.range.start,r.startDelta),end:u.range.end}),r.endDelta&&n.durationEditable&&(u.range={start:u.range.start,end:o.add(u.range.end,r.endDelta)}),s&&(u.range={start:u.range.start,end:i.getDefaultEventEnd(t.allDay,u.range.start)}),t.allDay&&(u.range={start:B(u.range.start),end:B(u.range.end)}),u.range.end<u.range.start&&(u.range.end=i.getDefaultEventEnd(t.allDay,u.range.start)),u}functionDt(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":returnfunction(e,t,n,r,i,o){if(t&&n===t.latestFetchId){vara=ke(function(e,t,n){varr=n.opt("eventDataTransform"),i=t?t.eventDataTransform:null;returni&&(e=xe(e,i)),r&&(e=xe(e,r)),e}(i,t,o),t.sourceId,o);returnr&&(a=Oe(a,r,o)),He(Tt(e,t.sourceId),a)}returne}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":returnfunction(e,t,n,r){n&&(t=Oe(t,n,r));returnHe(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":returnHe(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":returnr?Oe(e,r.activeRange,i):e;case"CHANGE_TIMEZONE":returnfunction(e,t,n){varr=e.defs,i=Re(e.instances,function(e){vari=r[e.defId];returni.allDay||i.recurringDef?e:Se({},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:r,instances:i}}(e,t.oldDateEnv,i.dateEnv);case"MUTATE_EVENTS":returnfunction(e,t,n,r,i){varo=Pe(e,t),a=r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:i.eventUiBases;returno=Et(o,a,n,i),He(e,o)}(e,t.instanceId,t.mutation,t.fromApi,i);case"REMOVE_EVENT_INSTANCES":returnwt(e,t.instances);case"REMOVE_EVENT_DEF":returnUe(e,function(e){returne.defId!==t.defId});case"REMOVE_EVENT_SOURCE":returnTt(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":returnUe(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:returne}}functionTt(e,t){returnUe(e,function(e){returne.sourceId!==t})}functionwt(e,t){return{defs:e.defs,instances:we(e.instances,function(e){return!t[e.instanceId]})}}functionRt(e,t){returnCt({eventDrag:e},t)}functionCt(e,t){varn=t.view,r=Se({businessHours:n?n.props.businessHours:{defs:{},instances:{}},dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||It)(r,t)}functionIt(e,t,n,r){returnvoid0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){vari=e.eventDrag,o=i.mutatedEvents,a=o.defs,s=o.instances,u=vt(a,i.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(u=Re(u,r));varl=wt(e.eventStore,i.affectedEvents.instances),c=l.defs,d=l.instances,f=vt(c,e.eventUiBases);for(varpins){varh=s[p],v=h.range,g=u[h.defId],y=a[h.defId];if(!Mt(g.constraints,v,l,e.businessHours,t))return!1;varm=t.opt("eventOverlap");for(varEin"function"!=typeofm&&(m=null),d){varS=d[E];if(Fe(v,S.range)){varb=f[S.defId].overlap;if(!1===b&&i.isEvent)return!1;if(!1===g.overlap)return!1;if(m&&!m(newct(t,c[S.defId],S),newct(t,y,h)))return!1}}for(varD=t.state.eventStore,T=0,w=g.allows;T<w.length;T++){varR=w[T],C=Se({},n,{range:h.range,allDay:y.allDay}),I=D.defs[y.defId],M=D.instances[p],k=void0;if(k=I?newct(t,I,M):newct(t,y),!R(t.buildDateSpanApi(C),k))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){vari=e.eventStore,o=i.defs,a=i.instances,s=e.dateSelection,u=s.range,l=t.selectionConfig;r&&(l=r(l));if(!Mt(l.constraints,u,i,e.businessHours,t))return!1;varc=t.opt("selectOverlap");"function"!=typeofc&&(c=null);for(vardina){varf=a[d];if(Fe(u,f.range)){if(!1===l.overlap)return!1;if(c&&!c(newct(t,o[f.defId],f)))return!1}}for(varp=0,h=l.allows;p<h.length;p++){varv=h[p],g=Se({},n,s);if(!v(t.buildDateSpanApi(g),null))return!1}return!0}(e,t,n,r))}functionMt(e,t,n,r,i){for(varo=0,a=e;o<a.length;o++){if(!Ot(kt(a[o],t,n,r,i),t))return!1}return!0}functionkt(e,t,n,r,i){return"businessHours"===e?_t(Oe(r,t,i)):"string"==typeofe?_t(Ue(n,function(t){returnt.groupId===e})):"object"==typeofe&&e?_t(Oe(e,t,i)):[]}function_t(e){vart=e.instances,n=[];for(varrint)n.push(t[r].range);returnn}functionOt(e,t){for(varn=0,r=e;n<r.length;n++){if(We(r[n],t))return!0}return!1}functionPt(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}functionxt(e){vart=[];for(varnine){varr=e[n];null!=r&&""!==r&&t.push(n+":"+r)}returnt.join(";")}functionNt(e){returnArray.isArray(e)?e:"string"==typeofe?e.split(/\s+/):[]}varHt={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Nt,classNames:Nt,color:String,backgroundColor:String,borderColor:String,textColor:String};functionUt(e,t,n){varr=he(e,Ht,{},n),i=function(e,t){returnArray.isArray(e)?ke(e,"",t,!0):"object"==typeofe&&e?ke([e],"",t,!0):null!=e?String(e):null}(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=i?[i]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}functionzt(e,t,n,r){vari={},o={};for(varainHt){vars=e+ue(a);i[a]=t[s],o[s]=!0}if("event"===e&&(i.editable=t.editable),r)for(varaint)o[a]||(r[a]=t[a]);returnUt(i,n)}varLt={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};functionBt(e){returne.reduce(Vt,Lt)}functionVt(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeoft.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)}}varAt={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},Ft={start:null,date:null,end:null,allDay:null},Wt=0;functionZt(e,t,n,r){vari=function(e,t){varn=null;if(e){varr=t.state.eventSources[e];n=r.allDayDefault}null==n&&(n=t.opt("allDayDefault"));returnn}(t,n),o={},a=function(e,t,n,r,i){for(varo=0;o<r.length;o++){vara={},s=r[o].parse(e,a,n);if(s){varu=a.allDay;returndeletea.allDay,null==u&&null==(u=t)&&null==(u=s.allDayGuess)&&(u=!1),Se(i,a),{allDay:u,duration:s.duration,typeData:s.typeData,typeId:o}}}returnnull}(e,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(a)return(s=jt(o,t,a.allDay,Boolean(a.duration),n)).recurringDef={typeId:a.typeId,typeData:a.typeData,duration:a.duration},{def:s,instance:null};vars,u={},l=function(e,t,n,r,i){varo,a,s=function(e,t){varn=he(e,Ft,{},t);returnn.start=null!==n.start?n.start:n.date,deleten.date,n}(e,r),u=s.allDay,l=null,c=!1,d=null;if(o=n.dateEnv.createMarkerMeta(s.start))l=o.marker;elseif(!i)returnnull;null!=s.end&&(a=n.dateEnv.createMarkerMeta(s.end));null==u&&(u=null!=t?t:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified));u&&l&&(l=B(l));a&&(d=a.marker,u&&(d=B(d)),l&&d<=l&&(d=null));d?c=!0:i||(c=n.opt("forceEventDuration")||!1,d=n.dateEnv.add(l,u?n.defaultAllDayEventDuration:n.defaultTimedEventDuration));return{allDay:u,hasEnd:c,range:{start:l,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}(e,i,n,u,r);returnl?{def:s=jt(u,t,l.allDay,l.hasEnd,n),instance:Yt(s.defId,l.range,l.forcedStartTzo,l.forcedEndTzo)}:null}functionjt(e,t,n,r,i){varo={},a=function(e,t,n){varr={},i=he(e,At,{},r),o=Ut(r,t,n);returni.publicId=i.id,deletei.id,i.ui=o,i}(e,i,o);a.defId=String(Wt++),a.sourceId=t,a.allDay=n,a.hasEnd=r;for(vars=0,u=i.pluginSystem.hooks.eventDefParsers;s<u.length;s++){varl={};(0,u[s])(a,o,l),o=l}returna.extendedProps=Se(o,a.extendedProps||{}),Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}functionYt(e,t,n,r){return{instanceId:String(Wt++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}varqt={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};functionGt(e,t){returnke(function(e){vart;t=!0===e?[{}]:Array.isArray(e)?e.filter(function(e){returne.daysOfWeek}):"object"==typeofe&&e?[e]:[];returnt=t.map(function(e){returnSe({},qt,e)})}(e),"",t)}functionXt(e,t,n){void0===n&&(n=[]);varr,i,o=[];functiona(){if(i){for(vare=0,n=o;e<n.length;e++){n[e].unrender()}t&&t.apply(r,i),i=null}}functions(){i&&je(i,arguments)||(a(),r=this,i=arguments,e.apply(this,arguments))}s.dependents=o,s.unrender=a;for(varu=0,l=n;u<l.length;u++){l[u].dependents.push(s)}returns}varJt={defs:{},instances:{}},Kt=function(){functione(){this.getKeysForEventDefs=Ye(this._getKeysForEventDefs),this.splitDateSelection=Ye(this._splitDateSpan),this.splitEventStore=Ye(this._splitEventStore),this.splitIndividualUi=Ye(this._splitIndividualUi),this.splitEventDrag=Ye(this._splitInteraction),this.splitEventResize=Ye(this._splitInteraction),this.eventUiBuilders={}}returne.prototype.splitProps=function(e){vart=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),u=this.splitEventResize(e.eventResize),l={};for(varcinthis.eventUiBuilders=Re(n,function(e,n){returnt.eventUiBuilders[n]||Ye(Qt)}),n){vard=n[c],f=a[c]||Jt,p=this.eventUiBuilders[c];l[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,o[c]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:u[c]||null}}returnl},e.prototype._splitDateSpan=function(e){vart={};if(e)for(varn=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}returnt},e.prototype._getKeysForEventDefs=function(e){vart=this;returnRe(e.defs,function(e){returnt.getKeysForEventDef(e)})},e.prototype._splitEventStore=function(e,t){varn=e.defs,r=e.instances,i={};for(varoinn)for(vara=0,s=t[o];a<s.length;a++){i[f=s[a]]||(i[f]={defs:{},instances:{}}),i[f].defs[o]=n[o]}for(varuinr)for(varl=r[u],c=0,d=t[l.defId];c<d.length;c++){varf;i[f=d[c]]&&(i[f].instances[u]=l)}returni},e.prototype._splitIndividualUi=function(e,t){varn={};for(varrine)if(r)for(vari=0,o=t[r];i<o.length;i++){vara=o[i];n[a]||(n[a]={}),n[a][r]=e[r]}returnn},e.prototype._splitInteraction=function(e){vart={};if(e){varn=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]||Jt,mutatedEvents:i[r]||Jt,isEvent:e.isEvent,origSeg:e.origSeg})};for(varainn)o(a);for(varaini)o(a)}returnt},e}();functionQt(e,t,n){varr=[];e&&r.push(e),t&&r.push(t);vari={"":Bt(r)};returnn&&Se(i,n),i}function$t(e,t,n,r,i){varo,a,s,u;returnninstanceofDate?o=n:(o=n.date,a=n.type,s=n.forceOff),u={date:t.formatIso(o,{omitTime:!0}),type:a||"day"},"string"==typeofr&&(i=r,r=null),r=r?""+function(e){vart=[];for(varnine){varr=e[n];null!=r&&t.push(n+'="'+Pt(r)+'"')}returnt.join("")}(r):"",i=i||"",!s&&e.navLinks?"<a"+r+' data-goto="'+Pt(JSON.stringify(u))+'">'+i+"</a>":"<span"+r+">"+i+"</span>"}functionen(e,t,n,r){vari,o,a=n.calendar,s=n.options,u=n.theme,l=n.dateEnv,c=[];returnZe(t.activeRange,e)?(c.push("fc-"+P[e.getUTCDay()]),s.monthMode&&l.getMonth(e)!==l.getMonth(t.currentRange.start)&&c.push("fc-other-month"),o=x(i=B(a.getNow()),1),e<i?c.push("fc-past"):e>=o?c.push("fc-future"):(c.push("fc-today"),!0!==r&&c.push(u.getClass("today")))):c.push("fc-disabled-day"),c}functiontn(e,t,n){varr=!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"==typeofa.then&&a.then(i,o)}varnn=function(){functione(){}returne.mixInto=function(e){this.mixIntoObj(e.prototype)},e.mixIntoObj=function(e){vart=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){e[n]||(e[n]=t.prototype[n])})},e.mixOver=function(e){vart=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){e.prototype[n]=t.prototype[n]})},e}(),rn=function(e){functiont(){returnnull!==e&&e.apply(this,arguments)||this}returnEe(t,e),t.prototype.on=function(e,t){returnon(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){returnon(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){returnthis._handlers&&an(this._handlers,e,t),this._oneHandlers&&an(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(vart=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];returnthis.triggerWith(e,this,t),this},t.prototype.triggerWith=function(e,t,n){returnthis._handlers&&de(this._handlers[e],t,n),this._oneHandlers&&(de(this._oneHandlers[e],t,n),deletethis._oneHandlers[e]),this},t.prototype.hasHandlers=function(e){returnthis._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},t}(nn);functionon(e,t,n){(e[t]||(e[t]=[])).push(n)}functionan(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){returne!==n})):deletee[t]}varsn=function(){functione(e,t,n,r){this.originEl=e,this.els=t,this.isHorizontal=n,this.isVertical=r}returne.prototype.build=function(){vare=this.originEl,t=this.originClientRect=e.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(t.left),this.isVertical&&this.buildElVerticals(t.top)},e.prototype.buildElHorizontals=function(e){for(vart=[],n=[],r=0,i=this.els;r<i.length;r++){varo=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(vart=[],n=[],r=0,i=this.els;r<i.length;r++){varo=i[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){vart,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])returnt},e.prototype.topToIndex=function(e){vart,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])returnt},e.prototype.getWidth=function(e){returnthis.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){returnthis.bottoms[e]-this.tops[e]},e}(),un=function(){functione(){}returne.prototype.getMaxScrollTop=function(){returnthis.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){returnthis.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){returnthis.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){returnthis.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){returnthis.getScrollTop()>0},e.prototype.canScrollDown=function(){returnthis.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){returnthis.getScrollLeft()>0},e.prototype.canScrollRight=function(){returnthis.getScrollLeft()<this.getMaxScrollLeft()},e}(),ln=function(e){functiont(t){varn=e.call(this)||this;returnn.el=t,n}returnEe(t,e),t.prototype.getScrollTop=function(){returnthis.el.scrollTop},t.prototype.getScrollLeft=function(){returnthis.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){returnthis.el.scrollWidth},t.prototype.getScrollHeight=function(){returnthis.el.scrollHeight},t.prototype.getClientHeight=function(){returnthis.el.clientHeight},t.prototype.getClientWidth=function(){returnthis.el.clientWidth},t}(un),cn=function(e){functiont(){returnnull!==e&&e.apply(this,arguments)||this}returnEe(t,e),t.prototype.getScrollTop=function(){returnwindow.pageYOffset},t.prototype.getScrollLeft=function(){returnwindow.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(){returndocument.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){returndocument.documentElement.scrollHeight},t.prototype.getClientHeight=function(){returndocument.documentElement.clientHeight},t.prototype.getClientWidth=function(){returndocument.documentElement.clientWidth},t}(un),dn=function(e){functiont(t,n){vari=e.call(this,r("div",{className:"fc-scroller"}))||this;returni.overflowX=t,i.overflowY=n,i.applyOverflow(),i}returnEe(t,e),t.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},t.prototype.destroy=function(){c(this.el)},t.prototype.applyOverflow=function(){y(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},t.prototype.lockOverflow=function(e){vart=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),y(this.el,{overflowX:t,overflowY:n})},t.prototype.setHeight=function(e){m(this.el,"height",e)},t.prototype.getScrollbarWidths=function(){vare=T(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},t}(ln),fn=function(){functione(e){this.calendarOptions=e,this.processIconOverride()}returne.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},e.prototype.setIconOverride=function(e){vart,n;if("object"==typeofe&&e){for(nint=Se({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){vart=this.iconOverridePrefix;returnt&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){returnthis.classes[e]||""},e.prototype.getIconClass=function(e){vart=this.iconClasses[e];returnt?this.baseIconClass+""+t:""},e.prototype.getCustomButtonIconClass=function(e){vart;returnthis.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+""+this.applyIconOverridePrefix(t):""},e}();fn.prototype.classes={},fn.prototype.iconClasses={},fn.prototype.baseIconClass="",fn.prototype.iconOverridePrefix="";varpn=0,hn=function(){functione(e,t,n,r,i){this.calendar=e,this.theme=t,this.dateEnv=n,this.options=r,this.view=i,this.isRtl="rtl"===r.dir,this.eventOrderSpecs=ie(r.eventOrder),this.nextDayThreshold=J(r.nextDayThreshold)}returne.prototype.extend=function(t,n){returnnewe(this.calendar,this.theme,this.dateEnv,t||this.options,n||this.view)},e}(),vn=function(){functione(){this.uid=String(pn++)}returne.addEqualityFuncs=function(e){this.prototype.equalityFuncs=Se({},this.prototype.equalityFuncs,e)},e.prototype.receiveProps=function(e,t){varn=this.context;this.context=t,n||this.firstContext(t);varr=function(e,t,n){varr={},i=!1;for(varoint)oine&&(e[o]===t[o]||n[o]&&n[o](e[o],t[o]))?r[o]=e[o]:(r[o]=t[o],i=!0);for(varoine)if(!(oint)){i=!0;break}return{anyChanges:i,comboProps:r}}(this.props||{},e,this.equalityFuncs),i=r.anyChanges,o=r.comboProps;this.props=o,i&&(n&&this.beforeUpdate(),this.render(o,t),n&&this.afterUpdate())},e.prototype.render=function(e,t){},e.prototype.firstContext=function(e){},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.destroy=function(){},e}();vn.prototype.equalityFuncs={};vargn=function(e){functiont(t){varn=e.call(this)||this;returnn.el=t,n}returnEe(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),c(this.el)},t.prototype.buildPositionCaches=function(){},t.prototype.queryHit=function(e,t,n,r){returnnull},t.prototype.isInteractionValid=function(e){vart=this.context.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(variinr)if(!We(n.validRange,r[i].range))return!1;returnRt(e,t)},t.prototype.isDateSelectionValid=function(e){vart=this.context.calendar,n=this.props.dateProfile;return!(n&&!We(n.validRange,e.range))&&function(e,t){returnCt({dateSelection:e},t)}(e,t)},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!p(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},t.prototype.isValidDateDownEl=function(e){vart=p(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!p(e,".fc-more")&&!p(e,"a[data-goto]")&&!this.isInPopover(e)},t.prototype.isPopover=function(){returnthis.el.classList.contains("fc-popover")},t.prototype.isInPopover=function(e){returnBoolean(p(e,".fc-popover"))},t}(vn);gn.prototype.fgSegSelector=".fc-event-container > *",gn.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";varyn=0;functionmn(e){return{id:String(yn++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],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||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}varEn=function(){functione(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}returne.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(vart=0,n=e.deps;t<n.length;t++){varr=n[t];this.add(r)}this.hooks=(i=this.hooks,o=e,{reducers:i.reducers.concat(o.reducers),eventDefParsers:i.eventDefParsers.concat(o.eventDefParsers),isDraggableTransformers:i.isDraggableTransformers.concat(o.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(o.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(o.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(o.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(o.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(o.dateSpanTransforms),views:Se({},i.views,o.views),viewPropsTransformers:i.viewPropsTransformers.concat(o.viewPropsTransformers),isPropsValid:o.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(o.externalDefTransforms),eventResizeJoinTransforms:i.eventResizeJoinTransforms.concat(o.eventResizeJoinTransforms),viewContainerModifiers:i.viewContainerModifiers.concat(o.viewContainerModifiers),eventDropTransformers:i.eventDropTransformers.concat(o.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(o.calendarInteractions),componentInteractions:i.componentInteractions.concat(o.componentInteractions),themeClasses:Se({},i.themeClasses,o.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(o.eventSourceDefs),cmdFormatter:o.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(o.recurringTypes),namedTimeZonedImpl:o.namedTimeZonedImpl||i.namedTimeZonedImpl,defaultView:i.defaultView||o.defaultView,elementDraggingImpl:i.elementDraggingImpl||o.elementDraggingImpl,optionChangeHandlers:Se({},i.optionChangeHandlers,o.optionChangeHandlers)})}vari,o},e}();varSn=mn({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){returnArray.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),bn=mn({eventSourceDefs:[{parseMeta:function(e){return"function"==typeofe?e:"function"==typeofe.events?e.events:null},fetch:function(e,t,n){varr=e.calendar.dateEnv;tn(e.eventSource.meta.bind(null,{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}),function(e){t({rawEvents:e})},n)}}]});functionDn(e,t,n,r,i){varo=null;"GET"===(e=e.toUpperCase())?t=function(e,t){returne+(-1===e.indexOf("?")?"?":"&")+Tn(t)}(t,n):o=Tn(n);vara=newXMLHttpRequest;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)try{vare=JSON.parse(a.responseText);r(e,a)}catch(e){i("Failure parsing JSON",a)}elsei("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}functionTn(e){vart=[];for(varnine)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));returnt.join("&")}varwn=mn({eventSourceDefs:[{parseMeta:function(e){if("string"==typeofe)e={url:e};elseif(!e||"object"!=typeofe||!e.url)returnnull;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){varr=e.eventSource.meta,i=function(e,t,n){varr,i,o,a,s=n.dateEnv,u={};null==(r=e.startParam)&&(r=n.opt("startParam"));null==(i=e.endParam)&&(i=n.opt("endParam"));null==(o=e.timeZoneParam)&&(o=n.opt("timeZoneParam"));a="function"==typeofe.extraParams?e.extraParams():e.extraParams||{};Se(u,a),u[r]=s.formatIso(t.start),u[i]=s.formatIso(t.end),"local"!==s.timeZone&&(u[o]=s.timeZone);returnu}(r,e.range,e.calendar);Dn(r.method,r.url,i,function(e,n){t({rawEvents:e,xhr:n})},function(e,t){n({message:e,xhr:t})})}}]});varRn=mn({recurringTypes:[{parse:function(e,t,n){varr,i,o=n.createMarker.bind(n),a=he(e,{daysOfWeek:null,startTime:J,endTime:J,startRecur:o,endRecur:o},{},t),s=!1;for(varuina)if(null!=a[u]){s=!0;break}if(s){varl=null;return"duration"int&&(l=J(t.duration),deletet.duration),!l&&a.startTime&&a.endTime&&(r=a.endTime,i=a.startTime,l={years:r.years-i.years,months:r.months-i.months,days:r.days-i.days,milliseconds:r.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!a.startTime&&!a.endTime),duration:l,typeData:a}}returnnull},expand:function(e,t,n){varr=Ve(t,{start:e.startRecur,end:e.endRecur});returnr?function(e,t,n,r){vari=e?Ce(e):null,o=B(n.start),a=n.end,s=[];for(;o<a;){varu=void0;i&&!i[o.getUTCDay()]||(u=t?r.add(o,t):o,s.push(u)),o=x(o,1)}returns}(e.daysOfWeek,e.startTime,r,n):[]}}]});varCn=mn({optionChangeHandlers:{events:function(e,t,n){In([e],t,n)},eventSources:In,plugins:function(e,t){t.addPluginInputs(e)}}});functionIn(e,t,n){for(varr=Ie(t.state.eventSources),i=[],o=0,a=e;o<a.length;o++){for(vars=a[o],u=!1,l=0;l<r.length;l++)if(n(r[l]._raw,s)){r.splice(l,1),u=!0;break}u||i.push(s)}for(varc=0,d=r;c<d.length;c++){varf=d[c];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:f.sourceId})}for(varp=0,h=i;p<h.length;p++){varv=h[p];t.addEventSource(v)}}varMn={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},kn={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},_n=["header","footer","buttonText","buttonIcons"];varOn=[Sn,bn,wn,Rn,Cn];varPn={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};functionxn(e){for(vart=e.length>0?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},i=n.concat(Ie(r),e),o={en:Pn},a=0,s=i;a<s.length;a++){varu=s[a];o[u.code]=u}return{map:o,defaultCode:t}}functionNn(e,t){return"object"!=typeofe||Array.isArray(e)?function(e,t){varn=[].concat(e||[]),r=function(e,t){for(varn=0;n<e.length;n++)for(varr=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i--){varo=r.slice(0,i).join("-");if(t[o])returnt[o]}returnnull}(n,t)||Pn;returnHn(e,n,r)}(e,t):Hn(e.code,[e.code],e)}functionHn(e,t,n){varr=Te([Pn,n],["buttonText"]);deleter.code;vari=r.week;returndeleter.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:newIntl.NumberFormat(e),options:r}}varUn=function(){functione(e){this.overrides=Se({},e),this.dynamicOverrides={},this.compute()}returne.prototype.mutate=function(e,t,n){if(Object.keys(e).length||t.length){varr=n?this.dynamicOverrides:this.overrides;Se(r,e);for(vari=0,o=t;i<o.length;i++){deleter[o[i]]}this.compute()}},e.prototype.compute=function(){vare=fe(this.dynamicOverrides.locales,this.overrides.locales,Mn.locales),t=fe(this.dynamicOverrides.locale,this.overrides.locale,Mn.locale),n=xn(e),r=Nn(t||n.defaultCode,n.map).options,i="rtl"===fe(this.dynamicOverrides.dir,this.overrides.dir,r.dir)?kn:{};this.dirDefaults=i,this.localeDefaults=r,this.computed=Te([Mn,i,r,this.overrides,this.dynamicOverrides],_n)},e}(),zn={};varLn,Bn=function(){functione(){}returne.prototype.getMarkerYear=function(e){returne.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){returne.getUTCMonth()},e.prototype.getMarkerDay=function(e){returne.getUTCDate()},e.prototype.arrayToMarker=function(e){returnj(e)},e.prototype.markerToArray=function(e){returnZ(e)},e}();Ln=Bn,zn["gregory"]=Ln;varVn=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;functionAn(e){vart=Vn.exec(e);if(t){varn=newDate(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(Y(n)){varr=null;returnt[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}returnnull}varFn=function(){functione(e){vart=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=newe.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){returnnewzn[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"==typeofe.firstDay&&(this.weekDow=e.firstDay),"function"==typeofe.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}returne.prototype.createMarker=function(e){vart=this.createMarkerMeta(e);returnnull===t?null:t.marker},e.prototype.createNowMarker=function(){returnthis.canComputeOffset?this.timestampToMarker((newDate).valueOf()):j(F(newDate))},e.prototype.createMarkerMeta=function(e){if("string"==typeofe)returnthis.parse(e);vart=null;return"number"==typeofe?t=this.timestampToMarker(e):einstanceofDate?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=j(e)),null!==t&&Y(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){vart=An(e);if(null===t)returnnull;varn=t.marker,r=null;returnnull!==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){returnthis.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){returnthis.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){varn=this.calendarSystem.markerToArray(e);returnn[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){varn=this.calendarSystem.markerToArray(e);returnn[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){varn=this.calendarSystem.markerToArray(e);returnn[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){varn=this.calendarSystem.markerToArray(e);returnn[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){varn=this.calendarSystem;returnq(e)===q(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){varn=this.calendarSystem;returnq(e)===q(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){varn=this.diffWholeYears(e,t);returnnull!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=z(e,t))?{unit:"week",value:n}:null!==(n=L(e,t))?{unit:"day",value:n}:ce(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t))?{unit:"hour",value:n}:ce(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t))?{unit:"minute",value:n}:ce(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t))?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},e.prototype.countDurationsBetween=function(e,t,n){varr;returnn.years&&null!==(r=this.diffWholeYears(e,t))?r/(ee(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){returnee(e)/30}(n):n.days&&null!==(r=L(e,t))?r/ee(n):(t.valueOf()-e.valueOf())/te(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?B(e):"hour"===t?function(e){returnj([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){returnj([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){returnj([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):void0},e.prototype.startOfYear=function(e){returnthis.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){returnthis.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){returnthis.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){returnthis.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){varr=e.getUTCFullYear(),i=V(e,r,t,n);if(i<1)returnV(e,r-1,t,n);varo=V(e,r+1,t,n);returno>=1?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){returnvoid0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){returnvoid0===r&&(r={}),r.isEndExclusive&&(t=N(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)},e.prototype.formatIso=function(e,t){void0===t&&(t={});varn=null;returnt.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void0===n&&(n=!1);varr=e.toISOString();returnr=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",at(t,!0)))),r}(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?j(F(newDate(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?j(this.namedTimeZoneImpl.timestampToArray(e)):newDate(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-W(Z(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Z(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?W(Z(e)):"UTC"===this.timeZone?newDate(e.valueOf()):this.namedTimeZoneImpl?newDate(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Z(e))*60):newDate(e.valueOf()-(t||0))},e}(),Wn={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},Zn=0;functionjn(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}functionYn(e,t){for(varn=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){vari=n[r].parseMeta(e);if(i){varo=qn("object"==typeofe?e:{},i,r,t);returno._raw=e,o}}returnnull}functionqn(e,t,n,r){vari={},o=he(e,Wn,{},i),a={},s=Ut(i,r,a);returno.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(Zn++),o.sourceDefId=n,o.meta=t,o.ui=s,o.extendedProps=a,o}functionGn(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":returnfunction(e,t,n,r){for(vari={},o=0,a=t;o<a.length;o++){vars=a[o];i[s.sourceId]=s}n&&(i=Jn(i,n,r));returnSe({},e,i)}(e,t.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":returni=e,o=t.sourceId,we(i,function(e){returne.sourceId!==o});case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":returnn?Jn(e,n.activeRange,r):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":returnKn(e,t.sourceIds?Ce(t.sourceIds):function(e,t){returnwe(e,function(e){returnjn(e,t)})}(e,r),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":returnfunction(e,t,n,r){vari,o=e[t];if(o&&n===o.latestFetchId)returnSe({},e,((i={})[t]=Se({},o,{isFetching:!1,fetchRange:r}),i));returne}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:returne}vari,o}varXn=0;functionJn(e,t,n){returnKn(e,we(e,function(e){returnfunction(e,t,n){returnjn(e,n)?!n.opt("lazyFetching")||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,n)}),t,n)}functionKn(e,t,n,r){vari={};for(varoine){vara=e[o];t[o]?i[o]=Qn(a,n,r):i[o]=a}returni}functionQn(e,t,n){varr=n.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],i=String(Xn++);returnr.fetch({eventSource:e,calendar:n,range:t},function(r){varo,a,s=r.rawEvents,u=n.opt("eventSourceSuccess");e.success&&(a=e.success(s,r.xhr)),u&&(o=u(s,r.xhr)),s=a||o||s,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:s})},function(r){varo=n.opt("eventSourceFailure");console.warn(r.message,r),e.failure&&e.failure(r),o&&o(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:r})}),Se({},e,{isFetching:!0,latestFetchId:i})}var$n=function(){functione(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}returne.prototype.buildPrev=function(e,t){varn=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);returnthis.build(r,-1)},e.prototype.buildNext=function(e,t){varn=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);returnthis.build(r,1)},e.prototype.build=function(e,t,n){varr;void0===n&&(n=!1);vari,o,a,s,u,l,c,d,f;returnr=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(f=r).start&&d<f.start?f.start:null!=f.end&&d>=f.end?newDate(f.end.valueOf()-1):d),a=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(a.unit),u=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),l=u=this.trimHiddenDays(u),this.options.showNonCurrentDates||(l=Ve(l,a.range)),i=J(this.options.minTime),o=J(this.options.maxTime),l=Ve(l=this.adjustActiveRange(l,i,o),r),c=Fe(a.range,r),{validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:l,renderRange:u,minTime:i,maxTime:o,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){returnthis.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){varn,r=this.viewSpec,i=this.dateEnv,o=null,a=null,s=null;returnr.duration?(o=r.duration,a=r.durationUnit,s=this.buildRangeFromDuration(e,t,o,a)):(n=this.options.dayCount)?(a="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?a=i.greatestWholeUnit(s.start,s.end).unit:(a=ne(o=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(e,t,o,a)),{duration:o,unit:a,range:s}},e.prototype.getFallbackDuration=function(){returnJ({day:1})},e.prototype.adjustActiveRange=function(e,t,n){varr=this.dateEnv,i=e.start,o=e.end;returnthis.viewSpec.class.prototype.usesMinMaxTime&&(ee(t)<0&&(i=B(i),i=r.add(i,t)),ee(n)>1&&(o=x(o=B(o),-1),o=r.add(o,n))),{start:i,end:o}},e.prototype.buildRangeFromDuration=function(e,t,n,r){vari,o,a,s,u,l=this.dateEnv,c=this.options.dateAlignment;functiond(){a=l.startOf(e,c),s=l.add(a,n),u={start:a,end:s}}returnc||((i=this.options.dateIncrement)?(o=J(i),c=te(o)<te(n)?ne(o,!Q(i)).unit:r):c=r),ee(n)<=1&&this.isHiddenDay(a)&&(a=B(a=this.skipHiddenDays(a,t))),d(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,t),d()),u},e.prototype.buildRangeFromDayCount=function(e,t,n){varr,i=this.dateEnv,o=this.options.dateAlignment,a=0,s=e;o&&(s=i.startOf(s,o)),s=B(s),r=s=this.skipHiddenDays(s,t);do{r=x(r,1),this.isHiddenDay(r)||a++}while(a<n);return{start:s,end:r}},e.prototype.buildCustomVisibleRange=function(e){vart=this.dateEnv,n=this.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},e.prototype.buildRenderRange=function(e,t,n){returne},e.prototype.buildDateIncrement=function(e){vart,n=this.options.dateIncrement;returnn?J(n):(t=this.options.dateAlignment)?J(1,t):e||J({days:1})},e.prototype.getRangeOption=function(e){for(vart=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];varr=this.options[e];return"function"==typeofr&&(r=r.apply(null,t)),r&&(r=ze(r,this.dateEnv)),r&&(r=ge(r)),r},e.prototype.initHiddenDays=function(){vare,t=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.indexOf(e))||r++;if(!r)thrownewError("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){vart=e.start,n=e.end;returnt&&(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){returneinstanceofDate&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void0===t&&(t=1),void0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=x(e,t);returne},e}();functioner(e,t,n){for(varr=function(e,t){switch(t.type){case"SET_VIEW_TYPE":returnt.viewType;default:returne}}(e.viewType,t),i=function(e,t,n,r,i){varo;switch(t.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(e,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(e,n);break;case"SET_DATE":e.activeRange&&Ze(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[r].build(t.dateMarker,void0,!0));break;case"SET_VIEW_TYPE":vara=i.dateProfileGenerators[r];if(!a)thrownewError(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=a.build(t.dateMarker||n,void0,!0)}return!o||!o.isValid||e&&(s=e,u=o,Ae(s.validRange,u.validRange)&&Ae(s.activeRange,u.activeRange)&&Ae(s.renderRange,u.renderRange)&&$(s.minTime,u.minTime)&&$(s.maxTime,u.maxTime))?e:o;vars,u}(e.dateProfile,t,e.currentDate,r,n),o=Gn(e.eventSources,t,i,n),a=Se({},e,{viewType:r,dateProfile:i,currentDate:tr(e.currentDate,t,i),eventSources:o,eventStore:Dt(e.eventStore,t,o,i,n),dateSelection:nr(e.dateSelection,t,n),eventSelection:rr(e.eventSelection,t),eventDrag:ir(e.eventDrag,t,o,n),eventResize:or(e.eventResize,t,o,n),eventSourceLoadingLevel:ar(o),loadingLevel:ar(o)}),s=0,u=n.pluginSystem.hooks.reducers;s<u.length;s++){a=(0,u[s])(a,t,n)}returna}functiontr(e,t,n){switch(t.type){case"PREV":case"NEXT":returnZe(n.currentRange,e)?e:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":varr=t.dateMarker||e;returnn.activeRange&&!Ze(n.activeRange,r)?n.currentRange.start:r;default:returne}}functionnr(e,t,n){switch(t.type){case"SELECT_DATES":returnt.selection;case"UNSELECT_DATES":returnnull;default:returne}}functionrr(e,t){switch(t.type){case"SELECT_EVENT":returnt.eventInstanceId;case"UNSELECT_EVENT":return"";default:returne}}functionir(e,t,n,r){switch(t.type){case"SET_EVENT_DRAG":vari=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_DRAG":returnnull;default:returne}}functionor(e,t,n,r){switch(t.type){case"SET_EVENT_RESIZE":vari=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_RESIZE":returnnull;default:returne}}functionar(e){vart=0;for(varnine)e[n].isFetching&&t++;returnt}varsr={start:null,end:null,allDay:Boolean};functionur(e,t,n){varr=function(e,t){varn={},r=he(e,sr,{},n),i=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,a=r.allDay;null==a&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));returnn.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=a,n}(e,t),i=r.range;if(!i.start)returnnull;if(!i.end){if(null==n)returnnull;i.end=t.add(i.start,n)}returnr}functionlr(e,t,n){varr=jt({editable:!1},"",e.allDay,!0,n);return{def:r,ui:gt(r,t),instance:Yt(r.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}functioncr(e,t,n,r){if(t[e])returnt[e];vari=function(e,t,n,r){vari=n[e],o=r[e],a=function(e){returni&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null},s=a("class"),u=a("superType");!u&&s&&(u=dr(s,r)||dr(s,n));varl=null;if(u){if(u===e)thrownewError("Can't have a custom view type that references itself");l=cr(u,t,n,r)}!s&&l&&(s=l.class);if(!s)returnnull;return{type:e,class:s,defaults:Se({},l?l.defaults:{},i?i.options:{}),overrides:Se({},l?l.overrides:{},o?o.options:{})}}(e,t,n,r);returni&&(t[e]=i),i}functiondr(e,t){varn=Object.getPrototypeOf(e.prototype);for(varrint){vari=t[r];if(i.class&&i.class.prototype===n)returnr}return""}functionfr(e){returnRe(e,hr)}varpr={type:String,class:null};functionhr(e){"function"==typeofe&&(e={class:e});vart={},n=he(e,pr,{},t);return{superType:n.type,class:n.class,options:t}}functionvr(e,t){varn=fr(e),r=fr(t.overrides.views);returnRe(function(e,t){varn,r={};for(nine)cr(n,r,e,t);for(nint)cr(n,r,e,t);returnr}(n,r),function(e){returnfunction(e,t,n){varr=e.overrides.duration||e.defaults.duration||n.dynamicOverrides.duration||n.overrides.duration,i=null,o="",a="",s={};if(r&&(i=J(r))){varu=ne(i,!Q(r));o=u.unit,1===u.value&&(a=o,s=t[o]?t[o].options:{})}varl=function(t){varn=t.buttonText||{},r=e.defaults.buttonTextKey;returnnull!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[a]?n[a]:void0};return{type:e.type,class:e.class,duration:i,durationUnit:o,singleUnit:a,options:Se({},Mn,e.defaults,n.dirDefaults,n.localeDefaults,n.overrides,s,e.overrides,n.dynamicOverrides),buttonTextOverride:l(n.dynamicOverrides)||l(n.overrides)||e.overrides.buttonText,buttonTextDefault:l(n.localeDefaults)||l(n.dirDefaults)||e.defaults.buttonText||l(Mn)||e.type}}(e,r,t)})}vargr=function(e){functiont(t){varn=e.call(this)||this;returnn._renderLayout=Xt(n.renderLayout,n.unrenderLayout),n._updateTitle=Xt(n.updateTitle,null,[n._renderLayout]),n._updateActiveButton=Xt(n.updateActiveButton,null,[n._renderLayout]),n._updateToday=Xt(n.updateToday,null,[n._renderLayout]),n._updatePrev=Xt(n.updatePrev,null,[n._renderLayout]),n._updateNext=Xt(n.updateNext,null,[n._renderLayout]),n.el=r("div",{className:"fc-toolbar "+t}),n}returnEe(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._renderLayout.unrender(),c(this.el)},t.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},t.prototype.renderLayout=function(e){vart=this.el;this.viewsWithButtons=[],s(t,this.renderSection("left",e.left)),s(t,this.renderSection("center",e.center)),s(t,this.renderSection("right",e.right))},t.prototype.unrenderLayout=function(){this.el.innerHTML=""},t.prototype.renderSection=function(e,t){varn=this,o=this.context,a=o.theme,u=o.calendar,l=u.optionsManager,c=u.viewSpecs,d=r("div",{className:"fc-"+e}),f=l.computed.customButtons||{},p=l.overrides.buttonText||{},h=l.computed.buttonText||{};returnt&&t.split("").forEach(function(e,t){varr,o=[],l=!0;if(e.split(",").forEach(function(e,t){varr,s,d,v,g,y,m,E,S;"title"===e?(o.push(i("<h2> </h2>")),l=!1):((r=f[e])?(d=function(e){r.click&&r.click.call(E,e)},(v=a.getCustomButtonIconClass(r))||(v=a.getIconClass(e))||(g=r.text)):(s=c[e])?(n.viewsWithButtons.push(e),d=function(){u.changeView(e)},(g=s.buttonTextOverride)||(v=a.getIconClass(e))||(g=s.buttonTextDefault)):u[e]&&(d=function(){u[e]()},(g=p[e])||(v=a.getIconClass(e))||(g=h[e])),d&&(m=["fc-"+e+"-button",a.getClass("button")],g?(y=Pt(g),S=""):v&&(y="<span class='"+v+"'></span>",S=' aria-label="'+e+'"'),(E=i('<button type="button" class="'+m.join("")+'"'+S+">"+y+"</button>")).addEventListener("click",d),o.push(E)))}),o.length>1){r=document.createElement("div");varv=a.getClass("buttonGroup");l&&v&&r.classList.add(v),s(r,o),d.appendChild(r)}elses(d,o)}),d},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){v(this.el,"h2").forEach(function(t){t.innerText=e})},t.prototype.updateActiveButton=function(e){vart=this.context.theme.getClass("buttonActive");v(this.el,"button").forEach(function(n){e&&n.classList.contains("fc-"+e+"-button")?n.classList.add(t):n.classList.remove(t)})},t.prototype.toggleButtonEnabled=function(e,t){v(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},t}(vn),yr=function(e){functiont(t){varn=e.call(this)||this;returnn.elClassNames=[],n.renderSkeleton=Xt(n._renderSkeleton,n._unrenderSkeleton),n.renderToolbars=Xt(n._renderToolbars,n._unrenderToolbars,[n.renderSkeleton]),n.buildComponentContext=Ye(Er),n.buildViewPropTransformers=Ye(Sr),n.el=t,n.computeTitle=Ye(mr),n.parseBusinessHours=Ye(function(e){returnGt(e,n.context.calendar)}),n}returnEe(t,e),t.prototype.render=function(e,t){this.freezeHeight();varn=this.computeTitle(e.dateProfile,e.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,n),this.renderView(e,n),this.updateSize(),this.thawHeight()},t.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),e.prototype.destroy.call(this)},t.prototype._renderSkeleton=function(e){this.updateElClassNames(e),u(this.el,this.contentEl=r("div",{className:"fc-view-container"}));for(vart=e.calendar,n=0,i=t.pluginSystem.hooks.viewContainerModifiers;n<i.length;n++){(0,i[n])(this.contentEl,t)}},t.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),c(this.contentEl),this.removeElClassNames()},t.prototype.removeElClassNames=function(){for(vare=this.el.classList,t=0,n=this.elClassNames;t<n.length;t++){varr=n[t];e.remove(r)}this.elClassNames=[]},t.prototype.updateElClassNames=function(e){this.removeElClassNames();vart=e.theme,n=e.options;this.elClassNames=["fc","fc-"+n.dir,t.getClass("widget")];for(varr=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){vara=o[i];r.add(a)}},t.prototype._renderToolbars=function(e,t,n,r){vari=this.context,o=this.header,a=this.footer,l=i.options,c=i.calendar,d=l.header,f=l.footer,p=this.props.dateProfileGenerator,h=c.getNow(),v=p.build(h),g=p.buildPrev(t,n),y=p.buildNext(t,n),m={title:r,activeButton:e.type,isTodayEnabled:v.isValid&&!Ze(t.currentRange,h),isPrevEnabled:g.isValid,isNextEnabled:y.isValid};d?(o||(o=this.header=newgr("fc-header-toolbar"),u(this.el,o.el)),o.receiveProps(Se({layout:d},m),i)):o&&(o.destroy(),o=this.header=null),f?(a||(a=this.footer=newgr("fc-footer-toolbar"),s(this.el,a.el)),a.receiveProps(Se({layout:f},m),i)):a&&(a.destroy(),a=this.footer=null)},t.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},t.prototype.renderView=function(e,t){varn=this.view,r=this.context,i=r.calendar,o=r.options,a=e.viewSpec,s=e.dateProfileGenerator;n&&n.viewSpec===a||(n&&n.destroy(),n=this.view=newa.class(a,this.contentEl),this.savedScroll&&(n.addScroll(this.savedScroll,!0),this.savedScroll=null)),n.title=t;for(varu={dateProfileGenerator:s,dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(a.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},l=0,c=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers);l<c.length;l++){vard=c[l];Se(u,d.transform(u,a,e,o))}n.receiveProps(u,this.buildComponentContext(this.context,a,n))},t.prototype.updateSize=function(e){void0===e&&(e=!1);vart=this.view;t&&((e||null==this.isHeightAuto)&&this.computeHeightVars(),t.updateSize(e,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(e))},t.prototype.computeHeightVars=function(){vare=this.context.calendar,t=e.opt("height"),n=e.opt("contentHeight");if(this.isHeightAuto="auto"===t||"auto"===n,"number"==typeofn)this.viewHeight=n;elseif("function"==typeofn)this.viewHeight=n();elseif("number"==typeoft)this.viewHeight=t-this.queryToolbarsHeight();elseif("function"==typeoft)this.viewHeight=t()-this.queryToolbarsHeight();elseif("parent"===t){varr=this.el.parentNode;this.viewHeight=r.getBoundingClientRect().height-this.queryToolbarsHeight()}elsethis.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(e.opt("aspectRatio"),.5))},t.prototype.queryToolbarsHeight=function(){vare=0;returnthis.header&&(e+=C(this.header.el)),this.footer&&(e+=C(this.footer.el)),e},t.prototype.freezeHeight=function(){y(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},t.prototype.thawHeight=function(){y(this.el,{height:"",overflow:""})},t}(vn);functionmr(e,t){varn;returnn=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,this.context.dateEnv.formatRange(n.start,n.end,ot(t.titleFormat||function(e){vart=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};varn=L(e.currentRange.start,e.currentRange.end);returnnull!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}functionEr(e,t,n){returne.extend(t.options,n)}functionSr(e){returne.map(function(e){returnnewe})}varbr=function(){functione(e){this.component=e.component}returne.prototype.destroy=function(){},e}();varDr={},Tr=function(e){functiont(t){varn=e.call(this,t)||this;n.handleSegClick=function(e,t){varr=n.component,i=r.context,o=i.calendar,a=i.view,s=ht(t);if(s&&r.isValidSegDownEl(e.target)){varu=p(e.target,".fc-has-url"),l=u?u.querySelector("a[href]").href:"";o.publiclyTrigger("eventClick",[{el:t,event:newct(r.context.calendar,s.eventRange.def,s.eventRange.instance),jsEvent:e,view:a}]),l&&!e.defaultPrevented&&(window.location.href=l)}};varr=t.component;returnn.destroy=_(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}returnEe(t,e),t}(br),wr=function(e){functiont(t){varn=e.call(this,t)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){ht(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};varr,i,o,a,s,u=t.component;returnn.removeHoverListeners=(r=u.el,i=u.fgSegSelector+","+u.bgSegSelector,o=n.handleSegEnter,a=n.handleSegLeave,_(r,"mouseover",i,function(e,t){if(t!==s){s=t,o(e,t);varn=function(e){s=null,a(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}})),u.context.calendar.on("eventElRemove",n.handleEventElRemove),n}returnEe(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,n){varr=this.component,i=r.context,o=i.calendar,a=i.view,s=ht(n);t&&!r.isValidSegDownEl(t.target)||o.publiclyTrigger(e,[{el:n,event:newct(o,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:a}])},t}(br),Rr=function(e){functiont(){returnnull!==e&&e.apply(this,arguments)||this}returnEe(t,e),t}(fn);Rr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Rr.prototype.baseIconClass="fc-icon",Rr.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"},Rr.prototype.iconOverrideOption="buttonIcons",Rr.prototype.iconOverrideCustomButtonOption="icon",Rr.prototype.iconOverridePrefix="fc-icon-";varCr=function(){functione(e,t){varn=this;this.buildComponentContext=Ye(Ir),this.parseRawLocales=Ye(xn),this.buildLocale=Ye(Nn),this.buildDateEnv=Ye(Mr),this.buildTheme=Ye(kr),this.buildEventUiSingleBase=Ye(this._buildEventUiSingleBase),this.buildSelectionConfig=Ye(this._buildSelectionConfig),this.buildEventUiBySource=qe(Or,Me),this.buildEventUiBases=Ye(Pr),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=Ye(_r),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=newUn(t||{}),this.pluginSystem=newEn,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){returnnewe(n)})}returne.prototype.addPluginInputs=function(e){for(vart=function(e){for(vart=[],n=0,r=e;n<r.length;n++){vari=r[n];if("string"==typeofi){varo="FullCalendar"+ue(i);window[o]?t.push(window[o].default):console.warn("Plugin file not loaded for "+i)}elset.push(i)}returnOn.concat(t)}(e),n=0,r=t;n<r.length;n++){vari=r[n];this.pluginSystem.add(i)}},Object.defineProperty(e.prototype,"view",{get:function(){returnthis.component?this.component.view:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){this.component?this.requestRerender():(this.component=newyr(this.el),this.renderableEventStore={defs:{},instances:{}},this.bindHandlers(),this.executeRender())},e.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(vare=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.publiclyTrigger("_destroyed")}},e.prototype.bindHandlers=function(){vare=this;this.removeNavLinkListener=_(this.el,"click","a[data-goto]",function(t,n){varr=n.getAttribute("data-goto");r=r?JSON.parse(r):{};vari=e.dateEnv,o=i.createMarker(r.date),a=r.type,s=e.viewOpt("navLink"+ue(a)+"Click");"function"==typeofs?s(i.toDate(o),t):("string"==typeofs&&(a=s),e.zoomTo(o,a))}),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=pe(this.windowResize.bind(this),this.opt("windowResizeDelay")))},e.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},e.prototype.hydrate=function(){vare=this;this.state=this.buildInitialState();vart=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&t.unshift(n);for(vari=0,o=t;i<o.length;i++){vara=Yn(o[i],this);a&&r.push(a)}this.batchRendering(function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),e.dispatch({type:"SET_VIEW_TYPE",viewType:e.opt("defaultView")||e.pluginSystem.hooks.defaultView})})},e.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},e.prototype.dispatch=function(e){if(this.actionQueue.push(e),!this.isReducing){this.isReducing=!0;for(vart=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);varn=this.state;this.isReducing=!1,!t.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);varr=this.component&&this.component.view;t.eventStore!==n.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==n.dateProfile&&(t.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),t.viewType!==n.viewType&&(t.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},e.prototype.reduce=function(e,t,n){returner(e,t,n)},e.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},e.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},e.prototype.batchRendering=function(e){this.renderingPauseDepth++,e(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},e.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},e.prototype.renderComponent=function(){vare=this.state,t=this.component,n=e.viewType,r=this.viewSpecs[n];if(!r)thrownewError('View type "'+n+'" is not valid');vari=this.renderableEventStore=e.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:e.eventStore,o=this.buildEventUiSingleBase(r.options),a=this.buildEventUiBySource(e.eventSources),s=this.eventUiBases=this.buildEventUiBases(i.defs,o,a);t.receiveProps(Se({},e,{viewSpec:r,dateProfileGenerator:this.dateProfileGenerators[n],dateProfile:e.dateProfile,eventStore:i,eventUiBases:s,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:t.view,el:t.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:t.view,el:t.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},e.prototype.setOption=function(e,t){varn;this.mutateOptions(((n={})[e]=t,n),[],!0)},e.prototype.getOption=function(e){returnthis.optionsManager.computed[e]},e.prototype.opt=function(e){returnthis.optionsManager.computed[e]},e.prototype.viewOpt=function(e){returnthis.viewOpts()[e]},e.prototype.viewOpts=function(){returnthis.viewSpecs[this.state.viewType].options},e.prototype.mutateOptions=function(e,t,n,r){vari=this,o=this.pluginSystem.hooks.optionChangeHandlers,a={},s={},u=this.dateEnv,l=!1,c=!1,d=Boolean(t.length);for(varfine)o[f]?s[f]=e[f]:a[f]=e[f];for(varpina)/^(height|contentHeight|aspectRatio)$/.test(p)?c=!0:/^(defaultDate|defaultView)$/.test(p)||(d=!0,"timeZone"===p&&(l=!0));this.optionsManager.mutate(a,t,n),d&&this.handleOptions(this.optionsManager.computed),this.batchRendering(function(){if(d?(l&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:u}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):c&&i.updateSize(),r)for(vareins)o[e](s[e],i,r)})},e.prototype.handleOptions=function(e){vart=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=J(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=J(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);varr=this.parseRawLocales(e.locales);this.availableRawLocales=r.map;vari=this.buildLocale(e.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,n.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=vr(n.views,this.optionsManager),this.dateProfileGenerators=Re(this.viewSpecs,function(e){returnnewe.class.prototype.dateProfileGeneratorClass(e,t)})},e.prototype.getAvailableLocaleCodes=function(){returnObject.keys(this.availableRawLocales)},e.prototype._buildSelectionConfig=function(e){returnzt("select",e,this)},e.prototype._buildEventUiSingleBase=function(e){returne.editable&&(e=Se({},e,{eventEditable:!0})),zt("event",e,this)},e.prototype.hasPublicHandlers=function(e){returnthis.hasHandlers(e)||this.opt(e)},e.prototype.publiclyTrigger=function(e,t){varn=this.opt(e);if(this.triggerWith(e,this,t),n)returnn.apply(this,t)},e.prototype.publiclyTriggerAfterSizing=function(e,t){varn=this.afterSizingTriggers;(n[e]||(n[e]=[])).push(t)},e.prototype.releaseAfterSizingTriggers=function(){vare=this.afterSizingTriggers;for(vartine)for(varn=0,r=e[t];n<r.length;n++){vari=r[n];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},e.prototype.isValidViewType=function(e){returnBoolean(this.viewSpecs[e])},e.prototype.changeView=function(e,t){varn=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:n})},e.prototype.zoomTo=function(e,t){varn;t=t||"day",n=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){vart,n,r=this.component,i=[];for(varoinr.header&&i.push.apply(i,r.header.viewsWithButtons),r.footer&&i.push.apply(i,r.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(t=0;t<i.length;t++)if((n=this.viewSpecs[i[t]])&&n.singleUnit===e)returnn},e.prototype.getInitialDate=function(){vare=this.opt("defaultDate");returnnull!=e?this.dateEnv.createMarker(e):this.getNow()},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},e.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},e.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},e.prototype.gotoDate=function(e){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){vart=J(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},e.prototype.getDate=function(){returnthis.dateEnv.toDate(this.state.currentDate)},e.prototype.formatDate=function(e,t){varn=this.dateEnv;returnn.format(n.createMarker(e),ot(t))},e.prototype.formatRange=function(e,t,n){varr=this.dateEnv;returnr.formatRange(r.createMarker(e),r.createMarker(t),ot(n,this.opt("defaultRangeSeparator")),n)},e.prototype.formatIso=function(e,t){varn=this.dateEnv;returnn.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.windowResize=function(e){!this.isHandlingWindowResize&&this.component&&e.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},e.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},e.prototype.registerInteractiveComponent=function(e,t){varn=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}(e,t),r=[Tr,wr].concat(this.pluginSystem.hooks.componentInteractions).map(function(e){returnnewe(n)});this.interactionsStore[e.uid]=r,Dr[e.uid]=n},e.prototype.unregisterInteractiveComponent=function(e){for(vart=0,n=this.interactionsStore[e.uid];t<n.length;t++){n[t].destroy()}deletethis.interactionsStore[e.uid],deleteDr[e.uid]},e.prototype.select=function(e,t){varn=ur(null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t},this.dateEnv,J({days:1}));n&&(this.dispatch({type:"SELECT_DATES",selection:n}),this.triggerDateSelect(n))},e.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},e.prototype.triggerDateSelect=function(e,t){varn=Se({},this.buildDateSpanApi(e),{jsEvent:t?t.origEvent:null,view:this.view});this.publiclyTrigger("select",[n])},e.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},e.prototype.triggerDateClick=function(e,t,n,r){vari=Se({},this.buildDatePointApi(e),{dayEl:t,jsEvent:r,view:n});this.publiclyTrigger("dateClick",[i])},e.prototype.buildDatePointApi=function(e){for(vart,n,r={},i=0,o=this.pluginSystem.hooks.datePointTransforms;i<o.length;i++){vara=o[i];Se(r,a(e,this))}returnSe(r,(t=e,{date:(n=this.dateEnv).toDate(t.range.start),dateStr:n.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay})),r},e.prototype.buildDateSpanApi=function(e){for(vart,n,r={},i=0,o=this.pluginSystem.hooks.dateSpanTransforms;i<o.length;i++){vara=o[i];Se(r,a(e,this))}returnSe(r,(t=e,{start:(n=this.dateEnv).toDate(t.range.start),end:n.toDate(t.range.end),startStr:n.formatIso(t.range.start,{omitTime:t.allDay}),endStr:n.formatIso(t.range.end,{omitTime:t.allDay}),allDay:t.allDay})),r},e.prototype.getNow=function(){vare=this.opt("now");return"function"==typeofe&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},e.prototype.getDefaultEventEnd=function(e,t){varn=t;returne?(n=B(n),n=this.dateEnv.add(n,this.defaultAllDayEventDuration)):n=this.dateEnv.add(n,this.defaultTimedEventDuration),n},e.prototype.addEvent=function(e,t){if(einstanceofct){varn=e._def,r=e._instance;returnthis.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:_e({def:n,instance:r})}),e}vari;if(tinstanceoflt)i=t.internalEventSource.sourceId;elseif(null!=t){varo=this.getEventSourceById(t);if(!o)returnconsole.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}vara=Zt(e,i,this);returna?(this.dispatch({type:"ADD_EVENTS",eventStore:_e(a)}),newct(this,a.def,a.def.recurringDef?null:a.instance)):null},e.prototype.getEventById=function(e){vart=this.state.eventStore,n=t.defs,r=t.instances;for(variine=String(e),n){varo=n[i];if(o.publicId===e){if(o.recurringDef)returnnewct(this,o,null);for(varainr){vars=r[a];if(s.defId===o.defId)returnnewct(this,o,s)}}}returnnull},e.prototype.getEvents=function(){vare=this.state.eventStore,t=e.defs,n=e.instances,r=[];for(variinn){varo=n[i],a=t[o.defId];r.push(newct(this,a,o))}returnr},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},e.prototype.getEventSources=function(){vare=this.state.eventSources,t=[];for(varnine)t.push(newlt(this,e[n]));returnt},e.prototype.getEventSourceById=function(e){vart=this.state.eventSources;for(varnine=String(e),t)if(t[n].publicId===e)returnnewlt(this,t[n]);returnnull},e.prototype.addEventSource=function(e){if(einstanceoflt)returnthis.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;vart=Yn(e,this);returnt?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),newlt(this,t)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},e.prototype.scrollToTime=function(e){vart=J(e);t&&this.component.view.scrollToDuration(t)},e}();functionIr(e,t,n){returnnewhn(this,e,t,n,null)}functionMr(e,t,n,r,i,o,a){returnnewFn({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:n,locale:e,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:a})}functionkr(e){returnnew(this.pluginSystem.hooks.themeClasses[e.themeSystem]||Rr)(e)}function_r(e){vart=this.tryRerender.bind(this);returnnull!=e&&(t=pe(t,e)),t}functionOr(e){returnRe(e,function(e){returne.ui})}functionPr(e,t,n){varr={"":t};for(variine){varo=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}returnr}rn.mixInto(Cr);varxr=function(e){functiont(t,n){vari=e.call(this,r("div",{className:"fc-view fc-"+t.type+"-view"}))||this;returni.renderDatesMem=Xt(i.renderDatesWrap,i.unrenderDatesWrap),i.renderBusinessHoursMem=Xt(i.renderBusinessHours,i.unrenderBusinessHours,[i.renderDatesMem]),i.renderDateSelectionMem=Xt(i.renderDateSelectionWrap,i.unrenderDateSelectionWrap,[i.renderDatesMem]),i.renderEventsMem=Xt(i.renderEvents,i.unrenderEvents,[i.renderDatesMem]),i.renderEventSelectionMem=Xt(i.renderEventSelectionWrap,i.unrenderEventSelectionWrap,[i.renderEventsMem]),i.renderEventDragMem=Xt(i.renderEventDragWrap,i.unrenderEventDragWrap,[i.renderDatesMem]),i.renderEventResizeMem=Xt(i.renderEventResizeWrap,i.unrenderEventResizeWrap,[i.renderDatesMem]),i.viewSpec=t,i.type=t.type,n.appendChild(i.el),i.initialize(),i}returnEe(t,e),t.prototype.initialize=function(){},Object.defineProperty(t.prototype,"activeStart",{get:function(){returnthis.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){returnthis.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){returnthis.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){returnthis.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),t.prototype.render=function(e,t){this.renderDatesMem(e.dateProfile),this.renderBusinessHoursMem(e.businessHours),this.renderDateSelectionMem(e.dateSelection),this.renderEventsMem(e.eventStore),this.renderEventSelectionMem(e.eventSelection),this.renderEventDragMem(e.eventDrag),this.renderEventResizeMem(e.eventResize)},t.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderDatesMem.unrender()},t.prototype.updateSize=function(e,t,n){varr=this.context.calendar;e&&this.addScroll(this.queryScroll()),(e||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(e,t,n)},t.prototype.updateBaseSize=function(e,t,n){},t.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({duration:J(this.context.options.scrollTime)})},t.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},t.prototype.renderDates=function(e){},t.prototype.unrenderDates=function(){},t.prototype.renderBusinessHours=function(e){},t.prototype.unrenderBusinessHours=function(){},t.prototype.renderDateSelectionWrap=function(e){e&&this.renderDateSelection(e)},t.prototype.unrenderDateSelectionWrap=function(e){e&&this.unrenderDateSelection(e)},t.prototype.renderDateSelection=function(e){},t.prototype.unrenderDateSelection=function(e){},t.prototype.renderEvents=function(e){},t.prototype.unrenderEvents=function(){},t.prototype.sliceEvents=function(e,t){varn=this.props;returndt(e,n.eventUiBases,n.dateProfile.activeRange,t?this.context.nextDayThreshold:null).fg},t.prototype.renderEventSelectionWrap=function(e){e&&this.renderEventSelection(e)},t.prototype.unrenderEventSelectionWrap=function(e){e&&this.unrenderEventSelection(e)},t.prototype.renderEventSelection=function(e){},t.prototype.unrenderEventSelection=function(e){},t.prototype.renderEventDragWrap=function(e){e&&this.renderEventDrag(e)},t.prototype.unrenderEventDragWrap=function(e){e&&this.unrenderEventDrag(e)},t.prototype.renderEventDrag=function(e){},t.prototype.unrenderEventDrag=function(e){},t.prototype.renderEventResizeWrap=function(e){e&&this.renderEventResize(e)},t.prototype.unrenderEventResizeWrap=function(e){e&&this.unrenderEventResize(e)},t.prototype.renderEventResize=function(e){},t.prototype.unrenderEventResize=function(e){},t.prototype.startNowIndicator=function(e,t){varn,r,i,o=this,a=this.context,s=a.calendar,u=a.dateEnv;a.options.nowIndicator&&!this.initialNowDate&&(n=this.getNowIndicatorUnit(e,t))&&(r=this.updateNowIndicator.bind(this),this.initialNowDate=s.getNow(),this.initialNowQueriedMs=(newDate).valueOf(),i=u.add(u.startOf(this.initialNowDate,n),J(1,n)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){o.nowIndicatorTimeoutID=null,r(),i="second"===n?1e3:6e4,o.nowIndicatorIntervalID=setInterval(r,i)},i))},t.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(N(this.initialNowDate,(newDate).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.getNowIndicatorUnit=function(e,t){},t.prototype.renderNowIndicator=function(e){},t.prototype.unrenderNowIndicator=function(){},t.prototype.addScroll=function(e,t){t&&(e.isForced=t),Se(this.queuedScroll||(this.queuedScroll={}),e)},t.prototype.popScroll=function(e){this.applyQueuedScroll(e),this.queuedScroll=null},t.prototype.applyQueuedScroll=function(e){this.queuedScroll&&this.applyScroll(this.queuedScroll,e)},t.prototype.queryScroll=function(){vare={};returnthis.props.dateProfile&&Se(e,this.queryDateScroll()),e},t.prototype.applyScroll=function(e,t){varn=e.duration,r=e.isForced;null==n||r||(deletee.duration,this.props.dateProfile&&Se(e,this.computeDateScroll(n))),this.props.dateProfile&&this.applyDateScroll(e)},t.prototype.computeDateScroll=function(e){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(e){},t.prototype.scrollToDuration=function(e){this.applyScroll({duration:e},!1)},t}(gn);rn.mixInto(xr),xr.prototype.usesMinMaxTime=!1,xr.prototype.dateProfileGeneratorClass=$n;varNr=function(){functione(){this.segs=[],this.isSizeDirty=!1}returne.prototype.renderSegs=function(e,t,n){this.context=e,this.rangeUpdated(),t=this.renderSegEls(t,n),this.segs=t,this.attachSegs(t,n),this.isSizeDirty=!0,yt(this.context,this.segs,Boolean(n))},e.prototype.unrender=function(e,t,n){mt(this.context,this.segs,Boolean(n)),this.detachSegs(this.segs),this.segs=[]},e.prototype.rangeUpdated=function(){vare,t,n=this.context.options;this.eventTimeFormat=ot(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),null==(e=n.displayEventTime)&&(e=this.computeDisplayEventTime()),null==(t=n.displayEventEnd)&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},e.prototype.renderSegEls=function(e,t){varn,r="";if(e.length){for(n=0;n<e.length;n++)r+=this.renderSegHtml(e[n],t);o(r).forEach(function(t,n){varr=e[n];t&&(r.el=t)}),e=ft(this.context,e,Boolean(t))}returne},e.prototype.getSegClasses=function(e,t,n,r){vari=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);returnt&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},e.prototype.getTimeText=function(e,t,n){varr=e.def,i=e.instance;returnthis._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,t,n,i.forcedStartTzo,i.forcedEndTzo)},e.prototype._getTimeText=function(e,t,n,r,i,o,a){vars=this.context.dateEnv;returnnull==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?s.formatRange(e,t,r,{forcedStartTzo:o,forcedEndTzo:a}):s.format(e,r,{forcedTzo:o}):""},e.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},e.prototype.computeDisplayEventTime=function(){return!0},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.getSkinCss=function(e){return{"background-color":e.backgroundColor,"border-color":e.borderColor,color:e.textColor}},e.prototype.sortEventSegs=function(e){vart=this.context.eventOrderSpecs,n=e.map(Hr);returnn.sort(function(e,n){returnoe(e,n,t)}),n.map(function(e){returne._seg})},e.prototype.computeSizes=function(e){(e||this.isSizeDirty)&&this.computeSegSizes(this.segs)},e.prototype.assignSizes=function(e){(e||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e.prototype.hideByHash=function(e){if(e)for(vart=0,n=this.segs;t<n.length;t++){varr=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},e.prototype.showByHash=function(e){if(e)for(vart=0,n=this.segs;t<n.length;t++){varr=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},e.prototype.selectByInstanceId=function(e){if(e)for(vart=0,n=this.segs;t<n.length;t++){varr=n[t],i=r.eventRange.instance;i&&i.instanceId===e&&r.el&&r.el.classList.add("fc-selected")}},e.prototype.unselectByInstanceId=function(e){if(e)for(vart=0,n=this.segs;t<n.length;t++){varr=n[t];r.el&&r.el.classList.remove("fc-selected")}},e}();functionHr(e){vart=e.eventRange.def,n=e.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;returnSe({},t.extendedProps,t,{id:t.publicId,start:r,end:i,duration:i-r,allDay:Number(t.allDay),_seg:e})}varUr=function(){functione(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}returne.prototype.getSegsByType=function(e){returnthis.segsByType[e]||[]},e.prototype.renderSegs=function(e,t,n){varr;this.context=t;vari=this.renderSegEls(e,n),o=this.attachSegs(e,i);o&&(r=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(r,o),this.segsByType[e]=i,"bgEvent"===e&&yt(t,i,!1),this.dirtySizeFlags[e]=!0},e.prototype.unrender=function(e,t){varn=this.segsByType[e];n&&("bgEvent"===e&&mt(t,n,!1),this.detachSegs(e,n))},e.prototype.renderSegEls=function(e,t){varn,r=this,i="";if(t.length){for(n=0;n<t.length;n++)i+=this.renderSegHtml(e,t[n]);o(i).forEach(function(e,n){varr=t[n];e&&(r.el=e)}),"bgEvent"===e&&(t=ft(this.context,t,!1)),t=t.filter(function(e){returnh(e.el,r.fillSegTag)})}returnt},e.prototype.renderSegHtml=function(e,t){varn=null,r=[];return"highlight"!==e&&"businessHours"!==e&&(n={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(r=r.concat(t.eventRange.ui.classNames)),"businessHours"===e?r.push("fc-bgevent"):r.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join("")+'"':"")+(n?' style="'+xt(n)+'"':"")+"></"+this.fillSegTag+">"},e.prototype.detachSegs=function(e,t){varn=this.containerElsByType[e];n&&(n.forEach(c),deletethis.containerElsByType[e])},e.prototype.computeSizes=function(e){for(vartinthis.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(vartinthis.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),zr=function(e){this.timeZoneName=e},Lr=function(){functione(e){this.emitter=newrn}returne.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}();functionBr(e){vart=Nn(e.locale||"en",xn([]).map);returne=Se({timeZone:Mn.timeZone,calendarSystem:"gregory"},e,{locale:t}),newFn(e)}varVr={startTime:J,duration:J,create:Boolean,sourceId:String},Ar={create:!0};functionFr(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}functionWr(e,t,n,r,i,o,a,s){varu,l=o.dateEnv,c=o.theme,d=o.options,f=Ze(t.activeRange,e),p=["fc-day-header",c.getClass("widgetHeader")];returnu="function"==typeofd.columnHeaderHtml?d.columnHeaderHtml(l.toDate(e)):"function"==typeofd.columnHeaderText?Pt(d.columnHeaderText(l.toDate(e))):Pt(l.format(e,i)),n?p=p.concat(en(e,t,o,!0)):p.push("fc-"+P[e.getUTCDay()]),'<th class="'+p.join("")+'"'+(f&&n?' data-date="'+l.formatIso(e,{omitTime:!0})+'"':"")+(a>1?' colspan="'+a+'"':"")+(s?""+s:"")+">"+(f?$t(d,l,{date:e,forceOff:!n||1===r},u):u)+"</th>"}varZr=function(e){functiont(t){varn=e.call(this)||this;returnn.renderSkeleton=Xt(n._renderSkeleton,n._unrenderSkeleton),n.parentEl=t,n}returnEe(t,e),t.prototype.render=function(e,t){varn=e.dates,r=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(varo=ot(t.options.columnHeaderFormat||Fr(r,n.length)),a=0,s=n;a<s.length;a++){varu=s[a];i.push(Wr(u,e.dateProfile,r,n.length,o,t))}t.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"</tr>"},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){vart=e.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=i('<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead></thead></table></div>')),this.thead=this.el.querySelector("thead")},t.prototype._unrenderSkeleton=function(){c(this.el)},t}(vn),jr=function(){functione(e,t){for(varn=e.start,r=e.end,i=[],o=[],a=-1;n<r;)t.isHiddenDay(n)?i.push(a+.5):(a++,i.push(a),o.push(n)),n=x(n,1);this.dates=o,this.indices=i,this.cnt=o.length}returne.prototype.sliceRange=function(e){vart=this.getDateDayIndex(e.start),n=this.getDateDayIndex(x(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){vart=this.indices,n=Math.floor(H(this.dates[0],e));returnn<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Yr=function(){functione(e,t){varn,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n++);i=Math.ceil(o.length/n)}elsei=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}returne.prototype.buildCells=function(){for(vare=[],t=0;t<this.rowCnt;t++){for(varn=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(t,r));e.push(n)}returne},e.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},e.prototype.buildHeaderDates=function(){for(vare=[],t=0;t<this.colCnt;t++)e.push(this.cells[0][t].date);returne},e.prototype.sliceRange=function(e){vart=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(vari=n.firstIndex,o=n.lastIndex,a=i;a<=o;){vars=Math.floor(a/t),u=Math.min((s+1)*t,o+1);r.push({row:s,firstCol:a%t,lastCol:(u-1)%t,isStart:n.isStart&&a===i,isEnd:n.isEnd&&u-1===o}),a=u}returnr},e}(),qr=function(){functione(){this.sliceBusinessHours=Ye(this._sliceBusinessHours),this.sliceDateSelection=Ye(this._sliceDateSpan),this.sliceEventStore=Ye(this._sliceEventStore),this.sliceEventDrag=Ye(this._sliceInteraction),this.sliceEventResize=Ye(this._sliceInteraction)}returne.prototype.sliceProps=function(e,t,n,r,i){for(varo=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];vars=e.eventUiBases,u=this.sliceEventStore.apply(this,[e.eventStore,s,t,n,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,s,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r,i].concat(o)),fgEventSegs:u.fg,bgEventSegs:u.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,s,t,n,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,s,t,n,i].concat(o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(varn=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];returnthis._sliceDateSpan.apply(this,[{range:{start:e,end:N(e,1)},allDay:!1},{},t].concat(n))},e.prototype._sliceBusinessHours=function(e,t,n,r,i){for(varo=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];returne?this._sliceEventStore.apply(this,[Oe(e,Gr(t,Boolean(n)),r),{},t,n,i].concat(o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r,i){for(varo=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(e){vars=dt(e,t,Gr(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i,o),fg:this.sliceEventRanges(s.fg,i,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r,i){for(varo=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(!e)returnnull;vars=dt(e.mutatedEvents,t,Gr(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},e.prototype._sliceDateSpan=function(e,t,n){for(varr=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(varo=lr(e,t,n.context.calendar),a=this.sliceRange.apply(this,[e.range].concat(r)),s=0,u=a;s<u.length;s++){varl=u[s];l.component=n,l.eventRange=o}returna},e.prototype.sliceEventRanges=function(e,t,n){for(varr=[],i=0,o=e;i<o.length;i++){vara=o[i];r.push.apply(r,this.sliceEventRange(a,t,n))}returnr},e.prototype.sliceEventRange=function(e,t,n){for(varr=this.sliceRange.apply(this,[e.range].concat(n)),i=0,o=r;i<o.length;i++){vara=o[i];a.component=t,a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd}returnr},e}();functionGr(e,t){varn=e.activeRange;returnt?n:{start:N(n.start,e.minTime.milliseconds),end:N(n.end,e.maxTime.milliseconds-864e5)}}e.Calendar=Cr,e.Component=vn,e.ComponentContext=hn,e.DateComponent=gn,e.DateEnv=Fn,e.DateProfileGenerator=$n,e.DayHeader=Zr,e.DaySeries=jr,e.DayTable=Yr,e.ElementDragging=Lr,e.ElementScrollController=ln,e.EmitterMixin=rn,e.EventApi=ct,e.FgEventRenderer=Nr,e.FillRenderer=Ur,e.Interaction=br,e.Mixin=nn,e.NamedTimeZoneImpl=zr,e.PositionCache=sn,e.ScrollComponent=dn,e.ScrollController=un,e.Slicer=qr,e.Splitter=Kt,e.Theme=fn,e.View=xr,e.WindowScrollController=cn,e.addDays=x,e.addDurations=function(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}},e.addMs=N,e.addWeeks=function(e,t){varn=Z(e);returnn[2]+=7*t,j(n)},e.allowContextMenu=function(e){e.removeEventListener("contextmenu",k)},e.allowSelection=function(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",k)},e.appendToElement=s,e.applyAll=de,e.applyMutationToEventStore=Et,e.applyStyle=y,e.applyStyleProp=m,e.asRoughMinutes=function(e){returnte(e)/6e4},e.asRoughMs=te,e.asRoughSeconds=function(e){returnte(e)/1e3},e.buildGotoAnchorHtml=$t,e.buildSegCompareObj=Hr,e.capitaliseFirstLetter=ue,e.combineEventUis=Bt,e.compareByFieldSpec=ae,e.compareByFieldSpecs=oe,e.compareNumbers=function(e,t){returne-t},e.compensateScroll=function(e,t){t.left&&y(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&y(e,{borderRightWidth:1,marginRight:t.right-1})},e.computeClippingRect=function(e){returnM(e).map(function(e){returnw(e)}).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce(function(e,t){returnE(e,t)||t})},e.computeEdges=T,e.computeEventDraggable=function(e,t,n){for(varr=e.calendar,i=e.view,o=r.pluginSystem.hooks.isDraggableTransformers,a=n.startEditable,s=0,u=o;s<u.length;s++)a=(0,u[s])(a,t,n,i);returna},e.computeEventEndResizable=function(e,t,n){returnn.durationEditable},e.computeEventStartResizable=function(e,t,n){returnn.durationEditable&&e.options.eventResizableFromStart},e.computeFallbackHeaderFormat=Fr,e.computeHeightAndMargins=C,e.computeInnerRect=w,e.computeRect=R,e.computeVisibleDayRange=ge,e.config={},e.constrainPoint=function(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)}},e.createDuration=J,e.createElement=r,e.createEmptyEventStore=Ne,e.createEventInstance=Yt,e.createFormatter=ot,e.createPlugin=mn,e.cssToStr=xt,e.debounce=pe,e.diffDates=ye,e.diffDayAndTime=U,e.diffDays=H,e.diffPoints=function(e,t){return{left:e.left-t.left,top:e.top-t.top}},e.diffWeeks=function(e,t){returnH(e,t)/7},e.diffWholeDays=L,e.diffWholeWeeks=z,e.disableCursor=function(){document.body.classList.add("fc-not-allowed")},e.distributeHeight=function(e,t,n){varr=Math.floor(t/e.length),i=Math.floor(t-r*(e.length-1)),o=[],a=[],s=[],u=0;re(e),e.forEach(function(t,n){varl=n===e.length-1?i:r,c=t.getBoundingClientRect().height,d=c+I(t);d<l?(o.push(t),a.push(d),s.push(c)):u+=d}),n&&(t-=u,r=Math.floor(t/o.length),i=Math.floor(t-r*(o.length-1))),o.forEach(function(e,t){varn=t===o.length-1?i:r,u=a[t],l=n-(u-s[t]);u<n&&(e.style.height=l+"px")})},e.elementClosest=p,e.elementMatches=h,e.enableCursor=function(){document.body.classList.remove("fc-not-allowed")},e.eventTupleToStore=_e,e.filterEventStoreDefs=Ue,e.filterHash=we,e.findChildren=function(e,t){for(varn=einstanceofHTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(varo=n[i].children,a=0;a<o.length;a++){vars=o[a];t&&!h(s,t)||r.push(s)}returnr},e.findElements=v,e.flexibleCompare=se,e.forceClassName=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.formatDate=function(e,t){void0===t&&(t={});varn=Br(t),r=ot(t),i=n.createMarkerMeta(e);returni?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatIsoTimeString=function(e){returnle(e.getUTCHours(),2)+":"+le(e.getUTCMinutes(),2)+":"+le(e.getUTCSeconds(),2)},e.formatRange=function(e,t,n){varr=Br("object"==typeofn&&n?n:{}),i=ot(n,Mn.defaultRangeSeparator),o=r.createMarkerMeta(e),a=r.createMarkerMeta(t);returno&&a?r.formatRange(o.marker,a.marker,i,{forcedStartTzo:o.forcedTzo,forcedEndTzo:a.forcedTzo,isEndExclusive:n.isEndExclusive}):""},e.getAllDayHtml=function(e){returne.allDayHtml||Pt(e.allDayText)},e.getClippingParents=M,e.getDayClasses=en,e.getElSeg=ht,e.getRectCenter=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}},e.getRelevantEvents=Pe,e.globalDefaults=Mn,e.greatestDurationDenominator=ne,e.hasBgRendering=function(e){return"background"===e.rendering||"inverse-background"===e.rendering},e.htmlEscape=Pt,e.htmlToElement=i,e.insertAfterElement=function(e,t){for(varn=l(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)},e.interactionSettingsStore=Dr,e.interactionSettingsToStore=function(e){vart;return(t={})[e.component.uid]=e,t},e.intersectRanges=Ve,e.intersectRects=E,e.isArraysEqual=je,e.isDateSpansEqual=function(e,t){returnAe(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(varnint)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(varnine)if(!(nint))return!1;return!0}(e,t)},e.isInt=ce,e.isInteractionValid=Rt,e.isMultiDayRange=function(e){vart=ge(e);returnH(t.start,t.end)>1},e.isPropsEqual=Me,e.isPropsValid=It,e.isSingleDay=function(e){return0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds},e.isValidDate=Y,e.listenBySelector=_,e.mapHash=Re,e.matchCellWidths=function(e){vart=0;returne.forEach(function(e){varn=e.firstChild;if(ninstanceofHTMLElement){varr=n.getBoundingClientRect().width;r>t&&(t=r)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t},e.memoize=Ye,e.memoizeOutput=qe,e.memoizeRendering=Xt,e.mergeEventStores=He,e.multiplyDuration=function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}},e.padStart=le,e.parseBusinessHours=Gt,e.parseDragMeta=function(e){vart={},n=he(e,Vr,Ar,t);returnn.leftoverProps=t,n},e.parseEventDef=jt,e.parseFieldSpecs=ie,e.parseMarker=An,e.pointInsideRect=function(e,t){returne.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom},e.prependToElement=u,e.preventContextMenu=function(e){e.addEventListener("contextmenu",k)},e.preventDefault=k,e.preventSelection=function(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",k)},e.processScopedUiProps=zt,e.rangeContainsMarker=Ze,e.rangeContainsRange=We,e.rangesEqual=Ae,e.rangesIntersect=Fe,e.refineProps=he,e.removeElement=c,e.removeExact=function(e,t){for(varn=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n++):r++;returnn},e.renderDateCell=Wr,e.requestJson=Dn,e.sliceEventStore=dt,e.startOfDay=B,e.subtractInnerElHeight=function(e,t){varn={position:"relative",left:-1};y(e,n),y(t,n);varr=e.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""};returny(e,i),y(t,i),r},e.translateRect=function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},e.uncompensateScroll=function(e){y(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})},e.undistributeHeight=re,e.unpromisify=tn,e.version="4.4.0",e.whenTransitionDone=function(e,t){varn=function(r){t(r),O.forEach(function(t){e.removeEventListener(t,n)})};O.forEach(function(t){e.addEventListener(t,n)})},e.wholeDivideDurations=function(e,t){for(varn=null,r=0;r<G.length;r++){vari=G[r];if(t[i]){varo=e[i]/t[i];if(!ce(o)||null!==n&&n!==o)returnnull;n=o}elseif(e[i])returnnull}returnn},Object.defineProperty(e,"__esModule",{value:!0})});