ninefolio/public/build/2.5f578333.js

59 lines
198 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"/b8u":function(e,t,n){"use strict";var r=n("BPiQ");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"07d7":function(e,t,n){"use strict";var r=n("AO7/"),i=n("yy0I"),o=n("sEFX");r||i(Object.prototype,"toString",o,{unsafe:!0})},"0BK2":function(e,t,n){"use strict";e.exports={}},"0Dky":function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},"0GbY":function(e,t,n){"use strict";var r=n("2oRo"),i=n("Fib7"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},"2bX/":function(e,t,n){"use strict";var r=n("0GbY"),i=n("Fib7"),o=n("OpvP"),s=n("/b8u"),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},"2oRo":function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("yLpj"))},"3Eq5":function(e,t,n){"use strict";var r=n("We1y"),i=n("cjT7");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},"4zBA":function(e,t,n){"use strict";var r=n("QNWe"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},"93I0":function(e,t,n){"use strict";var r=n("VpIT"),i=n("kOOl"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"9d/t":function(e,t,n){"use strict";var r=n("AO7/"),i=n("Fib7"),o=n("xrYK"),s=n("tiKp")("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},"9mV6":function(e,t,n){e.exports=function(){"use strict";return{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekLabel:"Sem.",allDayHtml:"Toute la<br/>journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"}}()},"AO7/":function(e,t,n){"use strict";var r={};r[n("tiKp")("toStringTag")]="z",e.exports="[object z]"===String(r)},BPiQ:function(e,t,n){"use strict";var r=n("LQDL"),i=n("0Dky"),o=n("2oRo").String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},DPsx:function(e,t,n){"use strict";var r=n("g6v/"),i=n("0Dky"),o=n("zBJ4");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},DQNa:function(e,t,n){"use strict";var r=n("4zBA"),i=n("yy0I"),o=Date.prototype,s=r(o.toString),a=r(o.getTime);"Invalid Date"!==String(new Date(NaN))&&i(o,"toString",(function(){var e=a(this);return e==e?s(this):"Invalid Date"}))},DVFp:function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},E9LY:function(e,t,n){"use strict";var r=n("4zBA"),i=n("0Dky"),o=n("Fib7"),s=n("Gi26"),a=n("g6v/"),l=n("Xnc8").CONFIGURABLE,u=n("iSVu"),c=n("afO8"),d=c.enforce,p=c.get,f=String,h=Object.defineProperty,v=r("".slice),g=r("".replace),y=r([].join),m=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),E=e.exports=function(e,t,n){"Symbol("===v(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&s(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return s(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=E((function(){return o(this)&&p(this).source||u(this)}),"toString")},Fib7:function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},Gbwi:function(e,t,n){"use strict";var r=n("SZB9"),i=function(e,t){return(i=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])})(e,t)};
/*!
FullCalendar Interaction Plugin v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};r.J.touchMouseIgnoreWait=500;var a=0,l=0,u=!1,c=function(){function e(e){var t=this;this.subjectEl=null,this.downEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,a++,setTimeout((function(){a--}),r.J.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new r.i,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),l++||window.addEventListener("touchmove",d,{passive:!1})}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),--l||window.removeEventListener("touchmove",d,{passive:!1})},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Object(r.X)(n,this.handleSelector))&&(this.subjectEl=t,this.downEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){u=!1,this.isDragging=!1,this.subjectEl=null,this.downEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?Object(r.X)(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return a||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(u=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,i=e.touches,o=0,s=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,s=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:s}},e}();function d(e){u&&e.preventDefault()}var p=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",Object(r.z)(n,{left:i.left,top:i.top}),Object(r.Kb)(n,(function(){n.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&(Object(r.Fb)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&Object(r.z)(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-dragging"),Object(r.z)(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}(),f=function(e){function t(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return o(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(r.p),h=function(e){function t(t,n){return e.call(this,new r.h(t),n)||this}return o(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return Object(r.H)(this.scrollController.el)},t}(f),v=function(e){function t(t){return e.call(this,new r.s,t)||this}return o(t,e),t.prototype.getEventTarget=function(){return window},t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(f),g="function"==typeof performance?performance.now:Date.now,y=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=g();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,i=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(g()))}},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 n=e.scrollCache,r=this.edgeThreshold,i=r-e.distance,o=i*i/(r*r)*this.maxVelocity*t,s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*s)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,i=0,o=this.scrollCaches;i<o.length;i++){var s=o[i],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<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"top",distance:c}),d<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:s,name:"bottom",distance:d}),l<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:s,name:"left",distance:l}),u<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:s,name:"right",distance:u}))}return r},e.prototype.buildCaches=function(){return this.queryScrollEls().map((function(e){return e===window?new v(!1):new h(e,!1)}))},e.prototype.queryScrollEls=function(){for(var e=[],t=0,n=this.scrollQuery;t<n.length;t++){var r=n[t];"object"==typeof r?e.push(r):e.push.apply(e,Array.prototype.slice.call(document.querySelectorAll(r)))}return e},e}(),m=function(e){function t(t){var n=e.call(this,t)||this;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,Object(r.Cb)(document.body),Object(r.Bb)(document.body),e.isTouch||e.origEvent.preventDefault(),n.emitter.trigger("pointerdown",e),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,i=e.deltaY;r*r+i*i>=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,Object(r.w)(document.body),Object(r.v)(document.body),n.emitter.trigger("pointerup",e),n.isDragging&&(n.autoScroller.stop(),n.tryStopDrag(e)),n.delayTimeoutId&&(clearTimeout(n.delayTimeoutId),n.delayTimeoutId=null))};var i=n.pointer=new c(t);return i.emitter.on("pointerdown",n.onPointerDown),i.emitter.on("pointermove",n.onPointerMove),i.emitter.on("pointerup",n.onPointerUp),n.mirror=new p,n.autoScroller=new y,n}return o(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.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(r.g),b=function(){function e(e){this.origRect=Object(r.I)(e),this.scrollCaches=Object(r.db)(e).map((function(e){return new h(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n,i,o={left:e,top:t},s=0,a=this.scrollCaches;s<a.length;s++){var l=a[s];if(n=l.getEventTarget(),i=void 0,"HTML"!==(i=n.tagName)&&"BODY"!==i&&!Object(r.zb)(o,l.clientRect))return!1}return!0},e}();var E=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new r.i}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},i=n,o=e.subjectEl;o!==document&&(t=Object(r.I)(o),i=Object(r.K)(i,t));var s=this.initialHit=this.queryHitForOffset(i.left,i.top);if(s){if(this.useSubjectCenter&&t){var a=Object(r.pb)(t,s.rect);a&&(i=Object(r.gb)(a))}this.coordAdjust=Object(r.T)(i,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&S(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=Object(r.tb)(this.droppableStore,(function(e){return e.component.buildPositionCaches(),new b(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this.droppableStore,i=this.offsetTrackers,o=null;for(var s in n){var a=n[s].component,l=i[s];if(l.isWithinClipping(e,t)){var u=l.computeLeft(),c=l.computeTop(),d=e-u,p=t-c,f=l.origRect,h=f.right-f.left,v=f.bottom-f.top;if(d>=0&&d<h&&p>=0&&p<v){var g=a.queryHit(d,p,h,v);!g||a.props.dateProfile&&!Object(r.Eb)(a.props.dateProfile.activeRange,g.dateSpan.range)||o&&!(g.layer>o.layer)||(g.rect.left+=u,g.rect.right+=u,g.rect.top+=c,g.rect.bottom+=c,o=g)}}}return o},e}();function S(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Object(r.qb)(e.dateSpan,t.dateSpan)}var w=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging;t.setIgnoreMove(!n.component.isValidDateDownEl(t.pointer.downEl))},n.handleDragEnd=function(e){var t=n.component.context,r=t.calendar,i=t.view;if(!n.dragging.pointer.wasTouchScroll){var o=n.hitDragging,s=o.initialHit,a=o.finalHit;s&&a&&S(s,a)&&r.triggerDateClick(s.dateSpan,s.dayEl,i,e.origEvent)}};var i=t.component;n.dragging=new m(i.el),n.dragging.autoScroller.isEnabled=!1;var o=n.hitDragging=new E(n.dragging,Object(r.nb)(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragend",n.handleDragEnd),n}return o(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r.m),D=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,i=t.dragging,o=r.context.options.selectable&&r.isValidDateDownEl(e.origEvent.target);i.setIgnoreMove(!o),i.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(r):null},n.handleDragStart=function(e){n.component.context.calendar.unselect(e)},n.handleHitUpdate=function(e,t){var i=n.component.context.calendar,o=null,a=!1;e&&((o=function(e,t,n){var i=e.dateSpan,o=t.dateSpan,a=[i.range.start,i.range.end,o.range.start,o.range.end];a.sort(r.B);for(var l={},u=0,c=n;u<c.length;u++){var d=(0,c[u])(e,t);if(!1===d)return null;d&&s(l,d)}return l.range={start:a[0],end:a[3]},l.allDay=i.allDay,l}(n.hitDragging.initialHit,e,i.pluginSystem.hooks.dateSelectionTransformers))&&n.component.isDateSelectionValid(o)||(a=!0,o=null)),o?i.dispatch({type:"SELECT_DATES",selection:o}):t||i.dispatch({type:"UNSELECT_DATES"}),a?Object(r.V)():Object(r.Z)(),t||(n.dragSelection=o)},n.handlePointerUp=function(e){n.dragSelection&&(n.component.context.calendar.triggerDateSelect(n.dragSelection,e),n.dragSelection=null)};var i=t.component,o=i.context.options,a=n.dragging=new m(i.el);a.touchScrollAllowed=!1,a.minDistance=o.selectMinDistance||0,a.autoScroller.isEnabled=o.dragScroll;var l=n.hitDragging=new E(n.dragging,Object(r.nb)(t));return l.emitter.on("pointerdown",n.handlePointerDown),l.emitter.on("dragstart",n.handleDragStart),l.emitter.on("hitupdate",n.handleHitUpdate),l.emitter.on("pointerup",n.handlePointerUp),n}return o(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(r.m);var T=function(e){function t(n){var i=e.call(this,n)||this;i.subjectSeg=null,i.isDragging=!1,i.eventRange=null,i.relevantEvents=null,i.receivingCalendar=null,i.validMutation=null,i.mutatedRelevantEvents=null,i.handlePointerDown=function(e){var t=e.origEvent.target,n=i,o=n.component,s=n.dragging,a=s.mirror,l=o.context.options,u=o.context.calendar,c=i.subjectSeg=Object(r.fb)(e.subjectEl),d=(i.eventRange=c.eventRange).instance.instanceId;i.relevantEvents=Object(r.hb)(u.state.eventStore,d),s.minDistance=e.isTouch?0:l.eventDragMinDistance,s.delay=e.isTouch&&d!==o.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(o):null,a.parentNode=u.el,a.revertDuration=l.dragRevertDuration;var p=o.isValidSegDownEl(t)&&!Object(r.X)(t,".fc-resizer");s.setIgnoreMove(!p),i.isDragging=p&&e.subjectEl.classList.contains("fc-draggable")},i.handleDragStart=function(e){var t=i.component.context,n=t.calendar,o=i.eventRange,s=o.instance.instanceId;e.isTouch?s!==i.component.props.eventSelection&&n.dispatch({type:"SELECT_EVENT",eventInstanceId:s}):n.dispatch({type:"UNSELECT_EVENT"}),i.isDragging&&(n.unselect(e),n.publiclyTrigger("eventDragStart",[{el:i.subjectSeg.el,event:new r.j(n,o.def,o.instance),jsEvent:e.origEvent,view:t.view}]))},i.handleHitUpdate=function(e,t){if(i.isDragging){var n=i.relevantEvents,o=i.hitDragging.initialHit,s=i.component.context.calendar,a=null,l=null,u=null,c=!1,d={affectedEvents:n,mutatedEvents:Object(r.N)(),isEvent:!0,origSeg:i.subjectSeg};if(e){var p=e.component;a=p.context.calendar;var f=p.context.options;s===a||f.editable&&f.droppable?(l=function(e,t,n){var i=e.dateSpan,o=t.dateSpan,s=i.range.start,a=o.range.start,l={};i.allDay!==o.allDay&&(l.allDay=o.allDay,l.hasEnd=t.component.context.options.allDayMaintainDuration,o.allDay&&(s=Object(r.Gb)(s)));var u=Object(r.S)(s,a,e.component.context.dateEnv,e.component===t.component?e.component.largeUnit:null);u.milliseconds&&(l.allDay=!1);for(var c={datesDelta:u,standardProps:l},d=0,p=n;d<p.length;d++){(0,p[d])(c,e,t)}return c}(o,e,a.pluginSystem.hooks.eventDragMutationMassagers))&&(u=Object(r.y)(n,a.eventUiBases,l,a),d.mutatedEvents=u,p.isInteractionValid(d)||(c=!0,l=null,u=null,d.mutatedEvents=Object(r.N)())):a=null}i.displayDrag(a,d),c?Object(r.V)():Object(r.Z)(),t||(s===a&&S(o,e)&&(l=null),i.dragging.setMirrorNeedsRevert(!l),i.dragging.setMirrorIsVisible(!e||!document.querySelector(".fc-mirror")),i.receivingCalendar=a,i.validMutation=l,i.mutatedRelevantEvents=u)}},i.handlePointerUp=function(){i.isDragging||i.cleanup()},i.handleDragEnd=function(e){if(i.isDragging){var t=i.component.context,n=t.calendar,o=t.view,a=i,l=a.receivingCalendar,u=a.validMutation,c=i.eventRange.def,d=i.eventRange.instance,p=new r.j(n,c,d),f=i.relevantEvents,h=i.mutatedRelevantEvents,v=i.hitDragging.finalHit;if(i.clearDrag(),n.publiclyTrigger("eventDragStop",[{el:i.subjectSeg.el,event:p,jsEvent:e.origEvent,view:o}]),u){if(l===n){n.dispatch({type:"MERGE_EVENTS",eventStore:h});for(var g={},y=0,m=n.pluginSystem.hooks.eventDropTransformers;y<m.length;y++){var b=m[y];s(g,b(u,n))}var E=s({},g,{el:e.subjectEl,delta:u.datesDelta,oldEvent:p,event:new r.j(n,h.defs[c.defId],d?h.instances[d.instanceId]:null),revert:function(){n.dispatch({type:"MERGE_EVENTS",eventStore:f})},jsEvent:e.origEvent,view:o});n.publiclyTrigger("eventDrop",[E])}else if(l){n.publiclyTrigger("eventLeave",[{draggedEl:e.subjectEl,event:p,view:o}]),n.dispatch({type:"REMOVE_EVENT_INSTANCES",instances:i.mutatedRelevantEvents.instances}),l.dispatch({type:"MERGE_EVENTS",eventStore:i.mutatedRelevantEvents}),e.isTouch&&l.dispatch({type:"SELECT_EVENT",eventInstanceId:d.instanceId});var S=s({},l.buildDatePointApi(v.dateSpan),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:v.component});l.publiclyTrigger("drop",[S]),l.publiclyTrigger("eventReceive",[{draggedEl:e.subjectEl,event:new r.j(l,h.defs[c.defId],h.instances[d.instanceId]),view:v.component}])}}else n.publiclyTrigger("_noEventDrop")}i.cleanup()};var o=i.component,a=o.context.options,l=i.dragging=new m(o.el);l.pointer.selector=t.SELECTOR,l.touchScrollAllowed=!1,l.autoScroller.isEnabled=a.dragScroll;var u=i.hitDragging=new E(i.dragging,r.mb);return u.useSubjectCenter=n.useEventCenter,u.emitter.on("pointerdown",i.handlePointerDown),u.emitter.on("dragstart",i.handleDragStart),u.emitter.on("hitupdate",i.handleHitUpdate),u.emitter.on("pointerup",i.handlePointerUp),u.emitter.on("dragend",i.handleDragEnd),i}return o(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context.calendar,i=this.receivingCalendar;i&&i!==e&&(i===n?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:Object(r.N)(),isEvent:!0,origSeg:t.origSeg}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context.calendar,t=this.receivingCalendar;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.receivingCalendar=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-draggable, .fc-resizable",t}(r.m);var R=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,r=n.querySeg(e),i=n.eventRange=r.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==i.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,i=t.calendar,o=t.view,s=n.eventRange;n.relevantEvents=Object(r.hb)(i.state.eventStore,n.eventRange.instance.instanceId),n.draggingSeg=n.querySeg(e),i.unselect(),i.publiclyTrigger("eventResizeStart",[{el:n.draggingSeg.el,event:new r.j(i,s.def,s.instance),jsEvent:e.origEvent,view:o}])},n.handleHitUpdate=function(e,t,i){var o=n.component.context.calendar,a=n.relevantEvents,l=n.hitDragging.initialHit,u=n.eventRange.instance,c=null,d=null,p=!1,f={affectedEvents:a,mutatedEvents:Object(r.N)(),isEvent:!0,origSeg:n.draggingSeg};e&&(c=function(e,t,n,i,o){for(var a=e.component.context.dateEnv,l=e.dateSpan.range.start,u=t.dateSpan.range.start,c=Object(r.S)(l,u,a,e.component.largeUnit),d={},p=0,f=o;p<f.length;p++){var h=(0,f[p])(e,t);if(!1===h)return null;h&&s(d,h)}if(n){if(a.add(i.start,c)<i.end)return d.startDelta=c,d}else if(a.add(i.end,c)>i.start)return d.endDelta=c,d;return null}(l,e,i.subjectEl.classList.contains("fc-start-resizer"),u.range,o.pluginSystem.hooks.eventResizeJoinTransforms)),c&&(d=Object(r.y)(a,o.eventUiBases,c,o),f.mutatedEvents=d,n.component.isInteractionValid(f)||(p=!0,c=null,d=null,f.mutatedEvents=null)),d?o.dispatch({type:"SET_EVENT_RESIZE",state:f}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),p?Object(r.V)():Object(r.Z)(),t||(c&&S(l,e)&&(c=null),n.validMutation=c,n.mutatedRelevantEvents=d)},n.handleDragEnd=function(e){var t=n.component.context,i=t.calendar,o=t.view,s=n.eventRange.def,a=n.eventRange.instance,l=new r.j(i,s,a),u=n.relevantEvents,c=n.mutatedRelevantEvents;i.publiclyTrigger("eventResizeStop",[{el:n.draggingSeg.el,event:l,jsEvent:e.origEvent,view:o}]),n.validMutation?(i.dispatch({type:"MERGE_EVENTS",eventStore:c}),i.publiclyTrigger("eventResize",[{el:n.draggingSeg.el,startDelta:n.validMutation.startDelta||Object(r.L)(0),endDelta:n.validMutation.endDelta||Object(r.L)(0),prevEvent:l,event:new r.j(i,c.defs[s.defId],a?c.instances[a.instanceId]:null),revert:function(){i.dispatch({type:"MERGE_EVENTS",eventStore:u})},jsEvent:e.origEvent,view:o}])):i.publiclyTrigger("_noEventResize"),n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var i=t.component,o=n.dragging=new m(i.el);o.pointer.selector=".fc-resizer",o.touchScrollAllowed=!1,o.autoScroller.isEnabled=i.context.options.dragScroll;var a=n.hitDragging=new E(n.dragging,Object(r.nb)(t));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("dragend",n.handleDragEnd),n}return o(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySeg=function(e){return Object(r.fb)(Object(r.X)(e.subjectEl,this.component.fgSegSelector))},t}(r.m);var C=function(){function e(e){var t=this;this.isRecentPointerDateSelect=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerUp=function(e){var n=t,i=n.calendar,o=n.documentPointer,s=i.state;if(!o.wasTouchScroll){if(s.dateSelection&&!t.isRecentPointerDateSelect){var a=i.viewOpt("unselectAuto"),l=i.viewOpt("unselectCancel");!a||a&&Object(r.X)(o.downEl,l)||i.unselect(e)}s.eventSelection&&!Object(r.X)(o.downEl,T.SELECTOR)&&i.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1},this.calendar=e;var n=this.documentPointer=new c(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerup",this.onDocumentPointerUp),e.on("select",this.onSelect)}return e.prototype.destroy=function(){this.calendar.off("select",this.onSelect),this.documentPointer.destroy()},e}(),O=function(){function e(e,t){var n=this;this.receivingCalendar=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,i){var o=n.hitDragging.dragging,a=null,l=null,u=!1,c={affectedEvents:Object(r.N)(),mutatedEvents:Object(r.N)(),isEvent:n.dragMeta.create,origSeg:null};e&&(a=e.component.context.calendar,n.canDropElOnCalendar(i.subjectEl,a)&&(l=function(e,t,n){for(var i=s({},t.leftoverProps),o=0,a=n.pluginSystem.hooks.externalDefTransforms;o<a.length;o++){var l=a[o];s(i,l(e,t))}var u=Object(r.yb)(i,t.sourceId,e.allDay,n.opt("forceEventDuration")||Boolean(t.duration),n),c=e.range.start;e.allDay&&t.startTime&&(c=n.dateEnv.add(c,t.startTime));var d=t.duration?n.dateEnv.add(c,t.duration):n.getDefaultEventEnd(e.allDay,c),p=Object(r.O)(u.defId,{start:c,end:d});return{def:u,instance:p}}(e.dateSpan,n.dragMeta,a),c.mutatedEvents=Object(r.ab)(l),(u=!Object(r.rb)(c,a))&&(c.mutatedEvents=Object(r.N)(),l=null))),n.displayDrag(a,c),o.setMirrorIsVisible(t||!l||!document.querySelector(".fc-mirror")),u?Object(r.V)():Object(r.Z)(),t||(o.setMirrorNeedsRevert(!l),n.receivingCalendar=a,n.droppableEvent=l)},this.handleDragEnd=function(e){var t=n,i=t.receivingCalendar,o=t.droppableEvent;if(n.clearDrag(),i&&o){var a=n.hitDragging.finalHit,l=a.component.context.view,u=n.dragMeta,c=s({},i.buildDatePointApi(a.dateSpan),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:l});i.publiclyTrigger("drop",[c]),u.create&&(i.dispatch({type:"MERGE_EVENTS",eventStore:Object(r.ab)(o)}),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instance.instanceId}),i.publiclyTrigger("eventReceive",[{draggedEl:e.subjectEl,event:new r.j(i,o.def,o.instance),view:l}]))}n.receivingCalendar=null,n.droppableEvent=null};var i=this.hitDragging=new E(e,r.mb);i.requireInitial=!1,i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?Object(r.xb)(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?Object(r.xb)(this.suppliedDragMeta(e)):(t=function(e,t){var n=r.J.dataAttrPrefix,i=(n?n+"-":"")+t;return e.getAttribute("data-"+i)||""}(e,"event"),n=t?JSON.parse(t):{create:!1},Object(r.xb)(n));var t,n},e.prototype.displayDrag=function(e,t){var n=this.receivingCalendar;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingCalendar&&this.receivingCalendar.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.opt("dropAccept");return"function"==typeof n?n(e):"string"!=typeof n||!n||Boolean(Object(r.Y)(e,n))},e}();r.J.dataAttrPrefix="";!function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,i=n.settings,o=i.minDistance,s=i.longPressDelay;t.minDistance=null!=o?o:e.isTouch?0:r.ib.eventDragMinDistance,t.delay=e.isTouch?null!=s?s:r.ib.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 i=this.dragging=new m(e);i.touchScrollAllowed=!1,null!=t.itemSelector&&(i.pointer.selector=t.itemSelector),null!=t.appendTo&&(i.mirror.parentNode=t.appendTo),i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),new O(i,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}();var I=function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new c(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return o(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(r.g),M=(function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var r=this.dragging=new I(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new O(r,t.eventData)}e.prototype.destroy=function(){this.dragging.destroy()}}(),Object(r.Q)({componentInteractions:[w,D,T,R],calendarInteractions:[C],elementDraggingImpl:m}));t.a=M},Gi26:function(e,t,n){"use strict";var r=n("4zBA"),i=n("ewvW"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},HYAF:function(e,t,n){"use strict";var r=n("cjT7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},JfAA:function(e,t,n){"use strict";var r=n("Xnc8").PROPER,i=n("yy0I"),o=n("glrk"),s=n("V37c"),a=n("0Dky"),l=n("kNi0"),u=RegExp.prototype,c=u.toString,d=a((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),p=r&&"toString"!==c.name;(d||p)&&i(u,"toString",(function(){var e=o(this);return"/"+s(e.source)+"/"+s(l(e))}),{unsafe:!0})},LQDL:function(e,t,n){"use strict";var r,i,o=n("2oRo"),s=n("NC/Y"),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},"NC/Y":function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},OpvP:function(e,t,n){"use strict";var r=n("4zBA");e.exports=r({}.isPrototypeOf)},QNWe:function(e,t,n){"use strict";var r=n("0Dky");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},SFrS:function(e,t,n){"use strict";var r=n("xluM"),i=n("Fib7"),o=n("hh1v"),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e)))return a;if(i(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},SZB9:function(e,t,n){"use strict";n.d(t,"a",(function(){return Yr})),n.d(t,"b",(function(){return jn})),n.d(t,"c",(function(){return gr})),n.d(t,"d",(function(){return ai})),n.d(t,"e",(function(){return li})),n.d(t,"f",(function(){return ui})),n.d(t,"g",(function(){return ni})),n.d(t,"h",(function(){return Cn})),n.d(t,"i",(function(){return Sn})),n.d(t,"j",(function(){return Ot})),n.d(t,"k",(function(){return $r})),n.d(t,"l",(function(){return ti})),n.d(t,"m",(function(){return Vr})),n.d(t,"n",(function(){return Tn})),n.d(t,"o",(function(){return In})),n.d(t,"p",(function(){return Rn})),n.d(t,"q",(function(){return ci})),n.d(t,"r",(function(){return Kr})),n.d(t,"s",(function(){return On})),n.d(t,"t",(function(){return W})),n.d(t,"u",(function(){return F})),n.d(t,"v",(function(){return De})),n.d(t,"w",(function(){return Se})),n.d(t,"x",(function(){return u})),n.d(t,"y",(function(){return Vt})),n.d(t,"z",(function(){return S})),n.d(t,"A",(function(){return bn})),n.d(t,"B",(function(){return Oe})),n.d(t,"C",(function(){return pe})),n.d(t,"D",(function(){return L})),n.d(t,"E",(function(){return Ht})),n.d(t,"F",(function(){return zt})),n.d(t,"G",(function(){return Lt})),n.d(t,"H",(function(){return x})),n.d(t,"I",(function(){return j})),n.d(t,"J",(function(){return Yn})),n.d(t,"K",(function(){return R})),n.d(t,"L",(function(){return oe})),n.d(t,"M",(function(){return o})),n.d(t,"N",(function(){return Ke})),n.d(t,"O",(function(){return fn})),n.d(t,"P",(function(){return wt})),n.d(t,"Q",(function(){return Nn})),n.d(t,"R",(function(){return $t})),n.d(t,"S",(function(){return Ne})),n.d(t,"T",(function(){return O})),n.d(t,"U",(function(){return G})),n.d(t,"V",(function(){return he})),n.d(t,"W",(function(){return ge})),n.d(t,"X",(function(){return g})),n.d(t,"Y",(function(){return y})),n.d(t,"Z",(function(){return ve})),n.d(t,"ab",(function(){return Xe})),n.d(t,"bb",(function(){return b})),n.d(t,"cb",(function(){return m})),n.d(t,"db",(function(){return H})),n.d(t,"eb",(function(){return En})),n.d(t,"fb",(function(){return kt})),n.d(t,"gb",(function(){return C})),n.d(t,"hb",(function(){return Je})),n.d(t,"ib",(function(){return Gn})),n.d(t,"jb",(function(){return Kt})),n.d(t,"kb",(function(){return s})),n.d(t,"lb",(function(){return d})),n.d(t,"mb",(function(){return Ar})),n.d(t,"nb",(function(){return Ur})),n.d(t,"ob",(function(){return it})),n.d(t,"pb",(function(){return T})),n.d(t,"qb",(function(){return Cr})),n.d(t,"rb",(function(){return Yt})),n.d(t,"sb",(function(){return V})),n.d(t,"tb",(function(){return Fe})),n.d(t,"ub",(function(){return me})),n.d(t,"vb",(function(){return ct})),n.d(t,"wb",(function(){return gn})),n.d(t,"xb",(function(){return oi})),n.d(t,"yb",(function(){return pn})),n.d(t,"zb",(function(){return D})),n.d(t,"Ab",(function(){return c})),n.d(t,"Bb",(function(){return we})),n.d(t,"Cb",(function(){return Ee})),n.d(t,"Db",(function(){return lt})),n.d(t,"Eb",(function(){return at})),n.d(t,"Fb",(function(){return f})),n.d(t,"Gb",(function(){return q})),n.d(t,"Hb",(function(){return be})),n.d(t,"Ib",(function(){return fe})),n.d(t,"Jb",(function(){return ye})),n.d(t,"Kb",(function(){return A}));
/*!
FullCalendar Core Package v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
var r={className:!0,colSpan:!0,rowSpan:!0},i={"<tr":"tbody","<td":"tr"};function o(e,t,n){var i=document.createElement(e);if(t)for(var o in t)"style"===o?S(i,t[o]):r[o]?i[o]=t[o]:i.setAttribute(o,t[o]);return"string"==typeof n?i.innerHTML=n:null!=n&&u(i,n),i}function s(e){e=e.trim();var t=document.createElement(l(e));return t.innerHTML=e,t.firstChild}function a(e){return Array.prototype.slice.call(function(e){e=e.trim();var t=document.createElement(l(e));return t.innerHTML=e,t.childNodes}(e))}function l(e){return i[e.substr(0,3)]||"div"}function u(e,t){for(var n=p(t),r=0;r<n.length;r++)e.appendChild(n[r])}function c(e,t){for(var n=p(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}function d(e,t){for(var n=p(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)}function p(e){return"string"==typeof e?a(e):e instanceof Node?[e]:Array.prototype.slice.call(e)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}var h=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,v=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(y(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function g(e,t){return v.call(e,t)}function y(e,t){return h.call(e,t)}function m(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(t),s=0;s<o.length;s++)r.push(o[s]);return r}function b(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].children,s=0;s<o.length;s++){var a=o[s];t&&!y(a,t)||r.push(a)}return r}var E=/(top|left|right|bottom|width|height)$/i;function S(e,t){for(var n in t)w(e,n,t[n])}function w(e,t,n){null==n?e.style[t]="":"number"==typeof n&&E.test(t)?e.style[t]=n+"px":e.style[t]=n}function D(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function T(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function R(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function C(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function O(e,t){return{left:e.left-t.left,top:e.top-t.top}}var I=null;function M(){return null===I&&(I=function(){var e=o("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return f(e),t}()),I}function P(e){return e=Math.max(0,e),e=Math.round(e)}function k(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=P(e.offsetWidth-e.clientWidth-r-i),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:P(e.offsetHeight-e.clientHeight-o-s),scrollbarLeft:0,scrollbarRight:0};return M()&&"rtl"===n.direction?l.scrollbarLeft=a:l.scrollbarRight=a,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function x(e,t){void 0===t&&(t=!1);var n=j(e),r=k(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function j(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function _(e){return e.getBoundingClientRect().height+N(e)}function N(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function H(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function L(e){return H(e).map((function(e){return x(e)})).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce((function(e,t){return T(e,t)||t}))}function z(e){e.preventDefault()}function V(e,t,n,r){function i(e){var t=g(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var U=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function A(e,t){var n=function(r){t(r),U.forEach((function(t){e.removeEventListener(t,n)}))};U.forEach((function(t){e.addEventListener(t,n)}))}var B=["sun","mon","tue","wed","thu","fri","sat"];function F(e,t){var n=ee(e);return n[2]+=7*t,te(n)}function W(e,t){var n=ee(e);return n[2]+=t,te(n)}function Y(e,t){var n=ee(e);return n[6]+=t,te(n)}function G(e,t){return Z(e,t)/7}function Z(e,t){return(t.valueOf()-e.valueOf())/864e5}function X(e,t){return re(e)===re(t)?Math.round(Z(e,t)):null}function q(e){return te([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function J(e,t,n,r){var i=te([t,0,1+Q(t,n,r)]),o=q(e),s=Math.round(Z(i,o));return Math.floor(s/7)+1}function Q(e,t,n){var r=7+t-n;return-((7+te([e,0,r]).getUTCDay()-t)%7)+r-1}function K(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function $(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 ee(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function te(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function ne(e){return!isNaN(e.valueOf())}function re(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var ie=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function oe(e,t){var n;return"string"==typeof e?function(e){var t=ie.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?se(e):"number"==typeof e?se(((n={})[t||"milliseconds"]=e,n)):null}function se(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*ae(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 ae(e){return e.weeks||e.week||0}function le(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function ue(e){return ce(e)/864e5}function ce(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function de(e,t){var n=e.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function pe(e,t){t.left&&S(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&S(e,{borderRightWidth:1,marginRight:t.right-1})}function fe(e){S(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function he(){document.body.classList.add("fc-not-allowed")}function ve(){document.body.classList.remove("fc-not-allowed")}function ge(e,t,n){var r=Math.floor(t/e.length),i=Math.floor(t-r*(e.length-1)),o=[],s=[],a=[],l=0;ye(e),e.forEach((function(t,n){var u=n===e.length-1?i:r,c=t.getBoundingClientRect().height,d=c+N(t);d<u?(o.push(t),s.push(d),a.push(c)):l+=d})),n&&(t-=l,r=Math.floor(t/o.length),i=Math.floor(t-r*(o.length-1))),o.forEach((function(e,t){var n=t===o.length-1?i:r,l=s[t],u=n-(l-a[t]);l<n&&(e.style.height=u+"px")}))}function ye(e){e.forEach((function(e){e.style.height=""}))}function me(e){var t=0;return e.forEach((function(e){var n=e.firstChild;if(n instanceof HTMLElement){var r=n.getBoundingClientRect().width;r>t&&(t=r)}})),t++,e.forEach((function(e){e.style.width=t+"px"})),t}function be(e,t){var n={position:"relative",left:-1};S(e,n),S(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""};return S(e,i),S(t,i),r}function Ee(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",z)}function Se(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",z)}function we(e){e.addEventListener("contextmenu",z)}function De(e){e.removeEventListener("contextmenu",z)}function Te(e,t,n){return n.func?n.func(e,t):function(e,t){if(!e&&!t)return 0;if(null==t)return-1;if(null==e)return 1;if("string"==typeof e||"string"==typeof t)return String(e).localeCompare(String(t));return e-t}(e[n.field],t[n.field])*(n.order||1)}function Re(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ce(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function Oe(e,t){return e-t}function Ie(e){return e%1==0}function Me(e,t,n){if("function"==typeof e&&(e=[e]),e){var r=void 0,i=void 0;for(r=0;r<e.length;r++)i=e[r].apply(t,n)||i;return i}}function Pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function ke(e,t){var n,r,i,o,s,a=function(){var l=(new Date).valueOf()-o;l<t?n=setTimeout(a,t-l):(n=null,s=e.apply(i,r),i=r=null)};return function(){return i=this,r=arguments,o=(new Date).valueOf(),n||(n=setTimeout(a,t)),s}}function xe(e,t,n,r){void 0===n&&(n={});var i={};for(var o in t){var s=t[o];void 0!==e[o]?i[o]=s===Function?"function"==typeof e[o]?e[o]:null:s?s(e[o]):e[o]:void 0!==n[o]?i[o]=n[o]:s===String?i[o]="":s&&s!==Number&&s!==Boolean&&s!==Function?i[o]=s(null):i[o]=null}if(r)for(var o in e)void 0===t[o]&&(r[o]=e[o]);return i}function je(e){var t=Math.floor(Z(e.start,e.end))||1,n=q(e.start);return{start:n,end:W(n,t)}}function _e(e,t){void 0===t&&(t=oe(0));var n=null,r=null;if(e.end){r=q(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=ce(t)&&(r=W(r,1))}return e.start&&(n=q(e.start),r&&r<=n&&(r=W(n,1))),{start:n,end:r}}function Ne(e,t,n,r){return"year"===r?oe(n.diffWholeYears(e,t),"year"):"month"===r?oe(n.diffWholeMonths(e,t),"month"):(o=t,s=q(i=e),a=q(o),{years:0,months:0,days:Math.round(Z(s,a)),milliseconds:o.valueOf()-a.valueOf()-(i.valueOf()-s.valueOf())});var i,o,s,a}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var He=function(e,t){return(He=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])})(e,t)};function Le(e,t){function n(){this.constructor=e}He(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ze=function(){return(ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ve(e,t,n,r,i){var o=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(q)),o}var Ue=Object.prototype.hasOwnProperty;function Ae(e,t){var n,r,i,o,s,a,l={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;o>=0;o--)if("object"==typeof(s=e[o][r])&&s)i.unshift(s);else if(void 0!==s){l[r]=s;break}i.length&&(l[r]=Ae(i))}for(n=e.length-1;n>=0;n--)for(r in a=e[n])r in l||(l[r]=a[r]);return l}function Be(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Fe(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function We(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function Ye(e){var t=[];for(var n in e)t.push(e[n]);return t}function Ge(e,t){for(var n in e)if(Ue.call(e,n)&&!(n in t))return!1;for(var n in t)if(Ue.call(t,n)&&e[n]!==t[n])return!1;return!0}function Ze(e,t,n,r){for(var i={defs:{},instances:{}},o=0,s=e;o<s.length;o++){var a=dn(s[o],t,n,r);a&&Xe(a,i)}return i}function Xe(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function qe(e,t,n){var r=n.dateEnv,i=e.defs,o=e.instances;for(var s in o=Be(o,(function(e){return!i[e.defId].recurringDef})),i){var a=i[s];if(a.recurringDef){var l=a.recurringDef.duration;l||(l=a.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var u=0,c=Ve(a,l,t,n.dateEnv,n.pluginSystem.hooks.recurringTypes);u<c.length;u++){var d=c[u],p=fn(s,{start:d,end:r.add(d,l)});o[p.instanceId]=p}}}return{defs:i,instances:o}}function Je(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=et(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function Qe(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],s=t(o);s?n.push(s):null==s&&n.push(o)}}else n=e;return n}function Ke(){return{defs:{},instances:{}}}function $e(e,t){return{defs:ze({},e.defs,t.defs),instances:ze({},e.instances,t.instances)}}function et(e,t){var n=Be(e.defs,t),r=Be(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function tt(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function nt(e,t){var n,r,i=[],o=t.start;for(e.sort(rt),n=0;n<e.length;n++)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function rt(e,t){return e.start.valueOf()-t.start.valueOf()}function it(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function ot(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function st(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function at(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function lt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function ut(e,t){var n,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function ct(e){var t,n;return function(){return t&&ut(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}var dt={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},pt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},ft=/\s*([ap])\.?m\.?/i,ht=/,/g,vt=/\s+/g,gt=/\u200e/g,yt=/UTC|GMT/,mt=function(){function e(e){var t={},n={},r=0;for(var i in e)i in dt?(n[i]=e[i],r=Math.max(dt[i],r)):(t[i]=e[i],i in pt&&(r=Math.max(pt[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=ct(bt)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n){var r=this.standardDateProps,i=this.extendedSettings,o=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(re(e)!==re(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);var s=o;!(s>1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(s=1);var a=this.format(e,n),l=this.format(t,n);if(a===l)return a;var u=bt(function(e,t){var n={};for(var r in e)(!(r in pt)||pt[r]<=t)&&(n[r]=e[r]);return n}(r,s),i,n),c=u(e),d=u(t),p=function(e,t,n,r){var i=0;for(;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var s=e.substr(0,o);i=o+t.length;for(var a=e.substr(i),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(s===c&&a===d)return{before:s,after:a}}}return null}(a,c,l,d),f=i.separator||"";return p?p.before+c+f+d+p.after:a+f+l},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},e}();function bt(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Dt(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r){var i=[];"narrow"===r?i.push(t):"short"===r&&i.push(t," ");i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:function(e,t,n){e=ze({},e),t=ze({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var o=ze({},e);delete o.minute,r=new Intl.DateTimeFormat(n.locale.codes,o)}return function(o){var s=o.marker;return function(e,t,n,r,i){e=e.replace(gt,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(yt,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Dt(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(ht,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(ft,"").trim():"narrow"===r.meridiem?e=e.replace(ft,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(ft,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(ft,(function(e){return e.toLocaleLowerCase()})));return e=(e=e.replace(vt," ")).trim()}((r&&!s.getUTCMinutes()?r:i).format(s),o,e,t,n)}}(e,t,n)}var Et=function(){function e(e,t){this.cmdStr=e,this.separator=t}return e.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,Tt(e,null,t,this.separator))},e.prototype.formatRange=function(e,t,n){return n.cmdFormatter(this.cmdStr,Tt(e,t,n,this.separator))},e}(),St=function(){function e(e){this.func=e}return e.prototype.format=function(e,t){return this.func(Tt(e,null,t))},e.prototype.formatRange=function(e,t,n){return this.func(Tt(e,t,n))},e}();function wt(e,t){return"object"==typeof e&&e?("string"==typeof t&&(e=ze({separator:t},e)),new mt(e)):"string"==typeof e?new Et(e,t):"function"==typeof e?new St(e):void 0}function Dt(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+Ce(i,2)+":"+Ce(o,2):"GMT"+n+i+(o?":"+Ce(o,2):"")}function Tt(e,t,n,r){var i=Rt(e,n.calendarSystem);return{date:i,start:i,end:t?Rt(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function Rt(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]}}var Ct=function(){function e(e,t){this.calendar=e,this.internalEventSource=t}return e.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),e}(),Ot=function(){function e(e,t,n){this._calendar=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in un);else if(e in ln)"function"==typeof ln[e]&&(t=ln[e](t)),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in tn){var i=void 0;"function"==typeof tn[e]&&(t=tn[e](t)),"color"===e?i={backgroundColor:t,borderColor:t}:"editable"===e?i={startEditable:t,durationEditable:t}:((r={})[e]=t,i=r),this.mutate({standardProps:{ui:i}})}},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._calendar.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=Ne(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._calendar.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var i=Ne(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i=this._calendar.dateEnv,o={allDay:n.allDay},s=i.createMarker(e);if(s&&(null==t||(r=i.createMarker(t)))&&this._instance){var a=this._instance.range;!0===n.allDay&&(a=je(a));var l=Ne(a.start,s,i,n.granularity);if(r){var u=Ne(a.end,r,i,n.granularity);le(l,u)?this.mutate({datesDelta:l,standardProps:o}):this.mutate({startDelta:l,endDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:l,standardProps:o})}},e.prototype.moveStart=function(e){var t=oe(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=oe(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=oe(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._calendar.dateEnv,n=this._instance,r=wt(e,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(e){var t=this._def,n=this._instance;if(n){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:n.instanceId,mutation:e,fromApi:!0});var r=this._calendar.state.eventStore;this._def=r.defs[t.defId],this._instance=r.instances[n.instanceId]}},e.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new Ct(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),e}();function It(e,t,n,r){var i={},o={},s={},a=[],l=[],u=xt(e.defs,t);for(var c in e.defs){"inverse-background"===(E=e.defs[c]).rendering&&(E.groupId?(i[E.groupId]=[],s[E.groupId]||(s[E.groupId]=E)):o[c]=[])}for(var d in e.instances){var p=e.instances[d],f=u[(E=e.defs[p.defId]).defId],h=p.range,v=!E.allDay&&r?_e(h,r):h,g=it(v,n);g&&("inverse-background"===E.rendering?E.groupId?i[E.groupId].push(g):o[p.defId].push(g):("background"===E.rendering?a:l).push({def:E,ui:f,instance:p,range:g,isStart:v.start&&v.start.valueOf()===g.start.valueOf(),isEnd:v.end&&v.end.valueOf()===g.end.valueOf()}))}for(var y in i)for(var m=0,b=nt(i[y],n);m<b.length;m++){var E,S=b[m];f=u[(E=s[y]).defId];a.push({def:E,ui:f,instance:null,range:S,isStart:!1,isEnd:!1})}for(var c in o)for(var w=0,D=nt(o[c],n);w<D.length;w++){S=D[w];a.push({def:e.defs[c],ui:u[c],instance:null,range:S,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function Mt(e,t,n){var r=e.calendar,i=e.view;r.hasPublicHandlers("eventRender")&&(t=t.filter((function(e){var t=r.publiclyTrigger("eventRender",[{event:new Ot(r,e.eventRange.def,e.eventRange.instance),isMirror:n,isStart:e.isStart,isEnd:e.isEnd,el:e.el,view:i}]);return!1!==t&&(t&&!0!==t&&(e.el=t),!0)})));for(var o=0,s=t;o<s.length;o++){var a=s[o];Pt(a.el,a)}return t}function Pt(e,t){e.fcSeg=t}function kt(e){return e.fcSeg||null}function xt(e,t){return Fe(e,(function(e){return jt(e,t)}))}function jt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),sn(n)}function _t(e,t,n){var r=e.calendar,i=e.view;if(r.hasPublicHandlers("eventPositioned"))for(var o=0,s=t;o<s.length;o++){var a=s[o];r.publiclyTriggerAfterSizing("eventPositioned",[{event:new Ot(r,a.eventRange.def,a.eventRange.instance),isMirror:n,isStart:a.isStart,isEnd:a.isEnd,el:a.el,view:i}])}r.state.eventSourceLoadingLevel||(r.afterSizingTriggers._eventsPositioned=[null])}function Nt(e,t,n){for(var r=e.calendar,i=e.view,o=0,s=t;o<s.length;o++){var a=s[o];r.trigger("eventElRemove",a.el)}if(r.hasPublicHandlers("eventDestroy"))for(var l=0,u=t;l<u.length;l++){a=u[l];r.publiclyTrigger("eventDestroy",[{event:new Ot(r,a.eventRange.def,a.eventRange.instance),isMirror:n,el:a.el,view:i}])}}function Ht(e,t,n){for(var r=e.calendar,i=e.view,o=r.pluginSystem.hooks.isDraggableTransformers,s=n.startEditable,a=0,l=o;a<l.length;a++){s=(0,l[a])(s,t,n,i)}return s}function Lt(e,t,n){return n.durationEditable&&e.options.eventResizableFromStart}function zt(e,t,n){return n.durationEditable}function Vt(e,t,n,r){var i=xt(e.defs,t),o={defs:{},instances:{}};for(var s in e.defs){var a=e.defs[s];o.defs[s]=Ut(a,i[s],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var l in e.instances){var u=e.instances[l];a=o.defs[u.defId];o.instances[l]=At(u,a,i[u.defId],n,r)}return o}function Ut(e,t,n,r,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var s=ze({},e,o,{ui:ze({},e.ui,o.ui)});n.extendedProps&&(s.extendedProps=ze({},s.extendedProps,n.extendedProps));for(var a=0,l=r;a<l.length;a++){(0,l[a])(s,n,i)}return!s.hasEnd&&i.opt("forceEventDuration")&&(s.hasEnd=!0),s}function At(e,t,n,r,i){var o=i.dateEnv,s=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=ze({},e);return s&&(l.range=je(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:i.getDefaultEventEnd(t.allDay,l.range.start)}),t.allDay&&(l.range={start:q(l.range.start),end:q(l.range.end)}),l.range.end<l.range.start&&(l.range.end=i.getDefaultEventEnd(t.allDay,l.range.start)),l}function Bt(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var s=Ze(function(e,t,n){var r=n.opt("eventDataTransform"),i=t?t.eventDataTransform:null;return i&&(e=Qe(e,i)),r&&(e=Qe(e,r)),e}(i,t,o),t.sourceId,o);return r&&(s=qe(s,r,o)),$e(Ft(e,t.sourceId),s)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=qe(t,n,r));return $e(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":return $e(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?qe(e,r.activeRange,i):e;case"CHANGE_TIMEZONE":return function(e,t,n){var r=e.defs,i=Fe(e.instances,(function(e){var i=r[e.defId];return i.allDay||i.recurringDef?e:ze({},e,{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:i}}(e,t.oldDateEnv,i.dateEnv);case"MUTATE_EVENTS":return function(e,t,n,r,i){var o=Je(e,t),s=r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:i.eventUiBases;return o=Vt(o,s,n,i),$e(e,o)}(e,t.instanceId,t.mutation,t.fromApi,i);case"REMOVE_EVENT_INSTANCES":return Wt(e,t.instances);case"REMOVE_EVENT_DEF":return et(e,(function(e){return e.defId!==t.defId}));case"REMOVE_EVENT_SOURCE":return Ft(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return et(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}}function Ft(e,t){return et(e,(function(e){return e.sourceId!==t}))}function Wt(e,t){return{defs:e.defs,instances:Be(e.instances,(function(e){return!t[e.instanceId]}))}}function Yt(e,t){return Gt({eventDrag:e},t)}function Gt(e,t){var n=t.view,r=ze({businessHours:n?n.props.businessHours:{defs:{},instances:{}},dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||Zt)(r,t)}function Zt(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var i=e.eventDrag,o=i.mutatedEvents,s=o.defs,a=o.instances,l=xt(s,i.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(l=Fe(l,r));var u=Wt(e.eventStore,i.affectedEvents.instances),c=u.defs,d=u.instances,p=xt(c,e.eventUiBases);for(var f in a){var h=a[f],v=h.range,g=l[h.defId],y=s[h.defId];if(!Xt(g.constraints,v,u,e.businessHours,t))return!1;var m=t.opt("eventOverlap");for(var b in"function"!=typeof m&&(m=null),d){var E=d[b];if(st(v,E.range)){if(!1===p[E.defId].overlap&&i.isEvent)return!1;if(!1===g.overlap)return!1;if(m&&!m(new Ot(t,c[E.defId],E),new Ot(t,y,h)))return!1}}for(var S=t.state.eventStore,w=0,D=g.allows;w<D.length;w++){var T=D[w],R=ze({},n,{range:h.range,allDay:y.allDay}),C=S.defs[y.defId],O=S.instances[f],I=void 0;if(I=C?new Ot(t,C,O):new Ot(t,y),!T(t.buildDateSpanApi(R),I))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var i=e.eventStore,o=i.defs,s=i.instances,a=e.dateSelection,l=a.range,u=t.selectionConfig;r&&(u=r(u));if(!Xt(u.constraints,l,i,e.businessHours,t))return!1;var c=t.opt("selectOverlap");"function"!=typeof c&&(c=null);for(var d in s){var p=s[d];if(st(l,p.range)){if(!1===u.overlap)return!1;if(c&&!c(new Ot(t,o[p.defId],p)))return!1}}for(var f=0,h=u.allows;f<h.length;f++){var v=h[f],g=ze({},n,a);if(!v(t.buildDateSpanApi(g),null))return!1}return!0}(e,t,n,r))}function Xt(e,t,n,r,i){for(var o=0,s=e;o<s.length;o++){if(!Qt(qt(s[o],t,n,r,i),t))return!1}return!0}function qt(e,t,n,r,i){return"businessHours"===e?Jt(qe(r,t,i)):"string"==typeof e?Jt(et(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?Jt(qe(e,t,i)):[]}function Jt(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Qt(e,t){for(var n=0,r=e;n<r.length;n++){if(at(r[n],t))return!0}return!1}function Kt(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function $t(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function en(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var tn={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:en,classNames:en,color:String,backgroundColor:String,borderColor:String,textColor:String};function nn(e,t,n){var r=xe(e,tn,{},n),i=function(e,t){return Array.isArray(e)?Ze(e,"",t,!0):"object"==typeof e&&e?Ze([e],"",t,!0):null!=e?String(e):null}(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=i?[i]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function rn(e,t,n,r){var i={},o={};for(var s in tn){var a=e+Re(s);i[s]=t[a],o[a]=!0}if("event"===e&&(i.editable=t.editable),r)for(var s in t)o[s]||(r[s]=t[s]);return nn(i,n)}var on={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function sn(e){return e.reduce(an,on)}function an(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var ln={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},un={start:null,date:null,end:null,allDay:null},cn=0;function dn(e,t,n,r){var i=function(e,t){var n=null;if(e){var r=t.state.eventSources[e];n=r.allDayDefault}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),o={},s=function(e,t,n,r,i){for(var o=0;o<r.length;o++){var s={},a=r[o].parse(e,s,n);if(a){var l=s.allDay;return delete s.allDay,null==l&&null==(l=t)&&null==(l=a.allDayGuess)&&(l=!1),ze(i,s),{allDay:l,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(e,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(s)return(a=pn(o,t,s.allDay,Boolean(s.duration),n)).recurringDef={typeId:s.typeId,typeData:s.typeData,duration:s.duration},{def:a,instance:null};var a,l={},u=function(e,t,n,r,i){var o,s,a=function(e,t){var n=xe(e,un,{},t);return n.start=null!==n.start?n.start:n.date,delete n.date,n}(e,r),l=a.allDay,u=null,c=!1,d=null;if(o=n.dateEnv.createMarkerMeta(a.start))u=o.marker;else if(!i)return null;null!=a.end&&(s=n.dateEnv.createMarkerMeta(a.end));null==l&&(l=null!=t?t:(!o||o.isTimeUnspecified)&&(!s||s.isTimeUnspecified));l&&u&&(u=q(u));s&&(d=s.marker,l&&(d=q(d)),u&&d<=u&&(d=null));d?c=!0:i||(c=n.opt("forceEventDuration")||!1,d=n.dateEnv.add(u,l?n.defaultAllDayEventDuration:n.defaultTimedEventDuration));return{allDay:l,hasEnd:c,range:{start:u,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(e,i,n,l,r);return u?{def:a=pn(l,t,u.allDay,u.hasEnd,n),instance:fn(a.defId,u.range,u.forcedStartTzo,u.forcedEndTzo)}:null}function pn(e,t,n,r,i){var o={},s=function(e,t,n){var r={},i=xe(e,ln,{},r),o=nn(r,t,n);return i.publicId=i.id,delete i.id,i.ui=o,i}(e,i,o);s.defId=String(cn++),s.sourceId=t,s.allDay=n,s.hasEnd=r;for(var a=0,l=i.pluginSystem.hooks.eventDefParsers;a<l.length;a++){var u={};(0,l[a])(s,o,u),o=u}return s.extendedProps=ze(o,s.extendedProps||{}),Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function fn(e,t,n,r){return{instanceId:String(cn++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var hn={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};function vn(e,t){return Ze(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return ze({},hn,e)}))}(e),"",t)}function gn(e,t,n){void 0===n&&(n=[]);var r,i,o=[];function s(){if(i){for(var e=0,n=o;e<n.length;e++){n[e].unrender()}t&&t.apply(r,i),i=null}}function a(){i&&ut(i,arguments)||(s(),r=this,i=arguments,e.apply(this,arguments))}a.dependents=o,a.unrender=s;for(var l=0,u=n;l<u.length;l++){u[l].dependents.push(a)}return a}var yn={defs:{},instances:{}};!function(){function e(){this.getKeysForEventDefs=ct(this._getKeysForEventDefs),this.splitDateSelection=ct(this._splitDateSpan),this.splitEventStore=ct(this._splitEventStore),this.splitIndividualUi=ct(this._splitIndividualUi),this.splitEventDrag=ct(this._splitInteraction),this.splitEventResize=ct(this._splitInteraction),this.eventUiBuilders={}}e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=Fe(n,(function(e,n){return t.eventUiBuilders[n]||ct(mn)})),n){var d=n[c],p=s[c]||yn,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:p,eventUiBases:f(e.eventUiBases[""],d.ui,o[c]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return Fe(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var o in n)for(var s=0,a=t[o];s<a.length;s++){i[p=a[s]]||(i[p]={defs:{},instances:{}}),i[p].defs[o]=n[o]}for(var l in r)for(var u=r[l],c=0,d=t[u.defId];c<d.length;c++){var p;i[p=d[c]]&&(i[p].instances[l]=u)}return i},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,o=t[r];i<o.length;i++){var s=o[i];n[s]||(n[s]={}),n[s][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),o=function(r){t[r]||(t[r]={affectedEvents:n[r]||yn,mutatedEvents:i[r]||yn,isEvent:e.isEvent,origSeg:e.origSeg})};for(var s in n)o(s);for(var s in i)o(s)}return t}}();function mn(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":sn(r)};return n&&ze(i,n),i}function bn(e,t,n,r,i){var o,s,a,l;return n instanceof Date?o=n:(o=n.date,s=n.type,a=n.forceOff),l={date:t.formatIso(o,{omitTime:!0}),type:s||"day"},"string"==typeof r&&(i=r,r=null),r=r?" "+function(e){var t=[];for(var n in e){var r=e[n];null!=r&&t.push(n+'="'+Kt(r)+'"')}return t.join(" ")}(r):"",i=i||"",!a&&e.navLinks?"<a"+r+' data-goto="'+Kt(JSON.stringify(l))+'">'+i+"</a>":"<span"+r+">"+i+"</span>"}function En(e,t,n,r){var i,o,s=n.calendar,a=n.options,l=n.theme,u=n.dateEnv,c=[];return lt(t.activeRange,e)?(c.push("fc-"+B[e.getUTCDay()]),a.monthMode&&u.getMonth(e)!==u.getMonth(t.currentRange.start)&&c.push("fc-other-month"),o=W(i=q(s.getNow()),1),e<i?c.push("fc-past"):e>=o?c.push("fc-future"):(c.push("fc-today"),!0!==r&&c.push(l.getClass("today")))):c.push("fc-disabled-day"),c}var Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Le(t,e),t.prototype.on=function(e,t){return wn(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return wn(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&Dn(this._handlers,e,t),this._oneHandlers&&Dn(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.triggerWith(e,this,t),this},t.prototype.triggerWith=function(e,t,n){return this._handlers&&Me(this._handlers[e],t,n),this._oneHandlers&&(Me(this._oneHandlers[e],t,n),delete this._oneHandlers[e]),this},t.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},t}(function(){function e(){}return e.mixInto=function(e){this.mixIntoObj(e.prototype)},e.mixIntoObj=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach((function(n){e[n]||(e[n]=t.prototype[n])}))},e.mixOver=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach((function(n){e.prototype[n]=t.prototype[n]}))},e}());function wn(e,t,n){(e[t]||(e[t]=[])).push(n)}function Dn(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}var Tn=function(){function e(e,t,n,r){this.originEl=e,this.els=t,this.isHorizontal=n,this.isVertical=r}return e.prototype.build=function(){var e=this.originEl,t=this.originClientRect=e.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(t.left),this.isVertical&&this.buildElVerticals(t.top)},e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),Rn=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),Cn=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return Le(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(Rn),On=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Le(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(Rn),In=function(e){function t(t,n){var r=e.call(this,o("div",{className:"fc-scroller"}))||this;return r.overflowX=t,r.overflowY=n,r.applyOverflow(),r}return Le(t,e),t.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},t.prototype.destroy=function(){f(this.el)},t.prototype.applyOverflow=function(){S(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},t.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),S(this.el,{overflowX:t,overflowY:n})},t.prototype.setHeight=function(e){w(this.el,"height",e)},t.prototype.getScrollbarWidths=function(){var e=k(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},t}(Cn),Mn=function(){function e(e){this.calendarOptions=e,this.processIconOverride()}return e.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=ze({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();Mn.prototype.classes={},Mn.prototype.iconClasses={},Mn.prototype.baseIconClass="",Mn.prototype.iconOverridePrefix="";var Pn=0,kn=function(){function e(e,t,n,r,i){this.calendar=e,this.theme=t,this.dateEnv=n,this.options=r,this.view=i,this.isRtl="rtl"===r.dir,this.eventOrderSpecs=function(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}(r.eventOrder),this.nextDayThreshold=oe(r.nextDayThreshold)}return e.prototype.extend=function(t,n){return new e(this.calendar,this.theme,this.dateEnv,t||this.options,n||this.view)},e}(),xn=function(){function e(){this.everRendered=!1,this.uid=String(Pn++)}return e.addEqualityFuncs=function(e){this.prototype.equalityFuncs=ze({},this.prototype.equalityFuncs,e)},e.prototype.receiveProps=function(e,t){this.receiveContext(t);var n=function(e,t,n){var r={},i=!1;for(var o in t)o in e&&(e[o]===t[o]||n[o]&&n[o](e[o],t[o]))?r[o]=e[o]:(r[o]=t[o],i=!0);for(var o in e)if(!(o in t)){i=!0;break}return{anyChanges:i,comboProps:r}}(this.props||{},e,this.equalityFuncs),r=n.anyChanges,i=n.comboProps;this.props=i,r&&(this.everRendered&&this.beforeUpdate(),this.render(i,t),this.everRendered&&this.afterUpdate()),this.everRendered=!0},e.prototype.receiveContext=function(e){var t=this.context;this.context=e,t||this.firstContext(e)},e.prototype.render=function(e,t){},e.prototype.firstContext=function(e){},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.destroy=function(){},e}();xn.prototype.equalityFuncs={};var jn=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return Le(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),f(this.el)},t.prototype.buildPositionCaches=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isInteractionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(var i in r)if(!at(n.validRange,r[i].range))return!1;return Yt(e,t)},t.prototype.isDateSelectionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile;return!(n&&!at(n.validRange,e.range))&&function(e,t){return Gt({dateSelection:e},t)}(e,t)},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!g(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},t.prototype.isValidDateDownEl=function(e){var t=g(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!g(e,".fc-more")&&!g(e,"a[data-goto]")&&!this.isInPopover(e)},t.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},t.prototype.isInPopover=function(e){return Boolean(g(e,".fc-popover"))},t}(xn);jn.prototype.fgSegSelector=".fc-event-container > *",jn.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var _n=0;function Nn(e){return{id:String(_n++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}var Hn=function(){function e(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}return e.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;t<n.length;t++){var r=n[t];this.add(r)}this.hooks=(i=this.hooks,o=e,{reducers:i.reducers.concat(o.reducers),eventDefParsers:i.eventDefParsers.concat(o.eventDefParsers),isDraggableTransformers:i.isDraggableTransformers.concat(o.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(o.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(o.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(o.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(o.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(o.dateSpanTransforms),views:ze({},i.views,o.views),viewPropsTransformers:i.viewPropsTransformers.concat(o.viewPropsTransformers),isPropsValid:o.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(o.externalDefTransforms),eventResizeJoinTransforms:i.eventResizeJoinTransforms.concat(o.eventResizeJoinTransforms),viewContainerModifiers:i.viewContainerModifiers.concat(o.viewContainerModifiers),eventDropTransformers:i.eventDropTransformers.concat(o.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(o.calendarInteractions),componentInteractions:i.componentInteractions.concat(o.componentInteractions),themeClasses:ze({},i.themeClasses,o.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(o.eventSourceDefs),cmdFormatter:o.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(o.recurringTypes),namedTimeZonedImpl:o.namedTimeZonedImpl||i.namedTimeZonedImpl,defaultView:i.defaultView||o.defaultView,elementDraggingImpl:i.elementDraggingImpl||o.elementDraggingImpl,optionChangeHandlers:ze({},i.optionChangeHandlers,o.optionChangeHandlers)})}var i,o},e}();var Ln=Nn({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),zn=Nn({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.calendar.dateEnv;!function(e,t,n){var r=!1,i=function(){r||(r=!0,t.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},s=e(i,o);s&&"function"==typeof s.then&&s.then(i,o)}(e.eventSource.meta.bind(null,{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}),(function(e){t({rawEvents:e})}),n)}}]});function Vn(e,t,n,r,i){var o=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Un(t)}(t,n):o=Un(n);var s=new XMLHttpRequest;s.open(e,t,!0),"GET"!==e&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){if(s.status>=200&&s.status<400)try{var e=JSON.parse(s.responseText);r(e,s)}catch(e){i("Failure parsing JSON",s)}else i("Request failed",s)},s.onerror=function(){i("Request failed",s)},s.send(o)}function Un(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var An=Nn({eventSourceDefs:[{parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,i=function(e,t,n){var r,i,o,s,a=n.dateEnv,l={};null==(r=e.startParam)&&(r=n.opt("startParam"));null==(i=e.endParam)&&(i=n.opt("endParam"));null==(o=e.timeZoneParam)&&(o=n.opt("timeZoneParam"));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};ze(l,s),l[r]=a.formatIso(t.start),l[i]=a.formatIso(t.end),"local"!==a.timeZone&&(l[o]=a.timeZone);return l}(r,e.range,e.calendar);Vn(r.method,r.url,i,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}}]});var Bn=Nn({recurringTypes:[{parse:function(e,t,n){var r,i,o=n.createMarker.bind(n),s=xe(e,{daysOfWeek:null,startTime:oe,endTime:oe,startRecur:o,endRecur:o},{},t),a=!1;for(var l in s)if(null!=s[l]){a=!0;break}if(a){var u=null;return"duration"in t&&(u=oe(t.duration),delete t.duration),!u&&s.startTime&&s.endTime&&(r=s.endTime,i=s.startTime,u={years:r.years-i.years,months:r.months-i.months,days:r.days-i.days,milliseconds:r.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!s.startTime&&!s.endTime),duration:u,typeData:s}}return null},expand:function(e,t,n){var r=it(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var i=e?We(e):null,o=q(n.start),s=n.end,a=[];for(;o<s;){var l=void 0;i&&!i[o.getUTCDay()]||(l=t?r.add(o,t):o,a.push(l)),o=W(o,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}]});var Fn=Nn({optionChangeHandlers:{events:function(e,t,n){Wn([e],t,n)},eventSources:Wn,plugins:function(e,t){t.addPluginInputs(e)}}});function Wn(e,t,n){for(var r=Ye(t.state.eventSources),i=[],o=0,s=e;o<s.length;o++){for(var a=s[o],l=!1,u=0;u<r.length;u++)if(n(r[u]._raw,a)){r.splice(u,1),l=!0;break}l||i.push(a)}for(var c=0,d=r;c<d.length;c++){var p=d[c];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:p.sourceId})}for(var f=0,h=i;f<h.length;f++){var v=h[f];t.addEventSource(v)}}var Yn={},Gn={defaultRangeSeparator:" - ",titleRangeSeparator:" ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},Zn={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},Xn=["header","footer","buttonText","buttonIcons"];var qn=[Ln,zn,An,Bn,Fn];var Jn={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};function Qn(e){for(var t=e.length>0?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},i=n.concat(Ye(r),e),o={en:Jn},s=0,a=i;s<a.length;s++){var l=a[s];o[l.code]=l}return{map:o,defaultCode:t}}function Kn(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n++)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i--){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}(n,t)||Jn;return $n(e,n,r)}(e,t):$n(e.code,[e.code],e)}function $n(e,t,n){var r=Ae([Jn,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var er=function(){function e(e){this.overrides=ze({},e),this.dynamicOverrides={},this.compute()}return e.prototype.mutate=function(e,t,n){if(Object.keys(e).length||t.length){var r=n?this.dynamicOverrides:this.overrides;ze(r,e);for(var i=0,o=t;i<o.length;i++){delete r[o[i]]}this.compute()}},e.prototype.compute=function(){var e=Pe(this.dynamicOverrides.locales,this.overrides.locales,Gn.locales),t=Pe(this.dynamicOverrides.locale,this.overrides.locale,Gn.locale),n=Qn(e),r=Kn(t||n.defaultCode,n.map).options,i="rtl"===Pe(this.dynamicOverrides.dir,this.overrides.dir,r.dir)?Zn:{};this.dirDefaults=i,this.localeDefaults=r,this.computed=Ae([Gn,i,r,this.overrides,this.dynamicOverrides],Xn)},e}(),tr={};var nr,rr=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 te(e)},e.prototype.markerToArray=function(e){return ee(e)},e}();nr=rr,tr["gregory"]=nr;var ir=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var or=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new tr[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):te(K(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=te(e)),null!==t&&ne(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=ir.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(ne(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return re(e)===re(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return re(e)===re(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=function(e,t){var n=X(e,t);return null!==n&&n%7==0?n/7:null}(e,t))?{unit:"week",value:n}:null!==(n=X(e,t))?{unit:"day",value:n}:Ie(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t))?{unit:"hour",value:n}:Ie(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t))?{unit:"minute",value:n}:Ie(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t))?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(ue(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return ue(e)/30}(n):n.days&&null!==(r=X(e,t))?r/ue(n):(t.valueOf()-e.valueOf())/ce(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?q(e):"hour"===t?function(e){return te([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return te([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return te([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):void 0},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),i=J(e,r,t,n);if(i<1)return J(e,r-1,t,n);var o=J(e,r+1,t,n);return o>=1?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=Y(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(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",Dt(t,!0)))),r}(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?te(K(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?te(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-$(ee(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ee(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?$(ee(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ee(e))*60):new Date(e.valueOf()-(t||0))},e}(),sr={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},ar=0;function lr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ur(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){var i=n[r].parseMeta(e);if(i){var o=cr("object"==typeof e?e:{},i,r,t);return o._raw=e,o}}return null}function cr(e,t,n,r){var i={},o=xe(e,sr,{},i),s={},a=nn(i,r,s);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(ar++),o.sourceDefId=n,o.meta=t,o.ui=a,o.extendedProps=s,o}function dr(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,n,r){for(var i={},o=0,s=t;o<s.length;o++){var a=s[o];i[a.sourceId]=a}n&&(i=fr(i,n,r));return ze({},e,i)}(e,t.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":return i=e,o=t.sourceId,Be(i,(function(e){return e.sourceId!==o}));case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?fr(e,n.activeRange,r):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return hr(e,t.sourceIds?We(t.sourceIds):function(e,t){return Be(e,(function(e){return lr(e,t)}))}(e,r),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var i,o=e[t];if(o&&n===o.latestFetchId)return ze({},e,((i={})[t]=ze({},o,{isFetching:!1,fetchRange:r}),i));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var i,o}var pr=0;function fr(e,t,n){return hr(e,Be(e,(function(e){return function(e,t,n){return lr(e,n)?!n.opt("lazyFetching")||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}(e,t,n)})),t,n)}function hr(e,t,n,r){var i={};for(var o in e){var s=e[o];t[o]?i[o]=vr(s,n,r):i[o]=s}return i}function vr(e,t,n){var r=n.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],i=String(pr++);return r.fetch({eventSource:e,calendar:n,range:t},(function(r){var o,s,a=r.rawEvents,l=n.opt("eventSourceSuccess");e.success&&(s=e.success(a,r.xhr)),l&&(o=l(a,r.xhr)),a=s||o||a,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:a})}),(function(r){var o=n.opt("eventSourceFailure");console.warn(r.message,r),e.failure&&e.failure(r),o&&o(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:r})})),ze({},e,{isFetching:!0,latestFetchId:i})}var gr=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},e.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},e.prototype.build=function(e,t,n){var r;void 0===n&&(n=!1);var i,o,s,a,l,u,c,d,p;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(p=r).start&&d<p.start?p.start:null!=p.end&&d>=p.end?new Date(p.end.valueOf()-1):d),s=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),u=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(u=it(u,s.range)),i=oe(this.options.minTime),o=oe(this.options.maxTime),u=it(u=this.adjustActiveRange(u,i,o),r),c=st(s.range,r),{validRange:r,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:u,renderRange:l,minTime:i,maxTime:o,isValid:c,dateIncrement:this.buildDateIncrement(s.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,i=this.dateEnv,o=null,s=null,a=null;return r.duration?(o=r.duration,s=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,s)):(n=this.options.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?s=i.greatestWholeUnit(a.start,a.end).unit:(s=de(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,s)),{duration:o,unit:s,range:a}},e.prototype.getFallbackDuration=function(){return oe({day:1})},e.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(ue(t)<0&&(i=q(i),i=r.add(i,t)),ue(n)>1&&(o=W(o=q(o),-1),o=r.add(o,n))),{start:i,end:o}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,s,a,l,u=this.dateEnv,c=this.options.dateAlignment;function d(){s=u.startOf(e,c),a=u.add(s,n),l={start:s,end:a}}return c||((i=this.options.dateIncrement)?(o=oe(i),c=ce(o)<ce(n)?de(o,!ae(i)).unit:r):c=r),ue(n)<=1&&this.isHiddenDay(s)&&(s=q(s=this.skipHiddenDays(s,t))),d(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),d()),l},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.dateEnv,o=this.options.dateAlignment,s=0,a=e;o&&(a=i.startOf(a,o)),a=q(a),r=a=this.skipHiddenDays(a,t);do{r=W(r,1),this.isHiddenDay(r)||s++}while(s<n);return{start:a,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.dateEnv,n=this.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.options.dateIncrement;return n?oe(n):(t=this.options.dateAlignment)?oe(1,t):e||oe({days:1})},e.prototype.getRangeOption=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.options[e];return"function"==typeof r&&(r=r.apply(null,t)),r&&(r=tt(r,this.dateEnv)),r&&(r=_e(r)),r},e.prototype.initHiddenDays=function(){var e,t=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.indexOf(e))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=W(e,t);return e},e}();function yr(e,t,n){for(var r=function(e,t){switch(t.type){case"SET_VIEW_TYPE":return t.viewType;default:return e}}(e.viewType,t),i=function(e,t,n,r,i){var o;switch(t.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(e,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(e,n);break;case"SET_DATE":e.activeRange&&lt(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[r].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var s=i.dateProfileGenerators[r];if(!s)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=s.build(t.dateMarker||n,void 0,!0)}return!o||!o.isValid||e&&(a=e,l=o,ot(a.validRange,l.validRange)&&ot(a.activeRange,l.activeRange)&&ot(a.renderRange,l.renderRange)&&le(a.minTime,l.minTime)&&le(a.maxTime,l.maxTime))?e:o;var a,l}(e.dateProfile,t,e.currentDate,r,n),o=dr(e.eventSources,t,i,n),s=ze({},e,{viewType:r,dateProfile:i,currentDate:mr(e.currentDate,t,i),eventSources:o,eventStore:Bt(e.eventStore,t,o,i,n),dateSelection:br(e.dateSelection,t,n),eventSelection:Er(e.eventSelection,t),eventDrag:Sr(e.eventDrag,t,o,n),eventResize:wr(e.eventResize,t,o,n),eventSourceLoadingLevel:Dr(o),loadingLevel:Dr(o)}),a=0,l=n.pluginSystem.hooks.reducers;a<l.length;a++){s=(0,l[a])(s,t,n)}return s}function mr(e,t,n){switch(t.type){case"PREV":case"NEXT":return lt(n.currentRange,e)?e:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=t.dateMarker||e;return n.activeRange&&!lt(n.activeRange,r)?n.currentRange.start:r;default:return e}}function br(e,t,n){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return e}}function Er(e,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return e}}function Sr(e,t,n,r){switch(t.type){case"SET_EVENT_DRAG":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_DRAG":return null;default:return e}}function wr(e,t,n,r){switch(t.type){case"SET_EVENT_RESIZE":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return e}}function Dr(e){var t=0;for(var n in e)e[n].isFetching&&t++;return t}var Tr={start:null,end:null,allDay:Boolean};function Rr(e,t,n){var r=function(e,t){var n={},r=xe(e,Tr,{},n),i=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,s=r.allDay;null==s&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));return n.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=s,n}(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Cr(e,t){return ot(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)}function Or(e,t,n){var r=pn({editable:!1},"",e.allDay,!0,n);return{def:r,ui:jt(r,t),instance:fn(r.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Ir(e,t,n,r){if(t[e])return t[e];var i=function(e,t,n,r){var i=n[e],o=r[e],s=function(e){return i&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null},a=s("class"),l=s("superType");!l&&a&&(l=Mr(a,r)||Mr(a,n));var u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=Ir(l,t,n,r)}!a&&u&&(a=u.class);if(!a)return null;return{type:e,class:a,defaults:ze({},u?u.defaults:{},i?i.options:{}),overrides:ze({},u?u.overrides:{},o?o.options:{})}}(e,t,n,r);return i&&(t[e]=i),i}function Mr(e,t){var n=Object.getPrototypeOf(e.prototype);for(var r in t){var i=t[r];if(i.class&&i.class.prototype===n)return r}return""}function Pr(e){return Fe(e,xr)}var kr={type:String,class:null};function xr(e){"function"==typeof e&&(e={class:e});var t={},n=xe(e,kr,{},t);return{superType:n.type,class:n.class,options:t}}function jr(e,t){var n=Pr(e),r=Pr(t.overrides.views);return Fe(function(e,t){var n,r={};for(n in e)Ir(n,r,e,t);for(n in t)Ir(n,r,e,t);return r}(n,r),(function(e){return function(e,t,n){var r=e.overrides.duration||e.defaults.duration||n.dynamicOverrides.duration||n.overrides.duration,i=null,o="",s="",a={};if(r&&(i=oe(r))){var l=de(i,!ae(r));o=l.unit,1===l.value&&(s=o,a=t[o]?t[o].options:{})}var u=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[s]?n[s]:void 0};return{type:e.type,class:e.class,duration:i,durationUnit:o,singleUnit:s,options:ze({},Gn,e.defaults,n.dirDefaults,n.localeDefaults,n.overrides,a,e.overrides,n.dynamicOverrides),buttonTextOverride:u(n.dynamicOverrides)||u(n.overrides)||e.overrides.buttonText,buttonTextDefault:u(n.localeDefaults)||u(n.dirDefaults)||e.defaults.buttonText||u(Gn)||e.type}}(e,r,t)}))}var _r=function(e){function t(t){var n=e.call(this)||this;return n._renderLayout=gn(n.renderLayout,n.unrenderLayout),n._updateTitle=gn(n.updateTitle,null,[n._renderLayout]),n._updateActiveButton=gn(n.updateActiveButton,null,[n._renderLayout]),n._updateToday=gn(n.updateToday,null,[n._renderLayout]),n._updatePrev=gn(n.updatePrev,null,[n._renderLayout]),n._updateNext=gn(n.updateNext,null,[n._renderLayout]),n.el=o("div",{className:"fc-toolbar "+t}),n}return Le(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._renderLayout.unrender(),f(this.el)},t.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},t.prototype.renderLayout=function(e){var t=this.el;this.viewsWithButtons=[],u(t,this.renderSection("left",e.left)),u(t,this.renderSection("center",e.center)),u(t,this.renderSection("right",e.right))},t.prototype.unrenderLayout=function(){this.el.innerHTML=""},t.prototype.renderSection=function(e,t){var n=this,r=this.context,i=r.theme,a=r.calendar,l=a.optionsManager,c=a.viewSpecs,d=o("div",{className:"fc-"+e}),p=l.computed.customButtons||{},f=l.overrides.buttonText||{},h=l.computed.buttonText||{};return t&&t.split(" ").forEach((function(e,t){var r,o=[],l=!0;if(e.split(",").forEach((function(e,t){var r,u,d,v,g,y,m,b,E;"title"===e?(o.push(s("<h2>&nbsp;</h2>")),l=!1):((r=p[e])?(d=function(e){r.click&&r.click.call(b,e)},(v=i.getCustomButtonIconClass(r))||(v=i.getIconClass(e))||(g=r.text)):(u=c[e])?(n.viewsWithButtons.push(e),d=function(){a.changeView(e)},(g=u.buttonTextOverride)||(v=i.getIconClass(e))||(g=u.buttonTextDefault)):a[e]&&(d=function(){a[e]()},(g=f[e])||(v=i.getIconClass(e))||(g=h[e])),d&&(m=["fc-"+e+"-button",i.getClass("button")],g?(y=Kt(g),E=""):v&&(y="<span class='"+v+"'></span>",E=' aria-label="'+e+'"'),(b=s('<button type="button" class="'+m.join(" ")+'"'+E+">"+y+"</button>")).addEventListener("click",d),o.push(b)))})),o.length>1){r=document.createElement("div");var v=i.getClass("buttonGroup");l&&v&&r.classList.add(v),u(r,o),d.appendChild(r)}else u(d,o)})),d},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){m(this.el,"h2").forEach((function(t){t.innerText=e}))},t.prototype.updateActiveButton=function(e){var t=this.context.theme.getClass("buttonActive");m(this.el,"button").forEach((function(n){e&&n.classList.contains("fc-"+e+"-button")?n.classList.add(t):n.classList.remove(t)}))},t.prototype.toggleButtonEnabled=function(e,t){m(this.el,".fc-"+e+"-button").forEach((function(e){e.disabled=!t}))},t}(xn),Nr=function(e){function t(t){var n=e.call(this)||this;return n.elClassNames=[],n.renderSkeleton=gn(n._renderSkeleton,n._unrenderSkeleton),n.renderToolbars=gn(n._renderToolbars,n._unrenderToolbars,[n.renderSkeleton]),n.buildComponentContext=ct(Lr),n.buildViewPropTransformers=ct(zr),n.el=t,n.computeTitle=ct(Hr),n.parseBusinessHours=ct((function(e){return vn(e,n.context.calendar)})),n}return Le(t,e),t.prototype.render=function(e,t){this.freezeHeight();var n=this.computeTitle(e.dateProfile,e.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,n),this.renderView(e,n),this.updateSize(),this.thawHeight()},t.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),e.prototype.destroy.call(this)},t.prototype._renderSkeleton=function(e){this.updateElClassNames(e),c(this.el,this.contentEl=o("div",{className:"fc-view-container"}));for(var t=e.calendar,n=0,r=t.pluginSystem.hooks.viewContainerModifiers;n<r.length;n++){(0,r[n])(this.contentEl,t)}},t.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),f(this.contentEl),this.removeElClassNames()},t.prototype.removeElClassNames=function(){for(var e=this.el.classList,t=0,n=this.elClassNames;t<n.length;t++){var r=n[t];e.remove(r)}this.elClassNames=[]},t.prototype.updateElClassNames=function(e){this.removeElClassNames();var t=e.theme,n=e.options;this.elClassNames=["fc","fc-"+n.dir,t.getClass("widget")];for(var r=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){var s=o[i];r.add(s)}},t.prototype._renderToolbars=function(e,t,n,r){var i=this.context,o=this.header,s=this.footer,a=i.options,l=i.calendar,d=a.header,p=a.footer,f=this.props.dateProfileGenerator,h=l.getNow(),v=f.build(h),g=f.buildPrev(t,n),y=f.buildNext(t,n),m={title:r,activeButton:e.type,isTodayEnabled:v.isValid&&!lt(t.currentRange,h),isPrevEnabled:g.isValid,isNextEnabled:y.isValid};d?(o||(o=this.header=new _r("fc-header-toolbar"),c(this.el,o.el)),o.receiveProps(ze({layout:d},m),i)):o&&(o.destroy(),o=this.header=null),p?(s||(s=this.footer=new _r("fc-footer-toolbar"),u(this.el,s.el)),s.receiveProps(ze({layout:p},m),i)):s&&(s.destroy(),s=this.footer=null)},t.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},t.prototype.renderView=function(e,t){var n=this.view,r=this.context,i=r.calendar,o=r.options,s=e.viewSpec,a=e.dateProfileGenerator;n&&n.viewSpec===s||(n&&n.destroy(),n=this.view=new s.class(s,this.contentEl),this.savedScroll&&(n.addScroll(this.savedScroll,!0),this.savedScroll=null)),n.title=t;for(var l={dateProfileGenerator:a,dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(s.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},u=0,c=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers);u<c.length;u++){var d=c[u];ze(l,d.transform(l,s,e,o))}n.receiveProps(l,this.buildComponentContext(this.context,s,n))},t.prototype.updateSize=function(e){void 0===e&&(e=!1);var t=this.view;t&&((e||null==this.isHeightAuto)&&this.computeHeightVars(),t.updateSize(e,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(e))},t.prototype.computeHeightVars=function(){var e=this.context.calendar,t=e.opt("height"),n=e.opt("contentHeight");if(this.isHeightAuto="auto"===t||"auto"===n,"number"==typeof n)this.viewHeight=n;else if("function"==typeof n)this.viewHeight=n();else if("number"==typeof t)this.viewHeight=t-this.queryToolbarsHeight();else if("function"==typeof t)this.viewHeight=t()-this.queryToolbarsHeight();else if("parent"===t){var r=this.el.parentNode;this.viewHeight=r.getBoundingClientRect().height-this.queryToolbarsHeight()}else this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(e.opt("aspectRatio"),.5))},t.prototype.queryToolbarsHeight=function(){var e=0;return this.header&&(e+=_(this.header.el)),this.footer&&(e+=_(this.footer.el)),e},t.prototype.freezeHeight=function(){S(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},t.prototype.thawHeight=function(){S(this.el,{height:"",overflow:""})},t}(xn);function Hr(e,t){var n;return n=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,this.context.dateEnv.formatRange(n.start,n.end,wt(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=X(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function Lr(e,t,n){return e.extend(t.options,n)}function zr(e){return e.map((function(e){return new e}))}var Vr=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();function Ur(e){var t;return(t={})[e.component.uid]=e,t}var Ar={},Br=function(e){function t(t){var n=e.call(this,t)||this;n.handleSegClick=function(e,t){var r=n.component,i=r.context,o=i.calendar,s=i.view,a=kt(t);if(a&&r.isValidSegDownEl(e.target)){var l=g(e.target,".fc-has-url"),u=l?l.querySelector("a[href]").href:"";o.publiclyTrigger("eventClick",[{el:t,event:new Ot(r.context.calendar,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:s}]),u&&!e.defaultPrevented&&(window.location.href=u)}};var r=t.component;return n.destroy=V(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}return Le(t,e),t}(Vr),Fr=function(e){function t(t){var n=e.call(this,t)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){kt(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var r,i,o,s,a,l=t.component;return n.removeHoverListeners=(r=l.el,i=l.fgSegSelector+","+l.bgSegSelector,o=n.handleSegEnter,s=n.handleSegLeave,V(r,"mouseover",i,(function(e,t){if(t!==a){a=t,o(e,t);var n=function(e){a=null,s(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),l.context.calendar.on("eventElRemove",n.handleEventElRemove),n}return Le(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,o=i.calendar,s=i.view,a=kt(n);t&&!r.isValidSegDownEl(t.target)||o.publiclyTrigger(e,[{el:n,event:new Ot(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:s}])},t}(Vr),Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Le(t,e),t}(Mn);Wr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Wr.prototype.baseIconClass="fc-icon",Wr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Wr.prototype.iconOverrideOption="buttonIcons",Wr.prototype.iconOverrideCustomButtonOption="icon",Wr.prototype.iconOverridePrefix="fc-icon-";var Yr=function(){function e(e,t){var n,r,i,o=this;this.buildComponentContext=ct(Gr),this.parseRawLocales=ct(Qn),this.buildLocale=ct(Kn),this.buildDateEnv=ct(Zr),this.buildTheme=ct(Xr),this.buildEventUiSingleBase=ct(this._buildEventUiSingleBase),this.buildSelectionConfig=ct(this._buildSelectionConfig),this.buildEventUiBySource=(n=Jr,r=Ge,i=null,function(){var e=n.apply(this,arguments);return(null===i||i!==e&&!r(i,e))&&(i=e),i}),this.buildEventUiBases=ct(Qr),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=ct(qr),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new er(t||{}),this.pluginSystem=new Hn,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map((function(e){return new e(o)}))}return e.prototype.addPluginInputs=function(e){for(var t=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];if("string"==typeof i){var o="FullCalendar"+Re(i);window[o]?t.push(window[o].default):console.warn("Plugin file not loaded for "+i)}else t.push(i)}return qn.concat(t)}(e),n=0,r=t;n<r.length;n++){var i=r[n];this.pluginSystem.add(i)}},Object.defineProperty(e.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){this.component?this.requestRerender():(this.component=new Nr(this.el),this.renderableEventStore={defs:{},instances:{}},this.bindHandlers(),this.executeRender())},e.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.publiclyTrigger("_destroyed")}},e.prototype.bindHandlers=function(){var e=this;this.removeNavLinkListener=V(this.el,"click","a[data-goto]",(function(t,n){var r=n.getAttribute("data-goto");r=r?JSON.parse(r):{};var i=e.dateEnv,o=i.createMarker(r.date),s=r.type,a=e.viewOpt("navLink"+Re(s)+"Click");"function"==typeof a?a(i.toDate(o),t):("string"==typeof a&&(s=a),e.zoomTo(o,s))})),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=ke(this.windowResize.bind(this),this.opt("windowResizeDelay")))},e.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},e.prototype.hydrate=function(){var e=this;this.state=this.buildInitialState();var t=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&t.unshift(n);for(var i=0,o=t;i<o.length;i++){var s=ur(o[i],this);s&&r.push(s)}this.batchRendering((function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),e.dispatch({type:"SET_VIEW_TYPE",viewType:e.opt("defaultView")||e.pluginSystem.hooks.defaultView})}))},e.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},e.prototype.dispatch=function(e){if(this.actionQueue.push(e),!this.isReducing){this.isReducing=!0;for(var t=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var n=this.state;this.isReducing=!1,!t.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);var r=this.component&&this.component.view;t.eventStore!==n.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==n.dateProfile&&(t.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),t.viewType!==n.viewType&&(t.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},e.prototype.reduce=function(e,t,n){return yr(e,t,n)},e.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},e.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},e.prototype.batchRendering=function(e){this.renderingPauseDepth++,e(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},e.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},e.prototype.renderComponent=function(){var e=this.state,t=this.component,n=e.viewType,r=this.viewSpecs[n];if(!r)throw new Error('View type "'+n+'" is not valid');var i=this.renderableEventStore=e.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:e.eventStore,o=this.buildEventUiSingleBase(r.options),s=this.buildEventUiBySource(e.eventSources),a=this.eventUiBases=this.buildEventUiBases(i.defs,o,s);t.receiveProps(ze({},e,{viewSpec:r,dateProfileGenerator:this.dateProfileGenerators[n],dateProfile:e.dateProfile,eventStore:i,eventUiBases:a,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:t.view,el:t.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:t.view,el:t.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},e.prototype.setOption=function(e,t){var n;this.mutateOptions(((n={})[e]=t,n),[],!0)},e.prototype.getOption=function(e){return this.optionsManager.computed[e]},e.prototype.opt=function(e){return this.optionsManager.computed[e]},e.prototype.viewOpt=function(e){return this.viewOpts()[e]},e.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},e.prototype.mutateOptions=function(e,t,n,r){var i=this,o=this.pluginSystem.hooks.optionChangeHandlers,s={},a={},l=this.dateEnv,u=!1,c=!1,d=Boolean(t.length);for(var p in e)o[p]?a[p]=e[p]:s[p]=e[p];for(var f in s)/^(height|contentHeight|aspectRatio)$/.test(f)?c=!0:/^(defaultDate|defaultView)$/.test(f)||(d=!0,"timeZone"===f&&(u=!0));this.optionsManager.mutate(s,t,n),d&&this.handleOptions(this.optionsManager.computed),this.batchRendering((function(){if(d?(u&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:l}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):c&&i.updateSize(),r)for(var e in a)o[e](a[e],i,r)}))},e.prototype.handleOptions=function(e){var t=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=oe(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=oe(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);var r=this.parseRawLocales(e.locales);this.availableRawLocales=r.map;var i=this.buildLocale(e.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,n.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=jr(n.views,this.optionsManager),this.dateProfileGenerators=Fe(this.viewSpecs,(function(e){return new e.class.prototype.dateProfileGeneratorClass(e,t)}))},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},e.prototype._buildSelectionConfig=function(e){return rn("select",e,this)},e.prototype._buildEventUiSingleBase=function(e){return e.editable&&(e=ze({},e,{eventEditable:!0})),rn("event",e,this)},e.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},e.prototype.publiclyTrigger=function(e,t){var n=this.opt(e);if(this.triggerWith(e,this,t),n)return n.apply(this,t)},e.prototype.publiclyTriggerAfterSizing=function(e,t){var n=this.afterSizingTriggers;(n[e]||(n[e]=[])).push(t)},e.prototype.releaseAfterSizingTriggers=function(){var e=this.afterSizingTriggers;for(var t in e)for(var n=0,r=e[t];n<r.length;n++){var i=r[n];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},e.prototype.isValidViewType=function(e){return Boolean(this.viewSpecs[e])},e.prototype.changeView=function(e,t){var n=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:n})},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.component,i=[];for(var o in r.header&&i.push.apply(i,r.header.viewsWithButtons),r.footer&&i.push.apply(i,r.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(t=0;t<i.length;t++)if((n=this.viewSpecs[i[t]])&&n.singleUnit===e)return n},e.prototype.getInitialDate=function(){var e=this.opt("defaultDate");return null!=e?this.dateEnv.createMarker(e):this.getNow()},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},e.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},e.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},e.prototype.gotoDate=function(e){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=oe(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},e.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},e.prototype.formatDate=function(e,t){var n=this.dateEnv;return n.format(n.createMarker(e),wt(t))},e.prototype.formatRange=function(e,t,n){var r=this.dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),wt(n,this.opt("defaultRangeSeparator")),n)},e.prototype.formatIso=function(e,t){var n=this.dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.windowResize=function(e){!this.isHandlingWindowResize&&this.component&&e.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},e.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},e.prototype.registerInteractiveComponent=function(e,t){var n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}(e,t),r=[Br,Fr].concat(this.pluginSystem.hooks.componentInteractions).map((function(e){return new e(n)}));this.interactionsStore[e.uid]=r,Ar[e.uid]=n},e.prototype.unregisterInteractiveComponent=function(e){for(var t=0,n=this.interactionsStore[e.uid];t<n.length;t++){n[t].destroy()}delete this.interactionsStore[e.uid],delete Ar[e.uid]},e.prototype.select=function(e,t){var n=Rr(null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t},this.dateEnv,oe({days:1}));n&&(this.dispatch({type:"SELECT_DATES",selection:n}),this.triggerDateSelect(n))},e.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},e.prototype.triggerDateSelect=function(e,t){var n=ze({},this.buildDateSpanApi(e),{jsEvent:t?t.origEvent:null,view:this.view});this.publiclyTrigger("select",[n])},e.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},e.prototype.triggerDateClick=function(e,t,n,r){var i=ze({},this.buildDatePointApi(e),{dayEl:t,jsEvent:r,view:n});this.publiclyTrigger("dateClick",[i])},e.prototype.buildDatePointApi=function(e){for(var t,n,r={},i=0,o=this.pluginSystem.hooks.datePointTransforms;i<o.length;i++){var s=o[i];ze(r,s(e,this))}return ze(r,(t=e,{date:(n=this.dateEnv).toDate(t.range.start),dateStr:n.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay})),r},e.prototype.buildDateSpanApi=function(e){for(var t,n,r={},i=0,o=this.pluginSystem.hooks.dateSpanTransforms;i<o.length;i++){var s=o[i];ze(r,s(e,this))}return ze(r,(t=e,{start:(n=this.dateEnv).toDate(t.range.start),end:n.toDate(t.range.end),startStr:n.formatIso(t.range.start,{omitTime:t.allDay}),endStr:n.formatIso(t.range.end,{omitTime:t.allDay}),allDay:t.allDay})),r},e.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},e.prototype.getDefaultEventEnd=function(e,t){var n=t;return e?(n=q(n),n=this.dateEnv.add(n,this.defaultAllDayEventDuration)):n=this.dateEnv.add(n,this.defaultTimedEventDuration),n},e.prototype.addEvent=function(e,t){if(e instanceof Ot){var n=e._def,r=e._instance;return this.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:Xe({def:n,instance:r})}),e}var i;if(t instanceof Ct)i=t.internalEventSource.sourceId;else if(null!=t){var o=this.getEventSourceById(t);if(!o)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}var s=dn(e,i,this);return s?(this.dispatch({type:"ADD_EVENTS",eventStore:Xe(s)}),new Ot(this,s.def,s.def.recurringDef?null:s.instance)):null},e.prototype.getEventById=function(e){var t=this.state.eventStore,n=t.defs,r=t.instances;for(var i in e=String(e),n){var o=n[i];if(o.publicId===e){if(o.recurringDef)return new Ot(this,o,null);for(var s in r){var a=r[s];if(a.defId===o.defId)return new Ot(this,o,a)}}}return null},e.prototype.getEvents=function(){var e=this.state.eventStore,t=e.defs,n=e.instances,r=[];for(var i in n){var o=n[i],s=t[o.defId];r.push(new Ot(this,s,o))}return r},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},e.prototype.getEventSources=function(){var e=this.state.eventSources,t=[];for(var n in e)t.push(new Ct(this,e[n]));return t},e.prototype.getEventSourceById=function(e){var t=this.state.eventSources;for(var n in e=String(e),t)if(t[n].publicId===e)return new Ct(this,t[n]);return null},e.prototype.addEventSource=function(e){if(e instanceof Ct)return this.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var t=ur(e,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new Ct(this,t)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},e.prototype.scrollToTime=function(e){var t=oe(e);t&&this.component.view.scrollToDuration(t)},e}();function Gr(e,t,n){return new kn(this,e,t,n,null)}function Zr(e,t,n,r,i,o,s){return new or({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:n,locale:e,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:s})}function Xr(e){return new(this.pluginSystem.hooks.themeClasses[e.themeSystem]||Wr)(e)}function qr(e){var t=this.tryRerender.bind(this);return null!=e&&(t=ke(t,e)),t}function Jr(e){return Fe(e,(function(e){return e.ui}))}function Qr(e,t,n){var r={"":t};for(var i in e){var o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}Sn.mixInto(Yr);var Kr=function(e){function t(t,n){var r=e.call(this,o("div",{className:"fc-view fc-"+t.type+"-view"}))||this;return r.renderDatesMem=gn(r.renderDatesWrap,r.unrenderDatesWrap),r.renderBusinessHoursMem=gn(r.renderBusinessHours,r.unrenderBusinessHours,[r.renderDatesMem]),r.renderDateSelectionMem=gn(r.renderDateSelectionWrap,r.unrenderDateSelectionWrap,[r.renderDatesMem]),r.renderEventsMem=gn(r.renderEvents,r.unrenderEvents,[r.renderDatesMem]),r.renderEventSelectionMem=gn(r.renderEventSelectionWrap,r.unrenderEventSelectionWrap,[r.renderEventsMem]),r.renderEventDragMem=gn(r.renderEventDragWrap,r.unrenderEventDragWrap,[r.renderDatesMem]),r.renderEventResizeMem=gn(r.renderEventResizeWrap,r.unrenderEventResizeWrap,[r.renderDatesMem]),r.viewSpec=t,r.type=t.type,n.appendChild(r.el),r.initialize(),r}return Le(t,e),t.prototype.initialize=function(){},Object.defineProperty(t.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),t.prototype.render=function(e,t){this.renderDatesMem(e.dateProfile),this.renderBusinessHoursMem(e.businessHours),this.renderDateSelectionMem(e.dateSelection),this.renderEventsMem(e.eventStore),this.renderEventSelectionMem(e.eventSelection),this.renderEventDragMem(e.eventDrag),this.renderEventResizeMem(e.eventResize)},t.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderDatesMem.unrender()},t.prototype.updateSize=function(e,t,n){var r=this.context.calendar;e&&this.addScroll(this.queryScroll()),(e||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(e,t,n)},t.prototype.updateBaseSize=function(e,t,n){},t.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({duration:oe(this.context.options.scrollTime)})},t.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},t.prototype.renderDates=function(e){},t.prototype.unrenderDates=function(){},t.prototype.renderBusinessHours=function(e){},t.prototype.unrenderBusinessHours=function(){},t.prototype.renderDateSelectionWrap=function(e){e&&this.renderDateSelection(e)},t.prototype.unrenderDateSelectionWrap=function(e){e&&this.unrenderDateSelection(e)},t.prototype.renderDateSelection=function(e){},t.prototype.unrenderDateSelection=function(e){},t.prototype.renderEvents=function(e){},t.prototype.unrenderEvents=function(){},t.prototype.sliceEvents=function(e,t){var n=this.props;return It(e,n.eventUiBases,n.dateProfile.activeRange,t?this.context.nextDayThreshold:null).fg},t.prototype.renderEventSelectionWrap=function(e){e&&this.renderEventSelection(e)},t.prototype.unrenderEventSelectionWrap=function(e){e&&this.unrenderEventSelection(e)},t.prototype.renderEventSelection=function(e){},t.prototype.unrenderEventSelection=function(e){},t.prototype.renderEventDragWrap=function(e){e&&this.renderEventDrag(e)},t.prototype.unrenderEventDragWrap=function(e){e&&this.unrenderEventDrag(e)},t.prototype.renderEventDrag=function(e){},t.prototype.unrenderEventDrag=function(e){},t.prototype.renderEventResizeWrap=function(e){e&&this.renderEventResize(e)},t.prototype.unrenderEventResizeWrap=function(e){e&&this.unrenderEventResize(e)},t.prototype.renderEventResize=function(e){},t.prototype.unrenderEventResize=function(e){},t.prototype.startNowIndicator=function(e,t){var n,r,i,o=this,s=this.context,a=s.calendar,l=s.dateEnv;s.options.nowIndicator&&!this.initialNowDate&&(n=this.getNowIndicatorUnit(e,t))&&(r=this.updateNowIndicator.bind(this),this.initialNowDate=a.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=l.add(l.startOf(this.initialNowDate,n),oe(1,n)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout((function(){o.nowIndicatorTimeoutID=null,r(),i="second"===n?1e3:6e4,o.nowIndicatorIntervalID=setInterval(r,i)}),i))},t.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(Y(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.getNowIndicatorUnit=function(e,t){},t.prototype.renderNowIndicator=function(e){},t.prototype.unrenderNowIndicator=function(){},t.prototype.addScroll=function(e,t){t&&(e.isForced=t),ze(this.queuedScroll||(this.queuedScroll={}),e)},t.prototype.popScroll=function(e){this.applyQueuedScroll(e),this.queuedScroll=null},t.prototype.applyQueuedScroll=function(e){this.queuedScroll&&this.applyScroll(this.queuedScroll,e)},t.prototype.queryScroll=function(){var e={};return this.props.dateProfile&&ze(e,this.queryDateScroll()),e},t.prototype.applyScroll=function(e,t){var n=e.duration,r=e.isForced;null==n||r||(delete e.duration,this.props.dateProfile&&ze(e,this.computeDateScroll(n))),this.props.dateProfile&&this.applyDateScroll(e)},t.prototype.computeDateScroll=function(e){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(e){},t.prototype.scrollToDuration=function(e){this.applyScroll({duration:e},!1)},t}(jn);Sn.mixInto(Kr),Kr.prototype.usesMinMaxTime=!1,Kr.prototype.dateProfileGeneratorClass=gr;var $r=function(){function e(){this.segs=[],this.isSizeDirty=!1}return e.prototype.renderSegs=function(e,t,n){this.context=e,this.rangeUpdated(),t=this.renderSegEls(t,n),this.segs=t,this.attachSegs(t,n),this.isSizeDirty=!0,_t(this.context,this.segs,Boolean(n))},e.prototype.unrender=function(e,t,n){Nt(this.context,this.segs,Boolean(n)),this.detachSegs(this.segs),this.segs=[]},e.prototype.rangeUpdated=function(){var e,t,n=this.context.options;this.eventTimeFormat=wt(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),null==(e=n.displayEventTime)&&(e=this.computeDisplayEventTime()),null==(t=n.displayEventEnd)&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},e.prototype.renderSegEls=function(e,t){var n,r="";if(e.length){for(n=0;n<e.length;n++)r+=this.renderSegHtml(e[n],t);a(r).forEach((function(t,n){var r=e[n];t&&(r.el=t)})),e=Mt(this.context,e,Boolean(t))}return e},e.prototype.getSegClasses=function(e,t,n,r){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},e.prototype.getTimeText=function(e,t,n){var r=e.def,i=e.instance;return this._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,t,n,i.forcedStartTzo,i.forcedEndTzo)},e.prototype._getTimeText=function(e,t,n,r,i,o,s){var a=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?a.formatRange(e,t,r,{forcedStartTzo:o,forcedEndTzo:s}):a.format(e,r,{forcedTzo:o}):""},e.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},e.prototype.computeDisplayEventTime=function(){return!0},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.getSkinCss=function(e){return{"background-color":e.backgroundColor,"border-color":e.borderColor,color:e.textColor}},e.prototype.sortEventSegs=function(e){var t=this.context.eventOrderSpecs,n=e.map(ei);return n.sort((function(e,n){return function(e,t,n){var r,i;for(r=0;r<n.length;r++)if(i=Te(e,t,n[r]))return i;return 0}(e,n,t)})),n.map((function(e){return e._seg}))},e.prototype.computeSizes=function(e){(e||this.isSizeDirty)&&this.computeSegSizes(this.segs)},e.prototype.assignSizes=function(e){(e||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e.prototype.hideByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},e.prototype.showByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},e.prototype.selectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t],i=r.eventRange.instance;i&&i.instanceId===e&&r.el&&r.el.classList.add("fc-selected")}},e.prototype.unselectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];r.el&&r.el.classList.remove("fc-selected")}},e}();function ei(e){var t=e.eventRange.def,n=e.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;return ze({},t.extendedProps,t,{id:t.publicId,start:r,end:i,duration:i-r,allDay:Number(t.allDay),_seg:e})}var ti=function(){function e(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}return e.prototype.getSegsByType=function(e){return this.segsByType[e]||[]},e.prototype.renderSegs=function(e,t,n){var r;this.context=t;var i=this.renderSegEls(e,n),o=this.attachSegs(e,i);o&&(r=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(r,o),this.segsByType[e]=i,"bgEvent"===e&&_t(t,i,!1),this.dirtySizeFlags[e]=!0},e.prototype.unrender=function(e,t){var n=this.segsByType[e];n&&("bgEvent"===e&&Nt(t,n,!1),this.detachSegs(e,n))},e.prototype.renderSegEls=function(e,t){var n,r=this,i="";if(t.length){for(n=0;n<t.length;n++)i+=this.renderSegHtml(e,t[n]);a(i).forEach((function(e,n){var r=t[n];e&&(r.el=e)})),"bgEvent"===e&&(t=Mt(this.context,t,!1)),t=t.filter((function(e){return y(e.el,r.fillSegTag)}))}return t},e.prototype.renderSegHtml=function(e,t){var n=null,r=[];return"highlight"!==e&&"businessHours"!==e&&(n={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(r=r.concat(t.eventRange.ui.classNames)),"businessHours"===e?r.push("fc-bgevent"):r.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(n?' style="'+$t(n)+'"':"")+"></"+this.fillSegTag+">"},e.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(f),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),ni=function(){function e(e){this.emitter=new Sn}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}();var ri={startTime:oe,duration:oe,create:Boolean,sourceId:String},ii={create:!0};function oi(e){var t={},n=xe(e,ri,ii,t);return n.leftoverProps=t,n}function si(e,t,n,r,i,o,s,a){var l,u=o.dateEnv,c=o.theme,d=o.options,p=lt(t.activeRange,e),f=["fc-day-header",c.getClass("widgetHeader")];return l="function"==typeof d.columnHeaderHtml?d.columnHeaderHtml(u.toDate(e)):"function"==typeof d.columnHeaderText?Kt(d.columnHeaderText(u.toDate(e))):Kt(u.format(e,i)),n?f=f.concat(En(e,t,o,!0)):f.push("fc-"+B[e.getUTCDay()]),'<th class="'+f.join(" ")+'"'+(p&&n?' data-date="'+u.formatIso(e,{omitTime:!0})+'"':"")+(s>1?' colspan="'+s+'"':"")+(a?" "+a:"")+">"+(p?bn(d,u,{date:e,forceOff:!n||1===r},l):l)+"</th>"}var ai=function(e){function t(t){var n=e.call(this)||this;return n.renderSkeleton=gn(n._renderSkeleton,n._unrenderSkeleton),n.parentEl=t,n}return Le(t,e),t.prototype.render=function(e,t){var n=e.dates,r=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(var o=wt(t.options.columnHeaderFormat||function(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}(r,n.length)),s=0,a=n;s<a.length;s++){var l=a[s];i.push(si(l,e.dateProfile,r,n.length,o,t))}t.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"</tr>"},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){var t=e.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=s('<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead></thead></table></div>')),this.thead=this.el.querySelector("thead")},t.prototype._unrenderSkeleton=function(){f(this.el)},t}(xn),li=function(){function e(e,t){for(var n=e.start,r=e.end,i=[],o=[],s=-1;n<r;)t.isHiddenDay(n)?i.push(s+.5):(s++,i.push(s),o.push(n)),n=W(n,1);this.dates=o,this.indices=i,this.cnt=o.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(W(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(Z(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),ui=function(){function e(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n++);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t++){for(var n=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t++)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,o=n.lastIndex,s=i;s<=o;){var a=Math.floor(s/t),l=Math.min((a+1)*t,o+1);r.push({row:a,firstCol:s%t,lastCol:(l-1)%t,isStart:n.isStart&&s===i,isEnd:n.isEnd&&l-1===o}),s=l}return r},e}(),ci=function(){function e(){this.sliceBusinessHours=ct(this._sliceBusinessHours),this.sliceDateSelection=ct(this._sliceDateSpan),this.sliceEventStore=ct(this._sliceEventStore),this.sliceEventDrag=ct(this._sliceInteraction),this.sliceEventResize=ct(this._sliceInteraction)}return e.prototype.sliceProps=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];var a=e.eventUiBases,l=this.sliceEventStore.apply(this,[e.eventStore,a,t,n,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,a,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r,i].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,a,t,n,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,a,t,n,i].concat(o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,[{range:{start:e,end:Y(e,1)},allDay:!1},{},t].concat(n))},e.prototype._sliceBusinessHours=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];return e?this._sliceEventStore.apply(this,[qe(e,di(t,Boolean(n)),r),{},t,n,i].concat(o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(e){var a=It(e,t,di(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i,o),fg:this.sliceEventRanges(a.fg,i,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(!e)return null;var a=It(e.mutatedEvents,t,di(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var o=Or(e,t,n.context.calendar),s=this.sliceRange.apply(this,[e.range].concat(r)),a=0,l=s;a<l.length;a++){var u=l[a];u.component=n,u.eventRange=o}return s},e.prototype.sliceEventRanges=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var s=o[i];r.push.apply(r,this.sliceEventRange(s,t,n))}return r},e.prototype.sliceEventRange=function(e,t,n){for(var r=this.sliceRange.apply(this,[e.range].concat(n)),i=0,o=r;i<o.length;i++){var s=o[i];s.component=t,s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return r},e}();function di(e,t){var n=e.activeRange;return t?n:{start:Y(n.start,e.minTime.milliseconds),end:Y(n.end,e.maxTime.milliseconds-864e5)}}},V37c:function(e,t,n){"use strict";var r=n("9d/t"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},VpIT:function(e,t,n){"use strict";var r=n("xs3f");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},We1y:function(e,t,n){"use strict";var r=n("Fib7"),i=n("DVFp"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},XGwC:function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},Xnc8:function(e,t,n){"use strict";var r=n("g6v/"),i=n("Gi26"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function(){}.name,u=a&&(!r||r&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},Y3Q8:function(e,t,n){"use strict";var r=n("2oRo"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},afO8:function(e,t,n){"use strict";var r,i,o,s=n("zc4i"),a=n("2oRo"),l=n("hh1v"),u=n("kRJp"),c=n("Gi26"),d=n("xs3f"),p=n("93I0"),f=n("0BK2"),h=a.TypeError,v=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=p("state");f[y]=!0,r=function(e,t){if(c(e,y))throw new h("Object already initialized");return t.facade=e,u(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}}},cjT7:function(e,t,n){"use strict";e.exports=function(e){return null==e}},eV1F:function(e,t,n){},ewvW:function(e,t,n){"use strict";var r=n("HYAF"),i=Object;e.exports=function(e){return i(r(e))}},"g6v/":function(e,t,n){"use strict";var r=n("0Dky");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},glrk:function(e,t,n){"use strict";var r=n("hh1v"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},hh1v:function(e,t,n){"use strict";var r=n("Fib7");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},iOEq:function(e,t,n){"use strict";var r=n("SZB9"),i=function(e,t){return(i=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])})(e,t)};
/*!
FullCalendar Day Grid Plugin v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.buildRenderRange=function(t,n,i){var o,s=this.dateEnv,a=e.prototype.buildRenderRange.call(this,t,n,i),l=a.start,u=a.end;if(/^(year|month)$/.test(n)&&(l=s.startOfWeek(l),(o=s.startOfWeek(u)).valueOf()!==u.valueOf()&&(u=Object(r.u)(o,1))),this.options.monthMode&&this.options.fixedWeekCount){var c=Math.ceil(Object(r.U)(l,u));u=Object(r.u)(u,6-c)}return{start:l,end:u}},t}(r.c),l=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=Object(r.M)("div",{className:"fc-popover "+(t.className||""),style:{top:"0",left:"0"}});"function"==typeof t.content&&t.content(n),t.parentEl.appendChild(n),Object(r.sb)(n,"click",".fc-close",(function(t){e.hide()})),t.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},e.prototype.destroy=function(){this.hide(),this.el&&(Object(r.Fb)(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},e.prototype.position=function(){var e,t,n=this.options,i=this.el,o=i.getBoundingClientRect(),s=Object(r.I)(i.offsetParent),a=Object(r.D)(n.parentEl);e=n.top||0,t=void 0!==n.left?n.left:void 0!==n.right?n.right-o.width:0,e=Math.min(e,a.bottom-o.height-this.margin),e=Math.max(e,a.top+this.margin),t=Math.min(t,a.right-o.width-this.margin),t=Math.max(t,a.left+this.margin),Object(r.z)(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}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderSegHtml=function(e,t){var n,i,o=this.context,s=e.eventRange,a=s.def,l=s.ui,u=a.allDay,c=Object(r.E)(o,a,l),d=u&&e.isStart&&Object(r.G)(o,a,l),p=u&&e.isEnd&&Object(r.F)(o,a,l),f=this.getSegClasses(e,c,d||p,t),h=Object(r.R)(this.getSkinCss(l)),v="";return f.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(s))&&(v='<span class="fc-time">'+Object(r.jb)(n)+"</span>"),i='<span class="fc-title">'+(Object(r.jb)(a.title||"")||"&nbsp;")+"</span>",'<a class="'+f.join(" ")+'"'+(a.url?' href="'+Object(r.jb)(a.url)+'"':"")+(h?' style="'+h+'"':"")+'><div class="fc-content">'+("rtl"===o.options.dir?i+" "+v:v+" "+i)+"</div>"+(d?'<div class="fc-resizer fc-start-resizer"></div>':"")+(p?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},t.prototype.computeDisplayEventEnd=function(){return!1},t}(r.k),c=function(e){function t(t){var n=e.call(this)||this;return n.dayGrid=t,n}return o(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();)Object(r.Fb)(e.tbodyEl);this.rowStructs=null},t.prototype.renderSegRows=function(e){var t,n,r=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)r.push(this.renderSegRow(n,t[n]));return r},t.prototype.renderSegRow=function(e,t){var n,i,o,s,a,l,u,c=this.context.isRtl,d=this.dayGrid,p=d.colCnt,f=this.buildSegLevels(t),h=Math.max(1,f.length),v=document.createElement("tbody"),g=[],y=[],m=[];function b(e){for(;o<e;)(u=(m[n-1]||[])[o])?u.rowSpan=(u.rowSpan||1)+1:(u=document.createElement("td"),s.appendChild(u)),y[n][o]=u,m[n][o]=u,o++}for(n=0;n<h;n++){if(i=f[n],o=0,s=document.createElement("tr"),g.push([]),y.push([]),m.push([]),i)for(a=0;a<i.length;a++){l=i[a];var E=c?p-1-l.lastCol:l.firstCol,S=c?p-1-l.firstCol:l.lastCol;for(b(E),u=Object(r.M)("td",{className:"fc-event-container"},l.el),E!==S?u.colSpan=S-E+1:m[n][o]=u;o<=S;)y[n][o]=u,g[n][o]=l,o++;s.appendChild(u)}b(p);var w=d.renderProps.renderIntroHtml();w&&(c?Object(r.x)(s,w):Object(r.Ab)(s,w)),v.appendChild(s)}return{row:e,tbodyEl:v,cellMatrix:y,segMatrix:g,segLevels:f,segs:t}},t.prototype.buildSegLevels=function(e){var t,n,r,i=this.context.isRtl,o=this.dayGrid.colCnt,s=[];for(e=this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],r=0;r<s.length&&d(n,s[r]);r++);n.level=r,n.leftCol=i?o-1-n.lastCol:n.firstCol,n.rightCol=i?o-1-n.firstCol:n.lastCol,(s[r]||(s[r]=[])).push(n)}for(r=0;r<s.length;r++)s[r].sort(p);return s},t.prototype.groupSegRows=function(e){var t,n=[];for(t=0;t<this.dayGrid.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n},t.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},t}(u);function d(e,t){var n,r;for(n=0;n<t.length;n++)if((r=t[n]).firstCol<=e.lastCol&&r.lastCol>=e.firstCol)return!0;return!1}function p(e,t){return e.leftCol-t.leftCol}var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.attachSegs=function(e,t){var n=t.sourceSeg,i=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach((function(e,t){var o,s,a=Object(r.kb)('<div class="fc-mirror-skeleton"><table></table></div>');n&&n.row===t?o=n.el:(o=e.querySelector(".fc-content-skeleton tbody"))||(o=e.querySelector(".fc-content-skeleton table")),s=o.getBoundingClientRect().top-e.getBoundingClientRect().top,a.style.top=s+"px",a.querySelector("table").appendChild(i[t].tbodyEl),e.appendChild(a)}))},t}(c),h=function(e){function t(t){var n=e.call(this)||this;return n.fillSegTag="td",n.dayGrid=t,n}return o(t,e),t.prototype.renderSegs=function(t,n,r){"bgEvent"===t&&(r=r.filter((function(e){return e.eventRange.def.allDay}))),e.prototype.renderSegs.call(this,t,n,r)},t.prototype.attachSegs=function(e,t){var n,r,i,o=[];for(n=0;n<t.length;n++)r=t[n],i=this.renderFillRow(e,r),this.dayGrid.rowEls[r.row].appendChild(i),o.push(i);return o},t.prototype.renderFillRow=function(e,t){var n,i,o,s=this.dayGrid,a=this.context.isRtl,l=s.colCnt,u=a?l-1-t.lastCol:t.firstCol,c=(a?l-1-t.firstCol:t.lastCol)+1;n="businessHours"===e?"bgevent":e.toLowerCase(),o=(i=Object(r.kb)('<div class="fc-'+n+'-skeleton"><table><tr></tr></table></div>')).getElementsByTagName("tr")[0],u>0&&Object(r.x)(o,new Array(u+1).join('<td style="pointer-events:none"></td>')),t.el.colSpan=c-u,o.appendChild(t.el),c<l&&Object(r.x)(o,new Array(l-c+1).join('<td style="pointer-events:none"></td>'));var d=s.renderProps.renderIntroHtml();return d&&(a?Object(r.x)(o,d):Object(r.Ab)(o,d)),i},t}(r.l),v=function(e){function t(t){var n=e.call(this,t)||this,i=n.eventRenderer=new g(n),o=n.renderFrame=Object(r.wb)(n._renderFrame);return n.renderFgEvents=Object(r.wb)(i.renderSegs.bind(i),i.unrender.bind(i),[o]),n.renderEventSelection=Object(r.wb)(i.selectByInstanceId.bind(i),i.unselectByInstanceId.bind(i),[n.renderFgEvents]),n.renderEventDrag=Object(r.wb)(i.hideByHash.bind(i),i.showByHash.bind(i),[o]),n.renderEventResize=Object(r.wb)(i.hideByHash.bind(i),i.showByHash.bind(i),[o]),n}return o(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},t.prototype.render=function(e,t){this.renderFrame(e.date),this.renderFgEvents(t,e.fgSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDragInstances),this.renderEventResize(e.eventResizeInstances)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype._renderFrame=function(e){var t=this.context,n=t.theme,i=t.dateEnv,o=t.options,s=i.format(e,Object(r.P)(o.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+n.getClass("popoverHeader")+'"><span class="fc-title">'+Object(r.jb)(s)+'</span><span class="fc-close '+n.getIconClass("close")+'"></span></div><div class="fc-body '+n.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},t.prototype.queryHit=function(e,t,n,i){var o=this.props.date;if(e<n&&t<i)return{component:this,dateSpan:{allDay:!0,range:{start:o,end:Object(r.t)(o,1)}},dayEl:this.el,rect:{left:0,top:0,right:n,bottom:i},layer:1}},t}(r.b),g=function(e){function t(t){var n=e.call(this)||this;return n.dayTile=t,n}return o(t,e),t.prototype.attachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.dayTile.segContainerEl.appendChild(r.el)}},t.prototype.detachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];Object(r.Fb)(i.el)}},t}(u),y=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,r=e.cells;n<r.length;n++){var i=r[n];t.push(m(i.date,e.dateProfile,this.context,i.htmlAttrs))}return e.cells.length||t.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"></td>'),"rtl"===this.context.options.dir&&t.reverse(),"<tr>"+t.join("")+"</tr>"},e}();function m(e,t,n,i){var o=n.dateEnv,s=n.theme,a=Object(r.Db)(t.activeRange,e),l=Object(r.eb)(e,t,n);return l.unshift("fc-day",s.getClass("widgetContent")),'<td class="'+l.join(" ")+'"'+(a?' data-date="'+o.formatIso(e,{omitTime:!0})+'"':"")+(i?" "+i:"")+"></td>"}var b=Object(r.P)({day:"numeric"}),E=Object(r.P)({week:"numeric"}),S=function(e){function t(t,n){var i=e.call(this,t)||this;i.bottomCoordPadding=0,i.isCellSizesDirty=!1,i.renderProps=n;var o=i.eventRenderer=new c(i),s=i.fillRenderer=new h(i);i.mirrorRenderer=new f(i);var a=i.renderCells=Object(r.wb)(i._renderCells,i._unrenderCells);return i.renderBusinessHours=Object(r.wb)(s.renderSegs.bind(s,"businessHours"),s.unrender.bind(s,"businessHours"),[a]),i.renderDateSelection=Object(r.wb)(s.renderSegs.bind(s,"highlight"),s.unrender.bind(s,"highlight"),[a]),i.renderBgEvents=Object(r.wb)(s.renderSegs.bind(s,"bgEvent"),s.unrender.bind(s,"bgEvent"),[a]),i.renderFgEvents=Object(r.wb)(o.renderSegs.bind(o),o.unrender.bind(o),[a]),i.renderEventSelection=Object(r.wb)(o.selectByInstanceId.bind(o),o.unselectByInstanceId.bind(o),[i.renderFgEvents]),i.renderEventDrag=Object(r.wb)(i._renderEventDrag,i._unrenderEventDrag,[a]),i.renderEventResize=Object(r.wb)(i._renderEventResize,i._unrenderEventResize,[a]),i}return o(t,e),t.prototype.render=function(e,t){var n=e.cells;this.rowCnt=n.length,this.colCnt=n[0].length,this.renderCells(n,e.isRigid),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(t,e.dateSelectionSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderCells.unrender()},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:Object(r.t)(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},this.context)},t.prototype._renderCells=function(e,t){var n,i,o=this.context,s=o.calendar,a=o.view,l=o.isRtl,u=o.dateEnv,c=this.rowCnt,d=this.colCnt,p="";for(n=0;n<c;n++)p+=this.renderDayRowHtml(n,t);for(this.el.innerHTML=p,this.rowEls=Object(r.cb)(this.el,".fc-row"),this.cellEls=Object(r.cb)(this.el,".fc-day, .fc-disabled-day"),l&&this.cellEls.reverse(),this.rowPositions=new r.n(this.el,this.rowEls,!1,!0),this.colPositions=new r.n(this.el,this.cellEls.slice(0,d),!0,!1),n=0;n<c;n++)for(i=0;i<d;i++)s.publiclyTrigger("dayRender",[{date:u.toDate(e[n][i].date),el:this.getCellEl(n,i),view:a}]);this.isCellSizesDirty=!0},t.prototype._unrenderCells=function(){this.removeSegPopover()},t.prototype.renderDayRowHtml=function(e,t){var n=this.context.theme,r=["fc-row","fc-week",n.getClass("dayRow")];t&&r.push("fc-rigid");var i=new y(this.context);return'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(e){var t=this.context.isRtl,n=this.renderProps.renderNumberIntroHtml(e,this);return"<tr>"+(t?"":n)+this.renderNumberCellsHtml(e)+(t?n:"")+"</tr>"},t.prototype.renderNumberCellsHtml=function(e){var t,n,r=[];for(t=0;t<this.colCnt;t++)n=this.props.cells[e][t].date,r.push(this.renderNumberCellHtml(n));return this.context.isRtl&&r.reverse(),r.join("")},t.prototype.renderNumberCellHtml=function(e){var t,n,i=this.context,o=i.dateEnv,s=i.options,a="",l=Object(r.Db)(this.props.dateProfile.activeRange,e),u=this.getIsDayNumbersVisible()&&l;return u||this.renderProps.cellWeekNumbersVisible?((t=Object(r.eb)(e,this.props.dateProfile,this.context)).unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(n=o.weekDow),a+='<td class="'+t.join(" ")+'"'+(l?' data-date="'+o.formatIso(e,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(a+=Object(r.A)(s,o,{date:e,type:"week"},{class:"fc-week-number"},o.format(e,E))),u&&(a+=Object(r.A)(s,o,e,{class:"fc-day-number"},o.format(e,b))),a+="</td>"):"<td></td>"},t.prototype.updateSize=function(e){var t=this.context.calendar,n=this.fillRenderer,r=this.eventRenderer,i=this.mirrorRenderer;(e||this.isCellSizesDirty||t.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},t.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},t.prototype.buildColPositions=function(){this.colPositions.build()},t.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.positionToHit=function(e,t){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:n.lefts[i],right:n.rights[i],top:r.tops[o],bottom:r.bottoms[o]}}},t.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},t.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs))},t.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},t.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(e){var t,n,r=this.eventRenderer.rowStructs||[];for(t=0;t<r.length;t++)this.unlimitRow(t),!1!==(n=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,n)},t.prototype.computeRowLevelLimit=function(e){var t,n,i=this.rowEls[e].getBoundingClientRect().bottom,o=Object(r.bb)(this.eventRenderer.rowStructs[e].tbodyEl);for(t=0;t<o.length;t++)if((n=o[t]).classList.remove("fc-limited"),n.getBoundingClientRect().bottom>i)return t;return!1},t.prototype.limitRow=function(e,t){var n,i,o,s,a,l,u,c,d,p,f,h,v,g,y,m=this,b=this.colCnt,E=this.context.isRtl,S=this.eventRenderer.rowStructs[e],w=[],D=0,T=function(n){for(;D<n;)(l=m.getCellSegs(e,D,t)).length&&(d=i[t-1][D],y=m.renderMoreLink(e,D,l),g=Object(r.M)("div",null,y),d.appendChild(g),w.push(g)),D++};if(t&&t<S.segLevels.length){for(n=S.segLevels[t-1],i=S.cellMatrix,(o=Object(r.bb)(S.tbodyEl).slice(t)).forEach((function(e){e.classList.add("fc-limited")})),s=0;s<n.length;s++){a=n[s];var R=E?b-1-a.lastCol:a.firstCol,C=E?b-1-a.firstCol:a.lastCol;for(T(R),c=[],u=0;D<=C;)l=this.getCellSegs(e,D,t),c.push(l),u+=l.length,D++;if(u){for(p=(d=i[t-1][R]).rowSpan||1,f=[],h=0;h<c.length;h++)v=Object(r.M)("td",{className:"fc-more-cell",rowSpan:p}),l=c[h],y=this.renderMoreLink(e,R+h,[a].concat(l)),g=Object(r.M)("div",null,y),v.appendChild(g),f.push(v),w.push(v);d.classList.add("fc-limited"),Object(r.lb)(d,f),o.push(d)}}T(this.colCnt),S.moreEls=w,S.limitedEls=o}},t.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.forEach(r.Fb),t.moreEls=null),t.limitedEls&&(t.limitedEls.forEach((function(e){e.classList.remove("fc-limited")})),t.limitedEls=null)},t.prototype.renderMoreLink=function(e,t,n){var i=this,o=this.context,s=o.calendar,a=o.view,l=o.dateEnv,u=o.options,c=o.isRtl,d=Object(r.M)("a",{className:"fc-more"});return d.innerText=this.getMoreLinkText(n.length),d.addEventListener("click",(function(r){var o=u.eventLimitClick,d=c?i.colCnt-t-1:t,p=i.props.cells[e][d].date,f=r.currentTarget,h=i.getCellEl(e,t),v=i.getCellSegs(e,t),g=i.resliceDaySegs(v,p),y=i.resliceDaySegs(n,p);"function"==typeof o&&(o=s.publiclyTrigger("eventLimitClick",[{date:l.toDate(p),allDay:!0,dayEl:h,moreEl:f,segs:g,hiddenSegs:y,jsEvent:r,view:a}])),"popover"===o?i.showSegPopover(e,t,f,g):"string"==typeof o&&s.zoomTo(p,o)})),d},t.prototype.showSegPopover=function(e,t,n,i){var o,s,a=this,u=this.context,c=u.calendar,d=u.view,p=u.theme,f=u.isRtl,h=f?this.colCnt-t-1:t,g=n.parentNode;o=1===this.rowCnt?d.el:this.rowEls[e],s={className:"fc-more-popover "+p.getClass("popover"),parentEl:d.el,top:Object(r.I)(o).top,autoHide:!0,content:function(t){a.segPopoverTile=new v(t),a.updateSegPopoverTile(a.props.cells[e][h].date,i)},hide:function(){a.segPopoverTile.destroy(),a.segPopoverTile=null,a.segPopover.destroy(),a.segPopover=null}},f?s.right=Object(r.I)(g).right+1:s.left=Object(r.I)(g).left-1,this.segPopover=new l(s),this.segPopover.show(),c.releaseAfterSizingTriggers()},t.prototype.resliceDaySegs=function(e,t){for(var n=t,i={start:n,end:Object(r.t)(n,1)},o=[],a=0,l=e;a<l.length;a++){var u=l[a],c=u.eventRange,d=c.range,p=Object(r.ob)(d,i);p&&o.push(s({},u,{eventRange:{def:c.def,ui:s({},c.ui,{durationEditable:!1}),instance:c.instance,range:p},isStart:u.isStart&&p.start.valueOf()===d.start.valueOf(),isEnd:u.isEnd&&p.end.valueOf()===d.end.valueOf()}))}return o},t.prototype.getMoreLinkText=function(e){var t=this.context.options.eventLimitText;return"function"==typeof t?t(e):"+"+e+" "+t},t.prototype.getCellSegs=function(e,t,n){for(var r,i=this.eventRenderer.rowStructs[e].segMatrix,o=n||0,s=[];o<i.length;)(r=i[o][t])&&s.push(r),o++;return s},t}(r.b),w=Object(r.P)({week:"numeric"}),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processOptions=Object(r.vb)(t._processOptions),t.renderSkeleton=Object(r.wb)(t._renderSkeleton,t._unrenderSkeleton),t.renderHeadIntroHtml=function(){var e=t.context,n=e.theme,i=e.options;return t.colWeekNumbersVisible?'<th class="fc-week-number '+n.getClass("widgetHeader")+'" '+t.weekNumberStyleAttr()+"><span>"+Object(r.jb)(i.weekLabel)+"</span></th>":""},t.renderDayGridNumberIntroHtml=function(e,n){var i=t.context,o=i.options,s=i.dateEnv,a=n.props.cells[e][0].date;return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+Object(r.A)(o,s,{date:a,type:"week",forceOff:1===n.colCnt},s.format(a,w))+"</td>":""},t.renderDayGridBgIntroHtml=function(){var e=t.context.theme;return t.colWeekNumbersVisible?'<td class="fc-week-number '+e.getClass("widgetContent")+'" '+t.weekNumberStyleAttr()+"></td>":""},t.renderDayGridIntroHtml=function(){return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""},t}return o(t,e),t.prototype._processOptions=function(e){e.weekNumbers?e.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},t.prototype.render=function(t,n){e.prototype.render.call(this,t,n),this.processOptions(n.options),this.renderSkeleton(n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender()},t.prototype._renderSkeleton=function(e){this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new r.o("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-day-grid-container");var n=Object(r.M)("div",{className:"fc-day-grid"});t.appendChild(n),this.dayGrid=new S(n,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},t.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},t.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var e=this.context.options.eventLimit;return e&&"number"!=typeof e},t.prototype.updateSize=function(t,n,r){e.prototype.updateSize.call(this,t,n,r),this.dayGrid.updateSize(t)},t.prototype.updateBaseSize=function(e,t,n){var i,o,s=this.dayGrid,a=this.context.options.eventLimit,l=this.header?this.header.el:null;s.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=Object(r.ub)(Object(r.cb)(this.el,".fc-week-number"))),this.scroller.clear(),l&&Object(r.Ib)(l),s.removeSegPopover(),a&&"number"==typeof a&&s.limitRows(a),i=this.computeScrollerHeight(t),this.setGridHeight(i,n),a&&"number"!=typeof a&&s.limitRows(a),n||(this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(l&&Object(r.C)(l,o),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o))):n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},t.prototype.computeScrollerHeight=function(e){return e-Object(r.Hb)(this.el,this.scroller.el)},t.prototype.setGridHeight=function(e,t){this.context.options.monthMode?(t&&(e*=this.dayGrid.rowCnt/6),Object(r.W)(this.dayGrid.rowEls,e,!t)):t?Object(r.Jb)(this.dayGrid.rowEls):Object(r.W)(this.dayGrid.rowEls,e,!0)},t.prototype.computeDateScroll=function(e){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t}(r.r);D.prototype.dateProfileGeneratorClass=a;var T=function(e){function t(t){var n=e.call(this,t.el)||this;return n.slicer=new R,n.dayGrid=t,n}return o(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype.render=function(e,t){var n=this.dayGrid,r=e.dateProfile,i=e.dayTable;n.receiveContext(t),n.receiveProps(s({},this.slicer.sliceProps(e,r,e.nextDayThreshold,t.calendar,n,i),{dateProfile:r,cells:i.cells,isRigid:e.isRigid}),t)},t.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},t.prototype.queryHit=function(e,t){var n=this.dayGrid.positionToHit(e,t);if(n)return{component:this.dayGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},t}(r.b),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(r.q),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTable=Object(r.vb)(O),t}return o(t,e),t.prototype.render=function(t,n){e.prototype.render.call(this,t,n);var r=this.props.dateProfile,i=this.dayTable=this.buildDayTable(r,t.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:r,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},n),this.simpleDayGrid.receiveProps({dateProfile:r,dayTable:i,businessHours:t.businessHours,dateSelection:t.dateSelection,eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},n)},t.prototype._renderSkeleton=function(t){e.prototype._renderSkeleton.call(this,t),t.options.columnHeader&&(this.header=new r.d(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new T(this.dayGrid)},t.prototype._unrenderSkeleton=function(){e.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},t}(D);function O(e,t){var n=new r.e(e.renderRange,t);return new r.f(n,/year|month|week/.test(e.currentRangeUnit))}var I=Object(r.Q)({defaultView:"dayGridMonth",views:{dayGrid:C,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});t.a=I},iSVu:function(e,t,n){"use strict";var r=n("4zBA"),i=n("Fib7"),o=n("xs3f"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},kNi0:function(e,t,n){"use strict";var r=n("xluM"),i=n("Gi26"),o=n("OpvP"),s=n("rW0t"),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||i(e,"flags")||!o(a,e)?t:r(s,e)}},kOOl:function(e,t,n){"use strict";var r=n("4zBA"),i=0,o=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},kRJp:function(e,t,n){"use strict";var r=n("g6v/"),i=n("m/L8"),o=n("XGwC");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"m/L8":function(e,t,n){"use strict";var r=n("g6v/"),i=n("DPsx"),o=n("rtlb"),s=n("glrk"),a=n("oEtG"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},oEtG:function(e,t,n){"use strict";var r=n("wE6v"),i=n("2bX/");e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},pDWP:function(e,t,n){},rW0t:function(e,t,n){"use strict";var r=n("glrk");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},rtlb:function(e,t,n){"use strict";var r=n("g6v/"),i=n("0Dky");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},sEFX:function(e,t,n){"use strict";var r=n("AO7/"),i=n("9d/t");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},tiKp:function(e,t,n){"use strict";var r=n("2oRo"),i=n("VpIT"),o=n("Gi26"),s=n("kOOl"),a=n("BPiQ"),l=n("/b8u"),u=r.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},wE6v:function(e,t,n){"use strict";var r=n("xluM"),i=n("hh1v"),o=n("2bX/"),s=n("3Eq5"),a=n("SFrS"),l=n("tiKp"),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=s(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},xDBR:function(e,t,n){"use strict";e.exports=!1},xluM:function(e,t,n){"use strict";var r=n("QNWe"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},xrYK:function(e,t,n){"use strict";var r=n("4zBA"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},xs3f:function(e,t,n){"use strict";var r=n("xDBR"),i=n("2oRo"),o=n("Y3Q8"),s=e.exports=i["__core-js_shared__"]||o("__core-js_shared__",{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},yy0I:function(e,t,n){"use strict";var r=n("Fib7"),i=n("m/L8"),o=n("E9LY"),s=n("Y3Q8");e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&o(n,u,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},zBJ4:function(e,t,n){"use strict";var r=n("2oRo"),i=n("hh1v"),o=r.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},zc4i:function(e,t,n){"use strict";var r=n("2oRo"),i=n("Fib7"),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))}}]);