HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/farmfun/reserveren.farmfun.be/wwwroot/js/reservation.js
/*! For license information please see reservation.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[760],{5506:function(e){e.exports=function(){"use strict";return{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Voorgaand",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"}}()},1785:(e,t,r)=>{"use strict";var n={className:!0,colSpan:!0,rowSpan:!0},i={"<tr":"tbody","<td":"tr"};function o(e,t,r){var i=document.createElement(e);if(t)for(var o in t)"style"===o?b(i,t[o]):n[o]?i[o]=t[o]:i.setAttribute(o,t[o]);return"string"==typeof r?i.innerHTML=r:null!=r&&u(i,r),i}function s(e){e=e.trim();var t=document.createElement(l(e));return t.innerHTML=e,t.firstChild}function a(e){return Array.prototype.slice.call(function(e){e=e.trim();var t=document.createElement(l(e));return t.innerHTML=e,t.childNodes}(e))}function l(e){return i[e.substr(0,3)]||"div"}function u(e,t){for(var r=h(t),n=0;n<r.length;n++)e.appendChild(r[n])}function c(e,t){for(var r=h(t),n=e.firstChild||null,i=0;i<r.length;i++)e.insertBefore(r[i],n)}function d(e,t){for(var r=h(t),n=e.nextSibling||null,i=0;i<r.length;i++)e.parentNode.insertBefore(r[i],n)}function h(e){return"string"==typeof e?a(e):e instanceof Node?[e]:Array.prototype.slice.call(e)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}var p=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,v=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(y(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function g(e,t){return v.call(e,t)}function y(e,t){return p.call(e,t)}function m(e,t){for(var r=e instanceof HTMLElement?[e]:e,n=[],i=0;i<r.length;i++)for(var o=r[i].querySelectorAll(t),s=0;s<o.length;s++)n.push(o[s]);return n}function S(e,t){for(var r=e instanceof HTMLElement?[e]:e,n=[],i=0;i<r.length;i++)for(var o=r[i].children,s=0;s<o.length;s++){var a=o[s];t&&!y(a,t)||n.push(a)}return n}var E=/(top|left|right|bottom|width|height)$/i;function b(e,t){for(var r in t)w(e,r,t[r])}function w(e,t,r){null==r?e.style[t]="":"number"==typeof r&&E.test(t)?e.style[t]=r+"px":e.style[t]=r}var D=null;function T(){return null===D&&(D=function(){var e=o("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return f(e),t}()),D}function C(e){return e=Math.max(0,e),e=Math.round(e)}function R(e,t){void 0===t&&(t=!1);var r=window.getComputedStyle(e),n=parseInt(r.borderLeftWidth,10)||0,i=parseInt(r.borderRightWidth,10)||0,o=parseInt(r.borderTopWidth,10)||0,s=parseInt(r.borderBottomWidth,10)||0,a=C(e.offsetWidth-e.clientWidth-n-i),l={borderLeft:n,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:C(e.offsetHeight-e.clientHeight-o-s),scrollbarLeft:0,scrollbarRight:0};return T()&&"rtl"===r.direction?l.scrollbarLeft=a:l.scrollbarRight=a,t&&(l.paddingLeft=parseInt(r.paddingLeft,10)||0,l.paddingRight=parseInt(r.paddingRight,10)||0,l.paddingTop=parseInt(r.paddingTop,10)||0,l.paddingBottom=parseInt(r.paddingBottom,10)||0),l}function k(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function I(e){return e.getBoundingClientRect().height+x(e)}function x(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function P(e){return function(e){for(var t=[];e instanceof HTMLElement;){var r=window.getComputedStyle(e);if("fixed"===r.position)break;/(auto|scroll)/.test(r.overflow+r.overflowY+r.overflowX)&&t.push(e),e=e.parentNode}return t}(e).map((function(e){return function(e,t){void 0===t&&(t=!1);var r=k(e),n=R(e,t),i={left:r.left+n.borderLeft+n.scrollbarLeft,right:r.right-n.borderRight-n.scrollbarRight,top:r.top+n.borderTop,bottom:r.bottom-n.borderBottom-n.scrollbarBottom};return t&&(i.left+=n.paddingLeft,i.right-=n.paddingRight,i.top+=n.paddingTop,i.bottom-=n.paddingBottom),i}(e)})).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce((function(e,t){return function(e,t){var r={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return r.left<r.right&&r.top<r.bottom&&r}(e,t)||t}))}function _(e,t,r,n){function i(e){var t=g(e.target,r);t&&n.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var M=["sun","mon","tue","wed","thu","fri","sat"];function O(e,t){var r=F(e);return r[2]+=7*t,j(r)}function H(e,t){var r=F(e);return r[2]+=t,j(r)}function N(e,t){var r=F(e);return r[6]+=t,j(r)}function L(e,t){return(t.valueOf()-e.valueOf())/864e5}function z(e,t){return Z(e)===Z(t)?Math.round(L(e,t)):null}function B(e){return j([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function U(e,t,r,n){var i=j([t,0,1+G(t,r,n)]),o=B(e),s=Math.round(L(i,o));return Math.floor(s/7)+1}function G(e,t,r){var n=7+t-r;return-((7+j([e,0,n]).getUTCDay()-t)%7)+n-1}function V(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function A(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function F(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function j(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function W(e){return!isNaN(e.valueOf())}function Z(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var q=["years","months","days","milliseconds"],Y=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function X(e,t){var r;return"string"==typeof e?function(e){var t=Y.exec(e);if(t){var r=t[1]?-1:1;return{years:0,months:0,days:r*(t[2]?parseInt(t[2],10):0),milliseconds:r*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?K(e):"number"==typeof e?K(((r={})[t||"milliseconds"]=e,r)):null}function K(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*J(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function J(e){return e.weeks||e.week||0}function Q(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function $(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ee(e){return te(e)/864e5}function te(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function re(e,t){for(var r=null,n=0;n<q.length;n++){var i=q[n];if(t[i]){var o=e[i]/t[i];if(!pe(o)||null!==r&&r!==o)return null;r=o}else if(e[i])return null}return r}function ne(e,t){var r=e.milliseconds;if(r){if(r%1e3!=0)return{unit:"millisecond",value:r};if(r%6e4!=0)return{unit:"second",value:r/1e3};if(r%36e5!=0)return{unit:"minute",value:r/6e4};if(r)return{unit:"hour",value:r/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function ie(e,t){t.left&&b(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&b(e,{borderRightWidth:1,marginRight:t.right-1})}function oe(e){b(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function se(e,t,r){var n=Math.floor(t/e.length),i=Math.floor(t-n*(e.length-1)),o=[],s=[],a=[],l=0;ae(e),e.forEach((function(t,r){var u=r===e.length-1?i:n,c=t.getBoundingClientRect().height,d=c+x(t);d<u?(o.push(t),s.push(d),a.push(c)):l+=d})),r&&(t-=l,n=Math.floor(t/o.length),i=Math.floor(t-n*(o.length-1))),o.forEach((function(e,t){var r=t===o.length-1?i:n,l=s[t],u=r-(l-a[t]);l<r&&(e.style.height=u+"px")}))}function ae(e){e.forEach((function(e){e.style.height=""}))}function le(e){var t=0;return e.forEach((function(e){var r=e.firstChild;if(r instanceof HTMLElement){var n=r.getBoundingClientRect().width;n>t&&(t=n)}})),t++,e.forEach((function(e){e.style.width=t+"px"})),t}function ue(e,t){var r={position:"relative",left:-1};b(e,r),b(t,r);var n=e.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""};return b(e,i),b(t,i),n}function ce(e,t,r){var n,i;for(n=0;n<r.length;n++)if(i=de(e,t,r[n]))return i;return 0}function de(e,t,r){return r.func?r.func(e,t):function(e,t){if(!e&&!t)return 0;if(null==t)return-1;if(null==e)return 1;if("string"==typeof e||"string"==typeof t)return String(e).localeCompare(String(t));return e-t}(e[r.field],t[r.field])*(r.order||1)}function he(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fe(e,t){var r=String(e);return"000".substr(0,t-r.length)+r}function pe(e){return e%1==0}function ve(e,t,r){if("function"==typeof e&&(e=[e]),e){var n=void 0,i=void 0;for(n=0;n<e.length;n++)i=e[n].apply(t,r)||i;return i}}function ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++)if(void 0!==e[r])return e[r]}function ye(e,t){var r,n,i,o,s,a=function(){var l=(new Date).valueOf()-o;l<t?r=setTimeout(a,t-l):(r=null,s=e.apply(i,n),i=n=null)};return function(){return i=this,n=arguments,o=(new Date).valueOf(),r||(r=setTimeout(a,t)),s}}function me(e,t,r,n){void 0===r&&(r={});var i={};for(var o in t){var s=t[o];void 0!==e[o]?i[o]=s===Function?"function"==typeof e[o]?e[o]:null:s?s(e[o]):e[o]:void 0!==r[o]?i[o]=r[o]:s===String?i[o]="":s&&s!==Number&&s!==Boolean&&s!==Function?i[o]=s(null):i[o]=null}if(n)for(var o in e)void 0===t[o]&&(n[o]=e[o]);return i}function Se(e){var t=Math.floor(L(e.start,e.end))||1,r=B(e.start);return{start:r,end:H(r,t)}}function Ee(e,t){void 0===t&&(t=X(0));var r=null,n=null;if(e.end){n=B(e.end);var i=e.end.valueOf()-n.valueOf();i&&i>=te(t)&&(n=H(n,1))}return e.start&&(r=B(e.start),n&&n<=r&&(n=H(r,1))),{start:r,end:n}}function be(e,t,r,n){return"year"===n?X(r.diffWholeYears(e,t),"year"):"month"===n?X(r.diffWholeMonths(e,t),"month"):(o=t,s=B(i=e),a=B(o),{years:0,months:0,days:Math.round(L(s,a)),milliseconds:o.valueOf()-a.valueOf()-(i.valueOf()-s.valueOf())});var i,o,s,a}var we=function(e,t){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},we(e,t)};function De(e,t){function r(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Te=function(){return Te=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Te.apply(this,arguments)};function Ce(e,t,r,n,i){var o=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:n.subtract(r.start,t),end:r.end},n);return e.allDay&&(o=o.map(B)),o}var Re=Object.prototype.hasOwnProperty;function ke(e,t){var r,n,i,o,s,a,l={};if(t)for(r=0;r<t.length;r++){for(n=t[r],i=[],o=e.length-1;o>=0;o--)if("object"==typeof(s=e[o][n])&&s)i.unshift(s);else if(void 0!==s){l[n]=s;break}i.length&&(l[n]=ke(i))}for(r=e.length-1;r>=0;r--)for(n in a=e[r])n in l||(l[n]=a[n]);return l}function Ie(e,t){var r={};for(var n in e)t(e[n],n)&&(r[n]=e[n]);return r}function xe(e,t){var r={};for(var n in e)r[n]=t(e[n],n);return r}function Pe(e){for(var t={},r=0,n=e;r<n.length;r++){t[n[r]]=!0}return t}function _e(e){var t=[];for(var r in e)t.push(e[r]);return t}function Me(e,t){for(var r in e)if(Re.call(e,r)&&!(r in t))return!1;for(var r in t)if(Re.call(t,r)&&e[r]!==t[r])return!1;return!0}function Oe(e,t,r,n){for(var i={defs:{},instances:{}},o=0,s=e;o<s.length;o++){var a=Zt(s[o],t,r,n);a&&He(a,i)}return i}function He(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ne(e,t,r){var n=r.dateEnv,i=e.defs,o=e.instances;for(var s in o=Ie(o,(function(e){return!i[e.defId].recurringDef})),i){var a=i[s];if(a.recurringDef){var l=a.recurringDef.duration;l||(l=a.allDay?r.defaultAllDayEventDuration:r.defaultTimedEventDuration);for(var u=0,c=Ce(a,l,t,r.dateEnv,r.pluginSystem.hooks.recurringTypes);u<c.length;u++){var d=c[u],h=Yt(s,{start:d,end:n.add(d,l)});o[h.instanceId]=h}}}return{defs:i,instances:o}}function Le(e,t){var r=e.instances[t];if(r){var n=e.defs[r.defId],i=Ue(e,(function(e){return t=n,r=e,Boolean(t.groupId&&t.groupId===r.groupId);var t,r}));return i.defs[n.defId]=n,i.instances[r.instanceId]=r,i}return{defs:{},instances:{}}}function ze(e,t){var r;if(t){r=[];for(var n=0,i=e;n<i.length;n++){var o=i[n],s=t(o);s?r.push(s):null==s&&r.push(o)}}else r=e;return r}function Be(e,t){return{defs:Te({},e.defs,t.defs),instances:Te({},e.instances,t.instances)}}function Ue(e,t){var r=Ie(e.defs,t),n=Ie(e.instances,(function(e){return r[e.defId]}));return{defs:r,instances:n}}function Ge(e,t){var r,n,i=[],o=t.start;for(e.sort(Ve),r=0;r<e.length;r++)(n=e[r]).start>o&&i.push({start:o,end:n.start}),n.end>o&&(o=n.end);return o<t.end&&i.push({start:o,end:t.end}),i}function Ve(e,t){return e.start.valueOf()-t.start.valueOf()}function Ae(e,t){var r=e.start,n=e.end,i=null;return null!==t.start&&(r=null===r?t.start:new Date(Math.max(r.valueOf(),t.start.valueOf()))),null!=t.end&&(n=null===n?t.end:new Date(Math.min(n.valueOf(),t.end.valueOf()))),(null===r||null===n||r<n)&&(i={start:r,end:n}),i}function Fe(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())}function je(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function We(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Ze(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function qe(e,t){var r,n=e.length;if(n!==t.length)return!1;for(r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ye(e){var t,r;return function(){return t&&qe(t,arguments)||(t=arguments,r=e.apply(this,arguments)),r}}var Xe={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ke={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Je=/\s*([ap])\.?m\.?/i,Qe=/,/g,$e=/\s+/g,et=/\u200e/g,tt=/UTC|GMT/,rt=function(){function e(e){var t={},r={},n=0;for(var i in e)i in Xe?(r[i]=e[i],n=Math.max(Xe[i],n)):(t[i]=e[i],i in Ke&&(n=Math.max(Ke[i],n)));this.standardDateProps=t,this.extendedSettings=r,this.severity=n,this.buildFormattingFunc=Ye(nt)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,r){var n=this.standardDateProps,i=this.extendedSettings,o=function(e,t,r){if(r.getMarkerYear(e)!==r.getMarkerYear(t))return 5;if(r.getMarkerMonth(e)!==r.getMarkerMonth(t))return 4;if(r.getMarkerDay(e)!==r.getMarkerDay(t))return 2;if(Z(e)!==Z(t))return 1;return 0}(e.marker,t.marker,r.calendarSystem);if(!o)return this.format(e,r);var s=o;!(s>1)||"numeric"!==n.year&&"2-digit"!==n.year||"numeric"!==n.month&&"2-digit"!==n.month||"numeric"!==n.day&&"2-digit"!==n.day||(s=1);var a=this.format(e,r),l=this.format(t,r);if(a===l)return a;var u=nt(function(e,t){var r={};for(var n in e)(!(n in Ke)||Ke[n]<=t)&&(r[n]=e[n]);return r}(n,s),i,r),c=u(e),d=u(t),h=function(e,t,r,n){var i=0;for(;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var s=e.substr(0,o);i=o+t.length;for(var a=e.substr(i),l=0;l<r.length;){var u=r.indexOf(n,l);if(-1===u)break;var c=r.substr(0,u);l=u+n.length;var d=r.substr(l);if(s===c&&a===d)return{before:s,after:a}}}return null}(a,c,l,d),f=i.separator||"";return h?h.before+c+f+d+h.after:a+f+l},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},e}();function nt(e,t,r){var n=Object.keys(e).length;return 1===n&&"short"===e.timeZoneName?function(e){return at(e.timeZoneOffset)}:0===n&&t.week?function(e){return function(e,t,r,n){var i=[];"narrow"===n?i.push(t):"short"===n&&i.push(t," ");i.push(r.simpleNumberFormat.format(e)),r.options.isRtl&&i.reverse();return i.join("")}(r.computeWeekNumber(e.marker),r.weekLabel,r.locale,t.week)}:function(e,t,r){e=Te({},e),t=Te({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var n,i=new Intl.DateTimeFormat(r.locale.codes,e);if(t.omitZeroMinute){var o=Te({},e);delete o.minute,n=new Intl.DateTimeFormat(r.locale.codes,o)}return function(o){var s=o.marker;return function(e,t,r,n,i){e=e.replace(et,""),"short"===r.timeZoneName&&(e=function(e,t){var r=!1;e=e.replace(tt,(function(){return r=!0,t})),r||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":at(t.timeZoneOffset)));n.omitCommas&&(e=e.replace(Qe,"").trim());n.omitZeroMinute&&(e=e.replace(":00",""));!1===n.meridiem?e=e.replace(Je,"").trim():"narrow"===n.meridiem?e=e.replace(Je,(function(e,t){return t.toLocaleLowerCase()})):"short"===n.meridiem?e=e.replace(Je,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===n.meridiem&&(e=e.replace(Je,(function(e){return e.toLocaleLowerCase()})));return e=e.replace($e," "),e=e.trim(),e}((n&&!s.getUTCMinutes()?n:i).format(s),o,e,t,r)}}(e,t,r)}var it=function(){function e(e,t){this.cmdStr=e,this.separator=t}return e.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,lt(e,null,t,this.separator))},e.prototype.formatRange=function(e,t,r){return r.cmdFormatter(this.cmdStr,lt(e,t,r,this.separator))},e}(),ot=function(){function e(e){this.func=e}return e.prototype.format=function(e,t){return this.func(lt(e,null,t))},e.prototype.formatRange=function(e,t,r){return this.func(lt(e,t,r))},e}();function st(e,t){return"object"==typeof e&&e?("string"==typeof t&&(e=Te({separator:t},e)),new rt(e)):"string"==typeof e?new it(e,t):"function"==typeof e?new ot(e):void 0}function at(e,t){void 0===t&&(t=!1);var r=e<0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=Math.round(n%60);return t?r+fe(i,2)+":"+fe(o,2):"GMT"+r+i+(o?":"+fe(o,2):"")}function lt(e,t,r,n){var i=ut(e,r.calendarSystem);return{date:i,start:i,end:t?ut(t,r.calendarSystem):null,timeZone:r.timeZone,localeCodes:r.locale.codes,separator:n}}function ut(e,t){var r=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:r,year:r[0],month:r[1],day:r[2],hour:r[3],minute:r[4],second:r[5],millisecond:r[6]}}var ct=function(){function e(e,t){this.calendar=e,this.internalEventSource=t}return e.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(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),e}(),dt=function(){function e(e,t,r){this._calendar=e,this._def=t,this._instance=r||null}return e.prototype.setProp=function(e,t){var r,n;if(e in jt);else if(e in Ft)"function"==typeof Ft[e]&&(t=Ft[e](t)),this.mutate({standardProps:(r={},r[e]=t,r)});else if(e in zt){var i=void 0;"function"==typeof zt[e]&&(t=zt[e](t)),"color"===e?i={backgroundColor:t,borderColor:t}:"editable"===e?i={startEditable:t,durationEditable:t}:((n={})[e]=t,i=n),this.mutate({standardProps:{ui:i}})}},e.prototype.setExtendedProp=function(e,t){var r;this.mutate({extendedProps:(r={},r[e]=t,r)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var r=this._calendar.dateEnv,n=r.createMarker(e);if(n&&this._instance){var i=be(this._instance.range.start,n,r,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var r,n=this._calendar.dateEnv;if((null==e||(r=n.createMarker(e)))&&this._instance)if(r){var i=be(this._instance.range.end,r,n,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,r){void 0===r&&(r={});var n,i=this._calendar.dateEnv,o={allDay:r.allDay},s=i.createMarker(e);if(s&&(null==t||(n=i.createMarker(t)))&&this._instance){var a=this._instance.range;!0===r.allDay&&(a=Se(a));var l=be(a.start,s,i,r.granularity);if(n){var u=be(a.end,n,i,r.granularity);Q(l,u)?this.mutate({datesDelta:l,standardProps:o}):this.mutate({startDelta:l,endDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:l,standardProps:o})}},e.prototype.moveStart=function(e){var t=X(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=X(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=X(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var r={allDay:e},n=t.maintainDuration;null==n&&(n=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(r.hasEnd=n),this.mutate({standardProps:r})},e.prototype.formatRange=function(e){var t=this._calendar.dateEnv,r=this._instance,n=st(e,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?t.formatRange(r.range.start,r.range.end,n,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):t.format(r.range.start,n,{forcedTzo:r.forcedStartTzo})},e.prototype.mutate=function(e){var t=this._def,r=this._instance;if(r){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:r.instanceId,mutation:e,fromApi:!0});var n=this._calendar.state.eventStore;this._def=n.defs[t.defId],this._instance=n.instances[r.instanceId]}},e.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new ct(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),e}();function ht(e,t,r,n){var i={},o={},s={},a=[],l=[],u=gt(e.defs,t);for(var c in e.defs){"inverse-background"===(E=e.defs[c]).rendering&&(E.groupId?(i[E.groupId]=[],s[E.groupId]||(s[E.groupId]=E)):o[c]=[])}for(var d in e.instances){var h=e.instances[d],f=u[(E=e.defs[h.defId]).defId],p=h.range,v=!E.allDay&&n?Ee(p,n):p,g=Ae(v,r);g&&("inverse-background"===E.rendering?E.groupId?i[E.groupId].push(g):o[h.defId].push(g):("background"===E.rendering?a:l).push({def:E,ui:f,instance:h,range:g,isStart:v.start&&v.start.valueOf()===g.start.valueOf(),isEnd:v.end&&v.end.valueOf()===g.end.valueOf()}))}for(var y in i)for(var m=0,S=Ge(i[y],r);m<S.length;m++){var E,b=S[m];f=u[(E=s[y]).defId];a.push({def:E,ui:f,instance:null,range:b,isStart:!1,isEnd:!1})}for(var c in o)for(var w=0,D=Ge(o[c],r);w<D.length;w++){b=D[w];a.push({def:e.defs[c],ui:u[c],instance:null,range:b,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function ft(e,t,r){var n=e.calendar,i=e.view;n.hasPublicHandlers("eventRender")&&(t=t.filter((function(e){var t=n.publiclyTrigger("eventRender",[{event:new dt(n,e.eventRange.def,e.eventRange.instance),isMirror:r,isStart:e.isStart,isEnd:e.isEnd,el:e.el,view:i}]);return!1!==t&&(t&&!0!==t&&(e.el=t),!0)})));for(var o=0,s=t;o<s.length;o++){var a=s[o];pt(a.el,a)}return t}function pt(e,t){e.fcSeg=t}function vt(e){return e.fcSeg||null}function gt(e,t){return xe(e,(function(e){return yt(e,t)}))}function yt(e,t){var r=[];return t[""]&&r.push(t[""]),t[e.defId]&&r.push(t[e.defId]),r.push(e.ui),Vt(r)}function mt(e,t,r){var n=e.calendar,i=e.view;if(n.hasPublicHandlers("eventPositioned"))for(var o=0,s=t;o<s.length;o++){var a=s[o];n.publiclyTriggerAfterSizing("eventPositioned",[{event:new dt(n,a.eventRange.def,a.eventRange.instance),isMirror:r,isStart:a.isStart,isEnd:a.isEnd,el:a.el,view:i}])}n.state.eventSourceLoadingLevel||(n.afterSizingTriggers._eventsPositioned=[null])}function St(e,t,r){for(var n=e.calendar,i=e.view,o=0,s=t;o<s.length;o++){var a=s[o];n.trigger("eventElRemove",a.el)}if(n.hasPublicHandlers("eventDestroy"))for(var l=0,u=t;l<u.length;l++){a=u[l];n.publiclyTrigger("eventDestroy",[{event:new dt(n,a.eventRange.def,a.eventRange.instance),isMirror:r,el:a.el,view:i}])}}function Et(e,t,r){for(var n=e.calendar,i=e.view,o=n.pluginSystem.hooks.isDraggableTransformers,s=r.startEditable,a=0,l=o;a<l.length;a++){s=(0,l[a])(s,t,r,i)}return s}function bt(e,t,r){return r.durationEditable&&e.options.eventResizableFromStart}function wt(e,t,r){return r.durationEditable}function Dt(e,t,r,n,i){var o=r.standardProps||{};null==o.hasEnd&&t.durationEditable&&(r.startDelta||r.endDelta)&&(o.hasEnd=!0);var s=Te({},e,o,{ui:Te({},e.ui,o.ui)});r.extendedProps&&(s.extendedProps=Te({},s.extendedProps,r.extendedProps));for(var a=0,l=n;a<l.length;a++){(0,l[a])(s,r,i)}return!s.hasEnd&&i.opt("forceEventDuration")&&(s.hasEnd=!0),s}function Tt(e,t,r,n,i){var o=i.dateEnv,s=n.standardProps&&!0===n.standardProps.allDay,a=n.standardProps&&!1===n.standardProps.hasEnd,l=Te({},e);return s&&(l.range=Se(l.range)),n.datesDelta&&r.startEditable&&(l.range={start:o.add(l.range.start,n.datesDelta),end:o.add(l.range.end,n.datesDelta)}),n.startDelta&&r.durationEditable&&(l.range={start:o.add(l.range.start,n.startDelta),end:l.range.end}),n.endDelta&&r.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,n.endDelta)}),a&&(l.range={start:l.range.start,end:i.getDefaultEventEnd(t.allDay,l.range.start)}),t.allDay&&(l.range={start:B(l.range.start),end:B(l.range.end)}),l.range.end<l.range.start&&(l.range.end=i.getDefaultEventEnd(t.allDay,l.range.start)),l}function Ct(e,t,r,n,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,r,n,i,o){if(t&&r===t.latestFetchId){var s=Oe(function(e,t,r){var n=r.opt("eventDataTransform"),i=t?t.eventDataTransform:null;return i&&(e=ze(e,i)),n&&(e=ze(e,n)),e}(i,t,o),t.sourceId,o);return n&&(s=Ne(s,n,o)),Be(Rt(e,t.sourceId),s)}return e}(e,r[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return function(e,t,r,n){r&&(t=Ne(t,r,n));return Be(e,t)}(e,t.eventStore,n?n.activeRange:null,i);case"MERGE_EVENTS":return Be(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?Ne(e,n.activeRange,i):e;case"CHANGE_TIMEZONE":return function(e,t,r){var n=e.defs,i=xe(e.instances,(function(e){var i=n[e.defId];return i.allDay||i.recurringDef?e:Te({},e,{range:{start:r.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:r.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:e.forcedEndTzo})}));return{defs:n,instances:i}}(e,t.oldDateEnv,i.dateEnv);case"MUTATE_EVENTS":return function(e,t,r,n,i){var o=Le(e,t),s=n?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:i.eventUiBases;return o=function(e,t,r,n){var i=gt(e.defs,t),o={defs:{},instances:{}};for(var s in e.defs){var a=e.defs[s];o.defs[s]=Dt(a,i[s],r,n.pluginSystem.hooks.eventDefMutationAppliers,n)}for(var l in e.instances){var u=e.instances[l];a=o.defs[u.defId],o.instances[l]=Tt(u,a,i[u.defId],r,n)}return o}(o,s,r,i),Be(e,o)}(e,t.instanceId,t.mutation,t.fromApi,i);case"REMOVE_EVENT_INSTANCES":return kt(e,t.instances);case"REMOVE_EVENT_DEF":return Ue(e,(function(e){return e.defId!==t.defId}));case"REMOVE_EVENT_SOURCE":return Rt(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ue(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}}function Rt(e,t){return Ue(e,(function(e){return e.sourceId!==t}))}function kt(e,t){return{defs:e.defs,instances:Ie(e.instances,(function(e){return!t[e.instanceId]}))}}function It(e,t){var r=t.view,n=Te({businessHours:r?r.props.businessHours:{defs:{},instances:{}},dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||xt)(n,t)}function xt(e,t,r,n){return void 0===r&&(r={}),!(e.eventDrag&&!function(e,t,r,n){var i=e.eventDrag,o=i.mutatedEvents,s=o.defs,a=o.instances,l=gt(s,i.isEvent?e.eventUiBases:{"":t.selectionConfig});n&&(l=xe(l,n));var u=kt(e.eventStore,i.affectedEvents.instances),c=u.defs,d=u.instances,h=gt(c,e.eventUiBases);for(var f in a){var p=a[f],v=p.range,g=l[p.defId],y=s[p.defId];if(!Pt(g.constraints,v,u,e.businessHours,t))return!1;var m=t.opt("eventOverlap");for(var S in"function"!=typeof m&&(m=null),d){var E=d[S];if(je(v,E.range)){if(!1===h[E.defId].overlap&&i.isEvent)return!1;if(!1===g.overlap)return!1;if(m&&!m(new dt(t,c[E.defId],E),new dt(t,y,p)))return!1}}for(var b=t.state.eventStore,w=0,D=g.allows;w<D.length;w++){var T=D[w],C=Te({},r,{range:p.range,allDay:y.allDay}),R=b.defs[y.defId],k=b.instances[f],I=void 0;if(I=R?new dt(t,R,k):new dt(t,y),!T(t.buildDateSpanApi(C),I))return!1}}return!0}(e,t,r,n))&&!(e.dateSelection&&!function(e,t,r,n){var i=e.eventStore,o=i.defs,s=i.instances,a=e.dateSelection,l=a.range,u=t.selectionConfig;n&&(u=n(u));if(!Pt(u.constraints,l,i,e.businessHours,t))return!1;var c=t.opt("selectOverlap");"function"!=typeof c&&(c=null);for(var d in s){var h=s[d];if(je(l,h.range)){if(!1===u.overlap)return!1;if(c&&!c(new dt(t,o[h.defId],h)))return!1}}for(var f=0,p=u.allows;f<p.length;f++){var v=p[f],g=Te({},r,a);if(!v(t.buildDateSpanApi(g),null))return!1}return!0}(e,t,r,n))}function Pt(e,t,r,n,i){for(var o=0,s=e;o<s.length;o++){if(!Ot(_t(s[o],t,r,n,i),t))return!1}return!0}function _t(e,t,r,n,i){return"businessHours"===e?Mt(Ne(n,t,i)):"string"==typeof e?Mt(Ue(r,(function(t){return t.groupId===e}))):"object"==typeof e&&e?Mt(Ne(e,t,i)):[]}function Mt(e){var t=e.instances,r=[];for(var n in t)r.push(t[n].range);return r}function Ot(e,t){for(var r=0,n=e;r<n.length;r++){if(We(n[r],t))return!0}return!1}function Ht(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function Nt(e){var t=[];for(var r in e){var n=e[r];null!=n&&""!==n&&t.push(r+":"+n)}return t.join(";")}function Lt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var zt={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Lt,classNames:Lt,color:String,backgroundColor:String,borderColor:String,textColor:String};function Bt(e,t,r){var n=me(e,zt,{},r),i=function(e,t){return Array.isArray(e)?Oe(e,"",t,!0):"object"==typeof e&&e?Oe([e],"",t,!0):null!=e?String(e):null}(n.constraint,t);return{startEditable:null!=n.startEditable?n.startEditable:n.editable,durationEditable:null!=n.durationEditable?n.durationEditable:n.editable,constraints:null!=i?[i]:[],overlap:n.overlap,allows:null!=n.allow?[n.allow]:[],backgroundColor:n.backgroundColor||n.color,borderColor:n.borderColor||n.color,textColor:n.textColor,classNames:n.classNames.concat(n.className)}}function Ut(e,t,r,n){var i={},o={};for(var s in zt){var a=e+he(s);i[s]=t[a],o[a]=!0}if("event"===e&&(i.editable=t.editable),n)for(var s in t)o[s]||(n[s]=t[s]);return Bt(i,r)}var Gt={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Vt(e){return e.reduce(At,Gt)}function At(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var Ft={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},jt={start:null,date:null,end:null,allDay:null},Wt=0;function Zt(e,t,r,n){var i=function(e,t){var r=null;if(e){r=t.state.eventSources[e].allDayDefault}null==r&&(r=t.opt("allDayDefault"));return r}(t,r),o={},s=function(e,t,r,n,i){for(var o=0;o<n.length;o++){var s={},a=n[o].parse(e,s,r);if(a){var l=s.allDay;return delete s.allDay,null==l&&null==(l=t)&&null==(l=a.allDayGuess)&&(l=!1),Te(i,s),{allDay:l,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(e,i,r.dateEnv,r.pluginSystem.hooks.recurringTypes,o);if(s)return(a=qt(o,t,s.allDay,Boolean(s.duration),r)).recurringDef={typeId:s.typeId,typeData:s.typeData,duration:s.duration},{def:a,instance:null};var a,l={},u=function(e,t,r,n,i){var o,s,a=function(e,t){var r=me(e,jt,{},t);return r.start=null!==r.start?r.start:r.date,delete r.date,r}(e,n),l=a.allDay,u=null,c=!1,d=null;if(o=r.dateEnv.createMarkerMeta(a.start),o)u=o.marker;else if(!i)return null;null!=a.end&&(s=r.dateEnv.createMarkerMeta(a.end));null==l&&(l=null!=t?t:(!o||o.isTimeUnspecified)&&(!s||s.isTimeUnspecified));l&&u&&(u=B(u));s&&(d=s.marker,l&&(d=B(d)),u&&d<=u&&(d=null));d?c=!0:i||(c=r.opt("forceEventDuration")||!1,d=r.dateEnv.add(u,l?r.defaultAllDayEventDuration:r.defaultTimedEventDuration));return{allDay:l,hasEnd:c,range:{start:u,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(e,i,r,l,n);return u?{def:a=qt(l,t,u.allDay,u.hasEnd,r),instance:Yt(a.defId,u.range,u.forcedStartTzo,u.forcedEndTzo)}:null}function qt(e,t,r,n,i){var o={},s=function(e,t,r){var n={},i=me(e,Ft,{},n),o=Bt(n,t,r);return i.publicId=i.id,delete i.id,i.ui=o,i}(e,i,o);s.defId=String(Wt++),s.sourceId=t,s.allDay=r,s.hasEnd=n;for(var a=0,l=i.pluginSystem.hooks.eventDefParsers;a<l.length;a++){var u={};(0,l[a])(s,o,u),o=u}return s.extendedProps=Te(o,s.extendedProps||{}),Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Yt(e,t,r,n){return{instanceId:String(Wt++),defId:e,range:t,forcedStartTzo:null==r?null:r,forcedEndTzo:null==n?null:n}}var Xt={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};function Kt(e,t){return Oe(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return Te({},Xt,e)}))}(e),"",t)}function Jt(e,t,r){void 0===r&&(r=[]);var n,i,o=[];function s(){if(i){for(var e=0,r=o;e<r.length;e++){r[e].unrender()}t&&t.apply(n,i),i=null}}function a(){i&&qe(i,arguments)||(s(),n=this,i=arguments,e.apply(this,arguments))}a.dependents=o,a.unrender=s;for(var l=0,u=r;l<u.length;l++){u[l].dependents.push(a)}return a}var Qt={defs:{},instances:{}},$t=function(){function e(){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={}}return e.prototype.splitProps=function(e){var t=this,r=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=xe(r,(function(e,r){return t.eventUiBuilders[r]||Ye(er)})),r){var d=r[c],h=s[c]||Qt,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],d.ui,o[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var r=0,n=this.getKeysForDateSpan(e);r<n.length;r++){t[n[r]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return xe(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var r=e.defs,n=e.instances,i={};for(var o in r)for(var s=0,a=t[o];s<a.length;s++){i[h=a[s]]||(i[h]={defs:{},instances:{}}),i[h].defs[o]=r[o]}for(var l in n)for(var u=n[l],c=0,d=t[u.defId];c<d.length;c++){var h;i[h=d[c]]&&(i[h].instances[l]=u)}return i},e.prototype._splitIndividualUi=function(e,t){var r={};for(var n in e)if(n)for(var i=0,o=t[n];i<o.length;i++){var s=o[i];r[s]||(r[s]={}),r[s][n]=e[n]}return r},e.prototype._splitInteraction=function(e){var t={};if(e){var r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),n=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,n),o=function(n){t[n]||(t[n]={affectedEvents:r[n]||Qt,mutatedEvents:i[n]||Qt,isEvent:e.isEvent,origSeg:e.origSeg})};for(var s in r)o(s);for(var s in i)o(s)}return t},e}();function er(e,t,r){var n=[];e&&n.push(e),t&&n.push(t);var i={"":Vt(n)};return r&&Te(i,r),i}function tr(e,t,r,n,i){var o,s,a,l;return r instanceof Date?o=r:(o=r.date,s=r.type,a=r.forceOff),l={date:t.formatIso(o,{omitTime:!0}),type:s||"day"},"string"==typeof n&&(i=n,n=null),n=n?" "+function(e){var t=[];for(var r in e){var n=e[r];null!=n&&t.push(r+'="'+Ht(n)+'"')}return t.join(" ")}(n):"",i=i||"",!a&&e.navLinks?"<a"+n+' data-goto="'+Ht(JSON.stringify(l))+'">'+i+"</a>":"<span"+n+">"+i+"</span>"}function rr(e,t,r,n){var i,o,s=r.calendar,a=r.options,l=r.theme,u=r.dateEnv,c=[];return Ze(t.activeRange,e)?(c.push("fc-"+M[e.getUTCDay()]),a.monthMode&&u.getMonth(e)!==u.getMonth(t.currentRange.start)&&c.push("fc-other-month"),o=H(i=B(s.getNow()),1),e<i?c.push("fc-past"):e>=o?c.push("fc-future"):(c.push("fc-today"),!0!==n&&c.push(l.getClass("today")))):c.push("fc-disabled-day"),c}var nr=function(){function e(){}return e.mixInto=function(e){this.mixIntoObj(e.prototype)},e.mixIntoObj=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach((function(r){e[r]||(e[r]=t.prototype[r])}))},e.mixOver=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach((function(r){e.prototype[r]=t.prototype[r]}))},e}(),ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.on=function(e,t){return or(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return or(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&sr(this._handlers,e,t),this._oneHandlers&&sr(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this.triggerWith(e,this,t),this},t.prototype.triggerWith=function(e,t,r){return this._handlers&&ve(this._handlers[e],t,r),this._oneHandlers&&(ve(this._oneHandlers[e],t,r),delete this._oneHandlers[e]),this},t.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},t}(nr);function or(e,t,r){(e[t]||(e[t]=[])).push(r)}function sr(e,t,r){r?e[t]&&(e[t]=e[t].filter((function(e){return e!==r}))):delete e[t]}var ar=function(){function e(e,t,r,n){this.originEl=e,this.els=t,this.isHorizontal=r,this.isVertical=n}return e.prototype.build=function(){var e=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(var t=[],r=[],n=0,i=this.els;n<i.length;n++){var o=i[n].getBoundingClientRect();t.push(o.left-e),r.push(o.right-e)}this.lefts=t,this.rights=r},e.prototype.buildElVerticals=function(e){for(var t=[],r=[],n=0,i=this.els;n<i.length;n++){var o=i[n].getBoundingClientRect();t.push(o.top-e),r.push(o.bottom-e)}this.tops=t,this.bottoms=r},e.prototype.leftToIndex=function(e){var t,r=this.lefts,n=this.rights,i=r.length;for(t=0;t<i;t++)if(e>=r[t]&&e<n[t])return t},e.prototype.topToIndex=function(e){var t,r=this.tops,n=this.bottoms,i=r.length;for(t=0;t<i;t++)if(e>=r[t]&&e<n[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),lr=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),ur=function(e){function t(t){var r=e.call(this)||this;return r.el=t,r}return De(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(lr),cr=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}De(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth}}(lr),function(e){function t(t,r){var n=e.call(this,o("div",{className:"fc-scroller"}))||this;return n.overflowX=t,n.overflowY=r,n.applyOverflow(),n}return De(t,e),t.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},t.prototype.destroy=function(){f(this.el)},t.prototype.applyOverflow=function(){b(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},t.prototype.lockOverflow=function(e){var t=this.overflowX,r=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===r&&(r=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),b(this.el,{overflowX:t,overflowY:r})},t.prototype.setHeight=function(e){w(this.el,"height",e)},t.prototype.getScrollbarWidths=function(){var e=R(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},t}(ur)),dr=function(){function e(e){this.calendarOptions=e,this.processIconOverride()}return e.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},e.prototype.setIconOverride=function(e){var t,r;if("object"==typeof e&&e){for(r in t=Te({},this.iconClasses),e)t[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();dr.prototype.classes={},dr.prototype.iconClasses={},dr.prototype.baseIconClass="",dr.prototype.iconOverridePrefix="";var hr=0,fr=function(){function e(e,t,r,n,i){this.calendar=e,this.theme=t,this.dateEnv=r,this.options=n,this.view=i,this.isRtl="rtl"===n.dir,this.eventOrderSpecs=function(e){var t,r,n=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)"string"==typeof(r=i[t])?n.push("-"===r.charAt(0)?{field:r.substring(1),order:-1}:{field:r,order:1}):"function"==typeof r&&n.push({func:r});return n}(n.eventOrder),this.nextDayThreshold=X(n.nextDayThreshold)}return e.prototype.extend=function(t,r){return new e(this.calendar,this.theme,this.dateEnv,t||this.options,r||this.view)},e}(),pr=function(){function e(){this.everRendered=!1,this.uid=String(hr++)}return e.addEqualityFuncs=function(e){this.prototype.equalityFuncs=Te({},this.prototype.equalityFuncs,e)},e.prototype.receiveProps=function(e,t){this.receiveContext(t);var r=function(e,t,r){var n={},i=!1;for(var o in t)o in e&&(e[o]===t[o]||r[o]&&r[o](e[o],t[o]))?n[o]=e[o]:(n[o]=t[o],i=!0);for(var o in e)if(!(o in t)){i=!0;break}return{anyChanges:i,comboProps:n}}(this.props||{},e,this.equalityFuncs),n=r.anyChanges,i=r.comboProps;this.props=i,n&&(this.everRendered&&this.beforeUpdate(),this.render(i,t),this.everRendered&&this.afterUpdate()),this.everRendered=!0},e.prototype.receiveContext=function(e){var t=this.context;this.context=e,t||this.firstContext(e)},e.prototype.render=function(e,t){},e.prototype.firstContext=function(e){},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.destroy=function(){},e}();pr.prototype.equalityFuncs={};var vr=function(e){function t(t){var r=e.call(this)||this;return r.el=t,r}return De(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),f(this.el)},t.prototype.buildPositionCaches=function(){},t.prototype.queryHit=function(e,t,r,n){return null},t.prototype.isInteractionValid=function(e){var t=this.context.calendar,r=this.props.dateProfile,n=e.mutatedEvents.instances;if(r)for(var i in n)if(!We(r.validRange,n[i].range))return!1;return function(e,t){return It({eventDrag:e},t)}(e,t)},t.prototype.isDateSelectionValid=function(e){var t=this.context.calendar,r=this.props.dateProfile;return!(r&&!We(r.validRange,e.range))&&function(e,t){return It({dateSelection:e},t)}(e,t)},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!g(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},t.prototype.isValidDateDownEl=function(e){var t=g(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!g(e,".fc-more")&&!g(e,"a[data-goto]")&&!this.isInPopover(e)},t.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},t.prototype.isInPopover=function(e){return Boolean(g(e,".fc-popover"))},t}(pr);vr.prototype.fgSegSelector=".fc-event-container > *",vr.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var gr=0;function yr(e){return{id:String(gr++),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||{}}}var mr=function(){function e(){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={}}return e.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,r=e.deps;t<r.length;t++){var n=r[t];this.add(n)}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:Te({},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:Te({},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:Te({},i.optionChangeHandlers,o.optionChangeHandlers)})}var i,o},e}();var Sr=yr({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),Er=yr({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,r){var n=e.calendar.dateEnv;!function(e,t,r){var n=!1,i=function(){n||(n=!0,t.apply(this,arguments))},o=function(){n||(n=!0,r&&r.apply(this,arguments))},s=e(i,o);s&&"function"==typeof s.then&&s.then(i,o)}(e.eventSource.meta.bind(null,{start:n.toDate(e.range.start),end:n.toDate(e.range.end),startStr:n.formatIso(e.range.start),endStr:n.formatIso(e.range.end),timeZone:n.timeZone}),(function(e){t({rawEvents:e})}),r)}}]});function br(e,t,r,n,i){var o=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+wr(t)}(t,r):o=wr(r);var s=new XMLHttpRequest;s.open(e,t,!0),"GET"!==e&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){if(s.status>=200&&s.status<400)try{var e=JSON.parse(s.responseText);n(e,s)}catch(e){i("Failure parsing JSON",s)}else i("Request failed",s)},s.onerror=function(){i("Request failed",s)},s.send(o)}function wr(e){var t=[];for(var r in e)t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t.join("&")}var Dr=yr({eventSourceDefs:[{parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,r){var n=e.eventSource.meta,i=function(e,t,r){var n,i,o,s,a=r.dateEnv,l={};n=e.startParam,null==n&&(n=r.opt("startParam"));i=e.endParam,null==i&&(i=r.opt("endParam"));o=e.timeZoneParam,null==o&&(o=r.opt("timeZoneParam"));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Te(l,s),l[n]=a.formatIso(t.start),l[i]=a.formatIso(t.end),"local"!==a.timeZone&&(l[o]=a.timeZone);return l}(n,e.range,e.calendar);br(n.method,n.url,i,(function(e,r){t({rawEvents:e,xhr:r})}),(function(e,t){r({message:e,xhr:t})}))}}]});var Tr=yr({recurringTypes:[{parse:function(e,t,r){var n,i,o=r.createMarker.bind(r),s=me(e,{daysOfWeek:null,startTime:X,endTime:X,startRecur:o,endRecur:o},{},t),a=!1;for(var l in s)if(null!=s[l]){a=!0;break}if(a){var u=null;return"duration"in t&&(u=X(t.duration),delete t.duration),!u&&s.startTime&&s.endTime&&(n=s.endTime,i=s.startTime,u={years:n.years-i.years,months:n.months-i.months,days:n.days-i.days,milliseconds:n.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!s.startTime&&!s.endTime),duration:u,typeData:s}}return null},expand:function(e,t,r){var n=Ae(t,{start:e.startRecur,end:e.endRecur});return n?function(e,t,r,n){var i=e?Pe(e):null,o=B(r.start),s=r.end,a=[];for(;o<s;){var l=void 0;i&&!i[o.getUTCDay()]||(l=t?n.add(o,t):o,a.push(l)),o=H(o,1)}return a}(e.daysOfWeek,e.startTime,n,r):[]}}]});var Cr=yr({optionChangeHandlers:{events:function(e,t,r){Rr([e],t,r)},eventSources:Rr,plugins:function(e,t){t.addPluginInputs(e)}}});function Rr(e,t,r){for(var n=_e(t.state.eventSources),i=[],o=0,s=e;o<s.length;o++){for(var a=s[o],l=!1,u=0;u<n.length;u++)if(r(n[u]._raw,a)){n.splice(u,1),l=!0;break}l||i.push(a)}for(var c=0,d=n;c<d.length;c++){var h=d[c];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:h.sourceId})}for(var f=0,p=i;f<p.length;f++){var v=p[f];t.addEventSource(v)}}var kr={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},Ir={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"}},xr=["header","footer","buttonText","buttonIcons"];var Pr=[Sr,Er,Dr,Tr,Cr];var _r={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"};function Mr(e){for(var t=e.length>0?e[0].code:"en",r=window.FullCalendarLocalesAll||[],n=window.FullCalendarLocales||{},i=r.concat(_e(n),e),o={en:_r},s=0,a=i;s<a.length;s++){var l=a[s];o[l.code]=l}return{map:o,defaultCode:t}}function Or(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var r=[].concat(e||[]),n=function(e,t){for(var r=0;r<e.length;r++)for(var n=e[r].toLocaleLowerCase().split("-"),i=n.length;i>0;i--){var o=n.slice(0,i).join("-");if(t[o])return t[o]}return null}(r,t)||_r;return Hr(e,r,n)}(e,t):Hr(e.code,[e.code],e)}function Hr(e,t,r){var n=ke([_r,r],["buttonText"]);delete n.code;var i=n.week;return delete n.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:n}}var Nr=function(){function e(e){this.overrides=Te({},e),this.dynamicOverrides={},this.compute()}return e.prototype.mutate=function(e,t,r){if(Object.keys(e).length||t.length){var n=r?this.dynamicOverrides:this.overrides;Te(n,e);for(var i=0,o=t;i<o.length;i++){delete n[o[i]]}this.compute()}},e.prototype.compute=function(){var e=ge(this.dynamicOverrides.locales,this.overrides.locales,kr.locales),t=ge(this.dynamicOverrides.locale,this.overrides.locale,kr.locale),r=Mr(e),n=Or(t||r.defaultCode,r.map).options,i="rtl"===ge(this.dynamicOverrides.dir,this.overrides.dir,n.dir)?Ir:{};this.dirDefaults=i,this.localeDefaults=n,this.computed=ke([kr,i,n,this.overrides,this.dynamicOverrides],xr)},e}(),Lr={};var zr,Br=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return j(e)},e.prototype.markerToArray=function(e){return F(e)},e}();zr=Br,Lr["gregory"]=zr;var Ur=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var Gr=function(){function e(e){var t=this.timeZone=e.timeZone,r="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new Lr[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):j(V(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=j(e)),null!==t&&W(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=Ur.exec(e);if(t){var r=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(W(r)){var n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:r,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;var r=t.marker,n=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-60*t.timeZoneOffset*1e3):n=t.timeZoneOffset),{marker:r,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:n}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[0]+=t.years,r[1]+=t.months,r[2]+=t.days,r[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(r)},e.prototype.subtract=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[0]-=t.years,r[1]-=t.months,r[2]-=t.days,r[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(r)},e.prototype.addYears=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[0]+=t,this.calendarSystem.arrayToMarker(r)},e.prototype.addMonths=function(e,t){var r=this.calendarSystem.markerToArray(e);return r[1]+=t,this.calendarSystem.arrayToMarker(r)},e.prototype.diffWholeYears=function(e,t){var r=this.calendarSystem;return Z(e)===Z(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)&&r.getMarkerMonth(e)===r.getMarkerMonth(t)?r.getMarkerYear(t)-r.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var r=this.calendarSystem;return Z(e)===Z(t)&&r.getMarkerDay(e)===r.getMarkerDay(t)?r.getMarkerMonth(t)-r.getMarkerMonth(e)+12*(r.getMarkerYear(t)-r.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var r=this.diffWholeYears(e,t);return null!==r?{unit:"year",value:r}:null!==(r=this.diffWholeMonths(e,t))?{unit:"month",value:r}:(r=function(e,t){var r=z(e,t);return null!==r&&r%7==0?r/7:null}(e,t),null!==r?{unit:"week",value:r}:null!==(r=z(e,t))?{unit:"day",value:r}:(r=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),pe(r)?{unit:"hour",value:r}:(r=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),pe(r)?{unit:"minute",value:r}:(r=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),pe(r)?{unit:"second",value:r}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))},e.prototype.countDurationsBetween=function(e,t,r){var n;return r.years&&null!==(n=this.diffWholeYears(e,t))?n/(ee(r)/365):r.months&&null!==(n=this.diffWholeMonths(e,t))?n/function(e){return ee(e)/30}(r):r.days&&null!==(n=z(e,t))?n/ee(r):(t.valueOf()-e.valueOf())/te(r)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?B(e):"hour"===t?function(e){return j([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return j([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return j([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):void 0},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,r){var n=e.getUTCFullYear(),i=U(e,n,t,r);if(i<1)return U(e,n-1,t,r);var o=U(e,n+1,t,r);return o>=1?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,r){return void 0===r&&(r={}),t.format({marker:e,timeZoneOffset:null!=r.forcedTzo?r.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,r,n){return void 0===n&&(n={}),n.isEndExclusive&&(t=N(t,-1)),r.formatRange({marker:e,timeZoneOffset:null!=n.forcedStartTzo?n.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=n.forcedEndTzo?n.forcedEndTzo:this.offsetForMarker(t)},this)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var r=null;return t.omitTimeZoneOffset||(r=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,r){void 0===r&&(r=!1);var n=e.toISOString();return n=n.replace(".000",""),r&&(n=n.replace("T00:00:00Z","")),n.length>10&&(null==t?n=n.replace("Z",""):0!==t&&(n=n.replace("Z",at(t,!0)))),n}(e,r,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?j(V(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?j(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-A(F(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(F(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?A(F(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(F(e))*60):new Date(e.valueOf()-(t||0))},e}(),Vr={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},Ar=0;function Fr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function jr(e,t){for(var r=t.pluginSystem.hooks.eventSourceDefs,n=r.length-1;n>=0;n--){var i=r[n].parseMeta(e);if(i){var o=Wr("object"==typeof e?e:{},i,n,t);return o._raw=e,o}}return null}function Wr(e,t,r,n){var i={},o=me(e,Vr,{},i),s={},a=Bt(i,n,s);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(Ar++),o.sourceDefId=r,o.meta=t,o.ui=a,o.extendedProps=s,o}function Zr(e,t,r,n){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,r,n){for(var i={},o=0,s=t;o<s.length;o++){var a=s[o];i[a.sourceId]=a}r&&(i=Yr(i,r,n));return Te({},e,i)}(e,t.sources,r?r.activeRange:null,n);case"REMOVE_EVENT_SOURCE":return i=e,o=t.sourceId,Ie(i,(function(e){return e.sourceId!==o}));case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?Yr(e,r.activeRange,n):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return Xr(e,t.sourceIds?Pe(t.sourceIds):function(e,t){return Ie(e,(function(e){return Fr(e,t)}))}(e,n),r?r.activeRange:null,n);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,r,n){var i,o=e[t];if(o&&r===o.latestFetchId)return Te({},e,((i={})[t]=Te({},o,{isFetching:!1,fetchRange:n}),i));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var i,o}var qr=0;function Yr(e,t,r){return Xr(e,Ie(e,(function(e){return function(e,t,r){return Fr(e,r)?!r.opt("lazyFetching")||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,r)})),t,r)}function Xr(e,t,r,n){var i={};for(var o in e){var s=e[o];t[o]?i[o]=Kr(s,r,n):i[o]=s}return i}function Kr(e,t,r){var n=r.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],i=String(qr++);return n.fetch({eventSource:e,calendar:r,range:t},(function(n){var o,s,a=n.rawEvents,l=r.opt("eventSourceSuccess");e.success&&(s=e.success(a,n.xhr)),l&&(o=l(a,n.xhr)),a=s||o||a,r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:a})}),(function(n){var o=r.opt("eventSourceFailure");console.warn(n.message,n),e.failure&&e.failure(n),o&&o(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:n})})),Te({},e,{isFetching:!0,latestFetchId:i})}var Jr=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var r=this.dateEnv,n=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(n,-1)},e.prototype.buildNext=function(e,t){var r=this.dateEnv,n=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(n,1)},e.prototype.build=function(e,t,r){var n;void 0===r&&(r=!1);var i,o,s,a,l,u,c,d,h;return n=this.buildValidRange(),n=this.trimHiddenDays(n),r&&(d=e,e=null!=(h=n).start&&d<h.start?h.start:null!=h.end&&d>=h.end?new Date(h.end.valueOf()-1):d),s=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),u=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(u=Ae(u,s.range)),i=X(this.options.minTime),o=X(this.options.maxTime),u=Ae(u=this.adjustActiveRange(u,i,o),n),c=je(s.range,n),{validRange:n,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:u,renderRange:l,minTime:i,maxTime:o,isValid:c,dateIncrement:this.buildDateIncrement(s.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var r,n=this.viewSpec,i=this.dateEnv,o=null,s=null,a=null;return n.duration?(o=n.duration,s=n.durationUnit,a=this.buildRangeFromDuration(e,t,o,s)):(r=this.options.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,t,r)):(a=this.buildCustomVisibleRange(e))?s=i.greatestWholeUnit(a.start,a.end).unit:(s=ne(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,s)),{duration:o,unit:s,range:a}},e.prototype.getFallbackDuration=function(){return X({day:1})},e.prototype.adjustActiveRange=function(e,t,r){var n=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(ee(t)<0&&(i=B(i),i=n.add(i,t)),ee(r)>1&&(o=H(o=B(o),-1),o=n.add(o,r))),{start:i,end:o}},e.prototype.buildRangeFromDuration=function(e,t,r,n){var i,o,s,a,l,u=this.dateEnv,c=this.options.dateAlignment;function d(){s=u.startOf(e,c),a=u.add(s,r),l={start:s,end:a}}return c||((i=this.options.dateIncrement)?(o=X(i),c=te(o)<te(r)?ne(o,!J(i)).unit:n):c=n),ee(r)<=1&&this.isHiddenDay(s)&&(s=B(s=this.skipHiddenDays(s,t))),d(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),d()),l},e.prototype.buildRangeFromDayCount=function(e,t,r){var n,i=this.dateEnv,o=this.options.dateAlignment,s=0,a=e;o&&(a=i.startOf(a,o)),a=B(a),n=a=this.skipHiddenDays(a,t);do{n=H(n,1),this.isHiddenDay(n)||s++}while(s<r);return{start:a,end:n}},e.prototype.buildCustomVisibleRange=function(e){var t=this.dateEnv,r=this.getRangeOption("visibleRange",t.toDate(e));return!r||null!=r.start&&null!=r.end?r:null},e.prototype.buildRenderRange=function(e,t,r){return e},e.prototype.buildDateIncrement=function(e){var t,r=this.options.dateIncrement;return r?X(r):(t=this.options.dateAlignment)?X(1,t):e||X({days:1})},e.prototype.getRangeOption=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n,i,o,s,a=this.options[e];return"function"==typeof a&&(a=a.apply(null,t)),a&&(n=a,i=this.dateEnv,o=null,s=null,n.start&&(o=i.createMarker(n.start)),n.end&&(s=i.createMarker(n.end)),a=o||s?o&&s&&s<o?null:{start:o,end:s}:null),a&&(a=Ee(a)),a},e.prototype.initHiddenDays=function(){var e,t=this.options.hiddenDays||[],r=[],n=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(r[e]=-1!==t.indexOf(e))||n++;if(!n)throw new Error("invalid hiddenDays");this.isHiddenDayHash=r},e.prototype.trimHiddenDays=function(e){var t=e.start,r=e.end;return t&&(t=this.skipHiddenDays(t)),r&&(r=this.skipHiddenDays(r,-1,!0)),null==t||null==r||t<r?{start:t,end:r}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,r){for(void 0===t&&(t=1),void 0===r&&(r=!1);this.isHiddenDayHash[(e.getUTCDay()+(r?t:0)+7)%7];)e=H(e,t);return e},e}();function Qr(e,t,r){for(var n=function(e,t){if("SET_VIEW_TYPE"===t.type)return t.viewType;return e}(e.viewType,t),i=function(e,t,r,n,i){var o;switch(t.type){case"PREV":o=i.dateProfileGenerators[n].buildPrev(e,r);break;case"NEXT":o=i.dateProfileGenerators[n].buildNext(e,r);break;case"SET_DATE":e.activeRange&&Ze(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[n].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var s=i.dateProfileGenerators[n];if(!s)throw new Error(n?'The FullCalendar view "'+n+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=s.build(t.dateMarker||r,void 0,!0)}return!o||!o.isValid||e&&(a=e,l=o,Fe(a.validRange,l.validRange)&&Fe(a.activeRange,l.activeRange)&&Fe(a.renderRange,l.renderRange)&&Q(a.minTime,l.minTime)&&Q(a.maxTime,l.maxTime))?e:o;var a,l}(e.dateProfile,t,e.currentDate,n,r),o=Zr(e.eventSources,t,i,r),s=Te({},e,{viewType:n,dateProfile:i,currentDate:$r(e.currentDate,t,i),eventSources:o,eventStore:Ct(e.eventStore,t,o,i,r),dateSelection:en(e.dateSelection,t,r),eventSelection:tn(e.eventSelection,t),eventDrag:rn(e.eventDrag,t,o,r),eventResize:nn(e.eventResize,t,o,r),eventSourceLoadingLevel:on(o),loadingLevel:on(o)}),a=0,l=r.pluginSystem.hooks.reducers;a<l.length;a++){s=(0,l[a])(s,t,r)}return s}function $r(e,t,r){switch(t.type){case"PREV":case"NEXT":return Ze(r.currentRange,e)?e:r.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var n=t.dateMarker||e;return r.activeRange&&!Ze(r.activeRange,n)?r.currentRange.start:n;default:return e}}function en(e,t,r){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return e}}function tn(e,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return e}}function rn(e,t,r,n){switch(t.type){case"SET_EVENT_DRAG":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_DRAG":return null;default:return e}}function nn(e,t,r,n){switch(t.type){case"SET_EVENT_RESIZE":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return e}}function on(e){var t=0;for(var r in e)e[r].isFetching&&t++;return t}var sn={start:null,end:null,allDay:Boolean};function an(e,t,r){var n=function(e,t){var r={},n=me(e,sn,{},r),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,s=n.allDay;null==s&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));return r.range={start:i?i.marker:null,end:o?o.marker:null},r.allDay=s,r}(e,t),i=n.range;if(!i.start)return null;if(!i.end){if(null==r)return null;i.end=t.add(i.start,r)}return n}function ln(e,t,r,n){if(t[e])return t[e];var i=function(e,t,r,n){var i=r[e],o=n[e],s=function(e){return i&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null},a=s("class"),l=s("superType");!l&&a&&(l=un(a,n)||un(a,r));var u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=ln(l,t,r,n)}!a&&u&&(a=u.class);if(!a)return null;return{type:e,class:a,defaults:Te({},u?u.defaults:{},i?i.options:{}),overrides:Te({},u?u.overrides:{},o?o.options:{})}}(e,t,r,n);return i&&(t[e]=i),i}function un(e,t){var r=Object.getPrototypeOf(e.prototype);for(var n in t){var i=t[n];if(i.class&&i.class.prototype===r)return n}return""}function cn(e){return xe(e,hn)}var dn={type:String,class:null};function hn(e){"function"==typeof e&&(e={class:e});var t={},r=me(e,dn,{},t);return{superType:r.type,class:r.class,options:t}}function fn(e,t){var r=cn(e),n=cn(t.overrides.views),i=function(e,t){var r,n={};for(r in e)ln(r,n,e,t);for(r in t)ln(r,n,e,t);return n}(r,n);return xe(i,(function(e){return function(e,t,r){var n=e.overrides.duration||e.defaults.duration||r.dynamicOverrides.duration||r.overrides.duration,i=null,o="",s="",a={};if(n&&(i=X(n))){var l=ne(i,!J(n));o=l.unit,1===l.value&&(s=o,a=t[o]?t[o].options:{})}var u=function(t){var r=t.buttonText||{},n=e.defaults.buttonTextKey;return null!=n&&null!=r[n]?r[n]:null!=r[e.type]?r[e.type]:null!=r[s]?r[s]:void 0};return{type:e.type,class:e.class,duration:i,durationUnit:o,singleUnit:s,options:Te({},kr,e.defaults,r.dirDefaults,r.localeDefaults,r.overrides,a,e.overrides,r.dynamicOverrides),buttonTextOverride:u(r.dynamicOverrides)||u(r.overrides)||e.overrides.buttonText,buttonTextDefault:u(r.localeDefaults)||u(r.dirDefaults)||e.defaults.buttonText||u(kr)||e.type}}(e,n,t)}))}var pn=function(e){function t(t){var r=e.call(this)||this;return r._renderLayout=Jt(r.renderLayout,r.unrenderLayout),r._updateTitle=Jt(r.updateTitle,null,[r._renderLayout]),r._updateActiveButton=Jt(r.updateActiveButton,null,[r._renderLayout]),r._updateToday=Jt(r.updateToday,null,[r._renderLayout]),r._updatePrev=Jt(r.updatePrev,null,[r._renderLayout]),r._updateNext=Jt(r.updateNext,null,[r._renderLayout]),r.el=o("div",{className:"fc-toolbar "+t}),r}return De(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._renderLayout.unrender(),f(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){var t=this.el;this.viewsWithButtons=[],u(t,this.renderSection("left",e.left)),u(t,this.renderSection("center",e.center)),u(t,this.renderSection("right",e.right))},t.prototype.unrenderLayout=function(){this.el.innerHTML=""},t.prototype.renderSection=function(e,t){var r=this,n=this.context,i=n.theme,a=n.calendar,l=a.optionsManager,c=a.viewSpecs,d=o("div",{className:"fc-"+e}),h=l.computed.customButtons||{},f=l.overrides.buttonText||{},p=l.computed.buttonText||{};return t&&t.split(" ").forEach((function(e,t){var n,o=[],l=!0;if(e.split(",").forEach((function(e,t){var n,u,d,v,g,y,m,S,E;"title"===e?(o.push(s("<h2>&nbsp;</h2>")),l=!1):((n=h[e])?(d=function(e){n.click&&n.click.call(S,e)},(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(e))||(g=n.text)):(u=c[e])?(r.viewsWithButtons.push(e),d=function(){a.changeView(e)},(g=u.buttonTextOverride)||(v=i.getIconClass(e))||(g=u.buttonTextDefault)):a[e]&&(d=function(){a[e]()},(g=f[e])||(v=i.getIconClass(e))||(g=p[e])),d&&(m=["fc-"+e+"-button",i.getClass("button")],g?(y=Ht(g),E=""):v&&(y="<span class='"+v+"'></span>",E=' aria-label="'+e+'"'),(S=s('<button type="button" class="'+m.join(" ")+'"'+E+">"+y+"</button>")).addEventListener("click",d),o.push(S)))})),o.length>1){n=document.createElement("div");var v=i.getClass("buttonGroup");l&&v&&n.classList.add(v),u(n,o),d.appendChild(n)}else u(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){m(this.el,"h2").forEach((function(t){t.innerText=e}))},t.prototype.updateActiveButton=function(e){var t=this.context.theme.getClass("buttonActive");m(this.el,"button").forEach((function(r){e&&r.classList.contains("fc-"+e+"-button")?r.classList.add(t):r.classList.remove(t)}))},t.prototype.toggleButtonEnabled=function(e,t){m(this.el,".fc-"+e+"-button").forEach((function(e){e.disabled=!t}))},t}(pr),vn=function(e){function t(t){var r=e.call(this)||this;return r.elClassNames=[],r.renderSkeleton=Jt(r._renderSkeleton,r._unrenderSkeleton),r.renderToolbars=Jt(r._renderToolbars,r._unrenderToolbars,[r.renderSkeleton]),r.buildComponentContext=Ye(yn),r.buildViewPropTransformers=Ye(mn),r.el=t,r.computeTitle=Ye(gn),r.parseBusinessHours=Ye((function(e){return Kt(e,r.context.calendar)})),r}return De(t,e),t.prototype.render=function(e,t){this.freezeHeight();var r=this.computeTitle(e.dateProfile,e.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,r),this.renderView(e,r),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),c(this.el,this.contentEl=o("div",{className:"fc-view-container"}));for(var t=e.calendar,r=0,n=t.pluginSystem.hooks.viewContainerModifiers;r<n.length;r++){(0,n[r])(this.contentEl,t)}},t.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),f(this.contentEl),this.removeElClassNames()},t.prototype.removeElClassNames=function(){for(var e=this.el.classList,t=0,r=this.elClassNames;t<r.length;t++){var n=r[t];e.remove(n)}this.elClassNames=[]},t.prototype.updateElClassNames=function(e){this.removeElClassNames();var t=e.theme,r=e.options;this.elClassNames=["fc","fc-"+r.dir,t.getClass("widget")];for(var n=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){var s=o[i];n.add(s)}},t.prototype._renderToolbars=function(e,t,r,n){var i=this,o=i.context,s=i.header,a=i.footer,l=o.options,d=o.calendar,h=l.header,f=l.footer,p=this.props.dateProfileGenerator,v=d.getNow(),g=p.build(v),y=p.buildPrev(t,r),m=p.buildNext(t,r),S={title:n,activeButton:e.type,isTodayEnabled:g.isValid&&!Ze(t.currentRange,v),isPrevEnabled:y.isValid,isNextEnabled:m.isValid};h?(s||(s=this.header=new pn("fc-header-toolbar"),c(this.el,s.el)),s.receiveProps(Te({layout:h},S),o)):s&&(s.destroy(),s=this.header=null),f?(a||(a=this.footer=new pn("fc-footer-toolbar"),u(this.el,a.el)),a.receiveProps(Te({layout:f},S),o)):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){var r=this.view,n=this.context,i=n.calendar,o=n.options,s=e.viewSpec,a=e.dateProfileGenerator;r&&r.viewSpec===s||(r&&r.destroy(),r=this.view=new s.class(s,this.contentEl),this.savedScroll&&(r.addScroll(this.savedScroll,!0),this.savedScroll=null)),r.title=t;for(var l={dateProfileGenerator:a,dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(s.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},u=0,c=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers);u<c.length;u++){var d=c[u];Te(l,d.transform(l,s,e,o))}r.receiveProps(l,this.buildComponentContext(this.context,s,r))},t.prototype.updateSize=function(e){void 0===e&&(e=!1);var t=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(){var e=this.context.calendar,t=e.opt("height"),r=e.opt("contentHeight");if(this.isHeightAuto="auto"===t||"auto"===r,"number"==typeof r)this.viewHeight=r;else if("function"==typeof r)this.viewHeight=r();else if("number"==typeof t)this.viewHeight=t-this.queryToolbarsHeight();else if("function"==typeof t)this.viewHeight=t()-this.queryToolbarsHeight();else if("parent"===t){var n=this.el.parentNode;this.viewHeight=n.getBoundingClientRect().height-this.queryToolbarsHeight()}else this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(e.opt("aspectRatio"),.5))},t.prototype.queryToolbarsHeight=function(){var e=0;return this.header&&(e+=I(this.header.el)),this.footer&&(e+=I(this.footer.el)),e},t.prototype.freezeHeight=function(){b(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},t.prototype.thawHeight=function(){b(this.el,{height:"",overflow:""})},t}(pr);function gn(e,t){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,this.context.dateEnv.formatRange(r.start,r.end,st(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var r=z(e.currentRange.start,e.currentRange.end);return null!==r&&r>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function yn(e,t,r){return e.extend(t.options,r)}function mn(e){return e.map((function(e){return new e}))}var Sn=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();var En={},bn=function(e){function t(t){var r=e.call(this,t)||this;r.handleSegClick=function(e,t){var n=r.component,i=n.context,o=i.calendar,s=i.view,a=vt(t);if(a&&n.isValidSegDownEl(e.target)){var l=g(e.target,".fc-has-url"),u=l?l.querySelector("a[href]").href:"";o.publiclyTrigger("eventClick",[{el:t,event:new dt(n.context.calendar,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:s}]),u&&!e.defaultPrevented&&(window.location.href=u)}};var n=t.component;return r.destroy=_(n.el,"click",n.fgSegSelector+","+n.bgSegSelector,r.handleSegClick),r}return De(t,e),t}(Sn),wn=function(e){function t(t){var r=e.call(this,t)||this;r.handleEventElRemove=function(e){e===r.currentSegEl&&r.handleSegLeave(null,r.currentSegEl)},r.handleSegEnter=function(e,t){vt(t)&&(t.classList.add("fc-allow-mouse-resize"),r.currentSegEl=t,r.triggerEvent("eventMouseEnter",e,t))},r.handleSegLeave=function(e,t){r.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),r.currentSegEl=null,r.triggerEvent("eventMouseLeave",e,t))};var n,i,o,s,a,l=t.component;return r.removeHoverListeners=(n=l.el,i=l.fgSegSelector+","+l.bgSegSelector,o=r.handleSegEnter,s=r.handleSegLeave,_(n,"mouseover",i,(function(e,t){if(t!==a){a=t,o(e,t);var r=function(e){a=null,s(e,t),t.removeEventListener("mouseleave",r)};t.addEventListener("mouseleave",r)}}))),l.context.calendar.on("eventElRemove",r.handleEventElRemove),r}return De(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,r){var n=this.component,i=n.context,o=i.calendar,s=i.view,a=vt(r);t&&!n.isValidSegDownEl(t.target)||o.publiclyTrigger(e,[{el:r,event:new dt(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:s}])},t}(Sn),Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t}(dr);Dn.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Dn.prototype.baseIconClass="fc-icon",Dn.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Dn.prototype.iconOverrideOption="buttonIcons",Dn.prototype.iconOverrideCustomButtonOption="icon",Dn.prototype.iconOverridePrefix="fc-icon-";var Tn=function(){function e(e,t){var r,n,i,o=this;this.buildComponentContext=Ye(Cn),this.parseRawLocales=Ye(Mr),this.buildLocale=Ye(Or),this.buildDateEnv=Ye(Rn),this.buildTheme=Ye(kn),this.buildEventUiSingleBase=Ye(this._buildEventUiSingleBase),this.buildSelectionConfig=Ye(this._buildSelectionConfig),this.buildEventUiBySource=(r=xn,n=Me,i=null,function(){var e=r.apply(this,arguments);return(null===i||i!==e&&!n(i,e))&&(i=e),i}),this.buildEventUiBases=Ye(Pn),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=Ye(In),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new Nr(t||{}),this.pluginSystem=new mr,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map((function(e){return new e(o)}))}return e.prototype.addPluginInputs=function(e){for(var t=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];if("string"==typeof i){var o="FullCalendar"+he(i);window[o]?t.push(window[o].default):console.warn("Plugin file not loaded for "+i)}else t.push(i)}return Pr.concat(t)}(e),r=0,n=t;r<n.length;r++){var i=n[r];this.pluginSystem.add(i)}},Object.defineProperty(e.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){this.component?this.requestRerender():(this.component=new vn(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(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.publiclyTrigger("_destroyed")}},e.prototype.bindHandlers=function(){var e=this;this.removeNavLinkListener=_(this.el,"click","a[data-goto]",(function(t,r){var n=r.getAttribute("data-goto");n=n?JSON.parse(n):{};var i=e.dateEnv,o=i.createMarker(n.date),s=n.type,a=e.viewOpt("navLink"+he(s)+"Click");"function"==typeof a?a(i.toDate(o),t):("string"==typeof a&&(s=a),e.zoomTo(o,s))})),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=ye(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(){var e=this;this.state=this.buildInitialState();var t=this.opt("eventSources")||[],r=this.opt("events"),n=[];r&&t.unshift(r);for(var i=0,o=t;i<o.length;i++){var s=jr(o[i],this);s&&n.push(s)}this.batchRendering((function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:n}),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(var t=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var r=this.state;this.isReducing=!1,!t.loadingLevel&&r.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!r.loadingLevel&&this.publiclyTrigger("loading",[!1]);var n=this.component&&this.component.view;t.eventStore!==r.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==r.dateProfile&&(t.dateProfile&&n&&this.publiclyTrigger("datesDestroy",[{view:n,el:n.el}]),this.isDatesUpdated=!0),t.viewType!==r.viewType&&(t.viewType&&n&&this.publiclyTrigger("viewSkeletonDestroy",[{view:n,el:n.el}]),this.isViewUpdated=!0),this.requestRerender()}},e.prototype.reduce=function(e,t,r){return Qr(e,t,r)},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(){var e=this.state,t=this.component,r=e.viewType,n=this.viewSpecs[r];if(!n)throw new Error('View type "'+r+'" is not valid');var i=this.renderableEventStore=e.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:e.eventStore,o=this.buildEventUiSingleBase(n.options),s=this.buildEventUiBySource(e.eventSources),a=this.eventUiBases=this.buildEventUiBases(i.defs,o,s);t.receiveProps(Te({},e,{viewSpec:n,dateProfileGenerator:this.dateProfileGenerators[r],dateProfile:e.dateProfile,eventStore:i,eventUiBases:a,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){var r;this.mutateOptions(((r={})[e]=t,r),[],!0)},e.prototype.getOption=function(e){return this.optionsManager.computed[e]},e.prototype.opt=function(e){return this.optionsManager.computed[e]},e.prototype.viewOpt=function(e){return this.viewOpts()[e]},e.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},e.prototype.mutateOptions=function(e,t,r,n){var i=this,o=this.pluginSystem.hooks.optionChangeHandlers,s={},a={},l=this.dateEnv,u=!1,c=!1,d=Boolean(t.length);for(var h in e)o[h]?a[h]=e[h]:s[h]=e[h];for(var f in s)/^(height|contentHeight|aspectRatio)$/.test(f)?c=!0:/^(defaultDate|defaultView)$/.test(f)||(d=!0,"timeZone"===f&&(u=!0));this.optionsManager.mutate(s,t,r),d&&this.handleOptions(this.optionsManager.computed),this.batchRendering((function(){if(d?(u&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:l}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):c&&i.updateSize(),n)for(var e in a)o[e](a[e],i,n)}))},e.prototype.handleOptions=function(e){var t=this,r=this.pluginSystem.hooks;this.defaultAllDayEventDuration=X(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=X(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);var n=this.parseRawLocales(e.locales);this.availableRawLocales=n.map;var i=this.buildLocale(e.locale||n.defaultCode,n.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,r.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,r.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=fn(r.views,this.optionsManager),this.dateProfileGenerators=xe(this.viewSpecs,(function(e){return new e.class.prototype.dateProfileGeneratorClass(e,t)}))},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},e.prototype._buildSelectionConfig=function(e){return Ut("select",e,this)},e.prototype._buildEventUiSingleBase=function(e){return e.editable&&(e=Te({},e,{eventEditable:!0})),Ut("event",e,this)},e.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},e.prototype.publiclyTrigger=function(e,t){var r=this.opt(e);if(this.triggerWith(e,this,t),r)return r.apply(this,t)},e.prototype.publiclyTriggerAfterSizing=function(e,t){var r=this.afterSizingTriggers;(r[e]||(r[e]=[])).push(t)},e.prototype.releaseAfterSizingTriggers=function(){var e=this.afterSizingTriggers;for(var t in e)for(var r=0,n=e[t];r<n.length;r++){var i=n[r];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},e.prototype.isValidViewType=function(e){return Boolean(this.viewSpecs[e])},e.prototype.changeView=function(e,t){var r=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):r=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:r})},e.prototype.zoomTo=function(e,t){var r;t=t||"day",r=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),r?this.dispatch({type:"SET_VIEW_TYPE",viewType:r.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,r,n=this.component,i=[];for(var o in n.header&&i.push.apply(i,n.header.viewsWithButtons),n.footer&&i.push.apply(i,n.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(t=0;t<i.length;t++)if((r=this.viewSpecs[i[t]])&&r.singleUnit===e)return r},e.prototype.getInitialDate=function(){var e=this.opt("defaultDate");return null!=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){var t=X(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},e.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},e.prototype.formatDate=function(e,t){var r=this.dateEnv;return r.format(r.createMarker(e),st(t))},e.prototype.formatRange=function(e,t,r){var n=this.dateEnv;return n.formatRange(n.createMarker(e),n.createMarker(t),st(r,this.opt("defaultRangeSeparator")),r)},e.prototype.formatIso=function(e,t){var r=this.dateEnv;return r.formatIso(r.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){var r=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}(e,t),n=[bn,wn].concat(this.pluginSystem.hooks.componentInteractions).map((function(e){return new e(r)}));this.interactionsStore[e.uid]=n,En[e.uid]=r},e.prototype.unregisterInteractiveComponent=function(e){for(var t=0,r=this.interactionsStore[e.uid];t<r.length;t++){r[t].destroy()}delete this.interactionsStore[e.uid],delete En[e.uid]},e.prototype.select=function(e,t){var r=an(null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t},this.dateEnv,X({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),this.triggerDateSelect(r))},e.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},e.prototype.triggerDateSelect=function(e,t){var r=Te({},this.buildDateSpanApi(e),{jsEvent:t?t.origEvent:null,view:this.view});this.publiclyTrigger("select",[r])},e.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},e.prototype.triggerDateClick=function(e,t,r,n){var i=Te({},this.buildDatePointApi(e),{dayEl:t,jsEvent:n,view:r});this.publiclyTrigger("dateClick",[i])},e.prototype.buildDatePointApi=function(e){for(var t,r,n={},i=0,o=this.pluginSystem.hooks.datePointTransforms;i<o.length;i++){var s=o[i];Te(n,s(e,this))}return Te(n,(t=e,{date:(r=this.dateEnv).toDate(t.range.start),dateStr:r.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay})),n},e.prototype.buildDateSpanApi=function(e){for(var t,r,n={},i=0,o=this.pluginSystem.hooks.dateSpanTransforms;i<o.length;i++){var s=o[i];Te(n,s(e,this))}return Te(n,(t=e,{start:(r=this.dateEnv).toDate(t.range.start),end:r.toDate(t.range.end),startStr:r.formatIso(t.range.start,{omitTime:t.allDay}),endStr:r.formatIso(t.range.end,{omitTime:t.allDay}),allDay:t.allDay})),n},e.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},e.prototype.getDefaultEventEnd=function(e,t){var r=t;return e?(r=B(r),r=this.dateEnv.add(r,this.defaultAllDayEventDuration)):r=this.dateEnv.add(r,this.defaultTimedEventDuration),r},e.prototype.addEvent=function(e,t){if(e instanceof dt){var r=e._def,n=e._instance;return this.state.eventStore.defs[r.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:He({def:r,instance:n})}),e}var i;if(t instanceof ct)i=t.internalEventSource.sourceId;else if(null!=t){var o=this.getEventSourceById(t);if(!o)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}var s=Zt(e,i,this);return s?(this.dispatch({type:"ADD_EVENTS",eventStore:He(s)}),new dt(this,s.def,s.def.recurringDef?null:s.instance)):null},e.prototype.getEventById=function(e){var t=this.state.eventStore,r=t.defs,n=t.instances;for(var i in e=String(e),r){var o=r[i];if(o.publicId===e){if(o.recurringDef)return new dt(this,o,null);for(var s in n){var a=n[s];if(a.defId===o.defId)return new dt(this,o,a)}}}return null},e.prototype.getEvents=function(){var e=this.state.eventStore,t=e.defs,r=e.instances,n=[];for(var i in r){var o=r[i],s=t[o.defId];n.push(new dt(this,s,o))}return n},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},e.prototype.getEventSources=function(){var e=this.state.eventSources,t=[];for(var r in e)t.push(new ct(this,e[r]));return t},e.prototype.getEventSourceById=function(e){var t=this.state.eventSources;for(var r in e=String(e),t)if(t[r].publicId===e)return new ct(this,t[r]);return null},e.prototype.addEventSource=function(e){if(e instanceof ct)return this.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var t=jr(e,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new ct(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){var t=X(e);t&&this.component.view.scrollToDuration(t)},e}();function Cn(e,t,r){return new fr(this,e,t,r,null)}function Rn(e,t,r,n,i,o,s){return new Gr({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:r,locale:e,weekNumberCalculation:i,firstDay:n,weekLabel:o,cmdFormatter:s})}function kn(e){return new(this.pluginSystem.hooks.themeClasses[e.themeSystem]||Dn)(e)}function In(e){var t=this.tryRerender.bind(this);return null!=e&&(t=ye(t,e)),t}function xn(e){return xe(e,(function(e){return e.ui}))}function Pn(e,t,r){var n={"":t};for(var i in e){var o=e[i];o.sourceId&&r[o.sourceId]&&(n[i]=r[o.sourceId])}return n}ir.mixInto(Tn);var _n=function(e){function t(t,r){var n=e.call(this,o("div",{className:"fc-view fc-"+t.type+"-view"}))||this;return n.renderDatesMem=Jt(n.renderDatesWrap,n.unrenderDatesWrap),n.renderBusinessHoursMem=Jt(n.renderBusinessHours,n.unrenderBusinessHours,[n.renderDatesMem]),n.renderDateSelectionMem=Jt(n.renderDateSelectionWrap,n.unrenderDateSelectionWrap,[n.renderDatesMem]),n.renderEventsMem=Jt(n.renderEvents,n.unrenderEvents,[n.renderDatesMem]),n.renderEventSelectionMem=Jt(n.renderEventSelectionWrap,n.unrenderEventSelectionWrap,[n.renderEventsMem]),n.renderEventDragMem=Jt(n.renderEventDragWrap,n.unrenderEventDragWrap,[n.renderDatesMem]),n.renderEventResizeMem=Jt(n.renderEventResizeWrap,n.unrenderEventResizeWrap,[n.renderDatesMem]),n.viewSpec=t,n.type=t.type,r.appendChild(n.el),n.initialize(),n}return De(t,e),t.prototype.initialize=function(){},Object.defineProperty(t.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){return this.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,r){var n=this.context.calendar;e&&this.addScroll(this.queryScroll()),(e||n.isViewUpdated||n.isDatesUpdated||n.isEventsUpdated)&&this.updateBaseSize(e,t,r)},t.prototype.updateBaseSize=function(e,t,r){},t.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({duration:X(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){var r=this.props;return ht(e,r.eventUiBases,r.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){var r,n,i,o=this,s=this.context,a=s.calendar,l=s.dateEnv;s.options.nowIndicator&&!this.initialNowDate&&(r=this.getNowIndicatorUnit(e,t))&&(n=this.updateNowIndicator.bind(this),this.initialNowDate=a.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=l.add(l.startOf(this.initialNowDate,r),X(1,r)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout((function(){o.nowIndicatorTimeoutID=null,n(),i="second"===r?1e3:6e4,o.nowIndicatorIntervalID=setInterval(n,i)}),i))},t.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(N(this.initialNowDate,(new Date).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),Te(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(){var e={};return this.props.dateProfile&&Te(e,this.queryDateScroll()),e},t.prototype.applyScroll=function(e,t){var r=e.duration,n=e.isForced;null==r||n||(delete e.duration,this.props.dateProfile&&Te(e,this.computeDateScroll(r))),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}(vr);ir.mixInto(_n),_n.prototype.usesMinMaxTime=!1,_n.prototype.dateProfileGeneratorClass=Jr;var Mn=function(){function e(){this.segs=[],this.isSizeDirty=!1}return e.prototype.renderSegs=function(e,t,r){this.context=e,this.rangeUpdated(),t=this.renderSegEls(t,r),this.segs=t,this.attachSegs(t,r),this.isSizeDirty=!0,mt(this.context,this.segs,Boolean(r))},e.prototype.unrender=function(e,t,r){St(this.context,this.segs,Boolean(r)),this.detachSegs(this.segs),this.segs=[]},e.prototype.rangeUpdated=function(){var e,t,r=this.context.options;this.eventTimeFormat=st(r.eventTimeFormat||this.computeEventTimeFormat(),r.defaultRangeSeparator),null==(e=r.displayEventTime)&&(e=this.computeDisplayEventTime()),null==(t=r.displayEventEnd)&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},e.prototype.renderSegEls=function(e,t){var r,n="";if(e.length){for(r=0;r<e.length;r++)n+=this.renderSegHtml(e[r],t);a(n).forEach((function(t,r){var n=e[r];t&&(n.el=t)})),e=ft(this.context,e,Boolean(t))}return e},e.prototype.getSegClasses=function(e,t,r,n){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);return t&&i.push("fc-draggable"),r&&i.push("fc-resizable"),n&&(i.push("fc-mirror"),n.isDragging&&i.push("fc-dragging"),n.isResizing&&i.push("fc-resizing")),i},e.prototype.getTimeText=function(e,t,r){var n=e.def,i=e.instance;return this._getTimeText(i.range.start,n.hasEnd?i.range.end:null,n.allDay,t,r,i.forcedStartTzo,i.forcedEndTzo)},e.prototype._getTimeText=function(e,t,r,n,i,o,s){var a=this.context.dateEnv;return null==n&&(n=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!r?i&&t?a.formatRange(e,t,n,{forcedStartTzo:o,forcedEndTzo:s}):a.format(e,n,{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){var t=this.context.eventOrderSpecs,r=e.map(On);return r.sort((function(e,r){return ce(e,r,t)})),r.map((function(e){return e._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(var t=0,r=this.segs;t<r.length;t++){var n=r[t];e[n.eventRange.instance.instanceId]&&(n.el.style.visibility="hidden")}},e.prototype.showByHash=function(e){if(e)for(var t=0,r=this.segs;t<r.length;t++){var n=r[t];e[n.eventRange.instance.instanceId]&&(n.el.style.visibility="")}},e.prototype.selectByInstanceId=function(e){if(e)for(var t=0,r=this.segs;t<r.length;t++){var n=r[t],i=n.eventRange.instance;i&&i.instanceId===e&&n.el&&n.el.classList.add("fc-selected")}},e.prototype.unselectByInstanceId=function(e){if(e)for(var t=0,r=this.segs;t<r.length;t++){var n=r[t];n.el&&n.el.classList.remove("fc-selected")}},e}();function On(e){var t=e.eventRange.def,r=e.eventRange.instance.range,n=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Te({},t.extendedProps,t,{id:t.publicId,start:n,end:i,duration:i-n,allDay:Number(t.allDay),_seg:e})}var Hn=function(){function e(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}return e.prototype.getSegsByType=function(e){return this.segsByType[e]||[]},e.prototype.renderSegs=function(e,t,r){var n;this.context=t;var i=this.renderSegEls(e,r),o=this.attachSegs(e,i);o&&(n=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(n,o),this.segsByType[e]=i,"bgEvent"===e&&mt(t,i,!1),this.dirtySizeFlags[e]=!0},e.prototype.unrender=function(e,t){var r=this.segsByType[e];r&&("bgEvent"===e&&St(t,r,!1),this.detachSegs(e,r))},e.prototype.renderSegEls=function(e,t){var r,n=this,i="";if(t.length){for(r=0;r<t.length;r++)i+=this.renderSegHtml(e,t[r]);a(i).forEach((function(e,r){var n=t[r];e&&(n.el=e)})),"bgEvent"===e&&(t=ft(this.context,t,!1)),t=t.filter((function(e){return y(e.el,n.fillSegTag)}))}return t},e.prototype.renderSegHtml=function(e,t){var r=null,n=[];return"highlight"!==e&&"businessHours"!==e&&(r={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(n=n.concat(t.eventRange.ui.classNames)),"businessHours"===e?n.push("fc-bgevent"):n.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(n.length?' class="'+n.join(" ")+'"':"")+(r?' style="'+Nt(r)+'"':"")+"></"+this.fillSegTag+">"},e.prototype.detachSegs=function(e,t){var r=this.containerElsByType[e];r&&(r.forEach(f),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}();!function(){function e(e){this.emitter=new ir}e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){}}();Boolean;function Nn(e,t,r,n,i,o,s,a){var l,u=o.dateEnv,c=o.theme,d=o.options,h=Ze(t.activeRange,e),f=["fc-day-header",c.getClass("widgetHeader")];return l="function"==typeof d.columnHeaderHtml?d.columnHeaderHtml(u.toDate(e)):"function"==typeof d.columnHeaderText?Ht(d.columnHeaderText(u.toDate(e))):Ht(u.format(e,i)),r?f=f.concat(rr(e,t,o,!0)):f.push("fc-"+M[e.getUTCDay()]),'<th class="'+f.join(" ")+'"'+(h&&r?' data-date="'+u.formatIso(e,{omitTime:!0})+'"':"")+(s>1?' colspan="'+s+'"':"")+(a?" "+a:"")+">"+(h?tr(d,u,{date:e,forceOff:!r||1===n},l):l)+"</th>"}var Ln=function(e){function t(t){var r=e.call(this)||this;return r.renderSkeleton=Jt(r._renderSkeleton,r._unrenderSkeleton),r.parentEl=t,r}return De(t,e),t.prototype.render=function(e,t){var r=e.dates,n=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(var o=st(t.options.columnHeaderFormat||function(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}(n,r.length)),s=0,a=r;s<a.length;s++){var l=a[s];i.push(Nn(l,e.dateProfile,n,r.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){var t=e.theme,r=this.parentEl;r.innerHTML="",r.appendChild(this.el=s('<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(){f(this.el)},t}(pr),zn=function(){function e(e,t){for(var r=e.start,n=e.end,i=[],o=[],s=-1;r<n;)t.isHiddenDay(r)?i.push(s+.5):(s++,i.push(s),o.push(r)),r=H(r,1);this.dates=o,this.indices=i,this.cnt=o.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),r=this.getDateDayIndex(H(e.end,-1)),n=Math.max(0,t),i=Math.min(this.cnt-1,r);return(n=Math.ceil(n))<=(i=Math.floor(i))?{firstIndex:n,lastIndex:i,isStart:t===n,isEnd:r===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,r=Math.floor(L(this.dates[0],e));return r<0?t[0]-1:r>=t.length?t[t.length-1]+1:t[r]},e}(),Bn=function(){function e(e,t){var r,n,i,o=e.dates;if(t){for(n=o[0].getUTCDay(),r=1;r<o.length&&o[r].getUTCDay()!==n;r++);i=Math.ceil(o.length/r)}else i=1,r=o.length;this.rowCnt=i,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t++){for(var r=[],n=0;n<this.colCnt;n++)r.push(this.buildCell(t,n));e.push(r)}return e},e.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t++)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,r=this.daySeries.sliceRange(e),n=[];if(r)for(var i=r.firstIndex,o=r.lastIndex,s=i;s<=o;){var a=Math.floor(s/t),l=Math.min((a+1)*t,o+1);n.push({row:a,firstCol:s%t,lastCol:(l-1)%t,isStart:r.isStart&&s===i,isEnd:r.isEnd&&l-1===o}),s=l}return n},e}(),Un=function(){function e(){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)}return e.prototype.sliceProps=function(e,t,r,n,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];var a=e.eventUiBases,l=this.sliceEventStore.apply(this,[e.eventStore,a,t,r,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,a,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,r,n,i].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,a,t,r,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,a,t,r,i].concat(o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this._sliceDateSpan.apply(this,[{range:{start:e,end:N(e,1)},allDay:!1},{},t].concat(r))},e.prototype._sliceBusinessHours=function(e,t,r,n,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];return e?this._sliceEventStore.apply(this,[Ne(e,Gn(t,Boolean(r)),n),{},t,r,i].concat(o)).bg:[]},e.prototype._sliceEventStore=function(e,t,r,n,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(e){var a=ht(e,t,Gn(r,Boolean(n)),n);return{bg:this.sliceEventRanges(a.bg,i,o),fg:this.sliceEventRanges(a.fg,i,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,r,n,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(!e)return null;var a=ht(e.mutatedEvents,t,Gn(r,Boolean(n)),n);return{segs:this.sliceEventRanges(a.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},e.prototype._sliceDateSpan=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];if(!e)return[];for(var o=function(e,t,r){var n=qt({editable:!1},"",e.allDay,!0,r);return{def:n,ui:yt(n,t),instance:Yt(n.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e,t,r.context.calendar),s=this.sliceRange.apply(this,[e.range].concat(n)),a=0,l=s;a<l.length;a++){var u=l[a];u.component=r,u.eventRange=o}return s},e.prototype.sliceEventRanges=function(e,t,r){for(var n=[],i=0,o=e;i<o.length;i++){var s=o[i];n.push.apply(n,this.sliceEventRange(s,t,r))}return n},e.prototype.sliceEventRange=function(e,t,r){for(var n=this.sliceRange.apply(this,[e.range].concat(r)),i=0,o=n;i<o.length;i++){var s=o[i];s.component=t,s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return n},e}();function Gn(e,t){var r=e.activeRange;return t?r:{start:N(r.start,e.minTime.milliseconds),end:N(r.end,e.maxTime.milliseconds-864e5)}}var Vn=function(e,t){return Vn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Vn(e,t)};function An(e,t){function r(){this.constructor=e}Vn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Fn=function(){return Fn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fn.apply(this,arguments)},jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return An(t,e),t.prototype.buildRenderRange=function(t,r,n){var i,o=this.dateEnv,s=e.prototype.buildRenderRange.call(this,t,r,n),a=s.start,l=s.end;(/^(year|month)$/.test(r)&&(a=o.startOfWeek(a),(i=o.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=O(i,1))),this.options.monthMode&&this.options.fixedWeekCount)&&(l=O(l,6-Math.ceil(L(a,l)/7)));return{start:a,end:l}},t}(Jr),Wn=function(){function e(e){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(e){t.el&&!t.el.contains(e.target)&&t.hide()},this.options=e}return e.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},e.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},e.prototype.render=function(){var e=this,t=this.options,r=this.el=o("div",{className:"fc-popover "+(t.className||""),style:{top:"0",left:"0"}});"function"==typeof t.content&&t.content(r),t.parentEl.appendChild(r),_(r,"click",".fc-close",(function(t){e.hide()})),t.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},e.prototype.destroy=function(){this.hide(),this.el&&(f(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},e.prototype.position=function(){var e,t,r=this.options,n=this.el,i=n.getBoundingClientRect(),o=k(n.offsetParent),s=P(r.parentEl);e=r.top||0,t=void 0!==r.left?r.left:void 0!==r.right?r.right-i.width:0,e=Math.min(e,s.bottom-i.height-this.margin),e=Math.max(e,s.top+this.margin),t=Math.min(t,s.right-i.width-this.margin),t=Math.max(t,s.left+this.margin),b(n,{top:e-o.top,left:t-o.left})},e.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},e}(),Zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return An(t,e),t.prototype.renderSegHtml=function(e,t){var r,n,i=this.context,o=e.eventRange,s=o.def,a=o.ui,l=s.allDay,u=Et(i,s,a),c=l&&e.isStart&&bt(i,0,a),d=l&&e.isEnd&&wt(0,0,a),h=this.getSegClasses(e,u,c||d,t),f=Nt(this.getSkinCss(a)),p="";return h.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(r=this.getTimeText(o))&&(p='<span class="fc-time">'+Ht(r)+"</span>"),n='<span class="fc-title">'+(Ht(s.title||"")||"&nbsp;")+"</span>",'<a class="'+h.join(" ")+'"'+(s.url?' href="'+Ht(s.url)+'"':"")+(f?' style="'+f+'"':"")+'><div class="fc-content">'+("rtl"===i.options.dir?n+" "+p:p+" "+n)+"</div>"+(c?'<div class="fc-resizer fc-start-resizer"></div>':"")+(d?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},t.prototype.computeDisplayEventEnd=function(){return!1},t}(Mn),qn=function(e){function t(t){var r=e.call(this)||this;return r.dayGrid=t,r}return An(t,e),t.prototype.attachSegs=function(e,t){var r=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach((function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(r[t].tbodyEl)})),t||this.dayGrid.removeSegPopover()},t.prototype.detachSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)f(e.tbodyEl);this.rowStructs=null},t.prototype.renderSegRows=function(e){var t,r,n=[];for(t=this.groupSegRows(e),r=0;r<t.length;r++)n.push(this.renderSegRow(r,t[r]));return n},t.prototype.renderSegRow=function(e,t){var r,n,i,s,a,l,d,h=this.context.isRtl,f=this.dayGrid,p=f.colCnt,v=this.buildSegLevels(t),g=Math.max(1,v.length),y=document.createElement("tbody"),m=[],S=[],E=[];function b(e){for(;i<e;)(d=(E[r-1]||[])[i])?d.rowSpan=(d.rowSpan||1)+1:(d=document.createElement("td"),s.appendChild(d)),S[r][i]=d,E[r][i]=d,i++}for(r=0;r<g;r++){if(n=v[r],i=0,s=document.createElement("tr"),m.push([]),S.push([]),E.push([]),n)for(a=0;a<n.length;a++){l=n[a];var w=h?p-1-l.lastCol:l.firstCol,D=h?p-1-l.firstCol:l.lastCol;for(b(w),d=o("td",{className:"fc-event-container"},l.el),w!==D?d.colSpan=D-w+1:E[r][i]=d;i<=D;)S[r][i]=d,m[r][i]=l,i++;s.appendChild(d)}b(p);var T=f.renderProps.renderIntroHtml();T&&(h?u(s,T):c(s,T)),y.appendChild(s)}return{row:e,tbodyEl:y,cellMatrix:S,segMatrix:m,segLevels:v,segs:t}},t.prototype.buildSegLevels=function(e){var t,r,n,i=this.context.isRtl,o=this.dayGrid.colCnt,s=[];for(e=this.sortEventSegs(e),t=0;t<e.length;t++){for(r=e[t],n=0;n<s.length&&Yn(r,s[n]);n++);r.level=n,r.leftCol=i?o-1-r.lastCol:r.firstCol,r.rightCol=i?o-1-r.firstCol:r.lastCol,(s[n]||(s[n]=[])).push(r)}for(n=0;n<s.length;n++)s[n].sort(Xn);return s},t.prototype.groupSegRows=function(e){var t,r=[];for(t=0;t<this.dayGrid.rowCnt;t++)r.push([]);for(t=0;t<e.length;t++)r[e[t].row].push(e[t]);return r},t.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},t}(Zn);function Yn(e,t){var r,n;for(r=0;r<t.length;r++)if((n=t[r]).firstCol<=e.lastCol&&n.lastCol>=e.firstCol)return!0;return!1}function Xn(e,t){return e.leftCol-t.leftCol}var Kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return An(t,e),t.prototype.attachSegs=function(e,t){var r=t.sourceSeg,n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach((function(e,t){var i,o,a=s('<div class="fc-mirror-skeleton"><table></table></div>');r&&r.row===t?i=r.el:(i=e.querySelector(".fc-content-skeleton tbody"))||(i=e.querySelector(".fc-content-skeleton table")),o=i.getBoundingClientRect().top-e.getBoundingClientRect().top,a.style.top=o+"px",a.querySelector("table").appendChild(n[t].tbodyEl),e.appendChild(a)}))},t}(qn),Jn='<td style="pointer-events:none"></td>',Qn=function(e){function t(t){var r=e.call(this)||this;return r.fillSegTag="td",r.dayGrid=t,r}return An(t,e),t.prototype.renderSegs=function(t,r,n){"bgEvent"===t&&(n=n.filter((function(e){return e.eventRange.def.allDay}))),e.prototype.renderSegs.call(this,t,r,n)},t.prototype.attachSegs=function(e,t){var r,n,i,o=[];for(r=0;r<t.length;r++)n=t[r],i=this.renderFillRow(e,n),this.dayGrid.rowEls[n.row].appendChild(i),o.push(i);return o},t.prototype.renderFillRow=function(e,t){var r,n,i=this.dayGrid,o=this.context.isRtl,a=i.colCnt,l=o?a-1-t.lastCol:t.firstCol,d=(o?a-1-t.firstCol:t.lastCol)+1;n=(r=s('<div class="fc-'+("businessHours"===e?"bgevent":e.toLowerCase())+'-skeleton"><table><tr></tr></table></div>')).getElementsByTagName("tr")[0],l>0&&u(n,new Array(l+1).join(Jn)),t.el.colSpan=d-l,n.appendChild(t.el),d<a&&u(n,new Array(a-d+1).join(Jn));var h=i.renderProps.renderIntroHtml();return h&&(o?u(n,h):c(n,h)),r},t}(Hn),$n=function(e){function t(t){var r=e.call(this,t)||this,n=r.eventRenderer=new ei(r),i=r.renderFrame=Jt(r._renderFrame);return r.renderFgEvents=Jt(n.renderSegs.bind(n),n.unrender.bind(n),[i]),r.renderEventSelection=Jt(n.selectByInstanceId.bind(n),n.unselectByInstanceId.bind(n),[r.renderFgEvents]),r.renderEventDrag=Jt(n.hideByHash.bind(n),n.showByHash.bind(n),[i]),r.renderEventResize=Jt(n.hideByHash.bind(n),n.showByHash.bind(n),[i]),r}return An(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},t.prototype.render=function(e,t){this.renderFrame(e.date),this.renderFgEvents(t,e.fgSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDragInstances),this.renderEventResize(e.eventResizeInstances)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype._renderFrame=function(e){var t=this.context,r=t.theme,n=t.dateEnv,i=t.options,o=n.format(e,st(i.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+r.getClass("popoverHeader")+'"><span class="fc-title">'+Ht(o)+'</span><span class="fc-close '+r.getIconClass("close")+'"></span></div><div class="fc-body '+r.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},t.prototype.queryHit=function(e,t,r,n){var i=this.props.date;if(e<r&&t<n)return{component:this,dateSpan:{allDay:!0,range:{start:i,end:H(i,1)}},dayEl:this.el,rect:{left:0,top:0,right:r,bottom:n},layer:1}},t}(vr),ei=function(e){function t(t){var r=e.call(this)||this;return r.dayTile=t,r}return An(t,e),t.prototype.attachSegs=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.dayTile.segContainerEl.appendChild(n.el)}},t.prototype.detachSegs=function(e){for(var t=0,r=e;t<r.length;t++){f(r[t].el)}},t}(Zn),ti=function(){function e(e){this.context=e}return e.prototype.renderHtml=function(e){var t=[];e.renderIntroHtml&&t.push(e.renderIntroHtml());for(var r=0,n=e.cells;r<n.length;r++){var i=n[r];t.push(ri(i.date,e.dateProfile,this.context,i.htmlAttrs))}return e.cells.length||t.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"></td>'),"rtl"===this.context.options.dir&&t.reverse(),"<tr>"+t.join("")+"</tr>"},e}();function ri(e,t,r,n){var i=r.dateEnv,o=r.theme,s=Ze(t.activeRange,e),a=rr(e,t,r);return a.unshift("fc-day",o.getClass("widgetContent")),'<td class="'+a.join(" ")+'"'+(s?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+(n?" "+n:"")+"></td>"}var ni=st({day:"numeric"}),ii=st({week:"numeric"}),oi=function(e){function t(t,r){var n=e.call(this,t)||this;n.bottomCoordPadding=0,n.isCellSizesDirty=!1,n.renderProps=r;var i=n.eventRenderer=new qn(n),o=n.fillRenderer=new Qn(n);n.mirrorRenderer=new Kn(n);var s=n.renderCells=Jt(n._renderCells,n._unrenderCells);return n.renderBusinessHours=Jt(o.renderSegs.bind(o,"businessHours"),o.unrender.bind(o,"businessHours"),[s]),n.renderDateSelection=Jt(o.renderSegs.bind(o,"highlight"),o.unrender.bind(o,"highlight"),[s]),n.renderBgEvents=Jt(o.renderSegs.bind(o,"bgEvent"),o.unrender.bind(o,"bgEvent"),[s]),n.renderFgEvents=Jt(i.renderSegs.bind(i),i.unrender.bind(i),[s]),n.renderEventSelection=Jt(i.selectByInstanceId.bind(i),i.unselectByInstanceId.bind(i),[n.renderFgEvents]),n.renderEventDrag=Jt(n._renderEventDrag,n._unrenderEventDrag,[s]),n.renderEventResize=Jt(n._renderEventResize,n._unrenderEventResize,[s]),n}return An(t,e),t.prototype.render=function(e,t){var r=e.cells;this.rowCnt=r.length,this.colCnt=r[0].length,this.renderCells(r,e.isRigid),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(t,e.dateSelectionSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderCells.unrender()},t.prototype.getCellRange=function(e,t){var r=this.props.cells[e][t].date;return{start:r,end:H(r,1)}},t.prototype.updateSegPopoverTile=function(e,t){var r=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:r.eventSelection,eventDragInstances:r.eventDrag?r.eventDrag.affectedInstances:null,eventResizeInstances:r.eventResize?r.eventResize.affectedInstances:null},this.context)},t.prototype._renderCells=function(e,t){var r,n,i=this.context,o=i.calendar,s=i.view,a=i.isRtl,l=i.dateEnv,u=this.rowCnt,c=this.colCnt,d="";for(r=0;r<u;r++)d+=this.renderDayRowHtml(r,t);for(this.el.innerHTML=d,this.rowEls=m(this.el,".fc-row"),this.cellEls=m(this.el,".fc-day, .fc-disabled-day"),a&&this.cellEls.reverse(),this.rowPositions=new ar(this.el,this.rowEls,!1,!0),this.colPositions=new ar(this.el,this.cellEls.slice(0,c),!0,!1),r=0;r<u;r++)for(n=0;n<c;n++)o.publiclyTrigger("dayRender",[{date:l.toDate(e[r][n].date),el:this.getCellEl(r,n),view:s}]);this.isCellSizesDirty=!0},t.prototype._unrenderCells=function(){this.removeSegPopover()},t.prototype.renderDayRowHtml=function(e,t){var r=this.context.theme,n=["fc-row","fc-week",r.getClass("dayRow")];t&&n.push("fc-rigid");var i=new ti(this.context);return'<div class="'+n.join(" ")+'"><div class="fc-bg"><table class="'+r.getClass("tableGrid")+'">'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(e){var t=this.context.isRtl,r=this.renderProps.renderNumberIntroHtml(e,this);return"<tr>"+(t?"":r)+this.renderNumberCellsHtml(e)+(t?r:"")+"</tr>"},t.prototype.renderNumberCellsHtml=function(e){var t,r,n=[];for(t=0;t<this.colCnt;t++)r=this.props.cells[e][t].date,n.push(this.renderNumberCellHtml(r));return this.context.isRtl&&n.reverse(),n.join("")},t.prototype.renderNumberCellHtml=function(e){var t,r,n=this.context,i=n.dateEnv,o=n.options,s="",a=Ze(this.props.dateProfile.activeRange,e),l=this.getIsDayNumbersVisible()&&a;return l||this.renderProps.cellWeekNumbersVisible?((t=rr(e,this.props.dateProfile,this.context)).unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(r=i.weekDow),s+='<td class="'+t.join(" ")+'"'+(a?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===r&&(s+=tr(o,i,{date:e,type:"week"},{class:"fc-week-number"},i.format(e,ii))),l&&(s+=tr(o,i,e,{class:"fc-day-number"},i.format(e,ni))),s+="</td>"):"<td></td>"},t.prototype.updateSize=function(e){var t=this.context.calendar,r=this,n=r.fillRenderer,i=r.eventRenderer,o=r.mirrorRenderer;(e||this.isCellSizesDirty||t.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),n.computeSizes(e),i.computeSizes(e),o.computeSizes(e),n.assignSizes(e),i.assignSizes(e),o.assignSizes(e)},t.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},t.prototype.buildColPositions=function(){this.colPositions.build()},t.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.positionToHit=function(e,t){var r=this.colPositions,n=this.rowPositions,i=r.leftToIndex(e),o=n.topToIndex(t);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:r.lefts[i],right:r.rights[i],top:n.tops[o],bottom:n.bottoms[o]}}},t.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},t.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs))},t.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},t.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(e){var t,r,n=this.eventRenderer.rowStructs||[];for(t=0;t<n.length;t++)this.unlimitRow(t),!1!==(r=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,r)},t.prototype.computeRowLevelLimit=function(e){var t,r,n=this.rowEls[e].getBoundingClientRect().bottom,i=S(this.eventRenderer.rowStructs[e].tbodyEl);for(t=0;t<i.length;t++)if((r=i[t]).classList.remove("fc-limited"),r.getBoundingClientRect().bottom>n)return t;return!1},t.prototype.limitRow=function(e,t){var r,n,i,s,a,l,u,c,h,f,p,v,g,y,m,E=this,b=this.colCnt,w=this.context.isRtl,D=this.eventRenderer.rowStructs[e],T=[],C=0,R=function(r){for(;C<r;)(l=E.getCellSegs(e,C,t)).length&&(h=n[t-1][C],m=E.renderMoreLink(e,C,l),y=o("div",null,m),h.appendChild(y),T.push(y)),C++};if(t&&t<D.segLevels.length){for(r=D.segLevels[t-1],n=D.cellMatrix,(i=S(D.tbodyEl).slice(t)).forEach((function(e){e.classList.add("fc-limited")})),s=0;s<r.length;s++){a=r[s];var k=w?b-1-a.lastCol:a.firstCol,I=w?b-1-a.firstCol:a.lastCol;for(R(k),c=[],u=0;C<=I;)l=this.getCellSegs(e,C,t),c.push(l),u+=l.length,C++;if(u){for(f=(h=n[t-1][k]).rowSpan||1,p=[],v=0;v<c.length;v++)g=o("td",{className:"fc-more-cell",rowSpan:f}),l=c[v],m=this.renderMoreLink(e,k+v,[a].concat(l)),y=o("div",null,m),g.appendChild(y),p.push(g),T.push(g);h.classList.add("fc-limited"),d(h,p),i.push(h)}}R(this.colCnt),D.moreEls=T,D.limitedEls=i}},t.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.forEach(f),t.moreEls=null),t.limitedEls&&(t.limitedEls.forEach((function(e){e.classList.remove("fc-limited")})),t.limitedEls=null)},t.prototype.renderMoreLink=function(e,t,r){var n=this,i=this.context,s=i.calendar,a=i.view,l=i.dateEnv,u=i.options,c=i.isRtl,d=o("a",{className:"fc-more"});return d.innerText=this.getMoreLinkText(r.length),d.addEventListener("click",(function(i){var o=u.eventLimitClick,d=c?n.colCnt-t-1:t,h=n.props.cells[e][d].date,f=i.currentTarget,p=n.getCellEl(e,t),v=n.getCellSegs(e,t),g=n.resliceDaySegs(v,h),y=n.resliceDaySegs(r,h);"function"==typeof o&&(o=s.publiclyTrigger("eventLimitClick",[{date:l.toDate(h),allDay:!0,dayEl:p,moreEl:f,segs:g,hiddenSegs:y,jsEvent:i,view:a}])),"popover"===o?n.showSegPopover(e,t,f,g):"string"==typeof o&&s.zoomTo(h,o)})),d},t.prototype.showSegPopover=function(e,t,r,n){var i,o,s=this,a=this.context,l=a.calendar,u=a.view,c=a.theme,d=a.isRtl,h=d?this.colCnt-t-1:t,f=r.parentNode;i=1===this.rowCnt?u.el:this.rowEls[e],o={className:"fc-more-popover "+c.getClass("popover"),parentEl:u.el,top:k(i).top,autoHide:!0,content:function(t){s.segPopoverTile=new $n(t),s.updateSegPopoverTile(s.props.cells[e][h].date,n)},hide:function(){s.segPopoverTile.destroy(),s.segPopoverTile=null,s.segPopover.destroy(),s.segPopover=null}},d?o.right=k(f).right+1:o.left=k(f).left-1,this.segPopover=new Wn(o),this.segPopover.show(),l.releaseAfterSizingTriggers()},t.prototype.resliceDaySegs=function(e,t){for(var r={start:t,end:H(t,1)},n=[],i=0,o=e;i<o.length;i++){var s=o[i],a=s.eventRange,l=a.range,u=Ae(l,r);u&&n.push(Fn({},s,{eventRange:{def:a.def,ui:Fn({},a.ui,{durationEditable:!1}),instance:a.instance,range:u},isStart:s.isStart&&u.start.valueOf()===l.start.valueOf(),isEnd:s.isEnd&&u.end.valueOf()===l.end.valueOf()}))}return n},t.prototype.getMoreLinkText=function(e){var t=this.context.options.eventLimitText;return"function"==typeof t?t(e):"+"+e+" "+t},t.prototype.getCellSegs=function(e,t,r){for(var n,i=this.eventRenderer.rowStructs[e].segMatrix,o=r||0,s=[];o<i.length;)(n=i[o][t])&&s.push(n),o++;return s},t}(vr),si=st({week:"numeric"}),ai=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processOptions=Ye(t._processOptions),t.renderSkeleton=Jt(t._renderSkeleton,t._unrenderSkeleton),t.renderHeadIntroHtml=function(){var e=t.context,r=e.theme,n=e.options;return t.colWeekNumbersVisible?'<th class="fc-week-number '+r.getClass("widgetHeader")+'" '+t.weekNumberStyleAttr()+"><span>"+Ht(n.weekLabel)+"</span></th>":""},t.renderDayGridNumberIntroHtml=function(e,r){var n=t.context,i=n.options,o=n.dateEnv,s=r.props.cells[e][0].date;return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+tr(i,o,{date:s,type:"week",forceOff:1===r.colCnt},o.format(s,si))+"</td>":""},t.renderDayGridBgIntroHtml=function(){var e=t.context.theme;return t.colWeekNumbersVisible?'<td class="fc-week-number '+e.getClass("widgetContent")+'" '+t.weekNumberStyleAttr()+"></td>":""},t.renderDayGridIntroHtml=function(){return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""},t}return An(t,e),t.prototype._processOptions=function(e){e.weekNumbers?e.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},t.prototype.render=function(t,r){e.prototype.render.call(this,t,r),this.processOptions(r.options),this.renderSkeleton(r)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new cr("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-day-grid-container");var r=o("div",{className:"fc-day-grid"});t.appendChild(r),this.dayGrid=new oi(r,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},t.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,r=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(r.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},t.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var e=this.context.options.eventLimit;return e&&"number"!=typeof e},t.prototype.updateSize=function(t,r,n){e.prototype.updateSize.call(this,t,r,n),this.dayGrid.updateSize(t)},t.prototype.updateBaseSize=function(e,t,r){var n,i,o=this.dayGrid,s=this.context.options.eventLimit,a=this.header?this.header.el:null;o.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=le(m(this.el,".fc-week-number"))),this.scroller.clear(),a&&oe(a),o.removeSegPopover(),s&&"number"==typeof s&&o.limitRows(s),n=this.computeScrollerHeight(t),this.setGridHeight(n,r),s&&"number"!=typeof s&&o.limitRows(s),r||(this.scroller.setHeight(n),((i=this.scroller.getScrollbarWidths()).left||i.right)&&(a&&ie(a,i),n=this.computeScrollerHeight(t),this.scroller.setHeight(n)),this.scroller.lockOverflow(i))):r||(n=this.computeScrollerHeight(t),this.scroller.setHeight(n))},t.prototype.computeScrollerHeight=function(e){return e-ue(this.el,this.scroller.el)},t.prototype.setGridHeight=function(e,t){this.context.options.monthMode?(t&&(e*=this.dayGrid.rowCnt/6),se(this.dayGrid.rowEls,e,!t)):t?ae(this.dayGrid.rowEls):se(this.dayGrid.rowEls,e,!0)},t.prototype.computeDateScroll=function(e){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t}(_n);ai.prototype.dateProfileGeneratorClass=jn;var li=function(e){function t(t){var r=e.call(this,t.el)||this;return r.slicer=new ui,r.dayGrid=t,r}return An(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype.render=function(e,t){var r=this.dayGrid,n=e.dateProfile,i=e.dayTable;r.receiveContext(t),r.receiveProps(Fn({},this.slicer.sliceProps(e,n,e.nextDayThreshold,t.calendar,r,i),{dateProfile:n,cells:i.cells,isRigid:e.isRigid}),t)},t.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},t.prototype.queryHit=function(e,t){var r=this.dayGrid.positionToHit(e,t);if(r)return{component:this.dayGrid,dateSpan:r.dateSpan,dayEl:r.dayEl,rect:{left:r.relativeRect.left,right:r.relativeRect.right,top:r.relativeRect.top,bottom:r.relativeRect.bottom},layer:0}},t}(vr),ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return An(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Un);function ci(e,t){var r=new zn(e.renderRange,t);return new Bn(r,/year|month|week/.test(e.currentRangeUnit))}const di=yr({defaultView:"dayGridMonth",views:{dayGrid:function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTable=Ye(ci),t}return An(t,e),t.prototype.render=function(t,r){e.prototype.render.call(this,t,r);var n=this.props.dateProfile,i=this.dayTable=this.buildDayTable(n,t.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:n,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},r),this.simpleDayGrid.receiveProps({dateProfile:n,dayTable:i,businessHours:t.businessHours,dateSelection:t.dateSelection,eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},r)},t.prototype._renderSkeleton=function(t){e.prototype._renderSkeleton.call(this,t),t.options.columnHeader&&(this.header=new Ln(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new li(this.dayGrid)},t.prototype._unrenderSkeleton=function(){e.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},t}(ai),dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});var hi=function(e,t){return hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},hi(e,t)};function fi(e,t){function r(){this.constructor=e}hi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var pi=function(){return pi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pi.apply(this,arguments)},vi=function(e){function t(t){var r=e.call(this)||this;return r.timeGrid=t,r}return fi(t,e),t.prototype.renderSegs=function(t,r,n){e.prototype.renderSegs.call(this,t,r,n),this.fullTimeFormat=st({hour:"numeric",minute:"2-digit",separator:this.context.options.defaultRangeSeparator})},t.prototype.attachSegs=function(e,t){for(var r=this.timeGrid.groupSegsByCol(e),n=0;n<r.length;n++)r[n]=this.sortEventSegs(r[n]);this.segsByCol=r,this.timeGrid.attachSegsByCol(r,this.timeGrid.fgContainerEls)},t.prototype.detachSegs=function(e){e.forEach((function(e){f(e.el)})),this.segsByCol=null},t.prototype.computeSegSizes=function(e){var t=this.timeGrid,r=this.segsByCol,n=t.colCnt;if(t.computeSegVerticals(e),r)for(var i=0;i<n;i++)this.computeSegHorizontals(r[i])},t.prototype.assignSegSizes=function(e){var t=this.timeGrid,r=this.segsByCol,n=t.colCnt;if(t.assignSegVerticals(e),r)for(var i=0;i<n;i++)this.assignSegCss(r[i])},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:!1}},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.renderSegHtml=function(e,t){var r,n,i,o,s,a=e.eventRange,l=a.def,u=a.ui,c=l.allDay,d=Et(this.context,l,u),h=e.isStart&&bt(this.context,0,u),f=e.isEnd&&wt(this.context,0,u),p=this.getSegClasses(e,d,h||f,t),v=Nt(this.getSkinCss(u));if(p.unshift("fc-time-grid-event"),o=a.range,L((s=Ee(o)).start,s.end)>1){if(e.isStart||e.isEnd){var g=e.start,y=e.end;r=this._getTimeText(g,y,c),n=this._getTimeText(g,y,c,this.fullTimeFormat),i=this._getTimeText(g,y,c,null,!1)}}else r=this.getTimeText(a),n=this.getTimeText(a,this.fullTimeFormat),i=this.getTimeText(a,null,!1);return'<a class="'+p.join(" ")+'"'+(l.url?' href="'+Ht(l.url)+'"':"")+(v?' style="'+v+'"':"")+'><div class="fc-content">'+(r?'<div class="fc-time" data-start="'+Ht(i)+'" data-full="'+Ht(n)+'"><span>'+Ht(r)+"</span></div>":"")+(l.title?'<div class="fc-title">'+Ht(l.title)+"</div>":"")+"</div>"+(f?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},t.prototype.computeSegHorizontals=function(e){var t,r,n;if(t=function(e){var t,r,n,i=[];for(t=0;t<e.length;t++){for(r=e[t],n=0;n<i.length&&yi(r,i[n]).length;n++);r.level=n,(i[n]||(i[n]=[])).push(r)}return i}(e),function(e){var t,r,n,i,o;for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for((i=r[n]).forwardSegs=[],o=t+1;o<e.length;o++)yi(i,e[o],i.forwardSegs)}(t),r=t[0]){for(n=0;n<r.length;n++)gi(r[n]);for(n=0;n<r.length;n++)this.computeSegForwardBack(r[n],0,0)}},t.prototype.computeSegForwardBack=function(e,t,r){var n,i=e.forwardSegs;if(void 0===e.forwardCoord)for(i.length?(this.sortForwardSegs(i),this.computeSegForwardBack(i[0],t+1,r),e.forwardCoord=i[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-r)/(t+1),n=0;n<i.length;n++)this.computeSegForwardBack(i[n],0,e.forwardCoord)},t.prototype.sortForwardSegs=function(e){var t=e.map(mi),r=[{field:"forwardPressure",order:-1},{field:"backwardCoord",order:1}].concat(this.context.eventOrderSpecs);return t.sort((function(e,t){return ce(e,t,r)})),t.map((function(e){return e._seg}))},t.prototype.assignSegCss=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];b(n.el,this.generateSegCss(n)),n.level>0&&n.el.classList.add("fc-time-grid-event-inset"),n.eventRange.def.title&&n.bottom-n.top<30&&n.el.classList.add("fc-short")}},t.prototype.generateSegCss=function(e){var t,r,n=this.context.options.slotEventOverlap,i=e.backwardCoord,o=e.forwardCoord,s=this.timeGrid.generateSegVerticalCss(e),a=this.context.isRtl;return n&&(o=Math.min(1,i+2*(o-i))),a?(t=1-o,r=i):(t=i,r=1-o),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*r+"%",n&&e.forwardPressure&&(s[a?"marginLeft":"marginRight"]=20),s},t}(Mn);function gi(e){var t,r,n=e.forwardSegs,i=0;if(void 0===e.forwardPressure){for(t=0;t<n.length;t++)gi(r=n[t]),i=Math.max(i,1+r.forwardPressure);e.forwardPressure=i}}function yi(e,t,r){void 0===r&&(r=[]);for(var n=0;n<t.length;n++)i=e,o=t[n],i.bottom>o.top&&i.top<o.bottom&&r.push(t[n]);var i,o;return r}function mi(e){var t=On(e);return t.forwardPressure=e.forwardPressure,t.backwardCoord=e.backwardCoord,t}var Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.attachSegs=function(e,t){this.segsByCol=this.timeGrid.groupSegsByCol(e),this.timeGrid.attachSegsByCol(this.segsByCol,this.timeGrid.mirrorContainerEls),this.sourceSeg=t.sourceSeg},t.prototype.generateSegCss=function(t){var r=e.prototype.generateSegCss.call(this,t),n=this.sourceSeg;if(n&&n.col===t.col){var i=e.prototype.generateSegCss.call(this,n);r.left=i.left,r.right=i.right,r.marginLeft=i.marginLeft,r.marginRight=i.marginRight}return r},t}(vi),Ei=function(e){function t(t){var r=e.call(this)||this;return r.timeGrid=t,r}return fi(t,e),t.prototype.attachSegs=function(e,t){var r,n=this.timeGrid;return"bgEvent"===e?r=n.bgContainerEls:"businessHours"===e?r=n.businessContainerEls:"highlight"===e&&(r=n.highlightContainerEls),n.attachSegsByCol(n.groupSegsByCol(t),r),t.map((function(e){return e.el}))},t.prototype.computeSegSizes=function(e){this.timeGrid.computeSegVerticals(e)},t.prototype.assignSegSizes=function(e){this.timeGrid.assignSegVerticals(e)},t}(Hn),bi=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],wi=function(e){function t(t,r){var n=e.call(this,t)||this;n.isSlatSizesDirty=!1,n.isColSizesDirty=!1,n.processOptions=Ye(n._processOptions),n.renderSkeleton=Jt(n._renderSkeleton),n.renderSlats=Jt(n._renderSlats,null,[n.renderSkeleton]),n.renderColumns=Jt(n._renderColumns,n._unrenderColumns,[n.renderSkeleton]),n.renderProps=r;var i=n.renderColumns,o=n.eventRenderer=new vi(n),s=n.fillRenderer=new Ei(n);return n.mirrorRenderer=new Si(n),n.renderBusinessHours=Jt(s.renderSegs.bind(s,"businessHours"),s.unrender.bind(s,"businessHours"),[i]),n.renderDateSelection=Jt(n._renderDateSelection,n._unrenderDateSelection,[i]),n.renderFgEvents=Jt(o.renderSegs.bind(o),o.unrender.bind(o),[i]),n.renderBgEvents=Jt(s.renderSegs.bind(s,"bgEvent"),s.unrender.bind(s,"bgEvent"),[i]),n.renderEventSelection=Jt(o.selectByInstanceId.bind(o),o.unselectByInstanceId.bind(o),[n.renderFgEvents]),n.renderEventDrag=Jt(n._renderEventDrag,n._unrenderEventDrag,[i]),n.renderEventResize=Jt(n._renderEventResize,n._unrenderEventResize,[i]),n}return fi(t,e),t.prototype._processOptions=function(e){var t,r,n=e.slotDuration,i=e.snapDuration;null===(t=re(n=X(n),i=i?X(i):n))&&(i=n,t=1),this.slotDuration=n,this.snapDuration=i,this.snapsPerSlot=t,r=e.slotLabelFormat,Array.isArray(r)&&(r=r[r.length-1]),this.labelFormat=st(r||{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),r=e.slotLabelInterval,this.labelInterval=r?X(r):this.computeLabelInterval(n)},t.prototype.computeLabelInterval=function(e){var t,r,n;for(t=bi.length-1;t>=0;t--)if(null!==(n=re(r=X(bi[t]),e))&&n>1)return r;return e},t.prototype.render=function(e,t){this.processOptions(t.options);var r=e.cells;this.colCnt=r.length,this.renderSkeleton(t.theme),this.renderSlats(e.dateProfile),this.renderColumns(e.cells,e.dateProfile),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender(),this.renderSkeleton.unrender()},t.prototype.updateSize=function(e){var t=this,r=t.fillRenderer,n=t.eventRenderer,i=t.mirrorRenderer;(e||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(e||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),r.computeSizes(e),n.computeSizes(e),i.computeSizes(e),r.assignSizes(e),n.assignSizes(e),i.assignSizes(e)},t.prototype._renderSkeleton=function(e){var t=this.el;t.innerHTML='<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+e.getClass("widgetHeader")+'" style="display:none" />',this.rootBgContainerEl=t.querySelector(".fc-bg"),this.slatContainerEl=t.querySelector(".fc-slats"),this.bottomRuleEl=t.querySelector(".fc-divider")},t.prototype._renderSlats=function(e){var t=this.context.theme;this.slatContainerEl.innerHTML='<table class="'+t.getClass("tableGrid")+'">'+this.renderSlatRowHtml(e)+"</table>",this.slatEls=m(this.slatContainerEl,"tr"),this.slatPositions=new ar(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},t.prototype.renderSlatRowHtml=function(e){for(var t,r,n,i,o=this.context,s=o.dateEnv,a=o.theme,l=o.isRtl,u="",c=B(e.renderRange.start),d=e.minTime,h=X(0);te(d)<te(e.maxTime);)t=s.add(c,d),r=null!==re(h,this.labelInterval),n='<td class="fc-axis fc-time '+a.getClass("widgetContent")+'">'+(r?"<span>"+Ht(s.format(t,this.labelFormat))+"</span>":"")+"</td>",u+='<tr data-time="'+(fe((i=t).getUTCHours(),2)+":"+fe(i.getUTCMinutes(),2)+":"+fe(i.getUTCSeconds(),2)+'"')+(r?"":' class="fc-minor"')+">"+(l?"":n)+'<td class="'+a.getClass("widgetContent")+'"></td>'+(l?n:"")+"</tr>",d=$(d,this.slotDuration),h=$(h,this.slotDuration);return u},t.prototype._renderColumns=function(e,t){var r=this.context,n=r.calendar,i=r.view,o=r.isRtl,s=r.theme,a=r.dateEnv,l=new ti(this.context);this.rootBgContainerEl.innerHTML='<table class="'+s.getClass("tableGrid")+'">'+l.renderHtml({cells:e,dateProfile:t,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"</table>",this.colEls=m(this.el,".fc-day, .fc-disabled-day");for(var u=0;u<this.colCnt;u++)n.publiclyTrigger("dayRender",[{date:a.toDate(e[u].date),el:this.colEls[u],view:i}]);o&&this.colEls.reverse(),this.colPositions=new ar(this.el,this.colEls,!0,!1),this.renderContentSkeleton(),this.isColSizesDirty=!0},t.prototype._unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){var e,t=this.context.isRtl,r=[];r.push(this.renderProps.renderIntroHtml());for(var n=0;n<this.colCnt;n++)r.push('<td><div class="fc-content-col"><div class="fc-event-container fc-mirror-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>');t&&r.reverse(),e=this.contentSkeletonEl=s('<div class="fc-content-skeleton"><table><tr>'+r.join("")+"</tr></table></div>"),this.colContainerEls=m(e,".fc-content-col"),this.mirrorContainerEls=m(e,".fc-mirror-container"),this.fgContainerEls=m(e,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=m(e,".fc-bgevent-container"),this.highlightContainerEls=m(e,".fc-highlight-container"),this.businessContainerEls=m(e,".fc-business-container"),t&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(e)},t.prototype.unrenderContentSkeleton=function(){f(this.contentSkeletonEl)},t.prototype.groupSegsByCol=function(e){var t,r=[];for(t=0;t<this.colCnt;t++)r.push([]);for(t=0;t<e.length;t++)r[e[t].col].push(e[t]);return r},t.prototype.attachSegsByCol=function(e,t){var r,n,i;for(r=0;r<this.colCnt;r++)for(n=e[r],i=0;i<n.length;i++)t[r].appendChild(n[i].el)},t.prototype.getNowIndicatorUnit=function(){return"minute"},t.prototype.renderNowIndicator=function(e,t){if(this.colContainerEls){var r,n=this.computeDateTop(t),i=[];for(r=0;r<e.length;r++){var s=o("div",{className:"fc-now-indicator fc-now-indicator-line"});s.style.top=n+"px",this.colContainerEls[e[r].col].appendChild(s),i.push(s)}if(e.length>0){var a=o("div",{className:"fc-now-indicator fc-now-indicator-arrow"});a.style.top=n+"px",this.contentSkeletonEl.appendChild(a),i.push(a)}this.nowIndicatorEls=i}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(f),this.nowIndicatorEls=null)},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.getBoundingClientRect().height},t.prototype.computeDateTop=function(e,t){return t||(t=B(e)),this.computeTimeTop(X(e.valueOf()-t.valueOf()))},t.prototype.computeTimeTop=function(e){var t,r,n=this.slatEls.length,i=this.props.dateProfile,o=(e.milliseconds-te(i.minTime))/te(this.slotDuration);return o=Math.max(0,o),o=Math.min(n,o),t=Math.floor(o),r=o-(t=Math.min(t,n-1)),this.slatPositions.tops[t]+this.slatPositions.getHeight(t)*r},t.prototype.computeSegVerticals=function(e){var t,r,n,i=this.context.options.timeGridEventMinHeight;for(t=0;t<e.length;t++)r=e[t],n=this.props.cells[r.col].date,r.top=this.computeDateTop(r.start,n),r.bottom=Math.max(r.top+i,this.computeDateTop(r.end,n))},t.prototype.assignSegVerticals=function(e){var t,r;for(t=0;t<e.length;t++)b((r=e[t]).el,this.generateSegVerticalCss(r))},t.prototype.generateSegVerticalCss=function(e){return{top:e.top,bottom:-e.bottom}},t.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildSlatPositions()},t.prototype.buildColPositions=function(){this.colPositions.build()},t.prototype.buildSlatPositions=function(){this.slatPositions.build()},t.prototype.positionToHit=function(e,t){var r,n,i=this.context.dateEnv,o=this,s=o.snapsPerSlot,a=o.slatPositions,l=o.colPositions,u=l.leftToIndex(e),c=a.topToIndex(t);if(null!=u&&null!=c){var d=a.tops[c],h=a.getHeight(c),f=(t-d)/h,p=c*s+Math.floor(f*s),v=this.props.cells[u].date,g=$(this.props.dateProfile.minTime,(r=this.snapDuration,n=p,{years:r.years*n,months:r.months*n,days:r.days*n,milliseconds:r.milliseconds*n})),y=i.add(v,g);return{col:u,dateSpan:{range:{start:y,end:i.add(y,this.snapDuration)},allDay:!1},dayEl:this.colEls[u],relativeRect:{left:l.lefts[u],right:l.rights[u],top:d,bottom:d+h}}}},t.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.renderSegs(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.renderSegs("highlight",this.context,e.segs))},t.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.unrender(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.unrender("highlight",this.context))},t.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._renderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.renderSegs(this.context,e,{isSelecting:!0}):this.fillRenderer.renderSegs("highlight",this.context,e))},t.prototype._unrenderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.unrender(this.context,e,{isSelecting:!0}):this.fillRenderer.unrender("highlight",this.context))},t}(vr),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?"background"===(t=e).rendering||"inverse-background"===t.rendering?["timed","allDay"]:["allDay"]:["timed"];var t},t}($t),Ti=st({week:"short"}),Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitter=new Di,t.renderSkeleton=Jt(t._renderSkeleton,t._unrenderSkeleton),t.renderHeadIntroHtml=function(){var e,r=t.context,n=r.theme,i=r.dateEnv,o=r.options,s=t.props.dateProfile.renderRange,a=L(s.start,s.end);return o.weekNumbers?(e=i.format(s.start,Ti),'<th class="fc-axis fc-week-number '+n.getClass("widgetHeader")+'" '+t.axisStyleAttr()+">"+tr(o,i,{date:s.start,type:"week",forceOff:a>1},Ht(e))+"</th>"):'<th class="fc-axis '+n.getClass("widgetHeader")+'" '+t.axisStyleAttr()+"></th>"},t.renderTimeGridBgIntroHtml=function(){return'<td class="fc-axis '+t.context.theme.getClass("widgetContent")+'" '+t.axisStyleAttr()+"></td>"},t.renderTimeGridIntroHtml=function(){return'<td class="fc-axis" '+t.axisStyleAttr()+"></td>"},t.renderDayGridBgIntroHtml=function(){var e,r=t.context,n=r.theme,i=r.options;return'<td class="fc-axis '+n.getClass("widgetContent")+'" '+t.axisStyleAttr()+"><span>"+(((e=i).allDayHtml||Ht(e.allDayText))+"</span></td>")},t.renderDayGridIntroHtml=function(){return'<td class="fc-axis" '+t.axisStyleAttr()+"></td>"},t}return fi(t,e),t.prototype.render=function(t,r){e.prototype.render.call(this,t,r),this.renderSkeleton(r)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){this.el.classList.add("fc-timeGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new cr("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-time-grid-container");var r=o("div",{className:"fc-time-grid"});if(t.appendChild(r),this.timeGrid=new wi(r,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml}),e.options.allDaySlot){this.dayGrid=new oi(this.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1});var n=this.el.querySelector(".fc-divider");this.dayGrid.bottomCoordPadding=n.getBoundingClientRect().height}},t.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-timeGrid-view"),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,r=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(r.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'">'+(r.allDaySlot?'<div class="fc-day-grid"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" />':"")+"</td></tr></tbody></table>"},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},t.prototype.updateSize=function(t,r,n){e.prototype.updateSize.call(this,t,r,n),this.timeGrid.updateSize(t),this.dayGrid&&this.dayGrid.updateSize(t)},t.prototype.updateBaseSize=function(e,t,r){var n,i,o,s=this;if(this.axisWidth=le(m(this.el,".fc-axis")),this.timeGrid.colEls){var a=m(this.el,".fc-row").filter((function(e){return!s.scroller.el.contains(e)}));this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),a.forEach(oe),this.dayGrid&&(this.dayGrid.removeSegPopover(),(n=this.context.options.eventLimit)&&"number"!=typeof n&&(n=5),n&&this.dayGrid.limitRows(n)),r||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(a.forEach((function(e){ie(e,o)})),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<i&&(this.timeGrid.bottomRuleEl.style.display=""))}else r||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},t.prototype.computeScrollerHeight=function(e){return e-ue(this.el,this.scroller.el)},t.prototype.computeDateScroll=function(e){var t=this.timeGrid.computeTimeTop(e);return(t=Math.ceil(t))&&t++,{top:t}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},t}(_n);Ci.prototype.usesMinMaxTime=!0;var Ri=function(e){function t(t){var r=e.call(this,t.el)||this;return r.buildDayRanges=Ye(ki),r.slicer=new Ii,r.timeGrid=t,r}return fi(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype.render=function(e,t){var r=this.context.dateEnv,n=e.dateProfile,i=e.dayTable,o=this.dayRanges=this.buildDayRanges(i,n,r),s=this.timeGrid;s.receiveContext(t),s.receiveProps(pi({},this.slicer.sliceProps(e,n,null,t.calendar,s,o),{dateProfile:n,cells:i.cells[0]}),t)},t.prototype.renderNowIndicator=function(e){this.timeGrid.renderNowIndicator(this.slicer.sliceNowDate(e,this.timeGrid,this.dayRanges),e)},t.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},t.prototype.queryHit=function(e,t){var r=this.timeGrid.positionToHit(e,t);if(r)return{component:this.timeGrid,dateSpan:r.dateSpan,dayEl:r.dayEl,rect:{left:r.relativeRect.left,right:r.relativeRect.right,top:r.relativeRect.top,bottom:r.relativeRect.bottom},layer:0}},t}(vr);function ki(e,t,r){for(var n=[],i=0,o=e.headerDates;i<o.length;i++){var s=o[i];n.push({start:r.add(s,t.minTime),end:r.add(s,t.maxTime)})}return n}var Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.sliceRange=function(e,t){for(var r=[],n=0;n<t.length;n++){var i=Ae(e,t[n]);i&&r.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:n})}return r},t}(Un);function xi(e,t){var r=new zn(e.renderRange,t);return new Bn(r,!1)}const Pi=yr({defaultView:"timeGridWeek",views:{timeGrid:{class:function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTable=Ye(xi),t}return fi(t,e),t.prototype.render=function(t,r){e.prototype.render.call(this,t,r);var n=this.props,i=n.dateProfile,o=n.dateProfileGenerator,s=r.nextDayThreshold,a=this.buildDayTable(i,o),l=this.splitter.splitProps(t);this.header&&this.header.receiveProps({dateProfile:i,dates:a.headerDates,datesRepDistinctDays:!0,renderIntroHtml:this.renderHeadIntroHtml},r),this.simpleTimeGrid.receiveProps(pi({},l.timed,{dateProfile:i,dayTable:a}),r),this.simpleDayGrid&&this.simpleDayGrid.receiveProps(pi({},l.allDay,{dateProfile:i,dayTable:a,nextDayThreshold:s,isRigid:!1}),r),this.startNowIndicator(i,o)},t.prototype._renderSkeleton=function(t){e.prototype._renderSkeleton.call(this,t),t.options.columnHeader&&(this.header=new Ln(this.el.querySelector(".fc-head-container"))),this.simpleTimeGrid=new Ri(this.timeGrid),this.dayGrid&&(this.simpleDayGrid=new li(this.dayGrid))},t.prototype._unrenderSkeleton=function(){e.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleTimeGrid.destroy(),this.simpleDayGrid&&this.simpleDayGrid.destroy()},t.prototype.renderNowIndicator=function(e){this.simpleTimeGrid.renderNowIndicator(e)},t}(Ci),allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});var _i=r(5506),Mi=r.n(_i);function Oi(e){return Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oi(e)}function Hi(){Hi=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,s=Object.create(o.prototype),a=new P(n||[]);return i(s,"_invoke",{value:R(e,r,a)}),s}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function S(){}var E={};u(E,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==r&&n.call(w,s)&&(E=w);var D=S.prototype=y.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,o,s,a){var l=d(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Oi(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(c).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,a)}))}a(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function R(t,r,n){var i=h;return function(o,s){if(i===p)throw Error("Generator is already running");if(i===v){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var l=k(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?v:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=v,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var s=o.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Oi(t)+" is not iterable")}return m.prototype=S,i(D,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:m,configurable:!0}),m.displayName=u(S,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,u(e,l,"GeneratorFunction")),e.prototype=Object.create(D),e},t.awrap=function(e){return{__await:e}},T(C.prototype),u(C.prototype,a,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var s=new C(c(e,r,n,i),o);return t.isGeneratorFunction(r)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},T(D),u(D,l,"Generator"),u(D,s,(function(){return this})),u(D,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Ni(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function Li(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zi(n.key),n)}}function zi(e){var t=function(e,t){if("object"!=Oi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oi(t)?t:t+""}var Bi=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dayCalendars=[],this.updateSizes=this.updateSizes.bind(this),this.makeCalendars=this.makeCalendars.bind(this),this.dayCalendarElements=document.querySelectorAll(".js-day-calendar"),this.dayCalendarElements.length<=0||this.makeCalendars()},t=[{key:"makeCalendars",value:(n=Hi().mark((function e(){var t;return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this,this.dayCalendarElements.forEach((function(e,r){e.id="day-calendar-"+r,t.dayCalendars.push(new Tn(e,{plugins:[Pi],header:!1,locale:Mi(),defaultDate:e.dataset.date,defaultView:"timeGridDay",allDaySlot:!1,slotEventOverlap:!1,minTime:"06:00:00",maxTime:"24:00:00"}))})),this.renderCalendars(),this.updateSizes();case 4:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function s(e){Ni(o,r,i,s,a,"next",e)}function a(e){Ni(o,r,i,s,a,"throw",e)}s(void 0)}))},function(){return i.apply(this,arguments)})},{key:"renderCalendars",value:function(){this.dayCalendars.forEach((function(e){e.render()}))}},{key:"updateSizes",value:function(){console.log("Update size runned.");var e=!1;this.dayCalendars.forEach((function(t){t.updateSize(),t.el.querySelector(".fc-time-grid-container").clientHeight<80&&(e=!0)})),e?setTimeout(this.updateSizes,200):this.addEvents()}},{key:"addEvents",value:function(){this.dayCalendars.forEach((function(e){var t=[],r=e.el.querySelectorAll(".js-reservation-event"),n=e.el.querySelectorAll(".js-reserved-event");r.forEach((function(r){t.push(r.dataset.id),e.addEvent({title:r.dataset.name,start:r.dataset.start,end:r.dataset.end,className:"is-primary"})})),n.forEach((function(r){t.includes(r.dataset.id)||(t.push(r.dataset.id),e.addEvent({title:r.dataset.name,start:r.dataset.start,end:r.dataset.end}))}))}))}}],t&&Li(e.prototype,t),r&&Li(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i}();function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Gi(){Gi=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,s=Object.create(o.prototype),a=new P(n||[]);return i(s,"_invoke",{value:R(e,r,a)}),s}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function S(){}var E={};u(E,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==r&&n.call(w,s)&&(E=w);var D=S.prototype=y.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,o,s,a){var l=d(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Ui(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(c).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,a)}))}a(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function R(t,r,n){var i=h;return function(o,s){if(i===p)throw Error("Generator is already running");if(i===v){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var l=k(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?v:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=v,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var s=o.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Ui(t)+" is not iterable")}return m.prototype=S,i(D,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:m,configurable:!0}),m.displayName=u(S,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,u(e,l,"GeneratorFunction")),e.prototype=Object.create(D),e},t.awrap=function(e){return{__await:e}},T(C.prototype),u(C.prototype,a,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var s=new C(c(e,r,n,i),o);return t.isGeneratorFunction(r)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},T(D),u(D,l,"Generator"),u(D,s,(function(){return this})),u(D,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Vi(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function Ai(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fi(n.key),n)}}function Fi(e){var t=function(e,t){if("object"!=Ui(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ui(t)?t:t+""}var ji=function(){return e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fullCalendars=[],this.updateSizes=this.updateSizes.bind(this),this.makeCalendars=this.makeCalendars.bind(this),this.fullCalendarElements=document.querySelectorAll(".js-full-calendar"),this.fullCalendarElements.length<=0||(this.popUp=document.querySelector(".js-popup"),isset(this.popUp)&&document.addEventListener("mousemove",(function(e){t.popUp.style.left=e.pageX+20+"px",t.popUp.style.top=e.pageY+5+"px"})),this.makeCalendars())},t=[{key:"makeCalendars",value:(n=Gi().mark((function e(){var t;return Gi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this,this.fullCalendarElements.forEach((function(e,r){e.id="full-calendar-"+r;var n=new Tn(e,{plugins:[Pi,di],header:{left:"title",center:"today prev,next",right:"dayGridMonth, timeGridWeek, timeGridDay"},locale:Mi(),defaultDate:e.dataset.date,defaultView:"timeGridWeek",allDaySlot:!1,slotEventOverlap:!1,minTime:"06:00:00",maxTime:"24:00:00",validRange:{start:e.dataset.start},eventMouseEnter:function(e){e.el.classList.contains("is-primary")&&(t.popUp.classList.remove("is-hidden"),t.popUp.querySelectorAll(".js-popup-content").forEach((function(t){t.dataset.id==e.event.id?t.classList.remove("is-hidden"):t.classList.add("is-hidden")})))},eventMouseLeave:function(e){e.el.classList.contains("is-primary")&&(t.popUp.classList.add("is-hidden"),t.popUp.querySelectorAll(".js-popup-content").forEach((function(e){return e.classList.add("is-hidden")})))}});t.fullCalendars.push(n)})),this.renderCalendars(),this.updateSizes();case 4:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function s(e){Vi(o,r,i,s,a,"next",e)}function a(e){Vi(o,r,i,s,a,"throw",e)}s(void 0)}))},function(){return i.apply(this,arguments)})},{key:"renderCalendars",value:function(){this.fullCalendars.forEach((function(e){e.render()}))}},{key:"updateSizes",value:function(){console.log("Update size runned.");var e=!1;this.fullCalendars.forEach((function(t){t.updateSize(),t.el.querySelector(".fc-time-grid-container").clientHeight<80&&(e=!0)})),e?setTimeout(this.updateSizes,200):this.addEvents()}},{key:"handleDatesSet",value:function(e){console.log("handleDatesSet handled",e)}},{key:"addEvents",value:function(){this.fullCalendars.forEach((function(e){var t=e.el.querySelectorAll(".js-reservation-event"),r=0,n=null;t.forEach((function(t){n!==t.dataset.orderId&&(n=t.dataset.orderId,r++),9===r&&(r=1),e.addEvent({id:t.dataset.id,title:t.dataset.name,start:t.dataset.start,end:t.dataset.end,className:"is-primary is-primary--"+r,url:t.dataset.url})})),e.el.querySelectorAll(".js-block-out").forEach((function(t){e.addEvent({title:t.dataset.name,start:t.dataset.start,end:t.dataset.end,className:"is-warning",url:t.dataset.url})})),e.el.querySelectorAll(".js-calendar-note").forEach((function(t){e.addEvent({title:t.dataset.name,start:t.dataset.start,end:t.dataset.end,className:"is-note",url:t.dataset.url})})),e.el.querySelectorAll(".js-location-availability").forEach((function(t){"1"===t.dataset.allDay?e.addEvent({title:"Locatie gesloten",daysOfWeek:[t.dataset.dayOfWeek],startTime:"00:00:00",endTime:"23:59:59",className:"is-closed",url:t.dataset.url}):(e.addEvent({daysOfWeek:[t.dataset.dayOfWeek],startTime:"00:00:00",endTime:t.dataset.start,className:"is-closed",url:t.dataset.url}),e.addEvent({daysOfWeek:[t.dataset.dayOfWeek],startTime:t.dataset.end,endTime:"23:59:59",className:"is-closed",url:t.dataset.url}))}))}))}}],t&&Ai(e.prototype,t),r&&Ai(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i}();r(4078);new Bi,new ji},4078:()=>{var e={openModalButton:null,closeButtons:null,modal:null,init:function(){e.modal=document.querySelector(".js-modal"),e.openModalButton=document.querySelector(".js-open-modal"),e.closeButtons=document.querySelectorAll(".js-close-modal"),isset(e.modal)&&isset(e.openModalButton)&&isset(e.closeButtons)&&(e.openModalButton.addEventListener("click",(function(){e.modal.hidden=!1,e.modal.classList.add("is-visible")})),e.closeButtons.forEach((function(t){t.addEventListener("click",(function(){e.modal.hidden=!0,e.modal.classList.remove("is-visible")}))})))}};e.init()}},e=>{var t;t=1785,e(e.s=t)}]);
//# sourceMappingURL=reservation.js.map