1/*! For license information please see 474-bab905dead3bd3e90bb6.js.LICENSE.txt */ 2(self.webpackChunkcarlosiriarte_com=self.webpackChunkcarlosiriarte_com||[]).push([[474],{51473:function(e,t,r){"use strict";if(r.d(t,{wA:function(){return n},HY:function(){return s},kr:function(){return a},az:function(){return o},jz:function(){return l},Vf:function(){return i}}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,i=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=FullCalendarVDom.Fragment,a=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal;FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode},80885:function(e,t,r){"use strict";if(r.d(t,{wA:function(){return n},HY:function(){return s},kr:function(){return a},az:function(){return o},jz:function(){return l},Vf:function(){return i}}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,i=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=Full
2CalendarVDom.Fragment,a=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal;FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode},38568:function(e,t,r){"use strict";if(r.d(t,{wA:function(){return n},HY:function(){return s},kr:function(){return a},az:function(){return o},jz:function(){return l},Vf:function(){return i}}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,i=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=FullCalendarVDom.Fragment,a=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal;FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode},25776:function(e,t,r){"use strict";if(r.d(t,{wA:function(){return n},HY:function(){return s},kr:function(){return a},az:function(){return o},jz:function(){return l},Vf:function(){return i}}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,i=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=Full
2CalendarVDom.Fragment,a=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal;FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode},64339:function(e,t,r){"use strict";if(r.d(t,{wA:function(){return n},HY:function(){return s},kr:function(){return a},az:function(){return o},jz:function(){return l},Vf:function(){return i}}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,i=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=FullCalendarVDom.Fragment,a=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal;FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode},82905:function(e,t,r){"use strict";if(r.d(t,{wA:function(){return n},HY:function(){return s},kr:function(){return a},az:function(){return o},jz:function(){return l},Vf:function(){return i}}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,i=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=Full
2CalendarVDom.Fragment,a=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal;FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode},13425:function(e,t,r){"use strict";if(r.d(t,{wA:function(){return n},HY:function(){return s},kr:function(){return a},az:function(){return o},jz:function(){return l},Vf:function(){return i}}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,o=FullCalendarVDom.createElement,i=(FullCalendarVDom.render,FullCalendarVDom.createRef),s=FullCalendarVDom.Fragment,a=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal;FullCalendarVDom.flushToDom,FullCalendarVDom.unmountComponentAtNode},79900:function(e,t,r){"use strict";r.d(t,{ZT:function(){return o},pi:function(){return i},ev:function(){return s}});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;function s(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||t)}Object.create},13099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},51223:function(e,t,r){var n=r(5112),o=r(70030),i=r(3070),s=n("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},65417:function(e,t,r){var n=r(70111),o=r(43157),i=r(5112)("species");e.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},88113:function(e,t,r){var n=r(35005);e.exports=n("navigator","userAgent")||""},7392:function(e,t,r){var n,o,i=r(17854),s=r(88113),a=i.process,l=a&&a.versions,u=l&&l.v8;u?o=(n=u.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},6790:function(e,t,r){"use strict";var n=r(43157),o=r(17466),i=r(49974),s=function(e,t,r,a,l,u,c,d){for(var p,h=l,f=0,g=!!c&&i(c,d,3);f<a;){if(f in r){if(p=g?g(r[f],f,t):r[f],u>0&&n(p))h=s(e,t,p,o(p.length),h,u-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=p}h++}f++}return h};e.exports=s},49974:function(e,t,r){var n=r(13099);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},60490:function(e,t,r){var n=r(35005);e.exports=n("document","documentElement")},43157:function(e,t,r){var n=r(84326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},30133:function(e,t,r){var n=r(7392),o=r(47293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},70030:function(e,t,r){var n,o=r(19670),i=r(36048),s=r(80748),a=r(3501),l=r(60490),u=r(80317),c=r(6200),d=c("IE_PROTO"),p=function(){},h=function(e){return"<script>"+e+"</"+"script>"},f=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;f=n?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var r=s.length;r--;)delete f.prototype[s[r]];return f()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=o(e),r=new p,p.prototype=null,r[d]=e):r=f(),void 0===t?r:i(r,t)}},36048:function(e,t,r){var n=r(19781),o=r(3070),i=r(19670),s=r(81956);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=s(t),a=n.length,l=0;a>l;)o.f(e,r=n[l++],t[r]);return e}},81956:function(e,t,r){var n=r(16324),o=r(80748);e.exports=Object.keys||function(e){return n(e,o)}},43307:function(e,t,r){var n=r(30133);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(e,t,r){var n=r(17854),o=r(72309),i=r(86656),s=r(69711),a=r(30133),l=r(43307),u=o("wks"),c=n.Symbol,d=l?c:c&&c.withoutSetter||s;e.exports=function(e){return i(u,e)&&(a||"string"==typeof u[e])||(a&&i(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},86535:function(e,t,r){"use strict";var n=r(82109),o=r(6790),i=r(47908),s=r(17466),a=r(13099),l=r(65417);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=i(this),n=s(r.length);return a(e),(t=l(r,0)).length=o(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},99244:function(e,t,r){r(51223)("flatMap")},41698:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ts}});var n=r(96156),o=r(92137),i=(r(86535),r(99244),r(87757)),s=r.n(i),a=r(67294),l=r(79900),u=r(73935);("undefined"!=typeof globalThis?globalThis:window).FullCalendarVDom={Component:a.Component,createElement:a.createElement,render:u.render,createRef:a.createRef,Fragment:a.Fragment,createContext:a.createContext,createPortal:u.createPortal,flushToDom:function(){},unmountComponentAtNode:u.unmountComponentAtNode};var c=r(45185),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._calendarApi=new c.zeW,t}return(0,l.ZT)(t,e),t.prototype.render=function(){return a.createElement(c.n1v,{optionOverrides:this.props,calendarApi:this._calendarApi},(function(e){return a.createElement(c.Tdg,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,r,n,o){return a.createElement("div",{className:t.join(" "),style:{height:r}},a.createElement(c.BdM,(0,l.pi)({isHeightAuto:n,forPrint:o},e)))}))}))},t.prototype.getApi=function(){return this._calendarApi},t}(a.Component),p=r(31116),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
2return t.headerElRef=(0,p.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.renderSimpleLayout=function(e,t){var r=this.props,n=this.context,o=[],i=(0,p.Q8U)(n.options);return e&&o.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),(0,p.azq)(p.xS$,{viewSpec:n.viewSpec},(function(e,t){return(0,p.azq)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},(0,p.azq)(p.Oh2,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}))},t.prototype.renderHScrollLayout=function(e,t,r,n){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var i=this.props,s=this.context,a=!i.forPrint&&(0,p.Q8U)(s.options),l=!i.forPrint&&(0,p.PZw)(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:p.Hbc}]}),(0,p.azq)(p.xS$,{viewSpec:s.viewSpec},(function(e,t){return(0,p.azq)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},(0,p.azq)(o,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,colGroups:[{cols:[{span:r,minWidth:n}]}],sections:u}))}))},t}(p.IdW);function f(e,t){for(var r=[],n=0;n<t;n+=1)r[n]=[];for(var o=0,i=e;o<i.length;o++){var s=i[o];r[s.row].push(s)}return r}function g(e,t){for(var r=[],n=0;n<t;n+=1)r[n]=[];for(var o=0,i=e;o<i.length;o++){var s=i[o];r[s.firstCol].push(s)}return r}function v(e,t){var r=[];if(e){for(s=0;s<t;s+=1)r[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var n=0,o=e.segs;n<o.length;n++){var i=o[n];r[i.row].segs.push(i)}}else for(var s=0;s<t;s+=1)r[s]=null;return r}var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context.options.navLinks?{"data-navlink":(0,p.Euv)(e.date),tabIndex:0}:{};return(0,p.azq)(p.R_3,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:y},(function(r,n){return(n||e.forceDayTop)&&(0,p.azq)("div",{className:"fc-daygrid-day-top",ref:r},(0,p.azq)("a",(0,l.pi)({className:"fc-daygrid-day-number"},t),n||(0,p.azq)(p.HYg,null,"Â ")))}))},t}(p.H6J);function y(e){return e.dayNumberText}var S=(0,p.SPZ)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function R(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,p.azq)(p.h2k,(0,l.pi)({}
2,e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:S,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(p.H6J),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=t.options.eventTimeFormat||S,n=(0,p.r39)(e.seg,r,t,!0,e.defaultDisplayEventEnd);return(0,p.azq)(p.Vsx,{seg:e.seg,timeText:n,defaultContent:b,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(t,r,n,o){return(0,p.azq)("a",(0,l.pi)({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(r).join(" "),ref:t},(i=e.seg,(s=i.eventRange.def.url)?{href:s}:{})),o);var i,s}))},t}(p.H6J);function b(e){return(0,p.azq)(p.HYg,null,(0,p.azq)("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&(0,p.azq)("div",{className:"fc-event-time"},e.timeText),(0,p.azq)("div",{className:"fc-event-title"},e.event.title||(0,p.azq)(p.HYg,null,"Â ")))}var D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=(0,p.HPs)(w),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),r=t.allSegs,n=t.invisibleSegs;return(0,p.azq)(p.ygx,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:r,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return(0,p.azq)(p.HYg,null,r.map((function(r){var n=r.eventRange.instance.instanceId;return(0,p.azq)("div",{className:"fc-daygrid-event-harness",key:n,style:{visibility:t[n]?"hidden":""}},R(r)?(0,p.azq)(C,(0,l.pi)({seg:r,isDragging:!1,isSelected:n===e.eventSelection,defaultDisplayEventEnd:!1},(0,p.jHR)(r,e.todayRange))):(0,p.azq)(E,(0,l.pi)({seg:r,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection,defaultDisplayEventEnd:!1},(0,p.jHR)(r,e.todayRange))))})))}},(function(e,t,r,n,o){return(0,p.azq)("a",{ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),onClick:o},n)}))},t}(p.H6J);function w(e){for(var t=[],r=[],n=0,o=e;n<o.length;n++){var i=o[n];t.push(i.seg),i.isVisible||r.push(i.seg)}return{allSegs:t,invisibleSegs:r}}var x=(0,p.SPZ)({week:"narrow"}),P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,p.VfA)(),t.handleRootEl=function(e){(0,p.k$v)(t.rootElRef,e),(0,p.k$v)(t.props.elRef,e)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,r=e.context,n=e.rootElRef,o=r.options,i=t.date,s=t.dateProfile,a=o.navLinks?{"data-navlink":(0,p.Euv)(i,"week"),tabIndex:0}:{};return(0,p.azq)(p.hJ8,{date:i,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraHookProps:t.extraHookProps,elRef:this.handleRootEl},(function(e,r,o,u){return(0,p.azq)("td",(0,l.pi)({ref:e,className:["fc-daygrid-day"].concat(r,t.extraClassNames||[]).join(" ")},o,t.extraDataAttrs),(0,p.azq)("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&(0,p.azq)(p.QOi,{date:i,defaultFormat:x},(function(e,t,r,n){return(0,p.azq)("a",(0,l.pi)({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},a),n)})),!u&&(0,p.azq)(m,{date:i,dateProfile:s,showDayNumber:t.showDayNumber,forceDayTop:t.forceDayTop,todayRange:t.todayRange,extraHookProps:t.extraHookProps}),(0,p.azq)("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,(0,p.azq)("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},(0,p.azq)(D,{allDayDate:i,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:n,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}
2))),(0,p.azq)("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}))},t}(p.IdW);function z(e,t,r,n,o,i,s){var a=new H;a.allowReslicing=!0,a.strictOrder=n,!0===t||!0===r?(a.maxCoord=i,a.hiddenConsumes=!0):"number"==typeof t?a.maxStackCnt=t:"number"==typeof r&&(a.maxStackCnt=r,a.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var d=o[(w=e[c]).eventRange.instance.instanceId];null!=d?l.push({index:c,thickness:d,span:{start:w.firstCol,end:w.lastCol+1}}):u.push(w)}for(var p=a.addSegs(l),h=function(e,t,r){for(var n=function(e,t){for(var r=[],n=0;n<t;n+=1)r.push([]);for(var o=0,i=e;o<i.length;o++){var s=i[o];for(n=s.span.start;n<s.span.end;n+=1)r[n].push(s)}return r}(e,r.length),o=[],i=[],s=[],a=0;a<r.length;a+=1){for(var l=n[a],u=[],c=0,d=0,p=0,h=l;p<h.length;p++){var f=t[(y=h[p]).index];u.push({seg:T(f,a,a+1,r),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:y.levelCoord-c}),c=y.levelCoord+y.thickness}var g=[];c=0,d=0;for(var v=0,m=l;v<m.length;v++){f=t[(y=m[v]).index];var y,S=y.span.end-y.span.start>1,R=y.span.start===a;d+=y.levelCoord-c,c=y.levelCoord+y.thickness,S?(d+=y.thickness,R&&g.push({seg:T(f,y.span.start,y.span.end,r),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):R&&(g.push({seg:T(f,y.span.start,y.span.end,r),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:d}),d=0)}o.push(u),i.push(g),s.push(d)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:s}}(a.toRects(),e,s),f=h.singleColPlacements,g=h.multiColPlacements,v=h.leftoverMargins,m=[],y=[],S=0,R=u;S<R.length;S++){g[(w=R[S]).firstCol].push({seg:w,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var E=w.firstCol;E<=w.lastCol;E+=1)f[E].push({seg:T(w,E,E+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(E=0;E<s.length;E+=1)m.push(0);for(var C=0,b=p;C<b.length;C++){var D=b[C],w=e[D.index],x=D.span;g[x.start].push({seg:T(w,x.start,x.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(E=x.start;E<x.end;E+=1)m[E]+=1,f[E].push({seg:T(w,E,E+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(E=0;E<s.length;E+=1)y.push(v[E]);return{singleColPlacements:f,multiColPlacements:g,moreCnts:m,moreMarginTops:y}}function T(e,t,r,n){if(e.firstCol===t&&e.lastCol===r-1)return e;var o=e.eventRange,i=o.range,s=(0,p.cMs)(i,{start:n[t].date,end:(0,p.E4D)(n[r-1].date,1)});return(0,l.pi)((0,l.pi)({},e),{firstCol:t,lastCol:r-1,eventRange:{def:o.def,ui:(0,l.pi)((0,l.pi)({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:e.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===i.end.valueOf()})}var H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return(0,l.ZT)(t,e),t.prototype.addSegs=function(t){for(var r=this,n=e.prototype.addSegs.call(this,t),o=this.entriesByLevel,i=function(e){return!r.forceHidden[(0,p.oBR)(e)]},s=0;s<o.length;s+=1)o[s]=o[s].filter(i);return n},t.prototype.handleInvalidInsertion=function(t,r,n){var o=this.entriesByLevel,i=this.forceHidden,s=t.touchingEntry,a=t.touchingLevel,u=t.touchingLateral;if(this.hiddenConsumes&&s){var c=(0,p.oBR)(s);if(!i[c])if(this.allowReslicing){var d=(0,l.pi)((0,l.pi)({},s),{span:(0,p.GT4)(s.span,r.span)});i[(0,p.oBR)(d)]=!0,o[a][u]=d,this.splitEntry(s,r,n)}else i[c]=!0,n.push(s)}return e.prototype.handleInvalidInsertion.call(this,t,r,n)},t}(p.KxW),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new p.lAU,t.frameElRefs=new p.lAU,t.fgElRefs=new p.lAU,t.segHarnessRefs=new p.lAU,t.rootElRef=(0,p.VfA)(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this,r=t.props,n=t.state,o=t.context.options,i=r.cells.length,s=g(r.businessHourSegs,i),a=g(r.bgEventSegs,i),l=g(this.getHighlightSegs(),i),u=g(this.getMirrorSegs(),i),c=z((0,p.hak)(r.fgEventSegs,o.eventOrder),r.dayMaxEvents,r.dayMaxEventRows,o.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,r.cells),d=c.singleColPlacements,h=c.multiColPlacements,f=c.moreCnts,v=c.moreMarginTops,m=r.eventDrag&&r.eventDrag.affectedInstances||r.eventResize&&r.eventResize.affectedInstances||{};return(0,p.azq)("tr",{ref:this.rootElRef},r.renderIntro&&r.renderIntro(),r.cells.map((function(t,n){var o=e.renderFgSegs(n,r.forPrint?d[n]:h[n],r.todayRange,m),i=e.renderFgSegs(n,function(e,t){if(!e.length)return[];var r=function(e){for(var t={},r=0,n=e;r<n.length;r++)for(var o=0,i=n[r];o<i.length;o++){var s=i[o];t[s.seg.eventRange.instance.instanceId]=s.absoluteTop}return t}(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:r[e.eventRange.instance.instanceId],marginTop:0}}))}(u[n],h),r.todayRange,{},Boolean(r.eventDrag),Boolean(r.eventResize),!1);return(0,p.azq)(P,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:r.dateProfile,date:t.date,showDayNumber:r.showDayNumbers,showWeekNumber:r.showWeekNumbers&&0===n,forceDayTop:r.showWeekNumbers,todayRange:r.todayRange,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:f[n],moreMarginTop:v[n],singlePlacements:d[n],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:(0,p.azq)(p.HYg,null,(0,p.azq)(p.HYg,null,o),(0,p.azq)(p.HYg,null,i)),bgContent:(0,p.azq)(p.HYg,null,e.renderFillSegs(l[n],"highlight"),e.renderFillSegs(s[n],"non-business"),e.renderFillSegs(a[n],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var r=this.props;this.updateSizing(!(0,p.S6v)(e,r))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,r,n,o,i,s){var a=this.context,u=this.props.eventSelection,c=this.state.framePositions,d=1===this.props.cells.length,h=o||i||s,f=[];if(c)for(var g=0,v=t;g<v.length;g++){var m=v[g],y=m.seg,S=y.eventRange.instance.instanceId,b=S+":"+e,D=m.isVisible&&!n[S],w=m.isAbsolute,x="",P="";
2w&&(a.isRtl?(P=0,x=c.lefts[y.lastCol]-c.lefts[y.firstCol]):(x=0,P=c.rights[y.firstCol]-c.rights[y.lastCol])),f.push((0,p.azq)("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:b,ref:h?null:this.segHarnessRefs.createRef(b),style:{visibility:D?"":"hidden",marginTop:w?"":m.marginTop,top:w?m.absoluteTop:"",left:x,right:P}},R(y)?(0,p.azq)(C,(0,l.pi)({seg:y,isDragging:o,isSelected:S===u,defaultDisplayEventEnd:d},(0,p.jHR)(y,r))):(0,p.azq)(E,(0,l.pi)({seg:y,isDragging:o,isResizing:i,isDateSelecting:s,isSelected:S===u,defaultDisplayEventEnd:d},(0,p.jHR)(y,r)))))}return f},t.prototype.renderFillSegs=function(e,t){var r=this.context.isRtl,n=this.props.todayRange,o=this.state.framePositions,i=[];if(o)for(var s=0,a=e;s<a.length;s++){var u=a[s],c=r?{right:0,left:o.lefts[u.lastCol]-o.lefts[u.firstCol]}:{left:0,right:o.rights[u.firstCol]-o.rights[u.lastCol]};i.push((0,p.azq)("div",{key:(0,p.rRV)(u.eventRange),className:"fc-daygrid-bg-harness",style:c},"bg-event"===t?(0,p.azq)(p.I_K,(0,l.pi)({seg:u},(0,p.jHR)(u,n))):(0,p.MA3)(t)))}return p.azq.apply(void 0,(0,l.ev)([p.HYg,{}],i))},t.prototype.updateSizing=function(e){var t=this.props,r=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var n=t.cells.map((function(e){return r.currentMap[e.key]}));if(n.length){var o=this.rootElRef.current;this.setState({framePositions:new p.zIV(o,n,!0,!1)})}}var i=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.setState({eventInstanceHeights:this.queryEventInstanceHeights(),maxContentHeight:i?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var r in e){var n=Math.round(e[r].getBoundingClientRect().height),o=r.split(":")[0];t[o]=Math.max(t[o]||0,n)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-r.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},t}(p.IdW);M.addStateEquality({eventInstanceHeights:p.S6v});var k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=(0,p.HPs)(f),t.splitBgEventSegs=(0,p.HPs)(f),t.splitFgEventSegs=(0,p.HPs)(f),t.splitDateSelectionSegs=(0,p.HPs)(f),t.splitEventDrag=(0,p.HPs)(v),t.splitEventResize=(0,p.HPs)(v),t.rowRefs=new p.lAU,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.dateProfile,n=t.dayMaxEventRows,o=t.dayMaxEvents,i=t.expandRows,s=t.cells.length,a=this.splitBusinessHourSegs(t.businessHourSegs,s),l=this.splitBgEventSegs(t.bgEventSegs,s),u=this.splitFgEventSegs(t.fgEventSegs,s),c=this.splitDateSelectionSegs(t.dateSelectionSegs,s),d=this.splitEventDrag(t.eventDrag,s),h=this.splitEventResize(t.eventResize,s),f=!0===o||!0===n;f&&!i&&(f=!1,n=null,o=null);var g=["fc-daygrid-body",f?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return(0,p.azq)("div",{className:g.join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},(0,p.azq)(p.wh8,{unit:"day"},(function(f,g){return(0,p.azq)(p.HYg,null,(0,p.azq)("table",{className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,(0,p.azq)("tbody",null,t.cells.map((function(i,f){return(0,p.azq)(M,{ref:e.rowRefs.createRef(f),key:i.length?i[0].date.toISOString():f,showDayNumbers:s>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:r,cells:i,renderIntro:t.renderRowIntro,businessHourSegs:a[f],eventSelection:t.eventSelection,bgEventSegs:l[f].filter(q),fgEventSegs:u[f],dateSelectionSegs:c[f],eventDrag:d[f],eventResize:h[f],dayMaxEvents:o,dayMaxEventRows:n,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new p.zIV(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new p.zIV(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var r=this.colPositions,n=this.rowPositions,o=r.leftToIndex(e),i=n.topToIndex(t);if(null!=i&&null!=o){var s=this.props.cells[i][o];return{dateProfile:this.props.dateProfile,dateSpan:(0,l.pi)({range:this.getCellRange(i,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(i,o),rect:{left:r.lefts[o],right:r.rights[o],top:n.tops[i],bottom:n.bottoms[i]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var r=this.props.cells[e][t].date;return{start:r,end:(0,p.E4D)(r,1)}},t}(p.IdW);function q(e){return e.eventRange.def.allDay}var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return(0,l.ZT)(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(p.RVT),N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new I,t.tableRef=(0,p.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,p.azq)(k,(0,l.pi)({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(p.IdW),W=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=(0,p.HPs)(A),t.headerRef=(0,p.VfA)(),t.tableRef=(0,p.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.context,r=t.options,n=t.dateProfileGenerator,o=this.props,i=this.buildDayTableModel(o.dateProfile,n),s=r.dayHeaders&&(0,p.azq)(p.lR3,{ref:this.headerRef,dateProfile:o.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),a=function(t){return(0,p.azq)(N,{ref:e.tableRef,dateProfile:o.dateProfile,dayTableModel:i,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:r.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint})};return r.dayMinWidth?this.renderHScrollLayout(s,a,i.colCnt,r.dayMinWidth):this.renderSimpleLayout(s,a)},t}(h);function A(e,t){var r=new p.xB8(e.renderRange,t);return new p.xVj(r,/year|month|week/.test(e.currentRangeUnit))}var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.buildRenderRange=function(t,r,n){var o,i=this.props.dateEnv,s=e.prototype.buildRenderRange.call(this,t,r,n),a=s.start,l=s.end;if(/^(year|month)$/.test(r)&&(a=i.startOfWeek(a),(o=i.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=(0,p.jh6)(o,1))),this.props.monthMode&&this.props.fixedWeekCount){var u=Math.ceil((0,p.bXg)(a,l));l=(0,p.jh6)(l,6-u)}return{start:a,end:l}},t}(p.VPe),L=((0,p.rxu)({initialView:"dayGridMonth",views:{dayGrid:{component:W,dateProfileGeneratorClass:O},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?(0,p.gRm)(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(p.qX1)),V=(0,p.SPZ)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function j(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return(0,p.azq)(p.Yh$.Consumer,null,(function(r){if(!e.isLabeled)return(0,p.azq)("td",{className:t.join(" "),"data-time":e.isoTimeStr});var n=r.dateEnv,o=r.options,i=r.viewApi,s=null==o.slotLabelFormat?V:Array.isArray(o.slotLabelFormat)?(0,p.SPZ)(o.slotLabelFormat[0]):(0,p.SPZ)(o.slotLabelFormat),a={level:0,time:e.time,date:n.toDate(e.date),view:i,text:n.format(e.date,s)};return(0,p.azq)(p.QJ3,{hookProps:a,classNames:o.slotLabelClassNames,content:o.slotLabelContent,defaultContent:U,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(function(r,n,o,i){return(0,p.azq)("td",{ref:r,className:t.concat(n).join(" "),"data-time":e.isoTimeStr},(0,p.azq)("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},(0,p.azq)("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:o},i)))}))}))}function U(e){return e.text}var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return(0,p.azq)("tr",{key:e.key},(0,p.azq)(j,(0,l.pi)({},e)))}))},t}(p.H6J),F=(0,p.SPZ)({week:"short"}),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
2return t.allDaySplitter=new L,t.headerElRef=(0,p.VfA)(),t.rootElRef=(0,p.VfA)(),t.scrollerElRef=(0,p.VfA)(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var r=t.scrollerElRef.current;r&&(r.scrollTop=e)},t.renderHeadAxis=function(e,r){void 0===r&&(r="");var n=t.context.options,o=t.props.dateProfile.renderRange,i=(0,p.MUz)(o.start,o.end),s=n.navLinks&&1===i?{"data-navlink":(0,p.Euv)(o.start,"week"),tabIndex:0}:{};return n.weekNumbers&&"day"===e?(0,p.azq)(p.QOi,{date:o.start,defaultFormat:F},(function(e,t,n,o){return(0,p.azq)("th",{ref:e,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},(0,p.azq)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:r}},(0,p.azq)("a",(0,l.pi)({ref:n,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},s),o)))})):(0,p.azq)("th",{className:"fc-timegrid-axis"},(0,p.azq)("div",{className:"fc-timegrid-axis-frame",style:{height:r}}))},t.renderTableRowAxis=function(e){var r=t.context,n=r.options,o=r.viewApi,i={text:n.allDayText,view:o};return(0,p.azq)(p.QJ3,{hookProps:i,classNames:n.allDayClassNames,content:n.allDayContent,defaultContent:B,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},(function(t,r,n,o){return(0,p.azq)("td",{ref:t,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(r).join(" ")},(0,p.azq)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},(0,p.azq)("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:n},o)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return(0,l.ZT)(t,e),t.prototype.renderSimpleLayout=function(e,t,r){var n=this.context,o=this.props,i=[],s=(0,p.Q8U)(n.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(i.push({type:"body",key:"all-day",chunk:{content:t}}),i.push({type:"body",key:"all-day-divider",outerContent:(0,p.azq)("tr",{className:"fc-scrollgrid-section"},(0,p.azq)("td",{className:"fc-timegrid-divider "+n.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(n.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:r}}),(0,p.azq)(p.xS$,{viewSpec:n.viewSpec,elRef:this.rootElRef},(function(e,t){return(0,p.azq)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},(0,p.azq)(p.Oh2,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:i}))}))},t.prototype.renderHScrollLayout=function(e,t,r,n,o,i,s){var a=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");
2var u=this.context,c=this.props,d=!c.forPrint&&(0,p.Q8U)(u.options),h=!c.forPrint&&(0,p.PZw)(u.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return(0,p.azq)("tr",null,a.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return(0,p.azq)("tr",null,a.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:(0,p.azq)("tr",{className:"fc-scrollgrid-section"},(0,p.azq)("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var g=u.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return(0,p.azq)("div",{className:"fc-timegrid-axis-chunk"},(0,p.azq)("table",{style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,(0,p.azq)("tbody",null,(0,p.azq)(_,{slatMetas:i}))),(0,p.azq)("div",{className:"fc-timegrid-now-indicator-container"},(0,p.azq)(p.wh8,{unit:g?"minute":"day"},(function(e){var t=g&&s&&s.safeComputeTop(e);return"number"==typeof t?(0,p.azq)(p.AOy,{isAxis:!0,date:e},(function(e,r,n,o){return(0,p.azq)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(r).join(" "),style:{top:t}},o)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:p.Hbc},{key:"cols",content:p.Hbc}]}),(0,p.azq)(p.xS$,{viewSpec:u.viewSpec,elRef:this.rootElRef},(function(e,t){return(0,p.azq)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},(0,p.azq)(l,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:n,minWidth:o}]}],sections:f}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,r=e.dayMaxEventRows;return!0!==t&&!0!==r||(t=void 0,r=5),{dayMaxEvents:t,dayMaxEventRows:r}},t}(p.IdW);function B(e){return e.text}var Z=function(){function e(e,t,r){this.positions=e,this.dateProfile=t,this.slotDuration=r}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if((0,p.mCA)(t.currentRange,e)){var r=(0,p.b7Q)(e),n=e.valueOf()-r.valueOf();if(n>=(0,p.TTZ)(t.slotMinTime)&&n<(0,p.TTZ)(t.slotMaxTime))return this.computeTimeTop((0,p.Pvs)(n))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=(0,p.b7Q)(e)),this.computeTimeTop((0,p.Pvs)(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,r,n=this.positions,o=this.dateProfile,i=n.els.length,s=(e.milliseconds-(0,p.TTZ)(o.slotMinTime))/(0,p.TTZ)(this.slotDuration);return s=Math.max(0,s),s=Math.min(i,s),t=Math.floor(s),r=s-(t=Math.min(t,i-1)),n.tops[t]+n.getHeight(t)*r},e}(),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=t.options,n=e.slatElRefs;return(0,p.azq)("tbody",null,e.slatMetas.map((function(o,i){var s={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi},a=["fc-timegrid-slot","fc-timegrid-slot-lane",o.isLabeled?"":"fc-timegrid-slot-minor"];return(0,p.azq)("tr",{key:o.key,ref:n.createRef(o.key)},e.axis&&(0,p.azq)(j,(0,l.pi)({},o)),(0,p.azq)(p.QJ3,{hookProps:s,classNames:r.slotLaneClassNames,content:r.slotLaneContent,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(function(e,t,r,n){return(0,p.azq)("td",{ref:e,className:a.concat(t).join(" "),"data-time":o.isoTimeStr},n)})))})))},t}(p.H6J),X=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,p.VfA)(),t.slatElRefs=new p.lAU,t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,p.azq)("div",{className:"fc-timegrid-slots",ref:this.rootElRef},(0,p.azq)("table",{className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,(0,p.azq)(Y,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}
2,t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.context,r=this.props;r.onCoords&&null!==r.clientWidth&&(this.rootElRef.current.offsetHeight&&r.onCoords(new Z(new p.zIV(this.rootElRef.current,(e=this.slatElRefs.currentMap,r.slatMetas.map((function(t){return e[t.key]}))),!1,!0),this.props.dateProfile,t.options.slotDuration)))},t}(p.H6J);function J(e,t){var r,n=[];for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function K(e,t){var r=[];if(e){for(s=0;s<t;s+=1)r[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var n=0,o=e.segs;n<o.length;n++){var i=o[n];r[i.col].segs.push(i)}}else for(var s=0;s<t;s+=1)r[s]=null;return r}var Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,p.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props;return(0,p.azq)(p.ygx,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:$,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return ce(t.hiddenSegs,t)}},(function(r,n,o,i,s){return(0,p.azq)("a",{ref:function(t){(0,p.k$v)(r,t),(0,p.k$v)(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(n).join(" "),style:{top:t.top,bottom:t.bottom},onClick:s},(0,p.azq)("div",{ref:o,className:"fc-timegrid-more-link-inner fc-sticky"},i))}))},t}(p.H6J);function $(e){return e.shortText}function ee(e,t,r){var n=new p.KxW;null!=t&&(n.strictOrder=t),null!=r&&(n.maxStackCnt=r);var o,i,s,a=n.addSegs(e),u=(0,p.AVF)(a),c=function(e){var t=e.entriesByLevel,r=oe((function(e,t){return e+":"+t}),(function(n,o){var i=te(function(e,t,r){for(var n=e.levelCoords,o=e.entriesByLevel,i=o[t][r],s=n[t]+i.thickness,a=n.length,l=t;l<a&&n[l]<s;l+=1);for(;l<a;l+=1){for(var u=o[l],c=void 0,d=(0,p.ry4)(u,i.span.start,p.VTw),h=d[0]+d[1],f=h;(c=u[f])&&c.span.start<i.span.end;)f+=1;if(h<f)return{level:l,lateralStart:h,lateralEnd:f}}return null}(e,n,o),r),s=t[n][o];return[(0,l.pi)((0,l.pi)({},s),{nextLevelNodes:i[0]}),s.thickness+i[1]]}));return te(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,r)[0]}(n);return o=c,i=1,s=oe((function(e,t,r){return(0,p.oBR)(e)}),(function(e,t,r){var n,o=e.nextLevelNodes,a=e.thickness,u=a+r,c=a/u,d=[];if(o.length)for(var p=0,h=o;p<h.length;p++){var f=h[p];if(void 0===n)n=(g=s(f,t,u))[0],d.push(g[1]);else{var g=s(f,n,0);d.push(g[1])}}else n=i;var v=(n-t)*c;return[n-v,(0,l.pi)((0,l.pi)({},e),{thickness:v,nextLevelNodes:d})]})),{segRects:function(e){var t=[],r=oe((function(e,t,r){return(0,p.oBR)(e)}),(function(e,r,o){var i=(0,l.pi)((0,l.pi)({},e),{levelCoord:r,stackDepth:o,stackForward:0});return t.push(i),i.stackForward=n(e.nextLevelNodes,r+e.thickness,o+1)+1}));function n(e,t,n){for(var o=0,i=0,s=e;i<s.length;i++){var a=s[i];o=Math.max(r(a,t,n),o)}return o}return n(e,0,0),t}(c=o.map((function(e){return s(e,0,0)[1]}))),hiddenGroups:u}}function te(e,t){if(!e)return[[],0];for(var r=e.level,n=e.lateralStart,o=e.lateralEnd,i=n,s=[];i<o;)s.push(t(r,i)),i+=1;return s.sort(re),[s.map(ne),s[0][1]]}function re(e,t){return t[1]-e[1]}function ne(e){return e[0]}function oe(e,t){var r={};return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.apply(void 0,n);return i in r?r[i]:r[i]=t.apply(void 0,n)}}function ie(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=0);var o=[];if(r)for(var i=0;i<e.length;i+=1){var s=e[i],a=r.computeDateTop(s.start,t),l=Math.max(a+(n||0),r.computeDateTop(s.end,t));o.push({start:Math.round(a),end:Math.round(l)})}return o}var se=(0,p.SPZ)({hour:"numeric",minute:"2-digit",meridiem:!1}),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),(0,p.azq)(p.h2k,(0,l.pi)({},this.props,{defaultTimeFormat:se,extraClassNames:e}))},t}(p.H6J),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,p.azq)(p.R_3,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&(0,p.azq)("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(p.H6J),ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=(0,p.HPs)(p.hak),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=r.options.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||n&&t.dateSelectionSegs||[],i=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,r.options.eventOrder);return(0,p.azq)(p.hJ8,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(r,a,u){return(0,p.azq)("td",(0,l.pi)({ref:r,className:["fc-timegrid-col"].concat(a,t.extraClassNames||[]).join(" ")},u,t.extraDataAttrs),(0,p.azq)("div",{className:"fc-timegrid-col-frame"},(0,p.azq)("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),(0,p.azq)("div",{className:"fc-timegrid-col-events"}
2,e.renderFgSegs(s,i,!1,!1,!1)),(0,p.azq)("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(o,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(n))),(0,p.azq)("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),(0,p.azq)(le,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,r,n,o){var i=this.props;return i.forPrint?ce(e,i):this.renderPositionedFgSegs(e,t,r,n,o)},t.prototype.renderPositionedFgSegs=function(e,t,r,n,o){var i=this,s=this.context.options,a=s.eventMaxStack,u=s.eventShortHeight,c=s.eventOrderStrict,d=s.eventMinHeight,h=this.props,f=h.date,g=h.slatCoords,v=h.eventSelection,m=h.todayRange,y=h.nowDate,S=r||n||o,R=function(e,t,r,n){for(var o=[],i=[],s=0;s<e.length;s+=1){var a=t[s];a?o.push({index:s,thickness:1,span:a}):i.push(e[s])}for(var l=ee(o,r,n),u=l.segRects,c=l.hiddenGroups,d=[],p=0,h=u;p<h.length;p++){var f=h[p];d.push({seg:e[f.index],rect:f})}for(var g=0,v=i;g<v.length;g++){var m=v[g];d.push({seg:m,rect:null})}return{segPlacements:d,hiddenGroups:c}}(e,ie(e,f,g,d),c,a),E=R.segPlacements,C=R.hiddenGroups;return(0,p.azq)(p.HYg,null,this.renderHiddenGroups(C,e),E.map((function(e){var s=e.seg,a=e.rect,c=s.eventRange.instance.instanceId,d=S||Boolean(!t[c]&&a),h=de(a&&a.span),f=!S&&a?i.computeSegHStyle(a):{left:0,right:0},g=Boolean(a)&&a.stackForward>0,R=Boolean(a)&&a.span.end-a.span.start<u;return(0,p.azq)("div",{className:"fc-timegrid-event-harness"+(g?" fc-timegrid-event-harness-inset":""),key:c,style:(0,l.pi)((0,l.pi)({visibility:d?"":"hidden"},h),f)},(0,p.azq)(ae,(0,l.pi)({seg:s,isDragging:r,isResizing:n,isDateSelecting:o,isSelected:c===v,isShort:R},(0,p.jHR)(s,m,y))))})))},t.prototype.renderHiddenGroups=function(e,t){var r=this.props,n=r.extraDateSpan,o=r.dateProfile,i=r.todayRange,s=r.nowDate,a=r.eventSelection,l=r.eventDrag,u=r.eventResize;return(0,p.azq)(p.HYg,null,e.map((function(e){var r,c,d=de(e.span),h=(r=e.entries,c=t,r.map((function(e){return c[e.index]})));return(0,p.azq)(Q,{key:(0,p.dS)((0,p.VV4)(h)),hiddenSegs:h,top:d.top,bottom:d.bottom,extraDateSpan:n,dateProfile:o,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:u})})))},t.prototype.renderFillSegs=function(e,t){var r=this.props,n=this.context,o=ie(e,r.date,r.slatCoords,n.options.eventMinHeight).map((function(n,o){var i=e[o];return(0,p.azq)("div",{key:(0,p.rRV)(i.eventRange),className:"fc-timegrid-bg-harness",style:de(n)},"bg-event"===t?(0,p.azq)(p.I_K,(0,l.pi)({seg:i},(0,p.jHR)(i,r.todayRange,r.nowDate))):(0,p.MA3)(t))}));return(0,p.azq)(p.HYg,null,o)},t.prototype.renderNowIndicator=function(e){var t=this.props,r=t.slatCoords,n=t.date;return r?e.map((function(e,t){return(0,p.azq)(p.AOy,{isAxis:!1,date:n,key:t},(function(t,o,i,s){return(0,p.azq)("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(o).join(" "),style:{top:r.computeDateTop(e.start,n)}},s)}))})):null},t.prototype.computeSegHStyle=function(e){var t,r,n=this.context,o=n.isRtl,i=n.options.slotEventOverlap,s=e.levelCoord,a=e.levelCoord+e.thickness;i&&(a=Math.min(1,s+2*(a-s))),o?(t=1-a,r=s):(t=s,r=1-a);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*r+"%"};return i&&!e.stackForward&&(l[o?"marginLeft":"marginRight"]=20),l},t}(p.H6J);function ce(e,t){var r=t.todayRange,n=t.nowDate,o=t.eventSelection,i=t.eventDrag,s=t.eventResize,a=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return(0,p.azq)(p.HYg,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return(0,p.azq)("div",{key:t,style:{visibility:a[t]?"hidden":""}},(0,p.azq)(ae,(0,l.pi)({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===o,isShort:!1},(0,p.jHR)(e,r,n))))})))}function de(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=(0,p.HPs)(J),t.splitBgEventSegs=(0,p.HPs)(J),t.splitBusinessHourSegs=(0,p.HPs)(J),t.splitNowIndicatorSegs=(0,p.HPs)(J),t.splitDateSelectionSegs=(0,p.HPs)(J),t.splitEventDrag=(0,p.HPs)(K),t.splitEventResize=(0,p.HPs)(K),t.rootElRef=(0,p.VfA)(),t.cellElRefs=new p.lAU,t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),n=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,n),i=this.splitBgEventSegs(t.bgEventSegs,n),s=this.splitBusinessHourSegs(t.businessHourSegs,n),a=this.splitNowIndicatorSegs(t.nowIndicatorSegs,n),l=this.splitDateSelectionSegs(t.dateSelectionSegs,n),u=this.splitEventDrag(t.eventDrag,n),c=this.splitEventResize(t.eventResize,n);return(0,p.azq)("div",{className:"fc-timegrid-cols",ref:this.rootElRef},(0,p.azq)("table",{style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,(0,p.azq)("tbody",null,(0,p.azq)("tr",null,t.axis&&(0,p.azq)("td",{className:"fc-timegrid-col fc-timegrid-axis"},(0,p.azq)("div",{className:"fc-timegrid-col-frame"},(0,p.azq)("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof r&&(0,p.azq)(p.AOy,{isAxis:!0,date:t.nowDate},(function(e,t,n,o){return(0,p.azq)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{to
2p:r}},o)}))))),t.cells.map((function(r,n){return(0,p.azq)(ue,{key:r.key,elRef:e.cellElRefs.createRef(r.key),dateProfile:t.dateProfile,date:r.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:r.extraHookProps,extraDataAttrs:r.extraDataAttrs,extraClassNames:r.extraClassNames,extraDateSpan:r.extraDateSpan,fgEventSegs:o[n],bgEventSegs:i[n],businessHourSegs:s[n],nowIndicatorSegs:a[n],dateSelectionSegs:l[n],eventDrag:u[n],eventResize:c[n],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new p.zIV(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))},t}(p.H6J);var he=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=(0,p.HPs)(fe),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var r=t.props.onScrollTopRequest,n=t.state.slatCoords;if(r&&n){if(e.time){var o=n.computeTimeTop(e.time);(o=Math.ceil(o))&&(o+=1),r(o)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return(0,p.azq)("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},(0,p.azq)(X,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),(0,p.azq)(pe,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var r=this.context,n=r.dateEnv,o=r.options,i=this.colCoords,s=this.props.dateProfile,a=this.state.slatCoords,u=this.processSlotOptions(this.props.slotDuration,o.snapDuration),c=u.snapDuration,d=u.snapsPerSlot,h=i.leftToIndex(e),f=a.positions.topToIndex(t);if(null!=h&&null!=f){var g=this.props.cells[h],v=a.positions.tops[f],m=a.positions.getHeight(f),y=(t-v)/m,
2S=f*d+Math.floor(y*d),R=this.props.cells[h].date,E=(0,p.nlJ)(s.slotMinTime,(0,p.uVS)(c,S)),C=n.add(R,E),b=n.add(C,c);return{dateProfile:s,dateSpan:(0,l.pi)({range:{start:C,end:b},allDay:!1},g.extraDateSpan),dayEl:i.els[h],rect:{left:i.lefts[h],right:i.rights[h],top:v,bottom:v+m},layer:0}}return null},t}(p.IdW);function fe(e,t){var r=t||e,n=(0,p.ltK)(e,r);return null===n&&(r=e,n=1),{snapDuration:r,snapsPerSlot:n}}var ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.sliceRange=function(e,t){for(var r=[],n=0;n<t.length;n+=1){var o=(0,p.cMs)(e,t[n]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:n})}return r},t}(p.RVT),ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=(0,p.HPs)(me),t.slicer=new ge,t.timeColsRef=(0,p.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=t.dateProfile,o=t.dayTableModel,i=r.options.nowIndicator,s=this.buildDayRanges(o,n,r.dateEnv);return(0,p.azq)(p.wh8,{unit:i?"minute":"day"},(function(a,u){return(0,p.azq)(he,(0,l.pi)({ref:e.timeColsRef},e.slicer.sliceProps(t,n,null,r,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:n,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:o.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:a,nowIndicatorSegs:i&&e.slicer.sliceNowDate(a,r,s),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},t}(p.IdW);function me(e,t,r){for(var n=[],o=0,i=e.headerDates;o<i.length;o++){var s=i[o];n.push({start:r.add(s,t.slotMinTime),end:r.add(s,t.slotMaxTime)})}return n}var ye=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Se(e,t,r,n,o){for(var i=new Date(0),s=e,a=(0,p.Pvs)(0),l=r||function(e){var t,r,n;for(t=ye.length-1;t>=0;t-=1)if(r=(0,p.Pvs)(ye[t]),null!==(n=(0,p.ltK)(r,e))&&n>1)return r;return e}(n),u=[];(0,p.TTZ)(s)<(0,p.TTZ)(t);){var c=o.add(i,s),d=null!==(0,p.ltK)(a,l);u.push({date:c,time:s,key:c.toISOString(),isoTimeStr:(0,p.Zjx)(c),isLabeled:d}),s=(0,p.nlJ)(s,n),a=(0,p.nlJ)(a,n)}return u}var Re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=(0,p.HPs)(Ee),t.buildSlatMetas=(0,p.HPs)(Se),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.context,r=t.options,n=t.dateEnv,o=t.dateProfileGenerator,i=this.props,s=i.dateProfile,a=this.buildTimeColsModel(s,o),u=this.allDaySplitter.splitProps(i),c=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,r.slotLabelInterval,r.slotDuration,n),d=r.dayMinWidth,h=!d,f=d,g=r.dayHeaders&&(0,p.azq)(p.lR3,{dates:a.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),v=!1!==r.allDaySlot&&function(t){return(0,p.azq)(N,(0,l.pi)({},u.allDay,{dateProfile:s,dayTableModel:a,nextDayThreshold:r.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:h?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint},e.getAllDayMaxEventProps()))},m=function(t){return(0,p.azq)(ve,(0,l.pi)({},u.timed,{dayTableModel:a,dateProfile:s,axis:h,slotDuration:r.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return f?this.renderHScrollLayout(g,v,m,a.colCnt,d,c,this.state.slatCoords):this.renderSimpleLayout(g,v,m)},t}(G);function Ee(e,t){var r=new p.xB8(e.renderRange,t);return new p.xVj(r,!1)}var Ce={allDaySlot:Boolean},be=(0,p.rxu)({initialView:"timeGridWeek",optionRefiners:Ce,views:{timeGrid:{component:Re,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),De=r(2191);De.vc.touchMouseIgnoreWait=500;var we=0,xe=0,Pe=!1,ze=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&t.tryStart(e)){var r=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",r),t.initScrollWatch(r),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var r=t.createEventFromMouse(e);t.recordCoords(r),t.emitter.trigger("pointermove",r)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var r=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",r),t.initScrollWatch(r);var n=e.target;t.shouldIgnoreMove||n.addEventListener("touchmove",t.handleTouchMove),n.addEventListener("touchend",t.handleTouchEnd),n.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var r=t.createEventFromTouch(e);t.recordCoords(r),t.emitter.trigger("pointermove",r)},this.handleTouchEnd=function(e){if(t.isDragging){var r=e.target;r.removeEventListener("touchmove",t.handleTouchMove),r.removeEventListener("touchend",t.handleTouchEnd),r.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,we+=1,setTimeout((function(){we-=1}),De.vc.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var r=window.pageXOffset-t.prevScrollX+t.prevPageX,n=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:r,pageY:n,deltaX:r-t.origPageX,deltaY:n-t.origPageY})}},this.containerEl=e,this.emitter=new De.Q5$,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(xe+=1)&&window.addEventListener("touchmove",Te,{passive:!1})}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(xe-=1)||window.removeEventListener("touchmove",Te,{passive:!1})}
2,e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),r=e.target;return!(!t||this.handleSelector&&!(0,De.x_n)(r,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){Pe=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?(0,De.x_n)(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return we||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(Pe=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var r=0,n=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,n=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:n}},e.prototype.createEventFromTouch=function(e,t){var r,n,o=e.touches,i=0,s=0;return o&&o.length?(r=o[0].pageX,n=o[0].pageY):(r=e.pageX,n=e.pageY),t?(this.origPageX=r,this.origPageY=n):(i=r-this.origPageX,s=n-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:n,deltaX:i,deltaY:s}},e}();function Te(e){Pe&&e.preventDefault()}var He=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var r=this,n=function(){r.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)},e.prototype.doRevertAnimation=function(e,t){var r=this.mirrorEl,n=this.sourceEl.getBoundingClientRect();r.style.transition="top "+t+"ms,left "+t+"ms",(0,De.bg6)(r,{left:n.left,top:n.top}),(0,De.ONu)(r,(function(){r.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&((0,De.bXf)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&(0,De.bg6)(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),(0,De.bg6)(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),Me=function(e){function t(t,r){var n=e.call(this)||this;return n.handleScroll=function(){n.scrollTop=n.scrollController.getScrollTop(),n.scrollLeft=n.scrollController.getScrollLeft(),n.handleScrollChange()},n.scrollController=t,n.doesListening=r,n.scrollTop=n.origScrollTop=t.getScrollTop(),n.scrollLeft=n.origScrollLeft=t.getScrollLeft(),n.scrollWidth=t.getScrollWidth(),n.scrollHeight=t.getScrollHeight(),n.clientWidth=t.getClientWidth(),n.clientHeight=t.getClientHeight(),n.clientRect=n.computeClientRect(),n.doesListening&&n.getEventTarget().addEventListener("scroll",n.handleScroll),n}return(0,l.ZT)(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(De.Qgo),ke=function(e){function t(t,r){return e.call(this,new De.A9I(t),r)||this}return(0,l.ZT)(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return(0,De.skW)(this.scrollController.el)},t}(Me),qe=function(e){function t(t){return e.call(this,new De.Obu,t)||this}return(0,l.ZT)(t,e),t.prototype.getEventTarget=function(){return window}
2,t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(Me),Ie="function"==typeof performance?performance.now:Date.now,Ne=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var r=Ie();e.handleSide(t,(r-e.msSinceRequest)/1e3),e.requestAnimation(r)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var r=e-window.pageXOffset,n=t-window.pageYOffset,o=null===this.pointerScreenY?0:n-this.pointerScreenY,i=null===this.pointerScreenX?0:r-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=n,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ie()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var r=e.scrollCache,n=this.edgeThreshold,o=n-e.distance,i=o*o/(n*n)*this.maxVelocity*t,s=1;switch(e.name){case"left":s=-1;case"right":r.setScrollLeft(r.getScrollLeft()+i*s);break;case"top":s=-1;case"bottom":r.setScrollTop(r.getScrollTop()+i*s)}},e.prototype.computeBestEdge=function(e,t){for(var r=this.edgeThreshold,n=null,o=0,i=this.scrollCaches;o<i.length;o++){var s=i[o],a=s.clientRect,l=e-a.left,u=a.right-e,c=t-a.top,d=a.bottom-t;l>=0&&u>=0&&c>=0&&d>=0&&(c<=r&&this.everMovedUp&&s.canScrollUp()&&(!n||n.distance>c)&&(n={scrollCache:s,name:"top",distance:c}),d<=r&&this.everMovedDown&&s.canScrollDown()&&(!n||n.distance>d)&&(n={scrollCache:s,name:"bottom",distance:d}),l<=r&&this.everMovedLeft&&s.canScrollLeft()&&(!n||n.distance>l)&&(n={scrollCache:s,name:"left",distance:l}),u<=r&&this.everMovedRight&&s.canScrollRight()&&(!n||n.distance>u)&&(n={scrollCache:s,name:"right",distance:u}))}return n},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map((function(e){return e===window?new qe(!1):new ke(e,!1)}))},e.prototype.queryScrollEls=function(e){for(var t=[],r=0,n=this.scrollQuery;r<n.length;r++){var o=n[r];"object"==typeof o?t.push(o):t.push.apply(t,Array.prototype.slice.call((0,De.xSu)(e).querySelectorAll(o)))}return t},e}(),We=function(e){function t(t,r){var n=e.call(this,t)||this;n.containerEl=t,n.delay=null,n.minDistance=0,n.touchScrollAllowed=!0,n.mirrorNeedsRevert=!1,n.isInteracting=!1,n.isDragging=!1,n.isDelayEnded=!1,n.isDistanceSurpassed=!1,n.delayTimeoutId=null,n.onPointerDown=function(e){n.isDragging||(n.isInteracting=!0,n.isDelayEnded=!1,n.isDistanceSurpassed=!1,(0,De.ZSf)(document.body),(0,De.ipI)(document.body),e.isTouch||e.origEvent.preventDefault(),n.emitter.trigger("pointerdown",e),n.isInteracting&&!n.pointer.shouldIgnoreMove&&(n.mirror.setIsVisible(!1),n.mirror.start(e.subjectEl,e.pageX,e.pageY),n.startDelay(e),n.minDistance||n.handleDistanceSurpassed(e)))},n.onPointerMove=function(e){if(n.isInteracting){if(n.emitter.trigger("pointermove",e),!n.isDistanceSurpassed){var t=n.minDistance,r=e.deltaX,o=e.deltaY;r*r+o*o>=t*t&&n.handleDistanceSurpassed(e)}n.isDragging&&("scroll"!==e.origEvent.type&&(n.mirror.handleMove(e.pageX,e.pageY),n.autoScroller.handleMove(e.pageX,e.pageY)),n.emitter.trigger("dragmove",e))}},n.onPointerUp=function(e){n.isInteracting&&(n.isInteracting=!1,(0,De.sGN)(document.body),(0,De.N0T)(document.body),n.emitter.trigger("pointerup",e),n.isDragging&&(n.autoScroller.stop(),n.tryStopDrag(e)),n.delayTimeoutId&&(clearTimeout(n.delayTimeoutId),n.delayTimeoutId=null))};var o=n.pointer=new ze(t);return o.emitter.on("pointerdown",n.onPointerDown),o.emitter.on("pointermove",n.onPointerMove),o.emitter.on("pointerup",n.onPointerUp),r&&(o.selector=r),n.mirror=new He,n.autoScroller=new Ne,n}return(0,l.ZT)(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(De.KDF),Ae=function(){function e(e){this.origRect=(0,De.AYo)(e),this.scrollCaches=(0,De.U4g)(e).map((function(e){return new ke(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;
2e<t.length;e++){t[e].destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,r=this.scrollCaches;t<r.length;t++){var n=r[t];e+=n.origScrollLeft-n.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,r=this.scrollCaches;t<r.length;t++){var n=r[t];e+=n.origScrollTop-n.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var r,n,o={left:e,top:t},i=0,s=this.scrollCaches;i<s.length;i++){var a=s[i];if(r=a.getEventTarget(),n=void 0,"HTML"!==(n=r.tagName)&&"BODY"!==n&&!(0,De.BKI)(o,a.clientRect))return!1}return!0},e}();var Oe=function(){function e(e,t){var r=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=r.dragging;r.initialHit=null,r.movingHit=null,r.finalHit=null,r.prepareHits(),r.processFirstCoord(e),r.initialHit||!r.requireInitial?(t.setIgnoreMove(!1),r.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){r.emitter.trigger("dragstart",e),r.handleMove(e,!0)},this.handleDragMove=function(e){r.emitter.trigger("dragmove",e),r.handleMove(e)},this.handlePointerUp=function(e){r.releaseHits(),r.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){r.movingHit&&r.emitter.trigger("hitupdate",null,!0,e),r.finalHit=r.movingHit,r.movingHit=null,r.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new De.Q5$}return e.prototype.processFirstCoord=function(e){var t,r={left:e.pageX,top:e.pageY},n=r,o=e.subjectEl;o instanceof HTMLElement&&(t=(0,De.AYo)(o),n=(0,De.Jq9)(n,t));var i=this.initialHit=this.queryHitForOffset(n.left,n.top);if(i){if(this.useSubjectCenter&&t){var s=(0,De.VEA)(t,i.rect);s&&(n=(0,De.iFU)(s))}this.coordAdjust=(0,De.vrY)(n,r)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&Le(this.movingHit,r)||(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=(0,De._aR)(this.droppableStore,(function(e){return e.component.prepareHits(),new Ae(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var r=this.droppableStore,n=this.offsetTrackers,o=null;for(var i in r){var s=r[i].component,a=n[i];if(a&&a.isWithinClipping(e,t)){var l=a.computeLeft(),u=a.computeTop(),c=e-l,d=t-u,p=a.origRect,h=p.right-p.left,f=p.bottom-p.top;if(c>=0&&c<h&&d>=0&&d<f){var g=s.queryHit(c,d,h,f);g&&(0,De.urV)(g.dateProfile.activeRange,g.dateSpan.range)&&(!o||g.layer>o.layer)&&(g.componentId=i,g.context=s.context,g.rect.left+=l,g.rect.right+=l,g.rect.top+=u,g.rect.bottom+=u,o=g)}}}return o},e}();function Le(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(0,De.omy)(e.dateSpan,t.dateSpan)}function Ve(e,t){for(var r,n,o={},i=0,s=t.pluginHooks.datePointTransforms;i<s.length;i++){var a=s[i];(0,l.pi)(o,a(e,t))}return(0,l.pi)(o,(r=e,{date:(n=t.dateEnv).toDate(r.range.start),dateStr:n.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),o}var je=function(e){function t(t){var r=e.call(this,t)||this;r.handlePointerDown=function(e){var t=r.dragging,n=e.origEvent.target;t.setIgnoreMove(!r.component.isValidDateDownEl(n))},r.handleDragEnd=function(e){var t=r.component;if(!r.dragging.pointer.wasTouchScroll){var n=r.hitDragging,o=n.initialHit,i=n.finalHit;if(o&&i&&Le(o,i)){var s=t.context,a=(0,l.pi)((0,l.pi)({},Ve(o.dateSpan,s)),{dayEl:o.dayEl,jsEvent:e.origEvent,view:s.viewApi||s.calendarApi.view});s.emitter.trigger("dateClick",a)}}},r.dragging=new We(t.el),r.dragging.autoScroller.isEnabled=!1;var n=r.hitDragging=new Oe(r.dragging,(0,De.Rac)(t));return n.emitter.on("pointerdown",r.handlePointerDown),n.emitter.on("dragend",r.handleDragEnd),r}return(0,l.ZT)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(De.U4m),Ue=function(e){function t(t){var r=e.call(this,t)||this;r.dragSelection=null,r.handlePointerDown=function(e){var t=r,n=t.component,o=t.dragging,i=n.context.options.selectable&&n.isValidDateDownEl(e.origEvent.target);o.setIgnoreMove(!i),o.delay=e.isTouch?function(e){var t=e.context.options,r=t.selectLongPressDelay;null==r&&(r=t.longPressDelay);return r}(n):null},r.handleDragStart=function(e){r.component.context.calendarApi.unselect(e)},r.handleHitUpdate=function(e,t){var n=r.component.context,o=null,i=!1;if(e){var s=r.hitDragging.initialHit;e.componentId===s.componentId&&r.isHitComboAllowed&&!r.isHitComboAllowed(s,e)||(o=function(e,t,r){var n=e.dateSpan,o=t.dateSpan,i=[n.range.start,n.range.end,o.range.start,o.range.end];i.sort(De.z6t);for(var s={},a=0,u=r;a<u.length;a++){var c=(0,u[a])(e,t);if(!1===c)return null;c&&(0,l.pi)(s,c)}return s.range={start:i[0],end:i[3]},s.allDay=n.allDay,s}(s,e,n.pluginHooks.dateSelectionTransformers)),o&&(0,De.g4F)(o,e.dateProfile,n)||(i=!0,o=null)}o?n.dispatch({type:"SELECT_DATES",selection:o}):t||n.dispatch({type:"UNSELECT_DATES"}),i?(0,De.deF)():(0,De._OJ)(),t||(r.dragSelection=o)},r.handlePointerUp=function(e){r.dragSelection&&((0,De.HpC)(r.dragSelection,e,r.component.context),r.dragSelection=null)};var n=t.component.context.options,o=r.dragging=new We(t.el);o.touchScrollAllowed=!1,o.minDistance=n.selectMinDistance||0,o.autoScroller.isEnabled=n.dragScroll;var i=r.hitDragging=new Oe(r.dragging,(0,De.Rac)(t));return i.emitter.on("pointerdown",r.handlePointerDown),i.emitter.on("dragstart",r.handleDragStart),i.emitter.on("hitupdate",r.handleHitUpdate),i.emitter.on("pointerup",r.handlePointerUp),r}return(0,l.ZT)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(De.U4m);var _e=function(e){function t(r){var n=e.call(this,r)||this;n.subjectEl=null,n.subjectSeg=null,n.isDragging=!1,n.eventRange=null,n.relevantEvents=null,n.receivingContext=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=e.origEvent.target,r=n,o=r.component,i=r.dragging,s=i.mirror,a=o.context.options,l=o.context;n.subjectEl=e.subjectEl;var u=n.subjectSeg=(0,De.BJe)(e.subjectEl),c=(n.eventRange=u.eventRange).instance.instanceId;n.relevantEvents=(0,De.SOE)(l.getCurrentData().eventStore,c),i.minDistance=e.isTouch?0:a.eventDragMinDistance,i.delay=e.isTouch&&c!==o.props.eventSelection?function(e){var t=e.context.options,r=t.eventLongPressDelay;null==r&&(r=t.longPressDelay);return r}(o):null,a.fixedMirrorParent?s.parentNode=a.fixedMirrorParent:s.parentNode=(0,De.x_n)(t,".fc"),s.revertDuration=a.dragRevertDuration;var d=o.isValidSegDownEl(t)&&!(0,De.x_n)(t,".fc-event-resizer");i.setIgnoreMove(!d),n.isDragging=d&&e.subjectEl.classList.contains("fc-event-draggable")},n.handleDragStart=function(e){var t=n.component.context,r=n.eventRange,o=r.instance.instanceId;e.isTouch?o!==n.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:o}):t.dispatch({type:"UNSELECT_EVENT"}),n.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:n.subjectEl,event:new De.voO(t,r.def,r.instance),jsEvent:e.origEvent,view:t.viewApi}))},n.handleHitUpdate=function(e,t){if(n.isDragging){var r=n.relevantEvents,o=n.hitDragging.initialHit,i=n.component.context,s=null,a=null,l=null,u=!1,c={affectedEvents:r,mutatedEvents:(0,De.ifx)(),isEvent:!0};if(e){var d=(s=e.context).options;i===s||d.editable&&d.droppable?(a=function(e,t,r){var n=e.dateSpan,o=t.dateSpan,i=n.range.start,s=o.range.start,a={};n.allDay!==o.allDay&&(a.allDay=o.allDay,a.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(i=(0,De.b7Q)(i)));var l=(0,De.Pe9)(i,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(a.allDay=!1);for(var u={datesDelta:l,standardProps:a},c=0,d=r;c<d.length;c++){(0,d[c])(u,e,t)}return u}(o,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(l=(0,De.rfG)(r,s.getCurrentData().eventUiBases,a,s),c.mutatedEvents=l,(0,De.WoG)(c,e.dateProfile,s)||(u=!0,a=null,l=null,c.mutatedEvents=(0,De.ifx)())):s=null}n.displayDrag(s,c),u?(0,De.deF)():(0,De._OJ)(),t||(i===s&&Le(o,e)&&(a=null),n.dragging.setMirrorNeedsRevert(!a),n.dragging.setMirrorIsVisible(!e||!(0,De.xSu)(n.subjectEl).querySelector(".fc-event-mirror")),n.receivingContext=s,n.validMutation=a,n.mutatedRelevantEvents=l)}},n.handlePointerUp=function(){n.isDragging||n.cleanup()},n.handleDragEnd=function(e){if(n.isDragging){var t=n.component.context,r=t.viewApi,o=n,i=o.receivingContext,s=o.validMutation,a=n.eventRange.def,u=n.eventRange.instance,c=new De.voO(t,a,u),d=n.relevantEvents,p=n.mutatedRelevantEvents,h=n.hitDragging.finalHit;if(n.clearDrag(),t.emitter.trigger("eventDragStop",{el:n.subjectEl,event:c,jsEvent:e.origEvent,view:r}),s){if(i===t){var f=new De.voO(t,p.defs[a.defId],u?p.instances[u.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:p});for(var g={oldEvent:c,event:f,relatedEvents:(0,De.vuT)(p,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}},v={},m=0,y=t.getCurrentData().pluginHooks.eventDropTransformers;m<y.length;m++){var S=y[m];(0,l.pi)(v,S(s,t))}t.emitter.trigger("eventDrop",(0,l.pi)((0,l.pi)((0,l.pi)({},g),v),{el:e.subjectEl,delta:s.datesDelta,jsEvent:e.origEvent,view:r})),t.emitter.trigger("eventChange",g)}else if(i){var R={event:c,relatedEvents:(0,De.vuT)(d,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}};t.emitter.trigger("eventLeave",(0,l.pi)((0,l.pi)({},R),{draggedEl:e.subjectEl,view:r}
2)),t.dispatch({type:"REMOVE_EVENTS",eventStore:d}),t.emitter.trigger("eventRemove",R);var E=p.defs[a.defId],C=p.instances[u.instanceId],b=new De.voO(i,E,C);i.dispatch({type:"MERGE_EVENTS",eventStore:p});var D={event:b,relatedEvents:(0,De.vuT)(p,i,C),revert:function(){i.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};i.emitter.trigger("eventAdd",D),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),i.emitter.trigger("drop",(0,l.pi)((0,l.pi)({},Ve(h.dateSpan,i)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:h.context.viewApi})),i.emitter.trigger("eventReceive",(0,l.pi)((0,l.pi)({},D),{draggedEl:e.subjectEl,view:h.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}n.cleanup()};var o=n.component.context.options,i=n.dragging=new We(r.el);i.pointer.selector=t.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=o.dragScroll;var s=n.hitDragging=new Oe(n.dragging,De.T6u);return s.useSubjectCenter=r.useEventCenter,s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("pointerup",n.handlePointerUp),s.emitter.on("dragend",n.handleDragEnd),n}return(0,l.ZT)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var r=this.component.context,n=this.receivingContext;n&&n!==e&&(n===r?n.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:(0,De.ifx)(),isEvent:!0}}):n.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t}(De.U4m);var Fe=function(e){function t(t){var r=e.call(this,t)||this;r.draggingSegEl=null,r.draggingSeg=null,r.eventRange=null,r.relevantEvents=null,r.validMutation=null,r.mutatedRelevantEvents=null,r.handlePointerDown=function(e){var t=r.component,n=r.querySegEl(e),o=(0,De.BJe)(n),i=r.eventRange=o.eventRange;r.dragging.minDistance=t.context.options.eventDragMinDistance,r.dragging.setIgnoreMove(!r.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&r.component.props.eventSelection!==i.instance.instanceId)},r.handleDragStart=function(e){var t=r.component.context,n=r.eventRange;r.relevantEvents=(0,De.SOE)(t.getCurrentData().eventStore,r.eventRange.instance.instanceId);var o=r.querySegEl(e);r.draggingSegEl=o,r.draggingSeg=(0,De.BJe)(o),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:o,event:new De.voO(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},r.handleHitUpdate=function(e,t,n){var o=r.component.context,i=r.relevantEvents,s=r.hitDragging.initialHit,a=r.eventRange.instance,l=null,u=null,c=!1,d={affectedEvents:i,mutatedEvents:(0,De.ifx)(),isEvent:!0};e&&(e.componentId===s.componentId&&r.isHitComboAllowed&&!r.isHitComboAllowed(s,e)||(l=function(e,t,r,n){var o=e.context.dateEnv,i=e.dateSpan.range.start,s=t.dateSpan.range.start,a=(0,De.Pe9)(i,s,o,e.largeUnit);if(r){if(o.add(n.start,a)<n.end)return{startDelta:a}}else if(o.add(n.end,a)>n.start)return{endDelta:a};return null}(s,e,n.subjectEl.classList.contains("fc-event-resizer-start"),a.range)));l&&(u=(0,De.rfG)(i,o.getCurrentData().eventUiBases,l,o),d.mutatedEvents=u,(0,De.WoG)(d,e.dateProfile,o)||(c=!0,l=null,u=null,d.mutatedEvents=null)),u?o.dispatch({type:"SET_EVENT_RESIZE",state:d}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),c?(0,De.deF)():(0,De._OJ)(),t||(l&&Le(s,e)&&(l=null),r.validMutation=l,r.mutatedRelevantEvents=u)},r.handleDragEnd=function(e){var t=r.component.context,n=r.eventRange.def,o=r.eventRange.instance,i=new De.voO(t,n,o),s=r.relevantEvents,a=r.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:r.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),r.validMutation){var u=new De.voO(t,a.defs[n.defId],o?a.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:a});var c={oldEvent:i,event:u,relatedEvents:(0,De.vuT)(a,t,o),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",(0,l.pi)((0,l.pi)({},c),{el:r.draggingSegEl,startDelta:r.validMutation.startDelta||(0,De.Pvs)(0),endDelta:r.validMutation.endDelta||(0,De.Pvs)(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");r.draggingSeg=null,r.relevantEvents=null,r.validMutation=null};var n=t.component,o=r.dragging=new We(t.el);o.pointer.selector=".fc-event-resizer",o.touchScrollAllowed=!1,o.autoScroller.isEnabled=n.context.options.dragScroll;var i=r.hitDragging=new Oe(r.dragging,(0,De.Rac)(t));return i.emitter.on("pointerdown",r.handlePointerDown),i.emitter.on("dragstart",r.handleDragStart),i.emitter.on("hitupdate",r.handleHitUpdate),i.emitter.on("dragend",r.handleDragEnd),r}return(0,l.ZT)(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return(0,De.x_n)(e.subjectEl,".fc-event")},t}(De.U4m);var Ge=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var r=t.context.options.unselectCancel,n=(0,De._zt)(e.origEvent);t.matchesCancel=!!(0,De.x_n)(n,r),t.matchesEvent=!!(0,De.x_n)(n,_e.SELECTOR)},this.onDocumentPointerUp=function(e){var r=t.context,n=t.documentPointer,o=r.getCurrentData();if(!n.wasTouchScroll){if(o.dateSelection&&!t.isRecentPointerDateSelect){var i=r.options.unselectAuto;!i||i&&t.matchesCancel||r.calendarApi.unselect(e)}o.eventSelection&&!t.matchesEvent&&r.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var r=this.documentPointer=new ze(document);r.shouldIgnoreMove=!0,r.shouldWatchScroll=!1,r.emitter.on("pointerdown",this.onDocumentPointerDown),r.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),Be={fixedMirrorParent:De.yRu}
2,Ze={dateClick:De.yRu,eventDragStart:De.yRu,eventDragStop:De.yRu,eventDrop:De.yRu,eventResizeStart:De.yRu,eventResizeStop:De.yRu,eventResize:De.yRu,drop:De.yRu,eventReceive:De.yRu,eventLeave:De.yRu},Ye=function(){function e(e,t){var r=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){r.dragMeta=r.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,n){var o=r.hitDragging.dragging,i=null,s=null,a=!1,u={affectedEvents:(0,De.ifx)(),mutatedEvents:(0,De.ifx)(),isEvent:r.dragMeta.create};e&&(i=e.context,r.canDropElOnCalendar(n.subjectEl,i)&&(s=function(e,t,r){for(var n=(0,l.pi)({},t.leftoverProps),o=0,i=r.pluginHooks.externalDefTransforms;o<i.length;o++){var s=i[o];(0,l.pi)(n,s(e,t))}var a=(0,De.Boe)(n,r),u=a.refined,c=a.extra,d=(0,De.mTn)(u,c,t.sourceId,e.allDay,r.options.forceEventDuration||Boolean(t.duration),r),p=e.range.start;e.allDay&&t.startTime&&(p=r.dateEnv.add(p,t.startTime));var h=t.duration?r.dateEnv.add(p,t.duration):(0,De.$Td)(e.allDay,p,r),f=(0,De.$N4)(d.defId,{start:p,end:h});return{def:d,instance:f}}(e.dateSpan,r.dragMeta,i),u.mutatedEvents=(0,De.rod)(s),(a=!(0,De.WoG)(u,e.dateProfile,i))&&(u.mutatedEvents=(0,De.ifx)(),s=null))),r.displayDrag(i,u),o.setMirrorIsVisible(t||!s||!document.querySelector(".fc-event-mirror")),a?(0,De.deF)():(0,De._OJ)(),t||(o.setMirrorNeedsRevert(!s),r.receivingContext=i,r.droppableEvent=s)},this.handleDragEnd=function(e){var t=r,n=t.receivingContext,o=t.droppableEvent;if(r.clearDrag(),n&&o){var i=r.hitDragging.finalHit,s=i.context.viewApi,a=r.dragMeta;if(n.emitter.trigger("drop",(0,l.pi)((0,l.pi)({},Ve(i.dateSpan,n)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:s})),a.create){var u=(0,De.rod)(o);n.dispatch({type:"MERGE_EVENTS",eventStore:u}),e.isTouch&&n.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instance.instanceId}),n.emitter.trigger("eventReceive",{event:new De.voO(n,o.def,o.instance),relatedEvents:[],revert:function(){n.dispatch({type:"REMOVE_EVENTS",eventStore:u})},draggedEl:e.subjectEl,view:s})}}r.receivingContext=null,r.droppableEvent=null};var n=this.hitDragging=new Oe(e,De.T6u);n.requireInitial=!1,n.emitter.on("dragstart",this.handleDragStart),n.emitter.on("hitupdate",this.handleHitUpdate),n.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?(0,De.WOi)(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?(0,De.WOi)(this.suppliedDragMeta(e)):(t=function(e,t){var r=De.vc.dataAttrPrefix,n=(r?r+"-":"")+t;return e.getAttribute("data-"+n)||""}(e,"event"),r=t?JSON.parse(t):{create:!1},(0,De.WOi)(r));var t,r},e.prototype.displayDrag=function(e,t){var r=this.receivingContext;r&&r!==e&&r.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var r=t.options.dropAccept;return"function"==typeof r?r.call(t.calendarApi,e):"string"!=typeof r||!r||Boolean((0,De.App)(e,r))},e}();De.vc.dataAttrPrefix="";!function(){function e(e,t){var r=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=r.dragging,n=r.settings,o=n.minDistance,i=n.longPressDelay;t.minDistance=null!=o?o:e.isTouch?0:De.kgr.eventDragMinDistance,t.delay=e.isTouch?null!=i?i:De.kgr.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&r.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&r.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;var n=this.dragging=new We(e);n.touchScrollAllowed=!1,null!=t.itemSelector&&(n.pointer.selector=t.itemSelector),null!=t.appendTo&&(n.mirror.parentNode=t.appendTo),n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragstart",this.handleDragStart),new Ye(n,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}();var Xe=function(e){function t(t){var r=e.call(this,t)||this;r.shouldIgnoreMove=!1,r.mirrorSelector="",r.currentMirrorEl=null,r.handlePointerDown=function(e){r.emitter.trigger("pointerdown",e),r.shouldIgnoreMove||r.emitter.trigger("dragstart",e)},r.handlePointerMove=function(e){r.shouldIgnoreMove||r.emitter.trigger("dragmove",e)},r.handlePointerUp=function(e){r.emitter.trigger("pointerup",e),r.shouldIgnoreMove||r.emitter.trigger("dragend",e)};var n=r.pointer=new ze(t);return n.emitter.on("pointerdown",r.handlePointerDown),n.emitter.on("pointermove",r.handlePointerMove),n.emitter.on("pointerup",r.handlePointerUp),r}return(0,l.ZT)(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(De.KDF),Je=(function(){function e(e,t){var r=document;e===document||e instanceof Element?(r=e,t=t||{}):t=e||{};var n=this.dragging=new Xe(r);"string"==typeof t.itemSelector?n.pointer.selector=t.itemSelector:r===document&&(n.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(n.mirrorSelector=t.mirrorSelector),new Ye(n,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}(),(0,De.rxu)({componentInteractions:[je,Ue,_e,Fe],calendarInteractions:[Ge],elementDraggingImpl:We,optionRefiners:Be,listenerRefiners:Ze})),Ke=r(85618),Qe="2021-07-28",$e=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],et={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var tt={schedulerLicenseKey:String},rt=(0,Ke.rxu)({optionRefiners:tt,viewContainerAppends:[function(e){var t=e.options.schedulerLicenseKey,r="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(r)){var n=function(e){if(-1!==$e.indexOf(e))return"valid";var t=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){var r=new Date(1e3*parseInt(t[2],10)),n=new Date(Ke.vc.mockSchedulerReleaseDate||Qe);if((0,Ke.qbb)(n))return(0,Ke.E4D)(n,-372)<r?"valid":"outdated"}return"invalid"}(t);
2if("valid"!==n)return(0,Ke.azq)("div",{className:"fc-license-message",style:et},"outdated"===n?(0,Ke.azq)(Ke.HYg,null,"Your license key is too old to work with this version. ",(0,Ke.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):(0,Ke.azq)(Ke.HYg,null,"Your license key is invalid. ",(0,Ke.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]}),nt=r(44286),ot="2021-07-28",it=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],st={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var at={schedulerLicenseKey:String},lt=(0,nt.rxu)({optionRefiners:at,viewContainerAppends:[function(e){var t=e.options.schedulerLicenseKey,r="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(r)){var n=function(e){if(-1!==it.indexOf(e))return"valid";var t=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){var r=new Date(1e3*parseInt(t[2],10)),n=new Date(nt.vc.mockSchedulerReleaseDate||ot);if((0,nt.qbb)(n))return(0,nt.E4D)(n,-372)<r?"valid":"outdated"}return"invalid"}(t);if("valid"!==n)return(0,nt.azq)("div",{className:"fc-license-message",style:st},"outdated"===n?(0,nt.azq)(nt.HYg,null,"Your license key is too old to work with this version. ",(0,nt.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):(0,nt.azq)(nt.HYg,null,"Your license key is invalid. ",(0,nt.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]}),ut=r(5213),ct="2021-07-28",dt=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],pt={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var ht,ft={schedulerLicenseKey:String},gt=(0,ut.rxu)({optionRefiners:ft,viewContainerAppends:[function(e){var t=e.options.schedulerLicenseKey,r="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(r)){var n=function(e){if(-1!==dt.indexOf(e))return"valid";var t=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){var r=new Date(1e3*parseInt(t[2],10)),n=new Date(ut.vc.mockSchedulerReleaseDate||ct);if((0,ut.qbb)(n))return(0,ut.E4D)(n,-372)<r?"valid":"outdated"}return"invalid"}(t);if("valid"!==n)return(0,ut.azq)("div",{className:"fc-license-message",style:pt},"outdated"===n?(0,ut.azq)(ut.HYg,null,"Your license key is too old to work with this version. ",(0,ut.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):(0,ut.azq)(ut.HYg,null,"Your license key is invalid. ",(0,ut.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]}),vt="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" "),mt=function(){function e(e){var t=this;this.el=e,this.emitter=new ut.Q5$,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new ut.snJ(this._handleWheelWaited.bind(this)),this.scrollWaiter=new ut.snJ(this._handleScrollWaited.bind(this)),this.handleScroll=function(){t.startScroll(),t.emitter.trigger("scroll",t.isRecentlyWheeled,t.isTouching),t.isRecentlyScrolled=!0,t.scrollWaiter.request(500)},this.handleWheel=function(){t.isRecentlyWheeled=!0,t.wheelWaiter.request(500)},this.handleTouchStart=function(){t.isTouching=!0},this.handleTouchEnd=function(){t.isTouching=!1,t.isRecentlyScrolled||t.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(var r=0,n=vt;r<n.length;r++){var o=n[r];e.addEventListener(o,this.handleWheel)}}return e.prototype.destroy=function(){var e=this.el;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(var t=0,r=vt;t<r.length;t++){var n=r[t];e.removeEventListener(n,this.handleWheel)}},e.prototype.startScroll=function(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))},e.prototype.endScroll=function(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())},e.prototype._handleScrollWaited=function(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()},e.prototype._handleWheelWaited=function(){this.isRecentlyWheeled=!1},e}();function yt(e){var t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(Rt()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function St(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(Rt()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}function Rt(){return ht||(ht=function(){var e,t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",t.style.width="1px",t.style.height="1px",t.style.overflow="scroll",t.style.direction="rtl",t.style.fontSize="100px",t.innerHTML="A",document.body.appendChild(t),t.scrollLeft>0?e="positive":(t.scrollLeft=1,e=t.scrollLeft>0?"reverse":"negative");return(0,ut.bXf)(t),e}())}var Et,Ct="undefined"!=typeof navigator&&/Edge/.test(navigator.userAgent),bt=function(){function e(e,t){var r=this;this.scrollEl=e,this.isRtl=t,this.usingRelative=null,this.updateSize=function(){var e=r.scrollEl,t=(0,ut.xlG)(e,".fc-sticky"),n=r.queryElGeoms(t),o=e.clientWidth,i=e.clientHeight;r.usingRelative?function(e,t,r,n,o){e.forEach((function(e,i){var s,a,l=t[i],u=l.naturalBound,c=l.parentBound,d=c.right-c.left,p=c.bottom-c.bottom;d>n||p>o?(s=r[i].left-u.left,a=r[i].top-u.top):(s="",a=""),(0,ut.bg6)(e,{position:"relative",left:s,right:-s,top:a})}))}(t,n,r.computeElDestinations(n,o),o,i):function(e,t,r){e.forEach((function(e,n){var o,i=t[n],s=i.textAlign,a=i.elWidth,l=i.parentBound,u=l.right-l.left;o="center"===s&&u>r?(r-a)/2:"",(0,ut.bg6)(e,{left:o,right:o,top:0})}))}(t,n,o)},this.usingRelative=!function(){null==Et&&(Et=function(){var e=document.createElement("div");e.style.position="sticky",document.body.appendChild(e);var t=window.getComputedStyle(e).position;return(0,ut.bXf)(e),"sticky"===t}());return Et}()||Ct&&t,this.usingRelative&&(this.listener=new mt(e),this.listener.emitter.on("scrollEnd",this.updateSize))}return e.prototype.destroy=function(){this.listener&&this.listener.destroy()},e.prototype.queryElGeoms=function(e){for(var t=this.scrollEl,r=this.isRtl,n=function(e){var t=e.getBoundingClientRect(),r=(0,ut.ld2)(e);return{left:t.left+r.borderLeft+r.scrollbarLeft-yt(e),top:t.top+r.borderTop-e.scrollTop}}(t),o=[],i=0,s=e;i<s.length;i++){var a=s[i],l=(0,ut.sZq)((0,ut.skW)(a.parentNode,!0,!0),-n.left,-n.top),u=a.getBoundingClientRect(),c=window.getComputedStyle(a),d=window.getComputedStyle(a.parentNode).textAlign,p=null;"start"===d?d=r?"right":"left":"end"===d&&(d=r?"left":"right"),"sticky"!==c.position&&(p=(0,ut.sZq)(u,-n.left-(parseFloat(c.left)||0),-n.top-(parseFloat(c.top)||0))),o.push({parentBound:l,naturalBound:p,elWidth:u.width,elHeight:u.height,textAlign:d})}return o},e.prototype.computeElDestinations=function(e,t){var r=this.scrollEl,n=r.scrollTop,o=yt(r),i=o+t;return e.map((function(e){var t,r,s=e.elWidth,a=e.elHeight,l=e.parentBound,u=e.naturalBound;switch(e.textAlign){case"left":t=o;break;case"right":t=i-s;break;case"center":t=(o+i)/2-s/2}return t=Math.min(t,l.right-s),t=Math.max(t,l.left),r=n,r=Math.min(r,l.bottom-a),{left:t,top:r=Math.max(r,u.top)}}))},e}();var Dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=(0,ut.VfA)(),t.state={xScrollbarWidth:0,yScrollbarWidth:0},t.handleScroller=function(e){t.scroller=e,(0,ut.k$v)(t.props.scrollerRef,e)},t.handleSizing=function(){var e=t.props;"scroll-hidden"===e.overflowY&&t.setState({yScrollbarWidth:t.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&t.setState({xScrollbarWidth:t.scroller.getXScrollbarWidth()})},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,r=e.state,n=e.context.
2isRtl&&(0,ut.qDX)(),o=0,i=0,s=0;return"scroll-hidden"===t.overflowX&&(s=r.xScrollbarWidth),"scroll-hidden"===t.overflowY&&null!=r.yScrollbarWidth&&(n?o=r.yScrollbarWidth:i=r.yScrollbarWidth),(0,ut.azq)("div",{ref:this.elRef,className:"fc-scroller-harness"+(t.liquid?" fc-scroller-harness-liquid":"")},(0,ut.azq)(ut.Ttm,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===t.overflowX?"scroll":t.overflowX,overflowY:"scroll-hidden"===t.overflowY?"scroll":t.overflowY,overcomeLeft:o,overcomeRight:i,overcomeBottom:s,maxHeight:"number"==typeof t.maxHeight?t.maxHeight+("scroll-hidden"===t.overflowX?r.xScrollbarWidth:0):"",liquid:t.liquid,liquidIsAbsolute:!0},t.children))},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(e){(0,ut.S6v)(e,this.props)||this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.needsXScrolling=function(){return this.scroller.needsXScrolling()},t.prototype.needsYScrolling=function(){return this.scroller.needsYScrolling()},t}(ut.H6J),wt=function(){function e(e,t){var r=this;this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map((function(e){return r.bindScroller(e)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollListeners;e<t.length;e++){t[e].destroy()}},e.prototype.bindScroller=function(e){var t=this,r=this.scrollEls,n=this.isVertical,o=new mt(e);return o.emitter.on("scroll",(function(o,i){if(!t.isPaused&&((!t.masterEl||t.masterEl!==e&&(o||i))&&t.assignMaster(e),t.masterEl===e))for(var s=0,a=r;s<a.length;s++){var l=a[s];l!==e&&(n?l.scrollTop=e.scrollTop:l.scrollLeft=e.scrollLeft)}})),o.emitter.on("scrollEnd",(function(){t.masterEl===e&&(t.masterEl=null)})),o},e.prototype.assignMaster=function(e){this.masterEl=e;for(var t=0,r=this.scrollListeners;t<r.length;t++){var n=r[t];n.el!==e&&n.endScroll()}},e.prototype.forceScrollLeft=function(e){this.isPaused=!0;for(var t=0,r=this.scrollListeners;t<r.length;t++){St(r[t].el,e)}this.isPaused=!1},e.prototype.forceScrollTop=function(e){this.isPaused=!0;for(var t=0,r=this.scrollListeners;t<r.length;t++){r[t].el.scrollTop=e}this.isPaused=!1},e}(),xt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileColGroupStats=(0,ut.ums)(Ht,qt),t.renderMicroColGroups=(0,ut.ums)(ut.hgf),t.clippedScrollerRefs=new ut.lAU,t.scrollerElRefs=new ut.lAU(t._handleScrollerEl.bind(t)),t.chunkElRefs=new ut.lAU(t._handleChunkEl.bind(t)),t.getStickyScrolling=(0,ut.ums)(Wt,null,At),t.getScrollSyncersBySection=(0,ut.E0)(It.bind(t,!0),null,Nt),t.getScrollSyncersByColumn=(0,ut.E0)(It.bind(t,!1),null,Nt),t.stickyScrollings=[],t.scrollSyncersBySection={},t.scrollSyncersByColumn={},t.rowUnstableMap=new Map,t.rowInnerMaxHeightMap=new Map,t.anyRowHeightsChanged=!1,t.recentSizingCnt=0,t.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},t.handleSizing=function(e,r){if(t.allowSizing()){r||(t.anyRowHeightsChanged=!0);var n={};(e||!r&&!t.rowUnstableMap.size)&&(n.sectionRowMaxHeights=t.computeSectionRowMaxHeights()),t.setState((0,l.pi)((0,l.pi)({shrinkWidths:t.computeShrinkWidths()},t.computeScrollerDims()),n),(function(){t.rowUnstableMap.size||t.updateStickyScrolling()}))}},t.handleRowHeightChange=function(e,r){var n=t,o=n.rowUnstableMap,i=n.rowInnerMaxHeightMap;if(r){o.delete(e);var s=zt(e);i.has(e)&&i.get(e)===s||(i.set(e,s),t.anyRowHeightsChanged=!0),!o.size&&t.anyRowHeightsChanged&&(t.anyRowHeightsChanged=!1,t.setState({sectionRowMaxHeights:t.computeSectionRowMaxHeights()}))}else o.set(e,!0)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,r=e.state,n=e.context,o=r.shrinkWidths,i=this.compileColGroupStats(t.colGroups.map((function(e){return[e]}))),s=this.renderMicroColGroups(i.map((function(e,t){return[e.cols,o[t]]}))),a=(0,ut.SR3)(t.liquid,n),u=this.getDims();u[0],u[1];for(var c,d=t.sections,p=d.length,h=0,f=[],g=[],v=[];h<p&&"header"===(c=d[h]).type;)f.push(this.renderSection(c,h,i,s,r.sectionRowMaxHeights)),h+=1;for(;h<p&&"body"===(c=d[h]).type;)g.push(this.renderSection(c,h,i,s,r.sectionRowMaxHeights)),h+=1;for(;h<p&&"footer"===(c=d[h]).type;)v.push(this.renderSection(c,h,i,s,r.sectionRowMaxHeights)),h+=1;var m=!(0,ut.X45)();return(0,ut.azq)("table",{ref:t.elRef,className:a.join(" ")},function(e,t){var r=e.map((function(e,r){var n=e.width;return"shrink"===n&&(n=e.totalColWidth+(0,ut.fyp)(t[r])+1),(0,ut.azq)("col",{style:{width:n}})}));return ut.azq.apply(void 0,(0,l.ev)(["colgroup",{}],r))}(i,o),Boolean(!m&&f.length)&&ut.azq.apply(void 0,(0,l.ev)(["thead",{}],f)),Boolean(!m&&g.length)&&ut.azq.apply(void 0,(0,l.ev)(["tbody",{}],g)),Boolean(!m&&v.length)&&ut.azq.apply(void 0,(0,l.ev)(["tfoot",{}],v)),m&&ut.azq.apply(void 0,(0,l.ev)((0,l.ev)((0,l.ev)(["tbody",{}],f),g),v)))},t.prototype.renderSection=function(e,t,r,n,o){var i=this;return"outerContent"in e?(0,ut.azq)(ut.HYg,{key:e.key},e.outerContent):(0,ut.azq)("tr",{key:e.key,className:(0,ut.PFj)(e,this.props.liquid
2).join(" ")},e.chunks.map((function(s,a){return i.renderChunk(e,t,r[a],n[a],s,a,(o[t]||[])[a]||[])})))},t.prototype.renderChunk=function(e,t,r,n,o,i,s){if("outerContent"in o)return(0,ut.azq)(ut.HYg,{key:o.key},o.outerContent);var a=this.state,l=a.scrollerClientWidths,u=a.scrollerClientHeights,c=this.getDims(),d=c[0],p=c[1],h=t*p+i,f=i===(!this.context.isRtl||(0,ut.qDX)()?p-1:0),g=t===d-1,v=g&&a.forceXScrollbars,m=f&&a.forceYScrollbars,y=r&&r.allowXScrolling,S=(0,ut.aDZ)(this.props,e),R=(0,ut.VFE)(this.props,e),E=e.expandRows&&R,C=r&&r.totalColMinWidth||"",b=(0,ut.Yvu)(e,o,{tableColGroupNode:n,tableMinWidth:C,clientWidth:void 0!==l[h]?l[h]:null,clientHeight:void 0!==u[h]?u[h]:null,expandRows:E,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:s,reportRowHeightChange:this.handleRowHeightChange}),D=v?g?"scroll":"scroll-hidden":y?g?"auto":"scroll-hidden":"hidden",w=m?f?"scroll":"scroll-hidden":S?f?"auto":"scroll-hidden":"hidden";return b=(0,ut.azq)(Dt,{ref:this.clippedScrollerRefs.createRef(h),scrollerElRef:this.scrollerElRefs.createRef(h),overflowX:D,overflowY:w,liquid:R,maxHeight:e.maxHeight},b),(0,ut.azq)("td",{key:o.key,ref:this.chunkElRefs.createRef(h)},b)},t.prototype.componentDidMount=function(){this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing),this.destroyStickyScrolling(),this.destroyScrollSyncers()},t.prototype.allowSizing=function(){var e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+ut.vc.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10},t.prototype.computeShrinkWidths=function(){var e=this,t=this.compileColGroupStats(this.props.colGroups.map((function(e){return[e]}))),r=this.getDims(),n=r[0],o=r[1],i=n*o,s=[];return t.forEach((function(t,r){if(t.hasShrinkCol){var n=e.chunkElRefs.collect(r,i,o);s[r]=(0,ut.VVk)(n)}})),s},t.prototype.computeSectionRowMaxHeights=function(){for(var e=new Map,t=this.getDims(),r=t[0],n=t[1],o=[],i=0;i<r;i+=1){var s=this.props.sections[i],a=[];if(s&&s.syncRowHeights){for(var l=[],u=0;u<n;u+=1){var c=i*n+u,d=[],p=this.chunkElRefs.currentMap[c];d=p?(0,ut.xlG)(p,".fc-scrollgrid-sync-table tr").map((function(t){var r=zt(t);return e.set(t,r),r})):[],l.push(d)}var h=l[0].length,f=!0;for(u=1;u<n;u+=1){if(!(s.chunks[u]&&void 0!==s.chunks[u].outerContent)&&l[u].length!==h){f=!1;break}}if(f){for(u=0;u<n;u+=1)a.push([]);for(R=0;R<h;R+=1){var g=[];for(u=0;u<n;u+=1){var v=l[u][R];null!=v&&g.push(v)}var m=Math.max.apply(Math,g);for(u=0;u<n;u+=1)a[u].push(m)}}else{for(var y=[],u=0;u<n;u+=1)y.push(Pt(l[u])+l[u].length);for(var S=Math.max.apply(Math,y),u=0;u<n;u+=1){var R,E=l[u].length,C=S-E,b=Math.floor(C/E),D=C-b*(E-1),w=[];for((R=0)<E&&(w.push(D),R+=1);R<E;)w.push(b),R+=1;a.push(w)}}}o.push(a)}return this.rowInnerMaxHeightMap=e,o},t.prototype.computeScrollerDims=function(){for(var e=(0,ut.ewu)(),t=this.getDims(),r=t[0],n=t[1],o=!this.context.isRtl||(0,ut.qDX)()?n-1:0,i=r-1,s=this.clippedScrollerRefs.currentMap,a=this.scrollerElRefs.currentMap,l=!1,u=!1,c={},d={},p=0;p<r;p+=1){if((f=s[g=p*n+o])&&f.needsYScrolling()){l=!0;break}}for(var h=0;h<n;h+=1){var f;if((f=s[g=i*n+h])&&f.needsXScrolling()){u=!0;break}}for(p=0;p<r;p+=1)for(h=0;h<n;h+=1){var g,v=a[g=p*n+h];if(v){var m=v.parentNode;c[g]=Math.floor(m.getBoundingClientRect().width-(h===o&&l?e.y:0)),d[g]=Math.floor(m.getBoundingClientRect().height-(p===i&&u?e.x:0))}}return{forceYScrollbars:l,forceXScrollbars:u,scrollerClientWidths:c,scrollerClientHeights:d}},t.prototype.updateStickyScrolling=function(){var e=this.context.isRtl,t=this.scrollerElRefs.getAll().map((function(t){return[t,e]})),r=this.getStickyScrolling(t);r.forEach((function(e){return e.updateSize()})),this.stickyScrollings=r},t.prototype.destroyStickyScrolling=function(){this.stickyScrollings.forEach(At)},t.prototype.updateScrollSyncers=function(){for(var e=this.getDims(),t=e[0],r=e[1],n=t*r,o={},i={},s=this.scrollerElRefs.currentMap,a=0;a<t;a+=1){var l=a*r,u=l+r;o[a]=(0,ut.uPw)(s,l,u,1)}for(var c=0;c<r;c+=1)i[c]=this.scrollerElRefs.collect(c,n,r);this.scrollSyncersBySection=this.getScrollSyncersBySection(o),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(i)},t.prototype.destroyScrollSyncers=function(){(0,ut._aR)(this.scrollSyncersBySection,Nt),(0,ut._aR)(this.scrollSyncersByColumn,Nt)},t.prototype.getChunkConfigByIndex=function(e){var t=this.getDims()[1],r=Math.floor(e/t),n=e%t,o=this.props.sections[r];return o&&o.chunks[n]},t.prototype.forceScrollLeft=function(e,t){var r=this.scrollSyncersByColumn[e];r&&r.forceScrollLeft(t)},t.prototype.forceScrollTop=function(e,t){var r=this.scrollSyncersBySection[e];r&&r.forceScrollTop(t)},t.prototype._handleChunkEl=function(e,t){var r=this.getChunkConfigByIndex(parseInt(t,10));r&&(0,ut.k$v)(r.elRef,e)},t.prototype._handleScrollerEl=function(e,t){var r=this.getChunkConfigByIndex(parseInt(t,10));r&&(0,ut.k$v)(r.scrollerElRef,e)},t.prototype.getDims=function(){var e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]},t}(ut.H6J);function Pt(e){for(var t=0,r=0,n=e;r<n.length;r++){t+=n[r]}return t}function zt(e){var t=(0,ut.xlG)(e,".fc-scrollgrid-sync-inner").map(Tt);return t.length?Math.max.apply(Math,t):0}function Tt(e){return e.offsetHeight}function Ht(e){var t=Mt(e.cols,"width"),r=Mt(e.cols,"minWidth"),n=(0,ut.Qa3)(e.cols);return{hasShrinkCol:n,totalColWidth:t,totalColMinWidth:r,allowXScrolling:"shrink"!==e.width&&Boolean(t||r||n),cols:e.cols,width:e.width}}function Mt(e,t){for(var r=0,n=0,o=e;n<o.length;n++){var i=o[n],s=i[t];"number"==typeof s&&(r+=s*(i.span||1))}return r}xt.addStateEquality({shrinkWidths:ut.CnA,scrollerClientWidths:ut.S6v,scrollerClientHeights:ut.S6v});var kt={cols:ut.grx};function qt(e,t){return(0,ut.cbN)(e,t,kt)}function It(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new wt(e,t)}
2function Nt(e){e.destroy()}function Wt(e,t){return new bt(e,t)}function At(e){e.destroy()}(0,ut.rxu)({deps:[gt],scrollGridImpl:xt});ut.vc.SCROLLGRID_RESIZE_INTERVAL=500;nt.vc.MAX_TIMELINE_SLOTS=1e3;var Ot=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function Lt(e,t,r,n){var o={labelInterval:r.slotLabelInterval,slotDuration:r.slotDuration};!function(e,t,r){var n=t.currentRange;if(e.labelInterval){r.countDurationsBetween(n.start,n.end,e.labelInterval)>nt.vc.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null)}if(e.slotDuration){r.countDurationsBetween(n.start,n.end,e.slotDuration)>nt.vc.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){var o=(0,nt.ltK)(e.labelInterval,e.slotDuration);(null===o||o<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(o,e,t),Ut(o,e,t),function(e,t,r){var n=t.currentRange,o=e.slotDuration;if(!o){for(var i=Ut(e,t,r),s=0,a=Ot;s<a.length;s++){var l=a[s],u=(0,nt.Pvs)(l),c=(0,nt.ltK)(i,u);if(null!==c&&c>1&&c<=6){o=u;break}}if(o)r.countDurationsBetween(n.start,n.end,o)>200&&(o=null);o||(o=i),e.slotDuration=o}}(o,e,t);var i=r.slotLabelFormat,s=Array.isArray(i)?i:null!=i?[i]:function(e,t,r,n){var o,i,s=e.labelInterval,a=(0,nt.NTx)(s).unit,l=n.weekNumbers,u=o=i=null;"week"!==a||l||(a="day");switch(a){case"year":u={year:"numeric"};break;case"month":_t("years",t,r)>1&&(u={year:"numeric"}),o={month:"short"};break;case"week":_t("years",t,r)>1&&(u={year:"numeric"}),o={week:"narrow"};break;case"day":_t("years",t,r)>1?u={year:"numeric",month:"long"}:_t("months",t,r)>1&&(u={month:"long"}),l&&(o={week:"short"}),i={weekday:"narrow",day:"numeric"};break;case"hour":l&&(u={week:"short"}),_t("days",t,r)>1&&(o={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),i={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":(0,nt.dZD)(s)/60>=6?(u={hour:"numeric",meridiem:"short"},o=function(e){return":"+(0,nt.SkG)(e.date.minute,2)}):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":(0,nt.nCP)(s)/60>=6?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},o=function(e){return":"+(0,nt.SkG)(e.date.second,2)}):u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},o=function(e){return"."+(0,nt.SkG)(e.millisecond,3)}}return[].concat(u||[],o||[],i||[])}(o,e,t,r);o.headerFormats=s.map((function(e){return(0,nt.SPZ)(e)})),o.isTimeScale=Boolean(o.slotDuration.milliseconds);var a=null;if(!o.isTimeScale){var l=(0,nt.NTx)(o.slotDuration).unit;/year|month|week/.test(l)&&(a=l)}o.largeUnit=a,o.emphasizeWeeks=1===(0,nt.XrI)(o.slotDuration)&&_t("weeks",e,t)>=2&&!r.businessHours;var u,c,d=r.snapDuration;d&&(u=(0,nt.Pvs)(d),c=(0,nt.ltK)(o.slotDuration,u)),null==c&&(u=o.slotDuration,c=1),o.snapDuration=u,o.snapsPerSlot=c;var p=(0,nt.TTZ)(e.slotMaxTime)-(0,nt.TTZ)(e.slotMinTime),h=Vt(e.renderRange.start,o,t),f=Vt(e.renderRange.end,o,t);o.isTimeScale&&(h=t.add(h,e.slotMinTime),f=t.add((0,nt.E4D)(f,-1),e.slotMaxTime)),o.timeWindowMs=p,o.normalizedRange={start:h,end:f};for(var g=[],v=h;v<f;)jt(v,o,e,n)&&g.push(v),v=t.add(v,o.slotDuration);o.slotDates=g;var m=-1,y=0,S=[],R=[];for(v=h;v<f;)jt(v,o,e,n)?(m+=1,S.push(m),R.push(y)):S.push(m+.5),v=t.add(v,o.snapDuration),y+=1;return o.snapDiffToIndex=S,o.snapIndexToDiff=R,o.snapCnt=m+1,o.slotCnt=o.snapCnt/o.snapsPerSlot,o.isWeekStarts=function(e,t){for(var r=e.slotDates,n=e.emphasizeWeeks,o=null,i=[],s=0,a=r;s<a.length;s++){var l=a[s],u=t.computeWeekNumber(l),c=n&&null!==o&&o!==u;o=u,i.push(c)}return i}(o,t),o.cellRows=function(e,t){for(var r=e.slotDates,n=e.headerFormats,o=n.map((function(){return[]})),i=(0,nt.XrI)(e.slotDuration),s=7===i?"week":1===i?"day":null,a=n.map((function(e){return e.getLargestUnit?e.getLargestUnit():null})),l=0;l<r.length;l+=1)for(var u=r[l],c=e.isWeekStarts[l],d=0;d<n.length;d+=1){var p=n[d],h=o[d],f=h[h.length-1],g=d===n.length-1,v=n.length>1&&!g,m=null,y=a[d]||(g?s:null);if(v){var S=t.format(u,p);f&&f.text===S?f.colspan+=1:m=Ft(u,S,y)}else if(!f||(0,nt.GNL)(t.countDurationsBetween(e.normalizedRange.start,u,e.labelInterval))){m=Ft(u,S=t.format(u,p),y)}else f.colspan+=1;m&&(m.weekStart=c,h.push(m))}return o}
2(o,t),o.slotsPerLabel=(0,nt.ltK)(o.labelInterval,o.slotDuration),o}function Vt(e,t,r){var n=e;return t.isTimeScale||(n=(0,nt.b7Q)(n),t.largeUnit&&(n=r.startOf(n,t.largeUnit))),n}function jt(e,t,r,n){if(n.isHiddenDay(e))return!1;if(t.isTimeScale){var o=(0,nt.b7Q)(e),i=e.valueOf()-o.valueOf()-(0,nt.TTZ)(r.slotMinTime);return(i=(i%864e5+864e5)%864e5)<t.timeWindowMs}return!0}function Ut(e,t,r){var n=t.currentRange,o=e.labelInterval;if(!o){var i=void 0;if(e.slotDuration){for(var s=0,a=Ot;s<a.length;s++){i=a[s];var l=(0,nt.Pvs)(i),u=(0,nt.ltK)(l,e.slotDuration);if(null!==u&&u<=6){o=l;break}}o||(o=e.slotDuration)}else for(var c=0,d=Ot;c<d.length;c++){if(i=d[c],o=(0,nt.Pvs)(i),r.countDurationsBetween(n.start,n.end,o)>=18)break}e.labelInterval=o}return o}function _t(e,t,r){var n=t.currentRange,o=null;return"years"===e?o=r.diffWholeYears(n.start,n.end):"months"===e||"weeks"===e?o=r.diffWholeMonths(n.start,n.end):"days"===e&&(o=(0,nt.Lnh)(n.start,n.end)),o||0}function Ft(e,t,r){return{date:e,text:t,rowUnit:r,colspan:1,isWeekStart:!1}}var Gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=e.navLinkData?{"data-navlink":e.navLinkData,tabIndex:0}:{};return(0,nt.azq)(nt.rVp,{hookProps:e.hookProps,content:t.options.slotLabelContent,defaultContent:Bt},(function(t,n){return(0,nt.azq)("a",(0,l.pi)({ref:t,className:"fc-timeline-slot-cushion fc-scrollgrid-sync-inner"+(e.isSticky?" fc-sticky":"")},r),n)}))},t}(nt.H6J);function Bt(e){return e.text}function Zt(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}var Yt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=(0,nt.Vbb)(Zt),t.normalizeClassNames=(0,nt.HgS)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=t.dateEnv,n=t.options,o=e.cell,i=e.dateProfile,s=e.tDateProfile,a=(0,nt.iCZ)(o.date,e.todayRange,e.nowDate,i),l=["fc-timeline-slot","fc-timeline-slot-label"].concat("time"===o.rowUnit?(0,nt.mK5)(a,t.theme):(0,nt.yLW)(a,t.theme));o.isWeekStart&&l.push("fc-timeline-slot-em");var u=n.navLinks&&o.rowUnit&&"time"!==o.rowUnit?(0,nt.Euv)(o.date,o.rowUnit):null,c=this.refineHookProps({level:e.rowLevel,dateMarker:o.date,text:o.text,dateEnv:t.dateEnv,viewApi:t.viewApi}),d=this.normalizeClassNames(n.slotLabelClassNames,c);return(0,nt.azq)(nt.y3w,{hookProps:c,didMount:n.slotLabelDidMount,willUnmount:n.slotLabelWillUnmount},(function(t){return(0,nt.azq)("th",{ref:t,className:l.concat(d).join(" "),"data-date":r.formatIso(o.date,{omitTime:!s.isTimeScale,omitTimeZoneOffset:!0}),colSpan:o.colspan},(0,nt.azq)("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},(0,nt.azq)(Gt,{hookProps:c,isSticky:e.isSticky,navLinkData:u})))}))},t}(nt.H6J),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.dateProfile,r=e.tDateProfile,n=e.rowInnerHeights,o=e.todayRange,i=e.nowDate,s=r.cellRows;return(0,nt.azq)(nt.HYg,null,s.map((function(e,a){var l=a===s.length-1,u=["fc-timeline-header-row",r.isTimeScale&&l?"fc-timeline-header-row-chrono":""];return(0,nt.azq)("tr",{key:a,className:u.join(" ")},e.map((function(e){return(0,nt.azq)(Yt,{key:e.date.toISOString(),cell:e,rowLevel:a,dateProfile:t,tDateProfile:r,todayRange:o,nowDate:i,rowInnerHeight:n&&n[a],isSticky:!l})})))})))},t}(nt.H6J),Jt=function(){function e(e,t,r,n,o,i){this.slatRootEl=e,this.dateProfile=r,this.tDateProfile=n,this.dateEnv=o,this.isRtl=i,this.outerCoordCache=new nt.zIV(e,t,!0,!1),this.innerCoordCache=new nt.zIV(e,(0,nt.sSy)(t,"div"),!0,!1)}return e.prototype.isDateInRange=function(e){return(0,nt.mCA)(this.dateProfile.currentRange,e)},e.prototype.dateToCoord=function(e){var t=this.tDateProfile,r=this.computeDateSnapCoverage(e)/t.snapsPerSlot,n=Math.floor(r),o=r-(n=Math.min(n,t.slotCnt-1)),i=this.innerCoordCache,s=this.outerCoordCache;return this.isRtl?s.originClientRect.width-(s.rights[n]-i.getWidth(n)*o):s.lefts[n]+i.getWidth(n)*o},e.prototype.rangeToCoords=function(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}},e.prototype.durationToCoord=function(e){var t=this,r=t.dateProfile,n=t.tDateProfile,o=t.dateEnv,i=t.isRtl,s=0;if(r){var a=o.add(r.activeRange.start,e);n.isTimeScale||(a=(0,nt.b7Q)(a)),s=this.dateToCoord(a),!i&&s&&(s+=1)}return s},e.prototype.coordFromLeft=function(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e},e.prototype.computeDateSnapCoverage=function(e){return Kt(e,this.tDateProfile,this.dateEnv)},e}();function Kt(e,t,r){var n=r.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(n<0)return 0;if(n>=t.snapDiffToIndex.length)return t.snapCnt;var o=Math.floor(n),i=t.snapDiffToIndex[o];return(0,nt.GNL)(i)?i+=n-o:i=Math.ceil(i),i}function Qt(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function $t(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}var er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,nt.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=(0,nt.NTx)(t.tDateProfile.slotDuration).unit,o=t.slatCoords&&t.slatCoords.dateProfile===t.dateProfile?t.slatCoords:null;return(0,nt.azq)(nt.wh8,{unit:n},(function(n,i){return(0,nt.azq)("div",{className:"fc-timeline-header",ref:e.rootElRef},(0,nt.azq)("table",{className:"fc-scrollgrid-sync-table",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,(0,nt.azq)("tbody",null,(0,nt.azq)(Xt,{dateProfile:t.dateProfile,tDateProfile:t.tDateProfile,nowDate:n,todayRange:i,rowInnerHeights:t.rowInnerHeights}))),r.options.nowIndicator&&(0,nt.azq)("div",{className:"fc-timeline-now-indicator-container"},o&&o.isDateInRange(n)&&(0,nt.azq)(nt.AOy,{isAxis:!0,date:n},(function(e,t,i,s){return(0,nt.azq)("div",{ref:e,className:["fc-timeline-now-indicator-arrow"].concat(t).join(" "),style:Qt(o.dateToCoord(n),r.isRtl)},s)}))))}
2))},t.prototype.componentDidMount=function(){this.updateSize()},t.prototype.componentDidUpdate=function(){this.updateSize()},t.prototype.updateSize=function(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())},t.prototype.computeMaxCushionWidth=function(){return Math.max.apply(Math,(0,nt.xlG)(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((function(e){return e.getBoundingClientRect().width})))},t}(nt.H6J),tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=t.dateEnv,n=t.options,o=t.theme,i=e.date,s=e.tDateProfile,a=e.isEm,u=(0,nt.iCZ)(e.date,e.todayRange,e.nowDate,e.dateProfile),c=["fc-timeline-slot","fc-timeline-slot-lane"],d={"data-date":r.formatIso(i,{omitTimeZoneOffset:!0,omitTime:!s.isTimeScale})},p=(0,l.pi)((0,l.pi)({date:r.toDate(e.date)},u),{view:t.viewApi});return a&&c.push("fc-timeline-slot-em"),s.isTimeScale&&c.push((0,nt.GNL)(r.countDurationsBetween(s.normalizedRange.start,e.date,s.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor"),c.push.apply(c,e.isDay?(0,nt.yLW)(u,o):(0,nt.mK5)(u,o)),(0,nt.azq)(nt.QJ3,{hookProps:p,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount,elRef:e.elRef},(function(e,t,r,n){return(0,nt.azq)("td",(0,l.pi)({ref:e,className:c.concat(t).join(" ")},d),(0,nt.azq)("div",{ref:r},n))}))},t}(nt.H6J),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.tDateProfile,r=e.cellElRefs,n=t.slotDates,o=t.isWeekStarts,i=!t.isTimeScale&&!t.largeUnit;return(0,nt.azq)("tbody",null,(0,nt.azq)("tr",null,n.map((function(n,s){var a=n.toISOString();return(0,nt.azq)(tr,{key:a,elRef:r.createRef(a),date:n,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:o[s],isDay:i})}))))},t}(nt.H6J),nr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,nt.VfA)(),t.cellElRefs=new nt.lAU,t.handleScrollRequest=function(e){var r=t.props.onScrollLeftRequest,n=t.coords;if(r&&n){if(e.time)r(n.coordFromLeft(n.durationToCoord(e.time)));return!0}return null},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,nt.azq)("div",{className:"fc-timeline-slots",ref:this.rootElRef},(0,nt.azq)("table",{className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,(0,nt.azq)(rr,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))},t.prototype.componentDidMount=function(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.props,r=this.context;null!==t.clientWidth&&this.scrollResponder&&(this.rootElRef.current.offsetWidth&&(this.coords=new Jt(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.tDateProfile.slotDates.map((function(t){var r=t.toISOString();return e[r]}))),t.dateProfile,t.tDateProfile,r.dateEnv,r.isRtl),t.onCoords&&t.onCoords(this.coords),this.scrollResponder.update(!1)))},t.prototype.positionToHit=function(e){var t=this.coords.outerCoordCache,r=this.context,n=r.dateEnv,o=r.isRtl,i=this.props.tDateProfile,s=t.leftToIndex(e);if(null!=s){var a=t.getWidth(s),l=o?(t.rights[s]-e)/a:(e-t.lefts[s])/a,u=Math.floor(l*i.snapsPerSlot),c=n.add(i.slotDates[s],(0,nt.uVS)(i.snapDuration,u));return{dateSpan:{range:{start:c,end:n.add(c,i.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[s],left:t.lefts[s],right:t.rights[s]}}return null},t}(nt.H6J);function or(e,t,r){var n=[];if(r)for(var o=0,i=e;o<i.length;o++){var s=i[o],a=r.rangeToCoords(s),l=Math.round(a.start),u=Math.round(a.end);u-l<t&&(u=l+t),n.push({start:l,end:u})}return n}var ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&(0,nt.azq)("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))},t.prototype.renderSegs=function(e,t,r){var n=this.props,o=n.todayRange,i=n.nowDate,s=this.context.
2isRtl,a=or(e,0,t),u=e.map((function(e,t){var n=$t(a[t],s);return(0,nt.azq)("div",{key:(0,nt.rRV)(e.eventRange),className:"fc-timeline-bg-harness",style:n},"bg-event"===r?(0,nt.azq)(nt.I_K,(0,l.pi)({seg:e},(0,nt.jHR)(e,o,i))):(0,nt.MA3)(r))}));return(0,nt.azq)(nt.HYg,null,u)},t}(nt.H6J),sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.sliceRange=function(e,t,r,n,o){var i=function(e,t,r){if(!t.isTimeScale&&(e=(0,nt.H3H)(e),t.largeUnit)){var n=e;((e={start:r.startOf(e.start,t.largeUnit),end:r.startOf(e.end,t.largeUnit)}).end.valueOf()!==n.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:r.add(e.end,t.slotDuration)})}return e}(e,n,o),s=[];if(Kt(i.start,n,o)<Kt(i.end,n,o)){var a=(0,nt.cMs)(i,n.normalizedRange);a&&s.push({start:a.start,end:a.end,isStart:a.start.valueOf()===i.start.valueOf()&&jt(a.start,n,t,r),isEnd:a.end.valueOf()===i.end.valueOf()&&jt((0,nt.hvg)(a.end,-1),n,t,r)})}return s},t}(nt.RVT),ar=(0,nt.SPZ)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,nt.azq)(nt.h2k,(0,l.pi)({},e,{extraClassNames:["fc-timeline-event","fc-h-event"],defaultTimeFormat:ar,defaultDisplayEventTime:!e.isTimeScale}))},t}(nt.H6J),ur=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,nt.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=t.hiddenSegs,o=t.elRef,i=t.placement,s=t.resourceId,a=i.top,u=i.hcoords,c=u&&null!==a,d=$t(u,r.isRtl),p=s?{resourceId:s}:{};return(0,nt.azq)(nt.ygx,{allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,alignmentElRef:this.rootElRef,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:p,popoverContent:function(){return(0,nt.azq)(nt.HYg,null,n.map((function(e){var r=e.eventRange.instance.instanceId;return(0,nt.azq)("div",{key:r,style:{visibility:t.isForcedInvisible[r]?"hidden":""}},(0,nt.azq)(lr,(0,l.pi)({isTimeScale:t.isTimeScale,seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===t.eventSelection},(0,nt.jHR)(e,t.todayRange,t.nowDate))))})))}},(function(t,r,n,i,s){return(0,nt.azq)("a",{ref:function(r){(0,nt.k$v)(t,r),(0,nt.k$v)(o,r),(0,nt.k$v)(e.rootElRef,r)},className:["fc-timeline-more-link"].concat(r).join(" "),style:(0,l.pi)({visibility:c?"":"hidden",top:a||0},d),onClick:s},(0,nt.azq)("div",{ref:n,className:"fc-timeline-more-link-inner fc-sticky"},i))}))},t}(nt.H6J),cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new sr,t.sortEventSegs=(0,nt.HPs)(nt.hak),t.harnessElRefs=new nt.lAU,t.moreElRefs=new nt.lAU,t.innerElRef=(0,nt.VfA)(),t.state={eventInstanceHeights:{},moreLinkHeights:{}},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,r=e.state,n=e.context,o=n.options,i=t.dateProfile,s=t.tDateProfile,a=this.slicer.sliceProps(t,i,s.isTimeScale?null:t.nextDayThreshold,n,i,n.dateProfileGenerator,s,n.dateEnv),l=(a.eventDrag?a.eventDrag.segs:null)||(a.eventResize?a.eventResize.segs:null)||[],u=this.sortEventSegs(a.fgEventSegs,o.eventOrder),c=function(e,t,r,n,o,i){for(var s=[],a=[],l=0;l<e.length;l+=1){var u=e[l],c=r[u.eventRange.instance.instanceId],d=t[l];c&&d?s.push({index:l,span:d,thickness:c}):a.push({seg:u,hcoords:d,top:null})}var p=new nt.KxW;null!=o&&(p.strictOrder=o),null!=i&&(p.maxStackCnt=i);var h=p.addSegs(s),f=h.map((function(t){return{seg:e[t.index],hcoords:t.span,top:0}})),g=(0,nt.AVF)(h),v=[],m=[],y=function(t){return e[t.index]};for(l=0;l<g.length;l+=1){var S=g[l],R=S.entries.map(y);null!=(c=n[(0,nt.dS)((0,nt.VV4)(R))])?v.push({index:e.length+l,thickness:c,span:S.span}):m.push({seg:R,hcoords:S.span,top:null})}p.maxStackCnt=-1,p.addSegs(v);for(var E=[],C=0,b=0,D=p.toRects();b<D.length;b++){var w=D[b],x=w.index;E.push({seg:x<e.length?e[x]:g[x-e.length].entries.map(y),hcoords:w.span,top:w.levelCoord}),C=Math.max(C,w.levelCoord+w.thickness)}return[E.concat(a,f,m),C]}(u,or(u,o.eventMinWidth,t.timelineCoords),r.eventInstanceHeights,r.moreLinkHeights,o.eventOrderStrict,o.eventMaxStack),d=c[0],p=c[1],h=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return(0,nt.azq)(nt.HYg,null,(0,nt.azq)(ir,{businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,timelineCoords:t.timelineCoords,eventResizeSegs:a.eventResize?a.eventResize.segs:[],dateSelectionSegs:a.dateSelectionSegs,nowDate:t.nowDate,todayRange:t.todayRange}),(0,nt.azq)("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:p}}
2,this.renderFgSegs(d,h,!1,!1,!1),this.renderFgSegs(function(e,t,r){if(!e.length||!t)return[];var n=function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o.seg;Array.isArray(i)||(t[i.eventRange.instance.instanceId]=o.top)}return t}(r);return e.map((function(e){return{seg:e,hcoords:t.rangeToCoords(e),top:n[e.eventRange.instance.instanceId]}}))}(l,t.timelineCoords,d),{},Boolean(a.eventDrag),Boolean(a.eventResize),!1)))},t.prototype.componentDidMount=function(){this.updateSize()},t.prototype.componentDidUpdate=function(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()},t.prototype.updateSize=function(){var e=this,t=this.props,r=t.timelineCoords;t.onHeightChange&&t.onHeightChange(this.innerElRef.current,!1),r&&this.setState({eventInstanceHeights:(0,nt._aR)(this.harnessElRefs.currentMap,(function(e){return Math.round(e.getBoundingClientRect().height)})),moreLinkHeights:(0,nt._aR)(this.moreElRefs.currentMap,(function(e){return Math.round(e.getBoundingClientRect().height)}))},(function(){t.onHeightChange&&t.onHeightChange(e.innerElRef.current,!0)}))},t.prototype.renderFgSegs=function(e,t,r,n,o){var i=this,s=i.harnessElRefs,a=i.moreElRefs,u=i.props,c=i.context,d=r||n||o;return(0,nt.azq)(nt.HYg,null,e.map((function(e){var i=e.seg,p=e.hcoords,h=e.top;if(Array.isArray(i)){var f=(0,nt.dS)((0,nt.VV4)(i));return(0,nt.azq)(ur,{key:"m:"+f,elRef:a.createRef(f),hiddenSegs:i,placement:e,dateProfile:u.dateProfile,nowDate:u.nowDate,todayRange:u.todayRange,isTimeScale:u.tDateProfile.isTimeScale,eventSelection:u.eventSelection,resourceId:u.resourceId,isForcedInvisible:t})}var g=i.eventRange.instance.instanceId,v=d||Boolean(!t[g]&&p&&null!==h),m=$t(p,c.isRtl);return(0,nt.azq)("div",{key:"e:"+g,ref:d?null:s.createRef(g),className:"fc-timeline-event-harness",style:(0,l.pi)({visibility:v?"":"hidden",top:h||0},m)},(0,nt.azq)(lr,(0,l.pi)({isTimeScale:u.tDateProfile.isTimeScale,seg:i,isDragging:r,isResizing:n,isDateSelecting:o,isSelected:g===u.eventSelection},(0,nt.jHR)(i,u.todayRange,u.nowDate))))})))},t}(nt.H6J);cr.addStateEquality({eventInstanceHeights:nt.S6v,moreLinkHeights:nt.S6v});var dr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slatsRef=(0,nt.VfA)(),t.state={coords:null},t.handeEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t.handleCoords=function(e){t.setState({coords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this,r=t.props,n=t.state,o=t.context,i=o.options,s=r.dateProfile,a=r.tDateProfile,l=(0,nt.NTx)(a.slotDuration).unit;return(0,nt.azq)("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:r.tableMinWidth,height:r.clientHeight,width:r.clientWidth}},(0,nt.azq)(nt.wh8,{unit:l},(function(t,l){return(0,nt.azq)(nt.HYg,null,(0,nt.azq)(nr,{ref:e.slatsRef,dateProfile:s,tDateProfile:a,nowDate:t,todayRange:l,clientWidth:r.clientWidth,tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,onCoords:e.handleCoords,onScrollLeftRequest:r.onScrollLeftRequest}),(0,nt.azq)(cr,{dateProfile:s,tDateProfile:r.tDateProfile,nowDate:t,todayRange:l,nextDayThreshold:i.nextDayThreshold,businessHours:r.businessHours,eventStore:r.eventStore,eventUiBases:r.eventUiBases,dateSelection:r.dateSelection,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,timelineCoords:n.coords}),i.nowIndicator&&n.coords&&n.coords.isDateInRange(t)&&(0,nt.azq)("div",{className:"fc-timeline-now-indicator-container"},(0,nt.azq)(nt.AOy,{isAxis:!1,date:t},(function(e,r,i,s){return(0,nt.azq)("div",{ref:e,className:["fc-timeline-now-indicator-line"].concat(r).join(" "),style:Qt(n.coords.dateToCoord(t),o.isRtl)},s)}))))})))},t.prototype.queryHit=function(e,t,r,n){var o=this.slatsRef.current.positionToHit(e);return o?{dateProfile:this.props.dateProfile,dateSpan:o.dateSpan,rect:{left:o.left,right:o.right,top:0,bottom:n},dayEl:o.dayEl,layer:0}:null},t}(nt.IdW),pr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimelineDateProfile=(0,nt.HPs)(Lt),t.scrollGridRef=(0,nt.VfA)(),t.state={slatCoords:null,slotCushionMaxWidth:null},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t.handleScrollLeftRequest=function(e){t.scrollGridRef.current.forceScrollLeft(0,e)},t.handleMaxCushionWidth=function(e){t.setState({slotCushionMaxWidth:Math.ceil(e)})},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this,r=t.props,n=t.state,o=t.context,i=o.options,s=!r.forPrint&&(0,nt.Q8U)(i),a=!r.forPrint&&(0,nt.PZw)(i),u=this.buildTimelineDateProfile(r.dateProfile,o.dateEnv,i,o.dateProfileGenerator),c=["fc-timeline",!1===i.eventOverlap?"fc-timeline-overlap-disabled":""],d=i.slotMinWidth,p=hr(u,d||this.computeFallbackSlotMinWidth(u)),h=[{type:"header",key:"header",isSticky:s,chunks:[{key:"timeline",content:function(t){return(0,nt.azq)(er,{dateProfile:r.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:u,slatCoords:n.slat
2Coords,onMaxCushionWidth:d?null:e.handleMaxCushionWidth})}}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:function(t){return(0,nt.azq)(dr,(0,l.pi)({},r,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:u,onSlatCoords:e.handleSlatCoords,onScrollLeftRequest:e.handleScrollLeftRequest}))}}]}];return a&&h.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:nt.Hbc}]}),(0,nt.azq)(nt.xS$,{viewSpec:o.viewSpec},(function(t,n){return(0,nt.azq)("div",{ref:t,className:c.concat(n).join(" ")},(0,nt.azq)(xt,{ref:e.scrollGridRef,liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:!1,colGroups:[{cols:p}],sections:h}))}))},t.prototype.computeFallbackSlotMinWidth=function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)},t}(nt.IdW);function hr(e,t){return[{span:e.slotCnt,minWidth:t||1}]}var fr=(0,nt.rxu)({deps:[lt],initialView:"timelineDay",views:{timeline:{component:pr,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}});function gr(e,t){var r=e.resourceEditable;if(null==r){var n=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];n&&(r=n.extendedProps.resourceEditable),null==r&&null==(r=t.options.eventResourceEditable)&&(r=t.options.editable)}return r}var vr=function(){function e(){this.filterResources=(0,Ke.HPs)(mr)}return e.prototype.transform=function(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null},e}();function mr(e,t,r,n){if(t){var o=function(e,t){var r={};for(var n in e)for(var o=0,i=t[e[n].defId].resourceIds;o<i.length;o++){r[i[o]]=!0}return r}(function(e,t){return(0,Ke.CrY)(e,(function(e){return(0,Ke.zvB)(e.range,t)}))}(r.instances,n),r.defs);return(0,l.pi)(o,function(e,t){var r={};for(var n in e)for(var o=void 0;(o=t[n])&&(n=o.parentId);)r[n]=!0;return r}(o,e)),(0,Ke.CrY)(e,(function(e,t){return o[t]}))}return e}var yr=function(){function e(){this.buildResourceEventUis=(0,Ke.HPs)(Sr,Ke.S6v),this.injectResourceEventUis=(0,Ke.HPs)(Rr)}return e.prototype.transform=function(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}},e}();function Sr(e){return(0,Ke._aR)(e,(function(e){return e.ui}))}function Rr(e,t,r){return(0,Ke._aR)(e,(function(e,n){return n?function(e,t,r){for(var n=[],o=0,i=t.resourceIds;o<i.length;o++){var s=i[o];r[s]&&n.unshift(r[s])}return n.unshift(e),(0,Ke.kLJ)(n)}(e,t[n],r):e}))}var Er=[];function Cr(e){Er.push(e)}function br(e){return Er[e]}function Dr(){return Er}var wr={id:String,resources:Ke.yRu,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:Ke.yRu};function xr(e){var t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){var r=(0,Ke.rjQ)(t,wr),n=r.refined;!function(e){for(var t in e)console.warn("Unknown resource prop '"+t+"'")}(r.extra);var o=function(e){for(var t=Dr(),r=t.length-1;r>=0;r-=1){var n=t[r].parseMeta(e);if(n)return{meta:n,sourceDefId:r}}return null}(n);if(o)return{_raw:e,sourceId:(0,Ke.M8z)(),sourceDefId:o.sourceDefId,meta:o.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Pr(e,t,r){var n=r.options,o=r.dateProfile;if(!e||!t)return zr(n.initialResources||n.resources,o.activeRange,n.refetchResourcesOnNavigate,r);switch(t.type){case"RESET_RESOURCE_SOURCE":return zr(t.resourceSourceInput,o.activeRange,n.refetchResourcesOnNavigate,r);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return function(e,t,r,n){if(r&&!function(e){return Boolean(br(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||!(0,Ke.Dnt)(e.fetchRange,t)))return Tr(e,t,n);return e}(e,o.activeRange,n.refetchResourcesOnNavigate,r);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return function(e,t,r){if(t===e.latestFetchId)return(0,l.pi)((0,l.pi)({},e),{isFetching:!1,fetchRange:r});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Tr(e,o.activeRange,r);default:return e}}function zr(e,t,r,n){if(e){var o=xr(e);return o=Tr(o,r?t:null,n)}return null}function Tr(e,t,r){var n=br(e.sourceDefId),o=(0,Ke.M8z)();return n.fetch({resourceSource:e,range:t,context:r},(function(e){r.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:t,rawResources:e.rawResources})}),(function(e){r.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:t,error:e})})),(0,l.pi)((0,l.pi)({},e),{isFetching:!0,latestFetchId:o})}var Hr="_fc:",Mr={id:String,parentId:String,children:Ke.yRu,title:String,businessHours:Ke.yRu,extendedProps:Ke.
2yRu,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:Ke.yRu,eventOverlap:Boolean,eventAllow:Ke.yRu,eventClassNames:Ke.Qu7,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function kr(e,t,r,n){void 0===t&&(t="");var o=(0,Ke.rjQ)(e,Mr),i=o.refined,s=o.extra,a={id:i.id||Hr+(0,Ke.M8z)(),parentId:i.parentId||t,title:i.title||"",businessHours:i.businessHours?(0,Ke.ifz)(i.businessHours,n):null,ui:(0,Ke.oqz)({editable:i.eventEditable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:i.eventOverlap,allow:i.eventAllow,classNames:i.eventClassNames,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},n),extendedProps:(0,l.pi)((0,l.pi)({},s),i.extendedProps)};if(Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),r[a.id]);else if(r[a.id]=a,i.children)for(var u=0,c=i.children;u<c.length;u++){kr(c[u],a.id,r,n)}return a}function qr(e){return 0===e.indexOf(Hr)?"":e}function Ir(e,t,r,n){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return function(e,t,r,n,o){if(n.latestFetchId===r){for(var i={},s=0,a=t;s<a.length;s++){kr(a[s],"",i,o)}return i}return e}(e,t.rawResources,t.fetchId,r,n);case"ADD_RESOURCE":return o=e,i=t.resourceHash,(0,l.pi)((0,l.pi)({},o),i);case"REMOVE_RESOURCE":return function(e,t){var r=(0,l.pi)({},e);for(var n in delete r[t],r)r[n].parentId===t&&(r[n]=(0,l.pi)((0,l.pi)({},r[n]),{parentId:""}));return r}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,r,n){var o,i,s=e[t];if(s)return(0,l.pi)((0,l.pi)({},e),((o={})[t]=(0,l.pi)((0,l.pi)({},s),((i={})[r]=n,i)),o));return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,r,n){var o,i,s=e[t];if(s)return(0,l.pi)((0,l.pi)({},e),((o={})[t]=(0,l.pi)((0,l.pi)({},s),{extendedProps:(0,l.pi)((0,l.pi)({},s.extendedProps),(i={},i[r]=n,i))}),o));return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var o,i}var Nr={resourceId:String,resourceIds:Ke.yRu,resourceEditable:Boolean};var Wr=function(){function e(e,t){this._context=e,this._resource=t}return e.prototype.setProp=function(e,t){var r=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:r.id,propName:e,propValue:t}),this.sync(r)},e.prototype.setExtendedProp=function(e,t){var r=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:r.id,propName:e,propValue:t}),this.sync(r)},e.prototype.sync=function(t){var r=this._context,n=t.id;this._resource=r.getCurrentData().resourceStore[n],r.emitter.trigger("resourceChange",{oldResource:new e(r,t),resource:this,revert:function(){var e;r.dispatch({type:"ADD_RESOURCE",resourceHash:(e={},e[n]=t,e)})}})},e.prototype.remove=function(){var e=this._context,t=this._resource,r=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:r}),e.emitter.trigger("resourceRemove",{resource:this,revert:function(){var n;e.dispatch({type:"ADD_RESOURCE",resourceHash:(n={},n[r]=t,n)})}})},e.prototype.getParent=function(){var t=this._context,r=this._resource.parentId;return r?new e(t,t.getCurrentData().resourceSource[r]):null},e.prototype.getChildren=function(){var t=this._resource.id,r=this._context,n=r.getCurrentData().resourceStore,o=[];for(var i in n)n[i].parentId===t&&o.push(new e(r,n[i]));return o},e.prototype.getEvents=function(){var e=this._resource.id,t=this._context,r=t.getCurrentData().eventStore,n=r.defs,o=r.instances,i=[];for(var s in o){var a=o[s],l=n[a.defId];-1!==l.resourceIds.indexOf(e)&&i.push(new Ke.voO(t,l,a))}return i},Object.defineProperty(e.prototype,"id",{get:function(){return qr(this._resource.id)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._resource.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventConstraint",{get:function(){return this._resource.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventOverlap",{get:function(){return this._resource.ui.overlap}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventAllow",{get:function(){return this._resource.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventBackgroundColor",{get:function(){return this._resource.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventBorderColor",{get:function(){return this._resource.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventTextColor",{get:function(){return this._resource.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventClassNames",{get:function(){return this._resource.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._resource.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._resource,r=t.ui,n=this.id,o={};return n&&(o.id=n),t.title&&(o.title=t.title),e.collapseEventColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?o.eventColor=r.backgroundColor:(r.backgroundColor&&(o.eventBackgroundColor=r.backgroundColor),r.borderColor&&(o.eventBorderColor=r.borderColor)),r.textColor&&(o.eventTextColor=r.textColor),r.classNames.length&&(o.eventClassNames=r.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?(0,l.pi)(o,t.extendedProps):o.extendedProps=t.extendedProps),o},e.prototype.toJSON=function(){return this.toPlainObject()},e}();Ke.zeW.prototype.addResource=function(e,t){var r,n=this;void 0===t&&(t=!0);var o,i,s=this.getCurrentData();e instanceof Wr?((r={})[(i=e._resource).id]=i,o=r):i=kr(e,"",o={},s),this.dispatch({type:"ADD_RESOURCE",resourceHash:o}),t&&this.trigger("_scrollRequest",{resourceId:i.id});var a=new Wr(s,i);return s.emitter.trigger("resourceAdd",{resource:a,revert:function(){n.dispatch({type:"REMOVE_RESOURCE",resourceId:i.id})}}),a},Ke.zeW.prototype.getResourceById=function(e){e=String(e);var t=this.getCurrentData();if(t.resourceStore){var r=t.resourceStore[e];if(r)return new Wr(t,r)}return null},Ke.zeW.prototype.getResources=function(){var e=this.getCurrentData(),t=e.resourceStore,r=[];if(t)for(var n in t)r.push(new Wr(e,t[n]));return r},Ke.zeW.prototype.getTopLevelResources=function(){var e=this.getCurrentData(),t=e.resourceStore,r=[];if(t)for(var n in t)t[n].parentId||r.push(new Wr(e,t[n]));return r},Ke.zeW.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};var Ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.getKeyInfo=function(e){return(0,l.pi)({"":{}},e.resourceStore)},t.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},t.prototype.getKeysForEventDef=function(e){var t=e.resourceIds;return t.length?t:[""]},t}(Ke.qX1);function Or(e,t){return(0,l.pi)((0,l.pi)({},t),{constraints:Lr(e,t.constraints)})}function Lr(e,t){return t.map((function(t){var r=t.defs;if(r)for(var n in r){var o=r[n].resourceIds;if(o.length&&-1===o.indexOf(e))return!1}return t}))}Ke.voO.prototype.getResources=function(){var e=this._context.calendarApi;return this._def.resourceIds.map((function(t){return e.getResourceById(t)}))},Ke.voO.prototype.setResources=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var o=n[r],i=null;"string"==typeof o?i=o:"number"==typeof o?i=String(o):o instanceof Wr?i=o.id:console.warn("unknown resource type: "+o),i&&t.push(i)}this.mutate({standardProps:{resourceIds:t}})};var Vr={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}};var jr=(0,Ke.MCs)("id,title");var Ur={initialResources:Ke.yRu,resources:Ke.yRu,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:Ke.MCs,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:Ke.yRu,resourceAreaColumns:Ke.yRu,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:Ke.yRu,resourceAreaHeaderContent:Ke.yRu,resourceAreaHeaderDidMount:Ke.yRu,resourceAreaHeaderWillUnmount:Ke.yRu,resourceGroupLabelClassNames:Ke.yRu,resourceGroupLabelContent:Ke.yRu,resourceGroupLabelDid
2Mount:Ke.yRu,resourceGroupLabelWillUnmount:Ke.yRu,resourceLabelClassNames:Ke.yRu,resourceLabelContent:Ke.yRu,resourceLabelDidMount:Ke.yRu,resourceLabelWillUnmount:Ke.yRu,resourceLaneClassNames:Ke.yRu,resourceLaneContent:Ke.yRu,resourceLaneDidMount:Ke.yRu,resourceLaneWillUnmount:Ke.yRu,resourceGroupLaneClassNames:Ke.yRu,resourceGroupLaneContent:Ke.yRu,resourceGroupLaneDidMount:Ke.yRu,resourceGroupLaneWillUnmount:Ke.yRu},_r={resourcesSet:Ke.yRu,resourceAdd:Ke.yRu,resourceChange:Ke.yRu,resourceRemove:Ke.yRu};function Fr(e){return(0,Ke.azq)(Ke.Yh$.Consumer,null,(function(t){var r=t.options,n={resource:new Wr(t,e.resource),date:e.date?t.dateEnv.toDate(e.date):null,view:t.viewApi},o={"data-resource-id":e.resource.id,"data-date":e.date?(0,Ke.SVl)(e.date):void 0};return(0,Ke.azq)(Ke.QJ3,{hookProps:n,classNames:r.resourceLabelClassNames,content:r.resourceLabelContent,defaultContent:Gr,didMount:r.resourceLabelDidMount,willUnmount:r.resourceLabelWillUnmount},(function(t,r,n,i){return e.children(t,r,o,n,i)}))}))}function Gr(e){return e.resource.title||e.resource.id}Cr({ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.resources)?e.resources:null},fetch:function(e,t){t({rawResources:e.resourceSource.meta})}}),Cr({parseMeta:function(e){return"function"==typeof e.resources?e.resources:null},fetch:function(e,t,r){var n=e.context.dateEnv,o=e.resourceSource.meta,i=e.range?{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}:{};(0,Ke.Olf)(o.bind(null,i),(function(e){t({rawResources:e})}),r)}}),Cr({parseMeta:function(e){return e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null},fetch:function(e,t,r){var n=e.resourceSource.meta,o=function(e,t,r){var n,o,i,s,a=r.dateEnv,u=r.options,c={};t&&(null==(n=e.startParam)&&(n=u.startParam),null==(o=e.endParam)&&(o=u.endParam),null==(i=e.timeZoneParam)&&(i=u.timeZoneParam),c[n]=a.formatIso(t.start),c[o]=a.formatIso(t.end),"local"!==a.timeZone&&(c[i]=a.timeZone));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return(0,l.pi)(c,s),c}(n,e.range,e.context);(0,Ke.aAC)(n.method,n.url,o,(function(e,r){t({rawResources:e,xhr:r})}),(function(e,t){r({message:e,xhr:t})}))}});var Br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,Ke.azq)(Fr,{resource:e.resource,date:e.date},(function(t,r,n,o,i){return(0,Ke.azq)("th",(0,l.pi)({ref:t,className:["fc-col-header-cell","fc-resource"].concat(r).join(" "),colSpan:e.colSpan},n),(0,Ke.azq)("div",{className:"fc-scrollgrid-sync-inner"},(0,Ke.azq)("span",{className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},t}(Ke.H6J);!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDateFormat=(0,Ke.HPs)(Zr),t}(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=this.buildDateFormat(r.options.dayHeaderFormat,t.datesRepDistinctDays,t.dates.length);return(0,Ke.azq)(Ke.wh8,{unit:"day"},(function(o,i){return 1===t.dates.length?e.renderResourceRow(t.resources,t.dates[0]):r.options.datesAboveResources?e.renderDayAndResourceRows(t.dates,n,i,t.resources):e.renderResourceAndDayRows(t.resources,t.dates,n,i)}))},t.prototype.renderResourceRow=function(e,t){var r=e.map((function(e){return(0,Ke.azq)(Br,{key:e.id,resource:e,colSpan:1,date:t})}));return this.buildTr(r,"resources")},t.prototype.renderDayAndResourceRows=function(e,t,r,n){for(var o=[],i=[],s=0,a=e;s<a.length;s++){var l=a[s];o.push(this.renderDateCell(l,t,r,n.length,null,!0));for(var u=0,c=n;u<c.length;u++){var d=c[u];i.push((0,Ke.azq)(Br,{key:d.id+":"+l.toISOString(),resource:d,colSpan:1,date:l}))}}return(0,Ke.azq)(Ke.HYg,null,this.buildTr(o,"day"),this.buildTr(i,"resources"))},t.prototype.renderResourceAndDayRows=function(e,t,r,n){for(var o=[],i=[],s=0,a=e;s<a.length;s++){var l=a[s];o.push((0,Ke.azq)(Br,{key:l.id,resource:l,colSpan:t.length,isSticky:!0}));for(var u=0,c=t;u<c.length;u++){var d=c[u];i.push(this.renderDateCell(d,r,n,1,l))}}return(0,Ke.azq)(Ke.HYg,null,this.buildTr(o,"resources"),this.buildTr(i,"day"))},t.prototype.renderDateCell=function(e,t,r,n,o,i){var s=this.props,a=o?":"+o.id:"",l=o?{resource:new Wr(this.context,o)}:{},u=o?{"data-resource-id":o.id}:{};return s.datesRepDistinctDays?(0,Ke.azq)(Ke.nWf,{key:e.toISOString()+a,date:e,dateProfile:s.dateProfile,todayRange:r,colCnt:s.dates.length*s.resources.length,dayHeaderFormat:t,colSpan:n,isSticky:i,extraHookProps:l,extraDataAttrs:u}):(0,Ke.azq)(Ke.Ceh,{key:e.getUTCDay()+a,dow:e.getUTCDay(),dayHeaderFormat:t,colSpan:n,isSticky:i,extraHookProps:l,extraDataAttrs:u})},t.prototype.buildTr=function(e,t){var r=this.props.renderIntro;return e.length||(e=[(0,Ke.azq)("td",{key:0},"Â ")]),(0,Ke.azq)("tr",{key:t},r&&r(t),e)}}(Ke.H6J);function Zr(e,t,r){return e||(0,Ke.nm6)(t,r)}var Yr=function(e){for(var t={},r=[],n=0;n<e.length;n+=1){var o=e[n].id;r.push(o),t[o]=n}this.ids=r,this.indicesById=t,this.length=e.length},Xr=function(){function e(e,t,r){this.dayTableModel=e,this.resources=t,this.context=r,this.resourceIndex=new Yr(t),this.rowCnt=e.rowCnt,this.colCnt=e.colCnt*t.length,this.cells=this.buildCells()}return e.prototype.buildCells=function(){for(var e=this,t=e.rowCnt,r=e.dayTableModel,n=e.resources,o=[],i=0;i<t;i+=1){for(var s=[],a=0;a<r.colCnt;a+=1)for(var l=0;l<n.length;l+=1){var u=n[l],c={resource:new Wr(this.context,u)},d={"data-resource-id":u.id},p={resourceId:u.id},h=r.cells[i][a].date;s[this.computeCol(a,l)]={key:u.id+":"+h.toISOString(),date:h,extraHookProps:c,extraDataAttrs:d,extraClassNames:["fc-resource"],extraDateSpan:p}}o.push(s)}return o},e}(),Jr=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,l.ZT)(t,e),t.prototype.computeCol=function(e,t){return t*this.dayTableModel.colCnt+e},t.prototype.computeColRanges=function(e,t,r){return[{firstCol:this.computeCol(e,r),lastCol:this.computeCol(t,r),isStart:!0,isEnd:!0}]}}(Xr),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,l.ZT)(t,e),t.prototype.computeCol=function(e,t){return e*this.resources.length+t},t.prototype.computeColRanges=function(e,t,r){for(var n=[],o=e;o<=t;o+=1){var i=this.computeCol(o,r);
2n.push({firstCol:i,lastCol:i,isStart:o===e,isEnd:o===t})}return n}}(Xr),[]);(function(){function e(){this.joinDateSelection=(0,Ke.HPs)(this.joinSegs),this.joinBusinessHours=(0,Ke.HPs)(this.joinSegs),this.joinFgEvents=(0,Ke.HPs)(this.joinSegs),this.joinBgEvents=(0,Ke.HPs)(this.joinSegs),this.joinEventDrags=(0,Ke.HPs)(this.joinInteractions),this.joinEventResizes=(0,Ke.HPs)(this.joinInteractions)}e.prototype.joinProps=function(e,t){for(var r=[],n=[],o=[],i=[],s=[],a=[],u="",c=0,d=t.resourceIndex.ids.concat([""]);c<d.length;c++){var p=d[c],h=e[p];r.push(h.dateSelectionSegs),n.push(p?h.businessHourSegs:Jr),o.push(p?h.fgEventSegs:Jr),i.push(h.bgEventSegs),s.push(h.eventDrag),a.push(h.eventResize),u=u||h.eventSelection}return{dateSelectionSegs:this.joinDateSelection.apply(this,(0,l.ev)([t],r)),businessHourSegs:this.joinBusinessHours.apply(this,(0,l.ev)([t],n)),fgEventSegs:this.joinFgEvents.apply(this,(0,l.ev)([t],o)),bgEventSegs:this.joinBgEvents.apply(this,(0,l.ev)([t],i)),eventDrag:this.joinEventDrags.apply(this,(0,l.ev)([t],s)),eventResize:this.joinEventResizes.apply(this,(0,l.ev)([t],a)),eventSelection:u}},e.prototype.joinSegs=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=e.resources.length,o=[],i=0;i<n;i+=1){for(var s=0,a=t[i];s<a.length;s++){var l=a[s];o.push.apply(o,this.transformSeg(l,e,i))}for(var u=0,c=t[n];u<c.length;u++){l=c[u];o.push.apply(o,this.transformSeg(l,e,i))}}return o},e.prototype.expandSegs=function(e,t){for(var r=e.resources.length,n=[],o=0;o<r;o+=1)for(var i=0,s=t;i<s.length;i++){var a=s[i];n.push.apply(n,this.transformSeg(a,e,o))}return n},e.prototype.joinInteractions=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=e.resources.length,o={},i=[],s=!1,a=!1,u=0;u<n;u+=1){var c=t[u];if(c){s=!0;for(var d=0,p=c.segs;d<p.length;d++){var h=p[d];i.push.apply(i,this.transformSeg(h,e,u))}(0,l.pi)(o,c.affectedInstances),a=a||c.isEvent}if(t[n])for(var f=0,g=t[n].segs;f<g.length;f++){h=g[f];i.push.apply(i,this.transformSeg(h,e,u))}}return s?{affectedInstances:o,segs:i,isEvent:a}:null}})(),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,l.ZT)(t,e),t.prototype.getKeyInfo=function(e){var t=e.resourceDayTableModel,r=(0,Ke._aR)(t.resourceIndex.indicesById,(function(e){return t.resources[e]}));return r[""]={},r},t.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},t.prototype.getKeysForEventDef=function(e){var t=e.resourceIds;return t.length?t:[""]}}(Ke.qX1);function Kr(e,t,r,n,o,i){var s=[];return Qr(function(e,t,r,n){var o=function(e,t){var r={};for(var n in e){var o=e[n];r[n]={resource:o,resourceFields:tn(o),children:[]}}for(var n in e){if((o=e[n]).parentId){var i=r[o.parentId];i&&en(r[n],i.children,t)}}return r}(e,n),i=[];for(var s in o){var a=o[s];a.resource.parentId||$r(a,i,r,0,t,n)}return i}(e,n?-1:1,t,r),s,n,[],0,o,i),s}function Qr(e,t,r,n,o,i,s){for(var a=0;a<e.length;a+=1){var l=e[a],u=l.group;if(u)if(r){var c=t.length,d=n.length;if(Qr(l.children,t,r,n.concat(0),o,i,s),c<t.length){var p=t[c];(p.rowSpans=p.rowSpans.slice())[d]=t.length-c}}else{var h=null!=i[f=u.spec.field+":"+u.value]?i[f]:s;t.push({id:f,group:u,isExpanded:h}),h&&Qr(l.children,t,r,n,o+1,i,s)}else if(l.resource){var f;h=null!=i[f=l.resource.id]?i[f]:s;t.push({id:f,rowSpans:n,depth:o,isExpanded:h,hasChildren:Boolean(l.children.length),resource:l.resource,resourceFields:l.resourceFields}),h&&Qr(l.children,t,r,n,o+1,i,s)}}}function $r(e,t,r,n,o,i){r.length&&(-1===o||n<=o)?$r(e,function(e,t,r){var n,o,i=e.resourceFields[r.field];if(r.order)for(o=0;o<t.length;o+=1){if((a=t[o]).group){var s=(0,Ke.dx1)(i,a.group.value)*r.order;if(0===s){n=a;break}if(s<0)break}}else for(o=0;o<t.length;o+=1){var a;if((a=t[o]).group&&i===a.group.value){n=a;break}}n||(n={group:{value:i,spec:r},children:[]},t.splice(o,0,n));return n}(e,t,r[0]).children,r.slice(1),n+1,o,i):en(e,t,i)}function en(e,t,r){var n;for(n=0;n<t.length;n+=1){if((0,Ke.oMu)(t[n].resourceFields,e.resourceFields,r)>0)break}t.splice(n,0,e)}function tn(e){var t=(0,l.pi)((0,l.pi)((0,l.pi)({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}var rn=(0,Ke.rxu)({deps:[rt],reducers:[function(e,t,r){var n=Pr(e&&e.resourceSource,t,r);return{resourceSource:n,resourceStore:Ir(e&&e.resourceStore,t,n,r),resourceEntityExpansions:function(e,t){var r;if(!e||!t)return{};switch(t.type){case"SET_RESOURCE_ENTITY_EXPANDED":return(0,l.pi)((0,l.pi)({},e),((r={})[t.id]=t.isExpanded,r));default:return e}}(e&&e.resourceEntityExpansions,t)}}],isLoadingFuncs:[function(e){return e.resourceSource&&e.resourceSource.isFetching}],eventRefiners:Nr,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((function(e){return String(e)}))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,r,n){if(!e){var o=n.getCurrentData();if(o.viewSpecs[o.currentViewType].optionDefaults.needsResourceData&&gr(t,n))return!0}return e}],eventDragMutationMassagers:[function(e,t,r){var n=t.dateSpan.resourceId,o=r.dateSpan.resourceId;n&&o&&n!==o&&(e.resourceMutation={matchResourceId:n,setResourceId:o})}],eventDefMutationAppliers:[function(e,t,r){var n=t.resourceMutation;if(n&&gr(e,r)){var o=e.resourceIds.indexOf(n.matchResourceId);if(-1!==o){var i=e.resourceIds.slice();i.splice(o,1),-1===i.indexOf(n.setResourceId)&&i.push(n.setResourceId),e.resourceIds=i}}}],dateSelectionTransformers:[function(e,t){var r=e.dateSpan.resourceId,n=t.dateSpan.resourceId;return r&&n?{resourceId:r}:null}],datePointTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],dateSpanTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],viewPropsTransformers:[vr,yr],isPropsValid:function(e,t){var r=(new Ar).splitProps((0,l.pi)((0,l.pi)({},e),{resourceStore:t.getCurrentData().resourceStore}));for(var n in r){var o=r[n];if(n&&r[""]&&(o=(0,l.pi)((0,l.pi)({},o),{eventStore:(0,Ke.rOY)(r[""].eventStore,o.eventStore),eventUiBases:(0,l.pi)((0,l.pi)({},r[""].eventUiBases),o.eventUiBases)})),!(0,Ke.yw$)(o,t,{resourceId:n},Or.bind(null,n)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){var r=e.resourceMutation;if(r){var n=t.calendarApi;return{oldResource:n.getResourceById(r.matchResourceId),newResource:n.getResourceById(r.setRe
2sourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:Vr,optionRefiners:Ur,listenerRefiners:_r,propSetHandlers:{resourceStore:function(e,t){var r=t.emitter;r.hasHandlers("resourcesSet")&&r.trigger("resourcesSet",function(e,t){var r=[];for(var n in e)r.push(new Wr(t,e[n]));return r}(e,t))}}});function nn(e){for(var t=e.depth,r=e.hasChildren,n=e.isExpanded,o=e.onExpanderClick,i=[],s=0;s<t;s+=1)i.push((0,Ke.azq)("span",{className:"fc-icon"}));var a=["fc-icon"];return r&&(n?a.push("fc-icon-minus-square"):a.push("fc-icon-plus-square")),i.push((0,Ke.azq)("span",{className:"fc-datagrid-expander"+(r?"":" fc-datagrid-expander-placeholder"),onClick:o},(0,Ke.azq)("span",{className:a.join(" ")}))),Ke.azq.apply(void 0,(0,l.ev)([Ke.HYg,{}],i))}function on(e){return{resource:new Wr(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}var sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,Ke.azq)(Ke.rVp,{hookProps:e.hookProps,content:e.colSpec.cellContent,defaultContent:an},(function(e,t){return(0,Ke.azq)("span",{className:"fc-datagrid-cell-main",ref:e},t)}))},t}(Ke.H6J);function an(e){return e.fieldValue||(0,Ke.azq)(Ke.HYg,null,"Â ")}var ln=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=(0,Ke.Vbb)(on),t.normalizeClassNames=(0,Ke.HgS)(),t.onExpanderClick=function(e){var r=t.props;r.hasChildren&&t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:r.resource.id,isExpanded:!r.isExpanded})},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=t.colSpec,o=this.refineHookProps({resource:t.resource,fieldValue:t.fieldValue,context:r}),i=this.normalizeClassNames(n.cellClassNames,o);return(0,Ke.azq)(Ke.y3w,{hookProps:o,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(function(r){return(0,Ke.azq)("td",{ref:r,"data-resource-id":t.resource.id,className:["fc-datagrid-cell","fc-resource"].concat(i).join(" ")},(0,Ke.azq)("div",{className:"fc-datagrid-cell-frame",style:{height:t.innerHeight}},(0,Ke.azq)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&(0,Ke.azq)(nn,{depth:t.depth,hasChildren:t.hasChildren,isExpanded:t.isExpanded,onExpanderClick:e.onExpanderClick}),(0,Ke.azq)(sn,{hookProps:o,colSpec:n}))))}))},t}(Ke.H6J),un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=e.colSpec,n={groupValue:e.fieldValue,view:t.viewApi};return(0,Ke.azq)(Ke.QJ3,{hookProps:n,classNames:r.cellClassNames,content:r.cellContent,defaultContent:cn,didMount:r.cellDidMount,willUnmount:r.cellWillUnmount},(function(t,r,n,o){return(0,Ke.azq)("td",{className:["fc-datagrid-cell","fc-resource-group"].concat(r).join(" "),rowSpan:e.rowSpan,ref:t},(0,Ke.azq)("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},(0,Ke.azq)("div",{className:"fc-datagrid-cell-cushion fc-sticky",ref:n},o)))}))},t}(Ke.H6J);function cn(e){return e.groupValue||(0,Ke.azq)(Ke.HYg,null,"Â ")}var dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.resource,r=e.rowSpans,n=e.depth,o=tn(t);return(0,Ke.azq)("tr",null,e.colSpecs.map((function(i,s){var a=r[s];if(0===a)return null;null==a&&(a=1);var l=i.field?o[i.field]:t.title||qr(t.id);return a>1?(0,Ke.azq)(un,{key:s,colSpec:i,fieldValue:l,rowSpan:a}):(0,Ke.azq)(ln,{key:s,colSpec:i,resource:t,fieldValue:l,depth:n,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))},t}(Ke.H6J);dn.addPropsEquality({rowSpans:Ke.CnA});var pn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerInnerRef=(0,Ke.VfA)(),t.onExpanderClick=function(){var e=t.props;t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n={groupValue:t.group.value,view:r.viewApi},o=t.group.spec;return(0,Ke.azq)("tr",null,(0,Ke.azq)(Ke.QJ3,{hookProps:n,classNames:o.labelClassNames,content:o.labelContent,defaultContent:hn,didMount:o.labelDidMount,willUnmount:o.labelWillUnmount},(function(n,o,i,s){return(0,Ke.azq)("td",{ref:n,colSpan:t.spreadsheetColCnt,className:["fc-datagrid-cell","fc-resource-group",r.theme.getClass("tableCellShaded")].concat(o).join(" ")},(0,Ke.azq)("div",{className:"fc-datagrid-cell-frame",style:{height:t.innerHe
2ight}},(0,Ke.azq)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:e.innerInnerRef},(0,Ke.azq)(nn,{depth:0,hasChildren:!0,isExpanded:t.isExpanded,onExpanderClick:e.onExpanderClick}),(0,Ke.azq)("span",{className:"fc-datagrid-cell-main",ref:i},s))))})))},t}(Ke.H6J);function hn(e){return e.groupValue||(0,Ke.azq)(Ke.HYg,null,"Â ")}pn.addPropsEquality({group:function(e,t){return e.spec===t.spec&&e.value===t.value}});var fn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.resizerElRefs=new Ke.lAU(t._handleColResizerEl.bind(t)),t.colDraggings={},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.colSpecs,n=t.superHeaderRendering,o=t.rowInnerHeights,i={view:this.context.viewApi},s=[];if(o=o.slice(),n){var a=o.shift();s.push((0,Ke.azq)("tr",{key:"row-super"},(0,Ke.azq)(Ke.QJ3,{hookProps:i,classNames:n.headerClassNames,content:n.headerContent,didMount:n.headerDidMount,willUnmount:n.headerWillUnmount},(function(e,t,n,o){return(0,Ke.azq)("th",{colSpan:r.length,ref:e,className:["fc-datagrid-cell","fc-datagrid-cell-super"].concat(t).join(" ")},(0,Ke.azq)("div",{className:"fc-datagrid-cell-frame",style:{height:a}},(0,Ke.azq)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:n},o)))}))))}var l=o.shift();return s.push((0,Ke.azq)("tr",{key:"row"},r.map((function(t,n){var o=n===r.length-1;return(0,Ke.azq)(Ke.QJ3,{key:n,hookProps:i,classNames:t.headerClassNames,content:t.headerContent,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(function(r,i,s,a){return(0,Ke.azq)("th",{ref:r,className:["fc-datagrid-cell"].concat(i).join(" ")},(0,Ke.azq)("div",{className:"fc-datagrid-cell-frame",style:{height:l}},(0,Ke.azq)("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&(0,Ke.azq)("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},(0,Ke.azq)("span",{className:"fc-icon"})),(0,Ke.azq)("span",{className:"fc-datagrid-cell-main",ref:s},a)),!o&&(0,Ke.azq)("div",{className:"fc-datagrid-cell-resizer",ref:e.resizerElRefs.createRef(n)})))}))})))),(0,Ke.azq)(Ke.HYg,null,s)},t.prototype._handleColResizerEl=function(e,t){var r,n=this.colDraggings;e?(r=this.initColResizing(e,parseInt(t,10)))&&(n[t]=r):(r=n[t])&&(r.destroy(),delete n[t])},t.prototype.initColResizing=function(e,t){var r=this.context,n=r.pluginHooks,o=r.isRtl,i=this.props.onColWidthChange,s=n.elementDraggingImpl;if(s){var a,l,u=new s(e);return u.emitter.on("dragstart",(function(){var r=(0,Ke.xlG)((0,Ke.x_n)(e,"tr"),"th");l=r.map((function(e){return e.getBoundingClientRect().width})),a=l[t]})),u.emitter.on("dragmove",(function(e){l[t]=Math.max(a+e.deltaX*(o?-1:1),20),i&&i(l.slice())})),u.setAutoScrollEnabled(!1),u}return null},t}(Ke.H6J),gn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r={resource:new Wr(t,e.resource)};return(0,Ke.azq)(Ke.rVp,{hookProps:r,content:t.options.resourceLaneContent},(function(e,t){return t&&(0,Ke.azq)("div",{className:"fc-timeline-lane-misc",ref:e},t)}))},t}(Ke.H6J),vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=(0,Ke.Vbb)(mn),t.normalizeClassNames=(0,Ke.HgS)(),t.handleHeightChange=function(e,r){t.props.onHeightChange&&t.props.onHeightChange((0,Ke.x_n)(e,"tr"),r)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=r.options,o=this.refineHookProps({resource:t.resource,context:r}),i=this.normalizeClassNames(n.resourceLaneClassNames,o);return(0,Ke.azq)("tr",{ref:t.elRef},(0,Ke.azq)(Ke.y3w,{hookProps:o,didMount:n.resourceLaneDidMount,willUnmount:n.resourceLaneWillUnmount},(function(r){return(0,Ke.azq)("td",{ref:r,className:["fc-timeline-lane","fc-resource"].concat(i).join(" "),"data-resource-id":t.resource.id},(0,Ke.azq)("div",{className:"fc-timeline-lane-frame",style:{height:t.innerHeight}},(0,Ke.azq)(gn,{resource:t.resource}),(0,Ke.azq)(cr,{dateProfile:t.dateProfile,tDateProfile:t.tDateProfile,nowDate:t.nowDate,todayRange:t.todayRange,nextDayThreshold:t.nextDayThreshold,businessHours:t.businessHours,eventStore:t.eventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,timelineCoords:t.timelineCoords,onHeightChange:e.handleHeightChange,resourceId:t.resource.id})))})))},t}(Ke.H6J);function mn(e){return{resource:new Wr(e.context,e.resource)}}var yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.props.renderingHooks,n={groupValue:t.groupValue,view:this.context.viewApi};return(0,Ke.azq)("tr",{ref:t.elRef},(0,Ke.azq)(Ke.QJ3,{hookProps:n,classNames:r.laneClassNames,content:r.laneContent,didMount:r.laneDidMount,willUnmount:r.laneWillUnmount},(function(r,n,o,i){return(0,Ke.azq)("td",{ref:r,className:["fc-timeline-lane","fc-resource-group",e.context.theme.getClass("tableCellShaded")].concat(n).join(" ")}
2,(0,Ke.azq)("div",{style:{height:t.innerHeight},ref:o},i))})))},t}(Ke.H6J),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=e.rowElRefs,n=e.innerHeights;return(0,Ke.azq)("tbody",null,e.rowNodes.map((function(o,i){if(o.group)return(0,Ke.azq)(yn,{key:o.id,elRef:r.createRef(o.id),groupValue:o.group.value,renderingHooks:o.group.spec,innerHeight:n[i]||""});if(o.resource){var s=o.resource;return(0,Ke.azq)(vn,(0,l.pi)({key:o.id,elRef:r.createRef(o.id)},e.splitProps[s.id],{resource:s,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:s.businessHours||e.fallbackBusinessHours,innerHeight:n[i]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))},t}(Ke.H6J),Rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,Ke.VfA)(),t.rowElRefs=new Ke.lAU,t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,Ke.azq)("table",{ref:this.rootElRef,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},(0,Ke.azq)(Sn,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.componentWillUnmount=function(){this.props.onRowCoords&&this.props.onRowCoords(null)},t.prototype.updateCoords=function(){var e,t=this.props;t.onRowCoords&&null!==t.clientWidth&&this.props.onRowCoords(new Ke.zIV(this.rootElRef.current,(e=this.rowElRefs.currentMap,t.rowNodes.map((function(t){return e[t.id]}))),!1,!0))},t}(Ke.H6J);var En=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.computeHasResourceBusinessHours=(0,Ke.HPs)(Cn),t.resourceSplitter=new Ar,t.bgSlicer=new sr,t.slatsRef=(0,Ke.VfA)(),t.state={slatCoords:null},t.handleEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t.handleRowCoords=function(e){t.rowCoords=e,t.props.onRowCoords&&t.props.onRowCoords(e)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this,r=t.props,n=t.state,o=t.context,i=r.dateProfile,s=r.tDateProfile,a=(0,Ke.NTx)(s.slotDuration).unit,l=this.computeHasResourceBusinessHours(r.rowNodes),u=this.resourceSplitter.splitProps(r),c=u[""],d=this.bgSlicer.sliceProps(c,i,s.isTimeScale?null:r.nextDayThreshold,o,i,o.dateProfileGenerator,s,o.dateEnv),p=n.slatCoords&&n.slatCoords.dateProfile===r.dateProfile?n.slatCoords:null;return(0,Ke.azq)("div",{ref:this.handleEl,className:["fc-timeline-body",r.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:r.tableMinWidth}},(0,Ke.azq)(Ke.wh8,{unit:a},(function(t,n){return(0,Ke.azq)(Ke.HYg,null,(0,Ke.azq)(nr,{ref:e.slatsRef,dateProfile:i,tDateProfile:s,nowDate:t,todayRange:n,clientWidth:r.clientWidth,tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,onCoords:e.handleSlatCoords,onScrollLeftRequest:r.onScrollLeftRequest}),(0,Ke.azq)(ir,{businessHourSegs:l?null:d.businessHourSegs,bgEventSegs:d.bgEventSegs,timelineCoords:p,eventResizeSegs:d.eventResize?d.eventResize.segs:[],dateSelectionSegs:d.dateSelectionSegs,nowDate:t,todayRange:n}),(0,Ke.azq)(Rn,{rowNodes:r.rowNodes,dateProfile:i,tDateProfile:r.tDateProfile,nowDate:t,todayRange:n,splitProps:u,fallbackBusinessHours:l?r.businessHours:null,clientWidth:r.clientWidth,minHeight:r.expandRows?r.clientHeight:"",tableMinWidth:r.tableMinWidth,innerHeights:r.rowInnerHeights,slatCoords:p,onRowCoords:e.handleRowCoords,onRowHeightChange:r.onRowHeightChange}),o.options.nowIndicator&&p&&p.isDateInRange(t)&&(0,Ke.azq)("div",{className:"fc-timeline-now-indicator-container"},(0,Ke.azq)(Ke.AOy,{isAxis:!1,date:t},(function(e,r,n,i){return(0,Ke.azq)("div",{ref:e,className:["fc-timeline-now-indicator-line"].concat(r).join(" "),style:Qt(p.dateToCoord(t),o.isRtl)},i)}))))}
2)))},t.prototype.queryHit=function(e,t){var r=this.rowCoords,n=r.topToIndex(t);if(null!=n){var o=this.props.rowNodes[n].resource;if(o){var i=this.slatsRef.current.positionToHit(e);if(i)return{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:o.id},rect:{left:i.left,right:i.right,top:r.tops[n],bottom:r.bottoms[n]},dayEl:i.dayEl,layer:0}}}return null},t}(Ke.IdW);function Cn(e){for(var t=0,r=e;t<r.length;t++){var n=r[t].resource;if(n&&n.businessHours)return!0}return!1}var bn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollGridRef=(0,Ke.VfA)(),t.timeBodyScrollerElRef=(0,Ke.VfA)(),t.spreadsheetHeaderChunkElRef=(0,Ke.VfA)(),t.rootElRef=(0,Ke.VfA)(),t.ensureScrollGridResizeId=0,t.state={resourceAreaWidthOverride:null},t.ensureScrollGridResize=function(){t.ensureScrollGridResizeId&&clearTimeout(t.ensureScrollGridResizeId),t.ensureScrollGridResizeId=setTimeout((function(){t.scrollGridRef.current.handleSizing(!1)}),Ke.vc.SCROLLGRID_RESIZE_INTERVAL+1)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,r=e.state,n=e.context,o=n.options,i=!t.forPrint&&(0,Ke.Q8U)(o),s=!t.forPrint&&(0,Ke.PZw)(o),a=[{type:"header",key:"header",syncRowHeights:!0,isSticky:i,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:t.spreadsheetHeaderRows},{key:"divider",outerContent:(0,Ke.azq)("td",{className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:t.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(o.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:t.spreadsheetBodyRows},{key:"divider",outerContent:(0,Ke.azq)("td",{className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:t.timeBodyContent}]}];s&&a.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:Ke.Hbc},{key:"divider",outerContent:(0,Ke.azq)("td",{className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:Ke.Hbc}]});var l=null!=r.resourceAreaWidthOverride?r.resourceAreaWidthOverride:o.resourceAreaWidth;return(0,Ke.azq)(xt,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!t.isHeightAuto&&!t.forPrint,collapsibleWidth:!1,colGroups:[{cols:t.spreadsheetCols,width:l},{cols:[]},{cols:t.timeCols}],sections:a})},t.prototype.forceTimeScroll=function(e){this.scrollGridRef.current.forceScrollLeft(2,e)},t.prototype.forceResourceScroll=function(e){this.scrollGridRef.current.forceScrollTop(1,e)},t.prototype.getResourceScroll=function(){return this.timeBodyScrollerElRef.current.scrollTop},t.prototype.componentDidMount=function(){this.initSpreadsheetResizing()},t.prototype.componentWillUnmount=function(){this.destroySpreadsheetResizing()},t.prototype.initSpreadsheetResizing=function(){var e=this,t=this.context,r=t.isRtl,n=t.pluginHooks.elementDraggingImpl,o=this.spreadsheetHeaderChunkElRef.current;if(n){var i,s,a=this.rootElRef.current,l=this.spreadsheetResizerDragging=new n(a,".fc-resource-timeline-divider");l.emitter.on("dragstart",(function(){i=o.getBoundingClientRect().width,s=a.getBoundingClientRect().width})),l.emitter.on("dragmove",(function(t){var n=i+t.deltaX*(r?-1:1);n=Math.max(n,30),n=Math.min(n,s-30),e.setState({resourceAreaWidthOverride:n},e.ensureScrollGridResize)})),l.setAutoScrollEnabled(!1)}},t.prototype.destroySpreadsheetResizing=function(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()},t}(Ke.H6J),Dn=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.processColOptions=(0,Ke.HPs)(zn),n.buildTimelineDateProfile=(0,Ke.HPs)(Lt),n.hasNesting=(0,Ke.HPs)(Pn),n.buildRowNodes=(0,Ke.HPs)(Kr),n.layoutRef=(0,Ke.VfA)(),n.rowNodes=[],n.renderedRowNodes=[],n.buildRowIndex=(0,Ke.HPs)(wn),n.handleSlatCoords=function(e){n.setState({slatCoords:e})},n.handleRowCoords=function(e){n.rowCoords=e,n.scrollResponder.update(!1)},n.handleMaxCushionWidth=function(e){n.setState({slotCushionMaxWidth:Math.ceil(e)})},n.handleScrollLeftRequest=function(e){n.layoutRef.current.forceTimeScroll(e)},n.handleScrollRequest=function(e){var t=n.rowCoords,r=n.layoutRef.current,o=e.rowId||e.resourceId;
2if(t){if(o){var i=n.buildRowIndex(n.renderedRowNodes)[o];if(null!=i){var s=null!=e.fromBottom?t.bottoms[i]-e.fromBottom:t.tops[i];r.forceResourceScroll(s)}}return!0}return null},n.handleColWidthChange=function(e){n.setState({spreadsheetColWidths:e})},n.state={resourceAreaWidth:r.options.resourceAreaWidth,spreadsheetColWidths:[]},n}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this,r=t.props,n=t.state,o=t.context,i=o.options,s=o.viewSpec,a=this.processColOptions(o.options),l=a.superHeaderRendering,u=a.groupSpecs,c=a.orderSpecs,d=a.isVGrouping,p=a.colSpecs,h=this.buildTimelineDateProfile(r.dateProfile,o.dateEnv,i,o.dateProfileGenerator),f=this.rowNodes=this.buildRowNodes(r.resourceStore,u,c,d,r.resourceEntityExpansions,i.resourcesInitiallyExpanded),g=["fc-resource-timeline",this.hasNesting(f)?"":"fc-resource-timeline-flat","fc-timeline",!1===i.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],v=i.slotMinWidth,m=hr(h,v||this.computeFallbackSlotMinWidth(h));return(0,Ke.azq)(Ke.xS$,{viewSpec:s},(function(t,i){return(0,Ke.azq)("div",{ref:t,className:g.concat(i).join(" ")},(0,Ke.azq)(bn,{ref:e.layoutRef,forPrint:r.forPrint,isHeightAuto:r.isHeightAuto,spreadsheetCols:xn(p,n.spreadsheetColWidths,""),spreadsheetHeaderRows:function(t){return(0,Ke.azq)(fn,{superHeaderRendering:l,colSpecs:p,onColWidthChange:e.handleColWidthChange,rowInnerHeights:t.rowSyncHeights})},spreadsheetBodyRows:function(t){return(0,Ke.azq)(Ke.HYg,null,e.renderSpreadsheetRows(f,p,t.rowSyncHeights))},timeCols:m,timeHeaderContent:function(t){return(0,Ke.azq)(er,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,dateProfile:r.dateProfile,tDateProfile:h,slatCoords:n.slatCoords,rowInnerHeights:t.rowSyncHeights,onMaxCushionWidth:v?null:e.handleMaxCushionWidth})},timeBodyContent:function(t){return(0,Ke.azq)(En,{dateProfile:r.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:h,rowNodes:f,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,resourceStore:r.resourceStore,nextDayThreshold:o.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:e.handleSlatCoords,onRowCoords:e.handleRowCoords,onScrollLeftRequest:e.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}}))}))},t.prototype.renderSpreadsheetRows=function(e,t,r){return e.map((function(e,n){return e.group?(0,Ke.azq)(pn,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:r[n]||""}):e.resource?(0,Ke.azq)(dn,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:r[n]||""}):null}))},t.prototype.componentDidMount=function(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.getSnapshotBeforeUpdate=function(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}},t.prototype.componentDidUpdate=function(e,t,r){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),r.resourceScroll&&this.handleScrollRequest(r.resourceScroll)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.computeFallbackSlotMinWidth=function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)},t.prototype.queryResourceScroll=function(){var e=this.rowCoords,t=this.renderedRowNodes;if(e){for(var r=this.layoutRef.current,n=e.bottoms,o=r.getResourceScroll(),i={},s=0;s<n.length;s+=1){var a=t[s],l=n[s]-o;if(l>0){i.rowId=a.id,i.fromBottom=l;break}}return i}return null},t}(Ke.H6J);function wn(e){for(var t={},r=0;r<e.length;r+=1)t[e[r].id]=r;return t}function xn(e,t,r){return void 0===r&&(r=""),e.map((function(e,n){return{className:e.isMain?"fc-main-col":"",width:t[n]||e.width||r}}))}function Pn(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(n.group)return!0;
2if(n.resource&&n.hasChildren)return!0}return!1}function zn(e){var t=e.resourceAreaColumns||[],r=null;t.length?e.resourceAreaHeaderContent&&(r={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent||"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});for(var n=[],o=[],i=[],s=!1,a=0,u=t;a<u.length;a++){var c=u[a];c.group?o.push((0,l.pi)((0,l.pi)({},c),{cellClassNames:c.cellClassNames||e.resourceGroupLabelClassNames,cellContent:c.cellContent||e.resourceGroupLabelContent,cellDidMount:c.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:c.cellWillUnmount||e.resourceGroupLaneWillUnmount})):n.push(c)}var d=n[0];if(d.isMain=!0,d.cellClassNames=d.cellClassNames||e.resourceLabelClassNames,d.cellContent=d.cellContent||e.resourceLabelContent,d.cellDidMount=d.cellDidMount||e.resourceLabelDidMount,d.cellWillUnmount=d.cellWillUnmount||e.resourceLabelWillUnmount,o.length)i=o,s=!0;else{var p=e.resourceGroupField;p&&i.push({field:p,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDid
2Mount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}for(var h=[],f=0,g=e.resourceOrder||jr;f<g.length;f++){for(var v=g[f],m=!1,y=0,S=i;y<S.length;y++){var R=S[y];if(R.field===v.field){R.order=v.order,m=!0;break}}m||h.push(v)}return{superHeaderRendering:r,isVGrouping:s,groupSpecs:i,colSpecs:o.concat(n),orderSpecs:h}}Dn.addStateEquality({spreadsheetColWidths:Ke.CnA});var Tn=(0,Ke.rxu)({deps:[rt,rn,fr],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:Dn,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}}),Hn=r(98130),Mn="2021-06-16",kn=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],qn={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var In={schedulerLicenseKey:String},Nn=(0,Hn.rxu)({optionRefiners:In,viewContainerAppends:[function(e){var t=e.options.schedulerLicenseKey,r="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(r)){var n=function(e){if(-1!==kn.indexOf(e))return"valid";var t=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){var r=new Date(1e3*parseInt(t[2],10)),n=new Date(Hn.vc.mockSchedulerReleaseDate||Mn);if((0,Hn.qbb)(n))return(0,Hn.E4D)(n,-372)<r?"valid":"outdated"}return"invalid"}(t);if("valid"!==n)return(0,Hn.azq)("div",{className:"fc-license-message",style:qn},"outdated"===n?(0,Hn.azq)(Hn.HYg,null,"Your license key is too old to work with this version. ",(0,Hn.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):(0,Hn.azq)(Hn.HYg,null,"Your license key is invalid. ",(0,Hn.azq)("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]});function Wn(e,t){var r=e.resourceEditable;if(null==r){var n=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];n&&(r=n.extendedProps.resourceEditable),null==r&&null==(r=t.options.eventResourceEditable)&&(r=t.options.editable)}return r}var An=function(){function e(){this.filterResources=(0,Hn.HPs)(On)}return e.prototype.transform=function(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null},e}();function On(e,t,r,n){if(t){var o=function(e,t){var r={};for(var n in e)for(var o=0,i=t[e[n].defId].resourceIds;o<i.length;o++){r[i[o]]=!0}return r}(function(e,t){return(0,Hn.CrY)(e,(function(e){return(0,Hn.zvB)(e.range,t)}))}(r.instances,n),r.defs);return(0,l.pi)(o,function(e,t){var r={};for(var n in e)for(var o=void 0;(o=t[n])&&(n=o.parentId);)r[n]=!0;return r}(o,e)),(0,Hn.CrY)(e,(function(e,t){return o[t]}))}return e}var Ln=function(){function e(){this.buildResourceEventUis=(0,Hn.HPs)(Vn,Hn.S6v),this.injectResourceEventUis=(0,Hn.HPs)(jn)}return e.prototype.transform=function(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}},e}();function Vn(e){return(0,Hn._aR)(e,(function(e){return e.ui}))}function jn(e,t,r){return(0,Hn._aR)(e,(function(e,n){return n?function(e,t,r){for(var n=[],o=0,i=t.resourceIds;o<i.length;o++){var s=i[o];r[s]&&n.unshift(r[s])}return n.unshift(e),(0,Hn.kLJ)(n)}(e,t[n],r):e}))}var Un=[];function _n(e){Un.push(e)}function Fn(e){return Un[e]}var Gn={id:String,resources:Hn.yRu,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:Hn.yRu};function Bn(e){var t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){var r=(0,Hn.rjQ)(t,Gn),n=r.refined;!function(e){for(var t in e)console.warn("Unknown resource prop '"+t+"'")}(r.extra);var o=function(e){for(var t=Un,r=t.length-1;r>=0;r-=1){var n=t[r].parseMeta(e);if(n)return{meta:n,sourceDefId:r}}return null}(n);if(o)return{_raw:e,sourceId:(0,Hn.M8z)(),sourceDefId:o.sourceDefId,meta:o.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Zn(e,t,r){var n=r.options,o=r.dateProfile;if(!e||!t)return Yn(n.initialResources||n.resources,o.activeRange,n.refetchResourcesOnNavigate,r);switch(t.type){case"RESET_RESOURCE_SOURCE":return Yn(t.resourceSourceIn
2put,o.activeRange,n.refetchResourcesOnNavigate,r);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return function(e,t,r,n){if(r&&!function(e){return Boolean(Fn(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||!(0,Hn.Dnt)(e.fetchRange,t)))return Xn(e,t,n);return e}(e,o.activeRange,n.refetchResourcesOnNavigate,r);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return function(e,t,r){if(t===e.latestFetchId)return(0,l.pi)((0,l.pi)({},e),{isFetching:!1,fetchRange:r});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Xn(e,o.activeRange,r);default:return e}}function Yn(e,t,r,n){if(e){var o=Bn(e);return o=Xn(o,r?t:null,n)}return null}function Xn(e,t,r){var n=Fn(e.sourceDefId),o=(0,Hn.M8z)();return n.fetch({resourceSource:e,range:t,context:r},(function(e){r.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:t,rawResources:e.rawResources})}),(function(e){r.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:t,error:e})})),(0,l.pi)((0,l.pi)({},e),{isFetching:!0,latestFetchId:o})}var Jn="_fc:",Kn={id:String,parentId:String,children:Hn.yRu,title:String,businessHours:Hn.yRu,extendedProps:Hn.yRu,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:Hn.yRu,eventOverlap:Boolean,eventAllow:Hn.yRu,eventClassNames:Hn.Qu7,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function Qn(e,t,r,n){void 0===t&&(t="");var o=(0,Hn.rjQ)(e,Kn),i=o.refined,s=o.extra,a={id:i.id||Jn+(0,Hn.M8z)(),parentId:i.parentId||t,title:i.title||"",businessHours:i.businessHours?(0,Hn.ifz)(i.businessHours,n):null,ui:(0,Hn.oqz)({editable:i.eventEditable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:i.eventOverlap,allow:i.eventAllow,classNames:i.eventClassNames,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},n),extendedProps:(0,l.pi)((0,l.pi)({},s),i.extendedProps)};if(Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),r[a.id]);else if(r[a.id]=a,i.children)for(var u=0,c=i.children;u<c.length;u++){Qn(c[u],a.id,r,n)}return a}function $n(e,t,r,n){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return function(e,t,r,n,o){if(n.latestFetchId===r){for(var i={},s=0,a=t;s<a.length;s++){Qn(a[s],"",i,o)}return i}return e}(e,t.rawResources,t.fetchId,r,n);case"ADD_RESOURCE":return o=e,i=t.resourceHash,(0,l.pi)((0,l.pi)({},o),i);case"REMOVE_RESOURCE":return function(e,t){var r=(0,l.pi)({},e);for(var n in delete r[t],r)r[n].parentId===t&&(r[n]=(0,l.pi)((0,l.pi)({},r[n]),{parentId:""}));return r}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,r,n){var o,i,s=e[t];if(s)return(0,l.pi)((0,l.pi)({},e),((o={})[t]=(0,l.pi)((0,l.pi)({},s),((i={})[r]=n,i)),o));return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,r,n){var o,i,s=e[t];if(s)return(0,l.pi)((0,l.pi)({},e),((o={})[t]=(0,l.pi)((0,l.pi)({},s),{extendedProps:(0,l.pi)((0,l.pi)({},s.extendedProps),(i={},i[r]=n,i))}),o));return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var o,i}var eo={resourceId:String,resourceIds:Hn.yRu,resourceEditable:Boolean};var to=function(){function e(e,t){this._context=e,this._resource=t}return e.prototype.setProp=function(e,t){var r=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:r.id,propName:e,propValue:t}),this.sync(r)},e.prototype.setExtendedProp=function(e,t){var r=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:r.id,propName:e,propValue:t}),this.sync(r)},e.prototype.sync=function(t){var r=this._context,n=t.id;this._resource=r.getCurrentData().resourceStore[n],r.emitter.trigger("resourceChange",{oldResource:new e(r,t),resource:this,revert:function(){var e;r.dispatch({type:"ADD_RESOURCE",resourceHash:(e={},e[n]=t,e)})}})},e.prototype.remove=function(){var e=this._context,t=this._resource,r=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:r}),e.emitter.trigger("resourceRemove",{resource:this,revert:function(){var n;e.dispatch({type:"ADD_RESOURCE",resourceHash:(n={},n[r]=t,n)})}})},e.prototype.getParent=function(){var t=this._context,r=this._resource.parentId;return r?new e(t,t.getCurrentData().resourceSource[r]):null},e.prototype.getChildren=function(){var t=this._resource.id,r=this._context,n=r.getCurrentData().resourceStore,o=[];for(var i in n)n[i].parentId===t&&o.push(new e(r,n[i]));return o},e.prototype.getEvents=function(){var e=this._resource.id,t=this._context,r=t.getCurrentData().eventStore,
2n=r.defs,o=r.instances,i=[];for(var s in o){var a=o[s],l=n[a.defId];-1!==l.resourceIds.indexOf(e)&&i.push(new Hn.voO(t,l,a))}return i},Object.defineProperty(e.prototype,"id",{get:function(){return 0===(e=this._resource.id).indexOf(Jn)?"":e;var e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._resource.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventConstraint",{get:function(){return this._resource.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventOverlap",{get:function(){return this._resource.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventAllow",{get:function(){return this._resource.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventBackgroundColor",{get:function(){return this._resource.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventBorderColor",{get:function(){return this._resource.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventTextColor",{get:function(){return this._resource.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventClassNames",{get:function(){return this._resource.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._resource.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._resource,r=t.ui,n=this.id,o={};return n&&(o.id=n),t.title&&(o.title=t.title),e.collapseEventColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?o.eventColor=r.backgroundColor:(r.backgroundColor&&(o.eventBackgroundColor=r.backgroundColor),r.borderColor&&(o.eventBorderColor=r.borderColor)),r.textColor&&(o.eventTextColor=r.textColor),r.classNames.length&&(o.eventClassNames=r.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?(0,l.pi)(o,t.extendedProps):o.extendedProps=t.extendedProps),o},e.prototype.toJSON=function(){return this.toPlainObject()},e}();Hn.zeW.prototype.addResource=function(e,t){var r,n=this;void 0===t&&(t=!0);var o,i,s=this.getCurrentData();e instanceof to?((r={})[(i=e._resource).id]=i,o=r):i=Qn(e,"",o={},s),this.dispatch({type:"ADD_RESOURCE",resourceHash:o}),t&&this.trigger("_scrollRequest",{resourceId:i.id});var a=new to(s,i);return s.emitter.trigger("resourceAdd",{resource:a,revert:function(){n.dispatch({type:"REMOVE_RESOURCE",resourceId:i.id})}}),a},Hn.zeW.prototype.getResourceById=function(e){e=String(e);var t=this.getCurrentData();if(t.resourceStore){var r=t.resourceStore[e];if(r)return new to(t,r)}return null},Hn.zeW.prototype.getResources=function(){var e=this.getCurrentData(),t=e.resourceStore,r=[];if(t)for(var n in t)r.push(new to(e,t[n]));return r},Hn.zeW.prototype.getTopLevelResources=function(){var e=this.getCurrentData(),t=e.resourceStore,r=[];if(t)for(var n in t)t[n].parentId||r.push(new to(e,t[n]));return r},Hn.zeW.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};var ro=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.getKeyInfo=function(e){return(0,l.pi)({"":{}},e.resourceStore)},t.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},t.prototype.getKeysForEventDef=function(e){var t=e.resourceIds;return t.length?t:[""]},t}(Hn.qX1);function no(e,t){return(0,l.pi)((0,l.pi)({},t),{constraints:oo(e,t.constraints)})}function oo(e,t){return t.map((function(t){var r=t.defs;if(r)for(var n in r){var o=r[n].resourceIds;if(o.length&&-1===o.indexOf(e))return!1}return t}))}Hn.voO.prototype.getResources=function(){var e=this._context.calendarApi;return this._def.resourceIds.map((function(t){return e.getResourceById(t)}))},Hn.voO.prototype.setResources=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var o=n[r],i=null;"string"==typeof o?i=o:"number"==typeof o?i=String(o):o instanceof to?i=o.id:console.warn("unknown resource type: "+o),i&&t.push(i)}this.mutate({standardProps:{resourceIds:t}})};var io={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceIn
2put:e})}};var so=(0,Hn.MCs)("id,title");var ao={initialResources:Hn.yRu,resources:Hn.yRu,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:Hn.MCs,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:Hn.yRu,resourceAreaColumns:Hn.yRu,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:Hn.yRu,resourceAreaHeaderContent:Hn.yRu,resourceAreaHeaderDidMount:Hn.yRu,resourceAreaHeaderWillUnmount:Hn.yRu,resourceGroupLabelClassNames:Hn.yRu,resourceGroupLabelContent:Hn.yRu,resourceGroupLabelDidMount:Hn.yRu,resourceGroupLabelWillUnmount:Hn.yRu,resourceLabelClassNames:Hn.yRu,resourceLabelContent:Hn.yRu,resourceLabelDidMount:Hn.yRu,resourceLabelWillUnmount:Hn.yRu,resourceLaneClassNames:Hn.yRu,resourceLaneContent:Hn.yRu,resourceLaneDidMount:Hn.yRu,resourceLaneWillUnmount:Hn.yRu,resourceGroupLaneClassNames:Hn.yRu,resourceGroupLaneContent:Hn.yRu,resourceGroupLaneDidMount:Hn.yRu,resourceGroupLaneWillUnmount:Hn.yRu},lo={resourcesSet:Hn.yRu,resourceAdd:Hn.yRu,resourceChange:Hn.yRu,resourceRemove:Hn.yRu};function uo(e){return(0,Hn.azq)(Hn.Yh$.Consumer,null,(function(t){var r=t.options,n={resource:new to(t,e.resource),date:e.date?t.dateEnv.toDate(e.date):null,view:t.viewApi},o={"data-resource-id":e.resource.id,"data-date":e.date?(0,Hn.SVl)(e.date):void 0};return(0,Hn.azq)(Hn.QJ3,{hookProps:n,classNames:r.resourceLabelClassNames,content:r.resourceLabelContent,defaultContent:co,didMount:r.resourceLabelDidMount,willUnmount:r.resourceLabelWillUnmount},(function(t,r,n,i){return e.children(t,r,o,n,i)}))}))}function co(e){return e.resource.title||e.resource.id}_n({ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.resources)?e.resources:null},fetch:function(e,t){t({rawResources:e.resourceSource.meta})}}),_n({parseMeta:function(e){return"function"==typeof e.resources?e.resources:null},fetch:function(e,t,r){var n=e.context.dateEnv,o=e.resourceSource.meta,i=e.range?{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}:{};(0,Hn.Olf)(o.bind(null,i),(function(e){t({rawResources:e})}),r)}}),_n({parseMeta:function(e){return e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null},fetch:function(e,t,r){var n=e.resourceSource.meta,o=function(e,t,r){var n,o,i,s,a=r.dateEnv,u=r.options,c={};t&&(null==(n=e.startParam)&&(n=u.startParam),null==(o=e.endParam)&&(o=u.endParam),null==(i=e.timeZoneParam)&&(i=u.timeZoneParam),c[n]=a.formatIso(t.start),c[o]=a.formatIso(t.end),"local"!==a.timeZone&&(c[i]=a.timeZone));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return(0,l.pi)(c,s),c}(n,e.range,e.context);(0,Hn.aAC)(n.method,n.url,o,(function(e,r){t({rawResources:e,xhr:r})}),(function(e,t){r({message:e,xhr:t})}))}});var po=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,Hn.azq)(uo,{resource:e.resource,date:e.date},(function(t,r,n,o,i){return(0,Hn.azq)("th",(0,l.pi)({ref:t,className:["fc-col-header-cell","fc-resource"].concat(r).join(" "),colSpan:e.colSpan},n),(0,Hn.azq)("div",{className:"fc-scrollgrid-sync-inner"},(0,Hn.azq)("span",{className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},t}(Hn.H6J),ho=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDateFormat=(0,Hn.HPs)(fo),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=this.buildDateFormat(r.options.dayHeaderFormat,t.datesRepDistinctDays,t.dates.length);return(0,Hn.azq)(Hn.wh8,{unit:"day"},(function(o,i){return 1===t.dates.length?e.renderResourceRow(t.resources,t.dates[0]):r.options.datesAboveResources?e.renderDayAndResourceRows(t.dates,n,i,t.resources):e.renderResourceAndDayRows(t.resources,t.dates,n,i)}))},t.prototype.renderResourceRow=function(e,t){var r=e.map((function(e){return(0,Hn.azq)(po,{key:e.id,resource:e,colSpan:1,date:t})}));return this.buildTr(r,"resources")},t.prototype.renderDayAndResourceRows=function(e,t,r,n){for(var o=[],i=[],s=0,a=e;s<a.length;s++){var l=a[s];o.push(this.renderDateCell(l,t,r,n.length,null,!0));for(var u=0,c=n;u<c.length;u++){var d=c[u];i.push((0,Hn.azq)(po,{key:d.id+":"+l.toISOString(),resource:d,colSpan:1,date:l}))}}return(0,Hn.azq)(Hn.HYg,null,this.buildTr(o,"day"),this.buildTr(i,"resources"))}
2,t.prototype.renderResourceAndDayRows=function(e,t,r,n){for(var o=[],i=[],s=0,a=e;s<a.length;s++){var l=a[s];o.push((0,Hn.azq)(po,{key:l.id,resource:l,colSpan:t.length,isSticky:!0}));for(var u=0,c=t;u<c.length;u++){var d=c[u];i.push(this.renderDateCell(d,r,n,1,l))}}return(0,Hn.azq)(Hn.HYg,null,this.buildTr(o,"resources"),this.buildTr(i,"day"))},t.prototype.renderDateCell=function(e,t,r,n,o,i){var s=this.props,a=o?":"+o.id:"",l=o?{resource:new to(this.context,o)}:{},u=o?{"data-resource-id":o.id}:{};return s.datesRepDistinctDays?(0,Hn.azq)(Hn.nWf,{key:e.toISOString()+a,date:e,dateProfile:s.dateProfile,todayRange:r,colCnt:s.dates.length*s.resources.length,dayHeaderFormat:t,colSpan:n,isSticky:i,extraHookProps:l,extraDataAttrs:u}):(0,Hn.azq)(Hn.Ceh,{key:e.getUTCDay()+a,dow:e.getUTCDay(),dayHeaderFormat:t,colSpan:n,isSticky:i,extraHookProps:l,extraDataAttrs:u})},t.prototype.buildTr=function(e,t){var r=this.props.renderIntro;return e.length||(e=[(0,Hn.azq)("td",{key:0},"Â ")]),(0,Hn.azq)("tr",{key:t},r&&r(t),e)},t}(Hn.H6J);function fo(e,t,r){return e||(0,Hn.nm6)(t,r)}var go=function(e){for(var t={},r=[],n=0;n<e.length;n+=1){var o=e[n].id;r.push(o),t[o]=n}this.ids=r,this.indicesById=t,this.length=e.length},vo=function(){function e(e,t,r){this.dayTableModel=e,this.resources=t,this.context=r,this.resourceIndex=new go(t),this.rowCnt=e.rowCnt,this.colCnt=e.colCnt*t.length,this.cells=this.buildCells()}return e.prototype.buildCells=function(){for(var e=this,t=e.rowCnt,r=e.dayTableModel,n=e.resources,o=[],i=0;i<t;i+=1){for(var s=[],a=0;a<r.colCnt;a+=1)for(var l=0;l<n.length;l+=1){var u=n[l],c={resource:new to(this.context,u)},d={"data-resource-id":u.id},p={resourceId:u.id},h=r.cells[i][a].date;s[this.computeCol(a,l)]={key:u.id+":"+h.toISOString(),date:h,extraHookProps:c,extraDataAttrs:d,extraClassNames:["fc-resource"],extraDateSpan:p}}o.push(s)}return o},e}(),mo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.computeCol=function(e,t){return t*this.dayTableModel.colCnt+e},t.prototype.computeColRanges=function(e,t,r){return[{firstCol:this.computeCol(e,r),lastCol:this.computeCol(t,r),isStart:!0,isEnd:!0}]},t}(vo),yo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.computeCol=function(e,t){return e*this.resources.length+t},t.prototype.computeColRanges=function(e,t,r){for(var n=[],o=e;o<=t;o+=1){var i=this.computeCol(o,r);n.push({firstCol:i,lastCol:i,isStart:o===e,isEnd:o===t})}return n},t}(vo),So=[],Ro=function(){function e(){this.joinDateSelection=(0,Hn.HPs)(this.joinSegs),this.joinBusinessHours=(0,Hn.HPs)(this.joinSegs),this.joinFgEvents=(0,Hn.HPs)(this.joinSegs),this.joinBgEvents=(0,Hn.HPs)(this.joinSegs),this.joinEventDrags=(0,Hn.HPs)(this.joinInteractions),this.joinEventResizes=(0,Hn.HPs)(this.joinInteractions)}return e.prototype.joinProps=function(e,t){for(var r=[],n=[],o=[],i=[],s=[],a=[],u="",c=0,d=t.resourceIndex.ids.concat([""]);c<d.length;c++){var p=d[c],h=e[p];r.push(h.dateSelectionSegs),n.push(p?h.businessHourSegs:So),o.push(p?h.fgEventSegs:So),i.push(h.bgEventSegs),s.push(h.eventDrag),a.push(h.eventResize),u=u||h.eventSelection}return{dateSelectionSegs:this.joinDateSelection.apply(this,(0,l.ev)([t],r)),businessHourSegs:this.joinBusinessHours.apply(this,(0,l.ev)([t],n)),fgEventSegs:this.joinFgEvents.apply(this,(0,l.ev)([t],o)),bgEventSegs:this.joinBgEvents.apply(this,(0,l.ev)([t],i)),eventDrag:this.joinEventDrags.apply(this,(0,l.ev)([t],s)),eventResize:this.joinEventResizes.apply(this,(0,l.ev)([t],a)),eventSelection:u}},e.prototype.joinSegs=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=e.resources.length,o=[],i=0;i<n;i+=1){for(var s=0,a=t[i];s<a.length;s++){var l=a[s];o.push.apply(o,this.transformSeg(l,e,i))}for(var u=0,c=t[n];u<c.length;u++){l=c[u];o.push.apply(o,this.transformSeg(l,e,i))}}return o},e.prototype.expandSegs=function(e,t){for(var r=e.resources.length,n=[],o=0;o<r;o+=1)for(var i=0,s=t;i<s.length;i++){var a=s[i];n.push.apply(n,this.transformSeg(a,e,o))}return n},e.prototype.joinInteractions=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=e.resources.length,o={},i=[],s=!1,a=!1,u=0;u<n;u+=1){var c=t[u];
2if(c){s=!0;for(var d=0,p=c.segs;d<p.length;d++){var h=p[d];i.push.apply(i,this.transformSeg(h,e,u))}(0,l.pi)(o,c.affectedInstances),a=a||c.isEvent}if(t[n])for(var f=0,g=t[n].segs;f<g.length;f++){h=g[f];i.push.apply(i,this.transformSeg(h,e,u))}}return s?{affectedInstances:o,segs:i,isEvent:a}:null},e}(),Eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.getKeyInfo=function(e){var t=e.resourceDayTableModel,r=(0,Hn._aR)(t.resourceIndex.indicesById,(function(e){return t.resources[e]}));return r[""]={},r},t.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},t.prototype.getKeysForEventDef=function(e){var t=e.resourceIds;return t.length?t:[""]},t}(Hn.qX1);function Co(e,t){return function(e,t,r,n,o,i){var s=function(e,t,r,n){var o=function(e,t){var r={};for(var n in e){var o=e[n];r[n]={resource:o,resourceFields:xo(o),children:[]}}for(var n in e){if((o=e[n]).parentId){var i=r[o.parentId];i&&wo(r[n],i.children,t)}}return r}(e,n),i=[];for(var s in o){var a=o[s];a.resource.parentId||Do(a,i,r,0,t,n)}return i}(e,n?-1:1,t,r),a=[];return bo(s,a,n,[],0,o,i),a}(e,[],t,!1,{},!0).map((function(e){return e.resource}))}function bo(e,t,r,n,o,i,s){for(var a=0;a<e.length;a+=1){var l=e[a],u=l.group;if(u)if(r){var c=t.length,d=n.length;if(bo(l.children,t,r,n.concat(0),o,i,s),c<t.length){var p=t[c];(p.rowSpans=p.rowSpans.slice())[d]=t.length-c}}else{var h=null!=i[f=u.spec.field+":"+u.value]?i[f]:s;t.push({id:f,group:u,isExpanded:h}),h&&bo(l.children,t,r,n,o+1,i,s)}else if(l.resource){var f;h=null!=i[f=l.resource.id]?i[f]:s;t.push({id:f,rowSpans:n,depth:o,isExpanded:h,hasChildren:Boolean(l.children.length),resource:l.resource,resourceFields:l.resourceFields}),h&&bo(l.children,t,r,n,o+1,i,s)}}}function Do(e,t,r,n,o,i){r.length&&(-1===o||n<=o)?Do(e,function(e,t,r){var n,o,i=e.resourceFields[r.field];if(r.order)for(o=0;o<t.length;o+=1){if((a=t[o]).group){var s=(0,Hn.dx1)(i,a.group.value)*r.order;if(0===s){n=a;break}if(s<0)break}}else for(o=0;o<t.length;o+=1){var a;if((a=t[o]).group&&i===a.group.value){n=a;break}}n||(n={group:{value:i,spec:r},children:[]},t.splice(o,0,n));return n}(e,t,r[0]).children,r.slice(1),n+1,o,i):wo(e,t,i)}function wo(e,t,r){var n;for(n=0;n<t.length;n+=1){if((0,Hn.oMu)(t[n].resourceFields,e.resourceFields,r)>0)break}t.splice(n,0,e)}function xo(e){var t=(0,l.pi)((0,l.pi)((0,l.pi)({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}var Po=(0,Hn.rxu)({deps:[Nn],reducers:[function(e,t,r){var n=Zn(e&&e.resourceSource,t,r);return{resourceSource:n,resourceStore:$n(e&&e.resourceStore,t,n,r),resourceEntityExpansions:function(e,t){var r;if(!e||!t)return{};switch(t.type){case"SET_RESOURCE_ENTITY_EXPANDED":return(0,l.pi)((0,l.pi)({},e),((r={})[t.id]=t.isExpanded,r));default:return e}}(e&&e.resourceEntityExpansions,t)}}],isLoadingFuncs:[function(e){return e.resourceSource&&e.resourceSource.isFetching}],eventRefiners:eo,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((function(e){return String(e)}))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,r,n){if(!e){var o=n.getCurrentData();if(o.viewSpecs[o.currentViewType].optionDefaults.needsResourceData&&Wn(t,n))return!0}return e}],eventDragMutationMassagers:[function(e,t,r){var n=t.dateSpan.resourceId,o=r.dateSpan.resourceId;n&&o&&n!==o&&(e.resourceMutation={matchResourceId:n,setResourceId:o})}],eventDefMutationAppliers:[function(e,t,r){var n=t.resourceMutation;if(n&&Wn(e,r)){var o=e.resourceIds.indexOf(n.matchResourceId);if(-1!==o){var i=e.resourceIds.slice();i.splice(o,1),-1===i.indexOf(n.setResourceId)&&i.push(n.setResourceId),e.resourceIds=i}}}],dateSelectionTransformers:[function(e,t){var r=e.dateSpan.resourceId,n=t.dateSpan.resourceId;return r&&n?{resourceId:r}:null}],datePointTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],dateSpanTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],viewPropsTransformers:[An,Ln],isPropsValid:function(e,t){var r=(new ro).splitProps((0,l.pi)((0,l.pi)({},e),{resourceStore:t.getCurrentData().resourceStore}));for(var n in r){var o=r[n];if(n&&r[""]&&(o=(0,l.pi)((0,l.pi)({},o),{eventStore:(0,Hn.rOY)(r[""].eventStore,o.eventStore),eventUiBases:(0,l.pi)((0,l.pi)({},r[""].eventUiBases),o.eventUiBases)})),!(0,Hn.yw$)(o,t,{resourceId:n},no.bind(null,n)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){var r=e.resourceMutation;if(r){var n=t.calendarApi;return{oldResource:n.getResourceById(r.matchResourceId),newResource:n.getResourceById(r.setRe
2sourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:io,optionRefiners:ao,listenerRefiners:lo,propSetHandlers:{resourceStore:function(e,t){var r=t.emitter;r.hasHandlers("resourcesSet")&&r.trigger("resourcesSet",function(e,t){var r=[];for(var n in e)r.push(new to(t,e[n]));return r}(e,t))}}}),zo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=(0,Hn.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.renderSimpleLayout=function(e,t){var r=this.props,n=this.context,o=[],i=(0,Hn.Q8U)(n.options);return e&&o.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),(0,Hn.azq)(Hn.xS$,{viewSpec:n.viewSpec},(function(e,t){return(0,Hn.azq)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},(0,Hn.azq)(Hn.Oh2,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}))},t.prototype.renderHScrollLayout=function(e,t,r,n){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var i=this.props,s=this.context,a=!i.forPrint&&(0,Hn.Q8U)(s.options),l=!i.forPrint&&(0,Hn.PZw)(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Hn.Hbc}]}),(0,Hn.azq)(Hn.xS$,{viewSpec:s.viewSpec},(function(e,t){return(0,Hn.azq)("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},(0,Hn.azq)(o,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,colGroups:[{cols:[{span:r,minWidth:n}]}],sections:u}))}))},t}(Hn.IdW);function To(e,t){for(var r=[],n=0;n<t;n+=1)r[n]=[];for(var o=0,i=e;o<i.length;o++){var s=i[o];r[s.row].push(s)}return r}function Ho(e,t){for(var r=[],n=0;n<t;n+=1)r[n]=[];for(var o=0,i=e;o<i.length;o++){var s=i[o];r[s.firstCol].push(s)}return r}function Mo(e,t){var r=[];if(e){for(s=0;s<t;s+=1)r[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var n=0,o=e.segs;n<o.length;n++){var i=o[n];r[i.row].segs.push(i)}}else for(var s=0;s<t;s+=1)r[s]=null;return r}var ko=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context.options.navLinks?{"data-navlink":(0,Hn.Euv)(e.date),tabIndex:0}:{};return(0,Hn.azq)(Hn.R_3,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:qo},(function(r,n){return(n||e.forceDayTop)&&(0,Hn.azq)("div",{className:"fc-daygrid-day-top",ref:r},(0,Hn.azq)("a",(0,l.pi)({className:"fc-daygrid-day-number"},t),n||(0,Hn.azq)(Hn.HYg,null,"Â ")))}))},t}(Hn.H6J);function qo(e){return e.dayNumberText}var Io=(0,Hn.SPZ)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function No(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,Hn.azq)(Hn.h2k,(0,l.pi)({}
2,e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Io,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(Hn.H6J),Ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=t.options.eventTimeFormat||Io,n=(0,Hn.r39)(e.seg,r,t,!0,e.defaultDisplayEventEnd);return(0,Hn.azq)(Hn.Vsx,{seg:e.seg,timeText:n,defaultContent:Oo,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(t,r,n,o){return(0,Hn.azq)("a",(0,l.pi)({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(r).join(" "),ref:t},(i=e.seg,(s=i.eventRange.def.url)?{href:s}:{})),o);var i,s}))},t}(Hn.H6J);function Oo(e){return(0,Hn.azq)(Hn.HYg,null,(0,Hn.azq)("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&(0,Hn.azq)("div",{className:"fc-event-time"},e.timeText),(0,Hn.azq)("div",{className:"fc-event-title"},e.event.title||(0,Hn.azq)(Hn.HYg,null,"Â ")))}var Lo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=(0,Hn.HPs)(Vo),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),r=t.allSegs,n=t.invisibleSegs;return(0,Hn.azq)(Hn.ygx,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:r,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return(0,Hn.azq)(Hn.HYg,null,r.map((function(r){var n=r.eventRange.instance.instanceId;return(0,Hn.azq)("div",{className:"fc-daygrid-event-harness",key:n,style:{visibility:t[n]?"hidden":""}},No(r)?(0,Hn.azq)(Ao,(0,l.pi)({seg:r,isDragging:!1,isSelected:n===e.eventSelection,defaultDisplayEventEnd:!1},(0,Hn.jHR)(r,e.todayRange))):(0,Hn.azq)(Wo,(0,l.pi)({seg:r,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection,defaultDisplayEventEnd:!1},(0,Hn.jHR)(r,e.todayRange))))})))}},(function(e,t,r,n,o){return(0,Hn.azq)("a",{ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),onClick:o},n)}))},t}(Hn.H6J);function Vo(e){for(var t=[],r=[],n=0,o=e;n<o.length;n++){var i=o[n];t.push(i.seg),i.isVisible||r.push(i.seg)}return{allSegs:t,invisibleSegs:r}}var jo=(0,Hn.SPZ)({week:"narrow"}),Uo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,Hn.VfA)(),t.handleRootEl=function(e){(0,Hn.k$v)(t.rootElRef,e),(0,Hn.k$v)(t.props.elRef,e)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,r=e.context,n=e.rootElRef,o=r.options,i=t.date,s=t.dateProfile,a=o.navLinks?{"data-navlink":(0,Hn.Euv)(i,"week"),tabIndex:0}:{};return(0,Hn.azq)(Hn.hJ8,{date:i,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraHookProps:t.extraHookProps,elRef:this.handleRootEl},(function(e,r,o,u){return(0,Hn.azq)("td",(0,l.pi)({ref:e,className:["fc-daygrid-day"].concat(r,t.extraClassNames||[]).join(" ")},o,t.extraDataAttrs),(0,Hn.azq)("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&(0,Hn.azq)(Hn.QOi,{date:i,defaultFormat:jo},(function(e,t,r,n){return(0,Hn.azq)("a",(0,l.pi)({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},a),n)})),!u&&(0,Hn.azq)(ko,{date:i,dateProfile:s,showDayNumber:t.showDayNumber,forceDayTop:t.forceDayTop,todayRange:t.todayRange,extraHookProps:t.extraHookProps}),(0,Hn.azq)("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,(0,Hn.azq)("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},(0,Hn.azq)(Lo,{allDayDate:i,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:n,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}
2))),(0,Hn.azq)("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}))},t}(Hn.IdW);function _o(e,t,r,n,o,i,s){var a=new Go;a.allowReslicing=!0,a.strictOrder=n,!0===t||!0===r?(a.maxCoord=i,a.hiddenConsumes=!0):"number"==typeof t?a.maxStackCnt=t:"number"==typeof r&&(a.maxStackCnt=r,a.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var d=o[(w=e[c]).eventRange.instance.instanceId];null!=d?l.push({index:c,thickness:d,span:{start:w.firstCol,end:w.lastCol+1}}):u.push(w)}for(var p=a.addSegs(l),h=function(e,t,r){for(var n=function(e,t){for(var r=[],n=0;n<t;n+=1)r.push([]);for(var o=0,i=e;o<i.length;o++){var s=i[o];for(n=s.span.start;n<s.span.end;n+=1)r[n].push(s)}return r}(e,r.length),o=[],i=[],s=[],a=0;a<r.length;a+=1){for(var l=n[a],u=[],c=0,d=0,p=0,h=l;p<h.length;p++){var f=t[(y=h[p]).index];u.push({seg:Fo(f,a,a+1,r),isVisible:!0,isAbsolute:!1,absoluteTop:0,marginTop:y.levelCoord-c}),c=y.levelCoord+y.thickness}var g=[];c=0,d=0;for(var v=0,m=l;v<m.length;v++){f=t[(y=m[v]).index];var y,S=y.span.end-y.span.start>1,R=y.span.start===a;d+=y.levelCoord-c,c=y.levelCoord+y.thickness,S?(d+=y.thickness,R&&g.push({seg:Fo(f,y.span.start,y.span.end,r),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):R&&(g.push({seg:Fo(f,y.span.start,y.span.end,r),isVisible:!0,isAbsolute:!1,absoluteTop:0,marginTop:d}),d=0)}o.push(u),i.push(g),s.push(d)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:s}}(a.toRects(),e,s),f=h.singleColPlacements,g=h.multiColPlacements,v=h.leftoverMargins,m=[],y=[],S=0,R=u;S<R.length;S++){g[(w=R[S]).firstCol].push({seg:w,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var E=w.firstCol;E<=w.lastCol;E+=1)f[E].push({seg:Fo(w,E,E+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(E=0;E<s.length;E+=1)m.push(0);for(var C=0,b=p;C<b.length;C++){var D=b[C],w=e[D.index],x=D.span;g[x.start].push({seg:Fo(w,x.start,x.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(E=x.start;E<x.end;E+=1)m[E]+=1,f[E].push({seg:Fo(w,E,E+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(E=0;E<s.length;E+=1)y.push(v[E]);return{singleColPlacements:f,multiColPlacements:g,moreCnts:m,moreMarginTops:y}}function Fo(e,t,r,n){if(e.firstCol===t&&e.lastCol===r-1)return e;var o=e.eventRange,i=o.range,s=(0,Hn.cMs)(i,{start:n[t].date,end:(0,Hn.E4D)(n[r-1].date,1)});return(0,l.pi)((0,l.pi)({},e),{firstCol:t,lastCol:r-1,eventRange:{def:o.def,ui:(0,l.pi)((0,l.pi)({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:e.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===i.end.valueOf()})}var Go=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return(0,l.ZT)(t,e),t.prototype.addSegs=function(t){for(var r=this,n=e.prototype.addSegs.call(this,t),o=this.entriesByLevel,i=function(e){return!r.forceHidden[(0,Hn.oBR)(e)]},s=0;s<o.length;s+=1)o[s]=o[s].filter(i);return n},t.prototype.handleInvalidInsertion=function(t,r,n){var o=this.entriesByLevel,i=this.forceHidden,s=t.touchingLevel;if(this.hiddenConsumes&&s>=0)for(var a=t.lateralStart;a<t.lateralEnd;a+=1){var u=o[s][a];if(this.allowReslicing){var c=(0,l.pi)((0,l.pi)({},u),{span:(0,Hn.GT4)(u.span,r.span)});i[d=(0,Hn.oBR)(c)]||(i[d]=!0,o[s][a]=c,this.splitEntry(u,r,n))}else{var d;i[d=(0,Hn.oBR)(u)]||(i[d]=!0,n.push(u))}}return e.prototype.handleInvalidInsertion.call(this,t,r,n)},t}(Hn.KxW),Bo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new Hn.lAU,t.frameElRefs=new Hn.lAU,t.fgElRefs=new Hn.lAU,t.segHarnessRefs=new Hn.lAU,t.rootElRef=(0,Hn.VfA)(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this,r=t.props,n=t.state,o=t.context.options,i=r.cells.length,s=Ho(r.businessHourSegs,i),a=Ho(r.bgEventSegs,i),l=Ho(this.getHighlightSegs(),i),u=Ho(this.getMirrorSegs(),i),c=_o((0,Hn.hak)(r.fgEventSegs,o.eventOrder),r.dayMaxEvents,r.dayMaxEventRows,o.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,r.cells),d=c.singleColPlacements,p=c.multiColPlacements,h=c.more
2Cnts,f=c.moreMarginTops,g=r.eventDrag&&r.eventDrag.affectedInstances||r.eventResize&&r.eventResize.affectedInstances||{};return(0,Hn.azq)("tr",{ref:this.rootElRef},r.renderIntro&&r.renderIntro(),r.cells.map((function(t,n){var o=e.renderFgSegs(n,r.forPrint?d[n]:p[n],r.todayRange,g),i=e.renderFgSegs(n,function(e,t){if(!e.length)return[];var r=function(e){for(var t={},r=0,n=e;r<n.length;r++)for(var o=0,i=n[r];o<i.length;o++){var s=i[o];t[s.seg.eventRange.instance.instanceId]=s.absoluteTop}return e}(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:r[e.eventRange.instance.instanceId],marginTop:0}}))}(u[n],p),r.todayRange,{},Boolean(r.eventDrag),Boolean(r.eventResize),!1);return(0,Hn.azq)(Uo,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:r.dateProfile,date:t.date,showDayNumber:r.showDayNumbers,showWeekNumber:r.showWeekNumbers&&0===n,forceDayTop:r.showWeekNumbers,todayRange:r.todayRange,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:h[n],moreMarginTop:f[n],singlePlacements:d[n],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:(0,Hn.azq)(Hn.HYg,null,(0,Hn.azq)(Hn.HYg,null,o),(0,Hn.azq)(Hn.HYg,null,i)),bgContent:(0,Hn.azq)(Hn.HYg,null,e.renderFillSegs(l[n],"highlight"),e.renderFillSegs(s[n],"non-business"),e.renderFillSegs(a[n],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var r=this.props;this.updateSizing(!(0,Hn.S6v)(e,r))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,r,n,o,i,s){var a=this.context,u=this.props.eventSelection,c=this.state.framePositions,d=1===this.props.cells.length,p=o||i||s,h=[];if(c)for(var f=0,g=t;f<g.length;f++){var v=g[f],m=v.seg,y=m.eventRange.instance.instanceId,S=y+":"+e,R=v.isVisible&&!n[y],E=v.isAbsolute,C="",b="";E&&(a.isRtl?(b=0,C=c.lefts[m.lastCol]-c.lefts[m.firstCol]):(C=0,b=c.rights[m.firstCol]-c.rights[m.lastCol])),h.push((0,Hn.azq)("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:S,ref:p?null:this.segHarnessRefs.createRef(S),style:{visibility:R?"":"hidden",marginTop:E?"":v.marginTop,top:E?v.absoluteTop:"",left:C,right:b}},No(m)?(0,Hn.azq)(Ao,(0,l.pi)({seg:m,isDragging:o,isSelected:y===u,defaultDisplayEventEnd:d},(0,Hn.jHR)(m,r))):(0,Hn.azq)(Wo,(0,l.pi)({seg:m,isDragging:o,isResizing:i,isDateSelecting:s,isSelected:y===u,defaultDisplayEventEnd:d},(0,Hn.jHR)(m,r)))))}return h},t.prototype.renderFillSegs=function(e,t){var r=this.context.isRtl,n=this.props.todayRange,o=this.state.framePositions,i=[];if(o)for(var s=0,a=e;s<a.length;s++){var u=a[s],c=r?{right:0,left:o.lefts[u.lastCol]-o.lefts[u.firstCol]}:{left:0,right:o.rights[u.firstCol]-o.rights[u.lastCol]};i.push((0,Hn.azq)("div",{key:(0,Hn.rRV)(u.eventRange),className:"fc-daygrid-bg-harness",style:c},"bg-event"===t?(0,Hn.azq)(Hn.I_K,(0,l.pi)({seg:u},(0,Hn.jHR)(u,n))):(0,Hn.MA3)(t)))}return Hn.azq.apply(void 0,(0,l.ev)([Hn.HYg,{}],i))},t.prototype.updateSizing=function(e){var t=this.props,r=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var n=t.cells.map((function(e){return r.currentMap[e.key]}));if(n.length){var o=this.rootElRef.current;this.setState({framePositions:new Hn.zIV(o,n,!0,!1)})}}var i=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.setState({eventInstanceHeights:this.queryEventInstanceHeights(),maxContentHeight:i?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var r in e){var n=Math.round(e[r].getBoundingClientRect().height),o=r.split(":")[0];t[o]=Math.max(t[o]||0,n)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-r.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},t}(Hn.IdW);Bo.addStateEquality({eventInstanceHeights:Hn.S6v});var Zo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=(0,Hn.HPs)(To),t.splitBgEventSegs=(0,Hn.HPs)(To),t.splitFgEventSegs=(0,Hn.HPs)(To),t.splitDateSelectionSegs=(0,Hn.HPs)(To),t.splitEventDrag=(0,Hn.HPs)(Mo),t.splitEventResize=(0,Hn.HPs)(Mo),t.rowRefs=new Hn.lAU,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.dateProfile,n=t.dayMaxEventRows,o=t.dayMaxEvents,i=t.expandRows,s=t.cells.length,a=this.splitBusinessHourSegs(t.businessHourSegs,s),l=this.splitBgEventSegs(t.bgEventSegs,s),u=this.splitFgEventSegs(t.fgEventSegs,s),c=this.splitDateSelectionSegs(t.dateSelectionSegs,s),d=this.splitEventDrag(t.eventDrag,s),p=this.splitEventResize(t.eventResize,s),h=!0===o||!0===n;h&&!i&&(h=!1,n=null,o=null);
2var f=["fc-daygrid-body",h?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return(0,Hn.azq)("div",{className:f.join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},(0,Hn.azq)(Hn.wh8,{unit:"day"},(function(h,f){return(0,Hn.azq)(Hn.HYg,null,(0,Hn.azq)("table",{className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,(0,Hn.azq)("tbody",null,t.cells.map((function(i,h){return(0,Hn.azq)(Bo,{ref:e.rowRefs.createRef(h),key:i.length?i[0].date.toISOString():h,showDayNumbers:s>1,showWeekNumbers:t.showWeekNumbers,todayRange:f,dateProfile:r,cells:i,renderIntro:t.renderRowIntro,businessHourSegs:a[h],eventSelection:t.eventSelection,bgEventSegs:l[h].filter(Yo),fgEventSegs:u[h],dateSelectionSegs:c[h],eventDrag:d[h],eventResize:p[h],dayMaxEvents:o,dayMaxEventRows:n,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new Hn.zIV(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new Hn.zIV(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var r=this.colPositions,n=this.rowPositions,o=r.leftToIndex(e),i=n.topToIndex(t);if(null!=i&&null!=o){var s=this.props.cells[i][o];return{dateProfile:this.props.dateProfile,dateSpan:(0,l.pi)({range:this.getCellRange(i,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(i,o),rect:{left:r.lefts[o],right:r.rights[o],top:n.tops[i],bottom:n.bottoms[i]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var r=this.props.cells[e][t].date;return{start:r,end:(0,Hn.E4D)(r,1)}},t}(Hn.IdW);function Yo(e){return e.eventRange.def.allDay}var Xo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return(0,l.ZT)(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Hn.RVT),Jo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new Xo,t.tableRef=(0,Hn.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,Hn.azq)(Zo,(0,l.pi)({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(Hn.IdW),Ko=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=(0,Hn.HPs)(Qo),t.headerRef=(0,Hn.VfA)(),t.tableRef=(0,Hn.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.context,r=t.options,n=t.dateProfileGenerator,o=this.props,i=this.buildDayTableModel(o.dateProfile,n),s=r.dayHeaders&&(0,Hn.azq)(Hn.lR3,{ref:this.headerRef,dateProfile:o.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),a=function(t){return(0,Hn.azq)(Jo,{ref:e.tableRef,dateProfile:o.dateProfile,dayTableModel:i,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:r.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint})};return r.dayMinWidth?this.renderHScrollLayout(s,a,i.colCnt,r.dayMinWidth):this.renderSimpleLayout(s,a)},t}(zo);function Qo(e,t){var r=new Hn.xB8(e.renderRange,t);return new Hn.xVj(r,/year|month|week/.test(e.currentRangeUnit))}var $o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.buildRenderRange=function(t,r,n){var o,i=this.props.dateEnv,s=e.prototype.buildRenderRange.call(this,t,r,n),a=s.start,l=s.end;if(/^(year|month)$/.test(r)&&(a=i.startOfWeek(a),(o=i.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=(0,Hn.jh6)(o,1))),this.props.monthMode&&this.props.fixedWeekCount){var u=Math.ceil((0,Hn.bXg)(a,l));l=(0,Hn.jh6)(l,6-u)}return{start:a,end:l}},t}(Hn.VPe),ei=(0,Hn.rxu)({initialView:"dayGridMonth",views:{dayGrid:{component:Ko,dateProfileGeneratorClass:$o},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?(0,Hn.gRm)(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(Hn.qX1),ri=(0,Hn.SPZ)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function ni(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return(0,Hn.azq)(Hn.Yh$.Consumer,null,(function(r){if(!e.isLabeled)return(0,Hn.azq)("td",{className:t.join(" "),"data-time":e.isoTimeStr});var n=r.dateEnv,o=r.options,i=r.viewApi,s=null==o.slotLabelFormat?ri:Array.isArray(o.slotLabelFormat)?(0,Hn.SPZ)(o.slotLabelFormat[0]):(0,Hn.SPZ)(o.slotLabelFormat),a={level:0,time:e.time,date:n.toDate(e.date),view:i,text:n.format(e.date,s)};return(0,Hn.azq)(Hn.QJ3,{hookProps:a,classNames:o.slotLabelClassNames,content:o.slotLabelContent,defaultContent:oi,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(function(r,n,o,i){return(0,Hn.azq)("td",{ref:r,className:t.concat(n).join(" "),"data-time":e.isoTimeStr},(0,Hn.azq)("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},(0,Hn.azq)("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:o},i)))}))}))}function oi(e){return e.text}var ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return(0,Hn.azq)("tr",{key:e.key},(0,Hn.azq)(ni,(0,l.pi)({},e)))}))},t}(Hn.H6J),si=(0,Hn.SPZ)({week:"short"}),ai=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
2return t.allDaySplitter=new ti,t.headerElRef=(0,Hn.VfA)(),t.rootElRef=(0,Hn.VfA)(),t.scrollerElRef=(0,Hn.VfA)(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var r=t.scrollerElRef.current;r&&(r.scrollTop=e)},t.renderHeadAxis=function(e,r){void 0===r&&(r="");var n=t.context.options,o=t.props.dateProfile.renderRange,i=(0,Hn.MUz)(o.start,o.end),s=n.navLinks&&1===i?{"data-navlink":(0,Hn.Euv)(o.start,"week"),tabIndex:0}:{};return n.weekNumbers&&"day"===e?(0,Hn.azq)(Hn.QOi,{date:o.start,defaultFormat:si},(function(e,t,n,o){return(0,Hn.azq)("th",{ref:e,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},(0,Hn.azq)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:r}},(0,Hn.azq)("a",(0,l.pi)({ref:n,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},s),o)))})):(0,Hn.azq)("th",{className:"fc-timegrid-axis"},(0,Hn.azq)("div",{className:"fc-timegrid-axis-frame",style:{height:r}}))},t.renderTableRowAxis=function(e){var r=t.context,n=r.options,o=r.viewApi,i={text:n.allDayText,view:o};return(0,Hn.azq)(Hn.QJ3,{hookProps:i,classNames:n.allDayClassNames,content:n.allDayContent,defaultContent:li,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},(function(t,r,n,o){return(0,Hn.azq)("td",{ref:t,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(r).join(" ")},(0,Hn.azq)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},(0,Hn.azq)("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:n},o)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return(0,l.ZT)(t,e),t.prototype.renderSimpleLayout=function(e,t,r){var n=this.context,o=this.props,i=[],s=(0,Hn.Q8U)(n.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(i.push({type:"body",key:"all-day",chunk:{content:t}}),i.push({type:"body",key:"all-day-divider",outerContent:(0,Hn.azq)("tr",{className:"fc-scrollgrid-section"},(0,Hn.azq)("td",{className:"fc-timegrid-divider "+n.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(n.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:r}}),(0,Hn.azq)(Hn.xS$,{viewSpec:n.viewSpec,elRef:this.rootElRef},(function(e,t){return(0,Hn.azq)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},(0,Hn.azq)(Hn.Oh2,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:i}))}))},t.prototype.renderHScrollLayout=function(e,t,r,n,o,i,s){var a=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&(0,Hn.Q8U)(u.options),p=!c.forPrint&&(0,Hn.PZw)(u.options),h=[];e&&h.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return(0,Hn.azq)("tr",null,a.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return(0,Hn.azq)("tr",null,a.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),h.push({key:"all-day-divider",type:"body",outerContent:(0,Hn.azq)("tr",{className:"fc-scrollgrid-section"},(0,Hn.azq)("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var f=u.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return(0,Hn.azq)("div",{className:"fc-timegrid-axis-chunk"},(0,Hn.azq)("table",{style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,(0,Hn.azq)("tbody",null,(0,Hn.azq)(ii,{slatMetas:i}))),(0,Hn.azq)("div",{className:"fc-timegrid-now-indicator-container"},(0,Hn.azq)(Hn.wh8,{unit:f?"minute":"day"},(function(e){var t=f&&s&&s.safeComputeTop(e);return"number"==typeof t?(0,Hn.azq)(Hn.AOy,{isAxis:!0,date:e},(function(e,r,n,o){return(0,Hn.azq)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(r).join(" "),style:{to
2p:t}},o)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),p&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Hn.Hbc},{key:"cols",content:Hn.Hbc}]}),(0,Hn.azq)(Hn.xS$,{viewSpec:u.viewSpec,elRef:this.rootElRef},(function(e,t){return(0,Hn.azq)("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},(0,Hn.azq)(l,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:n,minWidth:o}]}],sections:h}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,r=e.dayMaxEventRows;return!0!==t&&!0!==r||(t=void 0,r=5),{dayMaxEvents:t,dayMaxEventRows:r}},t}(Hn.IdW);function li(e){return e.text}var ui=function(){function e(e,t,r){this.positions=e,this.dateProfile=t,this.slotDuration=r}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if((0,Hn.mCA)(t.currentRange,e)){var r=(0,Hn.b7Q)(e),n=e.valueOf()-r.valueOf();if(n>=(0,Hn.TTZ)(t.slotMinTime)&&n<(0,Hn.TTZ)(t.slotMaxTime))return this.computeTimeTop((0,Hn.Pvs)(n))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=(0,Hn.b7Q)(e)),this.computeTimeTop((0,Hn.Pvs)(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,r,n=this.positions,o=this.dateProfile,i=n.els.length,s=(e.milliseconds-(0,Hn.TTZ)(o.slotMinTime))/(0,Hn.TTZ)(this.slotDuration);return s=Math.max(0,s),s=Math.min(i,s),t=Math.floor(s),r=s-(t=Math.min(t,i-1)),n.tops[t]+n.getHeight(t)*r},e}(),ci=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,r=t.options,n=e.slatElRefs;return(0,Hn.azq)("tbody",null,e.slatMetas.map((function(o,i){var s={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi},a=["fc-timegrid-slot","fc-timegrid-slot-lane",o.isLabeled?"":"fc-timegrid-slot-minor"];return(0,Hn.azq)("tr",{key:o.key,ref:n.createRef(o.key)},e.axis&&(0,Hn.azq)(ni,(0,l.pi)({},o)),(0,Hn.azq)(Hn.QJ3,{hookProps:s,classNames:r.slotLaneClassNames,content:r.slotLaneContent,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(function(e,t,r,n){return(0,Hn.azq)("td",{ref:e,className:a.concat(t).join(" "),"data-time":o.isoTimeStr},n)})))})))},t}(Hn.H6J),di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,Hn.VfA)(),t.slatElRefs=new Hn.lAU,t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return(0,Hn.azq)("div",{className:"fc-timegrid-slots",ref:this.rootElRef},(0,Hn.azq)("table",{className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,(0,Hn.azq)(ci,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.context,r=this.props;r.onCoords&&null!==r.clientWidth&&(this.rootElRef.current.offsetHeight&&r.onCoords(new ui(new Hn.zIV(this.rootElRef.current,(e=this.slatElRefs.currentMap,r.slatMetas.map((function(t){return e[t.key]}))),!1,!0),this.props.dateProfile,t.options.slotDuration)))},t}(Hn.H6J);function pi(e,t){var r,n=[];for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function hi(e,t){var r=[];if(e){for(s=0;s<t;s+=1)r[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var n=0,o=e.segs;n<o.length;n++){var i=o[n];r[i.col].segs.push(i)}}else for(var s=0;s<t;s+=1)r[s]=null;return r}var fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=(0,Hn.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props;return(0,Hn.azq)(Hn.ygx,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:gi,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return xi(t.hiddenSegs,t)}},(function(r,n,o,i,s){return(0,Hn.azq)("a",{ref:function(t){(0,Hn.k$v)(r,t),(0,Hn.k$v)(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(n).join(" "),style:{to
2p:t.top,bottom:t.bottom},onClick:s},(0,Hn.azq)("div",{ref:o,className:"fc-timegrid-more-link-inner fc-sticky"},i))}))},t}(Hn.H6J);function gi(e){return e.shortText}function vi(e,t,r){var n=new Hn.KxW;null!=t&&(n.strictOrder=t),null!=r&&(n.maxStackCnt=r);var o,i,s,a=n.addSegs(e),u=(0,Hn.AVF)(a),c=function(e){var t=e.entriesByLevel,r=Ri((function(e,t){return e+":"+t}),(function(n,o){var i=mi(function(e,t,r){for(var n=e.levelCoords,o=e.entriesByLevel,i=o[t][r],s=n[t]+i.thickness,a=n.length,l=t;l<a&&n[l]<s;l+=1);for(;l<a;l+=1){for(var u=o[l],c=void 0,d=(0,Hn.ry4)(u,i.span.start,Hn.VTw),p=d[0]+d[1],h=p;(c=u[h])&&c.span.start<i.span.end;)h+=1;if(p<h)return{level:l,lateralStart:p,lateralEnd:h}}return null}(e,n,o),r),s=t[n][o];return[(0,l.pi)((0,l.pi)({},s),{nextLevelNodes:i[0]}),s.thickness+i[1]]}));return mi(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,r)[0]}(n);return o=c,i=1,s=Ri((function(e,t,r){return(0,Hn.oBR)(e)}),(function(e,t,r){var n,o=e.nextLevelNodes,a=e.thickness,u=a+r,c=a/u,d=[];if(o.length)for(var p=0,h=o;p<h.length;p++){var f=h[p];if(void 0===n)n=(g=s(f,t,u))[0],d.push(g[1]);else{var g=s(f,n,0);d.push(g[1])}}else n=i;var v=(n-t)*c;return[n-v,(0,l.pi)((0,l.pi)({},e),{thickness:v,nextLevelNodes:d})]})),{segRects:function(e){var t=[],r=Ri((function(e,t,r){return(0,Hn.oBR)(e)}),(function(e,r,o){var i=(0,l.pi)((0,l.pi)({},e),{levelCoord:r,stackDepth:o,stackForward:0});return t.push(i),i.stackForward=n(e.nextLevelNodes,r+e.thickness,o+1)+1}));function n(e,t,n){for(var o=0,i=0,s=e;i<s.length;i++){var a=s[i];o=Math.max(r(a,t,n),o)}return o}return n(e,0,0),t}(c=o.map((function(e){return s(e,0,0)[1]}))),hiddenGroups:u}}function mi(e,t){if(!e)return[[],0];for(var r=e.level,n=e.lateralStart,o=e.lateralEnd,i=n,s=[];i<o;)s.push(t(r,i)),i+=1;return s.sort(yi),[s.map(Si),s[0][1]]}function yi(e,t){return t[1]-e[1]}function Si(e){return e[0]}function Ri(e,t){var r={};return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.apply(void 0,n);return i in r?r[i]:r[i]=t.apply(void 0,n)}}function Ei(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=0);var o=[];if(r)for(var i=0;i<e.length;i+=1){var s=e[i],a=r.computeDateTop(s.start,t),l=Math.max(a+(n||0),r.computeDateTop(s.end,t));o.push({start:Math.round(a),end:Math.round(l)})}return o}var Ci=(0,Hn.SPZ)({hour:"numeric",minute:"2-digit",meridiem:!1}),bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),(0,Hn.azq)(Hn.h2k,(0,l.pi)({},this.props,{defaultTimeFormat:Ci,extraClassNames:e}))},t}(Hn.H6J),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props;return(0,Hn.azq)(Hn.R_3,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&(0,Hn.azq)("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(Hn.H6J),wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=(0,Hn.HPs)(Hn.hak),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=r.options.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||n&&t.dateSelectionSegs||[],i=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,r.options.eventOrder);return(0,Hn.azq)(Hn.hJ8,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(r,a,u){return(0,Hn.azq)("td",(0,l.pi)({ref:r,className:["fc-timegrid-col"].concat(a,t.extraClassNames||[]).join(" ")},u,t.extraDataAttrs),(0,Hn.azq)("div",{className:"fc-timegrid-col-frame"},(0,Hn.azq)("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),(0,Hn.azq)("div",{className:"fc-timegrid-col-events"}
2,e.renderFgSegs(s,i,!1,!1,!1)),(0,Hn.azq)("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(o,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(n))),(0,Hn.azq)("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),(0,Hn.azq)(Di,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,r,n,o){var i=this.props;return i.forPrint?xi(e,i):this.renderPositionedFgSegs(e,t,r,n,o)},t.prototype.renderPositionedFgSegs=function(e,t,r,n,o){var i=this,s=this.context.options,a=s.eventMaxStack,u=s.eventShortHeight,c=s.eventOrderStrict,d=s.eventMinHeight,p=this.props,h=p.date,f=p.slatCoords,g=p.eventSelection,v=p.todayRange,m=p.nowDate,y=r||n||o,S=function(e,t,r,n){for(var o=[],i=[],s=0;s<e.length;s+=1){var a=t[s];a?o.push({index:s,thickness:1,span:a}):i.push(e[s])}for(var l=vi(o,r,n),u=l.segRects,c=l.hiddenGroups,d=[],p=0,h=u;p<h.length;p++){var f=h[p];d.push({seg:e[f.index],rect:f})}for(var g=0,v=i;g<v.length;g++){var m=v[g];d.push({seg:m,rect:null})}return{segPlacements:d,hiddenGroups:c}}(e,Ei(e,h,f,d),c,a),R=S.segPlacements,E=S.hiddenGroups;return(0,Hn.azq)(Hn.HYg,null,this.renderHiddenGroups(E,e),R.map((function(e){var s=e.seg,a=e.rect,c=s.eventRange.instance.instanceId,d=y||Boolean(!t[c]&&a),p=Pi(a&&a.span),h=!y&&a?i.computeSegHStyle(a):{left:0,right:0},f=Boolean(a)&&a.stackForward>0,S=Boolean(a)&&a.span.end-a.span.start<u;return(0,Hn.azq)("div",{className:"fc-timegrid-event-harness"+(f?" fc-timegrid-event-harness-inset":""),key:c,style:(0,l.pi)((0,l.pi)({visibility:d?"":"hidden"},p),h)},(0,Hn.azq)(bi,(0,l.pi)({seg:s,isDragging:r,isResizing:n,isDateSelecting:o,isSelected:c===g,isShort:S},(0,Hn.jHR)(s,v,m))))})))},t.prototype.renderHiddenGroups=function(e,t){var r=this.props,n=r.extraDateSpan,o=r.dateProfile,i=r.todayRange,s=r.nowDate,a=r.eventSelection,l=r.eventDrag,u=r.eventResize;return(0,Hn.azq)(Hn.HYg,null,e.map((function(e){var r,c,d=Pi(e.span),p=(r=e.entries,c=t,r.map((function(e){return c[e.index]})));return(0,Hn.azq)(fi,{key:(0,Hn.dS)((0,Hn.VV4)(p)),hiddenSegs:p,top:d.top,bottom:d.bottom,extraDateSpan:n,dateProfile:o,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:u})})))},t.prototype.renderFillSegs=function(e,t){var r=this.props,n=this.context,o=Ei(e,r.date,r.slatCoords,n.options.eventMinHeight).map((function(n,o){var i=e[o];return(0,Hn.azq)("div",{key:(0,Hn.rRV)(i.eventRange),className:"fc-timegrid-bg-harness",style:Pi(n)},"bg-event"===t?(0,Hn.azq)(Hn.I_K,(0,l.pi)({seg:i},(0,Hn.jHR)(i,r.todayRange,r.nowDate))):(0,Hn.MA3)(t))}));return(0,Hn.azq)(Hn.HYg,null,o)},t.prototype.renderNowIndicator=function(e){var t=this.props,r=t.slatCoords,n=t.date;return r?e.map((function(e,t){return(0,Hn.azq)(Hn.AOy,{isAxis:!1,date:n,key:t},(function(t,o,i,s){return(0,Hn.azq)("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(o).join(" "),style:{top:r.computeDateTop(e.start,n)}},s)}))})):null},t.prototype.computeSegHStyle=function(e){var t,r,n=this.context,o=n.isRtl,i=n.options.slotEventOverlap,s=e.levelCoord,a=e.levelCoord+e.thickness;i&&(a=Math.min(1,s+2*(a-s))),o?(t=1-a,r=s):(t=s,r=1-a);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*r+"%"};return i&&!e.stackForward&&(l[o?"marginLeft":"marginRight"]=20),l},t}(Hn.H6J);function xi(e,t){var r=t.todayRange,n=t.nowDate,o=t.eventSelection,i=t.eventDrag,s=t.eventResize,a=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return(0,Hn.azq)(Hn.HYg,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return(0,Hn.azq)("div",{key:t,style:{visibility:a[t]?"hidden":""}},(0,Hn.azq)(bi,(0,l.pi)({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===o,isShort:!1},(0,Hn.jHR)(e,r,n))))})))}function Pi(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var zi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=(0,Hn.HPs)(pi),t.splitBgEventSegs=(0,Hn.HPs)(pi),t.splitBusinessHourSegs=(0,Hn.HPs)(pi),t.splitNowIndicatorSegs=(0,Hn.HPs)(pi),t.splitDateSelectionSegs=(0,Hn.HPs)(pi),t.splitEventDrag=(0,Hn.HPs)(hi),t.splitEventResize=(0,Hn.HPs)(hi),t.rootElRef=(0,Hn.VfA)(),t.cellElRefs=new Hn.lAU,t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),n=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,n),i=this.splitBgEventSegs(t.bgEventSegs,n),s=this.splitBusinessHourSegs(t.businessHourSegs,n),a=this.splitNowIndicatorSegs(t.nowIndicatorSegs,n),l=this.splitDateSelectionSegs(t.dateSelectionSegs,n),u=this.splitEventDrag(t.eventDrag,n),c=this.splitEventResize(t.eventResize,n);return(0,Hn.azq)("div",{className:"fc-timegrid-cols",ref:this.rootElRef},(0,Hn.azq)("table",{style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,(0,Hn.azq)("tbody",null,(0,Hn.azq)("tr",null,t.axis&&(0,Hn.azq)("td",{className:"fc-timegrid-col fc-timegrid-axis"},(0,Hn.azq)("div",{className:"fc-timegrid-col-frame"},(0,Hn.azq)("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof r&&(0,Hn.azq)(Hn.AOy,{isAxis:!0,date:t.nowDate},(function(e,t,n,o){return(0,Hn.azq)("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{to
2p:r}},o)}))))),t.cells.map((function(r,n){return(0,Hn.azq)(wi,{key:r.key,elRef:e.cellElRefs.createRef(r.key),dateProfile:t.dateProfile,date:r.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:r.extraHookProps,extraDataAttrs:r.extraDataAttrs,extraClassNames:r.extraClassNames,extraDateSpan:r.extraDateSpan,fgEventSegs:o[n],bgEventSegs:i[n],businessHourSegs:s[n],nowIndicatorSegs:a[n],dateSelectionSegs:l[n],eventDrag:u[n],eventResize:c[n],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new Hn.zIV(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))},t}(Hn.H6J);var Ti=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=(0,Hn.HPs)(Hi),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var r=t.props.onScrollTopRequest,n=t.state.slatCoords;if(r&&n){if(e.time){var o=n.computeTimeTop(e.time);(o=Math.ceil(o))&&(o+=1),r(o)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return(0,Hn.azq)("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},(0,Hn.azq)(di,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),(0,Hn.azq)(zi,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var r=this.context,n=r.dateEnv,o=r.options,i=this.colCoords,s=this.props.dateProfile,a=this.state.slatCoords,u=this.processSlotOptions(this.props.slotDuration,o.snapDuration),c=u.snapDuration,d=u.snapsPerSlot,p=i.leftToIndex(e),h=a.positions.topToIndex(t);if(null!=p&&null!=h){var f=this.props.cells[p],g=a.positions.tops[h],v=a.positions.getHeight(h),m=(t-g)/v,y=h*d+Math.floor(m*d),S=this.props.cells[p].date,R=(0,Hn.nlJ)(s.slotMinTime,(0,Hn.uVS)(c,y)),E=n.add(S,R),C=n.add(E,c);return{dateProfile:s,dateSpan:(0,l.pi)({range:{start:E,end:C},allDay:!1},f.extraDateSpan),dayEl:i.els[p],rect:{left:i.lefts[p],right:i.rights[p],top:g,bottom:g+v},layer:0}}return null},t}(Hn.IdW);function Hi(e,t){var r=t||e,n=(0,Hn.ltK)(e,r);return null===n&&(r=e,n=1),{snapDuration:r,snapsPerSlot:n}}var Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.sliceRange=function(e,t){for(var r=[],n=0;n<t.length;n+=1){var o=(0,Hn.cMs)(e,t[n]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:n})}return r},t}(Hn.RVT),ki=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=(0,Hn.HPs)(qi),t.slicer=new Mi,t.timeColsRef=(0,Hn.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=t.dateProfile,o=t.dayTableModel,i=r.options.nowIndicator,s=this.buildDayRanges(o,n,r.dateEnv);return(0,Hn.azq)(Hn.wh8,{unit:i?"minute":"day"},(function(a,u){return(0,Hn.azq)(Ti,(0,l.pi)({ref:e.timeColsRef},e.slicer.sliceProps(t,n,null,r,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:n,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:o.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:a,nowIndicatorSegs:i&&e.slicer.sliceNowDate(a,r,s),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},t}(Hn.IdW);function qi(e,t,r){for(var n=[],o=0,i=e.headerDates;o<i.length;o++){var s=i[o];n.push({start:r.add(s,t.slotMinTime),end:r.add(s,t.slotMaxTime)})}return n}var Ii=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Ni(e,t,r,n,o){for(var i=new Date(0),s=e,a=(0,Hn.Pvs)(0),l=r||function(e){var t,r,n;for(t=Ii.length-1;t>=0;t-=1)if(r=(0,Hn.Pvs)(Ii[t]),null!==(n=(0,Hn.ltK)(r,e))&&n>1)return r;return e}(n),u=[];(0,Hn.TTZ)(s)<(0,Hn.TTZ)(t);){var c=o.add(i,s),d=null!==(0,Hn.ltK)(a,l);u.push({date:c,time:s,key:c.toISOString(),isoTimeStr:(0,Hn.Zjx)(c),isLabeled:d}),s=(0,Hn.nlJ)(s,n),a=(0,Hn.nlJ)(a,n)}return u}var Wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=(0,Hn.HPs)(Ai),t.buildSlatMetas=(0,Hn.HPs)(Ni),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.context,r=t.options,n=t.dateEnv,o=t.dateProfileGenerator,i=this.props,s=i.dateProfile,a=this.buildTimeColsModel(s,o),u=this.allDaySplitter.splitProps(i),c=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,r.slotLabelInterval,r.slotDuration,n),d=r.dayMinWidth,p=!d,h=d,f=r.dayHeaders&&(0,Hn.azq)(Hn.lR3,{dates:a.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:p?this.renderHeadAxis:null}),g=!1!==r.allDaySlot&&function(t){return(0,Hn.azq)(Jo,(0,l.pi)({},u.allDay,{dateProfile:s,dayTableModel:a,nextDayThreshold:r.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:p?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint},e.getAllDayMaxEventProps()))},v=function(t){return(0,Hn.azq)(ki,(0,l.pi)({},u.timed,{dayTableModel:a,dateProfile:s,axis:p,slotDuration:r.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return h?this.renderHScrollLayout(f,g,v,a.colCnt,d,c,this.state.slatCoords):this.renderSimpleLayout(f,g,v)},t}(ai);function Ai(e,t){var r=new Hn.xB8(e.renderRange,t);return new Hn.xVj(r,!1)}var Oi={allDaySlot:Boolean},Li=(0,Hn.rxu)({initialView:"timeGridWeek",optionRefiners:Oi,views:{timeGrid:{component:Wi,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),Vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.transformSeg=function(e,t,r){return t.computeColRanges(e.firstCol,e.lastCol,r).map((function(t){return(0,l.pi)((0,l.pi)((0,l.pi)({},e),t),{isStart:e.isStart&&t.isStart,isEnd:e.isEnd&&t.isEnd})}))},t}(Ro),ji=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitter=new Eo,t.slicers={},t.joiner=new Vi,t.tableRef=(0,Hn.VfA)(),t.isHitComboAllowed=function(e,r){return 1===t.props.resourceDayTableModel.dayTableModel.colCnt||e.dateSpan.resourceId===r.dateSpan.resourceId},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=t.resourceDayTableModel,o=t.nextDayThreshold,i=t.dateProfile,s=this.splitter.splitProps(t);this.slicers=(0,Hn._aR)(s,(function(t,r){return e.slicers[r]||new Xo}));var a=(0,Hn._aR)(this.slicers,(function(e,t){return e.sliceProps(s[t],i,o,r,n.dayTableModel)}));return(0,Hn.azq)(Zo,(0,l.pi)({forPrint:t.forPrint,ref:this.tableRef},this.joiner.joinProps(a,n),{cells:n.cells,dateProfile:i,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,isHitComboAllowed:this.isHitComboAllowed}))},t}(Hn.IdW),Ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
2return t.flattenResources=(0,Hn.HPs)(Co),t.buildResourceDayTableModel=(0,Hn.HPs)(_i),t.headerRef=(0,Hn.VfA)(),t.tableRef=(0,Hn.VfA)(),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=r.options,o=n.resourceOrder||so,i=this.flattenResources(t.resourceStore,o),s=this.buildResourceDayTableModel(t.dateProfile,r.dateProfileGenerator,i,n.datesAboveResources,r),a=n.dayHeaders&&(0,Hn.azq)(ho,{ref:this.headerRef,resources:i,dateProfile:t.dateProfile,dates:s.dayTableModel.headerDates,datesRepDistinctDays:!0}),l=function(r){return(0,Hn.azq)(ji,{ref:e.tableRef,dateProfile:t.dateProfile,resourceDayTableModel:s,businessHours:t.businessHours,eventStore:t.eventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,nextDayThreshold:n.nextDayThreshold,tableMinWidth:r.tableMinWidth,colGroupNode:r.tableColGroupNode,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!t.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:r.clientWidth,clientHeight:r.clientHeight,forPrint:t.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(a,l,s.colCnt,n.dayMinWidth):this.renderSimpleLayout(a,l)},t}(zo);function _i(e,t,r,n,o){var i=Qo(e,t);return n?new yo(i,r,o):new mo(i,r,o)}(0,Hn.rxu)({deps:[Nn,Po,ei],initialView:"resourceDayGridDay",views:{resourceDayGrid:{type:"dayGrid",component:Ui,needsResourceData:!0},resourceDayGridDay:{type:"resourceDayGrid",duration:{days:1}},resourceDayGridWeek:{type:"resourceDayGrid",duration:{weeks:1}},resourceDayGridMonth:{type:"resourceDayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});var Fi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.ZT)(t,e),t.prototype.transformSeg=function(e,t,r){return[(0,l.pi)((0,l.pi)({},e),{col:t.computeCol(e.col,r)})]},t}(Ro),Gi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=(0,Hn.HPs)(qi),t.splitter=new Eo,t.slicers={},t.joiner=new Fi,t.timeColsRef=(0,Hn.VfA)(),t.isHitComboAllowed=function(e,r){return 1===t.dayRanges.length||e.dateSpan.resourceId===r.dateSpan.resourceId},t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=r.dateEnv,o=r.options,i=t.dateProfile,s=t.resourceDayTableModel,a=this.dayRanges=this.buildDayRanges(s.dayTableModel,i,n),u=this.splitter.splitProps(t);this.slicers=(0,Hn._aR)(u,(function(t,r){return e.slicers[r]||new Mi}));var c=(0,Hn._aR)(this.slicers,(function(e,t){return e.sliceProps(u[t],i,null,r,a)}));return(0,Hn.azq)(Hn.wh8,{unit:o.nowIndicator?"minute":"day"},(function(r,n){return(0,Hn.azq)(Ti,(0,l.pi)({ref:e.timeColsRef},e.joiner.joinProps(c,s),{dateProfile:i,axis:t.axis,slotDuration:t.slotDuration,slatMetas:t.slatMetas,cells:s.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:r,nowIndicatorSegs:o.nowIndicator&&e.buildNowIndicatorSegs(r),todayRange:n,onScrollTopRequest:t.onScrollTopRequest,forPrint:t.forPrint,onSlatCoords:t.onSlatCoords,isHitComboAllowed:e.isHitComboAllowed}))}))},t.prototype.buildNowIndicatorSegs=function(e){var t=this.slicers[""].sliceNowDate(e,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)},t}(Hn.IdW),Bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.flattenResources=(0,Hn.HPs)(Co),t.buildResourceTimeColsModel=(0,Hn.HPs)(Zi),t.buildSlatMetas=(0,Hn.HPs)(Ni),t}return(0,l.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=this.context,n=r.options,o=r.dateEnv,i=t.dateProfile,s=this.allDaySplitter.splitProps(t),a=n.resourceOrder||so,u=this.flattenResources(t.resourceStore,a),c=this.buildResourceTimeColsModel(i,r.dateProfileGenerator,u,n.datesAboveResources,r),d=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,n.slotLabelInterval,n.slotDuration,o),p=n.dayMinWidth,h=!p,f=p,g=n.dayHeaders&&(0,Hn.azq)(ho,{resources:u,dates:c.dayTableModel.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),v=!1!==n.allDaySlot&&function(r){return(0,Hn.azq)(ji,(0,l.pi)({},s.allDay,{dateProfile:i,resourceDayTableModel:c,nextDayThreshold:n.nextDayThreshold,tableMinWidth:r.tableMinWidth,colGroupNode:r.tableColGroupNode,renderRowIntro:h?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:r.clientWidth,clientHeight:r.clientHeight,forPrint:t.forPrint},e.getAllDayMaxEventProps()))},m=function(r){return(0,Hn.azq)(Gi,(0,l.pi)({},s.timed,{dateProfile:i,axis:h,slotDuration:n.slotDuration,slatMetas:d,resourceDayTableModel:c,tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,clientWidth:r.clientWidth,clientHeight:r.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:r.expandRows,forPrint:t.forPrint,onScrollTopRequest:e.handleScrollTopRequest}))};return f?this.renderHScrollLayout(g,v,m,c.colCnt,p,d,this.state.slatCoords):this.renderSimpleLayout(g,v,m)},t}(ai);function Zi(e,t,r,n,o){var i=Ai(e,t);return n?new yo(i,r,o):new mo(i,r,o)}var Yi=(0,Hn.rxu)({deps:[Nn,Po,Li],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:Bi,needsResourceData:!0}
2,resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}});function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ji(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ki=function(e){var t=a.createRef(),r=(0,a.useState)(!0),n=r[0],i=(r[1],(0,a.useState)([{title:"Event Now",start:new Date}])),l=(i[0],i[1],e.scenario),u=(0,a.useState)(!1),c=u[0],p=u[1],h=(0,a.useState)([]),f=h[0],g=h[1],v=(0,a.useState)({startStr:es($i())}),m=v[0],y=(v[1],function(){var e=(0,o.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://qeca46csxd.execute-api.us-east-1.amazonaws.com/prod/scheduler",{method:"POST",body:JSON.stringify(Ji(Ji({},l),m)),headers:{"Content-Type":"application/json"}});case 2:e.sent.json().then((function(e){return g(e.shifts)})).catch((function(e){return p(e)}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return(0,a.useEffect)((function(){y()}),[]),!f||c?a.createElement("div",null,"Loading..."):(console.log(f),a.createElement("div",{className:"scheduler-app-calendar"},a.createElement(d,{timeZone:"UTC",defaultDate:$i(),defaultView:"resourceTimelGridThreeDays",header:{left:"prev,next today",center:"title",right:"resourceTimelGridThreeDays, resourceTimeGridDay, resourceTimelineWeek"},plugins:[be,Je,Yi,Tn],ref:t,weekends:n,schedulerLicenseKey:"GPL-My-Project-Is-Open-Source",resourceLabelText:"Nurse Name",nowIndicator:!0,views:{resourceTimelGridThreeDays:{type:"resourceTimeGrid",duration:{days:3},buttonText:"3 days",titleFormat:{year:"numeric",month:"numeric",day:"numeric"}}},resources:l.resources,events:f})))},Qi=function(e){var t=e.name;return a.createElement("span",{className:"scheduler-resourceName"},t)},$i=function(){var e=new Date;return e.setMilliseconds(0),e.setSeconds(0),e.setMinutes(0),e.setHours(0),e},es=function(e){var t=function(e){var t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+"T"+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())+"+"+t(0)+":"+t(0)},ts=function(e){var t=(0,a.useState)(!1),r=t[0];t[1];return!rs.resources||r?a.createElement("div",null,"Loading..."):a.createElement("div",null,a.createElement("div",{className:"scheduler-scenario"},a.createElement("p",null,rs.resources.map((function(e,t){return a.createElement("span",{key:"r"+t},a.createElement(Qi,{name:e.title}),t<rs.resources.length-2?", ":t===rs.resources.length-2?" and ":"")}))," are nurses working in a clinic:"),a.createElement("ul",null,rs.resources.flatMap((function(e,t){var r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];return e.shift_requests.flatMap((function(n,o){return["morning","afternoon","evening"].map((function(i,s){return 1===n[s]?a.createElement("li",{key:"sr"+(100*t+10*o+s)},e.title," would like to take ",r[o]," ",i," off."):null}))}))})))),a.createElement(Ki,{scenario:rs}))},rs={resources:[{id:"a",title:"Alice",shift_requests:[[0,0,1],[0,0,0],[0,0,0],[0,0,0],[0,0,1],[0,1,0],[0,0,1]]},{id:"b",title:"Bob",shift_requests:[[0,0,0],[0,0,0],[0,1,0],[0,1,0],[1,0,0],[0,0,0],[0,0,1]]},{id:"c",title:"Chris",shift_requests:[[0,1,0],[0,1,0],[0,0,0],[1,0,0],[0,0,0],[0,1,0],[0,0,0]]},{id:"d",title:"Daniela",shift_requests:[[0,0,1],[0,0,0],[1,0,0],[0,1,0],[0,0,0],[1,0,0],[0,0,0]]},{id:"e",title:"Edgar",shift_requests:[[0,0,0],[0,0,1],[0,1,0],[0,0,0],[1,0,0],[0,1,0],[0,0,0]]}]}}}]); 3//# sourceMappingURL=474-bab905dead3bd3e90bb6.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.