/*! * FullCalendar v4.0.0-alpha.3 * Docs & License: https://fullcalendar.io/ * (c) 2018 Adam Shaw */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("superagent")):"function"==typeof define&&define.amd?define(["superagent"],t):"object"==typeof exports?exports.FullCalendar=t(require("superagent")):e.FullCalendar=t(e.superagent)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=184)}([,function(e,t){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};t.__extends=function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},t.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt&&(t=r)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t}function d(e,t){var n={position:"relative",left:-1};k.applyStyle(e,n),k.applyStyle(t,n);var r=e.offsetHeight-t.offsetHeight,i={position:"",left:""};return k.applyStyle(e,i),k.applyStyle(t,i),r}function c(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",z.preventDefault)}function p(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",z.preventDefault)}function f(e){e.addEventListener("contextmenu",z.preventDefault)}function h(e){e.removeEventListener("contextmenu",z.preventDefault)}function g(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t=L.asRoughMs(t)&&(i=N.addDays(i,1)),i<=n&&(i=N.addDays(n,1)),{start:n,end:i}}function O(e){var t=I(e);return N.diffDays(t.start,t.end)>1}function H(e,t,n,r){return"year"===r?L.createDuration(n.diffWholeYears(e,t),"year"):"month"===r?L.createDuration(n.diffWholeMonths(e,t),"month"):N.diffDayAndTime(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var k=n(3),x=n(15),z=n(23),N=n(4),L=n(9);t.compensateScroll=r,t.uncompensateScroll=i,t.disableCursor=o,t.enableCursor=a,t.distributeHeight=s,t.undistributeHeight=l,t.matchCellWidths=u,t.subtractInnerElHeight=d,t.preventSelection=c,t.allowSelection=p,t.preventContextMenu=f,t.allowContextMenu=h,t.parseFieldSpecs=g,t.compareByFieldSpecs=v,t.compareByFieldSpec=m,t.flexibleCompare=y,t.log=E,t.warn=S,t.capitaliseFirstLetter=b,t.padStart=D,t.compareNumbers=w,t.isInt=T,t.applyAll=_,t.firstDefined=R,t.debounce=C,t.refineProps=M,t.computeAlignedDayRange=P,t.computeVisibleDayRange=I,t.isMultiDayRange=O,t.diffDates=H},function(e,t){function n(e,t,n){var r=document.createElement(e);if(t)for(var i in t)"style"===i?m(r,t[i]):E[i]?r[i]=t[i]:r.setAttribute(i,t[i]);return"string"==typeof n?r.innerHTML=n:null!=n&&s(r,n),r}function r(e){e=e.trim();var t=document.createElement(a(e));return t.innerHTML=e,t.firstChild}function i(e){return Array.prototype.slice.call(o(e))}function o(e){e=e.trim();var t=document.createElement(a(e));return t.innerHTML=e,t.childNodes}function a(e){return S[e.substr(0,3)]||"div"}function s(e,t){for(var n=d(t),r=0;r=1?Math.min(i,o):i}function y(e,t,n,r){var i=w([t,0,1+E(t,n,r)]),o=f(e),s=Math.round(a(i,o));return Math.floor(s/7)+1}function E(e,t,n){var r=7+t-n;return-(7+w([e,0,r]).getUTCDay()-t)%7+r-1}function S(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function b(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function D(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function w(e){return new Date(Date.UTC.apply(Date,e))}function T(e){return!isNaN(e.valueOf())}function _(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}Object.defineProperty(t,"__esModule",{value:!0}),t.DAY_IDS=["sun","mon","tue","wed","thu","fri","sat"],t.addWeeks=n,t.addDays=r,t.addMs=i,t.diffWeeks=o,t.diffDays=a,t.diffHours=s,t.diffMinutes=l,t.diffSeconds=u,t.diffDayAndTime=d,t.diffWholeWeeks=c,t.diffWholeDays=p,t.startOfDay=f,t.startOfHour=h,t.startOfMinute=g,t.startOfSecond=v,t.weekOfYear=m,t.dateToLocalArray=S,t.arrayToLocalDate=b,t.dateToUtcArray=D,t.arrayToUtcDate=w,t.isValidDate=T,t.timeAsMs=_},,,function(e,t,n){function r(e,t){return"object"==typeof e&&e?("string"==typeof t&&(e=u.__assign({separator:t},e)),new c.NativeFormatter(e)):"string"==typeof e?new p.CmdFormatter(e,t):"function"==typeof e?new f.FuncFormatter(e):void 0}function i(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",a(t,!0)))),r}function o(e){return d.padStart(e.getUTCHours(),2)+":"+d.padStart(e.getUTCMinutes(),2)+":"+d.padStart(e.getUTCSeconds(),2)}function a(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?n+d.padStart(i,2)+":"+d.padStart(o,2):"GMT"+n+i+(o?":"+d.padStart(o,2):"")}function s(e,t,n,r){var i=l(e,n.calendarSystem);return{date:i,start:i,end:t?l(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function l(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(1),d=n(2),c=n(187),p=n(57),f=n(188);t.createFormatter=r,t.buildIsoString=i,t.formatIsoTimeString=o,t.formatTimeZoneOffset=a,t.createVerboseFormattingArg=s},function(e,t){function n(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&ra&&o.push({start:a,end:r.start}),r.end>a&&(a=r.end);return at.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function u(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t=t.end?new Date(t.end.valueOf()-1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.parseRange=n,t.invertRanges=r,t.intersectRanges=o,t.rangesEqual=a,t.rangesIntersect=s,t.rangeContainsRange=l,t.rangeContainsMarker=u,t.constrainMarkerToRange=d},function(e,t,n){function r(e,t){var n;return"string"==typeof e?i(e):"object"==typeof e&&e?o(e):"number"==typeof e?o((n={},n[t||"milliseconds"]=e,n)):null}function i(e){var t=w.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function o(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*a(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function a(e){return e.weeks||e.week||0}function s(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function l(e){return 0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds}function u(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function d(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function c(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function p(e){return h(e)/365}function f(e){return h(e)/30}function h(e){return y(e)/864e5}function g(e){return y(e)/36e5}function v(e){return y(e)/6e4}function m(e){return y(e)/1e3}function y(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function E(e,t){for(var n=null,r=0;r/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function r(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function i(e){var t=[];for(var r in e){var i=e[r];null!=i&&t.push(r+'="'+n(i)+'"')}return t.join(" ")}function o(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}Object.defineProperty(t,"__esModule",{value:!0}),t.htmlEscape=n,t.cssToStr=r,t.attrsToStr=i,t.parseClassName=o},function(e,t){function n(e,t){var r,i,o,a,s,l,u={};if(t)for(r=0;r=0;a--)if("object"==typeof(s=e[a][i])&&s)o.unshift(s);else if(void 0!==s){u[i]=s;break}o.length&&(u[i]=n(o))}for(r=e.length-1;r>=0;r--){l=e[r];for(i in l)i in u||(u[i]=l[i])}return u}function r(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function i(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function o(e){for(var t={},n=0,r=e;n'+r+"":""+r+""}function i(e){return e.opt("allDayHtml")||a.htmlEscape(e.opt("allDayText"))}function o(e,t,n,r){var i,o,a=n.calendar,u=n.view,d=n.theme,c=n.dateEnv,p=[];return l.rangeContainsMarker(t.activeRange,e)?(p.push("fc-"+s.DAY_IDS[e.getUTCDay()]),u.opt("monthMode")&&c.getMonth(e)!==c.getMonth(t.currentRange.start)&&p.push("fc-other-month"),i=s.startOfDay(a.getNow()),o=s.addDays(i,1),e=o?p.push("fc-future"):(p.push("fc-today"),!0!==r&&p.push(d.getClass("today")))):p.push("fc-disabled-day"),p}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),s=n(4),l=n(8);t.buildGotoAnchorHtml=r,t.getAllDayHtml=i,t.getDayClasses=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(33),o=n(8),a=n(60),s=n(3),l=n(42),u=n(16),d=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.needHitsDepth=0,i.el=n,i.isInteractable&&a.default.registerComponent(i),i}return r.__extends(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),s.removeElement(this.el),this.isInteractable&&a.default.unregisterComponent(this)},t.prototype.requestPrepareHits=function(){this.needHitsDepth++||this.prepareHits()},t.prototype.requestReleaseHits=function(){--this.needHitsDepth||this.releaseHits()},t.prototype.prepareHits=function(){},t.prototype.releaseHits=function(){},t.prototype.queryHit=function(e,t){return null},t.prototype.isInteractionValid=function(e){var t=this.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(var i in r)if(!o.rangeContainsRange(n.validRange,r[i].range))return!1;return l.isInteractionValid(e,t)},t.prototype.isDateSelectionValid=function(e){var t=this.props.dateProfile;return!(t&&!o.rangeContainsRange(t.validRange,e.range))&&l.isDateSelectionValid(e,this.calendar)},t.prototype.publiclyTrigger=function(e,t){return this.calendar.publiclyTrigger(e,t)},t.prototype.publiclyTriggerAfterSizing=function(e,t){return this.calendar.publiclyTriggerAfterSizing(e,t)},t.prototype.hasPublicHandlers=function(e){return this.calendar.hasPublicHandlers(e)},t.prototype.triggerRenderedSegs=function(e,t){var n=this.calendar ;if(this.hasPublicHandlers("eventPositioned"))for(var r=0,i=e;r *",d.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)"},function(e,t,n){function r(e){e.preventDefault()}function i(e,t,n,r){function i(e){var t=s.elementClosest(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}function o(e,t,n,r){var o;return i(e,"mouseover",t,function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}})}function a(e,t){var n=function(r){t(r),l.forEach(function(t){e.removeEventListener(t,n)})};l.forEach(function(t){e.addEventListener(t,n)})}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3);t.preventDefault=r,t.listenBySelector=i,t.listenToHoverBySelector=o;var l=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];t.whenTransitionDone=a},function(e,t,n){function r(e,n,r){var i=u.refineProps(e,t.UNSCOPED_EVENT_UI_PROPS,{},r),o=s.normalizeConstraint(i.constraint,n);return{startEditable:null!=i.startEditable?i.startEditable:i.editable,durationEditable:null!=i.durationEditable?i.durationEditable:i.editable,constraints:null!=o?[o]:[],overlap:i.overlap,allows:null!=i.allow?[i.allow]:[],backgroundColor:i.backgroundColor||i.color,borderColor:i.borderColor||i.color,textColor:i.textColor,classNames:i.classNames.concat(i.className)}}function i(e,n,i,o){var a={},s={};for(var l in t.UNSCOPED_EVENT_UI_PROPS){var d=e+u.capitaliseFirstLetter(l);a[l]=n[d],s[d]=!0}if("event"===e&&(a.editable=n.editable),o)for(var l in n)s[l]||(o[l]=n[l]);return r(a,i)}function o(e){return e.reduce(a,d)}function a(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(42),l=n(11),u=n(2);t.UNSCOPED_EVENT_UI_PROPS={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:l.parseClassName,classNames:l.parseClassName,color:String,backgroundColor:String,borderColor:String,textColor:String},t.processUnscopedUiProps=r,t.processScopedUiProps=i;var d={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};t.combineEventUis=o},function(e,t,n){function r(e,t,n,r){var s=u(t,n),l={},d=p.parseRecurring(e,s,n.dateEnv,l);if(d){var c=i(l,t,d.allDay,Boolean(d.duration),n);return c.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:c,instance:null}}var f={},h=a(e,s,n,f,r);if(h){var c=i(f,t,h.allDay,h.hasEnd,n);return{def:c,instance:o(c.defId,h.range,h.forcedStartTzo,h.forcedEndTzo)}}return null}function i(e,t,n,r,i){var o={},a=l(e,i,o);a.defId=String(g++),a.sourceId=t,a.allDay=n,a.hasEnd=r;for(var s=0,u=i.pluginSystem.hooks.eventDefParsers;sr.layer)||(r=a)}return r},e}();t.default=d,t.isHitsEqual=r},function(e,t,n){function r(e){c.push(e)}function i(e){return c[e]}function o(e){return!c[e.sourceDefId].ignoreRange}function a(e,t){for(var n=c.length-1;n>=0;n--){var r=c[n],i=r.parseMeta(e);if(i)return s("object"==typeof e?e:{},i,n,t)}return null}function s(e,t,n,r){var i={},o=l.refineProps(e,d,{},i),a={},s=u.processUnscopedUiProps(i,r,a);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(p++),o.sourceDefId=n,o.meta=t,o.ui=s,o.extendedProps=a,o}Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),u=n(24),d={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},c=[],p=0;t.registerEventSourceDef=r,t.getEventSourceDef=i,t.doesSourceNeedRange=o,t.parseEventSource=a},,,function(e,t){function n(e,t){return e.left>=t.left&&e.left=t.top&&e.top=i*i&&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,o.allowSelection(document.body),o.allowContextMenu(document.body),n.emitter.trigger("pointerup",e),n.isDragging&&(n.autoScroller.stop(),n.tryStopDrag(e)),n.delayTimeoutId&&(clearTimeout(n.delayTimeoutId),n.delayTimeoutId=null))};var r=n.pointer=new i.default(t);return r.emitter.on("pointerdown",n.onPointerDown),r.emitter.on("pointermove",n.onPointerMove),r.emitter.on("pointerup",n.onPointerUp),n.mirror=new a.default,n.autoScroller=new l.default,n}return r.__extends(t,e),t.prototype.destroy=function(){this.pointer.destroy()},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.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}(s.default);t.default=u},function(e,t,n){function r(e){return i.mergeProps(e,o)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);t.globalDefaults={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",cmdFormatter:null,defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",timeZoneImpl:null,locale:"en",agendaEventMinHeight:0,theme:!1,dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var o=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=r},function(e,t,n){function r(e){return{id:String(a++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],viewConfigs:e.viewConfigs||{},viewSpecTransformers:e.viewSpecTransformers||[],viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[]}}function i(e,t){return{reducers:e.reducers.concat(t.reducers),eventDefParsers:e.eventDefParsers.concat(t.eventDefParsers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),viewConfigs:o.__assign({},e.viewConfigs,t.viewConfigs),viewSpecTransformers:e.viewSpecTransformers.concat(t.viewSpecTransformers),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),eventResizeJoinTransforms:e.eventResizeJoinTransforms.concat(t.eventResizeJoinTransforms),viewContainerModifiers:e.viewContainerModifiers.concat(t.viewContainerModifiers)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=0;t.createPlugin=r;var s=function(){function e(){this.hooks={reducers:[],eventDefParsers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],viewConfigs:{},viewSpecTransformers:[],viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[]},this.addedHash={}}return e.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;t0;r--){var i=n.slice(0,r).join("-");if(u[i])return u[i]}return null}function o(e,t){u[e]=t}function a(){return Object.keys(u)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(12),l={week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month", week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"},u={};t.getLocale=r,t.defineLocale=o,t.getLocaleCodes=a,o("en",l)},function(e,t,n){function r(e,t){return a.rangesEqual(e.activeRange,t.activeRange)&&a.rangesEqual(e.validRange,t.validRange)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(9),a=n(8),s=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e){var t=this.dateEnv,n=t.subtract(t.startOf(e.currentDate,e.currentRangeUnit),e.dateIncrement);return this.build(n,-1)},e.prototype.buildNext=function(e){var t=this.dateEnv,n=t.add(t.startOf(e.currentDate,e.currentRangeUnit),e.dateIncrement);return this.build(n,1)},e.prototype.build=function(e,t,n){void 0===n&&(n=!1);var r,i,s,l,u,d,c=null,p=null;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=a.constrainMarkerToRange(e,r)),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),l=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),l=this.trimHiddenDays(l),u=l,this.options.showNonCurrentDates||(u=a.intersectRanges(u,i.range)),c=o.createDuration(this.options.minTime),p=o.createDuration(this.options.maxTime),u=this.adjustActiveRange(u,c,p),u=a.intersectRanges(u,r),u&&(e=a.constrainMarkerToRange(e,u)),d=a.rangesIntersect(i.range,r),{validRange:r,currentDate:e,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:u,renderRange:l,minTime:c,maxTime:p,isValid:d,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this,i=r.viewSpec,a=r.dateEnv,s=null,l=null,u=null;return i.duration?(s=i.duration,l=i.durationUnit,u=this.buildRangeFromDuration(e,t,s,l)):(n=this.options.dayCount)?(l="day",u=this.buildRangeFromDayCount(e,t,n)):(u=this.buildCustomVisibleRange(e))?l=a.greatestWholeUnit(u.start,u.end).unit:(s=this.getFallbackDuration(),l=o.greatestDurationDenominator(s).unit,u=this.buildRangeFromDuration(e,t,s,l)),{duration:s,unit:l,range:u}},e.prototype.getFallbackDuration=function(){return o.createDuration({day:1})},e.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,a=e.start,s=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(o.asRoughDays(t)<0&&(a=i.startOfDay(a),a=r.add(a,t)),o.asRoughDays(n)>1&&(s=i.startOfDay(s),s=i.addDays(s,-1),s=r.add(s,n))),{start:a,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){function a(){u=p.startOf(e,f),d=p.add(u,n),c={start:u,end:d}}var s,l,u,d,c,p=this.dateEnv,f=this.options.dateAlignment;return f||(s=this.options.dateIncrement,s?(l=o.createDuration(s),f=o.asRoughMs(l)=n[t]&&e=n[t]&&e"},e.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(i.removeElement),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}();t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(15),a=n(59),s=n(203),l=n(164),u=n(204),d=n(205),c=n(4),p=n(7),f=n(22),h=n(206),g=n(8),v=n(21),m=n(163),y=n(20),E=p.createFormatter({day:"numeric"}),S=p.createFormatter({week:"numeric"}),b=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;i.bottomCoordPadding=0,i.isCellSizesDirty=!1;var o=i.eventRenderer=new l.default(i),a=i.fillRenderer=new d.default(i);i.mirrorRenderer=new u.default(i);var s=i.renderCells=y.memoizeRendering(i._renderCells,i._unrenderCells);return i.renderBusinessHours=y.memoizeRendering(a.renderSegs.bind(a,"businessHours"),a.unrender.bind(a,"businessHours"),[s]),i.renderDateSelection=y.memoizeRendering(a.renderSegs.bind(a,"highlight"),a.unrender.bind(a,"highlight"),[s]),i.renderBgEvents=y.memoizeRendering(a.renderSegs.bind(a,"bgEvent"),a.unrender.bind(a,"bgEvent"),[s]),i.renderFgEvents=y.memoizeRendering(o.renderSegs.bind(o),o.unrender.bind(o),[s]),i.renderEventSelection=y.memoizeRendering(o.selectByInstanceId.bind(o),o.unselectByInstanceId.bind(o),[i.renderFgEvents]),i.renderEventDrag=y.memoizeRendering(i._renderEventDrag,i._unrenderEventDrag,[s]),i.renderEventResize=y.memoizeRendering(i._renderEventResize,i._unrenderEventResize,[s]),i.renderProps=r,i}return r.__extends(t,e),t.prototype.render=function(e){var t=e.cells;this.rowCnt=t.length,this.colCnt=t[0].length,this.renderCells(t,e.isRigid),this.renderBusinessHours(e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderBgEvents(e.bgEventSegs),this.renderFgEvents(e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderCells.unrender()},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:c.addDays(n,1)}},t.prototype.updateSegPopoverTile=function(e,t){var n=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:n.eventSelection,eventDragInstances:n.eventDrag?n.eventDrag.affectedInstances:null,eventResizeInstances:n.eventResize?n.eventResize.affectedInstances:null})},t.prototype._renderCells=function(e,t){var n,r,o=this,s=o.view,l=o.dateEnv,u=this,d=u.rowCnt,c=u.colCnt,p="";for(n=0;n
'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'
'+(this.getIsNumbersVisible()?""+this.renderNumberTrHtml(e)+"":"")+"
"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(e){var t=this.renderProps.renderNumberIntroHtml(e,this);return""+(this.isRtl?"":t)+this.renderNumberCellsHtml(e)+(this.isRtl?t:"")+""},t.prototype.renderNumberCellsHtml=function(e){var t,n,r=[];for(t=0;t",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(a+=v.buildGotoAnchorHtml(i,{date:e,type:"week"},{class:"fc-week-number"},o.format(e,S))),l&&(a+=v.buildGotoAnchorHtml(i,e,{class:"fc-day-number"},o.format(e,E))),a+=""):""},t.prototype.updateSize=function(e){var t=this,n=t.fillRenderer,r=t.eventRenderer,i=t.mirrorRenderer;(e||this.isCellSizesDirty)&&(this.buildColPositions(),this.buildRowPositions(),this.isCellSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},t.prototype.buildColPositions=function(){this.colPositions.build()},t.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.positionToHit=function(e,t){var n=this,r=n.colPositions,i=n.rowPositions,o=r.leftToIndex(e),a=i.topToIndex(t);if(null!=a&&null!=o)return{row:a,col:o,dateSpan:{range:this.getCellRange(a,o),allDay:!0},dayEl:this.getCellEl(a,o),relativeRect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]}}},t.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},t.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",e.segs))},t.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight"))},t.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",e.segs),this.mirrorRenderer.renderSegs(e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight"),this.mirrorRenderer.unrender())},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(e){var t,n,r=this.eventRenderer.rowStructs||[];for(t=0;to)return t;return!1},t.prototype.limitRow=function(e,t){var n,r,o,a,s,l,u,d,c,p,f,h,g,v,m,y=this,E=this,S=E.colCnt,b=E.isRtl,D=this.eventRenderer.rowStructs[e],w=[],T=0,_=function(n){for(;T=t.length?t[t.length-1]+1:t[n]},e}();t.default=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft()1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function o(e){return e.map(function(e){return new e})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(33),l=n(200),u=n(3),d=n(8),c=n(143),p=n(17),f=n(15),h=n(7),g=n(4),v=n(20),m=n(1),y=function(e){function t(t,n){var i=e.call(this,t)||this;i._renderToolbars=v.memoizeRendering(i.renderToolbars),i.buildViewPropTransformers=p.memoize(o),i.el=n,u.prependToElement(n,i.contentEl=u.createElement("div",{className:"fc-view-container"}));for(var a=i.calendar,s=0,l=a.pluginSystem.hooks.viewContainerModifiers;s"+f.buildGotoAnchorHtml(l,{date:o.start,type:"week",forceOff:a>1},i.htmlEscape(e))+""):'"},l.renderTimeGridBgIntroHtml=function(){return'"},l.renderTimeGridIntroHtml=function(){return'"},l.renderDayGridBgIntroHtml=function(){return'"+f.getAllDayHtml(l)+""}, l.renderDayGridIntroHtml=function(){return'"},l.el.classList.add("fc-agenda-view"),l.el.innerHTML=l.renderSkeletonHtml(),l.scroller=new s.default("hidden","auto");var c=l.scroller.el;l.el.querySelector(".fc-body > tr > td").appendChild(c),c.classList.add("fc-time-grid-container");var p=o.createElement("div",{className:"fc-time-grid"});return c.appendChild(p),l.timeGrid=new u.default(l.context,p,{renderBgIntroHtml:l.renderTimeGridBgIntroHtml,renderIntroHtml:l.renderTimeGridIntroHtml}),l.opt("allDaySlot")&&(l.dayGrid=new d.default(l.context,l.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:l.renderDayGridIntroHtml,renderBgIntroHtml:l.renderDayGridBgIntroHtml,renderIntroHtml:l.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1}),l.dayGrid.bottomCoordPadding=l.el.querySelector(".fc-divider").offsetHeight),l}return r.__extends(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.theme;return''+(this.opt("columnHeader")?'':"")+'
 
'+(this.opt("allDaySlot")?'

':"")+"
"},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},t.prototype.updateSize=function(t,n,r){e.prototype.updateSize.call(this,t,n,r),this.timeGrid.updateSize(t),this.dayGrid&&this.dayGrid.updateSize(t)},t.prototype.updateBaseSize=function(e,t,n){var r,i,s,l=this;if(this.axisWidth=a.matchCellWidths(o.findElements(this.el,".fc-axis")),!this.timeGrid.colEls)return void(n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i)));var u=o.findElements(this.el,".fc-row").filter(function(e){return!l.scroller.el.contains(e)});this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),u.forEach(a.uncompensateScroll),this.dayGrid&&(this.dayGrid.removeSegPopover(),r=this.opt("eventLimit"),r&&"number"!=typeof r&&(r=5),r&&this.dayGrid.limitRows(r)),n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i),s=this.scroller.getScrollbarWidths(),(s.left||s.right)&&(u.forEach(function(e){a.compensateScroll(e,s)}),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(s),this.timeGrid.getTotalSlatHeight()
',i.rootBgContainerEl=n.querySelector(".fc-bg"),i.slatContainerEl=n.querySelector(".fc-slats"),i.bottomRuleEl=n.querySelector(".fc-divider"),i.renderProps=r,i}return r.__extends(t,e),t.prototype.processOptions=function(){var e,t,n=this.opt("slotDuration"),r=this.opt("snapDuration");n=d.createDuration(n),r=r?d.createDuration(r):n,e=d.wholeDivideDurations(n,r),null===e&&(r=n,e=1),this.slotDuration=n,this.snapDuration=r,this.snapsPerSlot=e,t=this.opt("slotLabelFormat"),Array.isArray(t)&&(t=t[t.length-1]),this.labelFormat=p.createFormatter(t||{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),t=this.opt("slotLabelInterval"),this.labelInterval=t?d.createDuration(t):this.computeLabelInterval(n)},t.prototype.computeLabelInterval=function(e){var t,n,r;for(t=v.length-1;t>=0;t--)if(n=d.createDuration(v[t]),null!==(r=d.wholeDivideDurations(n,e))&&r>1)return n;return e},t.prototype.render=function(e){var t=e.cells;this.colCnt=t.length,this.renderSlats(e.dateProfile),this.renderColumns(e.cells,e.dateProfile),this.renderBusinessHours(e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderFgEvents(e.fgEventSegs),this.renderBgEvents(e.bgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender()},t.prototype.updateSize=function(e){var t=this,n=t.fillRenderer,r=t.eventRenderer,i=t.mirrorRenderer;(e||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(e||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},t.prototype._renderSlats=function(e){var t=this.theme;this.slatContainerEl.innerHTML=''+this.renderSlatRowHtml(e)+"
",this.slatEls=o.findElements(this.slatContainerEl,"tr"),this.slatPositions=new a.default(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},t.prototype.renderSlatRowHtml=function(e){for(var t,n,r,o=this,a=o.dateEnv,s=o.theme,l=o.isRtl,u="",f=c.startOfDay(e.renderRange.start),h=e.minTime,g=d.createDuration(0);d.asRoughMs(h)'+(n?""+i.htmlEscape(a.format(t,this.labelFormat))+"":"")+"",u+='"+(l?"":r)+''+(l?r:"")+"",h=d.addDurations(h,this.slotDuration),g=d.addDurations(g,this.slotDuration);return u},t.prototype._renderColumns=function(e,t){var n=this.theme,r=new h.default(this.context);this.rootBgContainerEl.innerHTML=''+r.renderHtml({cells:e,dateProfile:t,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"
",this.colEls=o.findElements(this.el,".fc-day, .fc-disabled-day"),this.isRtl&&this.colEls.reverse(),this.colPositions=new a.default(this.el,this.colEls,!0,!1),this.renderContentSkeleton(),this.isColSizesDirty=!0},t.prototype._unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){var e,t=[];t.push(this.renderProps.renderIntroHtml());for(var n=0;n
');this.isRtl&&t.reverse(),e=this.contentSkeletonEl=o.htmlToElement('
'+t.join("")+"
"),this.colContainerEls=o.findElements(e,".fc-content-col"),this.mirrorContainerEls=o.findElements(e,".fc-mirror-container"),this.fgContainerEls=o.findElements(e,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=o.findElements(e,".fc-bgevent-container"),this.highlightContainerEls=o.findElements(e,".fc-highlight-container"),this.businessContainerEls=o.findElements(e,".fc-business-container"),this.isRtl&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(e)},t.prototype.unrenderContentSkeleton=function(){o.removeElement(this.contentSkeletonEl)},t.prototype.groupSegsByCol=function(e){var t,n=[];for(t=0;t0){var s=o.createElement("div",{className:"fc-now-indicator fc-now-indicator-arrow"});s.style.top=r+"px",this.contentSkeletonEl.appendChild(s),i.push(s)}this.nowIndicatorEls=i}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(o.removeElement),this.nowIndicatorEls=null)},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.offsetHeight},t.prototype.computeDateTop=function(e,t){return t||(t=c.startOfDay(e)),this.computeTimeTop(e.valueOf()-t.valueOf())},t.prototype.computeTimeTop=function(e){var t,n,r=this.slatEls.length,i=this.props.dateProfile,o=(e-d.asRoughMs(i.minTime))/d.asRoughMs(this.slotDuration);return o=Math.max(0,o),o=Math.min(r,o),t=Math.floor(o),t=Math.min(t,r-1),n=o-t,this.slatPositions.tops[t]+this.slatPositions.getHeight(t)*n},t.prototype.computeSegVerticals=function(e){var t,n,r,i=this.opt("agendaEventMinHeight");for(t=0;tt.top&&e.top
'+(n?'
'+d.htmlEscape(n)+"
":"")+(a.title?'
'+d.htmlEscape(a.title)+"
":"")+'
'+(p?'
':"")+""},t.prototype.computeSegHorizontals=function(e){var t,n,a;if(e=this.sortEventSegs(e),t=r(e),i(t),n=t[0]){for(a=0;a"}Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),o=n(8),a=function(){function e(e){this.context=e}return e.prototype.renderHtml=function(e){var t=[];e.renderIntroHtml&&t.push(e.renderIntroHtml());for(var n=0,i=e.cells;n'),"rtl"===this.context.options.dir&&t.reverse(),""+t.join("")+""},e}();t.default=a},function(e,t,n){function r(e,t){var n,r;for(n=0;n=e.firstCol)return!0;return!1}function i(e,t){return e.leftCol-t.leftCol}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(3),s=n(165),l=function(e){function t(t){var n=e.call(this,t.context)||this;return n.dayGrid=t,n}return o.__extends(t,e),t.prototype.attachSegs=function(e,t){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(n[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},t.prototype.detachSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)a.removeElement(e.tbodyEl);this.rowStructs=null},t.prototype.renderSegRows=function(e){var t,n,r=[];for(t=this.groupSegRows(e),n=0;n'+i.htmlEscape(n)+""),r=''+(i.htmlEscape(s.title||"")||" ")+"",'
'+("rtl"===o.dir?r+" "+g:g+" "+r)+"
"+(c?'
':"")+(p?'
':"")+"
"},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},t.prototype.computeDisplayEventEnd=function(){return!1},t}(o.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(33),o=n(3),a=n(7),s=n(167),l=function(e){function t(t,n){var r=e.call(this,t)||this;return n.innerHTML="",n.appendChild(r.el=o.htmlToElement('
')),r.thead=r.el.querySelector("thead"),r}return r.__extends(t,e),t.prototype.destroy=function(){o.removeElement(this.el)},t.prototype.render=function(e){var t=e.dates,n=e.datesRepDistinctDays,r=[];e.renderIntroHtml&&r.push(e.renderIntroHtml());for(var i=a.createFormatter(this.opt("columnHeaderFormat")||s.computeFallbackHeaderFormat(n,t.length)),o=0,l=t;o"+r.join("")+""},t}(i.default);t.default=l},function(e,t,n){function r(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function i(e,t,n,r,i,u,d,c){var p,f=u.view,h=u.dateEnv,g=u.theme,v=u.options,m=o.rangeContainsMarker(t.activeRange,e),y=["fc-day-header",g.getClass("widgetHeader")];return p="function"==typeof v.columnHeaderHtml?v.columnHeaderHtml(e):"function"==typeof v.columnHeaderText?a.htmlEscape(v.columnHeaderText(e)):a.htmlEscape(h.format(e,i)),n?y=y.concat(s.getDayClasses(e,t,u,!0)):y.push("fc-"+l.DAY_IDS[e.getUTCDay()]),'1?' colspan="'+d+'"':"")+(c?" "+c:"")+">"+(m?s.buildGotoAnchorHtml(f,{date:e,forceOff:!n||1===r},p):p)+""}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),a=n(11),s=n(21),l=n(4);t.computeFallbackHeaderFormat=r,t.renderDateCell=i},function(e,t,n){function r(e,t,n){for(var r=[],i=0,o=e.headerDates;i"+i.htmlEscape(s.opt("weekLabel"))+"":""},s.renderDayGridNumberIntroHtml=function(e,t){var n=s.dateEnv,r=t.props.cells[e][0].date;return s.colWeekNumbersVisible?'"+c.buildGotoAnchorHtml(s,{date:r,type:"week",forceOff:1===t.colCnt},n.format(r,f))+"":""},s.renderDayGridBgIntroHtml=function(){var e=s.theme;return s.colWeekNumbersVisible?'":""},s.renderDayGridIntroHtml=function(){return s.colWeekNumbersVisible?'":""},s.el.classList.add("fc-basic-view"),s.el.innerHTML=s.renderSkeletonHtml(),s.scroller=new l.default("hidden","auto");var u=s.scroller.el;s.el.querySelector(".fc-body > tr > td").appendChild(u),u.classList.add("fc-day-grid-container");var d=o.createElement("div",{className:"fc-day-grid"});u.appendChild(d);var h;return s.opt("weekNumbers")?s.opt("weekNumbersWithinDays")?(h=!0,s.colWeekNumbersVisible=!1):(h=!1,s.colWeekNumbersVisible=!0):(s.colWeekNumbersVisible=!1,h=!1),s.dayGrid=new p.default(s.context,d,{renderNumberIntroHtml:s.renderDayGridNumberIntroHtml,renderBgIntroHtml:s.renderDayGridBgIntroHtml,renderIntroHtml:s.renderDayGridIntroHtml,colWeekNumbersVisible:s.colWeekNumbersVisible,cellWeekNumbersVisible:h}),s}return r.__extends(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dayGrid.destroy(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.theme;return''+(this.opt("columnHeader")?'':"")+'
 
'},t.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},t.prototype.updateSize=function(t,n,r){e.prototype.updateSize.call(this,t,n,r),this.dayGrid.updateSize(t)},t.prototype.updateBaseSize=function(e,t,n){var r,i,s=this.dayGrid,l=this.opt("eventLimit"),u=this.header?this.header.el:null;if(!s.rowEls)return void(n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r)));this.colWeekNumbersVisible&&(this.weekNumberWidth=a.matchCellWidths(o.findElements(this.el,".fc-week-number"))),this.scroller.clear(),u&&a.uncompensateScroll(u),s.removeSegPopover(),l&&"number"==typeof l&&s.limitRows(l),r=this.computeScrollerHeight(t),this.setGridHeight(r,n),l&&"number"!=typeof l&&s.limitRows(l),n||(this.scroller.setHeight(r),i=this.scroller.getScrollbarWidths(),(i.left||i.right)&&(u&&a.compensateScroll(u,i),r=this.computeScrollerHeight(t),this.scroller.setHeight(r)),this.scroller.lockOverflow(i))},t.prototype.computeScrollerHeight=function(e){return e-a.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.setGridHeight=function(e,t){this.opt("monthMode")?(t&&(e*=this.dayGrid.rowCnt/6),a.distributeHeight(this.dayGrid.rowEls,e,!t)):t?a.undistributeHeight(this.dayGrid.rowEls):a.distributeHeight(this.dayGrid.rowEls,e,!0)},t.prototype.computeInitialDateScroll=function(){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t}(u.default);t.default=h,h.prototype.dateProfileGeneratorClass=d.default},function(e,t,n){function r(e,t){var n=new u.default(e.renderRange,t);return new d.default(n,/year|month|week/.test(e.currentRangeUnit))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(169),a=n(166),s=n(68),l=n(17),u=n(65),d=n(66),c=function(e){function t(t,n,i,o){var u=e.call(this,t,n,i,o)||this;return u.buildDayTable=l.memoize(r),u.opt("columnHeader")&&(u.header=new a.default(u.context,u.el.querySelector(".fc-head-container"))),u.simpleDayGrid=new s.default(u.context,u.dayGrid),u}return i.__extends(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},t.prototype.render=function(t){e.prototype.render.call(this,t);var n=this.props.dateProfile,r=this.dayTable=this.buildDayTable(n,this.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:n,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt,renderIntroHtml:this.renderHeadIntroHtml}),this.simpleDayGrid.receiveProps({dateProfile:n,dayTable:r,businessHours:t.businessHours,dateSelection:t.dateSelection,eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.nextDayThreshold})},t}(o.default);t.default=c,t.buildDayTable=r},function(e,t,n){function r(e){for(var t=c.startOfDay(e.renderRange.start),n=e.renderRange.end,r=[],i=[];t
'+a.htmlEscape(this.opt("noEventsMessage"))+"
"},t.prototype.renderSegList=function(e){var t,n,r,i=this.groupSegsByDay(e),a=o.htmlToElement('
'),s=a.querySelector("tbody");for(t=0;t'+(n?h.buildGotoAnchorHtml(this,e,{class:"fc-list-heading-main"},a.htmlEscape(t.format(e,n))):"")+(r?h.buildGotoAnchorHtml(this,e,{class:"fc-list-heading-alt"},a.htmlEscape(t.format(e,r))):"")+"")},t}(l.default);t.default=y,y.prototype.isInteractable=!0,y.prototype.fgSegSelector=".fc-list-item"},function(e,t,n){function r(e,t,n){for(var r=a.__assign({},t.leftoverProps),i=0,o=n.pluginSystem.hooks.externalDefTransforms;i");document.body.appendChild(e);var t=e.firstChild,n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;return a.removeElement(e),n}function o(e){return e=Math.max(0,e),e=Math.round(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=null;t.getIsRtlScrollbarOnLeft=r,t.sanitizeScrollbarWidth=o},function(e,t,n){function r(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return h.formatTimeZoneOffset(e.timeZoneOffset)}:0===r&&t.week?function(e){return l(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:i(e,t,n)}function i(e,t,n){e=p.__assign({},e),t=p.__assign({},t),o(e,t),e.timeZone="UTC";var r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var s=p.__assign({},e);delete s.minute,r=new Intl.DateTimeFormat(n.locale.codes,s)}return function(o){var s,l=o.marker;return s=r&&!l.getUTCMinutes()?r:i,a(s.format(l),o,e,t,n)}}function o(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function a(e,t,n,r,i){return e=e.replace(b,""),"short"===n.timeZoneName&&(e=s(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":h.formatTimeZoneOffset(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(E,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(y,"").trim():"narrow"===r.meridiem?e=e.replace(y,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(y,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(y,function(e){return e.toLocaleLowerCase()})),e=e.replace(S," "),e=e.trim()}function s(e,t){var n=!1;return e=e.replace(D,function(){return n=!0,t}),n||(e+=" "+t),e}function l(e,t,n,r){var i=[];return"narrow"===r?i.push(t):"short"===r&&i.push(t," "),i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse(),i.join("")}function u(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:f.timeAsMs(e)!==f.timeAsMs(t)?1:0}function d(e,t){var n={};for(var r in e)r in m&&!(m[r]<=t)||(n[r]=e[r]);return n}function c(e,t,n,r){for(var i=0;i1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(l=1);var p=this.format(e,n),f=this.format(t,n);if(p===f)return p;var h=d(o,l),g=r(h,a,n),v=g(e),m=g(t),y=c(p,v,f,m),E=a.separator||"";return y?y.before+v+E+m+y.after:p+E+f},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},e}();t.NativeFormatter=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),i=function(){function e(e){this.func=e}return e.prototype.format=function(e,t){return this.func(r.createVerboseFormattingArg(e,null,t))},e.prototype.formatRange=function(e,t,n){return this.func(r.createVerboseFormattingArg(e,t,n))},e}();t.FuncFormatter=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),i=n(27),o=function(){function e(e){var t=this;this.handlePointerDown=function(e){var n=t.dragging;n.setIgnoreMove(!t.component.isValidDateDownEl(n.pointer.downEl))},this.handleDragEnd=function(e){var n=t.component;if(!t.dragging.pointer.wasTouchScroll){var r=t.hitDragging,o=r.initialHit,a=r.finalHit;o&&a&&i.isHitsEqual(o,a)&&n.calendar.triggerDateClick(o.dateSpan,o.dayEl,n.view,e.origEvent)}},this.component=e,this.dragging=new r.default(e.el),this.dragging.autoScroller.isEnabled=!1;var n=this.hitDragging=new i.default(this.dragging,e);n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}return e.prototype.destroy=function(){this.dragging.destroy()},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(23),o=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",r.applyStyle(n,{left:o.left,top:o.top}),i.whenTransitionDone(n,function(){n.style.transition="",e()})},e.prototype.cleanup=function(){this.mirrorEl&&(r.removeElement(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&r.applyStyle(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),t.classList.add("fc-unselectable"),t.classList.add("fc-dragging"),r.applyStyle(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}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(150),i="function"==typeof performance?performance.now:Date.now,o=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=i();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t){this.isEnabled&&(this.scrollCaches=this.buildCaches(),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,o=null===this.pointerScreenY?0:r-this.pointerScreenY,a=null===this.pointerScreenX?0:n-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(i()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e=0&&u>=0&&d>=0&&c>=0&&(d<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>d)&&(r={scrollCache:a,name:"top",distance:d}),c<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:a,name:"bottom",distance:c}),l<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:a,name:"left",distance:l}),u<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"right",distance:u}))}return r},e.prototype.buildCaches=function(){return this.queryScrollEls().map(function(e){return e===window?new r.WindowScrollGeomCache(!1):new r.ElementScrollGeomCache(e,!1)})},e.prototype.queryScrollEls=function(){for(var e=[],t=0,n=this.scrollQuery;tr.start)return d.endDelta=l,d;return null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),o=n(43),a=n(3),s=n(34),l=n(13),u=n(2),d=n(16),c=n(10),p=n(9),f=n(1),h=function(){function e(e){var t=this;this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=function(e){var n=t.querySeg(e),r=t.eventRange=n.eventRange;t.dragging.minDistance=5,t.dragging.setIgnoreMove(!t.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&t.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=function(e){var n=t.component.calendar,r=t.eventRange;t.relevantEvents=l.getRelevantEvents(n.state.eventStore,t.eventRange.instance.instanceId),t.draggingSeg=t.querySeg(e),n.unselect(),n.publiclyTrigger("eventResizeStart",[{el:t.draggingSeg.el,event:new d.default(n,r.def,r.instance),jsEvent:e.origEvent,view:t.component.view}])},this.handleHitUpdate=function(e,n,a){var s=t.component.calendar,d=t.relevantEvents,c=t.hitDragging.initialHit,p=t.eventRange.instance,f=null,h=null,g=!1,v={affectedEvents:d,mutatedEvents:l.createEmptyEventStore(),isEvent:!0,origSeg:t.draggingSeg};e&&(f=r(c,e,a.subjectEl.classList.contains("fc-start-resizer"),p.range,s.pluginSystem.hooks.eventResizeJoinTransforms)),f&&(h=o.applyMutationToEventStore(d,s.eventUiBases,f,s),v.mutatedEvents=h,t.component.isInteractionValid(v)||(g=!0,f=null,h=null,v.mutatedEvents=null)),h?s.dispatch({type:"SET_EVENT_RESIZE",state:v}):s.dispatch({type:"UNSET_EVENT_RESIZE"}),g?u.disableCursor():u.enableCursor(),n||(f&&i.isHitsEqual(c,e)&&(f=null),t.validMutation=f,t.mutatedRelevantEvents=h)},this.handleDragEnd=function(e){var n=t.component.calendar,r=t.component.view,i=t.eventRange.def,o=t.eventRange.instance,a=new d.default(n,i,o),s=t.relevantEvents,l=t.mutatedRelevantEvents;n.publiclyTrigger("eventResizeStop",[{el:t.draggingSeg.el,event:a,jsEvent:e.origEvent,view:r}]),t.validMutation?(n.dispatch({type:"MERGE_EVENTS",eventStore:l}),n.publiclyTrigger("eventResize",[{el:t.draggingSeg.el,startDelta:t.validMutation.startDelta||p.createDuration(0),endDelta:t.validMutation.endDelta||p.createDuration(0),prevEvent:a,event:new d.default(n,l.defs[i.defId],o?l.instances[o.instanceId]:null),revert:function(){n.dispatch({type:"MERGE_EVENTS",eventStore:s})},jsEvent:e.origEvent,view:r}])):n.publiclyTrigger("_noEventResize"),t.draggingSeg=null,t.relevantEvents=null,t.validMutation=null},this.component=e;var n=this.dragging=new s.default(e.el);n.pointer.selector=".fc-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=e.opt("dragScroll");var a=this.hitDragging=new i.default(this.dragging,e);a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragstart",this.handleDragStart),a.emitter.on("hitupdate",this.handleHitUpdate),a.emitter.on("dragend",this.handleDragEnd)}return e.prototype.destroy=function(){this.dragging.destroy()},e.prototype.querySeg=function(e){return c.getElSeg(a.elementClosest(e.subjectEl,this.component.fgSegSelector))},e}();t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(2),o=n(35),a=n(47),s=function(){function e(e){this.overrides=r.__assign({},e),this.dynamicOverrides={},this.compute()}return e.prototype.add=function(e,t){this.dynamicOverrides[e]=t,this.compute()},e.prototype.compute=function(){var e,t,n,r;e=i.firstDefined(this.dynamicOverrides.locale,this.overrides.locale,o.globalDefaults.locale),t=a.getLocale(e).options,n=i.firstDefined(this.dynamicOverrides.dir,this.overrides.dir,t.dir),r="rtl"===n?o.rtlDefaults:{},this.dirDefaults=r,this.localeDefaults=t,this.computed=o.mergeOptions([o.globalDefaults,r,t,this.overrides,this.dynamicOverrides])},e}();t.default=s},function(e,t,n){function r(e,t){a[e]=t}function i(e){return new a[e]}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),a={};t.registerCalendarSystem=r,t.createCalendarSystem=i,r("gregory",function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return o.arrayToUtcDate(e)},e.prototype.markerToArray=function(e){return o.dateToUtcArray(e)},e}())},function(e,t,n){function r(e,t,n){for(var r=i(e.viewType,t),d=o(e.dateProfile,t,r,n),g=f.default(e.eventSources,t,d,n),v=p.__assign({},e,{viewType:r,dateProfile:d,eventSources:g,eventStore:h.default(e.eventStore,t,g,d,n),dateSelection:a(e.dateSelection,t,n),eventSelection:s(e.eventSelection,t),eventDrag:l(e.eventDrag,t,g,n),eventResize:u(e.eventResize,t,g,n),eventSourceLoadingLevel:c(g),loadingLevel:c(g)}),m=0,y=n.pluginSystem.hooks.reducers;me.fetchRange.end:!e.latestFetchId}function l(e,t,n,r){var i={};for(var o in e){var a=e[o];t[o]?i[o]=u(a,n,r):i[o]=a}return i}function u(e,t,n){var r=f.getEventSourceDef(e.sourceDefId),i=String(v++);return r.fetch({eventSource:e,calendar:n,range:t},function(r){var o,a,s=r.rawEvents,l=n.opt("eventSourceSuccess");e.success&&(a=e.success(s,r.response)),l&&(o=l(s,r.response)),s=a||o||s,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:s})},function(r){var o=n.opt("eventSourceFailure");g.warn(r.message,r),e.failure&&e.failure(r),o&&o(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:r})}),p.__assign({},e,{isFetching:!0,latestFetchId:i})}function d(e,t,n,r){var i,o=e[t];return o&&n===o.latestFetchId?p.__assign({},e,(i={},i[t]=p.__assign({},o,{isFetching:!1,fetchRange:r}),i)):e}function c(e){return h.filterHash(e,function(e){return f.doesSourceNeedRange(e)})}Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),f=n(28),h=n(12),g=n(2);t.default=r;var v=0},function(e,t,n){function r(e){return a.mapHash(e,i)}function i(e){"function"==typeof e&&(e={class:e});var t={},n=o.refineProps(e,s,{},t);return{superType:n.type,class:n.class,options:t}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),a=n(12);t.parseViewConfigs=r;var s={type:String,class:null}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(11),o=n(3),a=n(33),s=n(20),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r._renderLayout=s.memoizeRendering(r.renderLayout,r.unrenderLayout),r._updateTitle=s.memoizeRendering(r.updateTitle,null,[r._renderLayout]),r._updateActiveButton=s.memoizeRendering(r.updateActiveButton,null,[r._renderLayout]),r._updateToday=s.memoizeRendering(r.updateToday,null,[r._renderLayout]),r._updatePrev=s.memoizeRendering(r.updatePrev,null,[r._renderLayout]),r._updateNext=s.memoizeRendering(r.updateNext,null,[r._renderLayout]),r.el=o.createElement("div",{className:"fc-toolbar "+n}),r}return r.__extends(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._renderLayout.unrender(),o.removeElement(this.el)},t.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},t.prototype.renderLayout=function(e){var t=this.el;this.viewsWithButtons=[],o.appendToElement(t,this.renderSection("left",e.left)),o.appendToElement(t,this.renderSection("right",e.right)),o.appendToElement(t,this.renderSection("center",e.center)),o.appendToElement(t,'
')},t.prototype.unrenderLayout=function(){this.el.innerHTML=""},t.prototype.renderSection=function(e,t){var n=this,r=this,a=r.theme,s=r.calendar,l=s.optionsManager,u=s.viewSpecs,d=o.createElement("div",{className:"fc-"+e}),c=l.computed.customButtons||{},p=l.overrides.buttonText||{},f=l.computed.buttonText||{};return t&&t.split(" ").forEach(function(e,t){var r,l=[],h=!0;if(e.split(",").forEach(function(e,t){var r,d,g,v,m,y,E,S,b;if("title"===e)l.push(o.htmlToElement("

 

")),h=!1;else if((r=c[e])?(g=function(e){r.click&&r.click.call(S,e)},(v=a.getCustomButtonIconClass(r))||(v=a.getIconClass(e))||(m=r.text)):(d=u[e])?(n.viewsWithButtons.push(e),g=function(){s.changeView(e)},(m=d.buttonTextOverride)||(v=a.getIconClass(e))||(m=d.buttonTextDefault)):s[e]&&(g=function(){s[e]()},(m=p[e])||(v=a.getIconClass(e))||(m=f[e])),g){E=["fc-"+e+"-button",a.getClass("button"),a.getClass("stateDefault")],m?(y=i.htmlEscape(m),b=""):v&&(y="",b=' aria-label="'+e+'"'),S=o.htmlToElement('");var D=function(){var e=a.getClass("stateActive"),t=a.getClass("stateDisabled");return!(e&&S.classList.contains(e)||t&&S.classList.contains(t))};S.addEventListener("click",function(e){var t=a.getClass("stateDisabled"),n=a.getClass("stateHover");t&&S.classList.contains(t)||(g(e),!D()&&n&&S.classList.remove(n))}),S.addEventListener("mousedown",function(e){var t=a.getClass("stateDown");D()&&t&&S.classList.add(t)}),S.addEventListener("mouseup",function(e){var t=a.getClass("stateDown");t&&S.classList.remove(t)}),S.addEventListener("mouseenter",function(e){var t=a.getClass("stateHover");D()&&t&&S.classList.add(t)}),S.addEventListener("mouseleave",function(e){var t=a.getClass("stateHover"),n=a.getClass("stateDown");t&&S.classList.remove(t),n&&S.classList.remove(n)}),l.push(S)}}),h&&l.length>0){var g=a.getClass("cornerLeft"),v=a.getClass("cornerRight");g&&l[0].classList.add(g),v&&l[l.length-1].classList.add(v)}if(l.length>1){r=document.createElement("div");var m=a.getClass("buttonGroup");h&&m&&r.classList.add(m),o.appendToElement(r,l),d.appendChild(r)}else o.appendToElement(d,l)}),d},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){o.findElements(this.el,"h2").forEach(function(t){t.innerText=e})},t.prototype.updateActiveButton=function(e){var t=this.theme.getClass("stateActive");o.findElements(this.el,"button").forEach(function(n){e&&n.classList.contains("fc-"+e+"-button")?n.classList.add(t):n.classList.remove(t)})},t.prototype.toggleButtonEnabled=function(e,t){var n=this.theme.getClass("stateDisabled");o.findElements(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t,t?e.classList.remove(n):e.classList.add(n)})},t}(a.default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(162),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.attachSegs=function(e,t){this.segsByCol=this.timeGrid.groupSegsByCol(e),this.timeGrid.attachSegsByCol(this.segsByCol,this.timeGrid.mirrorContainerEls),this.sourceSeg=t.sourceSeg},t.prototype.generateSegCss=function(t){var n=e.prototype.generateSegCss.call(this,t),r=this.sourceSeg;if(r&&r.col===t.col){var i=e.prototype.generateSegCss.call(this,r);n.left=i.left,n.right=i.right,n.marginLeft=i.marginLeft,n.marginRight=i.marginRight}return n},t}(i.default);t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(63),o=function(e){function t(t){var n=e.call(this,t.context)||this;return n.timeGrid=t,n}return r.__extends(t,e),t.prototype.attachSegs=function(e,t){var n,r=this.timeGrid;return"bgEvent"===e?n=r.bgContainerEls:"businessHours"===e?n=r.businessContainerEls:"highlight"===e&&(n=r.highlightContainerEls),r.attachSegsByCol(r.groupSegsByCol(t),n),t.map(function(e){return e.el})},t.prototype.computeSegSizes=function(e){this.timeGrid.computeSegVerticals(e)},t.prototype.assignSegSizes=function(e){this.timeGrid.assignSegVerticals(e)},t}(i.default) ;t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(23),o=n(15),a=function(){function e(e){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(e){t.el&&!t.el.contains(e.target)&&t.hide()},this.options=e}return e.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},e.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},e.prototype.render=function(){var e=this,t=this.options,n=this.el=r.createElement("div",{className:"fc-popover "+(t.className||""),style:{top:"0",left:"0"}});"function"==typeof t.content&&t.content(n),t.parentEl.appendChild(n),i.listenBySelector(n,"click",".fc-close",function(t){e.hide()}),t.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},e.prototype.destroy=function(){this.hide(),this.el&&(r.removeElement(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},e.prototype.position=function(){var e,t,n=this.options,i=this.el,a=i.getBoundingClientRect(),s=o.computeRect(i.offsetParent),l=o.computeClippingRect(n.parentEl);e=n.top||0,t=void 0!==n.left?n.left:void 0!==n.right?n.right-a.width:0,e=Math.min(e,l.bottom-a.height-this.margin),e=Math.max(e,l.top+this.margin),t=Math.min(t,l.right-a.width-this.margin),t=Math.max(t,l.left+this.margin),r.applyStyle(i,{top:e-s.top,left:t-s.left})},e.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},e}();t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(164),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.attachSegs=function(e,t){var n=t.sourceSeg,r=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){var o,a,s=i.htmlToElement('
');n&&n.row===t?o=n.el:(o=e.querySelector(".fc-content-skeleton tbody"))||(o=e.querySelector(".fc-content-skeleton table")),a=o.getBoundingClientRect().top-e.getBoundingClientRect().top,s.style.top=a+"px",s.querySelector("table").appendChild(r[t].tbodyEl),e.appendChild(s)})},t}(o.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(63),a=function(e){function t(t){var n=e.call(this,t.context)||this;return n.fillSegTag="td",n.dayGrid=t,n}return r.__extends(t,e),t.prototype.renderSegs=function(t,n){"bgEvent"===t&&(n=n.filter(function(e){return e.eventRange.def.allDay})),e.prototype.renderSegs.call(this,t,n)},t.prototype.attachSegs=function(e,t){var n,r,i,o=[];for(n=0;n
'),o=r.getElementsByTagName("tr")[0],c>0&&o.appendChild(i.createElement("td",{colSpan:c})),t.el.colSpan=p-c,o.appendChild(t.el),p'+a.htmlEscape(i)+'
',this.segContainerEl=this.el.querySelector(".fc-event-container")},t.prototype.prepareHits=function(){var e=u.computeRect(this.el);this.width=e.right-e.left,this.height=e.bottom-e.top,this.offsetTracker=new l.default(this.el)},t.prototype.releaseHits=function(){this.offsetTracker.destroy()},t.prototype.queryHit=function(e,t){var n=this.offsetTracker.computeLeft(),r=this.offsetTracker.computeTop(),i={left:n,right:n+this.width,top:r,bottom:r+this.height};if(d.pointInsideRect({left:e,top:t},i)){var o=this.props.date;return{component:this,dateSpan:{allDay:!0,range:{start:o,end:c.addDays(o,1)}},dayEl:this.el,rect:i,layer:1}}return null},t}(i.default);t.default=h,h.prototype.isInteractable=!0,h.prototype.useEventCenter=!1;var g=function(e){function t(t){var n=e.call(this,t.context)||this;return n.dayTile=t,n}return r.__extends(t,e),t.prototype.attachSegs=function(e){for(var t=0,n=e;t'+(this.displayEventTime?''+(t||"")+"":"")+'"+i.htmlEscape(u.title||"")+""},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},t}(o.default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(34),i=n(172),o=n(35),a=function(){function e(e,t){void 0===t&&(t={});var n=this;this.handlePointerDown=function(e){var t=n.dragging,r=n.settings,i=r.minDistance,a=r.longPressDelay;t.minDistance=null!=i?i:e.isTouch?0:o.globalDefaults.eventDragMinDistance,t.delay=e.isTouch?null!=a?a:o.globalDefaults.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-selected")},this.settings=t;var a=this.dragging=new r.default(e);a.touchScrollAllowed=!1,null!=t.itemSelector&&(a.pointer.selector=t.itemSelector),null!=t.appendTo&&(a.mirror.parentNode=t.appendTo),a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragstart",this.handleDragStart),new i.default(a,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}();t.default=a},function(e,t,n){function r(e){var t={},n=o.refineProps(e,a,s,t);return n.leftoverProps=t,n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=n(2),a={startTime:i.createDuration,duration:i.createDuration,create:Boolean,sourceId:String},s={create:!0};t.parseDragMeta=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(172),i=n(213),o=function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var o=this.dragging=new i.default(n);"string"==typeof t.itemSelector?o.pointer.selector=t.itemSelector:n===document&&(o.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(o.mirrorSelector=t.mirrorSelector),new r.default(o,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(45),o=n(61),a=function(e){function t(t){var n=e.call(this)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new i.default(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return r.__extends(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(o.default);t.default=a},function(e,t,n){function r(e,t){void 0===t&&(t={});var n=o(t),r=l.createFormatter(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""}function i(e,t,n){var r=o("object"==typeof n&&n?n:{}),i=l.createFormatter(n,d.globalDefaults.defaultRangeSeparator),a=r.createMarkerMeta(e),s=r.createMarkerMeta(t);return a&&s?r.formatRange(a.marker,s.marker,i,{forcedStartTzo:a.forcedTzo,forcedEndTzo:s.forcedTzo,isEndExclusive:n.isEndExclusive}):""}function o(e){var t=e.locale||d.globalDefaults.locale;return e=a.__assign({timeZone:d.globalDefaults.timeZone,timeZoneImpl:d.globalDefaults.timeZoneImpl,calendarSystem:"gregory"},e,{locale:u.getLocale(t)}),new s.DateEnv(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(62),l=n(7),u=n(47),d=n(35);t.formatDate=r,t.formatRange=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),i=n(147),o=n(148),a=n(218),s=n(219);r.defineThemeSystem("standard",i.default),r.defineThemeSystem("jquery-ui",o.default),r.defineThemeSystem("bootstrap3",a.default),r.defineThemeSystem("bootstrap4",s.default)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(32),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(i.default);t.default=o,o.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},o.prototype.baseIconClass="glyphicon",o.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},o.prototype.iconOverrideOption="bootstrapGlyphicons",o.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",o.prototype.iconOverridePrefix="glyphicon-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(32),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(i.default);t.default=o,o.prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},o.prototype.baseIconClass="fa",o.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},o.prototype.iconOverrideOption="bootstrapFontAwesome",o.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",o.prototype.iconOverridePrefix="fa-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(28).registerEventSourceDef({ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(145);n(28).registerEventSourceDef({parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var i=e.calendar.dateEnv,o=e.eventSource.meta;r.unpromisify(o.bind(null,{start:i.toDate(e.range.start),end:i.toDate(e.range.end),startStr:i.formatIso(e.range.start),endStr:i.formatIso(e.range.end),timeZone:i.timeZone}),function(e){t({rawEvents:e})},n)}})},function(e,t,n){function r(e,t,n){var r,i,o,s,l=n.dateEnv,u={};return r=e.startParam,null==r&&(r=n.opt("startParam")),i=e.endParam,null==i&&(i=n.opt("endParam")),o=e.timeZoneParam,null==o&&(o=n.opt("timeZoneParam")),s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},a.__assign(u,s),u[r]=l.formatIso(t.start),u[i]=l.formatIso(t.end),"local"!==l.timeZone&&(u[o]=l.timeZone),u}Object.defineProperty(t,"__esModule",{value:!0});var i=n(69),o=n(28),a=n(1);o.registerEventSourceDef({parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.data,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var o,a=e.eventSource.meta,s=r(a,e.range,e.calendar);o="GET"===a.method?i.get(a.url).query(s):i(a.method,a.url).send(s),o.end(function(e,r){var i;e?n(e):(r.body?i=r.body:r.text&&(i=JSON.parse(r.text)),i?t({rawEvents:i,response:r}):n({message:"Invalid JSON response",response:r}))})}})},function(e,t,n){function r(e,t,n,r,o){r=u.intersectRanges(r,n);for(var s=e?a.arrayToHash(e):null,l=i.startOfDay(r.start),d=r.end,c=[];l