You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/static/js/chunk-3dd2.41075dd2.js

97 lines
284 KiB

3 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3dd2"],{"+Izv":function(e,t,n){"use strict";var r=n("SZB9"),i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};
/*!
FullCalendar List View Plugin v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(e){function t(t){var n=e.call(this)||this;return n.listView=t,n}return o(t,e),t.prototype.attachSegs=function(e){e.length?this.listView.renderSegList(e):this.listView.renderEmptyMessage()},t.prototype.detachSegs=function(){},t.prototype.renderSegHtml=function(e){var t,n=this.context,i=n.theme,o=n.options,s=e.eventRange,a=s.def,l=s.instance,c=s.ui,u=a.url,d=["fc-list-item"].concat(c.classNames),h=c.backgroundColor;return t=a.allDay?Object(r.vb)(o):Object(r.Ob)(s.range)?e.isStart?Object(r.Eb)(this._getTimeText(l.range.start,e.end,!1)):e.isEnd?Object(r.Eb)(this._getTimeText(e.start,l.range.end,!1)):Object(r.vb)(o):Object(r.Eb)(this.getTimeText(s)),u&&d.push("fc-has-url"),'<tr class="'+d.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+i.getClass("widgetContent")+'">'+(t||"")+"</td>":"")+'<td class="fc-list-item-marker '+i.getClass("widgetContent")+'"><span class="fc-event-dot"'+(h?' style="background-color:'+h+'"':"")+'></span></td><td class="fc-list-item-title '+i.getClass("widgetContent")+'"><a'+(u?' href="'+Object(r.Eb)(u)+'"':"")+">"+Object(r.Eb)(a.title||"")+"</a></td></tr>"},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},t}(r.l),a=function(e){function t(t,n){var i=e.call(this,t,n)||this;i.computeDateVars=Object(r.Tb)(l),i.eventStoreToSegs=Object(r.Tb)(i._eventStoreToSegs),i.renderSkeleton=Object(r.Ub)(i._renderSkeleton,i._unrenderSkeleton);var o=i.eventRenderer=new s(i);return i.renderContent=Object(r.Ub)(o.renderSegs.bind(o),o.unrender.bind(o),[i.renderSkeleton]),i}return o(t,e),t.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el})},t.prototype.render=function(t,n){e.prototype.render.call(this,t,n);var r=this.computeDateVars(t.dateProfile),i=r.dayDates,o=r.dayRanges;this.dayDates=i,this.renderSkeleton(n),this.renderContent(n,this.eventStoreToSegs(t.eventStore,t.eventUiBases,o))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderSkeleton.unrender(),this.renderContent.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},t.prototype._renderSkeleton=function(e){var t=e.theme;this.el.classList.add("fc-list-view");for(var n=0,i=(t.getClass("listView")||"").split(" ");n<i.length;n++){var o=i[n];o&&this.el.classList.add(o)}this.scroller=new r.p("hidden","auto"),this.el.appendChild(this.scroller.el),this.contentEl=this.scroller.el},t.prototype._unrenderSkeleton=function(){this.scroller.destroy()},t.prototype.updateSize=function(t,n,r){e.prototype.updateSize.call(this,t,n,r),this.eventRenderer.computeSizes(t),this.eventRenderer.assignSizes(t),this.scroller.clear(),r||this.scroller.setHeight(this.computeScrollerHeight(n))},t.prototype.computeScrollerHeight=function(e){return e-Object(r.jc)(this.el,this.scroller.el)},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(Object(r.hc)(e,t,this.props.dateProfile.activeRange,this.context.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];n.push.apply(n,this.eventRangeToSegs(o,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n,i,o,s=this.context,a=s.dateEnv,l=s.nextDayThreshold,c=e.range,u=e.def.allDay,d=[];for(n=0;n<t.length;n++)if((i=Object(r.Jb)(c,t[n]))&&(o={component:this,eventRange:e,start:i.start,end:i.end,isStart:e.isStart&&i.start.valueOf()===c.start.valueOf(),isEnd:e.isEnd&&i.end.valueOf()===c.end.valueOf(),dayIndex:n},d.push(o),!o.isEnd&&!u&&n+1<t.length&&c.end<a.add(t[n+1].start,l))){o.end=c.end,o.isEnd=!0;break}return d},t.prototype.renderEmptyMessage=function(){this.contentEl.innerHTML='<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+Object(r.Eb)(this.context.options.noEventsMessage)+"</div></div></div>"},t.prototype.renderSegList=function(e){var t,n,
/*!
FullCalendar Interaction Plugin v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};r.W.touchMouseIgnoreWait=500;var a=0,l=0,c=!1,u=function(){function e(e){var t=this;this.subjectEl=null,this.downEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,a++,setTimeout(function(){a--},r.W.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new r.j,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),l++||window.addEventListener("touchmove",d,{passive:!1})}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),--l||window.removeEventListener("touchmove",d,{passive:!1})},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Object(r.nb)(n,this.handleSelector))&&(this.subjectEl=t,this.downEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){c=!1,this.isDragging=!1,this.subjectEl=null,this.downEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?Object(r.nb)(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return a||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(c=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.p
/*!
FullCalendar Core Package v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
var r={className:!0,colSpan:!0,rowSpan:!0},i={"<tr":"tbody","<td":"tr"};function o(e,t,n){var i=document.createElement(e);if(t)for(var o in t)"style"===o?w(i,t[o]):r[o]?i[o]=t[o]:i.setAttribute(o,t[o]);return"string"==typeof n?i.innerHTML=n:null!=n&&c(i,n),i}function s(e){e=e.trim();var t=document.createElement(l(e));return t.innerHTML=e,t.firstChild}function a(e){return Array.prototype.slice.call(function(e){e=e.trim();var t=document.createElement(l(e));return t.innerHTML=e,t.childNodes}(e))}function l(e){return i[e.substr(0,3)]||"div"}function c(e,t){for(var n=h(t),r=0;r<n.length;r++)e.appendChild(n[r])}function u(e,t){for(var n=h(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}function d(e,t){for(var n=h(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)}function h(e){return"string"==typeof e?a(e):e instanceof Node?[e]:Array.prototype.slice.call(e)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}var f=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,v=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(y(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function g(e,t){return v.call(e,t)}function y(e,t){return f.call(e,t)}function m(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(t),s=0;s<o.length;s++)r.push(o[s]);return r}function b(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].children,s=0;s<o.length;s++){var a=o[s];t&&!y(a,t)||r.push(a)}return r}function S(e,t,n){n?e.classList.add(t):e.classList.remove(t)}var E=/(top|left|right|bottom|width|height)$/i;function w(e,t){for(var n in t)D(e,n,t[n])}function D(e,t,n){null==n?e.style[t]="":"number"==typeof n&&E.test(t)?e.style[t]=n+"px":e.style[t]=n}function T(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function C(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function O(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function R(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function x(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function M(e,t){return{left:e.left-t.left,top:e.top-t.top}}var I=null;function k(){return null===I&&(I=function(){var e=o("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return p(e),t}()),I}function _(e){return e=Math.max(0,e),e=Math.round(e)}function j(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=_(e.offsetWidth-e.clientWidth-r-i),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:_(e.offsetHeight-e.clientHeight-o-s),scrollbarLeft:0,scrollbarRight:0};return k()&&"rtl"===n.direction?l.scrollbarLeft=a:l.scrollbarRight=a,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function P(e,t){void 0===t&&(t=!1);var n=H(e),r=j(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function H(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function L(e){return e.getBoundingClientRect().height+N(
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ye=function(e,t){return(Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Ze(e,t){function n(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var qe=function(){return(qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Xe(e,t,n,r,i){var o=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(J)),o}var $e=Object.prototype.hasOwnProperty;function Je(e,t){var n,r,i,o,s,a,l={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;o>=0;o--)if("object"==typeof(s=e[o][r])&&s)i.unshift(s);else if(void 0!==s){l[r]=s;break}i.length&&(l[r]=Je(i))}for(n=e.length-1;n>=0;n--)for(r in a=e[n])r in l||(l[r]=a[r]);return l}function Ke(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Qe(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function et(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function tt(e){var t=[];for(var n in e)t.push(e[n]);return t}function nt(e,t){for(var n in e)if($e.call(e,n)&&!(n in t))return!1;for(var n in t)if($e.call(t,n)&&e[n]!==t[n])return!1;return!0}function rt(e,t,n,r){for(var i={defs:{},instances:{}},o=0,s=e;o<s.length;o++){var a=En(s[o],t,n,r);a&&it(a,i)}return i}function it(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function ot(e,t,n){var r=n.dateEnv,i=e.defs,o=e.instances;for(var s in o=Ke(o,function(e){return!i[e.defId].recurringDef}),i){var a=i[s];if(a.recurringDef){var l=a.recurringDef.duration;l||(l=a.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var c=0,u=Xe(a,l,t,n.dateEnv,n.pluginSystem.hooks.recurringTypes);c<u.length;c++){var d=u[c],h=Dn(s,{start:d,end:r.add(d,l)});o[h.instanceId]=h}}}return{defs:i,instances:o}}function st(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=ut(e,function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n});return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return{defs:{},instances:{}}}function at(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],s=t(o);s?n.push(s):null==s&&n.push(o)}}else n=e;return n}function lt(){return{defs:{},instances:{}}}function ct(e,t){return{defs:qe({},e.defs,t.defs),instances:qe({},e.instances,t.instances)}}function ut(e,t){var n=Ke(e.defs,t),r=Ke(e.instances,function(e){return n[e.defId]});return{defs:n,instances:r}}function dt(e,t){var n,r,i=[],o=t.start;for(e.sort(ht),n=0;n<e.length;n++)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function ht(e,t){return e.start.valueOf()-t.start.valueOf()}function pt(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function ft(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function vt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function gt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function yt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function mt(e,t){var n,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function bt(e){var t,n;return function(){return t&&mt(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}var St={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCo
/*!
FullCalendar Day Grid Plugin v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.buildRenderRange=function(t,n,i){var o,s=this.dateEnv,a=e.prototype.buildRenderRange.call(this,t,n,i),l=a.start,c=a.end;if(/^(year|month)$/.test(n)&&(l=s.startOfWeek(l),(o=s.startOfWeek(c)).valueOf()!==c.valueOf()&&(c=Object(r.y)(o,1))),this.options.monthMode&&this.options.fixedWeekCount){var u=Math.ceil(Object(r.jb)(l,c));c=Object(r.y)(c,6-u)}return{start:l,end:c}},t}(r.d),l=function(){function e(e){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(e){t.el&&!t.el.contains(e.target)&&t.hide()},this.options=e}return e.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},e.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},e.prototype.render=function(){var e=this,t=this.options,n=this.el=Object(r.Z)("div",{className:"fc-popover "+(t.className||""),style:{top:"0",left:"0"}});"function"==typeof t.content&&t.content(n),t.parentEl.appendChild(n),Object(r.Qb)(n,"click",".fc-close",function(t){e.hide()}),t.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},e.prototype.destroy=function(){this.hide(),this.el&&(Object(r.gc)(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},e.prototype.position=function(){var e,t,n=this.options,i=this.el,o=i.getBoundingClientRect(),s=Object(r.U)(i.offsetParent),a=Object(r.N)(n.parentEl);e=n.top||0,t=void 0!==n.left?n.left:void 0!==n.right?n.right-o.width:0,e=Math.min(e,a.bottom-o.height-this.margin),e=Math.max(e,a.top+this.margin),t=Math.min(t,a.right-o.width-this.margin),t=Math.max(t,a.left+this.margin),Object(r.D)(i,{top:e-s.top,left:t-s.left})},e.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderSegHtml=function(e,t){var n,i,o=this.context,s=e.eventRange,a=s.def,l=s.ui,c=a.allDay,u=Object(r.P)(o,a,l),d=c&&e.isStart&&Object(r.R)(o,a,l),h=c&&e.isEnd&&Object(r.Q)(o,a,l),p=this.getSegClasses(e,u,d||h,t),f=Object(r.eb)(this.getSkinCss(l)),v="";return p.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(s))&&(v='<span class="fc-time">'+Object(r.Eb)(n)+"</span>"),i='<span class="fc-title">'+(Object(r.Eb)(a.title||"")||"&nbsp;")+"</span>",'<a class="'+p.join(" ")+'"'+(a.url?' href="'+Object(r.Eb)(a.url)+'"':"")+(f?' style="'+f+'"':"")+'><div class="fc-content">'+("rtl"===o.options.dir?i+" "+v:v+" "+i)+"</div>"+(d?'<div class="fc-resizer fc-start-resizer"></div>':"")+(h?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},t.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},t.prototype.computeDisplayEventEnd=function(){return!1},t}(r.l),u=function(e){function t(t){var n=e.call(this)||this;return n.dayGrid=t,n}return o(t,e),t.prototype.attachSegs=function(e,t){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(n[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},t.prototype.detachSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)Object(r.gc)(e.tbodyEl);this.rowStructs=null},t.prototype.renderSegRows=function(e){var t,n,r=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)r.push(this.renderSegRow(n,t[n]));return r},t.prototype.renderSegRow=function(e,t){var n,i,o,s,a,l,c,u=this.context.isRtl,d=th
/*!
FullCalendar Timeline Plugin v4.4.2
Docs & License: https://fullcalendar.io/scheduler
(c) 2019 Adam Shaw
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s,a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(){function e(){this.gutters={},this.el=Object(r.Fb)('<div class="fc-scroller-canvas"> <div class="fc-content"></div> <div class="fc-bg"></div> </div>'),this.contentEl=this.el.querySelector(".fc-content"),this.bgEl=this.el.querySelector(".fc-bg")}return e.prototype.setGutters=function(e){e?a(this.gutters,e):this.gutters={},this.updateSize()},e.prototype.setWidth=function(e){this.width=e,this.updateSize()},e.prototype.setMinWidth=function(e){this.minWidth=e,this.updateSize()},e.prototype.clearWidth=function(){this.width=null,this.minWidth=null,this.updateSize()},e.prototype.updateSize=function(){var e=this.gutters,t=this.el;Object(r.tb)(t,"fc-gutter-left",e.left),Object(r.tb)(t,"fc-gutter-right",e.right),Object(r.tb)(t,"fc-gutter-top",e.top),Object(r.tb)(t,"fc-gutter-bottom",e.bottom),Object(r.D)(t,{paddingLeft:e.left||"",paddingRight:e.right||"",paddingTop:e.top||"",paddingBottom:e.bottom||"",width:null!=this.width?this.width+(e.left||0)+(e.right||0):"",minWidth:null!=this.minWidth?this.minWidth+(e.left||0)+(e.right||0):""}),Object(r.D)(this.bgEl,{left:e.left||"",right:e.right||"",top:e.top||"",bottom:e.bottom||""})},e}(),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.reportScroll=function(){i.isScrolling||i.reportScrollStart(),i.trigger("scroll"),i.isMoving=!0,i.requestMovingEnd()},i.reportScrollStart=function(){i.isScrolling||(i.isScrolling=!0,i.trigger("scrollStart",i.isTouching))},i.reportTouchStart=function(){i.isTouching=!0},i.reportTouchEnd=function(){i.isTouching&&(i.isTouching=!1,i.isTouchScrollEnabled&&i.unbindPreventTouchScroll(),i.isMoving||i.reportScrollEnd())},i.isScrolling=!1,i.isTouching=!1,i.isMoving=!1,i.isTouchScrollEnabled=!0,i.requestMovingEnd=Object(r.fb)(i.reportMovingEnd,500),i.canvas=new l,i.el.appendChild(i.canvas.el),i.applyOverflow(),i.bindHandlers(),i}return o(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindHandlers()},t.prototype.disableTouchScroll=function(){this.isTouchScrollEnabled=!1,this.bindPreventTouchScroll()},t.prototype.enableTouchScroll=function(){this.isTouchScrollEnabled=!0,this.isTouching||this.unbindPreventTouchScroll()},t.prototype.bindPreventTouchScroll=function(){this.preventTouchScrollHandler||this.el.addEventListener("touchmove",this.preventTouchScrollHandler=r.cc)},t.prototype.unbindPreventTouchScroll=function(){this.preventTouchScrollHandler&&(this.el.removeEventListener("touchmove",this.preventTouchScrollHandler),this.preventTouchScrollHandler=null)},t.prototype.bindHandlers=function(){this.el.addEventListener("scroll",this.reportScroll),this.el.addEventListener("touchstart",this.reportTouchStart,{passive:!0}),this.el.addEventListener("touchend",this.reportTouchEnd)},t.prototype.unbindHandlers=function(){this.el.removeEventListener("scroll",this.reportScroll),this.el.removeEventListener("touchstart",this.reportTouchStart,{passive:!0}),this.el.removeEventListener("touchend",this.reportTouchEnd)},t.prototype.reportMovingEnd=function(){this.isMoving=!1,this.isTouching||this.reportScrollEnd()},t.prototype.reportScrollEnd=function(){this.isScrolling&&(this.trigger("scrollEnd"),this.isScrolling=!1)},t.prototype.getScrollLeft=function(){var e=this.el,t=window.getComputedStyle(e).direction,n=e.scrollLeft;if("rtl"===t)switch(u()){case"positive":n=n+e.clientWidth-e.scrollWidth;break;case"reverse":n=-n}return n},t.prototype.setScrollLeft=function(e){var t=this.el;if("rtl"===window.getComputedStyle(t).direction)switch(u()){case"positive":e=e-t.clientWidth+t.scrollWidth;break;case"reverse":e=-e}t.scrollLeft=e},t.prototype.getScrollFromLeft=function(){var e=this.el,t=window.getComputedStyle(e).direction,n=e.scro