1/*! For license information please see 9160-f1929f139d0302a0b312.chunk.js.LICENSE.txt */ 2!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="556afb13-2908-4bba-a17f-d20e43e5e55b",t._sentryDebugIdIdentifier="sentry-dbid-556afb13-2908-4bba-a17f-d20e43e5e55b")}catch(t){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6ffbd01cf0691a08705f62d968183afee02bdfcf"},(globalThis.webpackChunktop_webgroup=globalThis.webpackChunktop_webgroup||[]).push([[55,358,6973,9160],{99160(t,e,n){"use strict";n.d(e,{init:()=>g});var i=n(95285),s=n.n(i);const o=n(90358);s().extend(o);const r=n(50892);s().extend(r);const l=n(18306);s().extend(l);const a=n(84486);s().extend(a);const c=n(49838);s().extend(c);const u=n(88361);s().extend(u);const d=n(88037);s().extend(d);const h=n(6973);s().extend(h);const f=n(70055);s().extend(f);const p=n(11742);s().extend(p),s().tz.setDefault("Europe/Paris"),n(72609),s().locale("fr"),s().updateLocale("fr",{weekStart:1,months:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],weekdays:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],weekdaysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],weekdaysMin:["Di","Lu","Ma","Me","Je","Ve","Sa"]});const g=function(t){if(t.fullCalendar&&"2.3.1"===t.fullCalendar.version)return;const e=t.fullCalendar={version:"2.3.1"},n=e.views={};t.fn.fullCalendar=function(n){const i=Array.prototype.slice.call(arguments,1);let s=this;return this.each(function(o,r){const l=t(r);let a,c=l.data("fullCalendar");"string"===typeof n?c&&t.isFunction(c[n])&&(a=c[n].apply(c,i),o||(s=a),"destroy"===n&&l.removeData("fullCalendar")):c||(c=new e.CalendarBase(l,n),l.data("fullCalendar",c),c.render())}),s};const i=["header","buttonText","buttonIcons","themeButtonIcons"];function o(){const e=Array.prototype.slice.call(arguments),n={};let s,o,r,l,a;for(s=0;s<i.length;s++){for(o=i[s],r=null,l=0;l<e.length;l++)a=e[l][o],t.isPlainObject(a)?r=t.extend(r||{},a):null!=a&&(r=null);null!==r&&(n[o]=r)}return e.unshift({}),e.push(n),t.extend.apply(t,e)}function r(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})}function l(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function a(){t("body").addClass("fc-not-allowed")}function c(){t("body").removeClass("fc-not-allowed")}function u(e,n,i){let s=Math.floor(n/e.length),o=Math.floor(n-s*(e.length-1)),r=[];const l=[],a=[];let c=0;d(e),e.each(function(n,i){const u=n===e.length-1?o:s,d=t(i).outerHeight(!0);d<u?(r.push(i),l.push(d),a.push(t(i).height())):c+=d}),i&&(n-=c,s=Math.floor(n/r.length),o=Math.floor(n-s*(r.length-1))),t(r).each(function(e,n){const i=e===r.length-1?o:s,c=l[e],u=i-(c-a[e]);c<i&&t(n).height(u)})}function d(t){t.height("")}function h(e){let n=0;return e.find("> *").each(function(e,i){const s=t(i).outerWidth();s>n&&(n=s)}),n++,e.width(n),n}function f(t,e){return t.height(e).addClass("fc-scroller"),t[0].scrollHeight-1>t[0].clientHeight||(p(t),!1)}function p(t){t.height("").removeClass("fc-scroller")}function g(e){const n=e.css("position"),i=e.parents().filter(function(){const e=t(this);return/(auto|scroll)/.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&i.length?i:t(e[0].ownerDocument||document)}function m(t){const e=t.offset();return{left:e.left,right:e.left+t.outerWidth(),top:e.top,bottom:e.top+t.outerHeight()}}function v(t){const e=t.offset(),n=y(t),i=e.left+S(t,"border-left-width")+n.left,s=e.top+S(t,"border-top-width")+n.top;return{left:i,right:i+t[0].clientWidth,top:s,bottom:s+t[0].clientHeight}}function y(e){const n=e.innerWidth()-e[0].clientWidth,i={left:0,right:0,top:0,bottom:e.innerHe
2ight()-e[0].clientHeight};return!function(){null===w&&(w=function(){const e=t("<div><div></div></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),n=e.children(),i=n.offset().left>e.offset().left;return e.remove(),i}());return w}()||"rtl"!==e.css("direction")?i.right=n:i.left=n,i}e.intersectionToSeg=D,e.applyAll=_,e.debounce=B,e.isInt=N,e.htmlEscape=O,e.cssToStr=$,e.proxy=V,e.getClientRect=v,e.getContentRect=function(t){const e=t.offset(),n=e.left+S(t,"border-left-width")+S(t,"padding-left"),i=e.top+S(t,"border-top-width")+S(t,"padding-top");return{left:n,right:n+t.width(),top:i,bottom:i+t.height()}},e.getScrollbarWidths=y;let w=null;function S(t,e){return parseFloat(t.css(e))||0}function b(t){return 1===t.which&&!t.ctrlKey}function D(t,e){const n=t.start,i=t.end,s=e.start,o=e.end;let r,l,a,c;if(i.isAfter(s)&&n.isBefore(o))return n.isSameOrAfter(s)?(r=n.clone(),a=!0):(r=s.clone(),a=!1),i.isSameOrBefore(o)?(l=i.clone(),c=!0):(l=o.clone(),c=!1),{start:r,end:l,isStart:a,isEnd:c}}e.computeIntervalUnit=x,e.durationHasTime=k;const E=["sun","mon","tue","wed","thu","fri","sat"],T=["year","month","week","day","hour","minute","second","millisecond"];function C(t,e){return s().duration({days:t.stripTime().diff(e.stripTime(),"days"),ms:t.time().asMilliseconds()-e.time().asMilliseconds()})}function H(t,e,n){return s().duration(Math.round(t.diff(e,n,!0)),n)}function x(t,e){let n,i,s;for(n=0;n<T.length&&(i=T[n],s=M(i,t,e),!(s>=1&&N(s)));n++);return i}function M(t,e,n){return null!=n?n.diff(e,t,!0):s().isDuration(e)?e.as(t):e.end.diff(e.start,t,!0)}function k(t){return Boolean(t.hour()||t.minute()||t.second()||t.millisecond())}function R(t){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)}const F={}.hasOwnProperty;function z(t){const e=function(){};return e.prototype=t,new e}function L(t,e){for(let n in t)Y(t,n)&&(e[n]=t[n])}function Y(t,e){return F.call(t,e)}function _(e,n,i){if(t.isFunction(e)&&(e=[e]),e){let t,s;for(t=0;t<e.length;t++)s=e[t].apply(n,i)||s;return s}}function A(){for(const t of arguments)if(void 0!==t)return t}function O(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function G(t){return t.replace(/&.*?;/g,"")}function $(e){const n=[];return t.each(e,function(t,e){null!=e&&n.push(t+":"+e)}),n.join(";")}function P(t,e){return t-e}function N(t){return t%1===0}function V(t,e){const n=t[e];return function(){return n.apply(t,arguments)}}function B(t,e){let n,i,s,o;const r=function(){const l=+new Date-o;l<e&&l>0?n=setTimeout(r,e-l):(n=null,t.apply(s,i),n||(s=i=null))};return function(){s=this,i=arguments,o=+new Date,n||(n=setTimeout(r,e))}}const j=/^\s*\d{4}-\d\d$/,W=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,I=s().prototype,Z=t.extend({},I);let U,X,q;function J(e,n,i){let o,r,l,a,c=e[0],u=1===e.length&&"string"===typeof c;s();return s().isDayjs(c)?(a=c.clone(),tt(c,a)):!function(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}(c)&&void 0!==c?(o=!1,r=!1,u?j.test(c)?(c+="-01",e=[c],o=!0,r=!0):(l=W.exec(c))&&(o=!l[5],r=!0):t.isArray(c)&&(r=!0),a=n||o?s().utc.apply(s(),e):s().apply(null,e),o?(a._ambigTime=!0,a._ambigZone=!0):i&&(r?a._ambigZone=!0:u&&(a.utcOffset?a=a.utcOffset(c):a.zone(c)))):a=s().apply(null,e),a._fullCalendar=!0,a}function K(t){if("string"===typeof t||t instanceof String){let e;null!==(e=/^(\d{2})\:(\d{2})(?:\:\d{2})?$/m.exec(t))&&(t=3600*e[1]+60*e[2],e[3]&&(t+=e[3]),t*=1e3)}return t}function Q(t,n){let i=!1,o=!1;const r=t.length,l=[];let a,c;for(a=0;a<r;a++)c=t[a],s().isDayjs(c)||(c=e.dayjs.parseZone(c)),i=i||c._ambigTime,o=o||c._ambigZone,l.push(c);for(a=0;a<r;a++)c=l[a],n||!i||c._ambigTime?o&&!c._ambigZone&&(l[a]=c.stripZone()):l[a]=c.stripTime();return l}function tt(t,e){t._ambigTime?e._ambigTime=!0:e._ambigTime&&(e._ambigTime=!1),t._ambigZone?e._ambigZone=!0:e._ambigZone&&(e._ambigZone=!1)}function et(t,e){return t.year(e[0]||0).month(e[1]||0).date(e[2]||0).hour(e[3]||0).minute(e[4]||0).second(e[5]||0).millisecond(e[6]||0)}function nt(t,e){return Z.format.call(t,e)}function it(t,e){let n,i="";for(n=0;n<e.length;n++)i+=ot(t,e[n]);return i}e.dayjs=function(){return J(arguments)},e.dayjs.utc=function(){let t=J(arguments,!0);return t.hasTime()&&(t=t.utc()),t},e.dayjs.parseZone=function(){return J(arguments,!0,!0)},I.clone=function(){const t=Z.clone.apply(this,arguments);return tt(this,t),this._fullCalendar&&(t._fullCalendar=!0),t},I.week=I.weeks=function(t){const e=(this._locale||this._lang)._fullCalendar_weekCalc;return null==t&&"function"===typeof e?e(this):"ISO"===e?Z.isoWeek.apply(this,arguments):Z.week.apply(this,arguments)},I.time=function(t){if(!this._fullCalendar){const t=J(this,arguments);return this.time(t)}if(null==t)return s().duration({hours:this.hour(),minutes:this.minute(),seconds:this.second(),milliseconds:this.millisecond()});{this._ambigTime=!1,s().isDuration(t)||s().isDayjs(t)||(t=s().duration(t));let e=0,n=Math.floor(t.asHours());return s().isDuration(t)&&(e=24*Math.floor(t.asDays()),n-=e),this.hour(e+n).minute(t.minutes()).second(t.seconds()).millisecond(t.milliseconds())}},I.startOf=function(t){const e=Z.startOf.apply(this,arguments);return tt(this,e),this._fullCalendar&&(e._fullCalendar=!0),e},I.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},I.stripTime=function(){let t;if(!this._ambigTime){t=this.toArray();const e=X(this.utc(),t.slice(0,3));return e._ambigTime=!0,e._ambigZone=!0,e}return this},I.hasTime=function(){return!this._ambigTime},I.stripZone=function(){let t,e;if(!this._ambigZone){t=this.toArray(),e=this._ambigTime;let n=X(this.utc(),t);return n._ambigTime=e||!1,n._ambigZone=!0,n}return this},I.hasZone=function(){return!this._ambigZone},I.local=function(){const t=this.toArray(),e=this._ambigZone;let n=Z.local.apply(this,arguments);return this._ambigTime=!1,this._ambigZone=!1,e?q(n,t):n},I.utc=function(){let t=Z.utc.apply(this,arguments);return t._ambigTime=!1,t._ambigZone=!1,J([t])},t.each(["zone","utcOffset"],function(t,e){Z[e]&&(I[e]=function(t){if(null!=t){this._ambigTime=!1,this._ambigZone=!1;const e=function(t){let e,n;if(null!==(e=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}(\+|-)(\d{2})\:(\d{2})/.exec(t)))return n=60*e[2]+1*e[3],"-"===e[1]&&(n*=-1),n}(t);e&&(arguments[0]=e)}return Z[e].apply(this,arguments)})}),I.format=function(){return this._fullCalendar&&arguments[0]?it(this,ut(arguments[0])):this._ambigTime?nt(this,"YYYY-MM-DD"):this._ambigZone?nt(this,"YYYY-MM-DD[T]HH:mm:ss"):Z.format.apply(this,arguments)},I.toISOString=function(){return this._ambigTime?nt(this,"YYYY-MM-DD"):this._ambigZone?nt(this,"YYYY-MM-DD[T]HH:mm:ss"):Z.toISOString.apply(this,arguments)},I.isWithin=function(t,e){const n=Q([this,t,e]);return n[0]>=n[1]&&n[0]<n[2]},I.isSame=function(t,n){let i;return this._fullCalendar?n?(i=Q([this,t],!0),Z.isSame.call(i[0],i[1],n)):(t=e.dayjs.parseZone(t),Z.isSame.call(this,t)&&Boolean(this._ambigTime)===Boolean(t._ambigTime)&&Boolean(this._ambigZone)===Boolean(t._ambigZone)):Z.isSame.apply(this,arguments)},t.each(["isBefore","isAfter"],function(t,e){I[e]=function(t,n){let i;return this._fullCalendar?(i=Q([this,t]),Z[e].call(i[0],i[1],n)):Z[e].apply(this,arguments)}}),U="_d"in s()()&&"updateOffset"in s(),X=U?function(t,e){t._d.setTime(Date.UTC.apply(Date,e)),s().updateOffset(t,!1)}:et,q=U?function(t,e){t._d.setTime(+new Date(e[0]||0,e[1]||0,e[2]||0,e[3]||0,e[4]||0,e[5]||0,e[6]||0)),s().updateOffset(t,!1)}:et;const st={t:function(t){return nt(t,"a").charAt(0)},T:function(t){return nt(t,"A").charAt(0)}};function ot(t,e){let n,i;return"string"===typeof e?e:(n=e.token)?st[n]?st[n](t):nt(t,n):e.maybe&&(i=it(t,e.maybe),i.match(/[1-9]/))?i:""}function rt(t,n,i,s,o){let r;t=e.dayjs.parseZone(t),n=e.dayjs.parseZone(n),r=(t.localeData||t.lang).call(t);try{i=r.longDateFormat(i)||i}catch(l){}return s=s||" - ",function(t,e,n,i,s){let o,r,l,a,c="",u="",d="",h="",f="";for(r=0;r<n.length&&(o=at(t,e,n[r]),!1!==o);r++)c+=o;for(l=n.length-1;l>r&&(o=at(t,e,n[l]),!1!==o);l--)u=o+u;for(a=r;a<=l;a++)d+=ot(t,n[a]),h+=ot(e,n[a]);(d||h)&&(f=s?h+i+d:d+i+h);return c+f+u}(t,n,ut(i),s,o)}e.formatRange=rt;const lt={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"};function at(t,e,n){let i,s;return"string"===typeof n?n:!!((i=n.token)&&(s=lt[i.charAt(0)],s&&t.isSame(e,s)))&&nt(t,i)}const ct={};function ut(t){return t in ct?ct[t]:ct[t]=dt(t)}function dt(t){const e=[],n=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;let i;for(;i=n.exec(t);)i[1]?e.push(i[1]):i[2]?e.push({maybe:dt(i[2])}):i[3]?e.push({token:i[3]}):i[5]&&e.push(i[5]);return e}function ht(){}e.Class=ht,ht.extend=function(t){const e=this;let n;return Y(t=t||{},"constructor")&&(n=t.constructor),"function"!==typeof n&&(n=t.constructor=function(){e.apply(this,arguments)}),n.prototype=z(e.prototype),L(t,n.prototype),function(t,e){const n=["constructor","toString","valueOf"];let i,s;for(i=0;i<n.length;
2i++)s=n[i],t[s]!==Object.prototype[s]&&(e[s]=t[s])}(t,n.prototype),L(e,n),n},ht.mixin=function(t){L(t.prototype||t,this.prototype)};const ft=ht.extend({isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,constructor:function(t){this.options=t||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){const e=this,n=this.options;this.el=t('<div class="fc-popover"/>').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl),this.el.on("click",".fc-close",function(){e.hide()}),n.autoHide&&t(document).on("mousedown",this.documentMousedownProxy=V(this,"documentMousedown"))},documentMousedown:function(e){this.el&&!t(e.target).closest(this.el).length&&this.hide()},destroy:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),t(document).off("mousedown",this.documentMousedownProxy)},position:function(){const e=this.options,n=this.el.offsetParent().offset(),i=this.el.outerWidth(),s=this.el.outerHeight(),o=t(window);let r,l,a,c,u,d=g(this.el);c=e.top||0,u=void 0!==e.left?e.left:void 0!==e.right?e.right-i:0,d.is(window)||d.is(document)?(d=o,r=0,l=0):(a=d.offset(),r=a.top,l=a.left),r+=o.scrollTop(),l+=o.scrollLeft(),!1!==e.viewportConstrain&&(c=Math.min(c,r+d.outerHeight()-s-this.margin),c=Math.max(c,r+this.margin),u=Math.min(u,l+d.outerWidth()-i-this.margin),u=Math.max(u,l+this.margin)),this.el.css({top:c-n.top,left
2:u-n.left})},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))}}),pt=ht.extend({grid:null,rowCoords:null,colCoords:null,containerEl:null,bounds:null,constructor:function(t){this.grid=t},build:function(){this.rowCoords=this.grid.computeRowCoords(),this.colCoords=this.grid.computeColCoords(),this.computeBounds()},clear:function(){this.rowCoords=null,this.colCoords=null},getCell:function(e,n){const i=this.rowCoords,s=i.length,o=this.colCoords,r=o.length;let l,a,c,u=null,d=null;if(this.inBounds(e,n)){for(l=0;l<s;l++)if(a=i[l],n>=a.top&&n<a.bottom){u=l;break}for(l=0;l<r;l++)if(a=o[l],e>=a.left&&e<a.right){d=l;break}if(null!==u&&null!==d)return c=this.grid.getCell(u,d),c.grid=this.grid,t.extend(c,i[u],o[d]),c}return null},computeBounds:function(){this.bounds=this.containerEl?v(this.containerEl):null},inBounds:function(t,e){const n=this.bounds;return!n||t>=n.left&&t<n.right&&e>=n.top&&e<n.bottom}}),gt=ht.extend({coordMaps:null,constructor:function(t){this.coordMaps=t},build:function(){const t=this.coordMaps;let e;for(e=0;e<t.length;e++)t[e].build()},getCell:function(t,e){const n=this.coordMaps;let i,s=null;for(i=0;i<n.length&&!s;i++)s=n[i].getCell(t,e);return s},clear:function(){const t=this.coordMaps;let e;for(e=0;e<t.length;e++)t[e].clear()}}),mt=e.DragListener=ht.extend({options:null,isListening:!1,isDragging:!1,originX:null,originY:null,mousemoveProxy:null,mouseupProxy:null,subjectEl:null,subjectHref:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,constructor:function(t){t=t||{},this.options=t,this.subjectEl=t.subjectEl},mousedown:function(t){b(t)&&(t.preventDefault(),this.startListening(t),this.options.distance||this.startDrag(t))},startListening:function(e){let n;this.isListening||(e&&this.options.scroll&&(n=g(t(e.target)),n.is(window)||n.is(document)||(this.scrollEl=n,this.scrollHandlerProxy=B(V(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),t(document).on("mousemove",this.mousemoveProxy=V(this,"mousemove")).on("mouseup",this.mouseupProxy=V(this,"mouseup")).on("selectstart",this.preventDefault),e?(this.originX=e.pageX,this.originY=e.pageY):(this.originX=0,this.originY=0),this.isListening=!0,this.listenStart(e))},listenStart:function(t){this.trigger("listenStart",t)},mousemove:function(t){const e=t.pageX-this.originX,n=t.pageY-this.originY;let i,s;this.isDragging||(i=this.options.distance||1,s=e*e+n*n,s>=i*i&&this.startDrag(t)),this.isDragging&&this.drag(e,n,t)},startDrag:function(t){this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.dragStart(t))},dragStart:function(t){const e=this.subjectEl;this.trigger("dragStart",t),(this.subjectHref=e?e.attr("href"):null)&&e.removeAttr("href")},drag:function(t,e,n){this.trigger("drag",t,e,n),this.updateScroll(n)},mouseup:function(t){this.stopListening(t)},stopDrag:function(t){this.isDragging&&(this.stopScrolling(),this.dragStop(t),this.isDragging=!1)},dragStop:function(t){const e=this;this.trigger("dragStop",t),setTimeout(function(){e.subjectHref&&e.subjectEl.attr("href",e.subjectHref)},0)},stopListening:function(e){this.stopDrag(e),this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),t(document).off("mousemove",this.mousemoveProxy).off("mouseup",this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.listenStop(e))},listenStop:function(t){this.trigger("listenStop",t)},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(t){t.preventDefault()},computeScrollBounds:function(){const t=this.scrollEl;this.scrollBounds=t?m(t):null},updateScroll:function(t){const e=this.scrollSensitivity,n=this.scrollBounds;let i,s,o,r,l=0,a=0;n&&(i=(e-(t.pageY-n.top))/e,s=(e-(n.bottom-t.pageY))/e,o=(e-(t.pageX-n.left))/e,r=(e-(n.right-t.pageX))/e,i>=0&&i<=1?l=i*this.scrollSpeed*-1:s>=0&&s<=1&&(l=s*this.scrollSpeed),o>=0&&o<=1?a=o*this.scrollSpeed*-1:r>=0&&r<=1&&(a=r*this.scrollSpeed)),this.setScrollVel(l,a)},setScrollVel:function(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(V(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){const t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){const t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.scrollStop())},scrollHandler:function(){this.scrollIntervalId||this.scrollStop()},scrollStop:function(){}}),vt=mt.extend({coordMap:null,origCell:null,cell:null,coordAdjust:null,constructor:function(t,e){mt.prototype.constructor.call(this,e),this.coordMap=t},listenStart:function(t){const e=this.subjectEl;let n,i,s;var o,r,l;mt.prototype.listenStart.apply(this,arguments),this.computeCoords(),t?(i={left:t.pageX,top:t.pageY},s=i,e&&(n=m(e),s=function(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}(s,n)),this.origCell=this.getCell(s.left,s.top),e&&this.options.subjectCenter&&(this.origCell&&(n=function(t,e){const n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom&&n}
2(this.origCell,n)||n),s={left:((l=n).left+l.right)/2,top:(l.top+l.bottom)/2}),this.coordAdjust=(r=i,{left:(o=s).left-r.left,top:o.top-r.top})):(this.origCell=null,this.coordAdjust=null)},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},dragStart:function(t){let e;mt.prototype.dragStart.apply(this,arguments),e=this.getCell(t.pageX,t.pageY),e&&this.cellOver(e)},drag:function(t,e,n){let i;mt.prototype.drag.apply(this,arguments),i=this.getCell(n.pageX,n.pageY),yt(i,this.cell)||(this.cell&&this.cellOut(),i&&this.cellOver(i))},dragStop:function(){this.cellDone(),mt.prototype.dragStop.apply(this,arguments)},cellOver:function(t){this.cell=t,this.trigger("cellOver",t,yt(t,this.origCell),this.origCell)},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cellDone(),this.cell=null)},cellDone:function(){this.cell&&this.trigger("cellDone",this.cell)},listenStop:function(){mt.prototype.listenStop.apply(this,arguments),this.origCell=this.cell=null,this.coordMap.clear()},scrollStop:function(){mt.prototype.scrollStop.apply(this,arguments),this.computeCoords()},getCell:function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.coordMap.getCell(t,e)}});function yt(t,e){return!t&&!e||!(!t||!e)&&(t.grid===e.grid&&t.row===e.row&&t.col===e.col)}const wt=ht.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(e,n){this.options=n=n||{},this.sourceEl=e,this.parentEl=n.parentEl?t(n.parentEl):e.parent()},start:function(e){this.isFollowing||(this.isFollowing=!0,this.mouseY0=e.pageY,this.mouseX0=e.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),t(document).on("mousemove",this.mousemoveProxy=V(this,"mousemove")))},stop:function(e,n){const i=this,s=this.options.revertDuration;function o(){this.isAnimating=!1,i.destroyEl(),this.top0=this.left0=null,n&&n()}this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,t(document).off("mousemove",this.mousemoveProxy),e&&s&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:s,complete:o})):o())},getEl:function(){let t=this.el;return t||(this.sourceEl.width(),t=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),t},destroyEl:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){let t,e;this.getEl(),null===this.top0&&(this.sourceEl.width(),t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(t){this.topDelta=t.pageY-this.mouseY0,this.leftDelta=t.pageX-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),St=ht.extend({view:null,isRTL:null,cellHtml:"<td></td>",constructor:function(t){this.view=t,this.isRTL=t.opt("isRTL")},rowHtml:function(t,e){const n=this.getHtmlRenderer("cell",t);let i,s,o="";for(e=e||0,i=0;i<this.colCnt;i++)s=this.getCell(e,i),o+=n(s);return o=this.bookendCells(o,t,e),"<tr>"+o+"</tr>"},bookendCells:function(t,e,n){const i=this.getHtmlRenderer("intro",e)(n||0),s=this.getHtmlRenderer("outro",e)(n||0),o=this.isRTL?s:i,r=this.isRTL?i:s;return"string"===typeof t?o+t+r:t.prepend(o).append(r)},getHtmlRenderer:function(t,e){const n=this.view;let i,s,o,r;var l;return i=t+"Html",e&&(s=e+((l=t).charAt(0).toUpperCase()+l.slice(1))+"Html"),s&&(r=n[s])?o=n:s&&(r=this[s])?o=this:(r=n[i])?o=n:(r=this[i])&&(o=this),"function"===typeof r?function(){return r.apply(o,arguments)||""}:function(){return r||""}}}),bt=e.Grid=St.extend({start:null,end:null,rowCnt:0,colCnt:0,rowData:null,colData:null,el:null,coordMap:null,elsByFill:null,externalDragStartProxy:null,colHeadFormat:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,cellDuration:null,largeUnit:null,constructor:function(){St.apply(this,arguments),this.coordMap=new pt(this),this.elsByFill={},this.externalDragStartProxy=V(this,"externalDragStart")},computeColHeadFormat:function(){},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(t){const e=this.view;let n,i;this.start=t.start.clone(),this.end=t.end.clone(),this.rowData=[],this.colData=[],this.updateCells(),this.colHeadFormat=e.opt("columnFormat")||this.computeColHeadFormat(),this.eventTimeFormat=e.opt("eventTimeFormat")||e.opt("timeFormat")||this.computeEventTimeFormat(),n=e.opt("displayEventTime"),null==n&&(n=this.computeDisplayEventTime()),i=e.opt("displayEventEnd"),null==i&&(i=this.computeDisplayEventEnd()),this.displayEventTime=n,this.displayEventEnd=i},updateCells:function(){},rangeToSegs:function(t){},diffDates:function(t,e){return this.largeUnit?H(t,e,this.largeUnit):C(t,e)},getCell:function(e,n){let i;return null==n&&("number"===typeof e?(n=e%this.colCnt,e=Math.floor(e/this.colCnt)):(n=e.col,e=e.row)),i={row:e,col:n},t.extend(i,this.getRowData(e),this.getColData(n)),t.extend(i,this.computeCellRange(i)),i},computeCellRange:function(t){const e=this.computeCellDate(t);return{start:e,end:J([e.add(this.cellDuration)])}},computeCellDate:function(t){},getRowData:function(t){return this.rowData[t]||{}},getColData:function(t){return this.colData[t]||{}},getRowEl:function(t){},getColEl:function(t){},getCellDayEl:function(t){return this.getColEl(t.col)||this.getRowEl(t.row)},computeRowCoords:function(){const t=[];let e,n,i;for(e=0;e<this.rowCnt;e++)n=this.getRowEl(e),i=n.offset().top,t.push({top:i,bottom:i+n.outerHeight()});return t},computeColCoords:function(){const t=[];let e,n,i;for(e=0;e<this.colCnt;e++)n=this.getColEl(e),i=n.offset().left,t.push({left:i,right:i+n.outerWidth()});return t},setElement:function(e){const n=this;this.el=e,e.on("mousedown",function(e){t(e.target).is(".fc-event-container *, .fc-more")||t(e.target).closest(".fc-popover").length||n.dayMousedown(e)}),this.bindSegHandlers(),this.bindGlobalHandlers()},removeElement:function(){this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},destroyDates:function(){},bindGlobalHandlers:function(){t(document).on("dragstart sortstart",this.externalDragStartProxy)},unbindGlobalHandlers:function(){t(document).off("dragstart sortstart",this.externalDragStartProxy)},dayMousedown:function(t){const e=this,n=this.view,i=n.opt("selectable");let s,o;const r=new vt(this.coordMap,{scroll:n.opt("dragScroll"),dragStart:function(){n.unselect()},cellOver:function(t,n,r){r&&(s=n?t:null,i&&(o=e.computeSelection(r,t),o?e.render
2Selection(o):a()))},cellOut:function(t){s=null,o=null,e.destroySelection(),c()},listenStop:function(t){s&&n.trigger("dayClick",e.getCellDayEl(s),s.start,t),o&&n.reportSelection(o,t),c()}});r.mousedown(t)},renderRangeHelper:function(t,e){const n=this.fabricateHelperEvent(t,e);this.renderHelper(n,e)},fabricateHelperEvent:function(t,e){const n=e?z(e.event):{};return n.start=t.start.clone(),n.end=t.end?t.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventRange(n),n.className=(n.className||[]).concat("fc-helper"),e||(n.editable=!1),n},renderHelper:function(t,e){},destroyHelper:function(){},renderSelection:function(t){this.renderHighlight(t)},destroySelection:function(){this.destroyHighlight()},computeSelection:function(t,e){const n=[t.start,t.end,e.start,e.end];let i;return n.sort(P),i={start:n[0].clone(),end:n[3].clone()},this.view.calendar.isSelectionRangeAllowed(i)?i:null},renderHighlight:function(t){this.renderFill("highlight",this.rangeToSegs(t))},destroyHighlight:function(){this.destroyFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(t,e){},destroyFill:function(t){const e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},renderFillSegEls:function(e,n){const i=this,s=this[e+"SegEl"];let o="";const r=[];let l;if(n.length){for(l=0;l<n.length;l++)o+=this.fillSegHtml(e,n[l]);t(o).each(function(e,o){const l=n[e];let a=t(o);s&&(a=s.call(i,l,a)),a&&(a=t(a),a.is(i.fillSegTag)&&(l.el=a,r.push(l)))})}return r},fillSegTag:"div",fillSegHtml:function(t,e){const n=this[t+"SegClasses"],i=this[t+"SegCss"],s=n?n.call(this,e):[],o=$(i?i.call(this,e):{});return"<"+this.fillSegTag+(s.length?' class="'+s.join(" ")+'"':"")+(o?' style="'+o+'"':"")+" ></"+this.fillSegTag+">"},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(t){const e=this.view,n=t.start;return'<th class="fc-day-header '+e.widgetHeaderClass+" fc-"+E[n.day()]+'">'+n.format(this.colHeadFormat)+"</th>"},bgCellHtml:function(t){const e=this.view,n=t.start,i=this.getDayClasses(n);return i.unshift("fc-day",e.widgetContentClass),'<td class="'+i.join(" ")+'" data-date="'+n.format("YYYY-MM-DD")+'"></td>'},getDayClasses:function(t){const e=this.view,n=e.calendar.getNow().stripTime(),i=["fc-"+E[t.day()]];return 1===e.intervalDuration.as("months")&&t.month()!==e.intervalStart.month()&&i.push("fc-other-month"),t.isSame(n,"day")?i.push("fc-today",e.highlightStateClass):t<n?i.push("fc-past"):i.push("fc-future"),i}});function Dt(t){const e=Et(t);return"background"===e||"inverse-background"===e}function Et(t){return A((t.source||{}).rendering,t.rendering)}function Tt(t,e){return t.eventStartMS-e.eventStartMS}function Ct(t,e){return t.eventStartMS-e.eventStartMS||e.eventDurationMS-t.eventDurationMS||e.event.allDay-t.event.allDay||(t.event.title||"").localeCompare(e.event.title)}bt.mixin({mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExter
2nal:!1,segs:null,renderEvents:function(t){const e=this.eventsToSegs(t);let n=[],i=[];for(const s of e)Dt(s.event)?n.push(s):i.push(s);n=this.renderBgSegs(n)||n,i=this.renderFgSegs(i)||i,this.segs=n.concat(i)},destroyEvents:function(){this.triggerSegMouseout(),this.destroyFgSegs(),this.destroyBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(t){},destroyFgSegs:function(){},renderFgSegEls:function(e,n){const i=this.view;let s="";const o=[];if(e.length){for(const t of e)s+=this.fgSegHtml(t,n);t(s).each(function(n,s){const r=e[n],l=i.resolveEventEl(r.event,t(s));l&&(l.data("fc-seg",r),r.el=l,o.push(r))})}return o},fgSegHtml:function(t,e){},renderBgSegs:function(t){return this.renderFill("bgEvent",t)},destroyBgSegs:function(){this.destroyFill("bgEvent")},bgEventSegEl:function(t,e){return this.view.resolveEventEl(t.event,e)},bgEventSegClasses:function(t){const e=t.event,n=e.source||{};return["fc-bgevent"].concat(e.className,n.className||[])},bgEventSegCss:function(t){const e=this.view,n=t.event,i=n.source||{};return{"background-color":n.backgroundColor||n.color||i.backgroundColor||i.color||e.opt("eventBackgroundColor")||e.opt("eventColor")}},businessHoursSegClasses:function(t){return["fc-nonbusiness","fc-bgevent"]},bindSegHandlers:function(){const e=this,n=this.view;t.each({mouseenter:function(t,n){e.triggerSegMouseover(t,n)},mouseleave:function(t,n){e.triggerSegMouseout(t,n)},click:function(t,e){return n.trigger("eventClick",this,t.event,e)},mousedown:function(i,s){t(s.target).is(".fc-resizer")&&n.isEventResizable(i.event)?e.segResizeMousedown(i,s,t(s.target).is(".fc-start-resizer")):n.isEventDraggable(i.event)&&e.segDragMousedown(i,s)}},function(n,i){e.el.on(n,".fc-event-container > *",function(n){const s=t(this).data("fc-seg");if(s&&!e.isDraggingSeg&&!e.isResizingSeg)return i.call(this,s,n)})})},triggerSegMouseover:function(t,e){this.mousedOverSeg||(this.mousedOverSeg=t,this.view.trigger("eventMouseover",t.el[0],t.event,e))},triggerSegMouseout:function(t,e){e=e||{},this.mousedOverSeg&&(t=t||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",t.el[0],t.event,e))},segDragMousedown:function(t,e){const n=this,i=this.view,s=i.calendar,o=t.el,r=t.event;let l;const u=new wt(t.el,{parentEl:i.el,opacity:i.opt("dragOpacity"),revertDuration:i.opt("dragRevertDuration"),zIndex:2}),d=new vt(i.coordMap,{distance:5,scroll:i.opt("dragScroll"),subjectEl:o,subjectCenter:!0,listenStart:function(t){u.hide(),u.start(t)},dragStart:function(e){n.triggerSegMouseout(t,e),n.segDragStart(t,e),i.hideEvent(r)},cellOver:function(e,o,c){t.cell&&(c=t.cell),l=n.computeEventDrop(c,e,r),l&&!s.isEventRangeAllowed(l,r)&&(a(),l=null),l&&i.renderDrag(l,t)?u.hide():u.show(),o&&(l=null)},cellOut:function(){i.destroyDrag(),u.show(),l=null},cellDone:function(){c()},dragStop:function(e){u.stop(!l,function(){i.destroyDrag(),i.showEvent(r),n.segDragStop(t,e),l&&i.reportEventDrop(r,l,this.largeUnit,o,e)})},listenStop:function(){u.stop()}});d.mousedown(e)},segDragStart:function(t,e){this.isDraggingSeg=!0,this.view.trigger("eventDragStart",t.el[0],t.event,e,{})},segDragStop:function(t,e){this.isDraggingSeg=!1,this.view.trigger("eventDragStop",t.el[0],t.event,e,{})},computeEventDrop:function(t,e,n){const i=this.view.calendar,s=t.start,o=e.start;let r,l;return s.hasTime()===o.hasTime()?(r=this.diffDates(o,s),n.allDay&&k(r)?(l={start:n.start.clone(),end:i.getEventEnd(n),allDay:!1},i.normalizeEventRangeTimes(l)):l={start:n.start.clone(),end:n.end?n.end.clone():null,allDay:n.allDay},l.start=l.start.add(r),l.end&&(l.end=l.end.add(r))):l={start:o.clone(),end:null,allDay:!o.hasTime()},l},applyDragOpacity:function(t){const e=this.view.opt("dragOpacity");null!=e&&t.each(function(t,n){n.style.opacity=e})},externalDragStart:function(e,n){const i=this.view;let s,o;i.opt("droppable")&&(s=t((n?n.item:null)||e.target),o=i.opt("dropAccept"),(t.isFunction(o)?o.call(s[0],s):s.is(o))&&(this.isDraggingExter
2nal||this.listenToExternalDrag(s,e,n)))},listenToExternalDrag:function(n,i,o){const r=this,l=function(n){let i,o,r,l,a=e.dataAttrPrefix;a&&(a+="-");i=n.data(a+"event")||null,i&&(i="object"===typeof i?t.extend({},i):{},o=i.start,null==o&&(o=i.time),r=i.duration,l=i.stick,delete i.start,delete i.time,delete i.duration,delete i.stick);null==o&&(o=n.data(a+"start"));null==o&&(o=n.data(a+"time"));null==r&&(r=n.data(a+"duration"));null==l&&(l=n.data(a+"stick"));return o=null!=o?s().duration(o):null,r=null!=r?s().duration(r):null,l=Boolean(l),{eventProps:i,startTime:o,duration:r,stick:l}}(n);let u,d;u=new vt(this.coordMap,{listenStart:function(){r.isDraggingExternal=!0},cellOver:function(t){d=r.computeExternalDrop(t,l),d?r.renderDrag(d):a()},cellOut:function(){d=null,r.destroyDrag(),c()},dragStop:function(){r.destroyDrag(),c(),d&&r.view.reportExternalDrop(l,d,n,i,o)},listenStop:function(){r.isDraggingExternal=!1}}),u.startDrag(i)},computeExternalDrop:function(t,e){const n={start:t.start.clone(),end:null};return e.startTime&&!n.start.hasTime()&&(n.start=n.start.time(e.startTime)),e.duration&&(n.end=n.start.add(e.duration)),this.view.calendar.isExternalDropRangeAllowed(n,e.eventProps)?n:null},renderDrag:function(t,e){},destroyDrag:function(){},segResizeMousedown:function(t,e,n){const i=this,s=this.view,o=s.calendar,r=t.el,l=t.event,u=o.getEventEnd(l);let d,h;d=new vt(this.coordMap,{distance:5,scroll:s.opt("dragScroll"),subjectEl:r,dragStart:function(e){i.triggerSegMouseout(t,e),i.segResizeStart(t,e)},cellOver:function(e,r,c){h=n?i.computeEventStartResize(c,e,l):i.computeEventEndResize(c,e,l),h&&(o.isEventRangeAllowed(h,l)?h.start.isSame(l.start)&&h.end.isSame(u)&&(h=null):(a(),h=null)),h&&(s.hideEvent(l),i.renderEventResize(h,t))},cellOut:function(){h=null},cellDone:function(){i.destroyEventResize(),s.showEvent(l),c()},dragStop:function(e){i.segResizeStop(t,e),h&&s.reportEventResize(l,h,this.largeUnit,r,e)}}),d.mousedown(e)},segResizeStart:function(t,e){this.isResizingSeg=!0,this.view.trigger("eventResizeStart",t.el[0],t.event,e,{})},segResizeStop:function(t,e){this.isResizingSeg=!1,this.view.trigger("eventResizeStop",t.el[0],t.event,e,{})},computeEventStartResize:function(t,e,n){return this.computeEventResize("start",t,e,n)},computeEventEndResize:function(t,e,n){return this.computeEventResize("end",t,e,n)},computeEventResize:function(t,e,n,i){const s=this.view.calendar,o=this.diffDates(n[t],e[t]);let r,l;return r={start:i.start.clone(),end:s.getEventEnd(i),allDay:i.allDay},r.allDay&&k(o)&&(r.allDay=!1,s.normalizeEventRangeTimes(r)),r[t]=r[t].add(o),r.start.isBefore(r.end)||(l=i.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration,this.cellDuration&&this.cellDuration<l&&(l=this.cellDuration),"start"===t?r.start=r.end.subtract(l):r.end=r.start.add(l)),r},renderEventResize:function(t,e){},destroyEventResize:function(){},getEventTimeText:function(t,e,n){return null==e&&(e=this.eventTimeFormat),null==n&&(n=this.displayEventEnd),this.displayEventTime&&t.start.hasTime()?n&&t.end?this.view.formatRange(t,e):t.start.format(e):""},getSegClasses:function(t,e,n){const i=t.event,s=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(i.className,i.source?i.source.className:[]);return e&&s.push("fc-draggable"),n&&s.push("fc-resizable"),s},getEventSkinCss:function(t){const e=this.view,n=t.source||{},i=t.color,s=n.color,o=e.opt("eventColor");return{"background-color":t.backgroundColor||i||n.backgroundColor||s||e.opt("eventBackgroundColor")||o,"border-color":t.borderColor||i||n.borderColor||s||e.opt("eventBorderColor")||o,color:t.textColor||n.textColor||e.opt("eventTextColor")}},eventsToSegs:function(t,e){const n=this.eventsToRanges(t),i=[];for(const s of n)i.push(...this.eventRangeToSegs(s,e));return i},eventsToRanges:function(e){const n=this,i=function(t){const e={};for(const n of t)(e[n._id]||(e[n._id]=[])).push(n);return e}(e),s=[];return t.each(i,function(t,e){var i;e.length&&s.push(...(i=e[0],"inverse-background"===Et(i)?n.eventsToInverseRanges(e):n.eventsToNormalRanges(e)))}),s},eventsToNormalRanges:function(t){const e=this.view.calendar,n=[];let i,s;for(const o of t)i=o.start.stripZone(),s=e.getEventEnd(o).stripZone(),n.push({event:o,start:i,end:s,eventStartMS:+i,eventDurationMS:s-i});return n},eventsToInverseRanges:function(t){const e=this.view,n=e.start.stripZone(),i=e.end.stripZone(),s=this.eventsToNormalRanges(t),o=[],r=t[0];let l=n;s.sort(Tt);for(const a of s)a.start>l&&o.push({event:r,start:l,end:a.start}),l=a.end;return l<i&&o.push({event:r,start:l,end:i}),o},eventRangeToSegs:function(t,e){const n=e?e(t):this.rangeToSegs(t);for(const i of n)i.event=t.event,i.eventStartMS=t.eventStartMS,i.eventDurationMS=t.eventDurationMS;return n}}),e.compareSegs=Ct,e.dataAttrPrefix="";const Ht=bt.extend({numbersVisible:!1,bottomCoordPadding:0,breakOnWeeks:null,cellDates:null,dayToCellOffsets:null,rowEls:null,dayEls:null,helperEls:null,constructor:function(){bt.apply(this,arguments),this.cellDuration=s().duration(1,"day")},renderDates:function(t){const e=this.view,n=this.rowCnt,i=n*this.colCnt;let s,o,r,l="";for(s=0;s<n;s++)l+=this.dayRowHtml(s,t);for(this.el.html(l),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),o=0;o<i;o++)r=this.getCell(o),e.trigger("dayRender",null,r.start,this.dayEls.eq(o))},destroyDates:function(){this.destroySegPopover()},renderBusinessHours:function(){const t=this.view.calendar.getBusinessHoursEvents(!0),e=this.eventsToSegs(t);this.renderFill("businessHours",e,"bgevent")},dayRowHtml:function(t,e){const n=["fc-row","fc-week",this.view.widgetContentClass];return e&&n.push("fc-rigid"),'<div class="'+n.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",t)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(t){return this.bgCellHtml(t)},computeColHeadFormat:function(){return this.rowCnt>1?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1===this.colCnt},updateCells:function(){let t,e,n,i;if(this.updateCellDates(),t=this.cellDates,this.breakOnWeeks){for(e=t[0].day(),i=1;i<t.length&&t[i].day()!==e;i++);n=Math.ceil(t.length/i)}else n=1,i=t.length;this.rowCnt=n,this.colCnt=i},updateCellDates:function(){const t=this.view;let e=this.start.clone();const n=[];let i=-1;const s=[];for(;e.isBefore(this.end);
2)t.isHiddenDay(e)?s.push(i+.5):(i++,s.push(i),n.push(e.clone())),e=e.add(1,"days");this.cellDates=n,this.dayToCellOffsets=s},computeCellDate:function(t){const e=this.colCnt,n=t.row*e+(this.isRTL?e-t.col-1:t.col);return this.cellDates[n].clone()},getRowEl:function(t){return this.rowEls.eq(t)},getColEl:function(t){return this.dayEls.eq(t)},getCellDayEl:function(t){return this.dayEls.eq(t.row*this.colCnt+t.col)},computeRowCoords:function(){const t=bt.prototype.computeRowCoords.call(this);return t[t.length-1].bottom+=this.bottomCoordPadding,t},rangeToSegs:function(t){const e=this.isRTL,n=this.rowCnt,i=this.colCnt;let s,o,r,l,a,c,u,d,h,f,p=[];for(t=this.view.computeDayRange(t),s=this.dateToCellOffset(t.start),o=this.dateToCellOffset(t.end=t.end.subtract(1,"days")),r=0;r<n;r++)l=r*i,a=l+i-1,d=Math.max(l,s),h=Math.min(a,o),d=Math.ceil(d),h=Math.floor(h),d<=h&&(c=d===s,u=h===o,d-=l,h-=l,f={row:r,isStart:c,isEnd:u},e?(f.leftCol=i-h-1,f.rightCol=i-d-1):(f.leftCol=d,f.rightCol=h),p.push(f));return p},dateToCellOffset:function(t){const e=this.dayToCellOffsets,n=t.diff(this.start,"days");return n<0?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]},renderDrag:function(t,e){if(this.renderHighlight(this.view.calendar.ensureVisibleEventRange(t)),e&&!e.el.closest(this.el).length)return this.renderRangeHelper(t,e),this.applyDragOpacity(this.helperEls),!0},destroyDrag:function(){this.destroyHighlight(),this.destroyHelper()},renderEventResize:function(t,e){this.renderHighlight(t),this.renderRangeHelper(t,e)},destroyEventResize:function(){this.destroyHighlight(),this.destroyHelper()},renderHelper:function(e,n){const i=[],s=this.renderFgSegEls(this.eventsToSegs([e])),o=this.renderSegRows(s);this.rowEls.each(function(e,s){const r=t(s),l=t('<div class="fc-helper-skeleton"><table></table></div>');let a;a=n&&n.row===e?n.el.position().top:r.find(".fc-content-skeleton tbody").position().top,l.css("top",a).find("table").append(o[e].tbodyEl),r.append(l),i.push(l[0])}),this.helperEls=t(i)},destroyHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(e,n,i){const s=[];let o;n=this.renderFillSegEls(e,n);for(const t in n)o=this.renderFillRow(e,t,i),this.rowEls.eq(t.row).append(o),s.push(o[0]);return this.elsByFill[e]=t(s),n},renderFillRow:function(e,n,i){const s=this.colCnt,o=n.leftCol,r=n.rightCol+1;let l,a;return i=i||e.toLowerCase(),l=t('<div class="fc-'+i+'-skeleton"><table><tr></tr></table></div>'),a=l.find("tr"),o>0&&a.append('<td colspan="'+o+'"/>'),a.append(n.el.attr("colspan",r-o)),r<s&&a.append('<td colspan="'+(s-r)+'"/>'),this.bookendCells(a,e),l}});function xt(t,e){for(const n of e)if(n.leftCol<=t.rightCol&&n.rightCol>=t.leftCol)return!0;return!1}function Mt(t,e){return t.leftCol-e.leftCol}Ht.mixin({rowStructs:null,destroyEvents:function(){this.destroySegPopover(),bt.prototype.destroyEvents.apply(this,arguments)},getEventSegs:function(){return bt.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(e){const n=t.grep(e,function(t){return t.event.allDay});return bt.prototype.renderBgSegs.call(this,n)},renderFgSegs:function(e){let n;return e=this.renderFgSegEls(e),n=this.rowStructs=this.renderSegRows(e),this.rowEls.each(function(e,i){t(i).find(".fc-content-skeleton > table").append(n[e].tbodyEl)}),e},destroyFgSegs:function(){const t=this.rowStructs||[];let e;for(;e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(t){const e=[];let n,i;for(n=this.groupSegRows(t),i=0;i<n.length;i++)e.push(this.renderSegRow(i,n[i]));return e},fgSegHtml:function(t,e){const n=this.view,i=t.event,s=n.isEventDraggable(i),o=!e&&i.allDay&&t.isStart&&n.isEventResizableFromStart(i),r=!e&&i.allDay&&t.isEnd&&n.isEventResizableFromEnd(i),l=this.getSegClasses(t,s,o||r),a=$(this.getEventSkinCss(i));let c,u,d="";return l.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&(c=this.getEventTimeText(i),c&&(d='<span class="fc-time">'+O(c)+"</span>")),u='<span class="fc-title">'+(O(i.title||"")||" ")+"</span>",'<a class="'+l.join(" ")+'"'+(i.url?' href="'+O(i.url)+'"':"")+(a?' style="'+a+'"':"")+'><div class="fc-content">'+(this.isRTL?u+" "+d:d+" "+u)+"</div>"+(o?'<div class="fc-resizer fc-start-resizer" ></div>':"")+(r?'<div class="fc-resizer fc-end-resizer" ></div>':"")+"</a>"},renderSegRow:function(e,n){const i=this.colCnt,s=this.buildSegLevels(n),o=Math.max(1,s.length),r=t("<tbody/>"),l=[],a=[],c=[];let u,d,h,f,p;function g(e){for(;h<e;)p=(c[u-1]||[])[h],p?p.attr("rowspan",parseInt(p.attr("rowspan")||1,10)+1):(p=t("<td/>"),f.append(p)),a[u][h]=p,c[u][h]=p,h++}for(u=0;
2u<o;u++){if(d=s[u],h=0,f=t("<tr/>"),l.push([]),a.push([]),c.push([]),d)for(const e of d){for(g(e.leftCol),p=t('<td class="fc-event-container"/>').append(e.el),e.leftCol!==e.rightCol?p.attr("colspan",e.rightCol-e.leftCol+1):c[u][h]=p;h<=e.rightCol;)a[u][h]=p,l[u][h]=e,h++;f.append(p)}g(i),this.bookendCells(f,"eventSkeleton"),r.append(f)}return{row:e,tbodyEl:r,cellMatrix:a,segMatrix:l,segLevels:s,segs:n}},buildSegLevels:function(t){const e=[];let n;t.sort(Ct);for(const i of t){for(n=0;n<e.length&&xt(i,e[n]);n++);i.level=n,(e[n]||(e[n]=[])).push(i)}for(const i of e)i.sort(Mt);return e},groupSegRows:function(t){const e=[];let n;for(n=0;n<this.rowCnt;n++)e.push([]);for(const i of t)e[i.row].push(i);return e}}),Ht.mixin({segPopover:null,popoverSegs:null,destroySegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(t){const e=this.rowStructs||[];let n,i;for(n=0;n<e.length;n++)this.unlimitRow(n),i=!!t&&("number"===typeof t?t:this.computeRowLevelLimit(n)),!1!==i&&this.limitRow(n,i)},computeRowLevelLimit:function(e){const n=this.rowEls.eq(e).height(),i=this.rowStructs[e].tbodyEl.children();let s,o,r;function l(e,n){r=Math.max(r,t(n).outerHeight())}for(s=0;s<i.length;s++)if(o=i.eq(s).removeClass("fc-limited"),r=0,o.find("> td > :first-child").each(l),o.position().top+r>n)return s;return!1},limitRow:function(e,n){const i=this,s=this.rowStructs[e],o=[];let r,l,a,c,u,d,h,f,p,g,m,v,y,w,S=0;function b(s){for(;S<s;)r=i.getCell(e,S),u=i.getCellSegs(r,n),u.length&&(f=a[n-1][S],w=i.renderMoreLink(r,u),y=t("<div/>").append(w),f.append(y),o.push(y[0])),S++}if(n&&n<s.segLevels.length){l=s.segLevels[n-1],a=s.cellMatrix,c=s.tbodyEl.children().slice(n).addClass("fc-limited").get();for(const i of l){for(b(i.leftCol),h=[],d=0;S<=i.rightCol;)r=this.getCell(e,S),u=this.getCellSegs(r,n),h.push(u),d+=u.length,S++;if(d){for(f=a[n-1][i.leftCol],p=f.attr("rowspan")||1,g=[],m=0;m<h.length;m++)v=t('<td class="fc-more-cell"/>').attr("rowspan",p),u=h[m],r=this.getCell(e,i.leftCol+m),w=this.renderMoreLink(r,[i].concat(u)),y=t("<div/>").append(w),v.append(y),g.push(v[0]),o.push(v[0]);f.addClass("fc-limited").after(t(g)),c.push(f[0])}}b(this.colCnt),s.moreEls=t(o),s.limitedEls=t(c)}},unlimitRow:function(t){const e=this.rowStructs[t];e.moreEls&&(e.moreEls.remove(),e.moreEls=null),e.limitedEls&&(e.limitedEls.removeClass("fc-limited"),e.limitedEls=null)},renderMoreLink:function(e,n){const i=this,s=this.view;return t('<a class="fc-more"/>').text(this.getMoreLinkText(n.length)).on("click",function(o){let r=s.opt("eventLimitClick");const l=e.start,a=t(this),c=i.getCellDayEl(e),u=i.getCellSegs(e),d=i.resliceDaySegs(u,l),h=i.resliceDaySegs(n,l);"function"===typeof r&&(r=s.trigger("eventLimitClick",null,{date:l,dayEl:c,moreEl:a,segs:d,hiddenSegs:h},o)),"popover"===r?i.showSegPopover(e,a,d):"string"===typeof r&&s.calendar.zoomTo(l,r)})},showSegPopover:function(t,e,n){const i=this,s=this.view,o=e.parent();let r,l;r=1===this.rowCnt?s.el:this.rowEls.eq(t.row),l={className:"fc-more-popover",content:this.renderSegPopoverContent(t,n),parentEl:this.el,top:r.offset().top,autoHide:!0,viewportConstrain:s.opt("popoverViewportConstrain"),hide:function(){i.segPopover.destroy(),i.segPopover=null,i.popoverSegs=null}},this.isRTL?l.right=o.offset().left+o.outerWidth()+1:l.left=o.offset().left-1,this.segPopover=new ft(l),this.segPopover.show()},renderSegPopoverContent:function(e,n){const i=this.view,s=i.opt("theme"),o=e.start.format(i.opt("dayPopoverFormat")),r=t('<div class="fc-header '+i.widgetHeaderClass+'"><span class="fc-close '+(s?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+O(o)+'</span><div class="fc-clear"></div></div><div class="fc-body '+i.widgetContentClass+'"><div class="fc-event-container"></div></div>'),l=r.find(".fc-event-container");n=this.renderFgSegEls(n,!0),this.popoverSegs=n;for(const t of n)t.cell=e,l.append(t.el);return r},resliceDaySegs:function(e,n){const i=t.map(e,function(t){return t.event}),s=n.stripTime(),o=s.add(1,"days"),r={start:s,end:o};return(e=this.eventsToSegs(i,function(t){const e=D(t,r);return e?[e]:[]})).sort(Ct),e},getMoreLinkText:function(t){const e=this.view.opt("eventLimitText");return"function"===typeof e?e(t):"+"+t+" "+e},getCellSegs:function(t,e){const n=this.rowStructs[t.row].segMatrix;let i=e||0;const s=[];let o;for(;i<n.length;)o=n[i][t.col],o&&s.push(o),i++;return s}});const kt=bt.extend({slotDuration:null,snapDuration:null,minTime:null,maxTime:null,axisFormat:null,dayEls:null,
2slatEls:null,slatTops:null,helperEl:null,businessHourSegs:null,constructor:function(){bt.apply(this,arguments),this.processOptions()},renderDates:function(){this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr")},renderBusinessHours:function(){const t=this.view.calendar.getBusinessHoursEvents();this.businessHourSegs=this.renderFill("businessHours",this.eventsToSegs(t),"bgevent")},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(t){return this.bgCellHtml(t)},slatRowHtml:function(){const t=this.view,e=this.isRTL;let n="";const i=this.slotDuration.asMinutes()%15===0;let s,o,r,l=this.minTime.clone();for(;l.asMilliseconds()<this.maxTime.asMilliseconds();)s=this.start.time(l),o=s.minute(),r='<td class="fc-axis fc-time '+t.widgetContentClass+'" '+t.axisStyleAttr()+">"+(i&&o?"":"<span>"+O(s.format(this.axisFormat))+"</span>")+"</td>",n+="<tr "+(o?'class="fc-minor"':"")+">"+(e?"":r)+'<td class="'+t.widgetContentClass+'"/>'+(e?r:"")+"</tr>",l=l.add(this.slotDuration);return n},optionTimeToHash:function(t){let e=t.split(":");return{hours:Number(e[0]),minutes:Number(e[1]),seconds:Number(e[2])}},processOptions:function(){const t=this.view;let e=this.optionTimeToHash(t.opt("slotDuration")),n=this.optionTimeToHash(t.opt("snapDuration"));e=s().duration(e),n=n?s().duration(n):e,this.slotDuration=e,this.snapDuration=n,this.cellDuration=n,this.minTime=s().duration(this.optionTimeToHash(t.opt("minTime"))),this.maxTime=s().duration(this.optionTimeToHash(t.opt("maxTime"))),this.axisFormat=t.opt("axisFormat")||t.opt("smallTimeFormat")},computeColHeadFormat:function(){return this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},updateCells:function(){const t=this.view,e=[];let n;for(n=this.start.clone();n.isBefore(this.end);)e.push({day:n.clone()}),n=n.add(1,"day"),n=t.skipHiddenDays(n);this.isRTL&&e.reverse(),this.colData=e,this.colCnt=e.length,this.rowCnt=Math.ceil((this.maxTime.asMilliseconds()-this.minTime.asMilliseconds())/this.snapDuration.asMilliseconds())},computeCellDate:function(t){const e=this.computeSnapTime(t.row);return this.view.calendar.rezoneDate(t.day).time(e)},getColEl:function(t){return this.dayEls.eq(t)},computeSnapTime:function(t){return s().duration(this.minTime.asMilliseconds()+this.snapDuration.asMilliseconds()*t)},rangeToSegs:function(t){const e=this.colCnt;let n,i,s,o,r=[];for(t={start:t.start.stripZone(),end:t.end.stripZone()},i=0;i<e;i++)s=this.colData[i].day,o={start:s.time(this.minTime),end:s.time(this.maxTime)},n=D(t,o),n&&(n.col=i,r.push(n));return r},updateSize:function(t){this.computeSlatTops(),t&&this.updateSegVerticals()},computeRowCoords:function(){const t=this.el.offset().top,e=[];let n,i;for(n=0;n<this.rowCnt;n++)i={top:t+this.computeTimeTop(this.computeSnapTime(n))},n>0&&(e[n-1].bottom=i.top),e.push(i);return i.bottom=i.top+this.computeTimeTop(this.computeSnapTime(n)),e},computeDateTop:function(t,e){const n=t.stripZone()-e.stripTime(),i=s().duration(n);return this.computeTimeTop(i)},computeTimeTop:function(t){let e,n,i,s,o=(t.asMilliseconds()-this.minTime.asMilliseconds())/this.slotDuration.asMilliseconds();return o=Math.max(0,o),o=Math.min(this.slatEls.length,o),e=Math.floor(o),n=o-e,i=this.slatTops[e],n?(s=this.slatTops[e+1],i+(s-i)*n):i},computeSlatTops:function(){const e=[];let n;this.slatEls.each(function(i,s){n=t(s).position().top,e.push(n)}),e.push(n+this.slatEls.last().outerHeight()),this.slatTops=e},renderDrag:function(t,e){if(e)return this.renderRangeHelper(t,e),this.applyDragOpacity(this.helperEl),!0;this.renderHighlight(this.view.calendar.ensureVisibleEventRange(t))},destroyDrag:function(){this.destroyHelper(),this.destroyHighlight()},renderEventResize:function(t,e){this.renderRangeHelper(t,e)},destroyEventResize:function(){this.destroyHelper()},renderHelper:function(e,n){let i,s,o=this.eventsToSegs([e]);
2o=this.renderFgSegEls(o),i=this.renderSegTable(o);for(const t of o)n&&n.col===t.col&&(s=n.el,t.el.css({left:s.css("left"),right:s.css("right"),"margin-left":s.css("margin-left"),"margin-right":s.css("margin-right")}));this.helperEl=t('<div class="fc-helper-skeleton"></div>').append(i).appendTo(this.el)},destroyHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(t){this.view.opt("selectHelper")?this.renderRangeHelper(t):this.renderHighlight(t)},destroySelection:function(){this.destroyHelper(),this.destroyHighlight()},renderFill:function(e,n,i){let s,o,r,l,a,c,u,d;if(n.length){for(n=this.renderFillSegEls(e,n),s=this.groupSegCols(n),i=i||e.toLowerCase(),o=t('<div class="fc-'+i+'-skeleton"><table><tr></tr></table></div>'),r=o.find("tr"),l=0;l<s.length;l++)if(a=s[l],c=t("<td/>").appendTo(r),a.length){u=t('<div class="fc-'+i+'-container"></div>').appendTo(c),d=this.colData[l].day;for(const t in a)u.append(t.el.css({top:this.computeDateTop(t.start,d),bottom:-this.computeDateTop(t.end,d)}))}this.bookendCells(r,e),this.el.append(o),this.elsByFill[e]=o}return n}});function Rt(t){let e,n;if(t.sort(Ct),e=function(t){const e=[];let n;for(const i of t){for(n=0;n<e.length&&Lt(i,e[n]).length;n++);i.level=n,(e[n]||(e[n]=[])).push(i)}return e}(t),function(t){let e,n,i,s,o;for(e=0;e<t.length;e++)for(n=t[e],i=0;i<n.length;i++)for(s=n[i],s.forwardSegs=[],o=e+1;o<t.length;o++)Lt(s,t[o],s.forwardSegs)}(e),n=e[0]){for(const t of n)Ft(t);for(const t of n)zt(t,0,0)}}function Ft(t){const e=t.forwardSegs;let n=0;if(void 0===t.forwardPressure){for(const t of e)Ft(t),n=Math.max(n,1+t.forwardPressure);t.forwardPressure=n}}function zt(t,e,n){const i=t.forwardSegs;if(void 0===t.forwardCoord){i.length?(i.sort(_t),zt(i[0],e+1,n),t.forwardCoord=i[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-n)/(e+1);for(const e of i)zt(e,0,t.forwardCoord)}}function Lt(t,e,n){n=n||[];for(const i of e)Yt(t,i)&&n.push(i);return n}function Yt(t,e){return t.bottom>e.top&&t.top<e.bottom}function _t(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||Ct(t,e)}kt.mixin({eventSkeletonEl:null,renderFgSegs:function(e){return e=this.renderFgSegEls(e),this.el.append(this.eventSkeletonEl=t('<div class="fc-content-skeleton"></div>').append(this.renderSegTable(e))),e},destroyFgSegs:function(t){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(e){const n=t("<table><tr></tr></table>"),i=n.find("tr"),s=this.groupSegCols(e);let o;this.computeSegVerticals(e);for(const r of s){Rt(r),o=t('<div class="fc-event-container"></div>');for(const t of r)t.el.css(this.generateSegPositionCss(t)),t.bottom-t.top<40&&t.el.addClass("fc-short"),o.append(t.el);i.append(t("<td/>").append(o))}return this.bookendCells(i,"eventSkeleton"),n},updateSegVerticals:function(){const t=(this.segs||[]).concat(this.businessHourSegs||[]);this.computeSegVerticals(t);for(const e of t)e.el.css(this.generateSegVerticalCss(e))},computeSegVerticals:function(t){for(const e of t)e.top=this.computeDateTop(e.start,e.start),e.bottom=this.computeDateTop(e.end,e.start)},fgSegHtml:function(t,e){const n=this.view,i=t.event,s=n.isEventDraggable(i),o=!e&&t.isStart&&n.isEventResizableFromStart(i),r=!e&&t.isEnd&&n.isEventResizableFromEnd(i),l=this.getSegClasses(t,s,o||r),a=$(this.getEventSkinCss(i));let c,u,d;return l.unshift("fc-time-grid-event","fc-v-event"),n.isMultiDayEvent(i)?(t.isStart||t.isEnd)&&(c=this.getEventTimeText(t),u=this.getEventTimeText(t,"LT"),d=this.getEventTimeText(t,null,!1)):(c=this.getEventTimeText(i),u=this.getEventTimeText(i,"LT"),d=this.getEventTimeText(i,null,!1)),'<a class="'+l.join(" ")+'"'+(i.url?' href="'+O(i.url)+'"':"")+(a?' style="'+a+'"':"")+'><div class="fc-content">'+(c?'<div class="fc-time" data-start="'+O(d)+'" data-full="'+O(u)+'"><span>'+O(c)+"</span></div>":"")+(i.title?'<div class="fc-title">'+O(i.title)+"</div>":"")+'</div><div class="fc-bg"></div>'+(r?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},generateSegPositionCss:function(t){const e=this.view.opt("slotEventOverlap"),n=t.backwardCoord;let i=t.forwardCoord;const s=this.generateSegVerticalCss(t);let o,r;return e&&(i=Math.min(1,n+2*(i-n))),this.isRTL?(o=1-i,r=n):(o=n,r=1-i),s.zIndex=t.level
2+1,s.left=100*o+"%",s.right=100*r+"%",e&&t.forwardPressure&&(s[this.isRTL?"marginLeft":"marginRight"]=20),s},generateSegVerticalCss:function(t){return{top:t.top,bottom:-t.bottom}},groupSegCols:function(t){const e=[];let n;for(n=0;n<this.colCnt;n++)e.push([]);for(const i of t)e[i.col].push(i);return e}});const At=e.View=ht.extend({type:null,name:null,title:null,calendar:null,options:null,coordMap:null,el:null,isDisplayed:!1,isSkeletonRendered:!1,isEventsRendered:!1,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,documentMousedownProxy:null,constructor:function(t,e,n,i){this.calendar=t,this.type=this.name=e,this.options=n,this.intervalDuration=i||s().duration(1,"day"),this.nextDayThreshold=s().duration(this.opt("nextDayThreshold")),this.initThemingProps(),this.initHiddenDays(),this.documentMousedownProxy=V(this,"documentMousedown"),this.initialize()},initialize:function(){},opt:function(t){return this.options[t]},trigger:function(t,e){const n=this.calendar;return n.trigger.apply(n,[t,e||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(t){this.setRange(this.computeRange(t))},setRange:function(e){t.extend(this,e),this.updateTitle()},computeRange:function(t){const e=x(this.intervalDuration);let n,i,s=t.startOf(e),o=s.add(this.intervalDuration);return/year|month|week|day/.test(e)?(s=s.stripTime(),o=o.stripTime()):(s.hasTime()||(s=this.calendar.rezoneDate(s)),o.hasTime()||(o=this.calendar.rezoneDate(o))),n=s.clone(),n=this.skipHiddenDays(n),i=o.clone(),i=this.skipHiddenDays(i,-1,!0),{intervalUnit:e,intervalStart:s,intervalEnd:o,start:n,end:i}},computePrevDate:function(t){return this.massageCurrentDate(t.startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(t){return this.massageCurrentDate(t.startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(t,e){return this.intervalDuration.as("days")<=1&&this.isHiddenDay(t)&&(t=(t=this.skipHiddenDays(t,e)).startOf("day")),t},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.intervalStart,end:this.intervalEnd},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"===this.intervalUnit?"YYYY":"month"===this.intervalUnit?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(t,e,n){let i=t.end;return i.hasTime()||(i=i.clone().subtract(1)),rt(t.start,i,e,n,this.opt("isRTL"))},setElement:function(t){this.el=t,this.bindGlobalHandlers()},removeElement:function(){this.clear(),this.isSkeletonRendered&&(this.destroySkeleton(),this.isSkeletonRendered=!1),this.unbindGlobalHandlers(),this.el.remove()},display:function(t){let e=null;this.isDisplayed&&(e=this.queryScroll()),this.clear(),this.setDate(t),this.render(),this.updateSize(),this.renderBusinessHours(),this.isDisplayed=!0,e=this.computeInitialScroll(e),this.forceScroll(e),this.triggerRender()},clear:function(){this.isDisplayed&&(this.unselect(),this.clearEvents(),this.triggerDestroy(),this.destroyBusinessHours(),this.destroy(),this.isDisplayed=!1)},render:function(){this.isSkeletonRendered||(this.renderSkeleton(),this.isSkeletonRendered=!0),this.renderDates()},destroy:function(){this.destroyDates()},renderSkeleton:function(){},destroySkeleton:function(){},renderDates:function(){},destroyDates:function(){},renderBusinessHours:function(){},destroyBusinessHours:function(){},triggerRender:function(){this.trigger("viewRender",this,this,this.el)},triggerDestroy:function(){this.trigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){t(document).on("mousedown",this.documentMousedownProxy)},unbindGlobalHandlers:function(){t(document).off("mousedown",this.documentMousedownProxy)},initThemingProps:function(){const t=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=t+"-widget-header",this.widgetContentClass=t+"-widget-content",this.highlightStateClass=t+"-state-highlight"},updateSize:function(t){let e;t&&(e=this.queryScroll()),this.updateHeight(),this.updateWidth(),t&&this.setScroll(e)},updateWidth:function(){},updateHeight:function(){const t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(t,e){},computeScrollerHeight:function(t){const e=this.scrollerEl;let n,i;return n=this.el.add(e),n.css({position:"relative",left:-1}),i=this.el.outerHeight()-e.height(),n.css({position:"",left:""}),t-i},computeInitialScroll:function(t){return 0},queryScroll:function(){if(this.scrollerEl)return this.scrollerEl.scrollTop()},setScroll:function(t){if(this.scrollerEl)return this.scrollerEl.scrollTop(t)},forceScroll:function(t){const e=this;this.setScroll(t),setTimeout(function(){e.setScroll(t)},0)},displayEvents:function(t){const e=this.queryScroll();this.clearEvents(),this.renderEvents(t),this.isEventsRendered=!0,this.setScroll(e),this.triggerEventRender()},clearEvents:function(){this.isEventsRendered&&(this.triggerEventDestroy(),this.destroyEvents(),this.isEventsRendered=!1)},renderEvents:function(t){},destroyEvents:function(){},triggerEventRender:function(){this.renderedEventSegEach(function(t){this.trigger("eventAfterRender",t.event,t.event,t.el)}),this.trigger("eventAfterAllRender")},triggerEventDestroy:function(){this.renderedEventSegEach(function(t){this.trigger("eventDestroy",t.event,t.event,t.el)})},resolveEventEl:function(e,n){const i=this.trigger("eventRender",e,e,n);
2return!1===i?n=null:i&&!0!==i&&(n=t(i)),n},showEvent:function(t){this.renderedEventSegEach(function(t){t.el.css("visibility","")},t)},hideEvent:function(t){this.renderedEventSegEach(function(t){t.el.css("visibility","hidden")},t)},renderedEventSegEach:function(t,e){const n=this.getEventSegs();let i;for(i=0;i<n.length;i++)e&&n[i].event._id!==e._id||n[i].el&&t.call(this,n[i])},getEventSegs:function(){return[]},isEventDraggable:function(t){const e=t.source||{};return A(t.startEditable,e.startEditable,this.opt("eventStartEditable"),t.editable,e.editable,this.opt("editable"))},reportEventDrop:function(t,e,n,i,s){const o=this.calendar,r=o.mutateEvent(t,e,n);this.triggerEventDrop(t,r.dateDelta,function(){r.undo(),o.reportEventChange()},i,s),o.reportEventChange()},triggerEventDrop:function(t,e,n,i,s){this.trigger("eventDrop",i[0],t,e,n,s,{})},reportExternalDrop:function(e,n,i,s,o){const r=e.eventProps;let l,a;r&&(l=t.extend({},r,n),a=this.calendar.renderEvent(l,e.stick)[0]),this.triggerExternalDrop(a,n,i,s,o)},triggerExternalDrop:function(t,e,n,i,s){this.trigger("drop",n[0],e.start,i,s),t&&this.trigger("eventReceive",null,t)},renderDrag:function(t,e){},destroyDrag:function(){},isEventResizableFromStart:function(t){return this.opt("eventResizableFromStart")&&this.isEventResizable(t)},isEventResizableFromEnd:function(t){return this.isEventResizable(t)},isEventResizable:function(t){const e=t.source||{};return A(t.durationEditable,e.durationEditable,this.opt("eventDurationEditable"),t.editable,e.editable,this.opt("editable"))},reportEventResize:function(t,e,n,i,s){const o=this.calendar,r=o.mutateEvent(t,e,n);this.triggerEventResize(t,r.durationDelta,function(){r.undo(),o.reportEventChange()},i,s),o.reportEventChange()},triggerEventResize:function(t,e,n,i,s){this.trigger("eventResize",i[0],t,e,n,s,{})},select:function(t,e){this.unselect(e),this.renderSelection(t),this.reportSelection(t,e)},renderSelection:function(t){},reportSelection:function(t,e){this.isSelected=!0,this.trigger("select",null,t.start,t.end,e)},unselect:function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection(),this.trigger("unselect",null,t))},destroySelection:function(){},documentMousedown:function(e){let n;this.isSelected&&this.opt("unselectAuto")&&b(e)&&(n=this.opt("unselectCancel"),n&&t(e.target).closest(n).length||this.unselect(e))},initHiddenDays:function(){const e=this.opt("hiddenDays")||[],n=[];let i,s=0;for(!1===this.opt("weekends")&&e.push(0,6),i=0;i<7;i++)(n[i]=-1!==t.inArray(i,e))||s++;if(!s)throw"invalid hiddenDays";this.isHiddenDayHash=n},isHiddenDay:function(t){return s().isDayjs(t)&&(t=t.day()),this.isHiddenDayHash[t]},skipHiddenDays:function(t,e,n){let i=t.clone();for(e=e||1;this.isHiddenDayHash[(i.day()+(n?e:0)+7)%7];)i=i.add(e,"days");return i},computeDayRange:function(t){const e=t.start.stripTime(),n=t.end;let i,s=null;return n&&(s=n.stripTime(),i=n.time().asMilliseconds(),i&&i>=this.nextDayThreshold&&(s=s.add(1,"days"))),(!n||s<=e)&&(s=e.add(1,"days")),{start:e,end:s}},isMultiDayEvent:function(t){const e=this.computeDayRange(t);return e.end.diff(e.start,"days")>1}}),Ot=e.Calendar=e.CalendarBase=ht.extend({dirDefaults:null,langDefaults:null,overrides:null,options:null,viewSpecCache:null,view:null,header:null,constructor:function(n,i){const o=this;o.initOptions(i||{});const r=this.options;o.render=function(){p?E()&&(H(),T()):function(){g=r.theme?"ui":"fc",n.addClass("fc"),r.isRTL?n.addClass("fc-rtl"):n.addClass("fc-ltr");r.theme?n.addClass("ui-widget"):n.addClass("fc-unthemed");p=t("<div class='fc-view-container'></div>").prependTo(n),h=o.header=new jt(o,r),f=h.render(),f&&n.prepend(f);T(r.defaultView),r.handleWindowResize&&(w=B(M,r.windowResizeDelay),t(window).resize(w))}()},o.destroy=function(){m&&m.removeElement();h.destroy(),p.remove(),n.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),w&&t(window).unbind("resize",w)},o.refetchEvents=function(){F(),m.clearEvents(),L(),R()},o.reportEvents=function(t){D=t,k()},o.reportEventChange=function(){k()},o.rerenderEvents=k,o.changeView=T,o.select=function(t,e){t=o.dayjs(t),e=e?o.dayjs(e):t.hasTime()?t.add(o.defaultTimedEventDuration):t.add(o.defaultAllDayEventDuration);m.select({start:t,end:e})},o.unselect=function(){m&&m.unselect()},o.prev=function(){S=m.computePrevDate(S),T()},o.next=function(){S=m.computeNextDate(S),T()},o.prevYear=function(){S=S.add(-1,"years"),T()},o.nextYear=function(){S=S.add(1,"years"),T()},o.today=function(){S=o.getNow(),T()},o.gotoDate=function(t){S=o.dayjs(t),T()},o.incrementDate=function(t){S=S.add(s().duration(t)),T()},o.zoomTo=function(t,e){let n;e=e||"day",n=o.getViewSpec(e)||o.getUnitViewSpec(e),S=t,T(n?n.type:null)},o.getDate=function(){return S.clone()},o.getCalendar=function(){return o},o.getView=function(){return m},o.option=function(t,e){if(void 0===e)return r[t];"height"!==t&&"contentHeight"!==t&&"aspectRatio"!==t||(r[t]=e,C(!0))},o.trigger=function(t,e){if(r[t])return r[t].apply(e||d,Array.prototype.slice.call(arguments,2))};const l=z(Bt(r.lang));r.monthNames&&(l._months=r.monthNames);r.monthNamesShort&&(l._monthsShort=r.monthNamesShort);r.dayNames&&(l._weekdays=r.dayNames);r.dayNamesShort&&(l._weekdaysShort=r.dayNamesShort);if(null!=r.firstDay){const t=z(l._week);t.dow=r.firstDay,l._week=t}l._fullCalendar_weekCalc=(a=r.weekNumberCalculation,"function"===typeof a||"local"===a?a:"iso"===a||"ISO"===a?"ISO":void 0),o.defaultAllDayEventDuration=s().duration(r.defaultAllDayEventDuration),o.defaultTimedEventDuration=s().duration(r.defaultTimedEventDuration),o.dayjs=function(){let t;return"local"===r.timezone?(t=e.dayjs.apply(null,arguments),t.hasTime()&&t.local()):t="UTC"===r.timezone?e.dayjs.utc.apply(null,arguments):e.dayjs.parseZone.apply(null,arguments),"_locale"in t?t._locale=l:t._lang=l,t},o.getIsAmbigTimezone=function(){return"local"!==r.timezone&&"UTC"!==r.timezone},o.rezoneDate=function(t){return o.dayjs(t.toArray())},o.getNow=function(){let t=r.now;return"function"===typeof t&&(t=t()),o.dayjs(t)},o.getEventEnd=function(t){return t.end?t.end.clone():o.getDefaultEventEnd(t.allDay,t.start)},o.getDefaultEventEnd=function(t,e){let n=e.clone();return n=t?n.stripTime().add(o.defaultAllDayEventDuration):n.add(o.defaultTimedEventDuration),o.getIsAmbigTimezone()&&(n=n.stripZone()),n},o.humanizeDuration=function(t){return(t.locale||t.lang).call(t,r.lang).humanize()},Zt.call(o,r);var a;const c=o.isFetchNeeded,u=o.fetchEvents,d=n[0];let h,f,p,g,m;const v={};let y,w,S,b=0,D=[];S=null!=r.defaultDate?o.dayjs(r.defaultDate):o.getNow();function E(){return n.is(":visible")}function T(e){b++,m&&e&&m.type!==e&&(h.deactivateButton(m.type),F(),m.removeElement(),m=o.view=null),!m&&e&&(m=o.view=v[e]||(v[e]=o.instantiateView(e)),m.setElement(t("<div class='fc-view fc-"+e+"-view' ></div>").appendTo(p)),h.activateButton(e)),m&&(S=m.massageCurrentDate(S),m.isDisplayed&&S.isWithin(m.intervalStart,m.intervalEnd)||E()&&(F(),m.display(S),L(),h.updateTitle(m.title),o.getNow().isWithin(m.intervalStart,m.intervalEnd)?h.disableButton("today"):h.enableButton("today"),!r.lazyFetching||c(m.start,m.end)?R():k())),L(),b--}function C(t){if(E())return t&&x(),b++,m.updateSize(!0),b--,!0}function H(){E()&&x()}function x(){y="number"===typeof r.contentHeight?r.contentHeight:"number"===typeof r.height?r.height-(f?f.outerHeight(!0):0):Math.round(p.width()/Math.max(r.aspectRatio,.5))}function M(t){!b&&t.target===window&&m.start&&C(!0)&&m.trigger("windowResize",d)}function k(){E()&&(F(),m.displayEvents(D),L())}function R(){u(m.start,m.end)}function F(){p.css({width:"100%",height:p.height(),overflow:"hidden"})}function L(){p.css({width:"",height:"",overflow:""})}o.getSuggestedViewHeight=function(){return void 0===y&&H(),y},o.isHeightAuto=function(){return"auto"===r.contentHeight||"auto"===r.height}},initOptions:function(e){let n,s,r,l;n=(e=function(e){const n={views:e.views||{}};let s;return t.each(e,function(e,o){"views"!==e&&(t.isPlainObject(o)&&!/(time|duration|interval)$/i.test(e)&&-1===t.inArray(e,i)?(s=null,t.each(o,function(t,i){/^(month|week|day|default|basic(Week|Day)?|agenda(Week|Day)?)$/.test(t)?(n.views[t]||(n.views[t]={}),n.views[t][e]=i):(s||(s={}),s[t]=i)}),s&&(n[e]=s)):n[e]=o)}),n}(e)).lang,s=Gt[n],s||(n=Ot.defaults.lang,s=Gt[n]||{}),r=A(e.isRTL,s.isRTL,Ot.defaults.isRTL),l=r?Ot.rtlDefaults:{},this.dirDefaults=l,this.langDefaults=s,this.overrides=e,this.options=o(Ot.defaults,l,s,e),Vt(this.options),this.viewSpecCache={}},getViewSpec:function(t){const e=this.viewSpecCache;return e[t]||(e[t]=this.buildViewSpec(t))},getUnitViewSpec:function(n){let i,s,o;if(-1!==t.inArray(n,T))for(i=this.header.getViewsWithButtons(),t.each(e.views,function(t){i.push(t)}),s=0;s<i.length;s++)if(o=this.getViewSpec(i[s]),o&&o.singleUnit===n)return o},buildViewSpec:function(t){const e=this.overrides.views||{},i=[],r=[];let l,a,c,u,d,h,f=t;for(;f&&!l;)a=n[f]||{},c=e[f]||{}
2,u=u||c.duration||a.duration,f=c.type||a.type,"function"===typeof a?(l=a,i.unshift(l.defaults||{})):i.unshift(a),r.unshift(c);if(l){if(h={class:l,type:t},u&&(u=s().duration(u),u.valueOf()||(u=null)),u){d=x(u);const t=u.as(d);h.duration=u,1===t&&(h.duration=s().duration(t,d),h.singleUnit=d,r.unshift(e[d]||{}))}return h.defaults=o.apply(null,i),h.overrides=o.apply(null,r),this.buildViewSpecOptions(h),this.buildViewSpecButtonText(h,t),h}},buildViewSpecOptions:function(t){t.options=o(Ot.defaults,t.defaults,this.dirDefaults,this.langDefaults,this.overrides,t.overrides),Vt(t.options)},buildViewSpecButtonText:function(t,e){function n(n){const i=n.buttonText||{};return i[e]||(t.singleUnit?i[t.singleUnit]:null)}t.buttonTextOverride=n(this.overrides)||t.overrides.buttonText,t.buttonTextDefault=n(this.langDefaults)||n(this.dirDefaults)||t.defaults.buttonText||n(Ot.defaults)||(t.duration?this.humanizeDuration(t.duration):null)||e},instantiateView:function(t){const e=this.getViewSpec(t);return new e.class(this,t,e.options,e.duration)},isValidViewType:function(t){return Boolean(this.getViewSpec(t))}});Ot.defaults={titleRangeSeparator:" \u2014 ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},Ot.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},Ot.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};const Gt=e.langs={};e.datepickerLang=function(e,n,i){const s=Gt[e]||(Gt[e]={});s.isRTL=i.isRTL,s.weekNumberTitle=i.weekHeader,t.each($t,function(t,e){s[t]=e(i)}),t.datepicker&&(t.datepicker.regional[n]=t.datepicker.regional[e]=i,t.datepicker.regional.en=t.datepicker.regional[""],t.datepicker.setDefaults(i))},e.lang=function(e,n){let i,s;i=Gt[e]||(Gt[e]={}),n&&(i=Gt[e]=o(i,n)),s=Bt(e),t.each(Pt,function(t,e){null==i[t]&&(i[t]=e(s,i))}),Ot.defaults.lang=e};const $t={buttonText:function(t){return{prev:G(t.prevText),next:G(t.nextText),today:G(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}},Pt={dayOfMonthFormat:function(t,e){let n=t.longDateFormat("L");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),e.isRTL?n+=" ddd":n="ddd "+n,n},mediumTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(t){return t.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}},Nt={smallDayDateFormat:function(t){return t.isRTL?"D dd":"dd D"},weekFormat:function(t){return t.isRTL?"w[ "+t.weekNumberTitle+"]":"["+t.weekNumberTitle+" ]w"},smallWeekFormat:function(t){return t.isRTL?"w["+t.weekNumberTitle+"]":"["+t.weekNumberTitle+"]w"}};function Vt(e){t.each(Nt,function(t,n){null==e[t]&&(e[t]=n(e))})}function Bt(t){const e=s().localeData||s().langData;return e.call(s(),t)||e.call(s(),"en")}function jt(e,n){const i=this;i.render=function(){const e=n.header;if(r=n.theme?"ui":"fc",e)return s=t("<div class='fc-toolbar'/>").append(l("left")).append(l("right")).append(l("center")).append('<div class="fc-clear"/>'),s},i.destroy=function(){s.remove()},i.updateTitle=function(t){s.find("h2").text(t)},i.activateButton=function(t){s.find(".fc-"+t+"-button").addClass(r+"-state-active")},i.deactivateButton=function(t){s.find(".fc-"+t+"-button").removeClass(r+"-state-active")},i.disableButton=function(t){s.find(".fc-"+t+"-button").attr("disabled","disabled").addClass(r+"-state-disabled")},i.enableButton=function(t){s.find(".fc-"+t+"-button").removeAttr("disabled").removeClass(r+"-state-disabled")},i.getViewsWithButtons=function(){return o};let s=t();const o=[];let r;function l(i){const s=t('<div class="fc-'+i+'"/>'),l=n.header[i];return l&&t.each(l.split(" "),function(i){let l,a=t(),c=!0;t.each(this.split(","),function(i,s){let l,u,d,h,f,p,g,m,v;"title"===s?(a=a.add(t("<h2> </h2>")),c=!1):(l=e.getViewSpec(s),l?(u=function(){e.changeView(s)},o.push(s),d=l.buttonTextOverride,h=l.buttonTextDefault):e[s]&&(u=function(){e[s]()},d=(e.overrides.buttonText||{})[s],h=n.buttonText[s]),u&&(f=n.themeButtonIcons[s],p=n.buttonIcons[s],g=d?O(d):f&&n.theme?"<span class='ui-icon ui-icon-"+f+"'></span>":p&&!n.theme?"<span class='fc-icon fc-icon-"+p+"'></span>":O(h),m=["fc-"+s+"-button",r+"-button",r+"-state-default"],v=t('<button type="button" class="'+m.join(" ")+'">'+g+"</button>").click(function(){v.hasClass(r+"-state-disabled")||(u(),(v.hasClass(r+"-state-active")||v.hasClass(r+"-state-disabled"))&&v.removeClass(r+"-state-hover"))}).mousedown(function(){v.not("."+r+"-state-active").not("."+r+"-state-disabled").addClass(r+"-state-down")}).mouseup(function(){v.removeClass(r+"-state-down")}).hover(function(){v.not("."+r+"-state-active").not("."+r+"-state-disabled").addClass(r+"-state-hover")},function(){v.removeClass(r+"-state-hover").removeClass(r+"-state-down")}),a=a.add(v)))}
2),c&&a.first().addClass(r+"-corner-left").end().last().addClass(r+"-corner-right").end(),a.length>1?(l=t("<div/>"),c&&l.addClass("fc-button-group"),l.append(a),s.append(l)):s.append(a)}),s}}e.lang("en",Ot.englishDefaults),e.sourceNormalizers=[],e.sourceFetchers=[];const Wt={dataType:"json",cache:!1};let It=1;function Zt(n){const i=this;i.isFetchNeeded=function(t,e){return!c||t.stripZone().isBefore(c.stripZone())||e.stripZone().isAfter(u.stripZone())},i.fetchEvents=function(t,e){c=t,u=e,g=[];const n=++h;f=d.length;for(const i of d)m(i,n)},i.addEventSource=function(t){const e=y(t);e&&(d.push(e),f++,m(e,h))},i.removeEventSource=function(e){d=t.grep(d,function(t){return!w(t,e)}),g=t.grep(g,function(t){return!w(t.source,e)}),l(g)},i.updateEvent=function(e){e.start=i.dayjs(e.start),e.end?e.end=i.dayjs(e.end):e.end=null;Y(e,function(e){const n={};return t.each(e,function(e,i){b(e)&&void 0!==i&&function(e){return/undefined|null|boolean|number|string/.test(t.type(e))}(i)&&(n[e]=i)}),n}(e)),l(g)},i.renderEvent=function(t,e){const n=x(t);let i,s,o;if(n){for(i=L(n),s=0;s<i.length;s++)o=i[s],o.source||(e&&(a.events.push(o),o.source=a),g.push(o));return l(g),i}return[]},i.removeEvents=function(e){let n,i;null==e?e=function(){return!0}:t.isFunction(e)||(n=e+"",e=function(t){return t._id===n});for(g=t.grep(g,e,!0),i=0;i<d.length;i++)t.isArray(d[i].events)&&(d[i].events=t.grep(d[i].events,e,!0));l(g)},i.clientEvents=D,i.mutateEvent=Y,i.normalizeEventRange=k,i.normalizeEventRangeTimes=F,i.ensureVisibleEventRange=z;const o=i.trigger,r=i.getView,l=i.reportEvents,a={events:[]};let c,u,d=[a],h=0,f=0,p=0,g=[];function m(e,n){v(e,function(i){const s=t.isArray(e.events);let o;if(n===h){if(i)for(const t of i)o=s?t:x(t,e),o&&g.push.apply(g,L(o));f--,f||l(g)}})}function v(s,o){const r=e.sourceFetchers;let l;for(const t of r){if(l=t.call(i,s,c.clone(),u.clone(),n.timezone,o),!0===l)return;if("object"==typeof l)return void v(l,o)}const a=s.events;if(a)t.isFunction(a)?(E(),a.call(i,c.clone(),u.clone(),n.timezone,function(t){o(t),T()})):t.isArray(a)?o(a):o();else{if(s.url){const e=s.success,i=s.error,r=s.complete;let l;l=t.isFunction(s.data)?s.data():s.data;const a=t.extend({},l||{}),d=A(s.startParam,n.startParam),h=A(s.endParam,n.endParam),f=A(s.timezoneParam,n.timezoneParam);d&&(a[d]=c.format()),h&&(a[h]=u.format()),n.timezone&&"local"!==n.timezone&&(a[f]=n.timezone),E(),t.ajax(t.extend({},Wt,s,{data:a,success:function(n){n=n||[];const i=_(e,this,arguments);t.isArray(i)&&(n=i),o(n)},error:function(){_(i,this,arguments),o()},complete:function(){_(r,this,arguments),T()}}))}else o()}}function y(n){const s=e.sourceNormalizers;let o;if(t.isFunction(n)||t.isArray(n)?o={events:n}:"string"===typeof n?o={url:n}:"object"===typeof n&&(o=t.extend({},n)),o){o.className?"string"===typeof o.className&&(o.className=o.className.split(/\s+/)):o.className=[],t.isArray(o.events)&&(o.origArray=o.events,o.events=t.map(o.events,function(t){return x(t,o)}));for(const t of s)t.call(i,o);return o}}function w(t,e){return t&&e&&S(t)===S(e)}function S(t){return("object"===typeof t?t.origArray||t.googleCalendarId||t.url||t.events:null)||t}function b(t){return!/^_|^(id|allDay|start|end)$/.test(t)}function D(e){return t.isFunction(e)?t.grep(g,e):null!=e?(e+="",t.grep(g,function(t){return t._id===e})):g}function E(){p++||o("loading",null,!0,r())}function T(){--p||o("loading",null,!1,r())}function x(e,o){const r={};let l,a,c;if(n.eventDataTransform&&(e=n.eventDataTransform(e)),o&&o.eventDataTransform&&(e=o.eventDataTransform(e)),t.extend(r,e),o&&(r.source=o),r._id=e._id||(void 0===e.id?"_fc"+It++:e.id+""),e.className?"string"==typeof e.className?r.className=e.className.split(/\s+/):r.className=e.className:r.className=[],l=e.start||e.date,a=e.end,R(l)&&(l=s().duration(K(l))),R(a)&&(a=s().duration(K(a))),e.dow||s().isDuration(l)||s().isDuration(a))r.start=s().isDuration(l)?l:null,r.end=s().isDuration(a)?a:null,r._recurring=!0;else{if(l&&(l=i.dayjs(l),!l.isValid()))return!1;a&&(a=i.dayjs(a),a.isValid()||(a=null)),c=e.allDay,void 0===c&&(c=A(o?o.allDayDefault:void 0,n.allDayDefault)),M(l,a,c,r)}return r}function M(t,e,n,i){i.start=t,i.end=e,i.allDay=n,k(i),Ut(i)}function k(t){F(t),t.end&&!t.end.isAfter(t.start)&&(t.end=null),t.end||(n.forceEventDuration?t.end=i.getDefaultEventEnd(t.allDay,t.start):t.end=null)}function F(t){null==t.allDay&&(t.allDay=!(t.start.hasTime()||t.end&&t.end.hasTime())),t.allDay?(t.start=t.start.stripTime(),t.end&&(t.end=t.end.stripTime())):(t.start.hasTime()||(t.start=i.rezoneDate(t.start)),t.end&&!t.end.hasTime()&&(t.end=i.rezoneDate(t.end)))}function z(e){let n;return e.end||(n=e.allDay,null==n&&(n=!e.start.hasTime()),(e=t.extend({},e)).end=i.getDefaultEventEnd(n,e.start)),e}function L(e,n,i){const s=[];let o,r,l,a,d,h,f,p,g;if(n=n||c,i=i||u,e)if(e._recurring){if(r=e.dow)for(o={},l=0;l<r.length;l++)o[r[l]]=!0;for(a=n.stripTime();a.isBefore(i);)o&&!o[a.day()]||(d=e.start,h=e.end,f=a.clone(),p=null,d&&(f=f.time(d)),h&&(p=a.time(h)),g=t.extend({},e),M(f,p,!d&&!h,g),s.push(g)),a=a.add(1,"days")}else s.push(e);return s}function Y(e,n,o){const r={};let l,a,c,u,d,h;function f(t,e){return o?H(t,e,o):n.allDay?(i=t,r=e,s().duration({days:i.stripTime().diff(r.stripTime(),"days")})):C(t,e);var i,r}return(n=n||{}).start||(n.start=e.start.clone()),void 0===n.end&&(n.end=e.end?e.end.clone():null),null==n.allDay&&(n.allDay=e.allDay),k(n),l={start:e._start.clone(),end:e._end?e._end.clone():i.getDefaultEventEnd(e._allDay,e._start),allDay:n.allDay},k(l),a=null!==e._end&&null===n.end,c=f(n.start,l.start),n.end?(u=f(n.end,l.end),d=u.subtract(c)):d=null,t.each(n,function(t,e){b(t)&&void 0!==e&&(r[t]=e)}),h=function(e,n,s,o,r,l){const a=i.getIsAmbigTimezone(),c=[];o&&!o.valueOf()&&(o=null);r&&!r.valueOf()&&(r=null);return t.each(e,function(e,u){let d,h;d={start:u.start.clone(),end:u.end?u.end.clone():null,allDay:u.allDay},t.each(l,function(t){d[t]=u[t]}),h={start:u._start,end:u._end,allDay:s},k(h),n?h.end=null:r&&!h.end&&(h.end=i.getDefaultEventEnd(h.allDay,h.start)),o&&(h.start=h.start.add(o),h.end&&(h.end=h.end.add(o))),r&&h.end&&(h.end=h.end.add(r)),a&&!h.allDay&&(o||r)&&(h.start=h.start.stripZone(),h.end&&(h.end=h.end.stripZone())),t.extend(u,l,h),Ut(u),c.push(function(){t.extend(u,d),Ut(u)})}),function(){for(const t of c)t()}}(D(e._id),a,n.allDay,c,d,r),{dateDelta:c,durationDelta:d,undo:h}}function O(e){const s=n.businessHours,o={className:"fc-nonbusiness",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},r=i.getView();let l;return s&&(l=t.extend({},o,"object"===typeof s?s:{})),l?(e&&(l.start=null,l.end=null),L(x(l),r.start,r.end)):[]}function G(t,e){const i=e.source||{},s=A(e.constraint,i.constraint,n.eventConstraint),o=A(e.overlap,i.overlap,n.eventOverlap);return P(t=z(t),s,o,e)}function $(t){return P(t,n.selectConstraint,n.selectOverlap)}function P(e,n,s,o){let r,l,a,c,u,d;
2if((e=t.extend({},e)).start=e.start.stripZone(),e.end=e.end.stripZone(),null!=n){for(r=function(t){if("businessHours"===t)return O();if("object"===typeof t)return L(x(t));return D(t)}(n),l=!1,c=0;c<r.length;c++)if(N(r[c],e)){l=!0;break}if(!l)return!1}for(a=i.getPeerEvents(o,e),c=0;c<a.length;c++)if(u=a[c],V(u,e)){if(!1===s)return!1;if("function"===typeof s&&!s(u,o))return!1;if(o){if(d=A(u.overlap,(u.source||{}).overlap),!1===d)return!1;if("function"===typeof d&&!d(o,u))return!1}}return!0}function N(t,e){const n=t.start.stripZone(),s=i.getEventEnd(t).stripZone();return e.start.isSameOrAfter(n)&&e.end.isSameOrBefore(s)}function V(t,e){const n=t.start.stripZone(),s=i.getEventEnd(t).stripZone();return e.start.isBefore(s)&&e.end.isAfter(n)}t.each((n.events?[n.events]:[]).concat(n.eventSources||[]),function(t,e){const n=y(e);n&&d.push(n)}),i.getBusinessHoursEvents=O,i.isEventRangeAllowed=G,i.isSelectionRangeAllowed=$,i.isExternalDropRangeAllowed=function(e,n){let i,s;n&&(i=t.extend({},n,e),s=L(x(i))[0]);return s?G(e,s):$(e=z(e))},i.getEventCache=function(){return g}}function Ut(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}Ot.prototype.getPeerEvents=function(t,e){const n=this.getEventCache(),i=[];let s,o;for(s=0;s<n.length;s++)o=n[s],t&&t._id===o._id||i.push(o);return i};const Xt=n.basic=At.extend({dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,initialize:function(){this.dayGrid=new Ht(this),this.coordMap=this.dayGrid.coordMap},setRange:function(t){At.prototype.setRange.call(this,t),this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit),this.dayGrid.setRange(t)},computeRange:function(t){const e=At.prototype.computeRange.call(this,t);return/year|month/.test(e.intervalUnit)&&(e.start=e.start.startOf("week"),e.start=this.skipHiddenDays(e.start),e.end.weekday()&&(e.end=e.end.add(1,"week").startOf("week"),e.end=this.skipHiddenDays(e.end,-1,!0))),e},render:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(this.hasRigidRows())},destroy:function(){this.dayGrid.destroyDates(),this.dayGrid.removeElement()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},renderHtml:function(){return'<table><thead class="fc-head"><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"></div></div></td></tr></tbody></table>'},headIntroHtml:function(){if(this.weekNumbersVisible)return'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+O(this.opt("weekNumberTitle"))+"</span></th>"},numberIntroHtml:function(t){if(this.weekNumbersVisible)return'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.dayGrid.getCell(t,0).start.format("w")+"</span></td>"},dayIntroHtml:function(){if(this.weekNumbersVisible)return'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>"},introHtml:function(){if(this.weekNumbersVisible)return'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>"},numberCellHtml:function(t){const e=t.start;if(!this.dayNumbersVisible)return"<td></td>";const n=this.dayGrid.getDayClasses(e);return n.unshift("fc-day-number"),'<td class="'+n.join(" ")+'" data-date="'+e.format()+'">'+e.date()+"</td>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){const t=this.opt("eventLimit");return t&&"number"!==typeof t},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=h(this.el.find(".fc-week-number")))},setHeight:function(t,e){const n=this.opt("eventLimit");let i;p(this.scrollerEl),l(this.headRowEl),this.dayGrid.destroySegPopover(),n&&"number"===typeof n&&this.dayGrid.limitRows(n),i=this.computeScrollerHeight(t),this.setGridHeight(i,e),n&&"number"!==typeof n&&this.dayGrid.limitRows(n),!e&&f(this.scrollerEl,i)&&(r(this.headRowEl,y(this.scrollerEl)),i=this.computeScrollerHeight(t),this.scrollerEl.height(i))},setGridHeight:function(t,e){e?d(this.dayGrid.rowEls):u(this.dayGrid.rowEls,t,!0)},renderEvents:function(t){this.dayGrid.renderEvents(t),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},destroyEvents:function(){this.dayGrid.destroyEvents()},renderDrag:function(t,e){return this.dayGrid.renderDrag(t,e)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(t){this.dayGrid.renderSelection(t)},destroySelection:function(){this.dayGrid.destroySelection()}}),qt=n.month=Xt.extend({computeRange:function(t){const e=Xt.prototype.computeRange.call(this,t);let n;return this.isFixedWeeks()&&(n=Math.ceil(e.end.diff(e.start,"weeks",!0)),e.end=e.end.add(6-n,"weeks")),e},setGridHeight:function(t,e){(e=e||"variable"===this.opt("weekMode"))&&(t*=this.rowCnt/6),u(this.dayGrid.rowEls,t,!e)},isFixedWeeks:function(){const t=this.opt("weekMode");return t?"fixed"===t:this.opt("fixedWeekCount")}});qt.duration={months:1},qt.defaults={fixedWeekCount:!0},n.basicWeek={type:"basic",duration:{weeks:1}},n.basicDay={type:"basic",duration:{days:1}};return(n.agenda=At.extend({timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=new kt(this),this.opt("allDaySlot")?(this.dayGrid=new Ht(this),this.coordMap=new gt([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap},setRange:function(t){At.prototype.setRange.call(this,t),this.timeGrid.setRange(t),this.dayGrid&&this.dayGrid.setRange(t)},render:function(){this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.c
2ontainerEl=this.scrollerEl,this.timeGrid.setElement(this.el.find(".fc-time-grid")),this.timeGrid.renderDates(),this.bottomRuleEl=t('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=function(){return this.el.parents(".calendar-segment").find(".fc-row:not(.fc-scroller *)")}},destroy:function(){this.timeGrid.destroyDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.destroyDates(),this.dayGrid.removeElement())},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},renderHtml:function(){return'<table><thead class="fc-head"><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"></div><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"></div></div></td></tr></tbody></table>'},headIntroHtml:function(){let t,e;return this.opt("weekNumbers")?(t=this.timeGrid.getCell(0).start,e=t.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+O(e)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||O(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(t){this.timeGrid.updateSize(t),At.prototype.updateSize.call(this,t)},updateWidth:function(){this.axisWidth=h(this.el.find(".fc-axis"))},setHeight:function(t,e){let n,i;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),p(this.scrollerEl),l(this.noScrollRowEls()),this.dayGrid&&(this.dayGrid.destroySegPopover(),n=this.opt("eventLimit"),n&&"number"!==typeof n&&(n=5),n&&this.dayGrid.limitRows(n)),e||(i=this.computeScrollerHeight(t),f(this.scrollerEl,i)?(r(this.noScrollRowEls(),y(this.scrollerEl)),i=this.computeScrollerHeight(t),this.scrollerEl.height(i)):(this.scrollerEl.height(i).css("overflow","hidden"),this.bottomRuleEl.show()))},optionTimeToHash:function(t){let e=t.split(":");return{hours:Number(e[0]),minutes:Number(e[1]),seconds:Number(e[2])}},computeInitialScroll:function(){const t=s().duration(this.optionTimeToHash(this.opt("scrollTime")));let e=this.timeGrid.computeTimeTop(t);return e=Math.ceil(e),e&&e++,e},renderEvents:function(t){const e=[],n=[];let i;for(i=0;i<t.length;i++)t[i].allDay?e.push(t[i]):n.push(t[i]);this.timeGrid.renderEvents(n),this.dayGrid&&this.dayGrid.renderEvents(e),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},destroyEvents:function(){this.timeGrid.destroyEvents(),this.dayGrid&&this.dayGrid.destroyEvents()},renderDrag:function(t,e){return t.start.hasTime()?this.timeGrid.renderDrag(t,e):this.dayGrid?this.dayGrid.renderDrag(t,e):void 0},destroyDrag:function(){this.timeGrid.destroyDrag(),this.dayGrid&&this.dayGrid.destroyDrag()},renderSelection:function(t){t.start.hasTime()||t.end.hasTime()?this.timeGrid.renderSelection(t):this.dayGrid&&this.dayGrid.renderSelection(t)},destroySelection:function(){this.timeGrid.destroySelection(),this.dayGrid&&this.dayGrid.destroySelection()}})).defaults={allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0},n.agendaWeek={type:"agenda",duration:{weeks:1}},n.agendaDay={type:"agenda",duration:{days:1}},this}},49838(t){t.exports=function(){"use strict";return function(t,e,n){var i=e.prototype,s=function(t){var e=t.date,i=t.utc;return Array.isArray(e)?i?e.length?new Date(Date.UTC.apply(null,e)):new Date:1===e.length?n(String(e[0])).toDate():new(Function.prototype.bind.apply(Date,[null].concat(e))):e},o=i.parse;i.parse=function(t){t.date=s.bind(this)(t),o.bind(this)(t)}}}()},90358(t){t.exports=function(){"use strict";var t,e,n=1e3,i=6e4,s=36e5,o=864e5,r=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,a=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:l,months:a,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof y},h=function(t,e,n){return new y(t,n,e.$l)},f=function(t){return e.p(t)+"s"},p=function(t){return t<0},g=function(t){return p(t)?Math.ceil(t):Math.floor(t)},m=function(t){return Math.abs(t)},v=function(t,e){return t?p(t)?{negative:!0,format:""+m(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},y=function(){function p(t,e,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*u[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){i.$d[f(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var s=t.match(c);if(s){var o=s.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=p.prototype;return m.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*u[n]},0)},m.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=g(t/l),t%=l,this.$d.months=g(t/a),t%=a,this.$d.days=g(t/o),t%=o,this.$d.hours=g(t/s),t%=s,this.$d.minutes=g(t/i),t%=i,this.$d.seconds=g(t/n),t%=n,this.$d.milliseconds=t},m.toISOString=function(){var t=v(this.$d.years,"Y"),e=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,"D"),s=v(this.$d.hours,"H"),o=v(this.$d.minutes,"M"),r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3,r=Math.round(1e3*r)/1e3);var l=v(r,"S"),a=t.negative||e.negative||i.negative||s.negative||o.negative||l.negative,c=s.format||o.format||l.format?"T":"",u=(a?"-":"")+"P"+t.format+e.format+i.format+c+s.format+o.format+l.format;return"P"===u||"-P"===u?"P0D":u},m.toJSON=function(){return this.toISOString()},m.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(r,function(t,e){return e||String(i[t])})},m.as=function(t){return this.$ms/u[f(t)]},m.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?g(e/u[n]):this.$d[n],e||0},m.add=function(t,e,n){var i;return i=e?t*u[f(e)]:d(t)?t.$ms:h(t,this).$ms,h(this.$ms+i*(n?-1:1),this)},m.subtract=function(t,e){return this.add(t,e,!0)},m.locale=function(t){var e=this.clone();return e.$l=t,e},m.clone=function(){return h(this.$ms,this)},m.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},p}(),w=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,i,s){t=s,e=s().$utils(),s.duration=function(t,e){var n=s.locale();return h(t,{$l:n},e)},s.isDuration=d;var o=i.prototype.add,r=i.prototype.subtract;i.prototype.add=function(t,e){return d(t)?w(this,t,1):o.bind(this)(t,e)},i.prototype.subtract=function(t,e){return d(t)?w(this,t,-1):r.bind(this)(t,e)}}}()},70055(t){t.exports=function(){"use strict";return function(t,e){e.prototype.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)}}}()},11742(t){t.exports=function(){"use strict";return function(t,e){e.prototype.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)}}}()},6973(t){t.exports=function(){"use strict";var t="day";return function(e,n,i){var s=function(e){return e.add(4-e.isoWeekday(),t)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,o,r,l=s(this),a=(n=this.isoWeekYear(),r=4-(o=(this.$u?i.utc:i)().year(n).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(r+=7),o.add(r,t));return l.diff(a,"week")+1},o.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var r=o.startOf;o.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):r.bind(this)(t,e)}}}()},50892(t){t.exports=function(){"use strict";return function(t,e,n){var i=e.prototype,s=function(t){return t&&(t.indexOf?t:t.s)},o=function(t,e,n,i,o){var r=t.name?t:t.$locale(),l=s(r[e]),a=s(r[n]),c=l||a.map(function(t){return t.slice(0,i)});if(!o)return c;var u=r.weekStart;return c.map(function(t,e){return c[(e+(u||0))%7]})},r=function(){return n.Ls[n.locale()]},l=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})}(t.formats[e.toUpperCase()])},a=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):o(t,"months")},monthsShort:function(e){return e?e.format("MMM"):o(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):o(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):o(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):o(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return l(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return a.bind(this)()},n.localeData=function(){var t=r();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(e){return l(t,e)}
2,meridiem:t.meridiem,ordinal:t.ordinal}},n.months=function(){return o(r(),"months")},n.monthsShort=function(){return o(r(),"monthsShort","months",3)},n.weekdays=function(t){return o(r(),"weekdays",null,null,t)},n.weekdaysShort=function(t){return o(r(),"weekdaysShort","weekdays",3,t)},n.weekdaysMin=function(t){return o(r(),"weekdaysMin","weekdays",2,t)}}}()},18306(t){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,n,i){var s=n.prototype,o=s.format;i.en.formats=t,s.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,i=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,i,s){var o=s&&s.toUpperCase();return i||n[s]||t[s]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})}(e,void 0===n?{}:n);return o.call(this,i)}}}()},88361(t){t.exports=function(){"use strict";return function(t,e,n){n.updateLocale=function(t,e){var i=n.Ls[t];if(i)return(e?Object.keys(e):[]).forEach(function(t){i[t]=e[t]}),i}}}()}}]); 3//# sourceMappingURL=9160-f1929f139d0302a0b312.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.