var Vl=(H,M)=>()=>(M||H((M={exports:{}}).exports,M),M.exports);import{j as xi,a as Es,P as Gl,s as Yl,_ as Gs}from"./select2-IviwQ42Z.js";import{g as Xl,c as zi,a as ba}from"./_commonjsHelpers-C4iS2aBk.js";import{E as Kl}from"./duotone-DzNduBhU.js";var oc=Vl((cc,Go)=>{function Ql(H,M){for(var b=0;b<M.length;b++){const P=M[b];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in H)){const m=Object.getOwnPropertyDescriptor(P,B);m&&Object.defineProperty(H,B,m.get?m:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */var jo=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Zl=function(){for(var H=["Edge","Trident","Firefox"],M=0;M<H.length;M+=1)if(jo&&navigator.userAgent.indexOf(H[M])>=0)return 1;return 0}();function Jl(H){var M=!1;return function(){M||(M=!0,window.Promise.resolve().then(function(){M=!1,H()}))}}function $l(H){var M=!1;return function(){M||(M=!0,setTimeout(function(){M=!1,H()},Zl))}}var ql=jo&&window.Promise,eu=ql?Jl:$l;function Ys(H){var M={};return H&&M.toString.call(H)==="[object Function]"}function za(H,M){if(H.nodeType!==1)return[];var b=H.ownerDocument.defaultView,P=b.getComputedStyle(H,null);return M?P[M]:P}function Ss(H){return H.nodeName==="HTML"?H:H.parentNode||H.host}function Wo(H){if(!H)return document.body;switch(H.nodeName){case"HTML":case"BODY":return H.ownerDocument.body;case"#document":return H.body}var M=za(H),b=M.overflow,P=M.overflowX,B=M.overflowY;return/(auto|scroll|overlay)/.test(b+B+P)?H:Wo(Ss(H))}function Xs(H){return H&&H.referenceNode?H.referenceNode:H}var Rs=jo&&!!(window.MSInputMethodContext&&document.documentMode),_s=jo&&/MSIE 10/.test(navigator.userAgent);function vo(H){return H===11?Rs:H===10?_s:Rs||_s}function fo(H){if(!H)return document.documentElement;for(var M=vo(10)?document.body:null,b=H.offsetParent||null;b===M&&H.nextElementSibling;)b=(H=H.nextElementSibling).offsetParent;var P=b&&b.nodeName;return!P||P==="BODY"||P==="HTML"?H?H.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(b.nodeName)!==-1&&za(b,"position")==="static"?fo(b):b}function tu(H){var M=H.nodeName;return M==="BODY"?!1:M==="HTML"||fo(H.firstElementChild)===H}function vs(H){return H.parentNode!==null?vs(H.parentNode):H}function Zo(H,M){if(!H||!H.nodeType||!M||!M.nodeType)return document.documentElement;var b=H.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING,P=b?H:M,B=b?M:H,m=document.createRange();m.setStart(P,0),m.setEnd(B,0);var t=m.commonAncestorContainer;if(H!==t&&M!==t||P.contains(B))return tu(t)?t:fo(t);var p=vs(H);return p.host?Zo(p.host,M):Zo(H,vs(M).host)}function ho(H){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",b=M==="top"?"scrollTop":"scrollLeft",P=H.nodeName;if(P==="BODY"||P==="HTML"){var B=H.ownerDocument.documentElement,m=H.ownerDocument.scrollingElement||B;return m[b]}return H[b]}function ru(H,M){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,P=ho(M,"top"),B=ho(M,"left"),m=b?-1:1;return H.top+=P*m,H.bottom+=P*m,H.left+=B*m,H.right+=B*m,H}function Is(H,M){var b=M==="x"?"Left":"Top",P=b==="Left"?"Right":"Bottom";return parseFloat(H["border"+b+"Width"])+parseFloat(H["border"+P+"Width"])}function Os(H,M,b,P){return Math.max(M["offset"+H],M["scroll"+H],b["client"+H],b["offset"+H],b["scroll"+H],vo(10)?parseInt(b["offset"+H])+parseInt(P["margin"+(H==="Height"?"Top":"Left")])+parseInt(P["margin"+(H==="Height"?"Bottom":"Right")]):0)}function Ks(H){var M=H.body,b=H.documentElement,P=vo(10)&&getComputedStyle(b);return{height:Os("Height",M,b,P),width:Os("Width",M,b,P)}}var nu=function(H,M){if(!(H instanceof M))throw new TypeError("Cannot call a class as a function")},iu=function(){function H(M,b){for(var P=0;P<b.length;P++){var B=b[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(M,B.key,B)}}return function(M,b,P){return b&&H(M.prototype,b),P&&H(M,P),M}}(),po=function(H,M,b){return M in H?Object.defineProperty(H,M,{value:b,enumerable:!0,configurable:!0,writable:!0}):H[M]=b,H},fi=Object.assign||function(H){for(var M=1;M<arguments.length;M++){var b=arguments[M];for(var P in b)Object.prototype.hasOwnProperty.call(b,P)&&(H[P]=b[P])}return H};function ya(H){return fi({},H,{right:H.left+H.width,bottom:H.top+H.height})}function gs(H){var M={};try{if(vo(10)){M=H.getBoundingClientRect();var b=ho(H,"top"),P=ho(H,"left");M.top+=b,M.left+=P,M.bottom+=b,M.right+=P}else M=H.getBoundingClientRect()}catch{}var B={left:M.left,top:M.top,width:M.right-M.left,height:M.bottom-M.top},m=H.nodeName==="HTML"?Ks(H.ownerDocument):{},t=m.width||H.clientWidth||B.width,p=m.height||H.clientHeight||B.height,w=H.offsetWidth-t,g=H.offsetHeight-p;if(w||g){var E=za(H);w-=Is(E,"x"),g-=Is(E,"y"),B.width-=w,B.height-=g}return ya(B)}function xs(H,M){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,P=vo(10),B=M.nodeName==="HTML",m=gs(H),t=gs(M),p=Wo(H),w=za(M),g=parseFloat(w.borderTopWidth),E=parseFloat(w.borderLeftWidth);b&&B&&(t.top=Math.max(t.top,0),t.left=Math.max(t.left,0));var n=ya({top:m.top-t.top-g,left:m.left-t.left-E,width:m.width,height:m.height});if(n.marginTop=0,n.marginLeft=0,!P&&B){var i=parseFloat(w.marginTop),u=parseFloat(w.marginLeft);n.top-=g-i,n.bottom-=g-i,n.left-=E-u,n.right-=E-u,n.marginTop=i,n.marginLeft=u}return(P&&!b?M.contains(p):M===p&&p.nodeName!=="BODY")&&(n=ru(n,M)),n}function au(H){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=H.ownerDocument.documentElement,P=xs(H,b),B=Math.max(b.clientWidth,window.innerWidth||0),m=Math.max(b.clientHeight,window.innerHeight||0),t=M?0:ho(b),p=M?0:ho(b,"left"),w={top:t-P.top+P.marginTop,left:p-P.left+P.marginLeft,width:B,height:m};return ya(w)}function Qs(H){var M=H.nodeName;if(M==="BODY"||M==="HTML")return!1;if(za(H,"position")==="fixed")return!0;var b=Ss(H);return b?Qs(b):!1}function Zs(H){if(!H||!H.parentElement||vo())return document.documentElement;for(var M=H.parentElement;M&&za(M,"transform")==="none";)M=M.parentElement;return M||document.documentElement}function Cs(H,M,b,P){var B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,m={top:0,left:0},t=B?Zs(H):Zo(H,Xs(M));if(P==="viewport")m=au(t,B);else{var p=void 0;P==="scrollParent"?(p=Wo(Ss(M)),p.nodeName==="BODY"&&(p=H.ownerDocument.documentElement)):P==="window"?p=H.ownerDocument.documentElement:p=P;var w=xs(p,t,B);if(p.nodeName==="HTML"&&!Qs(t)){var g=Ks(H.ownerDocument),E=g.height,n=g.width;m.top+=w.top-w.marginTop,m.bottom=E+w.top,m.left+=w.left-w.marginLeft,m.right=n+w.left}else m=w}b=b||0;var i=typeof b=="number";return m.left+=i?b:b.left||0,m.top+=i?b:b.top||0,m.right-=i?b:b.right||0,m.bottom-=i?b:b.bottom||0,m}function ou(H){var M=H.width,b=H.height;return M*b}function Js(H,M,b,P,B){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(H.indexOf("auto")===-1)return H;var t=Cs(b,P,m,B),p={top:{width:t.width,height:M.top-t.top},right:{width:t.right-M.right,height:t.height},bottom:{width:t.width,height:t.bottom-M.bottom},left:{width:M.left-t.left,height:t.height}},w=Object.keys(p).map(function(i){return fi({key:i},p[i],{area:ou(p[i])})}).sort(function(i,u){return u.area-i.area}),g=w.filter(function(i){var u=i.width,o=i.height;return u>=b.clientWidth&&o>=b.clientHeight}),E=g.length>0?g[0].key:w[0].key,n=H.split("-")[1];return E+(n?"-"+n:"")}function $s(H,M,b){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,B=P?Zs(M):Zo(M,Xs(b));return xs(b,B,P)}function qs(H){var M=H.ownerDocument.defaultView,b=M.getComputedStyle(H),P=parseFloat(b.marginTop||0)+parseFloat(b.marginBottom||0),B=parseFloat(b.marginLeft||0)+parseFloat(b.marginRight||0),m={width:H.offsetWidth+B,height:H.offsetHeight+P};return m}function Jo(H){var M={left:"right",right:"left",bottom:"top",top:"bottom"};return H.replace(/left|right|bottom|top/g,function(b){return M[b]})}function el(H,M,b){b=b.split("-")[0];var P=qs(H),B={width:P.width,height:P.height},m=["right","left"].indexOf(b)!==-1,t=m?"top":"left",p=m?"left":"top",w=m?"height":"width",g=m?"width":"height";return B[t]=M[t]+M[w]/2-P[w]/2,b===p?B[p]=M[p]-P[g]:B[p]=M[Jo(p)],B}function Uo(H,M){return Array.prototype.find?H.find(M):H.filter(M)[0]}function su(H,M,b){if(Array.prototype.findIndex)return H.findIndex(function(B){return B[M]===b});var P=Uo(H,function(B){return B[M]===b});return H.indexOf(P)}function tl(H,M,b){var P=b===void 0?H:H.slice(0,su(H,"name",b));return P.forEach(function(B){B.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var m=B.function||B.fn;B.enabled&&Ys(m)&&(M.offsets.popper=ya(M.offsets.popper),M.offsets.reference=ya(M.offsets.reference),M=m(M,B))}),M}function lu(){if(!this.state.isDestroyed){var H={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};H.offsets.reference=$s(this.state,this.popper,this.reference,this.options.positionFixed),H.placement=Js(this.options.placement,H.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),H.originalPlacement=H.placement,H.positionFixed=this.options.positionFixed,H.offsets.popper=el(this.popper,H.offsets.reference,H.placement),H.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",H=tl(this.modifiers,H),this.state.isCreated?this.options.onUpdate(H):(this.state.isCreated=!0,this.options.onCreate(H))}}function rl(H,M){return H.some(function(b){var P=b.name,B=b.enabled;return B&&P===M})}function Ds(H){for(var M=[!1,"ms","Webkit","Moz","O"],b=H.charAt(0).toUpperCase()+H.slice(1),P=0;P<M.length;P++){var B=M[P],m=B?""+B+b:H;if(typeof document.body.style[m]<"u")return m}return null}function uu(){return this.state.isDestroyed=!0,rl(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Ds("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function nl(H){var M=H.ownerDocument;return M?M.defaultView:window}function il(H,M,b,P){var B=H.nodeName==="BODY",m=B?H.ownerDocument.defaultView:H;m.addEventListener(M,b,{passive:!0}),B||il(Wo(m.parentNode),M,b,P),P.push(m)}function du(H,M,b,P){b.updateBound=P,nl(H).addEventListener("resize",b.updateBound,{passive:!0});var B=Wo(H);return il(B,"scroll",b.updateBound,b.scrollParents),b.scrollElement=B,b.eventsEnabled=!0,b}function cu(){this.state.eventsEnabled||(this.state=du(this.reference,this.options,this.state,this.scheduleUpdate))}function fu(H,M){return nl(H).removeEventListener("resize",M.updateBound),M.scrollParents.forEach(function(b){b.removeEventListener("scroll",M.updateBound)}),M.updateBound=null,M.scrollParents=[],M.scrollElement=null,M.eventsEnabled=!1,M}function hu(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=fu(this.reference,this.state))}function Ts(H){return H!==""&&!isNaN(parseFloat(H))&&isFinite(H)}function ms(H,M){Object.keys(M).forEach(function(b){var P="";["width","height","top","right","bottom","left"].indexOf(b)!==-1&&Ts(M[b])&&(P="px"),H.style[b]=M[b]+P})}function pu(H,M){Object.keys(M).forEach(function(b){var P=M[b];P!==!1?H.setAttribute(b,M[b]):H.removeAttribute(b)})}function vu(H){return ms(H.instance.popper,H.styles),pu(H.instance.popper,H.attributes),H.arrowElement&&Object.keys(H.arrowStyles).length&&ms(H.arrowElement,H.arrowStyles),H}function gu(H,M,b,P,B){var m=$s(B,M,H,b.positionFixed),t=Js(b.placement,m,M,H,b.modifiers.flip.boundariesElement,b.modifiers.flip.padding);return M.setAttribute("x-placement",t),ms(M,{position:b.positionFixed?"fixed":"absolute"}),b}function mu(H,M){var b=H.offsets,P=b.popper,B=b.reference,m=Math.round,t=Math.floor,p=function(a){return a},w=m(B.width),g=m(P.width),E=["left","right"].indexOf(H.placement)!==-1,n=H.placement.indexOf("-")!==-1,i=w%2===g%2,u=w%2===1&&g%2===1,o=M?E||n||i?m:t:p,c=M?m:p;return{left:o(u&&!n&&M?P.left-1:P.left),top:c(P.top),bottom:c(P.bottom),right:o(P.right)}}var yu=jo&&/Firefox/i.test(navigator.userAgent);function bu(H,M){var b=M.x,P=M.y,B=H.offsets.popper,m=Uo(H.instance.modifiers,function(h){return h.name==="applyStyle"}).gpuAcceleration;m!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var t=m!==void 0?m:M.gpuAcceleration,p=fo(H.instance.popper),w=gs(p),g={position:B.position},E=mu(H,window.devicePixelRatio<2||!yu),n=b==="bottom"?"top":"bottom",i=P==="right"?"left":"right",u=Ds("transform"),o=void 0,c=void 0;if(n==="bottom"?p.nodeName==="HTML"?c=-p.clientHeight+E.bottom:c=-w.height+E.bottom:c=E.top,i==="right"?p.nodeName==="HTML"?o=-p.clientWidth+E.right:o=-w.width+E.right:o=E.left,t&&u)g[u]="translate3d("+o+"px, "+c+"px, 0)",g[n]=0,g[i]=0,g.willChange="transform";else{var l=n==="bottom"?-1:1,a=i==="right"?-1:1;g[n]=c*l,g[i]=o*a,g.willChange=n+", "+i}var d={"x-placement":H.placement};return H.attributes=fi({},d,H.attributes),H.styles=fi({},g,H.styles),H.arrowStyles=fi({},H.offsets.arrow,H.arrowStyles),H}function al(H,M,b){var P=Uo(H,function(p){var w=p.name;return w===M}),B=!!P&&H.some(function(p){return p.name===b&&p.enabled&&p.order<P.order});if(!B){var m="`"+M+"`",t="`"+b+"`";console.warn(t+" modifier is required by "+m+" modifier in order to work, be sure to include it before "+m+"!")}return B}function wu(H,M){var b;if(!al(H.instance.modifiers,"arrow","keepTogether"))return H;var P=M.element;if(typeof P=="string"){if(P=H.instance.popper.querySelector(P),!P)return H}else if(!H.instance.popper.contains(P))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),H;var B=H.placement.split("-")[0],m=H.offsets,t=m.popper,p=m.reference,w=["left","right"].indexOf(B)!==-1,g=w?"height":"width",E=w?"Top":"Left",n=E.toLowerCase(),i=w?"left":"top",u=w?"bottom":"right",o=qs(P)[g];p[u]-o<t[n]&&(H.offsets.popper[n]-=t[n]-(p[u]-o)),p[n]+o>t[u]&&(H.offsets.popper[n]+=p[n]+o-t[u]),H.offsets.popper=ya(H.offsets.popper);var c=p[n]+p[g]/2-o/2,l=za(H.instance.popper),a=parseFloat(l["margin"+E]),d=parseFloat(l["border"+E+"Width"]),h=c-H.offsets.popper[n]-a-d;return h=Math.max(Math.min(t[g]-o,h),0),H.arrowElement=P,H.offsets.arrow=(b={},po(b,n,Math.round(h)),po(b,i,""),b),H}function Eu(H){return H==="end"?"start":H==="start"?"end":H}var ol=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ss=ol.slice(3);function ks(H){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=ss.indexOf(H),P=ss.slice(b+1).concat(ss.slice(0,b));return M?P.reverse():P}var ls={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Su(H,M){if(rl(H.instance.modifiers,"inner")||H.flipped&&H.placement===H.originalPlacement)return H;var b=Cs(H.instance.popper,H.instance.reference,M.padding,M.boundariesElement,H.positionFixed),P=H.placement.split("-")[0],B=Jo(P),m=H.placement.split("-")[1]||"",t=[];switch(M.behavior){case ls.FLIP:t=[P,B];break;case ls.CLOCKWISE:t=ks(P);break;case ls.COUNTERCLOCKWISE:t=ks(P,!0);break;default:t=M.behavior}return t.forEach(function(p,w){if(P!==p||t.length===w+1)return H;P=H.placement.split("-")[0],B=Jo(P);var g=H.offsets.popper,E=H.offsets.reference,n=Math.floor,i=P==="left"&&n(g.right)>n(E.left)||P==="right"&&n(g.left)<n(E.right)||P==="top"&&n(g.bottom)>n(E.top)||P==="bottom"&&n(g.top)<n(E.bottom),u=n(g.left)<n(b.left),o=n(g.right)>n(b.right),c=n(g.top)<n(b.top),l=n(g.bottom)>n(b.bottom),a=P==="left"&&u||P==="right"&&o||P==="top"&&c||P==="bottom"&&l,d=["top","bottom"].indexOf(P)!==-1,h=!!M.flipVariations&&(d&&m==="start"&&u||d&&m==="end"&&o||!d&&m==="start"&&c||!d&&m==="end"&&l),v=!!M.flipVariationsByContent&&(d&&m==="start"&&o||d&&m==="end"&&u||!d&&m==="start"&&l||!d&&m==="end"&&c),C=h||v;(i||a||C)&&(H.flipped=!0,(i||a)&&(P=t[w+1]),C&&(m=Eu(m)),H.placement=P+(m?"-"+m:""),H.offsets.popper=fi({},H.offsets.popper,el(H.instance.popper,H.offsets.reference,H.placement)),H=tl(H.instance.modifiers,H,"flip"))}),H}function xu(H){var M=H.offsets,b=M.popper,P=M.reference,B=H.placement.split("-")[0],m=Math.floor,t=["top","bottom"].indexOf(B)!==-1,p=t?"right":"bottom",w=t?"left":"top",g=t?"width":"height";return b[p]<m(P[w])&&(H.offsets.popper[w]=m(P[w])-b[g]),b[w]>m(P[p])&&(H.offsets.popper[w]=m(P[p])),H}function Cu(H,M,b,P){var B=H.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),m=+B[1],t=B[2];if(!m)return H;if(t.indexOf("%")===0){var p=void 0;switch(t){case"%p":p=b;break;case"%":case"%r":default:p=P}var w=ya(p);return w[M]/100*m}else if(t==="vh"||t==="vw"){var g=void 0;return t==="vh"?g=Math.max(document.documentElement.clientHeight,window.innerHeight||0):g=Math.max(document.documentElement.clientWidth,window.innerWidth||0),g/100*m}else return m}function Du(H,M,b,P){var B=[0,0],m=["right","left"].indexOf(P)!==-1,t=H.split(/(\+|\-)/).map(function(E){return E.trim()}),p=t.indexOf(Uo(t,function(E){return E.search(/,|\s/)!==-1}));t[p]&&t[p].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var w=/\s*,\s*|\s+/,g=p!==-1?[t.slice(0,p).concat([t[p].split(w)[0]]),[t[p].split(w)[1]].concat(t.slice(p+1))]:[t];return g=g.map(function(E,n){var i=(n===1?!m:m)?"height":"width",u=!1;return E.reduce(function(o,c){return o[o.length-1]===""&&["+","-"].indexOf(c)!==-1?(o[o.length-1]=c,u=!0,o):u?(o[o.length-1]+=c,u=!1,o):o.concat(c)},[]).map(function(o){return Cu(o,i,M,b)})}),g.forEach(function(E,n){E.forEach(function(i,u){Ts(i)&&(B[n]+=i*(E[u-1]==="-"?-1:1))})}),B}function Tu(H,M){var b=M.offset,P=H.placement,B=H.offsets,m=B.popper,t=B.reference,p=P.split("-")[0],w=void 0;return Ts(+b)?w=[+b,0]:w=Du(b,m,t,p),p==="left"?(m.top+=w[0],m.left-=w[1]):p==="right"?(m.top+=w[0],m.left+=w[1]):p==="top"?(m.left+=w[0],m.top-=w[1]):p==="bottom"&&(m.left+=w[0],m.top+=w[1]),H.popper=m,H}function Mu(H,M){var b=M.boundariesElement||fo(H.instance.popper);H.instance.reference===b&&(b=fo(b));var P=Ds("transform"),B=H.instance.popper.style,m=B.top,t=B.left,p=B[P];B.top="",B.left="",B[P]="";var w=Cs(H.instance.popper,H.instance.reference,M.padding,b,H.positionFixed);B.top=m,B.left=t,B[P]=p,M.boundaries=w;var g=M.priority,E=H.offsets.popper,n={primary:function(u){var o=E[u];return E[u]<w[u]&&!M.escapeWithReference&&(o=Math.max(E[u],w[u])),po({},u,o)},secondary:function(u){var o=u==="right"?"left":"top",c=E[o];return E[u]>w[u]&&!M.escapeWithReference&&(c=Math.min(E[o],w[u]-(u==="right"?E.width:E.height))),po({},o,c)}};return g.forEach(function(i){var u=["left","top"].indexOf(i)!==-1?"primary":"secondary";E=fi({},E,n[u](i))}),H.offsets.popper=E,H}function Ru(H){var M=H.placement,b=M.split("-")[0],P=M.split("-")[1];if(P){var B=H.offsets,m=B.reference,t=B.popper,p=["bottom","top"].indexOf(b)!==-1,w=p?"left":"top",g=p?"width":"height",E={start:po({},w,m[w]),end:po({},w,m[w]+m[g]-t[g])};H.offsets.popper=fi({},t,E[P])}return H}function _u(H){if(!al(H.instance.modifiers,"hide","preventOverflow"))return H;var M=H.offsets.reference,b=Uo(H.instance.modifiers,function(P){return P.name==="preventOverflow"}).boundaries;if(M.bottom<b.top||M.left>b.right||M.top>b.bottom||M.right<b.left){if(H.hide===!0)return H;H.hide=!0,H.attributes["x-out-of-boundaries"]=""}else{if(H.hide===!1)return H;H.hide=!1,H.attributes["x-out-of-boundaries"]=!1}return H}function Iu(H){var M=H.placement,b=M.split("-")[0],P=H.offsets,B=P.popper,m=P.reference,t=["left","right"].indexOf(b)!==-1,p=["top","left"].indexOf(b)===-1;return B[t?"left":"top"]=m[b]-(p?B[t?"width":"height"]:0),H.placement=Jo(M),H.offsets.popper=ya(B),H}var Ou={shift:{order:100,enabled:!0,fn:Ru},offset:{order:200,enabled:!0,fn:Tu,offset:0},preventOverflow:{order:300,enabled:!0,fn:Mu,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:xu},arrow:{order:500,enabled:!0,fn:wu,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Su,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Iu},hide:{order:800,enabled:!0,fn:_u},computeStyle:{order:850,enabled:!0,fn:bu,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:vu,onLoad:gu,gpuAcceleration:void 0}},ku={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ou},Vo=function(){function H(M,b){var P=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};nu(this,H),this.scheduleUpdate=function(){return requestAnimationFrame(P.update)},this.update=eu(this.update.bind(this)),this.options=fi({},H.Defaults,B),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=M&&M.jquery?M[0]:M,this.popper=b&&b.jquery?b[0]:b,this.options.modifiers={},Object.keys(fi({},H.Defaults.modifiers,B.modifiers)).forEach(function(t){P.options.modifiers[t]=fi({},H.Defaults.modifiers[t]||{},B.modifiers?B.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return fi({name:t},P.options.modifiers[t])}).sort(function(t,p){return t.order-p.order}),this.modifiers.forEach(function(t){t.enabled&&Ys(t.onLoad)&&t.onLoad(P.reference,P.popper,P.options,t,P.state)}),this.update();var m=this.options.eventsEnabled;m&&this.enableEventListeners(),this.state.eventsEnabled=m}return iu(H,[{key:"update",value:function(){return lu.call(this)}},{key:"destroy",value:function(){return uu.call(this)}},{key:"enableEventListeners",value:function(){return cu.call(this)}},{key:"disableEventListeners",value:function(){return hu.call(this)}}]),H}();Vo.Utils=(typeof window<"u"?window:global).PopperUtils;Vo.placements=ol;Vo.Defaults=ku;const Au=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"}));var As={exports:{}};const Pu=Xl(Au);/*!
  * Bootstrap v4.6.2 (https://getbootstrap.com/)
  * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */(function(H,M){(function(b,P){P(M,xi,Pu)})(zi,function(b,P,B){function m(je){return je&&typeof je=="object"&&"default"in je?je:{default:je}}var t=m(P),p=m(B);function w(je,Te){for(var Se=0;Se<Te.length;Se++){var Y=Te[Se];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(je,Y.key,Y)}}function g(je,Te,Se){return Se&&w(je,Se),Object.defineProperty(je,"prototype",{writable:!1}),je}function E(){return E=Object.assign?Object.assign.bind():function(je){for(var Te=1;Te<arguments.length;Te++){var Se=arguments[Te];for(var Y in Se)Object.prototype.hasOwnProperty.call(Se,Y)&&(je[Y]=Se[Y])}return je},E.apply(this,arguments)}function n(je,Te){je.prototype=Object.create(Te.prototype),je.prototype.constructor=je,i(je,Te)}function i(je,Te){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Y,ue){return Y.__proto__=ue,Y},i(je,Te)}var u="transitionend",o=1e6,c=1e3;function l(je){return je===null||typeof je>"u"?""+je:{}.toString.call(je).match(/\s([a-z]+)/i)[1].toLowerCase()}function a(){return{bindType:u,delegateType:u,handle:function(Te){if(t.default(Te.target).is(this))return Te.handleObj.handler.apply(this,arguments)}}}function d(je){var Te=this,Se=!1;return t.default(this).one(v.TRANSITION_END,function(){Se=!0}),setTimeout(function(){Se||v.triggerTransitionEnd(Te)},je),this}function h(){t.default.fn.emulateTransitionEnd=d,t.default.event.special[v.TRANSITION_END]=a()}var v={TRANSITION_END:"bsTransitionEnd",getUID:function(Te){do Te+=~~(Math.random()*o);while(document.getElementById(Te));return Te},getSelectorFromElement:function(Te){var Se=Te.getAttribute("data-target");if(!Se||Se==="#"){var Y=Te.getAttribute("href");Se=Y&&Y!=="#"?Y.trim():""}try{return document.querySelector(Se)?Se:null}catch{return null}},getTransitionDurationFromElement:function(Te){if(!Te)return 0;var Se=t.default(Te).css("transition-duration"),Y=t.default(Te).css("transition-delay"),ue=parseFloat(Se),ye=parseFloat(Y);return!ue&&!ye?0:(Se=Se.split(",")[0],Y=Y.split(",")[0],(parseFloat(Se)+parseFloat(Y))*c)},reflow:function(Te){return Te.offsetHeight},triggerTransitionEnd:function(Te){t.default(Te).trigger(u)},supportsTransitionEnd:function(){return!!u},isElement:function(Te){return(Te[0]||Te).nodeType},typeCheckConfig:function(Te,Se,Y){for(var ue in Y)if(Object.prototype.hasOwnProperty.call(Y,ue)){var ye=Y[ue],Ve=Se[ue],Je=Ve&&v.isElement(Ve)?"element":l(Ve);if(!new RegExp(ye).test(Je))throw new Error(Te.toUpperCase()+": "+('Option "'+ue+'" provided type "'+Je+'" ')+('but expected type "'+ye+'".'))}},findShadowRoot:function(Te){if(!document.documentElement.attachShadow)return null;if(typeof Te.getRootNode=="function"){var Se=Te.getRootNode();return Se instanceof ShadowRoot?Se:null}return Te instanceof ShadowRoot?Te:Te.parentNode?v.findShadowRoot(Te.parentNode):null},jQueryDetection:function(){if(typeof t.default>"u")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var Te=t.default.fn.jquery.split(" ")[0].split("."),Se=1,Y=2,ue=9,ye=1,Ve=4;if(Te[0]<Y&&Te[1]<ue||Te[0]===Se&&Te[1]===ue&&Te[2]<ye||Te[0]>=Ve)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};v.jQueryDetection(),h();var C="alert",k="4.6.2",j="bs.alert",G="."+j,N=".data-api",T=t.default.fn[C],A="alert",U="fade",X="show",Q="close"+G,re="closed"+G,ge="click"+G+N,Ce='[data-dismiss="alert"]',pe=function(){function je(Se){this._element=Se}var Te=je.prototype;return Te.close=function(Y){var ue=this._element;Y&&(ue=this._getRootElement(Y));var ye=this._triggerCloseEvent(ue);ye.isDefaultPrevented()||this._removeElement(ue)},Te.dispose=function(){t.default.removeData(this._element,j),this._element=null},Te._getRootElement=function(Y){var ue=v.getSelectorFromElement(Y),ye=!1;return ue&&(ye=document.querySelector(ue)),ye||(ye=t.default(Y).closest("."+A)[0]),ye},Te._triggerCloseEvent=function(Y){var ue=t.default.Event(Q);return t.default(Y).trigger(ue),ue},Te._removeElement=function(Y){var ue=this;if(t.default(Y).removeClass(X),!t.default(Y).hasClass(U)){this._destroyElement(Y);return}var ye=v.getTransitionDurationFromElement(Y);t.default(Y).one(v.TRANSITION_END,function(Ve){return ue._destroyElement(Y,Ve)}).emulateTransitionEnd(ye)},Te._destroyElement=function(Y){t.default(Y).detach().trigger(re).remove()},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this),ye=ue.data(j);ye||(ye=new je(this),ue.data(j,ye)),Y==="close"&&ye[Y](this)})},je._handleDismiss=function(Y){return function(ue){ue&&ue.preventDefault(),Y.close(this)}},g(je,null,[{key:"VERSION",get:function(){return k}}]),je}();t.default(document).on(ge,Ce,pe._handleDismiss(new pe)),t.default.fn[C]=pe._jQueryInterface,t.default.fn[C].Constructor=pe,t.default.fn[C].noConflict=function(){return t.default.fn[C]=T,pe._jQueryInterface};var ie="button",oe="4.6.2",me="bs.button",Fe="."+me,et=".data-api",ft=t.default.fn[ie],ze="active",bt="btn",St="focus",Le="click"+Fe+et,Et="focus"+Fe+et+" "+("blur"+Fe+et),Mt="load"+Fe+et,at='[data-toggle^="button"]',Ot='[data-toggle="buttons"]',Ne='[data-toggle="button"]',ct='[data-toggle="buttons"] .btn',mt='input:not([type="hidden"])',Ct=".active",Ue=".btn",qe=function(){function je(Se){this._element=Se,this.shouldAvoidTriggerChange=!1}var Te=je.prototype;return Te.toggle=function(){var Y=!0,ue=!0,ye=t.default(this._element).closest(Ot)[0];if(ye){var Ve=this._element.querySelector(mt);if(Ve){if(Ve.type==="radio")if(Ve.checked&&this._element.classList.contains(ze))Y=!1;else{var Je=ye.querySelector(Ct);Je&&t.default(Je).removeClass(ze)}Y&&((Ve.type==="checkbox"||Ve.type==="radio")&&(Ve.checked=!this._element.classList.contains(ze)),this.shouldAvoidTriggerChange||t.default(Ve).trigger("change")),Ve.focus(),ue=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(ue&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(ze)),Y&&t.default(this._element).toggleClass(ze))},Te.dispose=function(){t.default.removeData(this._element,me),this._element=null},je._jQueryInterface=function(Y,ue){return this.each(function(){var ye=t.default(this),Ve=ye.data(me);Ve||(Ve=new je(this),ye.data(me,Ve)),Ve.shouldAvoidTriggerChange=ue,Y==="toggle"&&Ve[Y]()})},g(je,null,[{key:"VERSION",get:function(){return oe}}]),je}();t.default(document).on(Le,at,function(je){var Te=je.target,Se=Te;if(t.default(Te).hasClass(bt)||(Te=t.default(Te).closest(Ue)[0]),!Te||Te.hasAttribute("disabled")||Te.classList.contains("disabled"))je.preventDefault();else{var Y=Te.querySelector(mt);if(Y&&(Y.hasAttribute("disabled")||Y.classList.contains("disabled"))){je.preventDefault();return}(Se.tagName==="INPUT"||Te.tagName!=="LABEL")&&qe._jQueryInterface.call(t.default(Te),"toggle",Se.tagName==="INPUT")}}).on(Et,at,function(je){var Te=t.default(je.target).closest(Ue)[0];t.default(Te).toggleClass(St,/^focus(in)?$/.test(je.type))}),t.default(window).on(Mt,function(){for(var je=[].slice.call(document.querySelectorAll(ct)),Te=0,Se=je.length;Te<Se;Te++){var Y=je[Te],ue=Y.querySelector(mt);ue.checked||ue.hasAttribute("checked")?Y.classList.add(ze):Y.classList.remove(ze)}je=[].slice.call(document.querySelectorAll(Ne));for(var ye=0,Ve=je.length;ye<Ve;ye++){var Je=je[ye];Je.getAttribute("aria-pressed")==="true"?Je.classList.add(ze):Je.classList.remove(ze)}}),t.default.fn[ie]=qe._jQueryInterface,t.default.fn[ie].Constructor=qe,t.default.fn[ie].noConflict=function(){return t.default.fn[ie]=ft,qe._jQueryInterface};var Ft="carousel",Wt="4.6.2",ne="bs.carousel",_e="."+ne,tt=".data-api",Dt=t.default.fn[Ft],vt=37,Rt=39,At=500,dt=40,nt="carousel",te="active",he="slide",xe="carousel-item-right",He="carousel-item-left",Ae="carousel-item-next",Ye="carousel-item-prev",Xe="pointer-event",st="next",ce="prev",we="left",Me="right",Ze="slide"+_e,ot="slid"+_e,_t="keydown"+_e,Ut="mouseenter"+_e,nr="mouseleave"+_e,pr="touchstart"+_e,lr="touchmove"+_e,Tr="touchend"+_e,Sr="pointerdown"+_e,kr="pointerup"+_e,En="dragstart"+_e,Rn="load"+_e+tt,yt="click"+_e+tt,$n=".active",Hn=".active.carousel-item",Wr=".carousel-item",Ur=".carousel-item img",qt=".carousel-item-next, .carousel-item-prev",gn=".carousel-indicators",We="[data-slide], [data-slide-to]",Ke='[data-ride="carousel"]',ht={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Tt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},kt={TOUCH:"touch",PEN:"pen"},Ht=function(){function je(Se,Y){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(Y),this._element=Se,this._indicatorsElement=this._element.querySelector(gn),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=!!(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var Te=je.prototype;return Te.next=function(){this._isSliding||this._slide(st)},Te.nextWhenVisible=function(){var Y=t.default(this._element);!document.hidden&&Y.is(":visible")&&Y.css("visibility")!=="hidden"&&this.next()},Te.prev=function(){this._isSliding||this._slide(ce)},Te.pause=function(Y){Y||(this._isPaused=!0),this._element.querySelector(qt)&&(v.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},Te.cycle=function(Y){Y||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},Te.to=function(Y){var ue=this;this._activeElement=this._element.querySelector(Hn);var ye=this._getItemIndex(this._activeElement);if(!(Y>this._items.length-1||Y<0)){if(this._isSliding){t.default(this._element).one(ot,function(){return ue.to(Y)});return}if(ye===Y){this.pause(),this.cycle();return}var Ve=Y>ye?st:ce;this._slide(Ve,this._items[Y])}},Te.dispose=function(){t.default(this._element).off(_e),t.default.removeData(this._element,ne),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},Te._getConfig=function(Y){return Y=E({},ht,Y),v.typeCheckConfig(Ft,Y,Tt),Y},Te._handleSwipe=function(){var Y=Math.abs(this.touchDeltaX);if(!(Y<=dt)){var ue=Y/this.touchDeltaX;this.touchDeltaX=0,ue>0&&this.prev(),ue<0&&this.next()}},Te._addEventListeners=function(){var Y=this;this._config.keyboard&&t.default(this._element).on(_t,function(ue){return Y._keydown(ue)}),this._config.pause==="hover"&&t.default(this._element).on(Ut,function(ue){return Y.pause(ue)}).on(nr,function(ue){return Y.cycle(ue)}),this._config.touch&&this._addTouchEventListeners()},Te._addTouchEventListeners=function(){var Y=this;if(this._touchSupported){var ue=function(lt){Y._pointerEvent&&kt[lt.originalEvent.pointerType.toUpperCase()]?Y.touchStartX=lt.originalEvent.clientX:Y._pointerEvent||(Y.touchStartX=lt.originalEvent.touches[0].clientX)},ye=function(lt){Y.touchDeltaX=lt.originalEvent.touches&&lt.originalEvent.touches.length>1?0:lt.originalEvent.touches[0].clientX-Y.touchStartX},Ve=function(lt){Y._pointerEvent&&kt[lt.originalEvent.pointerType.toUpperCase()]&&(Y.touchDeltaX=lt.originalEvent.clientX-Y.touchStartX),Y._handleSwipe(),Y._config.pause==="hover"&&(Y.pause(),Y.touchTimeout&&clearTimeout(Y.touchTimeout),Y.touchTimeout=setTimeout(function(jt){return Y.cycle(jt)},At+Y._config.interval))};t.default(this._element.querySelectorAll(Ur)).on(En,function(Je){return Je.preventDefault()}),this._pointerEvent?(t.default(this._element).on(Sr,function(Je){return ue(Je)}),t.default(this._element).on(kr,function(Je){return Ve(Je)}),this._element.classList.add(Xe)):(t.default(this._element).on(pr,function(Je){return ue(Je)}),t.default(this._element).on(lr,function(Je){return ye(Je)}),t.default(this._element).on(Tr,function(Je){return Ve(Je)}))}},Te._keydown=function(Y){if(!/input|textarea/i.test(Y.target.tagName))switch(Y.which){case vt:Y.preventDefault(),this.prev();break;case Rt:Y.preventDefault(),this.next();break}},Te._getItemIndex=function(Y){return this._items=Y&&Y.parentNode?[].slice.call(Y.parentNode.querySelectorAll(Wr)):[],this._items.indexOf(Y)},Te._getItemByDirection=function(Y,ue){var ye=Y===st,Ve=Y===ce,Je=this._getItemIndex(ue),lt=this._items.length-1,jt=Ve&&Je===0||ye&&Je===lt;if(jt&&!this._config.wrap)return ue;var Jt=Y===ce?-1:1,$t=(Je+Jt)%this._items.length;return $t===-1?this._items[this._items.length-1]:this._items[$t]},Te._triggerSlideEvent=function(Y,ue){var ye=this._getItemIndex(Y),Ve=this._getItemIndex(this._element.querySelector(Hn)),Je=t.default.Event(Ze,{relatedTarget:Y,direction:ue,from:Ve,to:ye});return t.default(this._element).trigger(Je),Je},Te._setActiveIndicatorElement=function(Y){if(this._indicatorsElement){var ue=[].slice.call(this._indicatorsElement.querySelectorAll($n));t.default(ue).removeClass(te);var ye=this._indicatorsElement.children[this._getItemIndex(Y)];ye&&t.default(ye).addClass(te)}},Te._updateInterval=function(){var Y=this._activeElement||this._element.querySelector(Hn);if(Y){var ue=parseInt(Y.getAttribute("data-interval"),10);ue?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=ue):this._config.interval=this._config.defaultInterval||this._config.interval}},Te._slide=function(Y,ue){var ye=this,Ve=this._element.querySelector(Hn),Je=this._getItemIndex(Ve),lt=ue||Ve&&this._getItemByDirection(Y,Ve),jt=this._getItemIndex(lt),Jt=!!this._interval,$t,zr,Nn;if(Y===st?($t=He,zr=Ae,Nn=we):($t=xe,zr=Ye,Nn=Me),lt&&t.default(lt).hasClass(te)){this._isSliding=!1;return}var Tn=this._triggerSlideEvent(lt,Nn);if(!Tn.isDefaultPrevented()&&!(!Ve||!lt)){this._isSliding=!0,Jt&&this.pause(),this._setActiveIndicatorElement(lt),this._activeElement=lt;var bn=t.default.Event(ot,{relatedTarget:lt,direction:Nn,from:Je,to:jt});if(t.default(this._element).hasClass(he)){t.default(lt).addClass(zr),v.reflow(lt),t.default(Ve).addClass($t),t.default(lt).addClass($t);var Mn=v.getTransitionDurationFromElement(Ve);t.default(Ve).one(v.TRANSITION_END,function(){t.default(lt).removeClass($t+" "+zr).addClass(te),t.default(Ve).removeClass(te+" "+zr+" "+$t),ye._isSliding=!1,setTimeout(function(){return t.default(ye._element).trigger(bn)},0)}).emulateTransitionEnd(Mn)}else t.default(Ve).removeClass(te),t.default(lt).addClass(te),this._isSliding=!1,t.default(this._element).trigger(bn);Jt&&this.cycle()}},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this).data(ne),ye=E({},ht,t.default(this).data());typeof Y=="object"&&(ye=E({},ye,Y));var Ve=typeof Y=="string"?Y:ye.slide;if(ue||(ue=new je(this,ye),t.default(this).data(ne,ue)),typeof Y=="number")ue.to(Y);else if(typeof Ve=="string"){if(typeof ue[Ve]>"u")throw new TypeError('No method named "'+Ve+'"');ue[Ve]()}else ye.interval&&ye.ride&&(ue.pause(),ue.cycle())})},je._dataApiClickHandler=function(Y){var ue=v.getSelectorFromElement(this);if(ue){var ye=t.default(ue)[0];if(!(!ye||!t.default(ye).hasClass(nt))){var Ve=E({},t.default(ye).data(),t.default(this).data()),Je=this.getAttribute("data-slide-to");Je&&(Ve.interval=!1),je._jQueryInterface.call(t.default(ye),Ve),Je&&t.default(ye).data(ne).to(Je),Y.preventDefault()}}},g(je,null,[{key:"VERSION",get:function(){return Wt}},{key:"Default",get:function(){return ht}}]),je}();t.default(document).on(yt,We,Ht._dataApiClickHandler),t.default(window).on(Rn,function(){for(var je=[].slice.call(document.querySelectorAll(Ke)),Te=0,Se=je.length;Te<Se;Te++){var Y=t.default(je[Te]);Ht._jQueryInterface.call(Y,Y.data())}}),t.default.fn[Ft]=Ht._jQueryInterface,t.default.fn[Ft].Constructor=Ht,t.default.fn[Ft].noConflict=function(){return t.default.fn[Ft]=Dt,Ht._jQueryInterface};var er="collapse",or="4.6.2",Vt="bs.collapse",vr="."+Vt,Gt=".data-api",Pt=t.default.fn[er],br="show",Lr="collapse",rn="collapsing",sr="collapsed",fn="width",na="height",ia="show"+vr,Bi="shown"+vr,Ci="hide"+vr,qn="hidden"+vr,ji="click"+vr+Gt,Vn=".show, .collapsing",ei='[data-toggle="collapse"]',mn={toggle:!0,parent:""},hn={toggle:"boolean",parent:"(string|element)"},_r=function(){function je(Se,Y){this._isTransitioning=!1,this._element=Se,this._config=this._getConfig(Y),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+Se.id+'"],'+('[data-toggle="collapse"][data-target="#'+Se.id+'"]')));for(var ue=[].slice.call(document.querySelectorAll(ei)),ye=0,Ve=ue.length;ye<Ve;ye++){var Je=ue[ye],lt=v.getSelectorFromElement(Je),jt=[].slice.call(document.querySelectorAll(lt)).filter(function(Jt){return Jt===Se});lt!==null&&jt.length>0&&(this._selector=lt,this._triggerArray.push(Je))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var Te=je.prototype;return Te.toggle=function(){t.default(this._element).hasClass(br)?this.hide():this.show()},Te.show=function(){var Y=this;if(!(this._isTransitioning||t.default(this._element).hasClass(br))){var ue,ye;if(this._parent&&(ue=[].slice.call(this._parent.querySelectorAll(Vn)).filter(function(zr){return typeof Y._config.parent=="string"?zr.getAttribute("data-parent")===Y._config.parent:zr.classList.contains(Lr)}),ue.length===0&&(ue=null)),!(ue&&(ye=t.default(ue).not(this._selector).data(Vt),ye&&ye._isTransitioning))){var Ve=t.default.Event(ia);if(t.default(this._element).trigger(Ve),!Ve.isDefaultPrevented()){ue&&(je._jQueryInterface.call(t.default(ue).not(this._selector),"hide"),ye||t.default(ue).data(Vt,null));var Je=this._getDimension();t.default(this._element).removeClass(Lr).addClass(rn),this._element.style[Je]=0,this._triggerArray.length&&t.default(this._triggerArray).removeClass(sr).attr("aria-expanded",!0),this.setTransitioning(!0);var lt=function(){t.default(Y._element).removeClass(rn).addClass(Lr+" "+br),Y._element.style[Je]="",Y.setTransitioning(!1),t.default(Y._element).trigger(Bi)},jt=Je[0].toUpperCase()+Je.slice(1),Jt="scroll"+jt,$t=v.getTransitionDurationFromElement(this._element);t.default(this._element).one(v.TRANSITION_END,lt).emulateTransitionEnd($t),this._element.style[Je]=this._element[Jt]+"px"}}}},Te.hide=function(){var Y=this;if(!(this._isTransitioning||!t.default(this._element).hasClass(br))){var ue=t.default.Event(Ci);if(t.default(this._element).trigger(ue),!ue.isDefaultPrevented()){var ye=this._getDimension();this._element.style[ye]=this._element.getBoundingClientRect()[ye]+"px",v.reflow(this._element),t.default(this._element).addClass(rn).removeClass(Lr+" "+br);var Ve=this._triggerArray.length;if(Ve>0)for(var Je=0;Je<Ve;Je++){var lt=this._triggerArray[Je],jt=v.getSelectorFromElement(lt);if(jt!==null){var Jt=t.default([].slice.call(document.querySelectorAll(jt)));Jt.hasClass(br)||t.default(lt).addClass(sr).attr("aria-expanded",!1)}}this.setTransitioning(!0);var $t=function(){Y.setTransitioning(!1),t.default(Y._element).removeClass(rn).addClass(Lr).trigger(qn)};this._element.style[ye]="";var zr=v.getTransitionDurationFromElement(this._element);t.default(this._element).one(v.TRANSITION_END,$t).emulateTransitionEnd(zr)}}},Te.setTransitioning=function(Y){this._isTransitioning=Y},Te.dispose=function(){t.default.removeData(this._element,Vt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},Te._getConfig=function(Y){return Y=E({},mn,Y),Y.toggle=!!Y.toggle,v.typeCheckConfig(er,Y,hn),Y},Te._getDimension=function(){var Y=t.default(this._element).hasClass(fn);return Y?fn:na},Te._getParent=function(){var Y=this,ue;v.isElement(this._config.parent)?(ue=this._config.parent,typeof this._config.parent.jquery<"u"&&(ue=this._config.parent[0])):ue=document.querySelector(this._config.parent);var ye='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',Ve=[].slice.call(ue.querySelectorAll(ye));return t.default(Ve).each(function(Je,lt){Y._addAriaAndCollapsedClass(je._getTargetFromElement(lt),[lt])}),ue},Te._addAriaAndCollapsedClass=function(Y,ue){var ye=t.default(Y).hasClass(br);ue.length&&t.default(ue).toggleClass(sr,!ye).attr("aria-expanded",ye)},je._getTargetFromElement=function(Y){var ue=v.getSelectorFromElement(Y);return ue?document.querySelector(ue):null},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this),ye=ue.data(Vt),Ve=E({},mn,ue.data(),typeof Y=="object"&&Y?Y:{});if(!ye&&Ve.toggle&&typeof Y=="string"&&/show|hide/.test(Y)&&(Ve.toggle=!1),ye||(ye=new je(this,Ve),ue.data(Vt,ye)),typeof Y=="string"){if(typeof ye[Y]>"u")throw new TypeError('No method named "'+Y+'"');ye[Y]()}})},g(je,null,[{key:"VERSION",get:function(){return or}},{key:"Default",get:function(){return mn}}]),je}();t.default(document).on(ji,ei,function(je){je.currentTarget.tagName==="A"&&je.preventDefault();var Te=t.default(this),Se=v.getSelectorFromElement(this),Y=[].slice.call(document.querySelectorAll(Se));t.default(Y).each(function(){var ue=t.default(this),ye=ue.data(Vt),Ve=ye?"toggle":Te.data();_r._jQueryInterface.call(ue,Ve)})}),t.default.fn[er]=_r._jQueryInterface,t.default.fn[er].Constructor=_r,t.default.fn[er].noConflict=function(){return t.default.fn[er]=Pt,_r._jQueryInterface};var Mr="dropdown",Di="4.6.2",Xr="bs.dropdown",Er="."+Xr,Qt=".data-api",Gn=t.default.fn[Mr],zn=27,Ir=32,pn=9,Or=38,Wi=40,aa=3,Bn=new RegExp(Or+"|"+Wi+"|"+zn),ti="disabled",nn="show",Ti="dropup",Sn="dropright",Yn="dropleft",Mi="dropdown-menu-right",ri="position-static",hi="hide"+Er,Ri="hidden"+Er,ni="show"+Er,Xn="shown"+Er,jn="click"+Er,ii="click"+Er+Qt,Ui="keydown"+Er+Qt,wa="keyup"+Er+Qt,_i='[data-toggle="dropdown"]',oa=".dropdown form",Ii=".dropdown-menu",pi=".navbar-nav",Oi=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ai="top-start",ki="top-end",Kr="bottom-start",y="bottom-end",_="right-start",L="left-start",z={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},J={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},K=function(){function je(Se,Y){this._element=Se,this._popper=null,this._config=this._getConfig(Y),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var Te=je.prototype;return Te.toggle=function(){if(!(this._element.disabled||t.default(this._element).hasClass(ti))){var Y=t.default(this._menu).hasClass(nn);je._clearMenus(),!Y&&this.show(!0)}},Te.show=function(Y){if(Y===void 0&&(Y=!1),!(this._element.disabled||t.default(this._element).hasClass(ti)||t.default(this._menu).hasClass(nn))){var ue={relatedTarget:this._element},ye=t.default.Event(ni,ue),Ve=je._getParentFromElement(this._element);if(t.default(Ve).trigger(ye),!ye.isDefaultPrevented()){if(!this._inNavbar&&Y){if(typeof p.default>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var Je=this._element;this._config.reference==="parent"?Je=Ve:v.isElement(this._config.reference)&&(Je=this._config.reference,typeof this._config.reference.jquery<"u"&&(Je=this._config.reference[0])),this._config.boundary!=="scrollParent"&&t.default(Ve).addClass(ri),this._popper=new p.default(Je,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&t.default(Ve).closest(pi).length===0&&t.default(document.body).children().on("mouseover",null,t.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t.default(this._menu).toggleClass(nn),t.default(Ve).toggleClass(nn).trigger(t.default.Event(Xn,ue))}}},Te.hide=function(){if(!(this._element.disabled||t.default(this._element).hasClass(ti)||!t.default(this._menu).hasClass(nn))){var Y={relatedTarget:this._element},ue=t.default.Event(hi,Y),ye=je._getParentFromElement(this._element);t.default(ye).trigger(ue),!ue.isDefaultPrevented()&&(this._popper&&this._popper.destroy(),t.default(this._menu).toggleClass(nn),t.default(ye).toggleClass(nn).trigger(t.default.Event(Ri,Y)))}},Te.dispose=function(){t.default.removeData(this._element,Xr),t.default(this._element).off(Er),this._element=null,this._menu=null,this._popper!==null&&(this._popper.destroy(),this._popper=null)},Te.update=function(){this._inNavbar=this._detectNavbar(),this._popper!==null&&this._popper.scheduleUpdate()},Te._addEventListeners=function(){var Y=this;t.default(this._element).on(jn,function(ue){ue.preventDefault(),ue.stopPropagation(),Y.toggle()})},Te._getConfig=function(Y){return Y=E({},this.constructor.Default,t.default(this._element).data(),Y),v.typeCheckConfig(Mr,Y,this.constructor.DefaultType),Y},Te._getMenuElement=function(){if(!this._menu){var Y=je._getParentFromElement(this._element);Y&&(this._menu=Y.querySelector(Ii))}return this._menu},Te._getPlacement=function(){var Y=t.default(this._element.parentNode),ue=Kr;return Y.hasClass(Ti)?ue=t.default(this._menu).hasClass(Mi)?ki:ai:Y.hasClass(Sn)?ue=_:Y.hasClass(Yn)?ue=L:t.default(this._menu).hasClass(Mi)&&(ue=y),ue},Te._detectNavbar=function(){return t.default(this._element).closest(".navbar").length>0},Te._getOffset=function(){var Y=this,ue={};return typeof this._config.offset=="function"?ue.fn=function(ye){return ye.offsets=E({},ye.offsets,Y._config.offset(ye.offsets,Y._element)),ye}:ue.offset=this._config.offset,ue},Te._getPopperConfig=function(){var Y={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return this._config.display==="static"&&(Y.modifiers.applyStyle={enabled:!1}),E({},Y,this._config.popperConfig)},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this).data(Xr),ye=typeof Y=="object"?Y:null;if(ue||(ue=new je(this,ye),t.default(this).data(Xr,ue)),typeof Y=="string"){if(typeof ue[Y]>"u")throw new TypeError('No method named "'+Y+'"');ue[Y]()}})},je._clearMenus=function(Y){if(!(Y&&(Y.which===aa||Y.type==="keyup"&&Y.which!==pn)))for(var ue=[].slice.call(document.querySelectorAll(_i)),ye=0,Ve=ue.length;ye<Ve;ye++){var Je=je._getParentFromElement(ue[ye]),lt=t.default(ue[ye]).data(Xr),jt={relatedTarget:ue[ye]};if(Y&&Y.type==="click"&&(jt.clickEvent=Y),!!lt){var Jt=lt._menu;if(t.default(Je).hasClass(nn)&&!(Y&&(Y.type==="click"&&/input|textarea/i.test(Y.target.tagName)||Y.type==="keyup"&&Y.which===pn)&&t.default.contains(Je,Y.target))){var $t=t.default.Event(hi,jt);t.default(Je).trigger($t),!$t.isDefaultPrevented()&&("ontouchstart"in document.documentElement&&t.default(document.body).children().off("mouseover",null,t.default.noop),ue[ye].setAttribute("aria-expanded","false"),lt._popper&&lt._popper.destroy(),t.default(Jt).removeClass(nn),t.default(Je).removeClass(nn).trigger(t.default.Event(Ri,jt)))}}}},je._getParentFromElement=function(Y){var ue,ye=v.getSelectorFromElement(Y);return ye&&(ue=document.querySelector(ye)),ue||Y.parentNode},je._dataApiKeydownHandler=function(Y){if(!(/input|textarea/i.test(Y.target.tagName)?Y.which===Ir||Y.which!==zn&&(Y.which!==Wi&&Y.which!==Or||t.default(Y.target).closest(Ii).length):!Bn.test(Y.which))&&!(this.disabled||t.default(this).hasClass(ti))){var ue=je._getParentFromElement(this),ye=t.default(ue).hasClass(nn);if(!(!ye&&Y.which===zn)){if(Y.preventDefault(),Y.stopPropagation(),!ye||Y.which===zn||Y.which===Ir){Y.which===zn&&t.default(ue.querySelector(_i)).trigger("focus"),t.default(this).trigger("click");return}var Ve=[].slice.call(ue.querySelectorAll(Oi)).filter(function(lt){return t.default(lt).is(":visible")});if(Ve.length!==0){var Je=Ve.indexOf(Y.target);Y.which===Or&&Je>0&&Je--,Y.which===Wi&&Je<Ve.length-1&&Je++,Je<0&&(Je=0),Ve[Je].focus()}}}},g(je,null,[{key:"VERSION",get:function(){return Di}},{key:"Default",get:function(){return z}},{key:"DefaultType",get:function(){return J}}]),je}();t.default(document).on(Ui,_i,K._dataApiKeydownHandler).on(Ui,Ii,K._dataApiKeydownHandler).on(ii+" "+wa,K._clearMenus).on(ii,_i,function(je){je.preventDefault(),je.stopPropagation(),K._jQueryInterface.call(t.default(this),"toggle")}).on(ii,oa,function(je){je.stopPropagation()}),t.default.fn[Mr]=K._jQueryInterface,t.default.fn[Mr].Constructor=K,t.default.fn[Mr].noConflict=function(){return t.default.fn[Mr]=Gn,K._jQueryInterface};var ae="modal",se="4.6.2",le="bs.modal",ve="."+le,be=".data-api",Re=t.default.fn[ae],ke=27,Be="modal-dialog-scrollable",Qe="modal-scrollbar-measure",pt="modal-backdrop",gt="modal-open",xt="fade",Ge="show",Xt="modal-static",Nt="hide"+ve,gr="hidePrevented"+ve,Qr="hidden"+ve,an="show"+ve,on="shown"+ve,sn="focusin"+ve,Zr="resize"+ve,Ar="click.dismiss"+ve,_n="keydown.dismiss"+ve,xn="mouseup.dismiss"+ve,zt="mousedown.dismiss"+ve,Rr="click"+ve+be,Nr=".modal-dialog",qr=".modal-body",en='[data-toggle="modal"]',Fr='[data-dismiss="modal"]',Hr=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vi=".sticky-top",In={backdrop:!0,keyboard:!0,focus:!0,show:!0},On={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},oi=function(){function je(Se,Y){this._config=this._getConfig(Y),this._element=Se,this._dialog=Se.querySelector(Nr),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var Te=je.prototype;return Te.toggle=function(Y){return this._isShown?this.hide():this.show(Y)},Te.show=function(Y){var ue=this;if(!(this._isShown||this._isTransitioning)){var ye=t.default.Event(an,{relatedTarget:Y});t.default(this._element).trigger(ye),!ye.isDefaultPrevented()&&(this._isShown=!0,t.default(this._element).hasClass(xt)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t.default(this._element).on(Ar,Fr,function(Ve){return ue.hide(Ve)}),t.default(this._dialog).on(zt,function(){t.default(ue._element).one(xn,function(Ve){t.default(Ve.target).is(ue._element)&&(ue._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return ue._showElement(Y)}))}},Te.hide=function(Y){var ue=this;if(Y&&Y.preventDefault(),!(!this._isShown||this._isTransitioning)){var ye=t.default.Event(Nt);if(t.default(this._element).trigger(ye),!(!this._isShown||ye.isDefaultPrevented())){this._isShown=!1;var Ve=t.default(this._element).hasClass(xt);if(Ve&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t.default(document).off(sn),t.default(this._element).removeClass(Ge),t.default(this._element).off(Ar),t.default(this._dialog).off(zt),Ve){var Je=v.getTransitionDurationFromElement(this._element);t.default(this._element).one(v.TRANSITION_END,function(lt){return ue._hideModal(lt)}).emulateTransitionEnd(Je)}else this._hideModal()}}},Te.dispose=function(){[window,this._element,this._dialog].forEach(function(Y){return t.default(Y).off(ve)}),t.default(document).off(sn),t.default.removeData(this._element,le),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},Te.handleUpdate=function(){this._adjustDialog()},Te._getConfig=function(Y){return Y=E({},In,Y),v.typeCheckConfig(ae,Y,On),Y},Te._triggerBackdropTransition=function(){var Y=this,ue=t.default.Event(gr);if(t.default(this._element).trigger(ue),!ue.isDefaultPrevented()){var ye=this._element.scrollHeight>document.documentElement.clientHeight;ye||(this._element.style.overflowY="hidden"),this._element.classList.add(Xt);var Ve=v.getTransitionDurationFromElement(this._dialog);t.default(this._element).off(v.TRANSITION_END),t.default(this._element).one(v.TRANSITION_END,function(){Y._element.classList.remove(Xt),ye||t.default(Y._element).one(v.TRANSITION_END,function(){Y._element.style.overflowY=""}).emulateTransitionEnd(Y._element,Ve)}).emulateTransitionEnd(Ve),this._element.focus()}},Te._showElement=function(Y){var ue=this,ye=t.default(this._element).hasClass(xt),Ve=this._dialog?this._dialog.querySelector(qr):null;(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),t.default(this._dialog).hasClass(Be)&&Ve?Ve.scrollTop=0:this._element.scrollTop=0,ye&&v.reflow(this._element),t.default(this._element).addClass(Ge),this._config.focus&&this._enforceFocus();var Je=t.default.Event(on,{relatedTarget:Y}),lt=function(){ue._config.focus&&ue._element.focus(),ue._isTransitioning=!1,t.default(ue._element).trigger(Je)};if(ye){var jt=v.getTransitionDurationFromElement(this._dialog);t.default(this._dialog).one(v.TRANSITION_END,lt).emulateTransitionEnd(jt)}else lt()},Te._enforceFocus=function(){var Y=this;t.default(document).off(sn).on(sn,function(ue){document!==ue.target&&Y._element!==ue.target&&t.default(Y._element).has(ue.target).length===0&&Y._element.focus()})},Te._setEscapeEvent=function(){var Y=this;this._isShown?t.default(this._element).on(_n,function(ue){Y._config.keyboard&&ue.which===ke?(ue.preventDefault(),Y.hide()):!Y._config.keyboard&&ue.which===ke&&Y._triggerBackdropTransition()}):this._isShown||t.default(this._element).off(_n)},Te._setResizeEvent=function(){var Y=this;this._isShown?t.default(window).on(Zr,function(ue){return Y.handleUpdate(ue)}):t.default(window).off(Zr)},Te._hideModal=function(){var Y=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){t.default(document.body).removeClass(gt),Y._resetAdjustments(),Y._resetScrollbar(),t.default(Y._element).trigger(Qr)})},Te._removeBackdrop=function(){this._backdrop&&(t.default(this._backdrop).remove(),this._backdrop=null)},Te._showBackdrop=function(Y){var ue=this,ye=t.default(this._element).hasClass(xt)?xt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=pt,ye&&this._backdrop.classList.add(ye),t.default(this._backdrop).appendTo(document.body),t.default(this._element).on(Ar,function(jt){if(ue._ignoreBackdropClick){ue._ignoreBackdropClick=!1;return}jt.target===jt.currentTarget&&(ue._config.backdrop==="static"?ue._triggerBackdropTransition():ue.hide())}),ye&&v.reflow(this._backdrop),t.default(this._backdrop).addClass(Ge),!Y)return;if(!ye){Y();return}var Ve=v.getTransitionDurationFromElement(this._backdrop);t.default(this._backdrop).one(v.TRANSITION_END,Y).emulateTransitionEnd(Ve)}else if(!this._isShown&&this._backdrop){t.default(this._backdrop).removeClass(Ge);var Je=function(){ue._removeBackdrop(),Y&&Y()};if(t.default(this._element).hasClass(xt)){var lt=v.getTransitionDurationFromElement(this._backdrop);t.default(this._backdrop).one(v.TRANSITION_END,Je).emulateTransitionEnd(lt)}else Je()}else Y&&Y()},Te._adjustDialog=function(){var Y=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&Y&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!Y&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},Te._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},Te._checkScrollbar=function(){var Y=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(Y.left+Y.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},Te._setScrollbar=function(){var Y=this;if(this._isBodyOverflowing){var ue=[].slice.call(document.querySelectorAll(Hr)),ye=[].slice.call(document.querySelectorAll(vi));t.default(ue).each(function(lt,jt){var Jt=jt.style.paddingRight,$t=t.default(jt).css("padding-right");t.default(jt).data("padding-right",Jt).css("padding-right",parseFloat($t)+Y._scrollbarWidth+"px")}),t.default(ye).each(function(lt,jt){var Jt=jt.style.marginRight,$t=t.default(jt).css("margin-right");t.default(jt).data("margin-right",Jt).css("margin-right",parseFloat($t)-Y._scrollbarWidth+"px")});var Ve=document.body.style.paddingRight,Je=t.default(document.body).css("padding-right");t.default(document.body).data("padding-right",Ve).css("padding-right",parseFloat(Je)+this._scrollbarWidth+"px")}t.default(document.body).addClass(gt)},Te._resetScrollbar=function(){var Y=[].slice.call(document.querySelectorAll(Hr));t.default(Y).each(function(Ve,Je){var lt=t.default(Je).data("padding-right");t.default(Je).removeData("padding-right"),Je.style.paddingRight=lt||""});var ue=[].slice.call(document.querySelectorAll(""+vi));t.default(ue).each(function(Ve,Je){var lt=t.default(Je).data("margin-right");typeof lt<"u"&&t.default(Je).css("margin-right",lt).removeData("margin-right")});var ye=t.default(document.body).data("padding-right");t.default(document.body).removeData("padding-right"),document.body.style.paddingRight=ye||""},Te._getScrollbarWidth=function(){var Y=document.createElement("div");Y.className=Qe,document.body.appendChild(Y);var ue=Y.getBoundingClientRect().width-Y.clientWidth;return document.body.removeChild(Y),ue},je._jQueryInterface=function(Y,ue){return this.each(function(){var ye=t.default(this).data(le),Ve=E({},In,t.default(this).data(),typeof Y=="object"&&Y?Y:{});if(ye||(ye=new je(this,Ve),t.default(this).data(le,ye)),typeof Y=="string"){if(typeof ye[Y]>"u")throw new TypeError('No method named "'+Y+'"');ye[Y](ue)}else Ve.show&&ye.show(ue)})},g(je,null,[{key:"VERSION",get:function(){return se}},{key:"Default",get:function(){return In}}]),je}();t.default(document).on(Rr,en,function(je){var Te=this,Se,Y=v.getSelectorFromElement(this);Y&&(Se=document.querySelector(Y));var ue=t.default(Se).data(le)?"toggle":E({},t.default(Se).data(),t.default(this).data());(this.tagName==="A"||this.tagName==="AREA")&&je.preventDefault();var ye=t.default(Se).one(an,function(Ve){Ve.isDefaultPrevented()||ye.one(Qr,function(){t.default(Te).is(":visible")&&Te.focus()})});oi._jQueryInterface.call(t.default(Se),ue,this)}),t.default.fn[ae]=oi._jQueryInterface,t.default.fn[ae].Constructor=oi,t.default.fn[ae].noConflict=function(){return t.default.fn[ae]=Re,oi._jQueryInterface};var Ai=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],dr=/^aria-[\w-]*$/i,xr={"*":["class","dir","id","lang","role",dr],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},yo=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,bo=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Ea(je,Te){var Se=je.nodeName.toLowerCase();if(Te.indexOf(Se)!==-1)return Ai.indexOf(Se)!==-1?!!(yo.test(je.nodeValue)||bo.test(je.nodeValue)):!0;for(var Y=Te.filter(function(Ve){return Ve instanceof RegExp}),ue=0,ye=Y.length;ue<ye;ue++)if(Y[ue].test(Se))return!0;return!1}function sa(je,Te,Se){if(je.length===0)return je;if(Se&&typeof Se=="function")return Se(je);for(var Y=new window.DOMParser,ue=Y.parseFromString(je,"text/html"),ye=Object.keys(Te),Ve=[].slice.call(ue.body.querySelectorAll("*")),Je=function(zr,Nn){var Tn=Ve[zr],bn=Tn.nodeName.toLowerCase();if(ye.indexOf(Tn.nodeName.toLowerCase())===-1)return Tn.parentNode.removeChild(Tn),"continue";var Mn=[].slice.call(Tn.attributes),oo=[].concat(Te["*"]||[],Te[bn]||[]);Mn.forEach(function(Fa){Ea(Fa,oo)||Tn.removeAttribute(Fa.nodeName)})},lt=0,jt=Ve.length;lt<jt;lt++)var Jt=Je(lt);return ue.body.innerHTML}var Kn="tooltip",Sa="4.6.2",Vi="bs.tooltip",ir="."+Vi,ja=t.default.fn[Kn],xa="bs-tooltip",Ca=new RegExp("(^|\\s)"+xa+"\\S+","g"),si=["sanitize","whiteList","sanitizeFn"],Yt="fade",Gi="show",ln="show",Pi="out",wo=".tooltip-inner",Da=".arrow",Cn="hover",Dn="focus",gi="click",mi="manual",yi={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Eo={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:xr,popperConfig:null},Ta={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Ma={HIDE:"hide"+ir,HIDDEN:"hidden"+ir,SHOW:"show"+ir,SHOWN:"shown"+ir,INSERTED:"inserted"+ir,CLICK:"click"+ir,FOCUSIN:"focusin"+ir,FOCUSOUT:"focusout"+ir,MOUSEENTER:"mouseenter"+ir,MOUSELEAVE:"mouseleave"+ir},Qn=function(){function je(Se,Y){if(typeof p.default>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=Se,this.config=this._getConfig(Y),this.tip=null,this._setListeners()}var Te=je.prototype;return Te.enable=function(){this._isEnabled=!0},Te.disable=function(){this._isEnabled=!1},Te.toggleEnabled=function(){this._isEnabled=!this._isEnabled},Te.toggle=function(Y){if(this._isEnabled)if(Y){var ue=this.constructor.DATA_KEY,ye=t.default(Y.currentTarget).data(ue);ye||(ye=new this.constructor(Y.currentTarget,this._getDelegateConfig()),t.default(Y.currentTarget).data(ue,ye)),ye._activeTrigger.click=!ye._activeTrigger.click,ye._isWithActiveTrigger()?ye._enter(null,ye):ye._leave(null,ye)}else{if(t.default(this.getTipElement()).hasClass(Gi)){this._leave(null,this);return}this._enter(null,this)}},Te.dispose=function(){clearTimeout(this._timeout),t.default.removeData(this.element,this.constructor.DATA_KEY),t.default(this.element).off(this.constructor.EVENT_KEY),t.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},Te.show=function(){var Y=this;if(t.default(this.element).css("display")==="none")throw new Error("Please use show on visible elements");var ue=t.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t.default(this.element).trigger(ue);var ye=v.findShadowRoot(this.element),Ve=t.default.contains(ye!==null?ye:this.element.ownerDocument.documentElement,this.element);if(ue.isDefaultPrevented()||!Ve)return;var Je=this.getTipElement(),lt=v.getUID(this.constructor.NAME);Je.setAttribute("id",lt),this.element.setAttribute("aria-describedby",lt),this.setContent(),this.config.animation&&t.default(Je).addClass(Yt);var jt=typeof this.config.placement=="function"?this.config.placement.call(this,Je,this.element):this.config.placement,Jt=this._getAttachment(jt);this.addAttachmentClass(Jt);var $t=this._getContainer();t.default(Je).data(this.constructor.DATA_KEY,this),t.default.contains(this.element.ownerDocument.documentElement,this.tip)||t.default(Je).appendTo($t),t.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new p.default(this.element,Je,this._getPopperConfig(Jt)),t.default(Je).addClass(Gi),t.default(Je).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&t.default(document.body).children().on("mouseover",null,t.default.noop);var zr=function(){Y.config.animation&&Y._fixTransition();var bn=Y._hoverState;Y._hoverState=null,t.default(Y.element).trigger(Y.constructor.Event.SHOWN),bn===Pi&&Y._leave(null,Y)};if(t.default(this.tip).hasClass(Yt)){var Nn=v.getTransitionDurationFromElement(this.tip);t.default(this.tip).one(v.TRANSITION_END,zr).emulateTransitionEnd(Nn)}else zr()}},Te.hide=function(Y){var ue=this,ye=this.getTipElement(),Ve=t.default.Event(this.constructor.Event.HIDE),Je=function(){ue._hoverState!==ln&&ye.parentNode&&ye.parentNode.removeChild(ye),ue._cleanTipClass(),ue.element.removeAttribute("aria-describedby"),t.default(ue.element).trigger(ue.constructor.Event.HIDDEN),ue._popper!==null&&ue._popper.destroy(),Y&&Y()};if(t.default(this.element).trigger(Ve),!Ve.isDefaultPrevented()){if(t.default(ye).removeClass(Gi),"ontouchstart"in document.documentElement&&t.default(document.body).children().off("mouseover",null,t.default.noop),this._activeTrigger[gi]=!1,this._activeTrigger[Dn]=!1,this._activeTrigger[Cn]=!1,t.default(this.tip).hasClass(Yt)){var lt=v.getTransitionDurationFromElement(ye);t.default(ye).one(v.TRANSITION_END,Je).emulateTransitionEnd(lt)}else Je();this._hoverState=""}},Te.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},Te.isWithContent=function(){return!!this.getTitle()},Te.addAttachmentClass=function(Y){t.default(this.getTipElement()).addClass(xa+"-"+Y)},Te.getTipElement=function(){return this.tip=this.tip||t.default(this.config.template)[0],this.tip},Te.setContent=function(){var Y=this.getTipElement();this.setElementContent(t.default(Y.querySelectorAll(wo)),this.getTitle()),t.default(Y).removeClass(Yt+" "+Gi)},Te.setElementContent=function(Y,ue){if(typeof ue=="object"&&(ue.nodeType||ue.jquery)){this.config.html?t.default(ue).parent().is(Y)||Y.empty().append(ue):Y.text(t.default(ue).text());return}this.config.html?(this.config.sanitize&&(ue=sa(ue,this.config.whiteList,this.config.sanitizeFn)),Y.html(ue)):Y.text(ue)},Te.getTitle=function(){var Y=this.element.getAttribute("data-original-title");return Y||(Y=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),Y},Te._getPopperConfig=function(Y){var ue=this,ye={placement:Y,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Da},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(Je){Je.originalPlacement!==Je.placement&&ue._handlePopperPlacementChange(Je)},onUpdate:function(Je){return ue._handlePopperPlacementChange(Je)}};return E({},ye,this.config.popperConfig)},Te._getOffset=function(){var Y=this,ue={};return typeof this.config.offset=="function"?ue.fn=function(ye){return ye.offsets=E({},ye.offsets,Y.config.offset(ye.offsets,Y.element)),ye}:ue.offset=this.config.offset,ue},Te._getContainer=function(){return this.config.container===!1?document.body:v.isElement(this.config.container)?t.default(this.config.container):t.default(document).find(this.config.container)},Te._getAttachment=function(Y){return yi[Y.toUpperCase()]},Te._setListeners=function(){var Y=this,ue=this.config.trigger.split(" ");ue.forEach(function(ye){if(ye==="click")t.default(Y.element).on(Y.constructor.Event.CLICK,Y.config.selector,function(lt){return Y.toggle(lt)});else if(ye!==mi){var Ve=ye===Cn?Y.constructor.Event.MOUSEENTER:Y.constructor.Event.FOCUSIN,Je=ye===Cn?Y.constructor.Event.MOUSELEAVE:Y.constructor.Event.FOCUSOUT;t.default(Y.element).on(Ve,Y.config.selector,function(lt){return Y._enter(lt)}).on(Je,Y.config.selector,function(lt){return Y._leave(lt)})}}),this._hideModalHandler=function(){Y.element&&Y.hide()},t.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=E({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},Te._fixTitle=function(){var Y=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||Y!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},Te._enter=function(Y,ue){var ye=this.constructor.DATA_KEY;if(ue=ue||t.default(Y.currentTarget).data(ye),ue||(ue=new this.constructor(Y.currentTarget,this._getDelegateConfig()),t.default(Y.currentTarget).data(ye,ue)),Y&&(ue._activeTrigger[Y.type==="focusin"?Dn:Cn]=!0),t.default(ue.getTipElement()).hasClass(Gi)||ue._hoverState===ln){ue._hoverState=ln;return}if(clearTimeout(ue._timeout),ue._hoverState=ln,!ue.config.delay||!ue.config.delay.show){ue.show();return}ue._timeout=setTimeout(function(){ue._hoverState===ln&&ue.show()},ue.config.delay.show)},Te._leave=function(Y,ue){var ye=this.constructor.DATA_KEY;if(ue=ue||t.default(Y.currentTarget).data(ye),ue||(ue=new this.constructor(Y.currentTarget,this._getDelegateConfig()),t.default(Y.currentTarget).data(ye,ue)),Y&&(ue._activeTrigger[Y.type==="focusout"?Dn:Cn]=!1),!ue._isWithActiveTrigger()){if(clearTimeout(ue._timeout),ue._hoverState=Pi,!ue.config.delay||!ue.config.delay.hide){ue.hide();return}ue._timeout=setTimeout(function(){ue._hoverState===Pi&&ue.hide()},ue.config.delay.hide)}},Te._isWithActiveTrigger=function(){for(var Y in this._activeTrigger)if(this._activeTrigger[Y])return!0;return!1},Te._getConfig=function(Y){var ue=t.default(this.element).data();return Object.keys(ue).forEach(function(ye){si.indexOf(ye)!==-1&&delete ue[ye]}),Y=E({},this.constructor.Default,ue,typeof Y=="object"&&Y?Y:{}),typeof Y.delay=="number"&&(Y.delay={show:Y.delay,hide:Y.delay}),typeof Y.title=="number"&&(Y.title=Y.title.toString()),typeof Y.content=="number"&&(Y.content=Y.content.toString()),v.typeCheckConfig(Kn,Y,this.constructor.DefaultType),Y.sanitize&&(Y.template=sa(Y.template,Y.whiteList,Y.sanitizeFn)),Y},Te._getDelegateConfig=function(){var Y={};if(this.config)for(var ue in this.config)this.constructor.Default[ue]!==this.config[ue]&&(Y[ue]=this.config[ue]);return Y},Te._cleanTipClass=function(){var Y=t.default(this.getTipElement()),ue=Y.attr("class").match(Ca);ue!==null&&ue.length&&Y.removeClass(ue.join(""))},Te._handlePopperPlacementChange=function(Y){this.tip=Y.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(Y.placement))},Te._fixTransition=function(){var Y=this.getTipElement(),ue=this.config.animation;Y.getAttribute("x-placement")===null&&(t.default(Y).removeClass(Yt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=ue)},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this),ye=ue.data(Vi),Ve=typeof Y=="object"&&Y;if(!(!ye&&/dispose|hide/.test(Y))&&(ye||(ye=new je(this,Ve),ue.data(Vi,ye)),typeof Y=="string")){if(typeof ye[Y]>"u")throw new TypeError('No method named "'+Y+'"');ye[Y]()}})},g(je,null,[{key:"VERSION",get:function(){return Sa}},{key:"Default",get:function(){return Eo}},{key:"NAME",get:function(){return Kn}},{key:"DATA_KEY",get:function(){return Vi}},{key:"Event",get:function(){return Ma}},{key:"EVENT_KEY",get:function(){return ir}},{key:"DefaultType",get:function(){return Ta}}]),je}();t.default.fn[Kn]=Qn._jQueryInterface,t.default.fn[Kn].Constructor=Qn,t.default.fn[Kn].noConflict=function(){return t.default.fn[Kn]=ja,Qn._jQueryInterface};var Wn="popover",Ra="4.6.2",Yi="bs.popover",yn="."+Yi,_a=t.default.fn[Wn],Wa="bs-popover",So=new RegExp("(^|\\s)"+Wa+"\\S+","g"),xo="fade",Co="show",la=".popover-header",ua=".popover-body",vn=E({},Qn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ia=E({},Qn.DefaultType,{content:"(string|element|function)"}),kn={HIDE:"hide"+yn,HIDDEN:"hidden"+yn,SHOW:"show"+yn,SHOWN:"shown"+yn,INSERTED:"inserted"+yn,CLICK:"click"+yn,FOCUSIN:"focusin"+yn,FOCUSOUT:"focusout"+yn,MOUSEENTER:"mouseenter"+yn,MOUSELEAVE:"mouseleave"+yn},An=function(je){n(Te,je);function Te(){return je.apply(this,arguments)||this}var Se=Te.prototype;return Se.isWithContent=function(){return this.getTitle()||this._getContent()},Se.addAttachmentClass=function(ue){t.default(this.getTipElement()).addClass(Wa+"-"+ue)},Se.getTipElement=function(){return this.tip=this.tip||t.default(this.config.template)[0],this.tip},Se.setContent=function(){var ue=t.default(this.getTipElement());this.setElementContent(ue.find(la),this.getTitle());var ye=this._getContent();typeof ye=="function"&&(ye=ye.call(this.element)),this.setElementContent(ue.find(ua),ye),ue.removeClass(xo+" "+Co)},Se._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},Se._cleanTipClass=function(){var ue=t.default(this.getTipElement()),ye=ue.attr("class").match(So);ye!==null&&ye.length>0&&ue.removeClass(ye.join(""))},Te._jQueryInterface=function(ue){return this.each(function(){var ye=t.default(this).data(Yi),Ve=typeof ue=="object"?ue:null;if(!(!ye&&/dispose|hide/.test(ue))&&(ye||(ye=new Te(this,Ve),t.default(this).data(Yi,ye)),typeof ue=="string")){if(typeof ye[ue]>"u")throw new TypeError('No method named "'+ue+'"');ye[ue]()}})},g(Te,null,[{key:"VERSION",get:function(){return Ra}},{key:"Default",get:function(){return vn}},{key:"NAME",get:function(){return Wn}},{key:"DATA_KEY",get:function(){return Yi}},{key:"Event",get:function(){return kn}},{key:"EVENT_KEY",get:function(){return yn}},{key:"DefaultType",get:function(){return Ia}}]),Te}(Qn);t.default.fn[Wn]=An._jQueryInterface,t.default.fn[Wn].Constructor=An,t.default.fn[Wn].noConflict=function(){return t.default.fn[Wn]=_a,An._jQueryInterface};var li="scrollspy",Do="4.6.2",Pn="bs.scrollspy",Xi="."+Pn,da=".data-api",To=t.default.fn[li],Ua="dropdown-item",bi="active",Mo="activate"+Xi,Ro="scroll"+Xi,_o="load"+Xi+da,Va="offset",Ga="position",Oa='[data-spy="scroll"]',un=".nav, .list-group",ka=".nav-link",Io=".nav-item",Ki=".list-group-item",Ya=".dropdown",Oo=".dropdown-item",ca=".dropdown-toggle",wi={offset:10,method:"auto",target:""},Xa={offset:"number",method:"string",target:"(string|element)"},Qi=function(){function je(Se,Y){var ue=this;this._element=Se,this._scrollElement=Se.tagName==="BODY"?window:Se,this._config=this._getConfig(Y),this._selector=this._config.target+" "+ka+","+(this._config.target+" "+Ki+",")+(this._config.target+" "+Oo),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t.default(this._scrollElement).on(Ro,function(ye){return ue._process(ye)}),this.refresh(),this._process()}var Te=je.prototype;return Te.refresh=function(){var Y=this,ue=this._scrollElement===this._scrollElement.window?Va:Ga,ye=this._config.method==="auto"?ue:this._config.method,Ve=ye===Ga?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var Je=[].slice.call(document.querySelectorAll(this._selector));Je.map(function(lt){var jt,Jt=v.getSelectorFromElement(lt);if(Jt&&(jt=document.querySelector(Jt)),jt){var $t=jt.getBoundingClientRect();if($t.width||$t.height)return[t.default(jt)[ye]().top+Ve,Jt]}return null}).filter(Boolean).sort(function(lt,jt){return lt[0]-jt[0]}).forEach(function(lt){Y._offsets.push(lt[0]),Y._targets.push(lt[1])})},Te.dispose=function(){t.default.removeData(this._element,Pn),t.default(this._scrollElement).off(Xi),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},Te._getConfig=function(Y){if(Y=E({},wi,typeof Y=="object"&&Y?Y:{}),typeof Y.target!="string"&&v.isElement(Y.target)){var ue=t.default(Y.target).attr("id");ue||(ue=v.getUID(li),t.default(Y.target).attr("id",ue)),Y.target="#"+ue}return v.typeCheckConfig(li,Y,Xa),Y},Te._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},Te._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},Te._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},Te._process=function(){var Y=this._getScrollTop()+this._config.offset,ue=this._getScrollHeight(),ye=this._config.offset+ue-this._getOffsetHeight();if(this._scrollHeight!==ue&&this.refresh(),Y>=ye){var Ve=this._targets[this._targets.length-1];this._activeTarget!==Ve&&this._activate(Ve);return}if(this._activeTarget&&Y<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(var Je=this._offsets.length;Je--;){var lt=this._activeTarget!==this._targets[Je]&&Y>=this._offsets[Je]&&(typeof this._offsets[Je+1]>"u"||Y<this._offsets[Je+1]);lt&&this._activate(this._targets[Je])}},Te._activate=function(Y){this._activeTarget=Y,this._clear();var ue=this._selector.split(",").map(function(Ve){return Ve+'[data-target="'+Y+'"],'+Ve+'[href="'+Y+'"]'}),ye=t.default([].slice.call(document.querySelectorAll(ue.join(","))));ye.hasClass(Ua)?(ye.closest(Ya).find(ca).addClass(bi),ye.addClass(bi)):(ye.addClass(bi),ye.parents(un).prev(ka+", "+Ki).addClass(bi),ye.parents(un).prev(Io).children(ka).addClass(bi)),t.default(this._scrollElement).trigger(Mo,{relatedTarget:Y})},Te._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(Y){return Y.classList.contains(bi)}).forEach(function(Y){return Y.classList.remove(bi)})},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this).data(Pn),ye=typeof Y=="object"&&Y;if(ue||(ue=new je(this,ye),t.default(this).data(Pn,ue)),typeof Y=="string"){if(typeof ue[Y]>"u")throw new TypeError('No method named "'+Y+'"');ue[Y]()}})},g(je,null,[{key:"VERSION",get:function(){return Do}},{key:"Default",get:function(){return wi}}]),je}();t.default(window).on(_o,function(){for(var je=[].slice.call(document.querySelectorAll(Oa)),Te=je.length,Se=Te;Se--;){var Y=t.default(je[Se]);Qi._jQueryInterface.call(Y,Y.data())}}),t.default.fn[li]=Qi._jQueryInterface,t.default.fn[li].Constructor=Qi,t.default.fn[li].noConflict=function(){return t.default.fn[li]=To,Qi._jQueryInterface};var Ei="tab",ko="4.6.2",Zi="bs.tab",Ji="."+Zi,Ao=".data-api",Po=t.default.fn[Ei],Ka="dropdown-menu",Li="active",Qa="disabled",ui="fade",di="show",fa="hide"+Ji,ha="hidden"+Ji,Si="show"+Ji,Za="shown"+Ji,Aa="click"+Ji+Ao,Pa=".dropdown",pa=".nav, .list-group",dn=".active",La="> li > .active",Lo='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Ja=".dropdown-toggle",$a="> .dropdown-menu .active",$i=function(){function je(Se){this._element=Se}var Te=je.prototype;return Te.show=function(){var Y=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t.default(this._element).hasClass(Li)||t.default(this._element).hasClass(Qa)||this._element.hasAttribute("disabled"))){var ue,ye,Ve=t.default(this._element).closest(pa)[0],Je=v.getSelectorFromElement(this._element);if(Ve){var lt=Ve.nodeName==="UL"||Ve.nodeName==="OL"?La:dn;ye=t.default.makeArray(t.default(Ve).find(lt)),ye=ye[ye.length-1]}var jt=t.default.Event(fa,{relatedTarget:this._element}),Jt=t.default.Event(Si,{relatedTarget:ye});if(ye&&t.default(ye).trigger(jt),t.default(this._element).trigger(Jt),!(Jt.isDefaultPrevented()||jt.isDefaultPrevented())){Je&&(ue=document.querySelector(Je)),this._activate(this._element,Ve);var $t=function(){var Nn=t.default.Event(ha,{relatedTarget:Y._element}),Tn=t.default.Event(Za,{relatedTarget:ye});t.default(ye).trigger(Nn),t.default(Y._element).trigger(Tn)};ue?this._activate(ue,ue.parentNode,$t):$t()}}},Te.dispose=function(){t.default.removeData(this._element,Zi),this._element=null},Te._activate=function(Y,ue,ye){var Ve=this,Je=ue&&(ue.nodeName==="UL"||ue.nodeName==="OL")?t.default(ue).find(La):t.default(ue).children(dn),lt=Je[0],jt=ye&&lt&&t.default(lt).hasClass(ui),Jt=function(){return Ve._transitionComplete(Y,lt,ye)};if(lt&&jt){var $t=v.getTransitionDurationFromElement(lt);t.default(lt).removeClass(di).one(v.TRANSITION_END,Jt).emulateTransitionEnd($t)}else Jt()},Te._transitionComplete=function(Y,ue,ye){if(ue){t.default(ue).removeClass(Li);var Ve=t.default(ue.parentNode).find($a)[0];Ve&&t.default(Ve).removeClass(Li),ue.getAttribute("role")==="tab"&&ue.setAttribute("aria-selected",!1)}t.default(Y).addClass(Li),Y.getAttribute("role")==="tab"&&Y.setAttribute("aria-selected",!0),v.reflow(Y),Y.classList.contains(ui)&&Y.classList.add(di);var Je=Y.parentNode;if(Je&&Je.nodeName==="LI"&&(Je=Je.parentNode),Je&&t.default(Je).hasClass(Ka)){var lt=t.default(Y).closest(Pa)[0];if(lt){var jt=[].slice.call(lt.querySelectorAll(Ja));t.default(jt).addClass(Li)}Y.setAttribute("aria-expanded",!0)}ye&&ye()},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this),ye=ue.data(Zi);if(ye||(ye=new je(this),ue.data(Zi,ye)),typeof Y=="string"){if(typeof ye[Y]>"u")throw new TypeError('No method named "'+Y+'"');ye[Y]()}})},g(je,null,[{key:"VERSION",get:function(){return ko}}]),je}();t.default(document).on(Aa,Lo,function(je){je.preventDefault(),$i._jQueryInterface.call(t.default(this),"show")}),t.default.fn[Ei]=$i._jQueryInterface,t.default.fn[Ei].Constructor=$i,t.default.fn[Ei].noConflict=function(){return t.default.fn[Ei]=Po,$i._jQueryInterface};var Ni="toast",Fi="4.6.2",Hi="bs.toast",Ln="."+Hi,qa=t.default.fn[Ni],No="fade",eo="hide",qi="show",to="showing",ro="click.dismiss"+Ln,no="hide"+Ln,Fo="hidden"+Ln,io="show"+Ln,Ho="shown"+Ln,Na='[data-dismiss="toast"]',ao={animation:!0,autohide:!0,delay:500},zo={animation:"boolean",autohide:"boolean",delay:"number"},va=function(){function je(Se,Y){this._element=Se,this._config=this._getConfig(Y),this._timeout=null,this._setListeners()}var Te=je.prototype;return Te.show=function(){var Y=this,ue=t.default.Event(io);if(t.default(this._element).trigger(ue),!ue.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(No);var ye=function(){Y._element.classList.remove(to),Y._element.classList.add(qi),t.default(Y._element).trigger(Ho),Y._config.autohide&&(Y._timeout=setTimeout(function(){Y.hide()},Y._config.delay))};if(this._element.classList.remove(eo),v.reflow(this._element),this._element.classList.add(to),this._config.animation){var Ve=v.getTransitionDurationFromElement(this._element);t.default(this._element).one(v.TRANSITION_END,ye).emulateTransitionEnd(Ve)}else ye()}},Te.hide=function(){if(this._element.classList.contains(qi)){var Y=t.default.Event(no);t.default(this._element).trigger(Y),!Y.isDefaultPrevented()&&this._close()}},Te.dispose=function(){this._clearTimeout(),this._element.classList.contains(qi)&&this._element.classList.remove(qi),t.default(this._element).off(ro),t.default.removeData(this._element,Hi),this._element=null,this._config=null},Te._getConfig=function(Y){return Y=E({},ao,t.default(this._element).data(),typeof Y=="object"&&Y?Y:{}),v.typeCheckConfig(Ni,Y,this.constructor.DefaultType),Y},Te._setListeners=function(){var Y=this;t.default(this._element).on(ro,Na,function(){return Y.hide()})},Te._close=function(){var Y=this,ue=function(){Y._element.classList.add(eo),t.default(Y._element).trigger(Fo)};if(this._element.classList.remove(qi),this._config.animation){var ye=v.getTransitionDurationFromElement(this._element);t.default(this._element).one(v.TRANSITION_END,ue).emulateTransitionEnd(ye)}else ue()},Te._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},je._jQueryInterface=function(Y){return this.each(function(){var ue=t.default(this),ye=ue.data(Hi),Ve=typeof Y=="object"&&Y;if(ye||(ye=new je(this,Ve),ue.data(Hi,ye)),typeof Y=="string"){if(typeof ye[Y]>"u")throw new TypeError('No method named "'+Y+'"');ye[Y](this)}})},g(je,null,[{key:"VERSION",get:function(){return Fi}},{key:"DefaultType",get:function(){return zo}},{key:"Default",get:function(){return ao}}]),je}();t.default.fn[Ni]=va._jQueryInterface,t.default.fn[Ni].Constructor=va,t.default.fn[Ni].noConflict=function(){return t.default.fn[Ni]=qa,va._jQueryInterface},b.Alert=pe,b.Button=qe,b.Carousel=Ht,b.Collapse=_r,b.Dropdown=K,b.Modal=oi,b.Popover=An,b.Scrollspy=Qi,b.Tab=$i,b.Toast=va,b.Tooltip=Qn,b.Util=v,Object.defineProperty(b,"__esModule",{value:!0})})})(As,As.exports);var sl={exports:{}};/*! @preserve
 * bootbox.js
 * version: 6.0.0
 * author: Nick Payne <nick@kurai.co.uk>
 * license: MIT
 * http://bootboxjs.com/
 */(function(H,M){(function(b,P){H.exports=P(xi)})(zi,function b(P,B){let m={},t="6.0.0";m.VERSION=t;let p={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},w={dialog:'<div class="bootbox modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="bootbox-body"></div></div></div></div></div>',header:'<div class="modal-header"><h5 class="modal-title"></h5></div>',footer:'<div class="modal-footer"></div>',closeButton:'<button type="button" class="bootbox-close-button close btn-close" aria-hidden="true" aria-label="Close"></button>',form:'<form class="bootbox-form"></form>',button:'<button type="button" class="btn"></button>',option:'<option value=""></option>',promptMessage:'<div class="bootbox-prompt-message"></div>',inputs:{text:'<input class="bootbox-input bootbox-input-text form-control" autocomplete="off" type="text" />',textarea:'<textarea class="bootbox-input bootbox-input-textarea form-control"></textarea>',email:'<input class="bootbox-input bootbox-input-email form-control" autocomplete="off" type="email" />',select:'<select class="bootbox-input bootbox-input-select form-select"></select>',checkbox:'<div class="form-check checkbox"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-checkbox" type="checkbox" /></label></div>',radio:'<div class="form-check radio"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-radio" type="radio" name="bootbox-radio" /></label></div>',date:'<input class="bootbox-input bootbox-input-date form-control" autocomplete="off" type="date" />',time:'<input class="bootbox-input bootbox-input-time form-control" autocomplete="off" type="time" />',number:'<input class="bootbox-input bootbox-input-number form-control" autocomplete="off" type="number" />',password:'<input class="bootbox-input bootbox-input-password form-control" autocomplete="off" type="password" />',range:'<input class="bootbox-input bootbox-input-range form-control-range" autocomplete="off" type="range" />'}},g={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};m.locales=function(T){return T?p[T]:p},m.addLocale=function(T,A){return P.each(["OK","CANCEL","CONFIRM"],function(U,X){if(!A[X])throw new Error('Please supply a translation for "'+X+'"')}),p[T]={OK:A.OK,CANCEL:A.CANCEL,CONFIRM:A.CONFIRM},m},m.removeLocale=function(T){if(T!=="en")delete p[T];else throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return m},m.setLocale=function(T){return m.setDefaults("locale",T)},m.setDefaults=function(){let T={};return arguments.length===2?T[arguments[0]]=arguments[1]:T=arguments[0],P.extend(g,T),m},m.hideAll=function(){return P(".bootbox").modal("hide"),m},m.init=function(T){return b(T||P)},m.dialog=function(T){if(P.fn.modal===B)throw new Error('"$.fn.modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/5.1/getting-started/introduction/ for more details.');if(T=l(T),P.fn.modal.Constructor.VERSION){T.fullBootstrapVersion=P.fn.modal.Constructor.VERSION;let pe=T.fullBootstrapVersion.indexOf(".");T.bootstrap=T.fullBootstrapVersion.substring(0,pe)}else T.bootstrap="2",T.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.");let A=P(w.dialog),U=A.find(".modal-dialog"),X=A.find(".modal-body"),Q=P(w.header),re=P(w.footer),ge=T.buttons,Ce={onEscape:T.onEscape};if(X.find(".bootbox-body").html(T.message),a(T.buttons)>0&&(d(ge,function(pe,ie){let oe=P(w.button);switch(oe.data("bb-handler",pe),oe.addClass(ie.className),pe){case"ok":case"confirm":oe.addClass("bootbox-accept");break;case"cancel":oe.addClass("bootbox-cancel");break}oe.html(ie.label),ie.id&&oe.attr({id:ie.id}),ie.disabled===!0&&oe.prop({disabled:!0}),re.append(oe),Ce[pe]=ie.callback}),X.after(re)),T.animate===!0&&A.addClass("fade"),T.className&&A.addClass(T.className),T.id&&A.attr({id:T.id}),T.size)switch(T.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using '+T.fullBootstrapVersion+". Please upgrade to use this option."),T.size){case"small":case"sm":U.addClass("modal-sm");break;case"large":case"lg":U.addClass("modal-lg");break;case"extra-large":case"xl":U.addClass("modal-xl"),T.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using '+T.fullBootstrapVersion+". Please upgrade to use this option.");break}if(T.scrollable&&(U.addClass("modal-dialog-scrollable"),T.fullBootstrapVersion.substring(0,3)<"4.3"&&console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using '+T.fullBootstrapVersion+". Please upgrade to use this option.")),T.title||T.closeButton){if(T.title?Q.find(".modal-title").html(T.title):Q.addClass("border-0"),T.closeButton){let pe=P(w.closeButton);T.bootstrap<5&&pe.html("&times;"),T.bootstrap<4?Q.prepend(pe):Q.append(pe)}X.before(Q)}if(T.centerVertical&&(U.addClass("modal-dialog-centered"),T.fullBootstrapVersion<"4.0.0"&&console.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using '+T.fullBootstrapVersion+". Please upgrade to use this option.")),T.reusable||(A.one("hide.bs.modal",{dialog:A},C),A.one("hidden.bs.modal",{dialog:A},v)),T.onHide)if(P.isFunction(T.onHide))A.on("hide.bs.modal",T.onHide);else throw new Error('Argument supplied to "onHide" must be a function');if(T.onHidden)if(P.isFunction(T.onHidden))A.on("hidden.bs.modal",T.onHidden);else throw new Error('Argument supplied to "onHidden" must be a function');if(T.onShow)if(P.isFunction(T.onShow))A.on("show.bs.modal",T.onShow);else throw new Error('Argument supplied to "onShow" must be a function');if(A.one("shown.bs.modal",{dialog:A},h),T.onShown)if(P.isFunction(T.onShown))A.on("shown.bs.modal",T.onShown);else throw new Error('Argument supplied to "onShown" must be a function');if(T.backdrop===!0){let pe=!1;A.on("mousedown",".modal-content",function(ie){ie.stopPropagation(),pe=!0}),A.on("click.dismiss.bs.modal",function(ie){pe||ie.target!==ie.currentTarget||A.trigger("escape.close.bb")})}return A.on("escape.close.bb",function(pe){Ce.onEscape&&k(pe,A,Ce.onEscape)}),A.on("click",".modal-footer button:not(.disabled)",function(pe){let ie=P(this).data("bb-handler");ie!==B&&k(pe,A,Ce[ie])}),A.on("click",".bootbox-close-button",function(pe){k(pe,A,Ce.onEscape)}),A.on("keyup",function(pe){pe.which===27&&A.trigger("escape.close.bb")}),P(T.container).append(A),A.modal({backdrop:T.backdrop,keyboard:!1,show:!1}),T.show&&A.modal("show",T.relatedTarget),A},m.alert=function(){let T;if(T=i("alert",["ok"],["message","callback"],arguments),T.callback&&!P.isFunction(T.callback))throw new Error('alert requires the "callback" property to be a function when provided');return T.buttons.ok.callback=T.onEscape=function(){return P.isFunction(T.callback)?T.callback.call(this):!0},m.dialog(T)},m.confirm=function(){let T;if(T=i("confirm",["cancel","confirm"],["message","callback"],arguments),!P.isFunction(T.callback))throw new Error("confirm requires a callback");return T.buttons.cancel.callback=T.onEscape=function(){return T.callback.call(this,!1)},T.buttons.confirm.callback=function(){return T.callback.call(this,!0)},m.dialog(T)},m.prompt=function(){let T,A,U,X,Q,re;if(U=P(w.form),T=i("prompt",["cancel","confirm"],["title","callback"],arguments),T.value||(T.value=g.value),T.inputType||(T.inputType=g.inputType),Q=T.show===B?g.show:T.show,T.show=!1,T.buttons.cancel.callback=T.onEscape=function(){return T.callback.call(this,null)},T.buttons.confirm.callback=function(){let ge;if(T.inputType==="checkbox")ge=X.find("input:checked").map(function(){return P(this).val()}).get();else if(T.inputType==="radio")ge=X.find("input:checked").val();else{let Ce=X[0];if(T.errorMessage&&Ce.setCustomValidity(""),Ce.checkValidity&&!Ce.checkValidity())return T.errorMessage&&Ce.setCustomValidity(T.errorMessage),Ce.reportValidity&&Ce.reportValidity(),!1;T.inputType==="select"&&T.multiple===!0?ge=X.find("option:selected").map(function(){return P(this).val()}).get():ge=X.val()}return T.callback.call(this,ge)},!T.title)throw new Error("prompt requires a title");if(!P.isFunction(T.callback))throw new Error("prompt requires a callback");if(!w.inputs[T.inputType])throw new Error("Invalid prompt type");switch(X=P(w.inputs[T.inputType]),T.inputType){case"text":case"textarea":case"email":case"password":X.val(T.value),T.placeholder&&X.attr("placeholder",T.placeholder),T.pattern&&X.attr("pattern",T.pattern),T.maxlength&&X.attr("maxlength",T.maxlength),T.required&&X.prop({required:!0}),T.rows&&!isNaN(parseInt(T.rows))&&T.inputType==="textarea"&&X.attr({rows:T.rows});break;case"date":case"time":case"number":case"range":if(X.val(T.value),T.placeholder&&X.attr("placeholder",T.placeholder),T.pattern?X.attr("pattern",T.pattern):T.inputType==="date"?X.attr("pattern","d{4}-d{2}-d{2}"):T.inputType==="time"&&X.attr("pattern","d{2}:d{2}"),T.required&&X.prop({required:!0}),T.inputType!=="date"&&T.step)if(T.step==="any"||!isNaN(T.step)&&parseFloat(T.step)>0)X.attr("step",T.step);else throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.');j(T.inputType,T.min,T.max)&&(T.min!==B&&X.attr("min",T.min),T.max!==B&&X.attr("max",T.max));break;case"select":let ge={};if(re=T.inputOptions||[],!P.isArray(re))throw new Error("Please pass an array of input options");if(!re.length)throw new Error('prompt with "inputType" set to "select" requires at least one option');T.required&&X.prop({required:!0}),T.multiple&&X.prop({multiple:!0}),d(re,function(ie,oe){let me=X;if(oe.value===B||oe.text===B)throw new Error('each option needs a "value" property and a "text" property');oe.group&&(ge[oe.group]||(ge[oe.group]=P("<optgroup />").attr("label",oe.group)),me=ge[oe.group]);let Fe=P(w.option);Fe.attr("value",oe.value).text(oe.text),me.append(Fe)}),d(ge,function(ie,oe){X.append(oe)}),X.val(T.value),T.bootstrap<5&&X.removeClass("form-select").addClass("form-control");break;case"checkbox":let Ce=P.isArray(T.value)?T.value:[T.value];if(re=T.inputOptions||[],!re.length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');X=P('<div class="bootbox-checkbox-list"></div>'),d(re,function(ie,oe){if(oe.value===B||oe.text===B)throw new Error('each option needs a "value" property and a "text" property');let me=P(w.inputs[T.inputType]);me.find("input").attr("value",oe.value),me.find("label").append(`
`+oe.text),d(Ce,function(Fe,et){et===oe.value&&me.find("input").prop("checked",!0)}),X.append(me)});break;case"radio":if(T.value!==B&&P.isArray(T.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(re=T.inputOptions||[],!re.length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');X=P('<div class="bootbox-radiobutton-list"></div>');let pe=!0;d(re,function(ie,oe){if(oe.value===B||oe.text===B)throw new Error('each option needs a "value" property and a "text" property');let me=P(w.inputs[T.inputType]);me.find("input").attr("value",oe.value),me.find("label").append(`
`+oe.text),T.value!==B&&oe.value===T.value&&(me.find("input").prop("checked",!0),pe=!1),X.append(me)}),pe&&X.find('input[type="radio"]').first().prop("checked",!0);break}if(U.append(X),U.on("submit",function(ge){ge.preventDefault(),ge.stopPropagation(),A.find(".bootbox-accept").trigger("click")}),P.trim(T.message)!==""){let ge=P(w.promptMessage).html(T.message);U.prepend(ge),T.message=U}else T.message=U;return A=m.dialog(T),A.off("shown.bs.modal",h),A.on("shown.bs.modal",function(){X.focus()}),Q===!0&&A.modal("show"),A};function E(T,A){let U=T.length,X={};if(U<1||U>2)throw new Error("Invalid argument length");return U===2||typeof T[0]=="string"?(X[A[0]]=T[0],X[A[1]]=T[1]):X=T[0],X}function n(T,A,U){return P.extend(!0,{},T,E(A,U))}function i(T,A,U,X){let Q;X&&X[0]&&(Q=X[0].locale||g.locale,(X[0].swapButtonOrder||g.swapButtonOrder)&&(A=A.reverse()));let re={className:"bootbox-"+T,buttons:o(A,Q)};return u(n(re,X,U),A)}function u(T,A){let U={};return d(A,function(X,Q){U[Q]=!0}),d(T.buttons,function(X){if(U[X]===B)throw new Error('button key "'+X+'" is not allowed (options are '+A.join(" ")+")")}),T}function o(T,A){let U={};for(let X=0,Q=T.length;X<Q;X++){let re=T[X],ge=re.toLowerCase(),Ce=re.toUpperCase();U[ge]={label:c(Ce,A)}}return U}function c(T,A){let U=p[A];return U?U[T]:p.en[T]}function l(T){let A,U;if(typeof T!="object")throw new Error("Please supply an object of options");if(!T.message)throw new Error('"message" option must not be null or an empty string.');return T=P.extend({},g,T),T.backdrop?T.backdrop=typeof T.backdrop=="string"&&T.backdrop.toLowerCase()==="static"?"static":!0:T.backdrop=T.backdrop===!1||T.backdrop===0?!1:"static",T.buttons||(T.buttons={}),A=T.buttons,U=a(A),d(A,function(X,Q,re){if(P.isFunction(Q)&&(Q=A[X]={callback:Q}),P.type(Q)!=="object")throw new Error('button with key "'+X+'" must be an object');if(Q.label||(Q.label=X),!Q.className){let ge=!1;T.swapButtonOrder?ge=re===0:ge=re===U-1,U<=2&&ge?Q.className="btn-primary":Q.className="btn-secondary btn-default"}}),T}function a(T){return Object.keys(T).length}function d(T,A){let U=0;P.each(T,function(X,Q){A(X,Q,U++)})}function h(T){T.data.dialog.find(".bootbox-accept").first().trigger("focus")}function v(T){T.target===T.data.dialog[0]&&T.data.dialog.remove()}function C(T){T.target===T.data.dialog[0]&&(T.data.dialog.off("escape.close.bb"),T.data.dialog.off("click"))}function k(T,A,U){T.stopPropagation(),T.preventDefault(),P.isFunction(U)&&U.call(A,T)===!1||A.modal("hide")}function j(T,A,U){let X=!1,Q=!0,re=!0;if(T==="date")A!==B&&!(Q=N(A))?console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your min value may not be enforced by this browser.'):U!==B&&!(re=N(U))&&console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your max value may not be enforced by this browser.');else if(T==="time"){if(A!==B&&!(Q=G(A)))throw new Error('"min" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.');if(U!==B&&!(re=G(U)))throw new Error('"max" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.')}else{if(A!==B&&isNaN(A))throw Q=!1,new Error('"min" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min for more information.');if(U!==B&&isNaN(U))throw re=!1,new Error('"max" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.')}if(Q&&re){if(U<=A)throw new Error('"max" must be greater than "min". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.');X=!0}return X}function G(T){return/([01][0-9]|2[0-3]):[0-5][0-9]?:[0-5][0-9]/.test(T)}function N(T){return/(\d{4})-(\d{2})-(\d{2})/.test(T)}return m})})(sl);var Lu=sl.exports;const ll=ba(Lu);var ul={exports:{}};(function(H){(function(M){M(["jquery"],function(b){return function(){var P,B,m=0,t={error:"error",info:"info",success:"success",warning:"warning"},p={clear:c,remove:l,error:g,getContainer:E,info:n,options:{},subscribe:i,success:u,version:"2.1.4",warning:o},w;return p;function g(N,T,A){return k({type:t.error,iconClass:j().iconClasses.error,message:N,optionsOverride:A,title:T})}function E(N,T){return N||(N=j()),P=b("#"+N.containerId),P.length||T&&(P=h(N)),P}function n(N,T,A){return k({type:t.info,iconClass:j().iconClasses.info,message:N,optionsOverride:A,title:T})}function i(N){B=N}function u(N,T,A){return k({type:t.success,iconClass:j().iconClasses.success,message:N,optionsOverride:A,title:T})}function o(N,T,A){return k({type:t.warning,iconClass:j().iconClasses.warning,message:N,optionsOverride:A,title:T})}function c(N,T){var A=j();P||E(A),d(N,A,T)||a(A)}function l(N){var T=j();if(P||E(T),N&&b(":focus",N).length===0){G(N);return}P.children().length&&P.remove()}function a(N){for(var T=P.children(),A=T.length-1;A>=0;A--)d(b(T[A]),N)}function d(N,T,A){var U=A&&A.force?A.force:!1;return N&&(U||b(":focus",N).length===0)?(N[T.hideMethod]({duration:T.hideDuration,easing:T.hideEasing,complete:function(){G(N)}}),!0):!1}function h(N){return P=b("<div/>").attr("id",N.containerId).addClass(N.positionClass),P.appendTo(b(N.target)),P}function v(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function C(N){B&&B(N)}function k(N){var T=j(),A=N.iconClass||T.iconClass;if(typeof N.optionsOverride<"u"&&(T=b.extend(T,N.optionsOverride),A=N.optionsOverride.iconClass||A),Ot(T,N))return;m++,P=E(T,!0);var U=null,X=b("<div/>"),Q=b("<div/>"),re=b("<div/>"),ge=b("<div/>"),Ce=b(T.closeHtml),pe={intervalId:null,hideEta:null,maxHideTime:null},ie={toastId:m,state:"visible",startTime:new Date,options:T,map:N};return me(),ft(),et(),C(ie),T.debug&&console&&console.log(ie),X;function oe(Ue){return Ue==null&&(Ue=""),Ue.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function me(){ze(),St(),Le(),Et(),Mt(),at(),bt(),Fe()}function Fe(){var Ue="";switch(N.iconClass){case"toast-success":case"toast-info":Ue="polite";break;default:Ue="assertive"}X.attr("aria-live",Ue)}function et(){T.closeOnHover&&X.hover(mt,ct),!T.onclick&&T.tapToDismiss&&X.click(Ne),T.closeButton&&Ce&&Ce.click(function(Ue){Ue.stopPropagation?Ue.stopPropagation():Ue.cancelBubble!==void 0&&Ue.cancelBubble!==!0&&(Ue.cancelBubble=!0),T.onCloseClick&&T.onCloseClick(Ue),Ne(!0)}),T.onclick&&X.click(function(Ue){T.onclick(Ue),Ne()})}function ft(){X.hide(),X[T.showMethod]({duration:T.showDuration,easing:T.showEasing,complete:T.onShown}),T.timeOut>0&&(U=setTimeout(Ne,T.timeOut),pe.maxHideTime=parseFloat(T.timeOut),pe.hideEta=new Date().getTime()+pe.maxHideTime,T.progressBar&&(pe.intervalId=setInterval(Ct,10)))}function ze(){N.iconClass&&X.addClass(T.toastClass).addClass(A)}function bt(){T.newestOnTop?P.prepend(X):P.append(X)}function St(){if(N.title){var Ue=N.title;T.escapeHtml&&(Ue=oe(N.title)),Q.append(Ue).addClass(T.titleClass),X.append(Q)}}function Le(){if(N.message){var Ue=N.message;T.escapeHtml&&(Ue=oe(N.message)),re.append(Ue).addClass(T.messageClass),X.append(re)}}function Et(){T.closeButton&&(Ce.addClass(T.closeClass).attr("role","button"),X.prepend(Ce))}function Mt(){T.progressBar&&(ge.addClass(T.progressClass),X.prepend(ge))}function at(){T.rtl&&X.addClass("rtl")}function Ot(Ue,qe){if(Ue.preventDuplicates){if(qe.message===w)return!0;w=qe.message}return!1}function Ne(Ue){var qe=Ue&&T.closeMethod!==!1?T.closeMethod:T.hideMethod,Ft=Ue&&T.closeDuration!==!1?T.closeDuration:T.hideDuration,Wt=Ue&&T.closeEasing!==!1?T.closeEasing:T.hideEasing;if(!(b(":focus",X).length&&!Ue))return clearTimeout(pe.intervalId),X[qe]({duration:Ft,easing:Wt,complete:function(){G(X),clearTimeout(U),T.onHidden&&ie.state!=="hidden"&&T.onHidden(),ie.state="hidden",ie.endTime=new Date,C(ie)}})}function ct(){(T.timeOut>0||T.extendedTimeOut>0)&&(U=setTimeout(Ne,T.extendedTimeOut),pe.maxHideTime=parseFloat(T.extendedTimeOut),pe.hideEta=new Date().getTime()+pe.maxHideTime)}function mt(){clearTimeout(U),pe.hideEta=0,X.stop(!0,!0)[T.showMethod]({duration:T.showDuration,easing:T.showEasing})}function Ct(){var Ue=(pe.hideEta-new Date().getTime())/pe.maxHideTime*100;ge.width(Ue+"%")}}function j(){return b.extend({},v(),p.options)}function G(N){P||(P=E()),!N.is(":visible")&&(N.remove(),N=null,P.children().length===0&&(P.remove(),w=void 0))}}()})})(function(M,b){H.exports?H.exports=b(xi):window.toastr=b(window.jQuery)})})(ul);var Nu=ul.exports;const Fu=ba(Nu);var dl={exports:{}};function Hu(H){throw new Error('Could not dynamically require "'+H+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var us={exports:{}},Ps;function Ba(){return Ps||(Ps=1,function(H,M){(function(b,P){H.exports=P()})(zi,function(){var b;function P(){return b.apply(null,arguments)}function B(S){b=S}function m(S){return S instanceof Array||Object.prototype.toString.call(S)==="[object Array]"}function t(S){return S!=null&&Object.prototype.toString.call(S)==="[object Object]"}function p(S,R){return Object.prototype.hasOwnProperty.call(S,R)}function w(S){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(S).length===0;var R;for(R in S)if(p(S,R))return!1;return!0}function g(S){return S===void 0}function E(S){return typeof S=="number"||Object.prototype.toString.call(S)==="[object Number]"}function n(S){return S instanceof Date||Object.prototype.toString.call(S)==="[object Date]"}function i(S,R){var V=[],q,de=S.length;for(q=0;q<de;++q)V.push(R(S[q],q));return V}function u(S,R){for(var V in R)p(R,V)&&(S[V]=R[V]);return p(R,"toString")&&(S.toString=R.toString),p(R,"valueOf")&&(S.valueOf=R.valueOf),S}function o(S,R,V,q){return Vi(S,R,V,q,!0).utc()}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function l(S){return S._pf==null&&(S._pf=c()),S._pf}var a;Array.prototype.some?a=Array.prototype.some:a=function(S){var R=Object(this),V=R.length>>>0,q;for(q=0;q<V;q++)if(q in R&&S.call(this,R[q],q,R))return!0;return!1};function d(S){if(S._isValid==null){var R=l(S),V=a.call(R.parsedDateParts,function(de){return de!=null}),q=!isNaN(S._d.getTime())&&R.overflow<0&&!R.empty&&!R.invalidEra&&!R.invalidMonth&&!R.invalidWeekday&&!R.weekdayMismatch&&!R.nullInput&&!R.invalidFormat&&!R.userInvalidated&&(!R.meridiem||R.meridiem&&V);if(S._strict&&(q=q&&R.charsLeftOver===0&&R.unusedTokens.length===0&&R.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(S))S._isValid=q;else return q}return S._isValid}function h(S){var R=o(NaN);return S!=null?u(l(R),S):l(R).userInvalidated=!0,R}var v=P.momentProperties=[],C=!1;function k(S,R){var V,q,de,Oe=v.length;if(g(R._isAMomentObject)||(S._isAMomentObject=R._isAMomentObject),g(R._i)||(S._i=R._i),g(R._f)||(S._f=R._f),g(R._l)||(S._l=R._l),g(R._strict)||(S._strict=R._strict),g(R._tzm)||(S._tzm=R._tzm),g(R._isUTC)||(S._isUTC=R._isUTC),g(R._offset)||(S._offset=R._offset),g(R._pf)||(S._pf=l(R)),g(R._locale)||(S._locale=R._locale),Oe>0)for(V=0;V<Oe;V++)q=v[V],de=R[q],g(de)||(S[q]=de);return S}function j(S){k(this,S),this._d=new Date(S._d!=null?S._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,P.updateOffset(this),C=!1)}function G(S){return S instanceof j||S!=null&&S._isAMomentObject!=null}function N(S){P.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+S)}function T(S,R){var V=!0;return u(function(){if(P.deprecationHandler!=null&&P.deprecationHandler(null,S),V){var q=[],de,Oe,$e,Bt=arguments.length;for(Oe=0;Oe<Bt;Oe++){if(de="",typeof arguments[Oe]=="object"){de+=`
[`+Oe+"] ";for($e in arguments[0])p(arguments[0],$e)&&(de+=$e+": "+arguments[0][$e]+", ");de=de.slice(0,-2)}else de=arguments[Oe];q.push(de)}N(S+`
Arguments: `+Array.prototype.slice.call(q).join("")+`
`+new Error().stack),V=!1}return R.apply(this,arguments)},R)}var A={};function U(S,R){P.deprecationHandler!=null&&P.deprecationHandler(S,R),A[S]||(N(R),A[S]=!0)}P.suppressDeprecationWarnings=!1,P.deprecationHandler=null;function X(S){return typeof Function<"u"&&S instanceof Function||Object.prototype.toString.call(S)==="[object Function]"}function Q(S){var R,V;for(V in S)p(S,V)&&(R=S[V],X(R)?this[V]=R:this["_"+V]=R);this._config=S,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function re(S,R){var V=u({},S),q;for(q in R)p(R,q)&&(t(S[q])&&t(R[q])?(V[q]={},u(V[q],S[q]),u(V[q],R[q])):R[q]!=null?V[q]=R[q]:delete V[q]);for(q in S)p(S,q)&&!p(R,q)&&t(S[q])&&(V[q]=u({},V[q]));return V}function ge(S){S!=null&&this.set(S)}var Ce;Object.keys?Ce=Object.keys:Ce=function(S){var R,V=[];for(R in S)p(S,R)&&V.push(R);return V};var pe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ie(S,R,V){var q=this._calendar[S]||this._calendar.sameElse;return X(q)?q.call(R,V):q}function oe(S,R,V){var q=""+Math.abs(S),de=R-q.length,Oe=S>=0;return(Oe?V?"+":"":"-")+Math.pow(10,Math.max(0,de)).toString().substr(1)+q}var me=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,et={},ft={};function ze(S,R,V,q){var de=q;typeof q=="string"&&(de=function(){return this[q]()}),S&&(ft[S]=de),R&&(ft[R[0]]=function(){return oe(de.apply(this,arguments),R[1],R[2])}),V&&(ft[V]=function(){return this.localeData().ordinal(de.apply(this,arguments),S)})}function bt(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function St(S){var R=S.match(me),V,q;for(V=0,q=R.length;V<q;V++)ft[R[V]]?R[V]=ft[R[V]]:R[V]=bt(R[V]);return function(de){var Oe="",$e;for($e=0;$e<q;$e++)Oe+=X(R[$e])?R[$e].call(de,S):R[$e];return Oe}}function Le(S,R){return S.isValid()?(R=Et(R,S.localeData()),et[R]=et[R]||St(R),et[R](S)):S.localeData().invalidDate()}function Et(S,R){var V=5;function q(de){return R.longDateFormat(de)||de}for(Fe.lastIndex=0;V>=0&&Fe.test(S);)S=S.replace(Fe,q),Fe.lastIndex=0,V-=1;return S}var Mt={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"};function at(S){var R=this._longDateFormat[S],V=this._longDateFormat[S.toUpperCase()];return R||!V?R:(this._longDateFormat[S]=V.match(me).map(function(q){return q==="MMMM"||q==="MM"||q==="DD"||q==="dddd"?q.slice(1):q}).join(""),this._longDateFormat[S])}var Ot="Invalid date";function Ne(){return this._invalidDate}var ct="%d",mt=/\d{1,2}/;function Ct(S){return this._ordinal.replace("%d",S)}var Ue={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qe(S,R,V,q){var de=this._relativeTime[V];return X(de)?de(S,R,V,q):de.replace(/%d/i,S)}function Ft(S,R){var V=this._relativeTime[S>0?"future":"past"];return X(V)?V(R):V.replace(/%s/i,R)}var Wt={};function ne(S,R){var V=S.toLowerCase();Wt[V]=Wt[V+"s"]=Wt[R]=S}function _e(S){return typeof S=="string"?Wt[S]||Wt[S.toLowerCase()]:void 0}function tt(S){var R={},V,q;for(q in S)p(S,q)&&(V=_e(q),V&&(R[V]=S[q]));return R}var Dt={};function vt(S,R){Dt[S]=R}function Rt(S){var R=[],V;for(V in S)p(S,V)&&R.push({unit:V,priority:Dt[V]});return R.sort(function(q,de){return q.priority-de.priority}),R}function At(S){return S%4===0&&S%100!==0||S%400===0}function dt(S){return S<0?Math.ceil(S)||0:Math.floor(S)}function nt(S){var R=+S,V=0;return R!==0&&isFinite(R)&&(V=dt(R)),V}function te(S,R){return function(V){return V!=null?(xe(this,S,V),P.updateOffset(this,R),this):he(this,S)}}function he(S,R){return S.isValid()?S._d["get"+(S._isUTC?"UTC":"")+R]():NaN}function xe(S,R,V){S.isValid()&&!isNaN(V)&&(R==="FullYear"&&At(S.year())&&S.month()===1&&S.date()===29?(V=nt(V),S._d["set"+(S._isUTC?"UTC":"")+R](V,S.month(),br(V,S.month()))):S._d["set"+(S._isUTC?"UTC":"")+R](V))}function He(S){return S=_e(S),X(this[S])?this[S]():this}function Ae(S,R){if(typeof S=="object"){S=tt(S);var V=Rt(S),q,de=V.length;for(q=0;q<de;q++)this[V[q].unit](S[V[q].unit])}else if(S=_e(S),X(this[S]))return this[S](R);return this}var Ye=/\d/,Xe=/\d\d/,st=/\d{3}/,ce=/\d{4}/,we=/[+-]?\d{6}/,Me=/\d\d?/,Ze=/\d\d\d\d?/,ot=/\d\d\d\d\d\d?/,_t=/\d{1,3}/,Ut=/\d{1,4}/,nr=/[+-]?\d{1,6}/,pr=/\d+/,lr=/[+-]?\d+/,Tr=/Z|[+-]\d\d:?\d\d/gi,Sr=/Z|[+-]\d\d(?::?\d\d)?/gi,kr=/[+-]?\d+(\.\d{1,3})?/,En=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Rn;Rn={};function yt(S,R,V){Rn[S]=X(R)?R:function(q,de){return q&&V?V:R}}function $n(S,R){return p(Rn,S)?Rn[S](R._strict,R._locale):new RegExp(Hn(S))}function Hn(S){return Wr(S.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(R,V,q,de,Oe){return V||q||de||Oe}))}function Wr(S){return S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ur={};function qt(S,R){var V,q=R,de;for(typeof S=="string"&&(S=[S]),E(R)&&(q=function(Oe,$e){$e[R]=nt(Oe)}),de=S.length,V=0;V<de;V++)Ur[S[V]]=q}function gn(S,R){qt(S,function(V,q,de,Oe){de._w=de._w||{},R(V,de._w,de,Oe)})}function We(S,R,V){R!=null&&p(Ur,S)&&Ur[S](R,V._a,V,S)}var Ke=0,ht=1,Tt=2,kt=3,Ht=4,er=5,or=6,Vt=7,vr=8;function Gt(S,R){return(S%R+R)%R}var Pt;Array.prototype.indexOf?Pt=Array.prototype.indexOf:Pt=function(S){var R;for(R=0;R<this.length;++R)if(this[R]===S)return R;return-1};function br(S,R){if(isNaN(S)||isNaN(R))return NaN;var V=Gt(R,12);return S+=(R-V)/12,V===1?At(S)?29:28:31-V%7%2}ze("M",["MM",2],"Mo",function(){return this.month()+1}),ze("MMM",0,0,function(S){return this.localeData().monthsShort(this,S)}),ze("MMMM",0,0,function(S){return this.localeData().months(this,S)}),ne("month","M"),vt("month",8),yt("M",Me),yt("MM",Me,Xe),yt("MMM",function(S,R){return R.monthsShortRegex(S)}),yt("MMMM",function(S,R){return R.monthsRegex(S)}),qt(["M","MM"],function(S,R){R[ht]=nt(S)-1}),qt(["MMM","MMMM"],function(S,R,V,q){var de=V._locale.monthsParse(S,q,V._strict);de!=null?R[ht]=de:l(V).invalidMonth=S});var Lr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),sr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fn=En,na=En;function ia(S,R){return S?m(this._months)?this._months[S.month()]:this._months[(this._months.isFormat||sr).test(R)?"format":"standalone"][S.month()]:m(this._months)?this._months:this._months.standalone}function Bi(S,R){return S?m(this._monthsShort)?this._monthsShort[S.month()]:this._monthsShort[sr.test(R)?"format":"standalone"][S.month()]:m(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ci(S,R,V){var q,de,Oe,$e=S.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],q=0;q<12;++q)Oe=o([2e3,q]),this._shortMonthsParse[q]=this.monthsShort(Oe,"").toLocaleLowerCase(),this._longMonthsParse[q]=this.months(Oe,"").toLocaleLowerCase();return V?R==="MMM"?(de=Pt.call(this._shortMonthsParse,$e),de!==-1?de:null):(de=Pt.call(this._longMonthsParse,$e),de!==-1?de:null):R==="MMM"?(de=Pt.call(this._shortMonthsParse,$e),de!==-1?de:(de=Pt.call(this._longMonthsParse,$e),de!==-1?de:null)):(de=Pt.call(this._longMonthsParse,$e),de!==-1?de:(de=Pt.call(this._shortMonthsParse,$e),de!==-1?de:null))}function qn(S,R,V){var q,de,Oe;if(this._monthsParseExact)return Ci.call(this,S,R,V);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),q=0;q<12;q++){if(de=o([2e3,q]),V&&!this._longMonthsParse[q]&&(this._longMonthsParse[q]=new RegExp("^"+this.months(de,"").replace(".","")+"$","i"),this._shortMonthsParse[q]=new RegExp("^"+this.monthsShort(de,"").replace(".","")+"$","i")),!V&&!this._monthsParse[q]&&(Oe="^"+this.months(de,"")+"|^"+this.monthsShort(de,""),this._monthsParse[q]=new RegExp(Oe.replace(".",""),"i")),V&&R==="MMMM"&&this._longMonthsParse[q].test(S))return q;if(V&&R==="MMM"&&this._shortMonthsParse[q].test(S))return q;if(!V&&this._monthsParse[q].test(S))return q}}function ji(S,R){var V;if(!S.isValid())return S;if(typeof R=="string"){if(/^\d+$/.test(R))R=nt(R);else if(R=S.localeData().monthsParse(R),!E(R))return S}return V=Math.min(S.date(),br(S.year(),R)),S._d["set"+(S._isUTC?"UTC":"")+"Month"](R,V),S}function Vn(S){return S!=null?(ji(this,S),P.updateOffset(this,!0),this):he(this,"Month")}function ei(){return br(this.year(),this.month())}function mn(S){return this._monthsParseExact?(p(this,"_monthsRegex")||_r.call(this),S?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=fn),this._monthsShortStrictRegex&&S?this._monthsShortStrictRegex:this._monthsShortRegex)}function hn(S){return this._monthsParseExact?(p(this,"_monthsRegex")||_r.call(this),S?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=na),this._monthsStrictRegex&&S?this._monthsStrictRegex:this._monthsRegex)}function _r(){function S($e,Bt){return Bt.length-$e.length}var R=[],V=[],q=[],de,Oe;for(de=0;de<12;de++)Oe=o([2e3,de]),R.push(this.monthsShort(Oe,"")),V.push(this.months(Oe,"")),q.push(this.months(Oe,"")),q.push(this.monthsShort(Oe,""));for(R.sort(S),V.sort(S),q.sort(S),de=0;de<12;de++)R[de]=Wr(R[de]),V[de]=Wr(V[de]);for(de=0;de<24;de++)q[de]=Wr(q[de]);this._monthsRegex=new RegExp("^("+q.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+R.join("|")+")","i")}ze("Y",0,0,function(){var S=this.year();return S<=9999?oe(S,4):"+"+S}),ze(0,["YY",2],0,function(){return this.year()%100}),ze(0,["YYYY",4],0,"year"),ze(0,["YYYYY",5],0,"year"),ze(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),vt("year",1),yt("Y",lr),yt("YY",Me,Xe),yt("YYYY",Ut,ce),yt("YYYYY",nr,we),yt("YYYYYY",nr,we),qt(["YYYYY","YYYYYY"],Ke),qt("YYYY",function(S,R){R[Ke]=S.length===2?P.parseTwoDigitYear(S):nt(S)}),qt("YY",function(S,R){R[Ke]=P.parseTwoDigitYear(S)}),qt("Y",function(S,R){R[Ke]=parseInt(S,10)});function Mr(S){return At(S)?366:365}P.parseTwoDigitYear=function(S){return nt(S)+(nt(S)>68?1900:2e3)};var Di=te("FullYear",!0);function Xr(){return At(this.year())}function Er(S,R,V,q,de,Oe,$e){var Bt;return S<100&&S>=0?(Bt=new Date(S+400,R,V,q,de,Oe,$e),isFinite(Bt.getFullYear())&&Bt.setFullYear(S)):Bt=new Date(S,R,V,q,de,Oe,$e),Bt}function Qt(S){var R,V;return S<100&&S>=0?(V=Array.prototype.slice.call(arguments),V[0]=S+400,R=new Date(Date.UTC.apply(null,V)),isFinite(R.getUTCFullYear())&&R.setUTCFullYear(S)):R=new Date(Date.UTC.apply(null,arguments)),R}function Gn(S,R,V){var q=7+R-V,de=(7+Qt(S,0,q).getUTCDay()-R)%7;return-de+q-1}function zn(S,R,V,q,de){var Oe=(7+V-q)%7,$e=Gn(S,q,de),Bt=1+7*(R-1)+Oe+$e,tr,Dr;return Bt<=0?(tr=S-1,Dr=Mr(tr)+Bt):Bt>Mr(S)?(tr=S+1,Dr=Bt-Mr(S)):(tr=S,Dr=Bt),{year:tr,dayOfYear:Dr}}function Ir(S,R,V){var q=Gn(S.year(),R,V),de=Math.floor((S.dayOfYear()-q-1)/7)+1,Oe,$e;return de<1?($e=S.year()-1,Oe=de+pn($e,R,V)):de>pn(S.year(),R,V)?(Oe=de-pn(S.year(),R,V),$e=S.year()+1):($e=S.year(),Oe=de),{week:Oe,year:$e}}function pn(S,R,V){var q=Gn(S,R,V),de=Gn(S+1,R,V);return(Mr(S)-q+de)/7}ze("w",["ww",2],"wo","week"),ze("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),vt("week",5),vt("isoWeek",5),yt("w",Me),yt("ww",Me,Xe),yt("W",Me),yt("WW",Me,Xe),gn(["w","ww","W","WW"],function(S,R,V,q){R[q.substr(0,1)]=nt(S)});function Or(S){return Ir(S,this._week.dow,this._week.doy).week}var Wi={dow:0,doy:6};function aa(){return this._week.dow}function Bn(){return this._week.doy}function ti(S){var R=this.localeData().week(this);return S==null?R:this.add((S-R)*7,"d")}function nn(S){var R=Ir(this,1,4).week;return S==null?R:this.add((S-R)*7,"d")}ze("d",0,"do","day"),ze("dd",0,0,function(S){return this.localeData().weekdaysMin(this,S)}),ze("ddd",0,0,function(S){return this.localeData().weekdaysShort(this,S)}),ze("dddd",0,0,function(S){return this.localeData().weekdays(this,S)}),ze("e",0,0,"weekday"),ze("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),vt("day",11),vt("weekday",11),vt("isoWeekday",11),yt("d",Me),yt("e",Me),yt("E",Me),yt("dd",function(S,R){return R.weekdaysMinRegex(S)}),yt("ddd",function(S,R){return R.weekdaysShortRegex(S)}),yt("dddd",function(S,R){return R.weekdaysRegex(S)}),gn(["dd","ddd","dddd"],function(S,R,V,q){var de=V._locale.weekdaysParse(S,q,V._strict);de!=null?R.d=de:l(V).invalidWeekday=S}),gn(["d","e","E"],function(S,R,V,q){R[q]=nt(S)});function Ti(S,R){return typeof S!="string"?S:isNaN(S)?(S=R.weekdaysParse(S),typeof S=="number"?S:null):parseInt(S,10)}function Sn(S,R){return typeof S=="string"?R.weekdaysParse(S)%7||7:isNaN(S)?null:S}function Yn(S,R){return S.slice(R,7).concat(S.slice(0,R))}var Mi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ri="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),hi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ri=En,ni=En,Xn=En;function jn(S,R){var V=m(this._weekdays)?this._weekdays:this._weekdays[S&&S!==!0&&this._weekdays.isFormat.test(R)?"format":"standalone"];return S===!0?Yn(V,this._week.dow):S?V[S.day()]:V}function ii(S){return S===!0?Yn(this._weekdaysShort,this._week.dow):S?this._weekdaysShort[S.day()]:this._weekdaysShort}function Ui(S){return S===!0?Yn(this._weekdaysMin,this._week.dow):S?this._weekdaysMin[S.day()]:this._weekdaysMin}function wa(S,R,V){var q,de,Oe,$e=S.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],q=0;q<7;++q)Oe=o([2e3,1]).day(q),this._minWeekdaysParse[q]=this.weekdaysMin(Oe,"").toLocaleLowerCase(),this._shortWeekdaysParse[q]=this.weekdaysShort(Oe,"").toLocaleLowerCase(),this._weekdaysParse[q]=this.weekdays(Oe,"").toLocaleLowerCase();return V?R==="dddd"?(de=Pt.call(this._weekdaysParse,$e),de!==-1?de:null):R==="ddd"?(de=Pt.call(this._shortWeekdaysParse,$e),de!==-1?de:null):(de=Pt.call(this._minWeekdaysParse,$e),de!==-1?de:null):R==="dddd"?(de=Pt.call(this._weekdaysParse,$e),de!==-1||(de=Pt.call(this._shortWeekdaysParse,$e),de!==-1)?de:(de=Pt.call(this._minWeekdaysParse,$e),de!==-1?de:null)):R==="ddd"?(de=Pt.call(this._shortWeekdaysParse,$e),de!==-1||(de=Pt.call(this._weekdaysParse,$e),de!==-1)?de:(de=Pt.call(this._minWeekdaysParse,$e),de!==-1?de:null)):(de=Pt.call(this._minWeekdaysParse,$e),de!==-1||(de=Pt.call(this._weekdaysParse,$e),de!==-1)?de:(de=Pt.call(this._shortWeekdaysParse,$e),de!==-1?de:null))}function _i(S,R,V){var q,de,Oe;if(this._weekdaysParseExact)return wa.call(this,S,R,V);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),q=0;q<7;q++){if(de=o([2e3,1]).day(q),V&&!this._fullWeekdaysParse[q]&&(this._fullWeekdaysParse[q]=new RegExp("^"+this.weekdays(de,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[q]=new RegExp("^"+this.weekdaysShort(de,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[q]=new RegExp("^"+this.weekdaysMin(de,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[q]||(Oe="^"+this.weekdays(de,"")+"|^"+this.weekdaysShort(de,"")+"|^"+this.weekdaysMin(de,""),this._weekdaysParse[q]=new RegExp(Oe.replace(".",""),"i")),V&&R==="dddd"&&this._fullWeekdaysParse[q].test(S))return q;if(V&&R==="ddd"&&this._shortWeekdaysParse[q].test(S))return q;if(V&&R==="dd"&&this._minWeekdaysParse[q].test(S))return q;if(!V&&this._weekdaysParse[q].test(S))return q}}function oa(S){if(!this.isValid())return S!=null?this:NaN;var R=this._isUTC?this._d.getUTCDay():this._d.getDay();return S!=null?(S=Ti(S,this.localeData()),this.add(S-R,"d")):R}function Ii(S){if(!this.isValid())return S!=null?this:NaN;var R=(this.day()+7-this.localeData()._week.dow)%7;return S==null?R:this.add(S-R,"d")}function pi(S){if(!this.isValid())return S!=null?this:NaN;if(S!=null){var R=Sn(S,this.localeData());return this.day(this.day()%7?R:R-7)}else return this.day()||7}function Oi(S){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Kr.call(this),S?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Ri),this._weekdaysStrictRegex&&S?this._weekdaysStrictRegex:this._weekdaysRegex)}function ai(S){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Kr.call(this),S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ni),this._weekdaysShortStrictRegex&&S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ki(S){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Kr.call(this),S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xn),this._weekdaysMinStrictRegex&&S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kr(){function S(Fn,ta){return ta.length-Fn.length}var R=[],V=[],q=[],de=[],Oe,$e,Bt,tr,Dr;for(Oe=0;Oe<7;Oe++)$e=o([2e3,1]).day(Oe),Bt=Wr(this.weekdaysMin($e,"")),tr=Wr(this.weekdaysShort($e,"")),Dr=Wr(this.weekdays($e,"")),R.push(Bt),V.push(tr),q.push(Dr),de.push(Bt),de.push(tr),de.push(Dr);R.sort(S),V.sort(S),q.sort(S),de.sort(S),this._weekdaysRegex=new RegExp("^("+de.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+R.join("|")+")","i")}function y(){return this.hours()%12||12}function _(){return this.hours()||24}ze("H",["HH",2],0,"hour"),ze("h",["hh",2],0,y),ze("k",["kk",2],0,_),ze("hmm",0,0,function(){return""+y.apply(this)+oe(this.minutes(),2)}),ze("hmmss",0,0,function(){return""+y.apply(this)+oe(this.minutes(),2)+oe(this.seconds(),2)}),ze("Hmm",0,0,function(){return""+this.hours()+oe(this.minutes(),2)}),ze("Hmmss",0,0,function(){return""+this.hours()+oe(this.minutes(),2)+oe(this.seconds(),2)});function L(S,R){ze(S,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),R)})}L("a",!0),L("A",!1),ne("hour","h"),vt("hour",13);function z(S,R){return R._meridiemParse}yt("a",z),yt("A",z),yt("H",Me),yt("h",Me),yt("k",Me),yt("HH",Me,Xe),yt("hh",Me,Xe),yt("kk",Me,Xe),yt("hmm",Ze),yt("hmmss",ot),yt("Hmm",Ze),yt("Hmmss",ot),qt(["H","HH"],kt),qt(["k","kk"],function(S,R,V){var q=nt(S);R[kt]=q===24?0:q}),qt(["a","A"],function(S,R,V){V._isPm=V._locale.isPM(S),V._meridiem=S}),qt(["h","hh"],function(S,R,V){R[kt]=nt(S),l(V).bigHour=!0}),qt("hmm",function(S,R,V){var q=S.length-2;R[kt]=nt(S.substr(0,q)),R[Ht]=nt(S.substr(q)),l(V).bigHour=!0}),qt("hmmss",function(S,R,V){var q=S.length-4,de=S.length-2;R[kt]=nt(S.substr(0,q)),R[Ht]=nt(S.substr(q,2)),R[er]=nt(S.substr(de)),l(V).bigHour=!0}),qt("Hmm",function(S,R,V){var q=S.length-2;R[kt]=nt(S.substr(0,q)),R[Ht]=nt(S.substr(q))}),qt("Hmmss",function(S,R,V){var q=S.length-4,de=S.length-2;R[kt]=nt(S.substr(0,q)),R[Ht]=nt(S.substr(q,2)),R[er]=nt(S.substr(de))});function J(S){return(S+"").toLowerCase().charAt(0)==="p"}var K=/[ap]\.?m?\.?/i,ae=te("Hours",!0);function se(S,R,V){return S>11?V?"pm":"PM":V?"am":"AM"}var le={calendar:pe,longDateFormat:Mt,invalidDate:Ot,ordinal:ct,dayOfMonthOrdinalParse:mt,relativeTime:Ue,months:Lr,monthsShort:rn,week:Wi,weekdays:Mi,weekdaysMin:hi,weekdaysShort:ri,meridiemParse:K},ve={},be={},Re;function ke(S,R){var V,q=Math.min(S.length,R.length);for(V=0;V<q;V+=1)if(S[V]!==R[V])return V;return q}function Be(S){return S&&S.toLowerCase().replace("_","-")}function Qe(S){for(var R=0,V,q,de,Oe;R<S.length;){for(Oe=Be(S[R]).split("-"),V=Oe.length,q=Be(S[R+1]),q=q?q.split("-"):null;V>0;){if(de=gt(Oe.slice(0,V).join("-")),de)return de;if(q&&q.length>=V&&ke(Oe,q)>=V-1)break;V--}R++}return Re}function pt(S){return S.match("^[^/\\\\]*$")!=null}function gt(S){var R=null,V;if(ve[S]===void 0&&H&&H.exports&&pt(S))try{R=Re._abbr,V=Hu,V("./locale/"+S),xt(R)}catch{ve[S]=null}return ve[S]}function xt(S,R){var V;return S&&(g(R)?V=Nt(S):V=Ge(S,R),V?Re=V:typeof console<"u"&&console.warn&&console.warn("Locale "+S+" not found. Did you forget to load it?")),Re._abbr}function Ge(S,R){if(R!==null){var V,q=le;if(R.abbr=S,ve[S]!=null)U("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),q=ve[S]._config;else if(R.parentLocale!=null)if(ve[R.parentLocale]!=null)q=ve[R.parentLocale]._config;else if(V=gt(R.parentLocale),V!=null)q=V._config;else return be[R.parentLocale]||(be[R.parentLocale]=[]),be[R.parentLocale].push({name:S,config:R}),null;return ve[S]=new ge(re(q,R)),be[S]&&be[S].forEach(function(de){Ge(de.name,de.config)}),xt(S),ve[S]}else return delete ve[S],null}function Xt(S,R){if(R!=null){var V,q,de=le;ve[S]!=null&&ve[S].parentLocale!=null?ve[S].set(re(ve[S]._config,R)):(q=gt(S),q!=null&&(de=q._config),R=re(de,R),q==null&&(R.abbr=S),V=new ge(R),V.parentLocale=ve[S],ve[S]=V),xt(S)}else ve[S]!=null&&(ve[S].parentLocale!=null?(ve[S]=ve[S].parentLocale,S===xt()&&xt(S)):ve[S]!=null&&delete ve[S]);return ve[S]}function Nt(S){var R;if(S&&S._locale&&S._locale._abbr&&(S=S._locale._abbr),!S)return Re;if(!m(S)){if(R=gt(S),R)return R;S=[S]}return Qe(S)}function gr(){return Ce(ve)}function Qr(S){var R,V=S._a;return V&&l(S).overflow===-2&&(R=V[ht]<0||V[ht]>11?ht:V[Tt]<1||V[Tt]>br(V[Ke],V[ht])?Tt:V[kt]<0||V[kt]>24||V[kt]===24&&(V[Ht]!==0||V[er]!==0||V[or]!==0)?kt:V[Ht]<0||V[Ht]>59?Ht:V[er]<0||V[er]>59?er:V[or]<0||V[or]>999?or:-1,l(S)._overflowDayOfYear&&(R<Ke||R>Tt)&&(R=Tt),l(S)._overflowWeeks&&R===-1&&(R=Vt),l(S)._overflowWeekday&&R===-1&&(R=vr),l(S).overflow=R),S}var an=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,on=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sn=/Z|[+-]\d\d(?::?\d\d)?/,Zr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ar=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_n=/^\/?Date\((-?\d+)/i,xn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,zt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Rr(S){var R,V,q=S._i,de=an.exec(q)||on.exec(q),Oe,$e,Bt,tr,Dr=Zr.length,Fn=Ar.length;if(de){for(l(S).iso=!0,R=0,V=Dr;R<V;R++)if(Zr[R][1].exec(de[1])){$e=Zr[R][0],Oe=Zr[R][2]!==!1;break}if($e==null){S._isValid=!1;return}if(de[3]){for(R=0,V=Fn;R<V;R++)if(Ar[R][1].exec(de[3])){Bt=(de[2]||" ")+Ar[R][0];break}if(Bt==null){S._isValid=!1;return}}if(!Oe&&Bt!=null){S._isValid=!1;return}if(de[4])if(sn.exec(de[4]))tr="Z";else{S._isValid=!1;return}S._f=$e+(Bt||"")+(tr||""),xr(S)}else S._isValid=!1}function Nr(S,R,V,q,de,Oe){var $e=[qr(S),rn.indexOf(R),parseInt(V,10),parseInt(q,10),parseInt(de,10)];return Oe&&$e.push(parseInt(Oe,10)),$e}function qr(S){var R=parseInt(S,10);return R<=49?2e3+R:R<=999?1900+R:R}function en(S){return S.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Fr(S,R,V){if(S){var q=ri.indexOf(S),de=new Date(R[0],R[1],R[2]).getDay();if(q!==de)return l(V).weekdayMismatch=!0,V._isValid=!1,!1}return!0}function Hr(S,R,V){if(S)return zt[S];if(R)return 0;var q=parseInt(V,10),de=q%100,Oe=(q-de)/100;return Oe*60+de}function vi(S){var R=xn.exec(en(S._i)),V;if(R){if(V=Nr(R[4],R[3],R[2],R[5],R[6],R[7]),!Fr(R[1],V,S))return;S._a=V,S._tzm=Hr(R[8],R[9],R[10]),S._d=Qt.apply(null,S._a),S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),l(S).rfc2822=!0}else S._isValid=!1}function In(S){var R=_n.exec(S._i);if(R!==null){S._d=new Date(+R[1]);return}if(Rr(S),S._isValid===!1)delete S._isValid;else return;if(vi(S),S._isValid===!1)delete S._isValid;else return;S._strict?S._isValid=!1:P.createFromInputFallback(S)}P.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(S){S._d=new Date(S._i+(S._useUTC?" UTC":""))});function On(S,R,V){return S??R??V}function oi(S){var R=new Date(P.now());return S._useUTC?[R.getUTCFullYear(),R.getUTCMonth(),R.getUTCDate()]:[R.getFullYear(),R.getMonth(),R.getDate()]}function Ai(S){var R,V,q=[],de,Oe,$e;if(!S._d){for(de=oi(S),S._w&&S._a[Tt]==null&&S._a[ht]==null&&dr(S),S._dayOfYear!=null&&($e=On(S._a[Ke],de[Ke]),(S._dayOfYear>Mr($e)||S._dayOfYear===0)&&(l(S)._overflowDayOfYear=!0),V=Qt($e,0,S._dayOfYear),S._a[ht]=V.getUTCMonth(),S._a[Tt]=V.getUTCDate()),R=0;R<3&&S._a[R]==null;++R)S._a[R]=q[R]=de[R];for(;R<7;R++)S._a[R]=q[R]=S._a[R]==null?R===2?1:0:S._a[R];S._a[kt]===24&&S._a[Ht]===0&&S._a[er]===0&&S._a[or]===0&&(S._nextDay=!0,S._a[kt]=0),S._d=(S._useUTC?Qt:Er).apply(null,q),Oe=S._useUTC?S._d.getUTCDay():S._d.getDay(),S._tzm!=null&&S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),S._nextDay&&(S._a[kt]=24),S._w&&typeof S._w.d<"u"&&S._w.d!==Oe&&(l(S).weekdayMismatch=!0)}}function dr(S){var R,V,q,de,Oe,$e,Bt,tr,Dr;R=S._w,R.GG!=null||R.W!=null||R.E!=null?(Oe=1,$e=4,V=On(R.GG,S._a[Ke],Ir(ir(),1,4).year),q=On(R.W,1),de=On(R.E,1),(de<1||de>7)&&(tr=!0)):(Oe=S._locale._week.dow,$e=S._locale._week.doy,Dr=Ir(ir(),Oe,$e),V=On(R.gg,S._a[Ke],Dr.year),q=On(R.w,Dr.week),R.d!=null?(de=R.d,(de<0||de>6)&&(tr=!0)):R.e!=null?(de=R.e+Oe,(R.e<0||R.e>6)&&(tr=!0)):de=Oe),q<1||q>pn(V,Oe,$e)?l(S)._overflowWeeks=!0:tr!=null?l(S)._overflowWeekday=!0:(Bt=zn(V,q,de,Oe,$e),S._a[Ke]=Bt.year,S._dayOfYear=Bt.dayOfYear)}P.ISO_8601=function(){},P.RFC_2822=function(){};function xr(S){if(S._f===P.ISO_8601){Rr(S);return}if(S._f===P.RFC_2822){vi(S);return}S._a=[],l(S).empty=!0;var R=""+S._i,V,q,de,Oe,$e,Bt=R.length,tr=0,Dr,Fn;for(de=Et(S._f,S._locale).match(me)||[],Fn=de.length,V=0;V<Fn;V++)Oe=de[V],q=(R.match($n(Oe,S))||[])[0],q&&($e=R.substr(0,R.indexOf(q)),$e.length>0&&l(S).unusedInput.push($e),R=R.slice(R.indexOf(q)+q.length),tr+=q.length),ft[Oe]?(q?l(S).empty=!1:l(S).unusedTokens.push(Oe),We(Oe,q,S)):S._strict&&!q&&l(S).unusedTokens.push(Oe);l(S).charsLeftOver=Bt-tr,R.length>0&&l(S).unusedInput.push(R),S._a[kt]<=12&&l(S).bigHour===!0&&S._a[kt]>0&&(l(S).bigHour=void 0),l(S).parsedDateParts=S._a.slice(0),l(S).meridiem=S._meridiem,S._a[kt]=yo(S._locale,S._a[kt],S._meridiem),Dr=l(S).era,Dr!==null&&(S._a[Ke]=S._locale.erasConvertYear(Dr,S._a[Ke])),Ai(S),Qr(S)}function yo(S,R,V){var q;return V==null?R:S.meridiemHour!=null?S.meridiemHour(R,V):(S.isPM!=null&&(q=S.isPM(V),q&&R<12&&(R+=12),!q&&R===12&&(R=0)),R)}function bo(S){var R,V,q,de,Oe,$e,Bt=!1,tr=S._f.length;if(tr===0){l(S).invalidFormat=!0,S._d=new Date(NaN);return}for(de=0;de<tr;de++)Oe=0,$e=!1,R=k({},S),S._useUTC!=null&&(R._useUTC=S._useUTC),R._f=S._f[de],xr(R),d(R)&&($e=!0),Oe+=l(R).charsLeftOver,Oe+=l(R).unusedTokens.length*10,l(R).score=Oe,Bt?Oe<q&&(q=Oe,V=R):(q==null||Oe<q||$e)&&(q=Oe,V=R,$e&&(Bt=!0));u(S,V||R)}function Ea(S){if(!S._d){var R=tt(S._i),V=R.day===void 0?R.date:R.day;S._a=i([R.year,R.month,V,R.hour,R.minute,R.second,R.millisecond],function(q){return q&&parseInt(q,10)}),Ai(S)}}function sa(S){var R=new j(Qr(Kn(S)));return R._nextDay&&(R.add(1,"d"),R._nextDay=void 0),R}function Kn(S){var R=S._i,V=S._f;return S._locale=S._locale||Nt(S._l),R===null||V===void 0&&R===""?h({nullInput:!0}):(typeof R=="string"&&(S._i=R=S._locale.preparse(R)),G(R)?new j(Qr(R)):(n(R)?S._d=R:m(V)?bo(S):V?xr(S):Sa(S),d(S)||(S._d=null),S))}function Sa(S){var R=S._i;g(R)?S._d=new Date(P.now()):n(R)?S._d=new Date(R.valueOf()):typeof R=="string"?In(S):m(R)?(S._a=i(R.slice(0),function(V){return parseInt(V,10)}),Ai(S)):t(R)?Ea(S):E(R)?S._d=new Date(R):P.createFromInputFallback(S)}function Vi(S,R,V,q,de){var Oe={};return(R===!0||R===!1)&&(q=R,R=void 0),(V===!0||V===!1)&&(q=V,V=void 0),(t(S)&&w(S)||m(S)&&S.length===0)&&(S=void 0),Oe._isAMomentObject=!0,Oe._useUTC=Oe._isUTC=de,Oe._l=V,Oe._i=S,Oe._f=R,Oe._strict=q,sa(Oe)}function ir(S,R,V,q){return Vi(S,R,V,q,!1)}var ja=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var S=ir.apply(null,arguments);return this.isValid()&&S.isValid()?S<this?this:S:h()}),xa=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var S=ir.apply(null,arguments);return this.isValid()&&S.isValid()?S>this?this:S:h()});function Ca(S,R){var V,q;if(R.length===1&&m(R[0])&&(R=R[0]),!R.length)return ir();for(V=R[0],q=1;q<R.length;++q)(!R[q].isValid()||R[q][S](V))&&(V=R[q]);return V}function si(){var S=[].slice.call(arguments,0);return Ca("isBefore",S)}function Yt(){var S=[].slice.call(arguments,0);return Ca("isAfter",S)}var Gi=function(){return Date.now?Date.now():+new Date},ln=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pi(S){var R,V=!1,q,de=ln.length;for(R in S)if(p(S,R)&&!(Pt.call(ln,R)!==-1&&(S[R]==null||!isNaN(S[R]))))return!1;for(q=0;q<de;++q)if(S[ln[q]]){if(V)return!1;parseFloat(S[ln[q]])!==nt(S[ln[q]])&&(V=!0)}return!0}function wo(){return this._isValid}function Da(){return kn(NaN)}function Cn(S){var R=tt(S),V=R.year||0,q=R.quarter||0,de=R.month||0,Oe=R.week||R.isoWeek||0,$e=R.day||0,Bt=R.hour||0,tr=R.minute||0,Dr=R.second||0,Fn=R.millisecond||0;this._isValid=Pi(R),this._milliseconds=+Fn+Dr*1e3+tr*6e4+Bt*1e3*60*60,this._days=+$e+Oe*7,this._months=+de+q*3+V*12,this._data={},this._locale=Nt(),this._bubble()}function Dn(S){return S instanceof Cn}function gi(S){return S<0?Math.round(-1*S)*-1:Math.round(S)}function mi(S,R,V){var q=Math.min(S.length,R.length),de=Math.abs(S.length-R.length),Oe=0,$e;for($e=0;$e<q;$e++)nt(S[$e])!==nt(R[$e])&&Oe++;return Oe+de}function yi(S,R){ze(S,0,0,function(){var V=this.utcOffset(),q="+";return V<0&&(V=-V,q="-"),q+oe(~~(V/60),2)+R+oe(~~V%60,2)})}yi("Z",":"),yi("ZZ",""),yt("Z",Sr),yt("ZZ",Sr),qt(["Z","ZZ"],function(S,R,V){V._useUTC=!0,V._tzm=Ta(Sr,S)});var Eo=/([\+\-]|\d\d)/gi;function Ta(S,R){var V=(R||"").match(S),q,de,Oe;return V===null?null:(q=V[V.length-1]||[],de=(q+"").match(Eo)||["-",0,0],Oe=+(de[1]*60)+nt(de[2]),Oe===0?0:de[0]==="+"?Oe:-Oe)}function Ma(S,R){var V,q;return R._isUTC?(V=R.clone(),q=(G(S)||n(S)?S.valueOf():ir(S).valueOf())-V.valueOf(),V._d.setTime(V._d.valueOf()+q),P.updateOffset(V,!1),V):ir(S).local()}function Qn(S){return-Math.round(S._d.getTimezoneOffset())}P.updateOffset=function(){};function Wn(S,R,V){var q=this._offset||0,de;if(!this.isValid())return S!=null?this:NaN;if(S!=null){if(typeof S=="string"){if(S=Ta(Sr,S),S===null)return this}else Math.abs(S)<16&&!V&&(S=S*60);return!this._isUTC&&R&&(de=Qn(this)),this._offset=S,this._isUTC=!0,de!=null&&this.add(de,"m"),q!==S&&(!R||this._changeInProgress?Xi(this,kn(S-q,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,P.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?q:Qn(this)}function Ra(S,R){return S!=null?(typeof S!="string"&&(S=-S),this.utcOffset(S,R),this):-this.utcOffset()}function Yi(S){return this.utcOffset(0,S)}function yn(S){return this._isUTC&&(this.utcOffset(0,S),this._isUTC=!1,S&&this.subtract(Qn(this),"m")),this}function _a(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var S=Ta(Tr,this._i);S!=null?this.utcOffset(S):this.utcOffset(0,!0)}return this}function Wa(S){return this.isValid()?(S=S?ir(S).utcOffset():0,(this.utcOffset()-S)%60===0):!1}function So(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xo(){if(!g(this._isDSTShifted))return this._isDSTShifted;var S={},R;return k(S,this),S=Kn(S),S._a?(R=S._isUTC?o(S._a):ir(S._a),this._isDSTShifted=this.isValid()&&mi(S._a,R.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Co(){return this.isValid()?!this._isUTC:!1}function la(){return this.isValid()?this._isUTC:!1}function ua(){return this.isValid()?this._isUTC&&this._offset===0:!1}var vn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ia=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kn(S,R){var V=S,q=null,de,Oe,$e;return Dn(S)?V={ms:S._milliseconds,d:S._days,M:S._months}:E(S)||!isNaN(+S)?(V={},R?V[R]=+S:V.milliseconds=+S):(q=vn.exec(S))?(de=q[1]==="-"?-1:1,V={y:0,d:nt(q[Tt])*de,h:nt(q[kt])*de,m:nt(q[Ht])*de,s:nt(q[er])*de,ms:nt(gi(q[or]*1e3))*de}):(q=Ia.exec(S))?(de=q[1]==="-"?-1:1,V={y:An(q[2],de),M:An(q[3],de),w:An(q[4],de),d:An(q[5],de),h:An(q[6],de),m:An(q[7],de),s:An(q[8],de)}):V==null?V={}:typeof V=="object"&&("from"in V||"to"in V)&&($e=Do(ir(V.from),ir(V.to)),V={},V.ms=$e.milliseconds,V.M=$e.months),Oe=new Cn(V),Dn(S)&&p(S,"_locale")&&(Oe._locale=S._locale),Dn(S)&&p(S,"_isValid")&&(Oe._isValid=S._isValid),Oe}kn.fn=Cn.prototype,kn.invalid=Da;function An(S,R){var V=S&&parseFloat(S.replace(",","."));return(isNaN(V)?0:V)*R}function li(S,R){var V={};return V.months=R.month()-S.month()+(R.year()-S.year())*12,S.clone().add(V.months,"M").isAfter(R)&&--V.months,V.milliseconds=+R-+S.clone().add(V.months,"M"),V}function Do(S,R){var V;return S.isValid()&&R.isValid()?(R=Ma(R,S),S.isBefore(R)?V=li(S,R):(V=li(R,S),V.milliseconds=-V.milliseconds,V.months=-V.months),V):{milliseconds:0,months:0}}function Pn(S,R){return function(V,q){var de,Oe;return q!==null&&!isNaN(+q)&&(U(R,"moment()."+R+"(period, number) is deprecated. Please use moment()."+R+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Oe=V,V=q,q=Oe),de=kn(V,q),Xi(this,de,S),this}}function Xi(S,R,V,q){var de=R._milliseconds,Oe=gi(R._days),$e=gi(R._months);S.isValid()&&(q=q??!0,$e&&ji(S,he(S,"Month")+$e*V),Oe&&xe(S,"Date",he(S,"Date")+Oe*V),de&&S._d.setTime(S._d.valueOf()+de*V),q&&P.updateOffset(S,Oe||$e))}var da=Pn(1,"add"),To=Pn(-1,"subtract");function Ua(S){return typeof S=="string"||S instanceof String}function bi(S){return G(S)||n(S)||Ua(S)||E(S)||Ro(S)||Mo(S)||S===null||S===void 0}function Mo(S){var R=t(S)&&!w(S),V=!1,q=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],de,Oe,$e=q.length;for(de=0;de<$e;de+=1)Oe=q[de],V=V||p(S,Oe);return R&&V}function Ro(S){var R=m(S),V=!1;return R&&(V=S.filter(function(q){return!E(q)&&Ua(S)}).length===0),R&&V}function _o(S){var R=t(S)&&!w(S),V=!1,q=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],de,Oe;for(de=0;de<q.length;de+=1)Oe=q[de],V=V||p(S,Oe);return R&&V}function Va(S,R){var V=S.diff(R,"days",!0);return V<-6?"sameElse":V<-1?"lastWeek":V<0?"lastDay":V<1?"sameDay":V<2?"nextDay":V<7?"nextWeek":"sameElse"}function Ga(S,R){arguments.length===1&&(arguments[0]?bi(arguments[0])?(S=arguments[0],R=void 0):_o(arguments[0])&&(R=arguments[0],S=void 0):(S=void 0,R=void 0));var V=S||ir(),q=Ma(V,this).startOf("day"),de=P.calendarFormat(this,q)||"sameElse",Oe=R&&(X(R[de])?R[de].call(this,V):R[de]);return this.format(Oe||this.localeData().calendar(de,this,ir(V)))}function Oa(){return new j(this)}function un(S,R){var V=G(S)?S:ir(S);return this.isValid()&&V.isValid()?(R=_e(R)||"millisecond",R==="millisecond"?this.valueOf()>V.valueOf():V.valueOf()<this.clone().startOf(R).valueOf()):!1}function ka(S,R){var V=G(S)?S:ir(S);return this.isValid()&&V.isValid()?(R=_e(R)||"millisecond",R==="millisecond"?this.valueOf()<V.valueOf():this.clone().endOf(R).valueOf()<V.valueOf()):!1}function Io(S,R,V,q){var de=G(S)?S:ir(S),Oe=G(R)?R:ir(R);return this.isValid()&&de.isValid()&&Oe.isValid()?(q=q||"()",(q[0]==="("?this.isAfter(de,V):!this.isBefore(de,V))&&(q[1]===")"?this.isBefore(Oe,V):!this.isAfter(Oe,V))):!1}function Ki(S,R){var V=G(S)?S:ir(S),q;return this.isValid()&&V.isValid()?(R=_e(R)||"millisecond",R==="millisecond"?this.valueOf()===V.valueOf():(q=V.valueOf(),this.clone().startOf(R).valueOf()<=q&&q<=this.clone().endOf(R).valueOf())):!1}function Ya(S,R){return this.isSame(S,R)||this.isAfter(S,R)}function Oo(S,R){return this.isSame(S,R)||this.isBefore(S,R)}function ca(S,R,V){var q,de,Oe;if(!this.isValid())return NaN;if(q=Ma(S,this),!q.isValid())return NaN;switch(de=(q.utcOffset()-this.utcOffset())*6e4,R=_e(R),R){case"year":Oe=wi(this,q)/12;break;case"month":Oe=wi(this,q);break;case"quarter":Oe=wi(this,q)/3;break;case"second":Oe=(this-q)/1e3;break;case"minute":Oe=(this-q)/6e4;break;case"hour":Oe=(this-q)/36e5;break;case"day":Oe=(this-q-de)/864e5;break;case"week":Oe=(this-q-de)/6048e5;break;default:Oe=this-q}return V?Oe:dt(Oe)}function wi(S,R){if(S.date()<R.date())return-wi(R,S);var V=(R.year()-S.year())*12+(R.month()-S.month()),q=S.clone().add(V,"months"),de,Oe;return R-q<0?(de=S.clone().add(V-1,"months"),Oe=(R-q)/(q-de)):(de=S.clone().add(V+1,"months"),Oe=(R-q)/(de-q)),-(V+Oe)||0}P.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",P.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Xa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qi(S){if(!this.isValid())return null;var R=S!==!0,V=R?this.clone().utc():this;return V.year()<0||V.year()>9999?Le(V,R?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):X(Date.prototype.toISOString)?R?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Le(V,"Z")):Le(V,R?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var S="moment",R="",V,q,de,Oe;return this.isLocal()||(S=this.utcOffset()===0?"moment.utc":"moment.parseZone",R="Z"),V="["+S+'("]',q=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",de="-MM-DD[T]HH:mm:ss.SSS",Oe=R+'[")]',this.format(V+q+de+Oe)}function ko(S){S||(S=this.isUtc()?P.defaultFormatUtc:P.defaultFormat);var R=Le(this,S);return this.localeData().postformat(R)}function Zi(S,R){return this.isValid()&&(G(S)&&S.isValid()||ir(S).isValid())?kn({to:this,from:S}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()}function Ji(S){return this.from(ir(),S)}function Ao(S,R){return this.isValid()&&(G(S)&&S.isValid()||ir(S).isValid())?kn({from:this,to:S}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()}function Po(S){return this.to(ir(),S)}function Ka(S){var R;return S===void 0?this._locale._abbr:(R=Nt(S),R!=null&&(this._locale=R),this)}var Li=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(S){return S===void 0?this.localeData():this.locale(S)});function Qa(){return this._locale}var ui=1e3,di=60*ui,fa=60*di,ha=(365*400+97)*24*fa;function Si(S,R){return(S%R+R)%R}function Za(S,R,V){return S<100&&S>=0?new Date(S+400,R,V)-ha:new Date(S,R,V).valueOf()}function Aa(S,R,V){return S<100&&S>=0?Date.UTC(S+400,R,V)-ha:Date.UTC(S,R,V)}function Pa(S){var R,V;if(S=_e(S),S===void 0||S==="millisecond"||!this.isValid())return this;switch(V=this._isUTC?Aa:Za,S){case"year":R=V(this.year(),0,1);break;case"quarter":R=V(this.year(),this.month()-this.month()%3,1);break;case"month":R=V(this.year(),this.month(),1);break;case"week":R=V(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":R=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":R=V(this.year(),this.month(),this.date());break;case"hour":R=this._d.valueOf(),R-=Si(R+(this._isUTC?0:this.utcOffset()*di),fa);break;case"minute":R=this._d.valueOf(),R-=Si(R,di);break;case"second":R=this._d.valueOf(),R-=Si(R,ui);break}return this._d.setTime(R),P.updateOffset(this,!0),this}function pa(S){var R,V;if(S=_e(S),S===void 0||S==="millisecond"||!this.isValid())return this;switch(V=this._isUTC?Aa:Za,S){case"year":R=V(this.year()+1,0,1)-1;break;case"quarter":R=V(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":R=V(this.year(),this.month()+1,1)-1;break;case"week":R=V(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":R=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":R=V(this.year(),this.month(),this.date()+1)-1;break;case"hour":R=this._d.valueOf(),R+=fa-Si(R+(this._isUTC?0:this.utcOffset()*di),fa)-1;break;case"minute":R=this._d.valueOf(),R+=di-Si(R,di)-1;break;case"second":R=this._d.valueOf(),R+=ui-Si(R,ui)-1;break}return this._d.setTime(R),P.updateOffset(this,!0),this}function dn(){return this._d.valueOf()-(this._offset||0)*6e4}function La(){return Math.floor(this.valueOf()/1e3)}function Lo(){return new Date(this.valueOf())}function Ja(){var S=this;return[S.year(),S.month(),S.date(),S.hour(),S.minute(),S.second(),S.millisecond()]}function $a(){var S=this;return{years:S.year(),months:S.month(),date:S.date(),hours:S.hours(),minutes:S.minutes(),seconds:S.seconds(),milliseconds:S.milliseconds()}}function $i(){return this.isValid()?this.toISOString():null}function Ni(){return d(this)}function Fi(){return u({},l(this))}function Hi(){return l(this).overflow}function Ln(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ze("N",0,0,"eraAbbr"),ze("NN",0,0,"eraAbbr"),ze("NNN",0,0,"eraAbbr"),ze("NNNN",0,0,"eraName"),ze("NNNNN",0,0,"eraNarrow"),ze("y",["y",1],"yo","eraYear"),ze("y",["yy",2],0,"eraYear"),ze("y",["yyy",3],0,"eraYear"),ze("y",["yyyy",4],0,"eraYear"),yt("N",Na),yt("NN",Na),yt("NNN",Na),yt("NNNN",ao),yt("NNNNN",zo),qt(["N","NN","NNN","NNNN","NNNNN"],function(S,R,V,q){var de=V._locale.erasParse(S,q,V._strict);de?l(V).era=de:l(V).invalidEra=S}),yt("y",pr),yt("yy",pr),yt("yyy",pr),yt("yyyy",pr),yt("yo",va),qt(["y","yy","yyy","yyyy"],Ke),qt(["yo"],function(S,R,V,q){var de;V._locale._eraYearOrdinalRegex&&(de=S.match(V._locale._eraYearOrdinalRegex)),V._locale.eraYearOrdinalParse?R[Ke]=V._locale.eraYearOrdinalParse(S,de):R[Ke]=parseInt(S,10)});function qa(S,R){var V,q,de,Oe=this._eras||Nt("en")._eras;for(V=0,q=Oe.length;V<q;++V){switch(typeof Oe[V].since){case"string":de=P(Oe[V].since).startOf("day"),Oe[V].since=de.valueOf();break}switch(typeof Oe[V].until){case"undefined":Oe[V].until=1/0;break;case"string":de=P(Oe[V].until).startOf("day").valueOf(),Oe[V].until=de.valueOf();break}}return Oe}function No(S,R,V){var q,de,Oe=this.eras(),$e,Bt,tr;for(S=S.toUpperCase(),q=0,de=Oe.length;q<de;++q)if($e=Oe[q].name.toUpperCase(),Bt=Oe[q].abbr.toUpperCase(),tr=Oe[q].narrow.toUpperCase(),V)switch(R){case"N":case"NN":case"NNN":if(Bt===S)return Oe[q];break;case"NNNN":if($e===S)return Oe[q];break;case"NNNNN":if(tr===S)return Oe[q];break}else if([$e,Bt,tr].indexOf(S)>=0)return Oe[q]}function eo(S,R){var V=S.since<=S.until?1:-1;return R===void 0?P(S.since).year():P(S.since).year()+(R-S.offset)*V}function qi(){var S,R,V,q=this.localeData().eras();for(S=0,R=q.length;S<R;++S)if(V=this.clone().startOf("day").valueOf(),q[S].since<=V&&V<=q[S].until||q[S].until<=V&&V<=q[S].since)return q[S].name;return""}function to(){var S,R,V,q=this.localeData().eras();for(S=0,R=q.length;S<R;++S)if(V=this.clone().startOf("day").valueOf(),q[S].since<=V&&V<=q[S].until||q[S].until<=V&&V<=q[S].since)return q[S].narrow;return""}function ro(){var S,R,V,q=this.localeData().eras();for(S=0,R=q.length;S<R;++S)if(V=this.clone().startOf("day").valueOf(),q[S].since<=V&&V<=q[S].until||q[S].until<=V&&V<=q[S].since)return q[S].abbr;return""}function no(){var S,R,V,q,de=this.localeData().eras();for(S=0,R=de.length;S<R;++S)if(V=de[S].since<=de[S].until?1:-1,q=this.clone().startOf("day").valueOf(),de[S].since<=q&&q<=de[S].until||de[S].until<=q&&q<=de[S].since)return(this.year()-P(de[S].since).year())*V+de[S].offset;return this.year()}function Fo(S){return p(this,"_erasNameRegex")||je.call(this),S?this._erasNameRegex:this._erasRegex}function io(S){return p(this,"_erasAbbrRegex")||je.call(this),S?this._erasAbbrRegex:this._erasRegex}function Ho(S){return p(this,"_erasNarrowRegex")||je.call(this),S?this._erasNarrowRegex:this._erasRegex}function Na(S,R){return R.erasAbbrRegex(S)}function ao(S,R){return R.erasNameRegex(S)}function zo(S,R){return R.erasNarrowRegex(S)}function va(S,R){return R._eraYearOrdinalRegex||pr}function je(){var S=[],R=[],V=[],q=[],de,Oe,$e=this.eras();for(de=0,Oe=$e.length;de<Oe;++de)R.push(Wr($e[de].name)),S.push(Wr($e[de].abbr)),V.push(Wr($e[de].narrow)),q.push(Wr($e[de].name)),q.push(Wr($e[de].abbr)),q.push(Wr($e[de].narrow));this._erasRegex=new RegExp("^("+q.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+R.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+S.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+V.join("|")+")","i")}ze(0,["gg",2],0,function(){return this.weekYear()%100}),ze(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Te(S,R){ze(0,[S,S.length],0,R)}Te("gggg","weekYear"),Te("ggggg","weekYear"),Te("GGGG","isoWeekYear"),Te("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),vt("weekYear",1),vt("isoWeekYear",1),yt("G",lr),yt("g",lr),yt("GG",Me,Xe),yt("gg",Me,Xe),yt("GGGG",Ut,ce),yt("gggg",Ut,ce),yt("GGGGG",nr,we),yt("ggggg",nr,we),gn(["gggg","ggggg","GGGG","GGGGG"],function(S,R,V,q){R[q.substr(0,2)]=nt(S)}),gn(["gg","GG"],function(S,R,V,q){R[q]=P.parseTwoDigitYear(S)});function Se(S){return lt.call(this,S,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Y(S){return lt.call(this,S,this.isoWeek(),this.isoWeekday(),1,4)}function ue(){return pn(this.year(),1,4)}function ye(){return pn(this.isoWeekYear(),1,4)}function Ve(){var S=this.localeData()._week;return pn(this.year(),S.dow,S.doy)}function Je(){var S=this.localeData()._week;return pn(this.weekYear(),S.dow,S.doy)}function lt(S,R,V,q,de){var Oe;return S==null?Ir(this,q,de).year:(Oe=pn(S,q,de),R>Oe&&(R=Oe),jt.call(this,S,R,V,q,de))}function jt(S,R,V,q,de){var Oe=zn(S,R,V,q,de),$e=Qt(Oe.year,0,Oe.dayOfYear);return this.year($e.getUTCFullYear()),this.month($e.getUTCMonth()),this.date($e.getUTCDate()),this}ze("Q",0,"Qo","quarter"),ne("quarter","Q"),vt("quarter",7),yt("Q",Ye),qt("Q",function(S,R){R[ht]=(nt(S)-1)*3});function Jt(S){return S==null?Math.ceil((this.month()+1)/3):this.month((S-1)*3+this.month()%3)}ze("D",["DD",2],"Do","date"),ne("date","D"),vt("date",9),yt("D",Me),yt("DD",Me,Xe),yt("Do",function(S,R){return S?R._dayOfMonthOrdinalParse||R._ordinalParse:R._dayOfMonthOrdinalParseLenient}),qt(["D","DD"],Tt),qt("Do",function(S,R){R[Tt]=nt(S.match(Me)[0])});var $t=te("Date",!0);ze("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),vt("dayOfYear",4),yt("DDD",_t),yt("DDDD",st),qt(["DDD","DDDD"],function(S,R,V){V._dayOfYear=nt(S)});function zr(S){var R=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return S==null?R:this.add(S-R,"d")}ze("m",["mm",2],0,"minute"),ne("minute","m"),vt("minute",14),yt("m",Me),yt("mm",Me,Xe),qt(["m","mm"],Ht);var Nn=te("Minutes",!1);ze("s",["ss",2],0,"second"),ne("second","s"),vt("second",15),yt("s",Me),yt("ss",Me,Xe),qt(["s","ss"],er);var Tn=te("Seconds",!1);ze("S",0,0,function(){return~~(this.millisecond()/100)}),ze(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ze(0,["SSS",3],0,"millisecond"),ze(0,["SSSS",4],0,function(){return this.millisecond()*10}),ze(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ze(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ze(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ze(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ze(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ne("millisecond","ms"),vt("millisecond",16),yt("S",_t,Ye),yt("SS",_t,Xe),yt("SSS",_t,st);var bn,Mn;for(bn="SSSS";bn.length<=9;bn+="S")yt(bn,pr);function oo(S,R){R[or]=nt(("0."+S)*1e3)}for(bn="S";bn.length<=9;bn+="S")qt(bn,oo);Mn=te("Milliseconds",!1),ze("z",0,0,"zoneAbbr"),ze("zz",0,0,"zoneName");function Fa(){return this._isUTC?"UTC":""}function rs(){return this._isUTC?"Coordinated Universal Time":""}var ut=j.prototype;ut.add=da,ut.calendar=Ga,ut.clone=Oa,ut.diff=ca,ut.endOf=pa,ut.format=ko,ut.from=Zi,ut.fromNow=Ji,ut.to=Ao,ut.toNow=Po,ut.get=He,ut.invalidAt=Hi,ut.isAfter=un,ut.isBefore=ka,ut.isBetween=Io,ut.isSame=Ki,ut.isSameOrAfter=Ya,ut.isSameOrBefore=Oo,ut.isValid=Ni,ut.lang=Li,ut.locale=Ka,ut.localeData=Qa,ut.max=xa,ut.min=ja,ut.parsingFlags=Fi,ut.set=Ae,ut.startOf=Pa,ut.subtract=To,ut.toArray=Ja,ut.toObject=$a,ut.toDate=Lo,ut.toISOString=Qi,ut.inspect=Ei,typeof Symbol<"u"&&Symbol.for!=null&&(ut[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ut.toJSON=$i,ut.toString=Xa,ut.unix=La,ut.valueOf=dn,ut.creationData=Ln,ut.eraName=qi,ut.eraNarrow=to,ut.eraAbbr=ro,ut.eraYear=no,ut.year=Di,ut.isLeapYear=Xr,ut.weekYear=Se,ut.isoWeekYear=Y,ut.quarter=ut.quarters=Jt,ut.month=Vn,ut.daysInMonth=ei,ut.week=ut.weeks=ti,ut.isoWeek=ut.isoWeeks=nn,ut.weeksInYear=Ve,ut.weeksInWeekYear=Je,ut.isoWeeksInYear=ue,ut.isoWeeksInISOWeekYear=ye,ut.date=$t,ut.day=ut.days=oa,ut.weekday=Ii,ut.isoWeekday=pi,ut.dayOfYear=zr,ut.hour=ut.hours=ae,ut.minute=ut.minutes=Nn,ut.second=ut.seconds=Tn,ut.millisecond=ut.milliseconds=Mn,ut.utcOffset=Wn,ut.utc=Yi,ut.local=yn,ut.parseZone=_a,ut.hasAlignedHourOffset=Wa,ut.isDST=So,ut.isLocal=Co,ut.isUtcOffset=la,ut.isUtc=ua,ut.isUTC=ua,ut.zoneAbbr=Fa,ut.zoneName=rs,ut.dates=T("dates accessor is deprecated. Use date instead.",$t),ut.months=T("months accessor is deprecated. Use month instead",Vn),ut.years=T("years accessor is deprecated. Use year instead",Di),ut.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ra),ut.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xo);function ns(S){return ir(S*1e3)}function is(){return ir.apply(null,arguments).parseZone()}function Xo(S){return S}var cr=ge.prototype;cr.calendar=ie,cr.longDateFormat=at,cr.invalidDate=Ne,cr.ordinal=Ct,cr.preparse=Xo,cr.postformat=Xo,cr.relativeTime=qe,cr.pastFuture=Ft,cr.set=Q,cr.eras=qa,cr.erasParse=No,cr.erasConvertYear=eo,cr.erasAbbrRegex=io,cr.erasNameRegex=Fo,cr.erasNarrowRegex=Ho,cr.months=ia,cr.monthsShort=Bi,cr.monthsParse=qn,cr.monthsRegex=hn,cr.monthsShortRegex=mn,cr.week=Or,cr.firstDayOfYear=Bn,cr.firstDayOfWeek=aa,cr.weekdays=jn,cr.weekdaysMin=Ui,cr.weekdaysShort=ii,cr.weekdaysParse=_i,cr.weekdaysRegex=Oi,cr.weekdaysShortRegex=ai,cr.weekdaysMinRegex=ki,cr.isPM=J,cr.meridiem=se;function so(S,R,V,q){var de=Nt(),Oe=o().set(q,R);return de[V](Oe,S)}function e(S,R,V){if(E(S)&&(R=S,S=void 0),S=S||"",R!=null)return so(S,R,V,"month");var q,de=[];for(q=0;q<12;q++)de[q]=so(S,q,V,"month");return de}function r(S,R,V,q){typeof S=="boolean"?(E(R)&&(V=R,R=void 0),R=R||""):(R=S,V=R,S=!1,E(R)&&(V=R,R=void 0),R=R||"");var de=Nt(),Oe=S?de._week.dow:0,$e,Bt=[];if(V!=null)return so(R,(V+Oe)%7,q,"day");for($e=0;$e<7;$e++)Bt[$e]=so(R,($e+Oe)%7,q,"day");return Bt}function s(S,R){return e(S,R,"months")}function f(S,R){return e(S,R,"monthsShort")}function x(S,R,V){return r(S,R,V,"weekdays")}function D(S,R,V){return r(S,R,V,"weekdaysShort")}function I(S,R,V){return r(S,R,V,"weekdaysMin")}xt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(S){var R=S%10,V=nt(S%100/10)===1?"th":R===1?"st":R===2?"nd":R===3?"rd":"th";return S+V}}),P.lang=T("moment.lang is deprecated. Use moment.locale instead.",xt),P.langData=T("moment.langData is deprecated. Use moment.localeData instead.",Nt);var F=Math.abs;function O(){var S=this._data;return this._milliseconds=F(this._milliseconds),this._days=F(this._days),this._months=F(this._months),S.milliseconds=F(S.milliseconds),S.seconds=F(S.seconds),S.minutes=F(S.minutes),S.hours=F(S.hours),S.months=F(S.months),S.years=F(S.years),this}function W(S,R,V,q){var de=kn(R,V);return S._milliseconds+=q*de._milliseconds,S._days+=q*de._days,S._months+=q*de._months,S._bubble()}function Z(S,R){return W(this,S,R,1)}function ee(S,R){return W(this,S,R,-1)}function fe(S){return S<0?Math.floor(S):Math.ceil(S)}function Ee(){var S=this._milliseconds,R=this._days,V=this._months,q=this._data,de,Oe,$e,Bt,tr;return S>=0&&R>=0&&V>=0||S<=0&&R<=0&&V<=0||(S+=fe(Ie(V)+R)*864e5,R=0,V=0),q.milliseconds=S%1e3,de=dt(S/1e3),q.seconds=de%60,Oe=dt(de/60),q.minutes=Oe%60,$e=dt(Oe/60),q.hours=$e%24,R+=dt($e/24),tr=dt(De(R)),V+=tr,R-=fe(Ie(tr)),Bt=dt(V/12),V%=12,q.days=R,q.months=V,q.years=Bt,this}function De(S){return S*4800/146097}function Ie(S){return S*146097/4800}function Pe(S){if(!this.isValid())return NaN;var R,V,q=this._milliseconds;if(S=_e(S),S==="month"||S==="quarter"||S==="year")switch(R=this._days+q/864e5,V=this._months+De(R),S){case"month":return V;case"quarter":return V/3;case"year":return V/12}else switch(R=this._days+Math.round(Ie(this._months)),S){case"week":return R/7+q/6048e5;case"day":return R+q/864e5;case"hour":return R*24+q/36e5;case"minute":return R*1440+q/6e4;case"second":return R*86400+q/1e3;case"millisecond":return Math.floor(R*864e5)+q;default:throw new Error("Unknown unit "+S)}}function rt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+nt(this._months/12)*31536e6:NaN}function wt(S){return function(){return this.as(S)}}var It=wt("ms"),Zt=wt("s"),Kt=wt("m"),fr=wt("h"),ur=wt("d"),wr=wt("w"),Cr=wt("M"),tn=wt("Q"),Jr=wt("y");function Vr(){return kn(this)}function cn(S){return S=_e(S),this.isValid()?this[S+"s"]():NaN}function Un(S){return function(){return this.isValid()?this._data[S]:NaN}}var ga=Un("milliseconds"),Bo=Un("seconds"),as=Un("minutes"),Pl=Un("hours"),Ll=Un("days"),Nl=Un("months"),Fl=Un("years");function Hl(){return dt(this.days()/7)}var ea=Math.round,lo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function zl(S,R,V,q,de){return de.relativeTime(R||1,!!V,S,q)}function Bl(S,R,V,q){var de=kn(S).abs(),Oe=ea(de.as("s")),$e=ea(de.as("m")),Bt=ea(de.as("h")),tr=ea(de.as("d")),Dr=ea(de.as("M")),Fn=ea(de.as("w")),ta=ea(de.as("y")),ma=Oe<=V.ss&&["s",Oe]||Oe<V.s&&["ss",Oe]||$e<=1&&["m"]||$e<V.m&&["mm",$e]||Bt<=1&&["h"]||Bt<V.h&&["hh",Bt]||tr<=1&&["d"]||tr<V.d&&["dd",tr];return V.w!=null&&(ma=ma||Fn<=1&&["w"]||Fn<V.w&&["ww",Fn]),ma=ma||Dr<=1&&["M"]||Dr<V.M&&["MM",Dr]||ta<=1&&["y"]||["yy",ta],ma[2]=R,ma[3]=+S>0,ma[4]=q,zl.apply(null,ma)}function jl(S){return S===void 0?ea:typeof S=="function"?(ea=S,!0):!1}function Wl(S,R){return lo[S]===void 0?!1:R===void 0?lo[S]:(lo[S]=R,S==="s"&&(lo.ss=R-1),!0)}function Ul(S,R){if(!this.isValid())return this.localeData().invalidDate();var V=!1,q=lo,de,Oe;return typeof S=="object"&&(R=S,S=!1),typeof S=="boolean"&&(V=S),typeof R=="object"&&(q=Object.assign({},lo,R),R.s!=null&&R.ss==null&&(q.ss=R.s-1)),de=this.localeData(),Oe=Bl(this,!V,q,de),V&&(Oe=de.pastFuture(+this,Oe)),de.postformat(Oe)}var os=Math.abs;function uo(S){return(S>0)-(S<0)||+S}function Ko(){if(!this.isValid())return this.localeData().invalidDate();var S=os(this._milliseconds)/1e3,R=os(this._days),V=os(this._months),q,de,Oe,$e,Bt=this.asSeconds(),tr,Dr,Fn,ta;return Bt?(q=dt(S/60),de=dt(q/60),S%=60,q%=60,Oe=dt(V/12),V%=12,$e=S?S.toFixed(3).replace(/\.?0+$/,""):"",tr=Bt<0?"-":"",Dr=uo(this._months)!==uo(Bt)?"-":"",Fn=uo(this._days)!==uo(Bt)?"-":"",ta=uo(this._milliseconds)!==uo(Bt)?"-":"",tr+"P"+(Oe?Dr+Oe+"Y":"")+(V?Dr+V+"M":"")+(R?Fn+R+"D":"")+(de||q||S?"T":"")+(de?ta+de+"H":"")+(q?ta+q+"M":"")+(S?ta+$e+"S":"")):"P0D"}var hr=Cn.prototype;hr.isValid=wo,hr.abs=O,hr.add=Z,hr.subtract=ee,hr.as=Pe,hr.asMilliseconds=It,hr.asSeconds=Zt,hr.asMinutes=Kt,hr.asHours=fr,hr.asDays=ur,hr.asWeeks=wr,hr.asMonths=Cr,hr.asQuarters=tn,hr.asYears=Jr,hr.valueOf=rt,hr._bubble=Ee,hr.clone=Vr,hr.get=cn,hr.milliseconds=ga,hr.seconds=Bo,hr.minutes=as,hr.hours=Pl,hr.days=Ll,hr.weeks=Hl,hr.months=Nl,hr.years=Fl,hr.humanize=Ul,hr.toISOString=Ko,hr.toString=Ko,hr.toJSON=Ko,hr.locale=Ka,hr.localeData=Qa,hr.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ko),hr.lang=Li,ze("X",0,0,"unix"),ze("x",0,0,"valueOf"),yt("x",lr),yt("X",kr),qt("X",function(S,R,V){V._d=new Date(parseFloat(S)*1e3)}),qt("x",function(S,R,V){V._d=new Date(nt(S))});//! moment.js
return P.version="2.29.4",B(ir),P.fn=ut,P.min=si,P.max=Yt,P.now=Gi,P.utc=o,P.unix=ns,P.months=s,P.isDate=n,P.locale=xt,P.invalid=h,P.duration=kn,P.isMoment=G,P.weekdays=x,P.parseZone=is,P.localeData=Nt,P.isDuration=Dn,P.monthsShort=f,P.weekdaysMin=I,P.defineLocale=Ge,P.updateLocale=Xt,P.locales=gr,P.weekdaysShort=D,P.normalizeUnits=_e,P.relativeTimeRounding=jl,P.relativeTimeThreshold=Wl,P.calendarFormat=Va,P.prototype=ut,P.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},P})}(us)),us.exports}/*!
 * Chart.js v2.9.4
 * https://www.chartjs.org
 * (c) 2020 Chart.js Contributors
 * Released under the MIT License
 */(function(H,M){(function(b,P){H.exports=P(function(){try{return Ba()}catch{}}())})(zi,function(b){b=b&&b.hasOwnProperty("default")?b.default:b;function P(e,r){return r={exports:{}},e(r,r.exports),r.exports}function B(e){return e&&e.default||e}var m={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},t=P(function(e){var r={};for(var s in m)m.hasOwnProperty(s)&&(r[m[s]]=s);var f=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var x in f)if(f.hasOwnProperty(x)){if(!("channels"in f[x]))throw new Error("missing channels property: "+x);if(!("labels"in f[x]))throw new Error("missing channel labels property: "+x);if(f[x].labels.length!==f[x].channels)throw new Error("channel and label counts mismatch: "+x);var D=f[x].channels,I=f[x].labels;delete f[x].channels,delete f[x].labels,Object.defineProperty(f[x],"channels",{value:D}),Object.defineProperty(f[x],"labels",{value:I})}f.rgb.hsl=function(O){var W=O[0]/255,Z=O[1]/255,ee=O[2]/255,fe=Math.min(W,Z,ee),Ee=Math.max(W,Z,ee),De=Ee-fe,Ie,Pe,rt;return Ee===fe?Ie=0:W===Ee?Ie=(Z-ee)/De:Z===Ee?Ie=2+(ee-W)/De:ee===Ee&&(Ie=4+(W-Z)/De),Ie=Math.min(Ie*60,360),Ie<0&&(Ie+=360),rt=(fe+Ee)/2,Ee===fe?Pe=0:rt<=.5?Pe=De/(Ee+fe):Pe=De/(2-Ee-fe),[Ie,Pe*100,rt*100]},f.rgb.hsv=function(O){var W,Z,ee,fe,Ee,De=O[0]/255,Ie=O[1]/255,Pe=O[2]/255,rt=Math.max(De,Ie,Pe),wt=rt-Math.min(De,Ie,Pe),It=function(Zt){return(rt-Zt)/6/wt+1/2};return wt===0?fe=Ee=0:(Ee=wt/rt,W=It(De),Z=It(Ie),ee=It(Pe),De===rt?fe=ee-Z:Ie===rt?fe=1/3+W-ee:Pe===rt&&(fe=2/3+Z-W),fe<0?fe+=1:fe>1&&(fe-=1)),[fe*360,Ee*100,rt*100]},f.rgb.hwb=function(O){var W=O[0],Z=O[1],ee=O[2],fe=f.rgb.hsl(O)[0],Ee=1/255*Math.min(W,Math.min(Z,ee));return ee=1-1/255*Math.max(W,Math.max(Z,ee)),[fe,Ee*100,ee*100]},f.rgb.cmyk=function(O){var W=O[0]/255,Z=O[1]/255,ee=O[2]/255,fe,Ee,De,Ie;return Ie=Math.min(1-W,1-Z,1-ee),fe=(1-W-Ie)/(1-Ie)||0,Ee=(1-Z-Ie)/(1-Ie)||0,De=(1-ee-Ie)/(1-Ie)||0,[fe*100,Ee*100,De*100,Ie*100]};function F(O,W){return Math.pow(O[0]-W[0],2)+Math.pow(O[1]-W[1],2)+Math.pow(O[2]-W[2],2)}f.rgb.keyword=function(O){var W=r[O];if(W)return W;var Z=1/0,ee;for(var fe in m)if(m.hasOwnProperty(fe)){var Ee=m[fe],De=F(O,Ee);De<Z&&(Z=De,ee=fe)}return ee},f.keyword.rgb=function(O){return m[O]},f.rgb.xyz=function(O){var W=O[0]/255,Z=O[1]/255,ee=O[2]/255;W=W>.04045?Math.pow((W+.055)/1.055,2.4):W/12.92,Z=Z>.04045?Math.pow((Z+.055)/1.055,2.4):Z/12.92,ee=ee>.04045?Math.pow((ee+.055)/1.055,2.4):ee/12.92;var fe=W*.4124+Z*.3576+ee*.1805,Ee=W*.2126+Z*.7152+ee*.0722,De=W*.0193+Z*.1192+ee*.9505;return[fe*100,Ee*100,De*100]},f.rgb.lab=function(O){var W=f.rgb.xyz(O),Z=W[0],ee=W[1],fe=W[2],Ee,De,Ie;return Z/=95.047,ee/=100,fe/=108.883,Z=Z>.008856?Math.pow(Z,1/3):7.787*Z+16/116,ee=ee>.008856?Math.pow(ee,1/3):7.787*ee+16/116,fe=fe>.008856?Math.pow(fe,1/3):7.787*fe+16/116,Ee=116*ee-16,De=500*(Z-ee),Ie=200*(ee-fe),[Ee,De,Ie]},f.hsl.rgb=function(O){var W=O[0]/360,Z=O[1]/100,ee=O[2]/100,fe,Ee,De,Ie,Pe;if(Z===0)return Pe=ee*255,[Pe,Pe,Pe];ee<.5?Ee=ee*(1+Z):Ee=ee+Z-ee*Z,fe=2*ee-Ee,Ie=[0,0,0];for(var rt=0;rt<3;rt++)De=W+1/3*-(rt-1),De<0&&De++,De>1&&De--,6*De<1?Pe=fe+(Ee-fe)*6*De:2*De<1?Pe=Ee:3*De<2?Pe=fe+(Ee-fe)*(2/3-De)*6:Pe=fe,Ie[rt]=Pe*255;return Ie},f.hsl.hsv=function(O){var W=O[0],Z=O[1]/100,ee=O[2]/100,fe=Z,Ee=Math.max(ee,.01),De,Ie;return ee*=2,Z*=ee<=1?ee:2-ee,fe*=Ee<=1?Ee:2-Ee,Ie=(ee+Z)/2,De=ee===0?2*fe/(Ee+fe):2*Z/(ee+Z),[W,De*100,Ie*100]},f.hsv.rgb=function(O){var W=O[0]/60,Z=O[1]/100,ee=O[2]/100,fe=Math.floor(W)%6,Ee=W-Math.floor(W),De=255*ee*(1-Z),Ie=255*ee*(1-Z*Ee),Pe=255*ee*(1-Z*(1-Ee));switch(ee*=255,fe){case 0:return[ee,Pe,De];case 1:return[Ie,ee,De];case 2:return[De,ee,Pe];case 3:return[De,Ie,ee];case 4:return[Pe,De,ee];case 5:return[ee,De,Ie]}},f.hsv.hsl=function(O){var W=O[0],Z=O[1]/100,ee=O[2]/100,fe=Math.max(ee,.01),Ee,De,Ie;return Ie=(2-Z)*ee,Ee=(2-Z)*fe,De=Z*fe,De/=Ee<=1?Ee:2-Ee,De=De||0,Ie/=2,[W,De*100,Ie*100]},f.hwb.rgb=function(O){var W=O[0]/360,Z=O[1]/100,ee=O[2]/100,fe=Z+ee,Ee,De,Ie,Pe;fe>1&&(Z/=fe,ee/=fe),Ee=Math.floor(6*W),De=1-ee,Ie=6*W-Ee,Ee&1&&(Ie=1-Ie),Pe=Z+Ie*(De-Z);var rt,wt,It;switch(Ee){default:case 6:case 0:rt=De,wt=Pe,It=Z;break;case 1:rt=Pe,wt=De,It=Z;break;case 2:rt=Z,wt=De,It=Pe;break;case 3:rt=Z,wt=Pe,It=De;break;case 4:rt=Pe,wt=Z,It=De;break;case 5:rt=De,wt=Z,It=Pe;break}return[rt*255,wt*255,It*255]},f.cmyk.rgb=function(O){var W=O[0]/100,Z=O[1]/100,ee=O[2]/100,fe=O[3]/100,Ee,De,Ie;return Ee=1-Math.min(1,W*(1-fe)+fe),De=1-Math.min(1,Z*(1-fe)+fe),Ie=1-Math.min(1,ee*(1-fe)+fe),[Ee*255,De*255,Ie*255]},f.xyz.rgb=function(O){var W=O[0]/100,Z=O[1]/100,ee=O[2]/100,fe,Ee,De;return fe=W*3.2406+Z*-1.5372+ee*-.4986,Ee=W*-.9689+Z*1.8758+ee*.0415,De=W*.0557+Z*-.204+ee*1.057,fe=fe>.0031308?1.055*Math.pow(fe,1/2.4)-.055:fe*12.92,Ee=Ee>.0031308?1.055*Math.pow(Ee,1/2.4)-.055:Ee*12.92,De=De>.0031308?1.055*Math.pow(De,1/2.4)-.055:De*12.92,fe=Math.min(Math.max(0,fe),1),Ee=Math.min(Math.max(0,Ee),1),De=Math.min(Math.max(0,De),1),[fe*255,Ee*255,De*255]},f.xyz.lab=function(O){var W=O[0],Z=O[1],ee=O[2],fe,Ee,De;return W/=95.047,Z/=100,ee/=108.883,W=W>.008856?Math.pow(W,1/3):7.787*W+16/116,Z=Z>.008856?Math.pow(Z,1/3):7.787*Z+16/116,ee=ee>.008856?Math.pow(ee,1/3):7.787*ee+16/116,fe=116*Z-16,Ee=500*(W-Z),De=200*(Z-ee),[fe,Ee,De]},f.lab.xyz=function(O){var W=O[0],Z=O[1],ee=O[2],fe,Ee,De;Ee=(W+16)/116,fe=Z/500+Ee,De=Ee-ee/200;var Ie=Math.pow(Ee,3),Pe=Math.pow(fe,3),rt=Math.pow(De,3);return Ee=Ie>.008856?Ie:(Ee-16/116)/7.787,fe=Pe>.008856?Pe:(fe-16/116)/7.787,De=rt>.008856?rt:(De-16/116)/7.787,fe*=95.047,Ee*=100,De*=108.883,[fe,Ee,De]},f.lab.lch=function(O){var W=O[0],Z=O[1],ee=O[2],fe,Ee,De;return fe=Math.atan2(ee,Z),Ee=fe*360/2/Math.PI,Ee<0&&(Ee+=360),De=Math.sqrt(Z*Z+ee*ee),[W,De,Ee]},f.lch.lab=function(O){var W=O[0],Z=O[1],ee=O[2],fe,Ee,De;return De=ee/360*2*Math.PI,fe=Z*Math.cos(De),Ee=Z*Math.sin(De),[W,fe,Ee]},f.rgb.ansi16=function(O){var W=O[0],Z=O[1],ee=O[2],fe=1 in arguments?arguments[1]:f.rgb.hsv(O)[2];if(fe=Math.round(fe/50),fe===0)return 30;var Ee=30+(Math.round(ee/255)<<2|Math.round(Z/255)<<1|Math.round(W/255));return fe===2&&(Ee+=60),Ee},f.hsv.ansi16=function(O){return f.rgb.ansi16(f.hsv.rgb(O),O[2])},f.rgb.ansi256=function(O){var W=O[0],Z=O[1],ee=O[2];if(W===Z&&Z===ee)return W<8?16:W>248?231:Math.round((W-8)/247*24)+232;var fe=16+36*Math.round(W/255*5)+6*Math.round(Z/255*5)+Math.round(ee/255*5);return fe},f.ansi16.rgb=function(O){var W=O%10;if(W===0||W===7)return O>50&&(W+=3.5),W=W/10.5*255,[W,W,W];var Z=(~~(O>50)+1)*.5,ee=(W&1)*Z*255,fe=(W>>1&1)*Z*255,Ee=(W>>2&1)*Z*255;return[ee,fe,Ee]},f.ansi256.rgb=function(O){if(O>=232){var W=(O-232)*10+8;return[W,W,W]}O-=16;var Z,ee=Math.floor(O/36)/5*255,fe=Math.floor((Z=O%36)/6)/5*255,Ee=Z%6/5*255;return[ee,fe,Ee]},f.rgb.hex=function(O){var W=((Math.round(O[0])&255)<<16)+((Math.round(O[1])&255)<<8)+(Math.round(O[2])&255),Z=W.toString(16).toUpperCase();return"000000".substring(Z.length)+Z},f.hex.rgb=function(O){var W=O.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!W)return[0,0,0];var Z=W[0];W[0].length===3&&(Z=Z.split("").map(function(Ie){return Ie+Ie}).join(""));var ee=parseInt(Z,16),fe=ee>>16&255,Ee=ee>>8&255,De=ee&255;return[fe,Ee,De]},f.rgb.hcg=function(O){var W=O[0]/255,Z=O[1]/255,ee=O[2]/255,fe=Math.max(Math.max(W,Z),ee),Ee=Math.min(Math.min(W,Z),ee),De=fe-Ee,Ie,Pe;return De<1?Ie=Ee/(1-De):Ie=0,De<=0?Pe=0:fe===W?Pe=(Z-ee)/De%6:fe===Z?Pe=2+(ee-W)/De:Pe=4+(W-Z)/De+4,Pe/=6,Pe%=1,[Pe*360,De*100,Ie*100]},f.hsl.hcg=function(O){var W=O[1]/100,Z=O[2]/100,ee=1,fe=0;return Z<.5?ee=2*W*Z:ee=2*W*(1-Z),ee<1&&(fe=(Z-.5*ee)/(1-ee)),[O[0],ee*100,fe*100]},f.hsv.hcg=function(O){var W=O[1]/100,Z=O[2]/100,ee=W*Z,fe=0;return ee<1&&(fe=(Z-ee)/(1-ee)),[O[0],ee*100,fe*100]},f.hcg.rgb=function(O){var W=O[0]/360,Z=O[1]/100,ee=O[2]/100;if(Z===0)return[ee*255,ee*255,ee*255];var fe=[0,0,0],Ee=W%1*6,De=Ee%1,Ie=1-De,Pe=0;switch(Math.floor(Ee)){case 0:fe[0]=1,fe[1]=De,fe[2]=0;break;case 1:fe[0]=Ie,fe[1]=1,fe[2]=0;break;case 2:fe[0]=0,fe[1]=1,fe[2]=De;break;case 3:fe[0]=0,fe[1]=Ie,fe[2]=1;break;case 4:fe[0]=De,fe[1]=0,fe[2]=1;break;default:fe[0]=1,fe[1]=0,fe[2]=Ie}return Pe=(1-Z)*ee,[(Z*fe[0]+Pe)*255,(Z*fe[1]+Pe)*255,(Z*fe[2]+Pe)*255]},f.hcg.hsv=function(O){var W=O[1]/100,Z=O[2]/100,ee=W+Z*(1-W),fe=0;return ee>0&&(fe=W/ee),[O[0],fe*100,ee*100]},f.hcg.hsl=function(O){var W=O[1]/100,Z=O[2]/100,ee=Z*(1-W)+.5*W,fe=0;return ee>0&&ee<.5?fe=W/(2*ee):ee>=.5&&ee<1&&(fe=W/(2*(1-ee))),[O[0],fe*100,ee*100]},f.hcg.hwb=function(O){var W=O[1]/100,Z=O[2]/100,ee=W+Z*(1-W);return[O[0],(ee-W)*100,(1-ee)*100]},f.hwb.hcg=function(O){var W=O[1]/100,Z=O[2]/100,ee=1-Z,fe=ee-W,Ee=0;return fe<1&&(Ee=(ee-fe)/(1-fe)),[O[0],fe*100,Ee*100]},f.apple.rgb=function(O){return[O[0]/65535*255,O[1]/65535*255,O[2]/65535*255]},f.rgb.apple=function(O){return[O[0]/255*65535,O[1]/255*65535,O[2]/255*65535]},f.gray.rgb=function(O){return[O[0]/100*255,O[0]/100*255,O[0]/100*255]},f.gray.hsl=f.gray.hsv=function(O){return[0,0,O[0]]},f.gray.hwb=function(O){return[0,100,O[0]]},f.gray.cmyk=function(O){return[0,0,0,O[0]]},f.gray.lab=function(O){return[O[0],0,0]},f.gray.hex=function(O){var W=Math.round(O[0]/100*255)&255,Z=(W<<16)+(W<<8)+W,ee=Z.toString(16).toUpperCase();return"000000".substring(ee.length)+ee},f.rgb.gray=function(O){var W=(O[0]+O[1]+O[2])/3;return[W/255*100]}});t.rgb,t.hsl,t.hsv,t.hwb,t.cmyk,t.xyz,t.lab,t.lch,t.hex,t.keyword,t.ansi16,t.ansi256,t.hcg,t.apple,t.gray;function p(){for(var e={},r=Object.keys(t),s=r.length,f=0;f<s;f++)e[r[f]]={distance:-1,parent:null};return e}function w(e){var r=p(),s=[e];for(r[e].distance=0;s.length;)for(var f=s.pop(),x=Object.keys(t[f]),D=x.length,I=0;I<D;I++){var F=x[I],O=r[F];O.distance===-1&&(O.distance=r[f].distance+1,O.parent=f,s.unshift(F))}return r}function g(e,r){return function(s){return r(e(s))}}function E(e,r){for(var s=[r[e].parent,e],f=t[r[e].parent][e],x=r[e].parent;r[x].parent;)s.unshift(r[x].parent),f=g(t[r[x].parent][x],f),x=r[x].parent;return f.conversion=s,f}var n=function(e){for(var r=w(e),s={},f=Object.keys(r),x=f.length,D=0;D<x;D++){var I=f[D],F=r[I];F.parent!==null&&(s[I]=E(I,r))}return s},i={},u=Object.keys(t);function o(e){var r=function(s){return s==null?s:(arguments.length>1&&(s=Array.prototype.slice.call(arguments)),e(s))};return"conversion"in e&&(r.conversion=e.conversion),r}function c(e){var r=function(s){if(s==null)return s;arguments.length>1&&(s=Array.prototype.slice.call(arguments));var f=e(s);if(typeof f=="object")for(var x=f.length,D=0;D<x;D++)f[D]=Math.round(f[D]);return f};return"conversion"in e&&(r.conversion=e.conversion),r}u.forEach(function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:t[e].channels}),Object.defineProperty(i[e],"labels",{value:t[e].labels});var r=n(e),s=Object.keys(r);s.forEach(function(f){var x=r[f];i[e][f]=c(x),i[e][f].raw=o(x)})});var l=i,a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},d={getRgba:h,getHsla:v,getRgb:k,getHsl:j,getHwb:C,getAlpha:G,hexString:N,rgbString:T,rgbaString:A,percentString:U,percentaString:X,hslString:Q,hslaString:re,hwbString:ge,keyword:Ce};function h(e){if(e){var r=/^#([a-fA-F0-9]{3,4})$/i,s=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,f=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,x=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,D=/(\w+)/,I=[0,0,0],F=1,O=e.match(r),W="";if(O){O=O[1],W=O[3];for(var Z=0;Z<I.length;Z++)I[Z]=parseInt(O[Z]+O[Z],16);W&&(F=Math.round(parseInt(W+W,16)/255*100)/100)}else if(O=e.match(s)){W=O[2],O=O[1];for(var Z=0;Z<I.length;Z++)I[Z]=parseInt(O.slice(Z*2,Z*2+2),16);W&&(F=Math.round(parseInt(W,16)/255*100)/100)}else if(O=e.match(f)){for(var Z=0;Z<I.length;Z++)I[Z]=parseInt(O[Z+1]);F=parseFloat(O[4])}else if(O=e.match(x)){for(var Z=0;Z<I.length;Z++)I[Z]=Math.round(parseFloat(O[Z+1])*2.55);F=parseFloat(O[4])}else if(O=e.match(D)){if(O[1]=="transparent")return[0,0,0,0];if(I=a[O[1]],!I)return}for(var Z=0;Z<I.length;Z++)I[Z]=pe(I[Z],0,255);return!F&&F!=0?F=1:F=pe(F,0,1),I[3]=F,I}}function v(e){if(e){var r=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,s=e.match(r);if(s){var f=parseFloat(s[4]),x=pe(parseInt(s[1]),0,360),D=pe(parseFloat(s[2]),0,100),I=pe(parseFloat(s[3]),0,100),F=pe(isNaN(f)?1:f,0,1);return[x,D,I,F]}}}function C(e){if(e){var r=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,s=e.match(r);if(s){var f=parseFloat(s[4]),x=pe(parseInt(s[1]),0,360),D=pe(parseFloat(s[2]),0,100),I=pe(parseFloat(s[3]),0,100),F=pe(isNaN(f)?1:f,0,1);return[x,D,I,F]}}}function k(e){var r=h(e);return r&&r.slice(0,3)}function j(e){var r=v(e);return r&&r.slice(0,3)}function G(e){var r=h(e);if(r)return r[3];if(r=v(e))return r[3];if(r=C(e))return r[3]}function N(e,s){var s=s!==void 0&&e.length===3?s:e[3];return"#"+ie(e[0])+ie(e[1])+ie(e[2])+(s>=0&&s<1?ie(Math.round(s*255)):"")}function T(e,r){return r<1||e[3]&&e[3]<1?A(e,r):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function A(e,r){return r===void 0&&(r=e[3]!==void 0?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+r+")"}function U(e,r){if(r<1||e[3]&&e[3]<1)return X(e,r);var s=Math.round(e[0]/255*100),f=Math.round(e[1]/255*100),x=Math.round(e[2]/255*100);return"rgb("+s+"%, "+f+"%, "+x+"%)"}function X(e,r){var s=Math.round(e[0]/255*100),f=Math.round(e[1]/255*100),x=Math.round(e[2]/255*100);return"rgba("+s+"%, "+f+"%, "+x+"%, "+(r||e[3]||1)+")"}function Q(e,r){return r<1||e[3]&&e[3]<1?re(e,r):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function re(e,r){return r===void 0&&(r=e[3]!==void 0?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+r+")"}function ge(e,r){return r===void 0&&(r=e[3]!==void 0?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(r!==void 0&&r!==1?", "+r:"")+")"}function Ce(e){return oe[e.slice(0,3)]}function pe(e,r,s){return Math.min(Math.max(r,e),s)}function ie(e){var r=e.toString(16).toUpperCase();return r.length<2?"0"+r:r}var oe={};for(var me in a)oe[a[me]]=me;var Fe=function(e){if(e instanceof Fe)return e;if(!(this instanceof Fe))return new Fe(e);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var r;typeof e=="string"?(r=d.getRgba(e),r?this.setValues("rgb",r):(r=d.getHsla(e))?this.setValues("hsl",r):(r=d.getHwb(e))&&this.setValues("hwb",r)):typeof e=="object"&&(r=e,r.r!==void 0||r.red!==void 0?this.setValues("rgb",r):r.l!==void 0||r.lightness!==void 0?this.setValues("hsl",r):r.v!==void 0||r.value!==void 0?this.setValues("hsv",r):r.w!==void 0||r.whiteness!==void 0?this.setValues("hwb",r):(r.c!==void 0||r.cyan!==void 0)&&this.setValues("cmyk",r))};Fe.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return e.alpha!==1?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return e===void 0?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return d.hexString(this.values.rgb)},rgbString:function(){return d.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return d.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return d.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return d.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return d.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return d.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return d.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,r=[],s=0;s<e.length;s++){var f=e[s]/255;r[s]=f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast:function(e){var r=this.luminosity(),s=e.luminosity();return r>s?(r+.05)/(s+.05):(s+.05)/(r+.05)},level:function(e){var r=this.contrast(e);return r>=7.1?"AAA":r>=4.5?"AA":""},dark:function(){var e=this.values.rgb,r=(e[0]*299+e[1]*587+e[2]*114)/1e3;return r<128},light:function(){return!this.dark()},negate:function(){for(var e=[],r=0;r<3;r++)e[r]=255-this.values.rgb[r];return this.setValues("rgb",e),this},lighten:function(e){var r=this.values.hsl;return r[2]+=r[2]*e,this.setValues("hsl",r),this},darken:function(e){var r=this.values.hsl;return r[2]-=r[2]*e,this.setValues("hsl",r),this},saturate:function(e){var r=this.values.hsl;return r[1]+=r[1]*e,this.setValues("hsl",r),this},desaturate:function(e){var r=this.values.hsl;return r[1]-=r[1]*e,this.setValues("hsl",r),this},whiten:function(e){var r=this.values.hwb;return r[1]+=r[1]*e,this.setValues("hwb",r),this},blacken:function(e){var r=this.values.hwb;return r[2]+=r[2]*e,this.setValues("hwb",r),this},greyscale:function(){var e=this.values.rgb,r=e[0]*.3+e[1]*.59+e[2]*.11;return this.setValues("rgb",[r,r,r]),this},clearer:function(e){var r=this.values.alpha;return this.setValues("alpha",r-r*e),this},opaquer:function(e){var r=this.values.alpha;return this.setValues("alpha",r+r*e),this},rotate:function(e){var r=this.values.hsl,s=(r[0]+e)%360;return r[0]=s<0?360+s:s,this.setValues("hsl",r),this},mix:function(e,r){var s=this,f=e,x=r===void 0?.5:r,D=2*x-1,I=s.alpha()-f.alpha(),F=((D*I===-1?D:(D+I)/(1+D*I))+1)/2,O=1-F;return this.rgb(F*s.red()+O*f.red(),F*s.green()+O*f.green(),F*s.blue()+O*f.blue()).alpha(s.alpha()*x+f.alpha()*(1-x))},toJSON:function(){return this.rgb()},clone:function(){var e=new Fe,r=this.values,s=e.values,f,x;for(var D in r)r.hasOwnProperty(D)&&(f=r[D],x={}.toString.call(f),x==="[object Array]"?s[D]=f.slice(0):x==="[object Number]"?s[D]=f:console.error("unexpected color value:",f));return e}},Fe.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},Fe.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},Fe.prototype.getValues=function(e){for(var r=this.values,s={},f=0;f<e.length;f++)s[e.charAt(f)]=r[e][f];return r.alpha!==1&&(s.a=r.alpha),s},Fe.prototype.setValues=function(e,r){var s=this.values,f=this.spaces,x=this.maxes,D=1,I;if(this.valid=!0,e==="alpha")D=r;else if(r.length)s[e]=r.slice(0,e.length),D=r[e.length];else if(r[e.charAt(0)]!==void 0){for(I=0;I<e.length;I++)s[e][I]=r[e.charAt(I)];D=r.a}else if(r[f[e][0]]!==void 0){var F=f[e];for(I=0;I<e.length;I++)s[e][I]=r[F[I]];D=r.alpha}if(s.alpha=Math.max(0,Math.min(1,D===void 0?s.alpha:D)),e==="alpha")return!1;var O;for(I=0;I<e.length;I++)O=Math.max(0,Math.min(x[e][I],s[e][I])),s[e][I]=Math.round(O);for(var W in f)W!==e&&(s[W]=l[e][W](s[e]));return!0},Fe.prototype.setSpace=function(e,r){var s=r[0];return s===void 0?this.getValues(e):(typeof s=="number"&&(s=Array.prototype.slice.call(r)),this.setValues(e,s),this)},Fe.prototype.setChannel=function(e,r,s){var f=this.values[e];return s===void 0?f[r]:s===f[r]?this:(f[r]=s,this.setValues(e,f),this)},typeof window<"u"&&(window.Color=Fe);var et=Fe;function ft(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}var ze={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return e===null||typeof e>"u"},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var r=Object.prototype.toString.call(e);return r.substr(0,7)==="[object"&&r.substr(-6)==="Array]"},isObject:function(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"},isFinite:function(e){return(typeof e=="number"||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,r){return typeof e>"u"?r:e},valueAtIndexOrDefault:function(e,r,s){return ze.valueOrDefault(ze.isArray(e)?e[r]:e,s)},callback:function(e,r,s){if(e&&typeof e.call=="function")return e.apply(s,r)},each:function(e,r,s,f){var x,D,I;if(ze.isArray(e))if(D=e.length,f)for(x=D-1;x>=0;x--)r.call(s,e[x],x);else for(x=0;x<D;x++)r.call(s,e[x],x);else if(ze.isObject(e))for(I=Object.keys(e),D=I.length,x=0;x<D;x++)r.call(s,e[I[x]],I[x])},arrayEquals:function(e,r){var s,f,x,D;if(!e||!r||e.length!==r.length)return!1;for(s=0,f=e.length;s<f;++s)if(x=e[s],D=r[s],x instanceof Array&&D instanceof Array){if(!ze.arrayEquals(x,D))return!1}else if(x!==D)return!1;return!0},clone:function(e){if(ze.isArray(e))return e.map(ze.clone);if(ze.isObject(e)){for(var r=Object.create(e),s=Object.keys(e),f=s.length,x=0;x<f;++x)r[s[x]]=ze.clone(e[s[x]]);return r}return e},_merger:function(e,r,s,f){if(ft(e)){var x=r[e],D=s[e];ze.isObject(x)&&ze.isObject(D)?ze.merge(x,D,f):r[e]=ze.clone(D)}},_mergerIf:function(e,r,s){if(ft(e)){var f=r[e],x=s[e];ze.isObject(f)&&ze.isObject(x)?ze.mergeIf(f,x):r.hasOwnProperty(e)||(r[e]=ze.clone(x))}},merge:function(e,r,s){var f=ze.isArray(r)?r:[r],x=f.length,D,I,F,O,W;if(!ze.isObject(e))return e;for(s=s||{},D=s.merger||ze._merger,I=0;I<x;++I)if(r=f[I],!!ze.isObject(r))for(F=Object.keys(r),W=0,O=F.length;W<O;++W)D(F[W],e,r,s);return e},mergeIf:function(e,r){return ze.merge(e,r,{merger:ze._mergerIf})},extend:Object.assign||function(e){return ze.merge(e,[].slice.call(arguments,1),{merger:function(r,s,f){s[r]=f[r]}})},inherits:function(e){var r=this,s=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},f=function(){this.constructor=s};return f.prototype=r.prototype,s.prototype=new f,s.extend=ze.inherits,e&&ze.extend(s.prototype,e),s.__super__=r.prototype,s},_deprecated:function(e,r,s,f){r!==void 0&&console.warn(e+': "'+s+'" is deprecated. Please use "'+f+'" instead')}},bt=ze;ze.callCallback=ze.callback,ze.indexOf=function(e,r,s){return Array.prototype.indexOf.call(e,r,s)},ze.getValueOrDefault=ze.valueOrDefault,ze.getValueAtIndexOrDefault=ze.valueAtIndexOrDefault;var St={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e=e-1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e=e-1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e=e-1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return-Math.cos(e*(Math.PI/2))+1},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return e===0?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return e===1?1:-Math.pow(2,-10*e)+1},easeInOutExpo:function(e){return e===0?0:e===1?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(-Math.pow(2,-10*--e)+2)},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e=e-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var r=1.70158,s=0,f=1;return e===0?0:e===1?1:(s||(s=.3),r=s/(2*Math.PI)*Math.asin(1/f),-(f*Math.pow(2,10*(e-=1))*Math.sin((e-r)*(2*Math.PI)/s)))},easeOutElastic:function(e){var r=1.70158,s=0,f=1;return e===0?0:e===1?1:(s||(s=.3),r=s/(2*Math.PI)*Math.asin(1/f),f*Math.pow(2,-10*e)*Math.sin((e-r)*(2*Math.PI)/s)+1)},easeInOutElastic:function(e){var r=1.70158,s=0,f=1;return e===0?0:(e/=.5)===2?1:(s||(s=.45),r=s/(2*Math.PI)*Math.asin(1/f),e<1?-.5*(f*Math.pow(2,10*(e-=1))*Math.sin((e-r)*(2*Math.PI)/s)):f*Math.pow(2,-10*(e-=1))*Math.sin((e-r)*(2*Math.PI)/s)*.5+1)},easeInBack:function(e){var r=1.70158;return e*e*((r+1)*e-r)},easeOutBack:function(e){var r=1.70158;return(e=e-1)*e*((r+1)*e+r)+1},easeInOutBack:function(e){var r=1.70158;return(e/=.5)<1?.5*(e*e*(((r*=1.525)+1)*e-r)):.5*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)},easeInBounce:function(e){return 1-St.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?St.easeInBounce(e*2)*.5:St.easeOutBounce(e*2-1)*.5+.5}},Le={effects:St};bt.easingEffects=St;var Et=Math.PI,Mt=Et/180,at=Et*2,Ot=Et/2,Ne=Et/4,ct=Et*2/3,mt={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,r,s,f,x,D){if(D){var I=Math.min(D,x/2,f/2),F=r+I,O=s+I,W=r+f-I,Z=s+x-I;e.moveTo(r,O),F<W&&O<Z?(e.arc(F,O,I,-Et,-Ot),e.arc(W,O,I,-Ot,0),e.arc(W,Z,I,0,Ot),e.arc(F,Z,I,Ot,Et)):F<W?(e.moveTo(F,s),e.arc(W,O,I,-Ot,Ot),e.arc(F,O,I,Ot,Et+Ot)):O<Z?(e.arc(F,O,I,-Et,0),e.arc(F,Z,I,0,Et)):e.arc(F,O,I,-Et,Et),e.closePath(),e.moveTo(r,s)}else e.rect(r,s,f,x)},drawPoint:function(e,r,s,f,x,D){var I,F,O,W,Z,ee=(D||0)*Mt;if(r&&typeof r=="object"&&(I=r.toString(),I==="[object HTMLImageElement]"||I==="[object HTMLCanvasElement]")){e.save(),e.translate(f,x),e.rotate(ee),e.drawImage(r,-r.width/2,-r.height/2,r.width,r.height),e.restore();return}if(!(isNaN(s)||s<=0)){switch(e.beginPath(),r){default:e.arc(f,x,s,0,at),e.closePath();break;case"triangle":e.moveTo(f+Math.sin(ee)*s,x-Math.cos(ee)*s),ee+=ct,e.lineTo(f+Math.sin(ee)*s,x-Math.cos(ee)*s),ee+=ct,e.lineTo(f+Math.sin(ee)*s,x-Math.cos(ee)*s),e.closePath();break;case"rectRounded":Z=s*.516,W=s-Z,F=Math.cos(ee+Ne)*W,O=Math.sin(ee+Ne)*W,e.arc(f-F,x-O,Z,ee-Et,ee-Ot),e.arc(f+O,x-F,Z,ee-Ot,ee),e.arc(f+F,x+O,Z,ee,ee+Ot),e.arc(f-O,x+F,Z,ee+Ot,ee+Et),e.closePath();break;case"rect":if(!D){W=Math.SQRT1_2*s,e.rect(f-W,x-W,2*W,2*W);break}ee+=Ne;case"rectRot":F=Math.cos(ee)*s,O=Math.sin(ee)*s,e.moveTo(f-F,x-O),e.lineTo(f+O,x-F),e.lineTo(f+F,x+O),e.lineTo(f-O,x+F),e.closePath();break;case"crossRot":ee+=Ne;case"cross":F=Math.cos(ee)*s,O=Math.sin(ee)*s,e.moveTo(f-F,x-O),e.lineTo(f+F,x+O),e.moveTo(f+O,x-F),e.lineTo(f-O,x+F);break;case"star":F=Math.cos(ee)*s,O=Math.sin(ee)*s,e.moveTo(f-F,x-O),e.lineTo(f+F,x+O),e.moveTo(f+O,x-F),e.lineTo(f-O,x+F),ee+=Ne,F=Math.cos(ee)*s,O=Math.sin(ee)*s,e.moveTo(f-F,x-O),e.lineTo(f+F,x+O),e.moveTo(f+O,x-F),e.lineTo(f-O,x+F);break;case"line":F=Math.cos(ee)*s,O=Math.sin(ee)*s,e.moveTo(f-F,x-O),e.lineTo(f+F,x+O);break;case"dash":e.moveTo(f,x),e.lineTo(f+Math.cos(ee)*s,x+Math.sin(ee)*s);break}e.fill(),e.stroke()}},_isPointInArea:function(e,r){var s=1e-6;return e.x>r.left-s&&e.x<r.right+s&&e.y>r.top-s&&e.y<r.bottom+s},clipArea:function(e,r){e.save(),e.beginPath(),e.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,r,s,f){var x=s.steppedLine;if(x){if(x==="middle"){var D=(r.x+s.x)/2;e.lineTo(D,f?s.y:r.y),e.lineTo(D,f?r.y:s.y)}else x==="after"&&!f||x!=="after"&&f?e.lineTo(r.x,s.y):e.lineTo(s.x,r.y);e.lineTo(s.x,s.y);return}if(!s.tension){e.lineTo(s.x,s.y);return}e.bezierCurveTo(f?r.controlPointPreviousX:r.controlPointNextX,f?r.controlPointPreviousY:r.controlPointNextY,f?s.controlPointNextX:s.controlPointPreviousX,f?s.controlPointNextY:s.controlPointPreviousY,s.x,s.y)}},Ct=mt;bt.clear=mt.clear,bt.drawRoundedRectangle=function(e){e.beginPath(),mt.roundedRect.apply(mt,arguments)};var Ue={_set:function(e,r){return bt.merge(this[e]||(this[e]={}),r)}};Ue._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var qe=Ue,Ft=bt.valueOrDefault;function Wt(e){return!e||bt.isNullOrUndef(e.size)||bt.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}var ne={toLineHeight:function(e,r){var s=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!s||s[1]==="normal")return r*1.2;switch(e=+s[2],s[3]){case"px":return e;case"%":e/=100;break}return r*e},toPadding:function(e){var r,s,f,x;return bt.isObject(e)?(r=+e.top||0,s=+e.right||0,f=+e.bottom||0,x=+e.left||0):r=s=f=x=+e||0,{top:r,right:s,bottom:f,left:x,height:r+f,width:x+s}},_parseFont:function(e){var r=qe.global,s=Ft(e.fontSize,r.defaultFontSize),f={family:Ft(e.fontFamily,r.defaultFontFamily),lineHeight:bt.options.toLineHeight(Ft(e.lineHeight,r.defaultLineHeight),s),size:s,style:Ft(e.fontStyle,r.defaultFontStyle),weight:null,string:""};return f.string=Wt(f),f},resolve:function(e,r,s,f){var x=!0,D,I,F;for(D=0,I=e.length;D<I;++D)if(F=e[D],F!==void 0&&(r!==void 0&&typeof F=="function"&&(F=F(r),x=!1),s!==void 0&&bt.isArray(F)&&(F=F[s],x=!1),F!==void 0))return f&&!x&&(f.cacheable=!1),F}},_e={_factorize:function(e){var r=[],s=Math.sqrt(e),f;for(f=1;f<s;f++)e%f===0&&(r.push(f),r.push(e/f));return s===(s|0)&&r.push(s),r.sort(function(x,D){return x-D}).pop(),r},log10:Math.log10||function(e){var r=Math.log(e)*Math.LOG10E,s=Math.round(r),f=e===Math.pow(10,s);return f?s:r}},tt=_e;bt.log10=_e.log10;var Dt=function(e,r){return{x:function(s){return e+e+r-s},setWidth:function(s){r=s},textAlign:function(s){return s==="center"?s:s==="right"?"left":"right"},xPlus:function(s,f){return s-f},leftForLtr:function(s,f){return s-f}}},vt=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,r){return e+r},leftForLtr:function(e,r){return e}}},Rt=function(e,r,s){return e?Dt(r,s):vt()},At=function(e,r){var s,f;(r==="ltr"||r==="rtl")&&(s=e.canvas.style,f=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",r,"important"),e.prevTextDirection=f)},dt=function(e){var r=e.prevTextDirection;r!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",r[0],r[1]))},nt={getRtlAdapter:Rt,overrideTextDirection:At,restoreTextDirection:dt},te=bt,he=Le,xe=Ct,He=ne,Ae=tt,Ye=nt;te.easing=he,te.canvas=xe,te.options=He,te.math=Ae,te.rtl=Ye;function Xe(e,r,s,f){var x=Object.keys(s),D,I,F,O,W,Z,ee,fe,Ee;for(D=0,I=x.length;D<I;++D)if(F=x[D],Z=s[F],r.hasOwnProperty(F)||(r[F]=Z),O=r[F],!(O===Z||F[0]==="_")){if(e.hasOwnProperty(F)||(e[F]=O),W=e[F],ee=typeof Z,ee===typeof W){if(ee==="string"){if(fe=et(W),fe.valid&&(Ee=et(Z),Ee.valid)){r[F]=Ee.mix(fe,f).rgbString();continue}}else if(te.isFinite(W)&&te.isFinite(Z)){r[F]=W+(Z-W)*f;continue}}r[F]=Z}}var st=function(e){te.extend(this,e),this.initialize.apply(this,arguments)};te.extend(st.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=te.extend({},e._model)),e._start={},e},transition:function(e){var r=this,s=r._model,f=r._start,x=r._view;return!s||e===1?(r._view=te.extend({},s),r._start=null,r):(x||(x=r._view={}),f||(f=r._start={}),Xe(f,x,s,e),r)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return te.isNumber(this._model.x)&&te.isNumber(this._model.y)}}),st.extend=te.inherits;var ce=st,we=ce.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),Me=we;Object.defineProperty(we.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(we.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),qe._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:te.noop,onComplete:te.noop}});var Ze={animations:[],request:null,addAnimation:function(e,r,s,f){var x=this.animations,D,I;for(r.chart=e,r.startTime=Date.now(),r.duration=s,f||(e.animating=!0),D=0,I=x.length;D<I;++D)if(x[D].chart===e){x[D]=r;return}x.push(r),x.length===1&&this.requestAnimationFrame()},cancelAnimation:function(e){var r=te.findIndex(this.animations,function(s){return s.chart===e});r!==-1&&(this.animations.splice(r,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;e.request===null&&(e.request=te.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e=this.animations,r,s,f,x,D=0;D<e.length;)r=e[D],s=r.chart,f=r.numSteps,x=Math.floor((Date.now()-r.startTime)/r.duration*f)+1,r.currentStep=Math.min(x,f),te.callback(r.render,[s,r],s),te.callback(r.onAnimationProgress,[r],s),r.currentStep>=f?(te.callback(r.onAnimationComplete,[r],s),s.animating=!1,e.splice(D,1)):++D}},ot=te.options.resolve,_t=["push","pop","shift","splice","unshift"];function Ut(e,r){if(e._chartjs){e._chartjs.listeners.push(r);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),_t.forEach(function(s){var f="onData"+s.charAt(0).toUpperCase()+s.slice(1),x=e[s];Object.defineProperty(e,s,{configurable:!0,enumerable:!1,value:function(){var D=Array.prototype.slice.call(arguments),I=x.apply(this,D);return te.each(e._chartjs.listeners,function(F){typeof F[f]=="function"&&F[f].apply(F,D)}),I}})})}function nr(e,r){var s=e._chartjs;if(s){var f=s.listeners,x=f.indexOf(r);x!==-1&&f.splice(x,1),!(f.length>0)&&(_t.forEach(function(D){delete e[D]}),delete e._chartjs)}}var pr=function(e,r){this.initialize(e,r)};te.extend(pr.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,r){var s=this;s.chart=e,s.index=r,s.linkScales(),s.addElements(),s._type=s.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,r=e.getMeta(),s=e.chart,f=s.scales,x=e.getDataset(),D=s.options.scales;(r.xAxisID===null||!(r.xAxisID in f)||x.xAxisID)&&(r.xAxisID=x.xAxisID||D.xAxes[0].id),(r.yAxisID===null||!(r.yAxisID in f)||x.yAxisID)&&(r.yAxisID=x.yAxisID||D.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&nr(this._data,this)},createMetaDataset:function(){var e=this,r=e.datasetElementType;return r&&new r({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var r=this,s=r.dataElementType;return s&&new s({_chart:r.chart,_datasetIndex:r.index,_index:e})},addElements:function(){var e=this,r=e.getMeta(),s=e.getDataset().data||[],f=r.data,x,D;for(x=0,D=s.length;x<D;++x)f[x]=f[x]||e.createMetaData(x);r.dataset=r.dataset||e.createMetaDataset()},addElementAndReset:function(e){var r=this.createMetaData(e);this.getMeta().data.splice(e,0,r),this.updateElement(r,e,!0)},buildOrUpdateElements:function(){var e=this,r=e.getDataset(),s=r.data||(r.data=[]);e._data!==s&&(e._data&&nr(e._data,e),s&&Object.isExtensible(s)&&Ut(s,e),e._data=s),e.resyncElements()},_configure:function(){var e=this;e._config=te.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(r,s,f){r!=="_meta"&&r!=="data"&&te._merger(r,s,f)}})},_update:function(e){var r=this;r._configure(),r._cachedDataOpts=null,r.update(e)},update:te.noop,transition:function(e){for(var r=this.getMeta(),s=r.data||[],f=s.length,x=0;x<f;++x)s[x].transition(e);r.dataset&&r.dataset.transition(e)},draw:function(){var e=this.getMeta(),r=e.data||[],s=r.length,f=0;for(e.dataset&&e.dataset.draw();f<s;++f)r[f].draw()},getStyle:function(e){var r=this,s=r.getMeta(),f=s.dataset,x;return r._configure(),f&&e===void 0?x=r._resolveDatasetElementOptions(f||{}):(e=e||0,x=r._resolveDataElementOptions(s.data[e]||{},e)),(x.fill===!1||x.fill===null)&&(x.backgroundColor=x.borderColor),x},_resolveDatasetElementOptions:function(e,r){var s=this,f=s.chart,x=s._config,D=e.custom||{},I=f.options.elements[s.datasetElementType.prototype._type]||{},F=s._datasetElementOptions,O={},W,Z,ee,fe,Ee={chart:f,dataset:s.getDataset(),datasetIndex:s.index,hover:r};for(W=0,Z=F.length;W<Z;++W)ee=F[W],fe=r?"hover"+ee.charAt(0).toUpperCase()+ee.slice(1):ee,O[ee]=ot([D[fe],x[fe],I[fe]],Ee);return O},_resolveDataElementOptions:function(e,r){var s=this,f=e&&e.custom,x=s._cachedDataOpts;if(x&&!f)return x;var D=s.chart,I=s._config,F=D.options.elements[s.dataElementType.prototype._type]||{},O=s._dataElementOptions,W={},Z={chart:D,dataIndex:r,dataset:s.getDataset(),datasetIndex:s.index},ee={cacheable:!f},fe,Ee,De,Ie;if(f=f||{},te.isArray(O))for(Ee=0,De=O.length;Ee<De;++Ee)Ie=O[Ee],W[Ie]=ot([f[Ie],I[Ie],F[Ie]],Z,r,ee);else for(fe=Object.keys(O),Ee=0,De=fe.length;Ee<De;++Ee)Ie=fe[Ee],W[Ie]=ot([f[Ie],I[O[Ie]],I[Ie],F[Ie]],Z,r,ee);return ee.cacheable&&(s._cachedDataOpts=Object.freeze(W)),W},removeHoverStyle:function(e){te.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var r=this.chart.data.datasets[e._datasetIndex],s=e._index,f=e.custom||{},x=e._model,D=te.getHoverColor;e.$previousStyle={backgroundColor:x.backgroundColor,borderColor:x.borderColor,borderWidth:x.borderWidth},x.backgroundColor=ot([f.hoverBackgroundColor,r.hoverBackgroundColor,D(x.backgroundColor)],void 0,s),x.borderColor=ot([f.hoverBorderColor,r.hoverBorderColor,D(x.borderColor)],void 0,s),x.borderWidth=ot([f.hoverBorderWidth,r.hoverBorderWidth,x.borderWidth],void 0,s)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e=this.getMeta().dataset,r={},s,f,x,D,I,F;if(e){for(F=e._model,I=this._resolveDatasetElementOptions(e,!0),D=Object.keys(I),s=0,f=D.length;s<f;++s)x=D[s],r[x]=F[x],F[x]=I[x];e.$previousStyle=r}},resyncElements:function(){var e=this,r=e.getMeta(),s=e.getDataset().data,f=r.data.length,x=s.length;x<f?r.data.splice(x,f-x):x>f&&e.insertElements(f,x-f)},insertElements:function(e,r){for(var s=0;s<r;++s)this.addElementAndReset(e+s)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,r){this.getMeta().data.splice(e,r),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),pr.extend=te.inherits;var lr=pr,Tr=Math.PI*2;qe._set("global",{elements:{arc:{backgroundColor:qe.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});function Sr(e,r){var s=r.startAngle,f=r.endAngle,x=r.pixelMargin,D=x/r.outerRadius,I=r.x,F=r.y;e.beginPath(),e.arc(I,F,r.outerRadius,s-D,f+D),r.innerRadius>x?(D=x/r.innerRadius,e.arc(I,F,r.innerRadius-x,f+D,s-D,!0)):e.arc(I,F,x,f+Math.PI/2,s-Math.PI/2),e.closePath(),e.clip()}function kr(e,r,s,f){var x=s.endAngle,D;for(f&&(s.endAngle=s.startAngle+Tr,Sr(e,s),s.endAngle=x,s.endAngle===s.startAngle&&s.fullCircles&&(s.endAngle+=Tr,s.fullCircles--)),e.beginPath(),e.arc(s.x,s.y,s.innerRadius,s.startAngle+Tr,s.startAngle,!0),D=0;D<s.fullCircles;++D)e.stroke();for(e.beginPath(),e.arc(s.x,s.y,r.outerRadius,s.startAngle,s.startAngle+Tr),D=0;D<s.fullCircles;++D)e.stroke()}function En(e,r,s){var f=r.borderAlign==="inner";f?(e.lineWidth=r.borderWidth*2,e.lineJoin="round"):(e.lineWidth=r.borderWidth,e.lineJoin="bevel"),s.fullCircles&&kr(e,r,s,f),f&&Sr(e,s),e.beginPath(),e.arc(s.x,s.y,r.outerRadius,s.startAngle,s.endAngle),e.arc(s.x,s.y,s.innerRadius,s.endAngle,s.startAngle,!0),e.closePath(),e.stroke()}var Rn=ce.extend({_type:"arc",inLabelRange:function(e){var r=this._view;return r?Math.pow(e-r.x,2)<Math.pow(r.radius+r.hoverRadius,2):!1},inRange:function(e,r){var s=this._view;if(s){for(var f=te.getAngleFromPoint(s,{x:e,y:r}),x=f.angle,D=f.distance,I=s.startAngle,F=s.endAngle;F<I;)F+=Tr;for(;x>F;)x-=Tr;for(;x<I;)x+=Tr;var O=x>=I&&x<=F,W=D>=s.innerRadius&&D<=s.outerRadius;return O&&W}return!1},getCenterPoint:function(){var e=this._view,r=(e.startAngle+e.endAngle)/2,s=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(r)*s,y:e.y+Math.sin(r)*s}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,r=e.startAngle+(e.endAngle-e.startAngle)/2,s=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(r)*s,y:e.y+Math.sin(r)*s}},draw:function(){var e=this._chart.ctx,r=this._view,s=r.borderAlign==="inner"?.33:0,f={x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:Math.max(r.outerRadius-s,0),pixelMargin:s,startAngle:r.startAngle,endAngle:r.endAngle,fullCircles:Math.floor(r.circumference/Tr)},x;if(e.save(),e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,f.fullCircles){for(f.endAngle=f.startAngle+Tr,e.beginPath(),e.arc(f.x,f.y,f.outerRadius,f.startAngle,f.endAngle),e.arc(f.x,f.y,f.innerRadius,f.endAngle,f.startAngle,!0),e.closePath(),x=0;x<f.fullCircles;++x)e.fill();f.endAngle=f.startAngle+r.circumference%Tr}e.beginPath(),e.arc(f.x,f.y,f.outerRadius,f.startAngle,f.endAngle),e.arc(f.x,f.y,f.innerRadius,f.endAngle,f.startAngle,!0),e.closePath(),e.fill(),r.borderWidth&&En(e,r,f),e.restore()}}),yt=te.valueOrDefault,$n=qe.global.defaultColor;qe._set("global",{elements:{line:{tension:.4,backgroundColor:$n,borderWidth:3,borderColor:$n,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Hn=ce.extend({_type:"line",draw:function(){var e=this,r=e._view,s=e._chart.ctx,f=r.spanGaps,x=e._children.slice(),D=qe.global,I=D.elements.line,F=-1,O=e._loop,W,Z,ee;if(x.length){if(e._loop){for(W=0;W<x.length;++W)if(Z=te.previousItem(x,W),!x[W]._view.skip&&Z._view.skip){x=x.slice(W).concat(x.slice(0,W)),O=f;break}O&&x.push(x[0])}for(s.save(),s.lineCap=r.borderCapStyle||I.borderCapStyle,s.setLineDash&&s.setLineDash(r.borderDash||I.borderDash),s.lineDashOffset=yt(r.borderDashOffset,I.borderDashOffset),s.lineJoin=r.borderJoinStyle||I.borderJoinStyle,s.lineWidth=yt(r.borderWidth,I.borderWidth),s.strokeStyle=r.borderColor||D.defaultColor,s.beginPath(),ee=x[0]._view,ee.skip||(s.moveTo(ee.x,ee.y),F=0),W=1;W<x.length;++W)ee=x[W]._view,Z=F===-1?te.previousItem(x,W):x[F],ee.skip||(F!==W-1&&!f||F===-1?s.moveTo(ee.x,ee.y):te.canvas.lineTo(s,Z._view,ee),F=W);O&&s.closePath(),s.stroke(),s.restore()}}}),Wr=te.valueOrDefault,Ur=qe.global.defaultColor;qe._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Ur,borderColor:Ur,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});function qt(e){var r=this._view;return r?Math.abs(e-r.x)<r.radius+r.hitRadius:!1}function gn(e){var r=this._view;return r?Math.abs(e-r.y)<r.radius+r.hitRadius:!1}var We=ce.extend({_type:"point",inRange:function(e,r){var s=this._view;return s?Math.pow(e-s.x,2)+Math.pow(r-s.y,2)<Math.pow(s.hitRadius+s.radius,2):!1},inLabelRange:qt,inXRange:qt,inYRange:gn,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var r=this._view,s=this._chart.ctx,f=r.pointStyle,x=r.rotation,D=r.radius,I=r.x,F=r.y,O=qe.global,W=O.defaultColor;r.skip||(e===void 0||te.canvas._isPointInArea(r,e))&&(s.strokeStyle=r.borderColor||W,s.lineWidth=Wr(r.borderWidth,O.elements.point.borderWidth),s.fillStyle=r.backgroundColor||W,te.canvas.drawPoint(s,f,D,I,F,x))}}),Ke=qe.global.defaultColor;qe._set("global",{elements:{rectangle:{backgroundColor:Ke,borderColor:Ke,borderSkipped:"bottom",borderWidth:0}}});function ht(e){return e&&e.width!==void 0}function Tt(e){var r,s,f,x,D;return ht(e)?(D=e.width/2,r=e.x-D,s=e.x+D,f=Math.min(e.y,e.base),x=Math.max(e.y,e.base)):(D=e.height/2,r=Math.min(e.x,e.base),s=Math.max(e.x,e.base),f=e.y-D,x=e.y+D),{left:r,top:f,right:s,bottom:x}}function kt(e,r,s){return e===r?s:e===s?r:e}function Ht(e){var r=e.borderSkipped,s={};return r&&(e.horizontal?e.base>e.x&&(r=kt(r,"left","right")):e.base<e.y&&(r=kt(r,"bottom","top")),s[r]=!0),s}function er(e,r,s){var f=e.borderWidth,x=Ht(e),D,I,F,O;return te.isObject(f)?(D=+f.top||0,I=+f.right||0,F=+f.bottom||0,O=+f.left||0):D=I=F=O=+f||0,{t:x.top||D<0?0:D>s?s:D,r:x.right||I<0?0:I>r?r:I,b:x.bottom||F<0?0:F>s?s:F,l:x.left||O<0?0:O>r?r:O}}function or(e){var r=Tt(e),s=r.right-r.left,f=r.bottom-r.top,x=er(e,s/2,f/2);return{outer:{x:r.left,y:r.top,w:s,h:f},inner:{x:r.left+x.l,y:r.top+x.t,w:s-x.l-x.r,h:f-x.t-x.b}}}function Vt(e,r,s){var f=r===null,x=s===null,D=!e||f&&x?!1:Tt(e);return D&&(f||r>=D.left&&r<=D.right)&&(x||s>=D.top&&s<=D.bottom)}var vr=ce.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,r=this._view,s=or(r),f=s.outer,x=s.inner;e.fillStyle=r.backgroundColor,e.fillRect(f.x,f.y,f.w,f.h),!(f.w===x.w&&f.h===x.h)&&(e.save(),e.beginPath(),e.rect(f.x,f.y,f.w,f.h),e.clip(),e.fillStyle=r.borderColor,e.rect(x.x,x.y,x.w,x.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,r){return Vt(this._view,e,r)},inLabelRange:function(e,r){var s=this._view;return ht(s)?Vt(s,e,null):Vt(s,null,r)},inXRange:function(e){return Vt(this._view,e,null)},inYRange:function(e){return Vt(this._view,null,e)},getCenterPoint:function(){var e=this._view,r,s;return ht(e)?(r=e.x,s=(e.y+e.base)/2):(r=(e.x+e.base)/2,s=e.y),{x:r,y:s}},getArea:function(){var e=this._view;return ht(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Gt={},Pt=Rn,br=Hn,Lr=We,rn=vr;Gt.Arc=Pt,Gt.Line=br,Gt.Point=Lr,Gt.Rectangle=rn;var sr=te._deprecated,fn=te.valueOrDefault;qe._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),qe._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});function na(e,r){var s=e._length,f,x,D,I;for(D=1,I=r.length;D<I;++D)s=Math.min(s,Math.abs(r[D]-r[D-1]));for(D=0,I=e.getTicks().length;D<I;++D)x=e.getPixelForTick(D),s=D>0?Math.min(s,Math.abs(x-f)):s,f=x;return s}function ia(e,r,s){var f=s.barThickness,x=r.stackCount,D=r.pixels[e],I=te.isNullOrUndef(f)?na(r.scale,r.pixels):-1,F,O;return te.isNullOrUndef(f)?(F=I*s.categoryPercentage,O=s.barPercentage):(F=f*x,O=1),{chunk:F/x,ratio:O,start:D-F/2}}function Bi(e,r,s){var f=r.pixels,x=f[e],D=e>0?f[e-1]:null,I=e<f.length-1?f[e+1]:null,F=s.categoryPercentage,O,W;return D===null&&(D=x-(I===null?r.end-r.start:I-x)),I===null&&(I=x+x-D),O=x-(x-Math.min(D,I))/2*F,W=Math.abs(I-D)/2*F,{chunk:W/r.stackCount,ratio:s.barPercentage,start:O}}var Ci=lr.extend({dataElementType:Gt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e=this,r,s;lr.prototype.initialize.apply(e,arguments),r=e.getMeta(),r.stack=e.getDataset().stack,r.bar=!0,s=e._getIndexScale().options,sr("bar chart",s.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),sr("bar chart",s.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),sr("bar chart",s.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),sr("bar chart",e._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),sr("bar chart",s.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var r=this,s=r.getMeta().data,f,x;for(r._ruler=r.getRuler(),f=0,x=s.length;f<x;++f)r.updateElement(s[f],f,e)},updateElement:function(e,r,s){var f=this,x=f.getMeta(),D=f.getDataset(),I=f._resolveDataElementOptions(e,r);e._xScale=f.getScaleForId(x.xAxisID),e._yScale=f.getScaleForId(x.yAxisID),e._datasetIndex=f.index,e._index=r,e._model={backgroundColor:I.backgroundColor,borderColor:I.borderColor,borderSkipped:I.borderSkipped,borderWidth:I.borderWidth,datasetLabel:D.label,label:f.chart.data.labels[r]},te.isArray(D.data[r])&&(e._model.borderSkipped=null),f._updateElementGeometry(e,r,s,I),e.pivot()},_updateElementGeometry:function(e,r,s,f){var x=this,D=e._model,I=x._getValueScale(),F=I.getBasePixel(),O=I.isHorizontal(),W=x._ruler||x.getRuler(),Z=x.calculateBarValuePixels(x.index,r,f),ee=x.calculateBarIndexPixels(x.index,r,W,f);D.horizontal=O,D.base=s?F:Z.base,D.x=O?s?F:Z.head:ee.center,D.y=O?ee.center:s?F:Z.head,D.height=O?ee.size:void 0,D.width=O?void 0:ee.size},_getStacks:function(e){var r=this,s=r._getIndexScale(),f=s._getMatchingVisibleMetas(r._type),x=s.options.stacked,D=f.length,I=[],F,O;for(F=0;F<D&&(O=f[F],(x===!1||I.indexOf(O.stack)===-1||x===void 0&&O.stack===void 0)&&I.push(O.stack),O.index!==e);++F);return I},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,r){var s=this._getStacks(e),f=r!==void 0?s.indexOf(r):-1;return f===-1?s.length-1:f},getRuler:function(){var e=this,r=e._getIndexScale(),s=[],f,x;for(f=0,x=e.getMeta().data.length;f<x;++f)s.push(r.getPixelForValue(null,f,e.index));return{pixels:s,start:r._startPixel,end:r._endPixel,stackCount:e.getStackCount(),scale:r}},calculateBarValuePixels:function(e,r,s){var f=this,x=f.chart,D=f._getValueScale(),I=D.isHorizontal(),F=x.data.datasets,O=D._getMatchingVisibleMetas(f._type),W=D._parseValue(F[e].data[r]),Z=s.minBarLength,ee=D.options.stacked,fe=f.getMeta().stack,Ee=W.start===void 0?0:W.max>=0&&W.min>=0?W.min:W.max,De=W.start===void 0?W.end:W.max>=0&&W.min>=0?W.max-W.min:W.min-W.max,Ie=O.length,Pe,rt,wt,It,Zt,Kt,fr;if(ee||ee===void 0&&fe!==void 0)for(Pe=0;Pe<Ie&&(rt=O[Pe],rt.index!==e);++Pe)rt.stack===fe&&(fr=D._parseValue(F[rt.index].data[r]),wt=fr.start===void 0?fr.end:fr.min>=0&&fr.max>=0?fr.max:fr.min,(W.min<0&&wt<0||W.max>=0&&wt>0)&&(Ee+=wt));return It=D.getPixelForValue(Ee),Zt=D.getPixelForValue(Ee+De),Kt=Zt-It,Z!==void 0&&Math.abs(Kt)<Z&&(Kt=Z,De>=0&&!I||De<0&&I?Zt=It-Z:Zt=It+Z),{size:Kt,base:It,head:Zt,center:Zt+Kt/2}},calculateBarIndexPixels:function(e,r,s,f){var x=this,D=f.barThickness==="flex"?Bi(r,s,f):ia(r,s,f),I=x.getStackIndex(e,x.getMeta().stack),F=D.start+D.chunk*I+D.chunk/2,O=Math.min(fn(f.maxBarThickness,1/0),D.chunk*D.ratio);return{base:F-O/2,head:F+O/2,center:F,size:O}},draw:function(){var e=this,r=e.chart,s=e._getValueScale(),f=e.getMeta().data,x=e.getDataset(),D=f.length,I=0;for(te.canvas.clipArea(r.ctx,r.chartArea);I<D;++I){var F=s._parseValue(x.data[I]);!isNaN(F.min)&&!isNaN(F.max)&&f[I].draw()}te.canvas.unclipArea(r.ctx)},_resolveDataElementOptions:function(){var e=this,r=te.extend({},lr.prototype._resolveDataElementOptions.apply(e,arguments)),s=e._getIndexScale().options,f=e._getValueScale().options;return r.barPercentage=fn(s.barPercentage,r.barPercentage),r.barThickness=fn(s.barThickness,r.barThickness),r.categoryPercentage=fn(s.categoryPercentage,r.categoryPercentage),r.maxBarThickness=fn(s.maxBarThickness,r.maxBarThickness),r.minBarLength=fn(f.minBarLength,r.minBarLength),r}}),qn=te.valueOrDefault,ji=te.options.resolve;qe._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,r){var s=r.datasets[e.datasetIndex].label||"",f=r.datasets[e.datasetIndex].data[e.index];return s+": ("+e.xLabel+", "+e.yLabel+", "+f.r+")"}}}});var Vn=lr.extend({dataElementType:Gt.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var r=this,s=r.getMeta(),f=s.data;te.each(f,function(x,D){r.updateElement(x,D,e)})},updateElement:function(e,r,s){var f=this,x=f.getMeta(),D=e.custom||{},I=f.getScaleForId(x.xAxisID),F=f.getScaleForId(x.yAxisID),O=f._resolveDataElementOptions(e,r),W=f.getDataset().data[r],Z=f.index,ee=s?I.getPixelForDecimal(.5):I.getPixelForValue(typeof W=="object"?W:NaN,r,Z),fe=s?F.getBasePixel():F.getPixelForValue(W,r,Z);e._xScale=I,e._yScale=F,e._options=O,e._datasetIndex=Z,e._index=r,e._model={backgroundColor:O.backgroundColor,borderColor:O.borderColor,borderWidth:O.borderWidth,hitRadius:O.hitRadius,pointStyle:O.pointStyle,rotation:O.rotation,radius:s?0:O.radius,skip:D.skip||isNaN(ee)||isNaN(fe),x:ee,y:fe},e.pivot()},setHoverStyle:function(e){var r=e._model,s=e._options,f=te.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,radius:r.radius},r.backgroundColor=qn(s.hoverBackgroundColor,f(s.backgroundColor)),r.borderColor=qn(s.hoverBorderColor,f(s.borderColor)),r.borderWidth=qn(s.hoverBorderWidth,s.borderWidth),r.radius=s.radius+s.hoverRadius},_resolveDataElementOptions:function(e,r){var s=this,f=s.chart,x=s.getDataset(),D=e.custom||{},I=x.data[r]||{},F=lr.prototype._resolveDataElementOptions.apply(s,arguments),O={chart:f,dataIndex:r,dataset:x,datasetIndex:s.index};return s._cachedDataOpts===F&&(F=te.extend({},F)),F.radius=ji([D.radius,I.r,s._config.radius,f.options.elements.point.radius],O,r),F}}),ei=te.valueOrDefault,mn=Math.PI,hn=mn*2,_r=mn/2;qe._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var r=document.createElement("ul"),s=e.data,f=s.datasets,x=s.labels,D,I,F,O;if(r.setAttribute("class",e.id+"-legend"),f.length)for(D=0,I=f[0].data.length;D<I;++D)F=r.appendChild(document.createElement("li")),O=F.appendChild(document.createElement("span")),O.style.backgroundColor=f[0].backgroundColor[D],x[D]&&F.appendChild(document.createTextNode(x[D]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var r=e.data;return r.labels.length&&r.datasets.length?r.labels.map(function(s,f){var x=e.getDatasetMeta(0),D=x.controller.getStyle(f);return{text:s,fillStyle:D.backgroundColor,strokeStyle:D.borderColor,lineWidth:D.borderWidth,hidden:isNaN(r.datasets[0].data[f])||x.data[f].hidden,index:f}}):[]}},onClick:function(e,r){var s=r.index,f=this.chart,x,D,I;for(x=0,D=(f.data.datasets||[]).length;x<D;++x)I=f.getDatasetMeta(x),I.data[s]&&(I.data[s].hidden=!I.data[s].hidden);f.update()}},cutoutPercentage:50,rotation:-_r,circumference:hn,tooltips:{callbacks:{title:function(){return""},label:function(e,r){var s=r.labels[e.index],f=": "+r.datasets[e.datasetIndex].data[e.index];return te.isArray(s)?(s=s.slice(),s[0]+=f):s+=f,s}}}});var Mr=lr.extend({dataElementType:Gt.Arc,linkScales:te.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var r=0,s=0;s<e;++s)this.chart.isDatasetVisible(s)&&++r;return r},update:function(e){var r=this,s=r.chart,f=s.chartArea,x=s.options,D=1,I=1,F=0,O=0,W=r.getMeta(),Z=W.data,ee=x.cutoutPercentage/100||0,fe=x.circumference,Ee=r._getRingWeight(r.index),De,Ie,Pe,rt;if(fe<hn){var wt=x.rotation%hn;wt+=wt>=mn?-hn:wt<-mn?hn:0;var It=wt+fe,Zt=Math.cos(wt),Kt=Math.sin(wt),fr=Math.cos(It),ur=Math.sin(It),wr=wt<=0&&It>=0||It>=hn,Cr=wt<=_r&&It>=_r||It>=hn+_r,tn=wt===-mn||It>=mn,Jr=wt<=-_r&&It>=-_r||It>=mn+_r,Vr=tn?-1:Math.min(Zt,Zt*ee,fr,fr*ee),cn=Jr?-1:Math.min(Kt,Kt*ee,ur,ur*ee),Un=wr?1:Math.max(Zt,Zt*ee,fr,fr*ee),ga=Cr?1:Math.max(Kt,Kt*ee,ur,ur*ee);D=(Un-Vr)/2,I=(ga-cn)/2,F=-(Un+Vr)/2,O=-(ga+cn)/2}for(Pe=0,rt=Z.length;Pe<rt;++Pe)Z[Pe]._options=r._resolveDataElementOptions(Z[Pe],Pe);for(s.borderWidth=r.getMaxBorderWidth(),De=(f.right-f.left-s.borderWidth)/D,Ie=(f.bottom-f.top-s.borderWidth)/I,s.outerRadius=Math.max(Math.min(De,Ie)/2,0),s.innerRadius=Math.max(s.outerRadius*ee,0),s.radiusLength=(s.outerRadius-s.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),s.offsetX=F*s.outerRadius,s.offsetY=O*s.outerRadius,W.total=r.calculateTotal(),r.outerRadius=s.outerRadius-s.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-s.radiusLength*Ee,0),Pe=0,rt=Z.length;Pe<rt;++Pe)r.updateElement(Z[Pe],Pe,e)},updateElement:function(e,r,s){var f=this,x=f.chart,D=x.chartArea,I=x.options,F=I.animation,O=(D.left+D.right)/2,W=(D.top+D.bottom)/2,Z=I.rotation,ee=I.rotation,fe=f.getDataset(),Ee=s&&F.animateRotate||e.hidden?0:f.calculateCircumference(fe.data[r])*(I.circumference/hn),De=s&&F.animateScale?0:f.innerRadius,Ie=s&&F.animateScale?0:f.outerRadius,Pe=e._options||{};te.extend(e,{_datasetIndex:f.index,_index:r,_model:{backgroundColor:Pe.backgroundColor,borderColor:Pe.borderColor,borderWidth:Pe.borderWidth,borderAlign:Pe.borderAlign,x:O+x.offsetX,y:W+x.offsetY,startAngle:Z,endAngle:ee,circumference:Ee,outerRadius:Ie,innerRadius:De,label:te.valueAtIndexOrDefault(fe.label,r,x.data.labels[r])}});var rt=e._model;(!s||!F.animateRotate)&&(r===0?rt.startAngle=I.rotation:rt.startAngle=f.getMeta().data[r-1]._model.endAngle,rt.endAngle=rt.startAngle+rt.circumference),e.pivot()},calculateTotal:function(){var e=this.getDataset(),r=this.getMeta(),s=0,f;return te.each(r.data,function(x,D){f=e.data[D],!isNaN(f)&&!x.hidden&&(s+=Math.abs(f))}),s},calculateCircumference:function(e){var r=this.getMeta().total;return r>0&&!isNaN(e)?hn*(Math.abs(e)/r):0},getMaxBorderWidth:function(e){var r=this,s=0,f=r.chart,x,D,I,F,O,W,Z,ee;if(!e){for(x=0,D=f.data.datasets.length;x<D;++x)if(f.isDatasetVisible(x)){I=f.getDatasetMeta(x),e=I.data,x!==r.index&&(O=I.controller);break}}if(!e)return 0;for(x=0,D=e.length;x<D;++x)F=e[x],O?(O._configure(),W=O._resolveDataElementOptions(F,x)):W=F._options,W.borderAlign!=="inner"&&(Z=W.borderWidth,ee=W.hoverBorderWidth,s=Z>s?Z:s,s=ee>s?ee:s);return s},setHoverStyle:function(e){var r=e._model,s=e._options,f=te.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=ei(s.hoverBackgroundColor,f(s.backgroundColor)),r.borderColor=ei(s.hoverBorderColor,f(s.borderColor)),r.borderWidth=ei(s.hoverBorderWidth,s.borderWidth)},_getRingWeightOffset:function(e){for(var r=0,s=0;s<e;++s)this.chart.isDatasetVisible(s)&&(r+=this._getRingWeight(s));return r},_getRingWeight:function(e){return Math.max(ei(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});qe._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),qe._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Di=Ci.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Xr=te.valueOrDefault,Er=te.options.resolve,Qt=te.canvas._isPointInArea;qe._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});function Gn(e,r){var s=e&&e.options.ticks||{},f=s.reverse,x=s.min===void 0?r:0,D=s.max===void 0?r:0;return{start:f?D:x,end:f?x:D}}function zn(e,r,s){var f=s/2,x=Gn(e,f),D=Gn(r,f);return{top:D.end,right:x.end,bottom:D.start,left:x.start}}function Ir(e){var r,s,f,x;return te.isObject(e)?(r=e.top,s=e.right,f=e.bottom,x=e.left):r=s=f=x=e,{top:r,right:s,bottom:f,left:x}}var pn=lr.extend({datasetElementType:Gt.Line,dataElementType:Gt.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var r=this,s=r.getMeta(),f=s.dataset,x=s.data||[],D=r.chart.options,I=r._config,F=r._showLine=Xr(I.showLine,D.showLines),O,W;for(r._xScale=r.getScaleForId(s.xAxisID),r._yScale=r.getScaleForId(s.yAxisID),F&&(I.tension!==void 0&&I.lineTension===void 0&&(I.lineTension=I.tension),f._scale=r._yScale,f._datasetIndex=r.index,f._children=x,f._model=r._resolveDatasetElementOptions(f),f.pivot()),O=0,W=x.length;O<W;++O)r.updateElement(x[O],O,e);for(F&&f._model.tension!==0&&r.updateBezierControlPoints(),O=0,W=x.length;O<W;++O)x[O].pivot()},updateElement:function(e,r,s){var f=this,x=f.getMeta(),D=e.custom||{},I=f.getDataset(),F=f.index,O=I.data[r],W=f._xScale,Z=f._yScale,ee=x.dataset._model,fe,Ee,De=f._resolveDataElementOptions(e,r);fe=W.getPixelForValue(typeof O=="object"?O:NaN,r,F),Ee=s?Z.getBasePixel():f.calculatePointY(O,r,F),e._xScale=W,e._yScale=Z,e._options=De,e._datasetIndex=F,e._index=r,e._model={x:fe,y:Ee,skip:D.skip||isNaN(fe)||isNaN(Ee),radius:De.radius,pointStyle:De.pointStyle,rotation:De.rotation,backgroundColor:De.backgroundColor,borderColor:De.borderColor,borderWidth:De.borderWidth,tension:Xr(D.tension,ee?ee.tension:0),steppedLine:ee?ee.steppedLine:!1,hitRadius:De.hitRadius}},_resolveDatasetElementOptions:function(e){var r=this,s=r._config,f=e.custom||{},x=r.chart.options,D=x.elements.line,I=lr.prototype._resolveDatasetElementOptions.apply(r,arguments);return I.spanGaps=Xr(s.spanGaps,x.spanGaps),I.tension=Xr(s.lineTension,D.tension),I.steppedLine=Er([f.steppedLine,s.steppedLine,D.stepped]),I.clip=Ir(Xr(s.clip,zn(r._xScale,r._yScale,I.borderWidth))),I},calculatePointY:function(e,r,s){var f=this,x=f.chart,D=f._yScale,I=0,F=0,O,W,Z,ee,fe,Ee,De;if(D.options.stacked){for(fe=+D.getRightValue(e),Ee=x._getSortedVisibleDatasetMetas(),De=Ee.length,O=0;O<De&&(Z=Ee[O],Z.index!==s);++O)W=x.data.datasets[Z.index],Z.type==="line"&&Z.yAxisID===D.id&&(ee=+D.getRightValue(W.data[r]),ee<0?F+=ee||0:I+=ee||0);return fe<0?D.getPixelForValue(F+fe):D.getPixelForValue(I+fe)}return D.getPixelForValue(e)},updateBezierControlPoints:function(){var e=this,r=e.chart,s=e.getMeta(),f=s.dataset._model,x=r.chartArea,D=s.data||[],I,F,O,W;f.spanGaps&&(D=D.filter(function(ee){return!ee._model.skip}));function Z(ee,fe,Ee){return Math.max(Math.min(ee,Ee),fe)}if(f.cubicInterpolationMode==="monotone")te.splineCurveMonotone(D);else for(I=0,F=D.length;I<F;++I)O=D[I]._model,W=te.splineCurve(te.previousItem(D,I)._model,O,te.nextItem(D,I)._model,f.tension),O.controlPointPreviousX=W.previous.x,O.controlPointPreviousY=W.previous.y,O.controlPointNextX=W.next.x,O.controlPointNextY=W.next.y;if(r.options.elements.line.capBezierPoints)for(I=0,F=D.length;I<F;++I)O=D[I]._model,Qt(O,x)&&(I>0&&Qt(D[I-1]._model,x)&&(O.controlPointPreviousX=Z(O.controlPointPreviousX,x.left,x.right),O.controlPointPreviousY=Z(O.controlPointPreviousY,x.top,x.bottom)),I<D.length-1&&Qt(D[I+1]._model,x)&&(O.controlPointNextX=Z(O.controlPointNextX,x.left,x.right),O.controlPointNextY=Z(O.controlPointNextY,x.top,x.bottom)))},draw:function(){var e=this,r=e.chart,s=e.getMeta(),f=s.data||[],x=r.chartArea,D=r.canvas,I=0,F=f.length,O;for(e._showLine&&(O=s.dataset._model.clip,te.canvas.clipArea(r.ctx,{left:O.left===!1?0:x.left-O.left,right:O.right===!1?D.width:x.right+O.right,top:O.top===!1?0:x.top-O.top,bottom:O.bottom===!1?D.height:x.bottom+O.bottom}),s.dataset.draw(),te.canvas.unclipArea(r.ctx));I<F;++I)f[I].draw(x)},setHoverStyle:function(e){var r=e._model,s=e._options,f=te.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,radius:r.radius},r.backgroundColor=Xr(s.hoverBackgroundColor,f(s.backgroundColor)),r.borderColor=Xr(s.hoverBorderColor,f(s.borderColor)),r.borderWidth=Xr(s.hoverBorderWidth,s.borderWidth),r.radius=Xr(s.hoverRadius,s.radius)}}),Or=te.options.resolve;qe._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var r=document.createElement("ul"),s=e.data,f=s.datasets,x=s.labels,D,I,F,O;if(r.setAttribute("class",e.id+"-legend"),f.length)for(D=0,I=f[0].data.length;D<I;++D)F=r.appendChild(document.createElement("li")),O=F.appendChild(document.createElement("span")),O.style.backgroundColor=f[0].backgroundColor[D],x[D]&&F.appendChild(document.createTextNode(x[D]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var r=e.data;return r.labels.length&&r.datasets.length?r.labels.map(function(s,f){var x=e.getDatasetMeta(0),D=x.controller.getStyle(f);return{text:s,fillStyle:D.backgroundColor,strokeStyle:D.borderColor,lineWidth:D.borderWidth,hidden:isNaN(r.datasets[0].data[f])||x.data[f].hidden,index:f}}):[]}},onClick:function(e,r){var s=r.index,f=this.chart,x,D,I;for(x=0,D=(f.data.datasets||[]).length;x<D;++x)I=f.getDatasetMeta(x),I.data[s].hidden=!I.data[s].hidden;f.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,r){return r.labels[e.index]+": "+e.yLabel}}}});var Wi=lr.extend({dataElementType:Gt.Arc,linkScales:te.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var r=this,s=r.getDataset(),f=r.getMeta(),x=r.chart.options.startAngle||0,D=r._starts=[],I=r._angles=[],F=f.data,O,W,Z;for(r._updateRadius(),f.count=r.countVisibleElements(),O=0,W=s.data.length;O<W;O++)D[O]=x,Z=r._computeAngle(O),I[O]=Z,x+=Z;for(O=0,W=F.length;O<W;++O)F[O]._options=r._resolveDataElementOptions(F[O],O),r.updateElement(F[O],O,e)},_updateRadius:function(){var e=this,r=e.chart,s=r.chartArea,f=r.options,x=Math.min(s.right-s.left,s.bottom-s.top);r.outerRadius=Math.max(x/2,0),r.innerRadius=Math.max(f.cutoutPercentage?r.outerRadius/100*f.cutoutPercentage:1,0),r.radiusLength=(r.outerRadius-r.innerRadius)/r.getVisibleDatasetCount(),e.outerRadius=r.outerRadius-r.radiusLength*e.index,e.innerRadius=e.outerRadius-r.radiusLength},updateElement:function(e,r,s){var f=this,x=f.chart,D=f.getDataset(),I=x.options,F=I.animation,O=x.scale,W=x.data.labels,Z=O.xCenter,ee=O.yCenter,fe=I.startAngle,Ee=e.hidden?0:O.getDistanceFromCenterForValue(D.data[r]),De=f._starts[r],Ie=De+(e.hidden?0:f._angles[r]),Pe=F.animateScale?0:O.getDistanceFromCenterForValue(D.data[r]),rt=e._options||{};te.extend(e,{_datasetIndex:f.index,_index:r,_scale:O,_model:{backgroundColor:rt.backgroundColor,borderColor:rt.borderColor,borderWidth:rt.borderWidth,borderAlign:rt.borderAlign,x:Z,y:ee,innerRadius:0,outerRadius:s?Pe:Ee,startAngle:s&&F.animateRotate?fe:De,endAngle:s&&F.animateRotate?fe:Ie,label:te.valueAtIndexOrDefault(W,r,W[r])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),r=this.getMeta(),s=0;return te.each(r.data,function(f,x){!isNaN(e.data[x])&&!f.hidden&&s++}),s},setHoverStyle:function(e){var r=e._model,s=e._options,f=te.getHoverColor,x=te.valueOrDefault;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=x(s.hoverBackgroundColor,f(s.backgroundColor)),r.borderColor=x(s.hoverBorderColor,f(s.borderColor)),r.borderWidth=x(s.hoverBorderWidth,s.borderWidth)},_computeAngle:function(e){var r=this,s=this.getMeta().count,f=r.getDataset(),x=r.getMeta();if(isNaN(f.data[e])||x.data[e].hidden)return 0;var D={chart:r.chart,dataIndex:e,dataset:f,datasetIndex:r.index};return Or([r.chart.options.elements.arc.angle,2*Math.PI/s],D,e)}});qe._set("pie",te.clone(qe.doughnut)),qe._set("pie",{cutoutPercentage:0});var aa=Mr,Bn=te.valueOrDefault;qe._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var ti=lr.extend({datasetElementType:Gt.Line,dataElementType:Gt.Point,linkScales:te.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var r=this,s=r.getMeta(),f=s.dataset,x=s.data||[],D=r.chart.scale,I=r._config,F,O;for(I.tension!==void 0&&I.lineTension===void 0&&(I.lineTension=I.tension),f._scale=D,f._datasetIndex=r.index,f._children=x,f._loop=!0,f._model=r._resolveDatasetElementOptions(f),f.pivot(),F=0,O=x.length;F<O;++F)r.updateElement(x[F],F,e);for(r.updateBezierControlPoints(),F=0,O=x.length;F<O;++F)x[F].pivot()},updateElement:function(e,r,s){var f=this,x=e.custom||{},D=f.getDataset(),I=f.chart.scale,F=I.getPointPositionForValue(r,D.data[r]),O=f._resolveDataElementOptions(e,r),W=f.getMeta().dataset._model,Z=s?I.xCenter:F.x,ee=s?I.yCenter:F.y;e._scale=I,e._options=O,e._datasetIndex=f.index,e._index=r,e._model={x:Z,y:ee,skip:x.skip||isNaN(Z)||isNaN(ee),radius:O.radius,pointStyle:O.pointStyle,rotation:O.rotation,backgroundColor:O.backgroundColor,borderColor:O.borderColor,borderWidth:O.borderWidth,tension:Bn(x.tension,W?W.tension:0),hitRadius:O.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,r=e._config,s=e.chart.options,f=lr.prototype._resolveDatasetElementOptions.apply(e,arguments);return f.spanGaps=Bn(r.spanGaps,s.spanGaps),f.tension=Bn(r.lineTension,s.elements.line.tension),f},updateBezierControlPoints:function(){var e=this,r=e.getMeta(),s=e.chart.chartArea,f=r.data||[],x,D,I,F;r.dataset._model.spanGaps&&(f=f.filter(function(W){return!W._model.skip}));function O(W,Z,ee){return Math.max(Math.min(W,ee),Z)}for(x=0,D=f.length;x<D;++x)I=f[x]._model,F=te.splineCurve(te.previousItem(f,x,!0)._model,I,te.nextItem(f,x,!0)._model,I.tension),I.controlPointPreviousX=O(F.previous.x,s.left,s.right),I.controlPointPreviousY=O(F.previous.y,s.top,s.bottom),I.controlPointNextX=O(F.next.x,s.left,s.right),I.controlPointNextY=O(F.next.y,s.top,s.bottom)},setHoverStyle:function(e){var r=e._model,s=e._options,f=te.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,radius:r.radius},r.backgroundColor=Bn(s.hoverBackgroundColor,f(s.backgroundColor)),r.borderColor=Bn(s.hoverBorderColor,f(s.borderColor)),r.borderWidth=Bn(s.hoverBorderWidth,s.borderWidth),r.radius=Bn(s.hoverRadius,s.radius)}});qe._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),qe._set("global",{datasets:{scatter:{showLine:!1}}});var nn=pn,Ti={bar:Ci,bubble:Vn,doughnut:Mr,horizontalBar:Di,line:pn,polarArea:Wi,pie:aa,radar:ti,scatter:nn};function Sn(e,r){return e.native?{x:e.x,y:e.y}:te.getRelativePosition(e,r)}function Yn(e,r){var s=e._getSortedVisibleDatasetMetas(),f,x,D,I,F,O;for(x=0,I=s.length;x<I;++x)for(f=s[x].data,D=0,F=f.length;D<F;++D)O=f[D],O._view.skip||r(O)}function Mi(e,r){var s=[];return Yn(e,function(f){f.inRange(r.x,r.y)&&s.push(f)}),s}function ri(e,r,s,f){var x=Number.POSITIVE_INFINITY,D=[];return Yn(e,function(I){if(!(s&&!I.inRange(r.x,r.y))){var F=I.getCenterPoint(),O=f(r,F);O<x?(D=[I],x=O):O===x&&D.push(I)}}),D}function hi(e){var r=e.indexOf("x")!==-1,s=e.indexOf("y")!==-1;return function(f,x){var D=r?Math.abs(f.x-x.x):0,I=s?Math.abs(f.y-x.y):0;return Math.sqrt(Math.pow(D,2)+Math.pow(I,2))}}function Ri(e,r,s){var f=Sn(r,e);s.axis=s.axis||"x";var x=hi(s.axis),D=s.intersect?Mi(e,f):ri(e,f,!1,x),I=[];return D.length?(e._getSortedVisibleDatasetMetas().forEach(function(F){var O=F.data[D[0]._index];O&&!O._view.skip&&I.push(O)}),I):[]}var ni={modes:{single:function(e,r){var s=Sn(r,e),f=[];return Yn(e,function(x){if(x.inRange(s.x,s.y))return f.push(x),f}),f.slice(0,1)},label:Ri,index:Ri,dataset:function(e,r,s){var f=Sn(r,e);s.axis=s.axis||"xy";var x=hi(s.axis),D=s.intersect?Mi(e,f):ri(e,f,!1,x);return D.length>0&&(D=e.getDatasetMeta(D[0]._datasetIndex).data),D},"x-axis":function(e,r){return Ri(e,r,{intersect:!1})},point:function(e,r){var s=Sn(r,e);return Mi(e,s)},nearest:function(e,r,s){var f=Sn(r,e);s.axis=s.axis||"xy";var x=hi(s.axis);return ri(e,f,s.intersect,x)},x:function(e,r,s){var f=Sn(r,e),x=[],D=!1;return Yn(e,function(I){I.inXRange(f.x)&&x.push(I),I.inRange(f.x,f.y)&&(D=!0)}),s.intersect&&!D&&(x=[]),x},y:function(e,r,s){var f=Sn(r,e),x=[],D=!1;return Yn(e,function(I){I.inYRange(f.y)&&x.push(I),I.inRange(f.x,f.y)&&(D=!0)}),s.intersect&&!D&&(x=[]),x}}},Xn=te.extend;function jn(e,r){return te.where(e,function(s){return s.pos===r})}function ii(e,r){return e.sort(function(s,f){var x=r?f:s,D=r?s:f;return x.weight===D.weight?x.index-D.index:x.weight-D.weight})}function Ui(e){var r=[],s,f,x;for(s=0,f=(e||[]).length;s<f;++s)x=e[s],r.push({index:s,box:x,pos:x.position,horizontal:x.isHorizontal(),weight:x.weight});return r}function wa(e,r){var s,f,x;for(s=0,f=e.length;s<f;++s)x=e[s],x.width=x.horizontal?x.box.fullWidth&&r.availableWidth:r.vBoxMaxWidth,x.height=x.horizontal&&r.hBoxMaxHeight}function _i(e){var r=Ui(e),s=ii(jn(r,"left"),!0),f=ii(jn(r,"right")),x=ii(jn(r,"top"),!0),D=ii(jn(r,"bottom"));return{leftAndTop:s.concat(x),rightAndBottom:f.concat(D),chartArea:jn(r,"chartArea"),vertical:s.concat(f),horizontal:x.concat(D)}}function oa(e,r,s,f){return Math.max(e[s],r[s])+Math.max(e[f],r[f])}function Ii(e,r,s){var f=s.box,x=e.maxPadding,D,I;if(s.size&&(e[s.pos]-=s.size),s.size=s.horizontal?f.height:f.width,e[s.pos]+=s.size,f.getPadding){var F=f.getPadding();x.top=Math.max(x.top,F.top),x.left=Math.max(x.left,F.left),x.bottom=Math.max(x.bottom,F.bottom),x.right=Math.max(x.right,F.right)}if(D=r.outerWidth-oa(x,e,"left","right"),I=r.outerHeight-oa(x,e,"top","bottom"),D!==e.w||I!==e.h){e.w=D,e.h=I;var O=s.horizontal?[D,e.w]:[I,e.h];return O[0]!==O[1]&&(!isNaN(O[0])||!isNaN(O[1]))}}function pi(e){var r=e.maxPadding;function s(f){var x=Math.max(r[f]-e[f],0);return e[f]+=x,x}e.y+=s("top"),e.x+=s("left"),s("right"),s("bottom")}function Oi(e,r){var s=r.maxPadding;function f(x){var D={left:0,top:0,right:0,bottom:0};return x.forEach(function(I){D[I]=Math.max(r[I],s[I])}),D}return f(e?["left","right"]:["top","bottom"])}function ai(e,r,s){var f=[],x,D,I,F,O,W;for(x=0,D=e.length;x<D;++x)I=e[x],F=I.box,F.update(I.width||r.w,I.height||r.h,Oi(I.horizontal,r)),Ii(r,s,I)&&(W=!0,f.length&&(O=!0)),F.fullWidth||f.push(I);return O&&ai(f,r,s)||W}function ki(e,r,s){var f=s.padding,x=r.x,D=r.y,I,F,O,W;for(I=0,F=e.length;I<F;++I)O=e[I],W=O.box,O.horizontal?(W.left=W.fullWidth?f.left:r.left,W.right=W.fullWidth?s.outerWidth-f.right:r.left+r.w,W.top=D,W.bottom=D+W.height,W.width=W.right-W.left,D=W.bottom):(W.left=x,W.right=x+W.width,W.top=r.top,W.bottom=r.top+r.h,W.height=W.bottom-W.top,x=W.right);r.x=x,r.y=D}qe._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Kr={defaults:{},addBox:function(e,r){e.boxes||(e.boxes=[]),r.fullWidth=r.fullWidth||!1,r.position=r.position||"top",r.weight=r.weight||0,r._layers=r._layers||function(){return[{z:0,draw:function(){r.draw.apply(r,arguments)}}]},e.boxes.push(r)},removeBox:function(e,r){var s=e.boxes?e.boxes.indexOf(r):-1;s!==-1&&e.boxes.splice(s,1)},configure:function(e,r,s){for(var f=["fullWidth","position","weight"],x=f.length,D=0,I;D<x;++D)I=f[D],s.hasOwnProperty(I)&&(r[I]=s[I])},update:function(e,r,s){if(e){var f=e.options.layout||{},x=te.options.toPadding(f.padding),D=r-x.width,I=s-x.height,F=_i(e.boxes),O=F.vertical,W=F.horizontal,Z=Object.freeze({outerWidth:r,outerHeight:s,padding:x,availableWidth:D,vBoxMaxWidth:D/2/O.length,hBoxMaxHeight:I/2}),ee=Xn({maxPadding:Xn({},x),w:D,h:I,x:x.left,y:x.top},x);wa(O.concat(W),Z),ai(O,ee,Z),ai(W,ee,Z)&&ai(O,ee,Z),pi(ee),ki(F.leftAndTop,ee,Z),ee.x+=ee.w,ee.y+=ee.h,ki(F.rightAndBottom,ee,Z),e.chartArea={left:ee.left,top:ee.top,right:ee.left+ee.w,bottom:ee.top+ee.h},te.each(F.chartArea,function(fe){var Ee=fe.box;Xn(Ee,e.chartArea),Ee.update(ee.w,ee.h)})}}},y={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},_=`/*\r
 * DOM element rendering detection\r
 * https://davidwalsh.name/detect-node-insertion\r
 */\r
@keyframes chartjs-render-animation {\r
	from { opacity: 0.99; }\r
	to { opacity: 1; }\r
}\r
\r
.chartjs-render-monitor {\r
	animation: chartjs-render-animation 0.001s;\r
}\r
\r
/*\r
 * DOM element resizing detection\r
 * https://github.com/marcj/css-element-queries\r
 */\r
.chartjs-size-monitor,\r
.chartjs-size-monitor-expand,\r
.chartjs-size-monitor-shrink {\r
	position: absolute;\r
	direction: ltr;\r
	left: 0;\r
	top: 0;\r
	right: 0;\r
	bottom: 0;\r
	overflow: hidden;\r
	pointer-events: none;\r
	visibility: hidden;\r
	z-index: -1;\r
}\r
\r
.chartjs-size-monitor-expand > div {\r
	position: absolute;\r
	width: 1000000px;\r
	height: 1000000px;\r
	left: 0;\r
	top: 0;\r
}\r
\r
.chartjs-size-monitor-shrink > div {\r
	position: absolute;\r
	width: 200%;\r
	height: 200%;\r
	left: 0;\r
	top: 0;\r
}\r
`,L=Object.freeze({__proto__:null,default:_}),z=B(L),J="$chartjs",K="chartjs-",ae=K+"size-monitor",se=K+"render-monitor",le=K+"render-animation",ve=["animationstart","webkitAnimationStart"],be={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Re(e,r){var s=te.getStyle(e,r),f=s&&s.match(/^(\d+)(\.\d+)?px$/);return f?Number(f[1]):void 0}function ke(e,r){var s=e.style,f=e.getAttribute("height"),x=e.getAttribute("width");if(e[J]={initial:{height:f,width:x,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",x===null||x===""){var D=Re(e,"width");D!==void 0&&(e.width=D)}if(f===null||f==="")if(e.style.height==="")e.height=e.width/(r.options.aspectRatio||2);else{var I=Re(e,"height");D!==void 0&&(e.height=I)}return e}var Be=function(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,r)}catch{}return e}(),Qe=Be?{passive:!0}:!1;function pt(e,r,s){e.addEventListener(r,s,Qe)}function gt(e,r,s){e.removeEventListener(r,s,Qe)}function xt(e,r,s,f,x){return{type:e,chart:r,native:x||null,x:s!==void 0?s:null,y:f!==void 0?f:null}}function Ge(e,r){var s=be[e.type]||e.type,f=te.getRelativePosition(e,r);return xt(s,r,f.x,f.y,e)}function Xt(e,r){var s=!1,f=[];return function(){f=Array.prototype.slice.call(arguments),r=r||this,s||(s=!0,te.requestAnimFrame.call(window,function(){s=!1,e.apply(r,f)}))}}function Nt(e){var r=document.createElement("div");return r.className=e||"",r}function gr(e){var r=1e6,s=Nt(ae),f=Nt(ae+"-expand"),x=Nt(ae+"-shrink");f.appendChild(Nt()),x.appendChild(Nt()),s.appendChild(f),s.appendChild(x),s._reset=function(){f.scrollLeft=r,f.scrollTop=r,x.scrollLeft=r,x.scrollTop=r};var D=function(){s._reset(),e()};return pt(f,"scroll",D.bind(f,"expand")),pt(x,"scroll",D.bind(x,"shrink")),s}function Qr(e,r){var s=e[J]||(e[J]={}),f=s.renderProxy=function(x){x.animationName===le&&r()};te.each(ve,function(x){pt(e,x,f)}),s.reflow=!!e.offsetParent,e.classList.add(se)}function an(e){var r=e[J]||{},s=r.renderProxy;s&&(te.each(ve,function(f){gt(e,f,s)}),delete r.renderProxy),e.classList.remove(se)}function on(e,r,s){var f=e[J]||(e[J]={}),x=f.resizer=gr(Xt(function(){if(f.resizer){var D=s.options.maintainAspectRatio&&e.parentNode,I=D?D.clientWidth:0;r(xt("resize",s)),D&&D.clientWidth<I&&s.canvas&&r(xt("resize",s))}}));Qr(e,function(){if(f.resizer){var D=e.parentNode;D&&D!==x.parentNode&&D.insertBefore(x,D.firstChild),x._reset()}})}function sn(e){var r=e[J]||{},s=r.resizer;delete r.resizer,an(e),s&&s.parentNode&&s.parentNode.removeChild(s)}function Zr(e,r){var s=e[J]||(e[J]={});if(!s.containsStyles){s.containsStyles=!0,r=`/* Chart.js */
`+r;var f=document.createElement("style");f.setAttribute("type","text/css"),f.appendChild(document.createTextNode(r)),e.appendChild(f)}}var Ar={disableCSSInjection:!1,_enabled:typeof window<"u"&&typeof document<"u",_ensureLoaded:function(e){if(!this.disableCSSInjection){var r=e.getRootNode?e.getRootNode():document,s=r.host?r:document.head;Zr(s,z)}},acquireContext:function(e,r){typeof e=="string"?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var s=e&&e.getContext&&e.getContext("2d");return s&&s.canvas===e?(this._ensureLoaded(e),ke(e,r),s):null},releaseContext:function(e){var r=e.canvas;if(r[J]){var s=r[J].initial;["height","width"].forEach(function(f){var x=s[f];te.isNullOrUndef(x)?r.removeAttribute(f):r.setAttribute(f,x)}),te.each(s.style||{},function(f,x){r.style[x]=f}),r.width=r.width,delete r[J]}},addEventListener:function(e,r,s){var f=e.canvas;if(r==="resize"){on(f,s,e);return}var x=s[J]||(s[J]={}),D=x.proxies||(x.proxies={}),I=D[e.id+"_"+r]=function(F){s(Ge(F,e))};pt(f,r,I)},removeEventListener:function(e,r,s){var f=e.canvas;if(r==="resize"){sn(f);return}var x=s[J]||{},D=x.proxies||{},I=D[e.id+"_"+r];I&&gt(f,r,I)}};te.addEvent=pt,te.removeEvent=gt;var _n=Ar._enabled?Ar:y,xn=te.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},_n);qe._set("global",{plugins:{}});var zt={_plugins:[],_cacheId:0,register:function(e){var r=this._plugins;[].concat(e).forEach(function(s){r.indexOf(s)===-1&&r.push(s)}),this._cacheId++},unregister:function(e){var r=this._plugins;[].concat(e).forEach(function(s){var f=r.indexOf(s);f!==-1&&r.splice(f,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,r,s){var f=this.descriptors(e),x=f.length,D,I,F,O,W;for(D=0;D<x;++D)if(I=f[D],F=I.plugin,W=F[r],typeof W=="function"&&(O=[e].concat(s||[]),O.push(I.options),W.apply(F,O)===!1))return!1;return!0},descriptors:function(e){var r=e.$plugins||(e.$plugins={});if(r.id===this._cacheId)return r.descriptors;var s=[],f=[],x=e&&e.config||{},D=x.options&&x.options.plugins||{};return this._plugins.concat(x.plugins||[]).forEach(function(I){var F=s.indexOf(I);if(F===-1){var O=I.id,W=D[O];W!==!1&&(W===!0&&(W=te.clone(qe.global.plugins[O])),s.push(I),f.push({plugin:I,options:W||{}}))}}),r.descriptors=f,r.id=this._cacheId,f},_invalidate:function(e){delete e.$plugins}},Rr={constructors:{},defaults:{},registerScaleType:function(e,r,s){this.constructors[e]=r,this.defaults[e]=te.clone(s)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?te.merge(Object.create(null),[qe.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,r){var s=this;s.defaults.hasOwnProperty(e)&&(s.defaults[e]=te.extend(s.defaults[e],r))},addScalesToLayout:function(e){te.each(e.scales,function(r){r.fullWidth=r.options.fullWidth,r.position=r.options.position,r.weight=r.options.weight,Kr.addBox(e,r)})}},Nr=te.valueOrDefault,qr=te.rtl.getRtlAdapter;qe._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:te.noop,title:function(e,r){var s="",f=r.labels,x=f?f.length:0;if(e.length>0){var D=e[0];D.label?s=D.label:D.xLabel?s=D.xLabel:x>0&&D.index<x&&(s=f[D.index])}return s},afterTitle:te.noop,beforeBody:te.noop,beforeLabel:te.noop,label:function(e,r){var s=r.datasets[e.datasetIndex].label||"";return s&&(s+=": "),te.isNullOrUndef(e.value)?s+=e.yLabel:s+=e.value,s},labelColor:function(e,r){var s=r.getDatasetMeta(e.datasetIndex),f=s.data[e.index],x=f._view;return{borderColor:x.borderColor,backgroundColor:x.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:te.noop,afterBody:te.noop,beforeFooter:te.noop,footer:te.noop,afterFooter:te.noop}}});var en={average:function(e){if(!e.length)return!1;var r,s,f=0,x=0,D=0;for(r=0,s=e.length;r<s;++r){var I=e[r];if(I&&I.hasValue()){var F=I.tooltipPosition();f+=F.x,x+=F.y,++D}}return{x:f/D,y:x/D}},nearest:function(e,r){var s=r.x,f=r.y,x=Number.POSITIVE_INFINITY,D,I,F;for(D=0,I=e.length;D<I;++D){var O=e[D];if(O&&O.hasValue()){var W=O.getCenterPoint(),Z=te.distanceBetweenPoints(r,W);Z<x&&(x=Z,F=O)}}if(F){var ee=F.tooltipPosition();s=ee.x,f=ee.y}return{x:s,y:f}}};function Fr(e,r){return r&&(te.isArray(r)?Array.prototype.push.apply(e,r):e.push(r)),e}function Hr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function vi(e){var r=e._xScale,s=e._yScale||e._scale,f=e._index,x=e._datasetIndex,D=e._chart.getDatasetMeta(x).controller,I=D._getIndexScale(),F=D._getValueScale();return{xLabel:r?r.getLabelForIndex(f,x):"",yLabel:s?s.getLabelForIndex(f,x):"",label:I?""+I.getLabelForIndex(f,x):"",value:F?""+F.getLabelForIndex(f,x):"",index:f,datasetIndex:x,x:e._model.x,y:e._model.y}}function In(e){var r=qe.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Nr(e.bodyFontFamily,r.defaultFontFamily),_bodyFontStyle:Nr(e.bodyFontStyle,r.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Nr(e.bodyFontSize,r.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Nr(e.titleFontFamily,r.defaultFontFamily),_titleFontStyle:Nr(e.titleFontStyle,r.defaultFontStyle),titleFontSize:Nr(e.titleFontSize,r.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Nr(e.footerFontFamily,r.defaultFontFamily),_footerFontStyle:Nr(e.footerFontStyle,r.defaultFontStyle),footerFontSize:Nr(e.footerFontSize,r.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function On(e,r){var s=e._chart.ctx,f=r.yPadding*2,x=0,D=r.body,I=D.reduce(function(De,Ie){return De+Ie.before.length+Ie.lines.length+Ie.after.length},0);I+=r.beforeBody.length+r.afterBody.length;var F=r.title.length,O=r.footer.length,W=r.titleFontSize,Z=r.bodyFontSize,ee=r.footerFontSize;f+=F*W,f+=F?(F-1)*r.titleSpacing:0,f+=F?r.titleMarginBottom:0,f+=I*Z,f+=I?(I-1)*r.bodySpacing:0,f+=O?r.footerMarginTop:0,f+=O*ee,f+=O?(O-1)*r.footerSpacing:0;var fe=0,Ee=function(De){x=Math.max(x,s.measureText(De).width+fe)};return s.font=te.fontString(W,r._titleFontStyle,r._titleFontFamily),te.each(r.title,Ee),s.font=te.fontString(Z,r._bodyFontStyle,r._bodyFontFamily),te.each(r.beforeBody.concat(r.afterBody),Ee),fe=r.displayColors?Z+2:0,te.each(D,function(De){te.each(De.before,Ee),te.each(De.lines,Ee),te.each(De.after,Ee)}),fe=0,s.font=te.fontString(ee,r._footerFontStyle,r._footerFontFamily),te.each(r.footer,Ee),x+=2*r.xPadding,{width:x,height:f}}function oi(e,r){var s=e._model,f=e._chart,x=e._chart.chartArea,D="center",I="center";s.y<r.height?I="top":s.y>f.height-r.height&&(I="bottom");var F,O,W,Z,ee,fe=(x.left+x.right)/2,Ee=(x.top+x.bottom)/2;I==="center"?(F=function(Ie){return Ie<=fe},O=function(Ie){return Ie>fe}):(F=function(Ie){return Ie<=r.width/2},O=function(Ie){return Ie>=f.width-r.width/2}),W=function(Ie){return Ie+r.width+s.caretSize+s.caretPadding>f.width},Z=function(Ie){return Ie-r.width-s.caretSize-s.caretPadding<0},ee=function(Ie){return Ie<=Ee?"top":"bottom"},F(s.x)?(D="left",W(s.x)&&(D="center",I=ee(s.y))):O(s.x)&&(D="right",Z(s.x)&&(D="center",I=ee(s.y)));var De=e._options;return{xAlign:De.xAlign?De.xAlign:D,yAlign:De.yAlign?De.yAlign:I}}function Ai(e,r,s,f){var x=e.x,D=e.y,I=e.caretSize,F=e.caretPadding,O=e.cornerRadius,W=s.xAlign,Z=s.yAlign,ee=I+F,fe=O+F;return W==="right"?x-=r.width:W==="center"&&(x-=r.width/2,x+r.width>f.width&&(x=f.width-r.width),x<0&&(x=0)),Z==="top"?D+=ee:Z==="bottom"?D-=r.height+ee:D-=r.height/2,Z==="center"?W==="left"?x+=ee:W==="right"&&(x-=ee):W==="left"?x-=fe:W==="right"&&(x+=fe),{x,y:D}}function dr(e,r){return r==="center"?e.x+e.width/2:r==="right"?e.x+e.width-e.xPadding:e.x+e.xPadding}function xr(e){return Fr([],Hr(e))}var yo=ce.extend({initialize:function(){this._model=In(this._options),this._lastActive=[]},getTitle:function(){var e=this,r=e._options,s=r.callbacks,f=s.beforeTitle.apply(e,arguments),x=s.title.apply(e,arguments),D=s.afterTitle.apply(e,arguments),I=[];return I=Fr(I,Hr(f)),I=Fr(I,Hr(x)),I=Fr(I,Hr(D)),I},getBeforeBody:function(){return xr(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,r){var s=this,f=s._options.callbacks,x=[];return te.each(e,function(D){var I={before:[],lines:[],after:[]};Fr(I.before,Hr(f.beforeLabel.call(s,D,r))),Fr(I.lines,f.label.call(s,D,r)),Fr(I.after,Hr(f.afterLabel.call(s,D,r))),x.push(I)}),x},getAfterBody:function(){return xr(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,r=e._options.callbacks,s=r.beforeFooter.apply(e,arguments),f=r.footer.apply(e,arguments),x=r.afterFooter.apply(e,arguments),D=[];return D=Fr(D,Hr(s)),D=Fr(D,Hr(f)),D=Fr(D,Hr(x)),D},update:function(e){var r=this,s=r._options,f=r._model,x=r._model=In(s),D=r._active,I=r._data,F={xAlign:f.xAlign,yAlign:f.yAlign},O={x:f.x,y:f.y},W={width:f.width,height:f.height},Z={x:f.caretX,y:f.caretY},ee,fe;if(D.length){x.opacity=1;var Ee=[],De=[];Z=en[s.position].call(r,D,r._eventPosition);var Ie=[];for(ee=0,fe=D.length;ee<fe;++ee)Ie.push(vi(D[ee]));s.filter&&(Ie=Ie.filter(function(Pe){return s.filter(Pe,I)})),s.itemSort&&(Ie=Ie.sort(function(Pe,rt){return s.itemSort(Pe,rt,I)})),te.each(Ie,function(Pe){Ee.push(s.callbacks.labelColor.call(r,Pe,r._chart)),De.push(s.callbacks.labelTextColor.call(r,Pe,r._chart))}),x.title=r.getTitle(Ie,I),x.beforeBody=r.getBeforeBody(Ie,I),x.body=r.getBody(Ie,I),x.afterBody=r.getAfterBody(Ie,I),x.footer=r.getFooter(Ie,I),x.x=Z.x,x.y=Z.y,x.caretPadding=s.caretPadding,x.labelColors=Ee,x.labelTextColors=De,x.dataPoints=Ie,W=On(this,x),F=oi(this,W),O=Ai(x,W,F,r._chart)}else x.opacity=0;return x.xAlign=F.xAlign,x.yAlign=F.yAlign,x.x=O.x,x.y=O.y,x.width=W.width,x.height=W.height,x.caretX=Z.x,x.caretY=Z.y,r._model=x,e&&s.custom&&s.custom.call(r,x),r},drawCaret:function(e,r){var s=this._chart.ctx,f=this._view,x=this.getCaretPosition(e,r,f);s.lineTo(x.x1,x.y1),s.lineTo(x.x2,x.y2),s.lineTo(x.x3,x.y3)},getCaretPosition:function(e,r,s){var f,x,D,I,F,O,W=s.caretSize,Z=s.cornerRadius,ee=s.xAlign,fe=s.yAlign,Ee=e.x,De=e.y,Ie=r.width,Pe=r.height;if(fe==="center")F=De+Pe/2,ee==="left"?(f=Ee,x=f-W,D=f,I=F+W,O=F-W):(f=Ee+Ie,x=f+W,D=f,I=F-W,O=F+W);else if(ee==="left"?(x=Ee+Z+W,f=x-W,D=x+W):ee==="right"?(x=Ee+Ie-Z-W,f=x-W,D=x+W):(x=s.caretX,f=x-W,D=x+W),fe==="top")I=De,F=I-W,O=I;else{I=De+Pe,F=I+W,O=I;var rt=D;D=f,f=rt}return{x1:f,x2:x,x3:D,y1:I,y2:F,y3:O}},drawTitle:function(e,r,s){var f=r.title,x=f.length,D,I,F;if(x){var O=qr(r.rtl,r.x,r.width);for(e.x=dr(r,r._titleAlign),s.textAlign=O.textAlign(r._titleAlign),s.textBaseline="middle",D=r.titleFontSize,I=r.titleSpacing,s.fillStyle=r.titleFontColor,s.font=te.fontString(D,r._titleFontStyle,r._titleFontFamily),F=0;F<x;++F)s.fillText(f[F],O.x(e.x),e.y+D/2),e.y+=D+I,F+1===x&&(e.y+=r.titleMarginBottom-I)}},drawBody:function(e,r,s){var f=r.bodyFontSize,x=r.bodySpacing,D=r._bodyAlign,I=r.body,F=r.displayColors,O=0,W=F?dr(r,"left"):0,Z=qr(r.rtl,r.x,r.width),ee=function(fr){s.fillText(fr,Z.x(e.x+O),e.y+f/2),e.y+=f+x},fe,Ee,De,Ie,Pe,rt,wt,It,Zt=Z.textAlign(D);for(s.textAlign=D,s.textBaseline="middle",s.font=te.fontString(f,r._bodyFontStyle,r._bodyFontFamily),e.x=dr(r,Zt),s.fillStyle=r.bodyFontColor,te.each(r.beforeBody,ee),O=F&&Zt!=="right"?D==="center"?f/2+1:f+2:0,Pe=0,wt=I.length;Pe<wt;++Pe){for(fe=I[Pe],Ee=r.labelTextColors[Pe],De=r.labelColors[Pe],s.fillStyle=Ee,te.each(fe.before,ee),Ie=fe.lines,rt=0,It=Ie.length;rt<It;++rt){if(F){var Kt=Z.x(W);s.fillStyle=r.legendColorBackground,s.fillRect(Z.leftForLtr(Kt,f),e.y,f,f),s.lineWidth=1,s.strokeStyle=De.borderColor,s.strokeRect(Z.leftForLtr(Kt,f),e.y,f,f),s.fillStyle=De.backgroundColor,s.fillRect(Z.leftForLtr(Z.xPlus(Kt,1),f-2),e.y+1,f-2,f-2),s.fillStyle=Ee}ee(Ie[rt])}te.each(fe.after,ee)}O=0,te.each(r.afterBody,ee),e.y-=x},drawFooter:function(e,r,s){var f=r.footer,x=f.length,D,I;if(x){var F=qr(r.rtl,r.x,r.width);for(e.x=dr(r,r._footerAlign),e.y+=r.footerMarginTop,s.textAlign=F.textAlign(r._footerAlign),s.textBaseline="middle",D=r.footerFontSize,s.fillStyle=r.footerFontColor,s.font=te.fontString(D,r._footerFontStyle,r._footerFontFamily),I=0;I<x;++I)s.fillText(f[I],F.x(e.x),e.y+D/2),e.y+=D+r.footerSpacing}},drawBackground:function(e,r,s,f){s.fillStyle=r.backgroundColor,s.strokeStyle=r.borderColor,s.lineWidth=r.borderWidth;var x=r.xAlign,D=r.yAlign,I=e.x,F=e.y,O=f.width,W=f.height,Z=r.cornerRadius;s.beginPath(),s.moveTo(I+Z,F),D==="top"&&this.drawCaret(e,f),s.lineTo(I+O-Z,F),s.quadraticCurveTo(I+O,F,I+O,F+Z),D==="center"&&x==="right"&&this.drawCaret(e,f),s.lineTo(I+O,F+W-Z),s.quadraticCurveTo(I+O,F+W,I+O-Z,F+W),D==="bottom"&&this.drawCaret(e,f),s.lineTo(I+Z,F+W),s.quadraticCurveTo(I,F+W,I,F+W-Z),D==="center"&&x==="left"&&this.drawCaret(e,f),s.lineTo(I,F+Z),s.quadraticCurveTo(I,F,I+Z,F),s.closePath(),s.fill(),r.borderWidth>0&&s.stroke()},draw:function(){var e=this._chart.ctx,r=this._view;if(r.opacity!==0){var s={width:r.width,height:r.height},f={x:r.x,y:r.y},x=Math.abs(r.opacity<.001)?0:r.opacity,D=r.title.length||r.beforeBody.length||r.body.length||r.afterBody.length||r.footer.length;this._options.enabled&&D&&(e.save(),e.globalAlpha=x,this.drawBackground(f,r,e,s),f.y+=r.yPadding,te.rtl.overrideTextDirection(e,r.textDirection),this.drawTitle(f,r,e),this.drawBody(f,r,e),this.drawFooter(f,r,e),te.rtl.restoreTextDirection(e,r.textDirection),e.restore())}},handleEvent:function(e){var r=this,s=r._options,f=!1;return r._lastActive=r._lastActive||[],e.type==="mouseout"?r._active=[]:(r._active=r._chart.getElementsAtEventForMode(e,s.mode,s),s.reverse&&r._active.reverse()),f=!te.arrayEquals(r._active,r._lastActive),f&&(r._lastActive=r._active,(s.enabled||s.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),f}}),bo=en,Ea=yo;Ea.positioners=bo;var sa=te.valueOrDefault;qe._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});function Kn(){return te.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,r,s,f){if(e==="xAxes"||e==="yAxes"){var x=s[e].length,D,I,F;for(r[e]||(r[e]=[]),D=0;D<x;++D)F=s[e][D],I=sa(F.type,e==="xAxes"?"category":"linear"),D>=r[e].length&&r[e].push({}),!r[e][D].type||F.type&&F.type!==r[e][D].type?te.merge(r[e][D],[Rr.getScaleDefaults(I),F]):te.merge(r[e][D],F)}else te._merger(e,r,s,f)}})}function Sa(){return te.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,r,s,f){var x=r[e]||Object.create(null),D=s[e];e==="scales"?r[e]=Kn(x,D):e==="scale"?r[e]=te.merge(x,[Rr.getScaleDefaults(D.type),D]):te._merger(e,r,s,f)}})}function Vi(e){e=e||Object.create(null);var r=e.data=e.data||{};return r.datasets=r.datasets||[],r.labels=r.labels||[],e.options=Sa(qe.global,qe[e.type],e.options||{}),e}function ir(e){var r=e.options;te.each(e.scales,function(s){Kr.removeBox(e,s)}),r=Sa(qe.global,qe[e.config.type],r),e.options=e.config.options=r,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=r.tooltips,e.tooltip.initialize()}function ja(e,r,s){var f,x=function(D){return D.id===f};do f=r+s++;while(te.findIndex(e,x)>=0);return f}function xa(e){return e==="top"||e==="bottom"}function Ca(e,r){return function(s,f){return s[e]===f[e]?s[r]-f[r]:s[e]-f[e]}}var si=function(e,r){return this.construct(e,r),this};te.extend(si.prototype,{construct:function(e,r){var s=this;r=Vi(r);var f=xn.acquireContext(e,r),x=f&&f.canvas,D=x&&x.height,I=x&&x.width;if(s.id=te.uid(),s.ctx=f,s.canvas=x,s.config=r,s.width=I,s.height=D,s.aspectRatio=D?I/D:null,s.options=r.options,s._bufferedRender=!1,s._layers=[],s.chart=s,s.controller=s,si.instances[s.id]=s,Object.defineProperty(s,"data",{get:function(){return s.config.data},set:function(F){s.config.data=F}}),!f||!x){console.error("Failed to create chart: can't acquire context from the given item");return}s.initialize(),s.update()},initialize:function(){var e=this;return zt.notify(e,"beforeInit"),te.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),zt.notify(e,"afterInit"),e},clear:function(){return te.canvas.clear(this),this},stop:function(){return Ze.cancelAnimation(this),this},resize:function(e){var r=this,s=r.options,f=r.canvas,x=s.maintainAspectRatio&&r.aspectRatio||null,D=Math.max(0,Math.floor(te.getMaximumWidth(f))),I=Math.max(0,Math.floor(x?D/x:te.getMaximumHeight(f)));if(!(r.width===D&&r.height===I)&&(f.width=r.width=D,f.height=r.height=I,f.style.width=D+"px",f.style.height=I+"px",te.retinaScale(r,s.devicePixelRatio),!e)){var F={width:D,height:I};zt.notify(r,"resize",[F]),s.onResize&&s.onResize(r,F),r.stop(),r.update({duration:s.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,r=e.scales||{},s=e.scale;te.each(r.xAxes,function(f,x){f.id||(f.id=ja(r.xAxes,"x-axis-",x))}),te.each(r.yAxes,function(f,x){f.id||(f.id=ja(r.yAxes,"y-axis-",x))}),s&&(s.id=s.id||"scale")},buildOrUpdateScales:function(){var e=this,r=e.options,s=e.scales||{},f=[],x=Object.keys(s).reduce(function(D,I){return D[I]=!1,D},{});r.scales&&(f=f.concat((r.scales.xAxes||[]).map(function(D){return{options:D,dtype:"category",dposition:"bottom"}}),(r.scales.yAxes||[]).map(function(D){return{options:D,dtype:"linear",dposition:"left"}}))),r.scale&&f.push({options:r.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),te.each(f,function(D){var I=D.options,F=I.id,O=sa(I.type,D.dtype);xa(I.position)!==xa(D.dposition)&&(I.position=D.dposition),x[F]=!0;var W=null;if(F in s&&s[F].type===O)W=s[F],W.options=I,W.ctx=e.ctx,W.chart=e;else{var Z=Rr.getScaleConstructor(O);if(!Z)return;W=new Z({id:F,type:O,options:I,ctx:e.ctx,chart:e}),s[W.id]=W}W.mergeTicksOptions(),D.isDefault&&(e.scale=W)}),te.each(x,function(D,I){D||delete s[I]}),e.scales=s,Rr.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,r=[],s=e.data.datasets,f,x;for(f=0,x=s.length;f<x;f++){var D=s[f],I=e.getDatasetMeta(f),F=D.type||e.config.type;if(I.type&&I.type!==F&&(e.destroyDatasetMeta(f),I=e.getDatasetMeta(f)),I.type=F,I.order=D.order||0,I.index=f,I.controller)I.controller.updateIndex(f),I.controller.linkScales();else{var O=Ti[I.type];if(O===void 0)throw new Error('"'+I.type+'" is not a chart type.');I.controller=new O(e,f),r.push(I.controller)}}return r},resetElements:function(){var e=this;te.each(e.data.datasets,function(r,s){e.getDatasetMeta(s).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var r=this,s,f;if((!e||typeof e!="object")&&(e={duration:e,lazy:arguments[1]}),ir(r),zt._invalidate(r),zt.notify(r,"beforeUpdate")!==!1){r.tooltip._data=r.data;var x=r.buildOrUpdateControllers();for(s=0,f=r.data.datasets.length;s<f;s++)r.getDatasetMeta(s).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&te.each(x,function(D){D.reset()}),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],zt.notify(r,"afterUpdate"),r._layers.sort(Ca("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var e=this;zt.notify(e,"beforeLayout")!==!1&&(Kr.update(this,this.width,this.height),e._layers=[],te.each(e.boxes,function(r){r._configure&&r._configure(),e._layers.push.apply(e._layers,r._layers())},e),e._layers.forEach(function(r,s){r._idx=s}),zt.notify(e,"afterScaleUpdate"),zt.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(zt.notify(e,"beforeDatasetsUpdate")!==!1){for(var r=0,s=e.data.datasets.length;r<s;++r)e.updateDataset(r);zt.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var r=this,s=r.getDatasetMeta(e),f={meta:s,index:e};zt.notify(r,"beforeDatasetUpdate",[f])!==!1&&(s.controller._update(),zt.notify(r,"afterDatasetUpdate",[f]))},render:function(e){var r=this;(!e||typeof e!="object")&&(e={duration:e,lazy:arguments[1]});var s=r.options.animation,f=sa(e.duration,s&&s.duration),x=e.lazy;if(zt.notify(r,"beforeRender")!==!1){var D=function(F){zt.notify(r,"afterRender"),te.callback(s&&s.onComplete,[F],r)};if(s&&f){var I=new Me({numSteps:f/16.66,easing:e.easing||s.easing,render:function(F,O){var W=te.easing.effects[O.easing],Z=O.currentStep,ee=Z/O.numSteps;F.draw(W(ee),ee,Z)},onAnimationProgress:s.onProgress,onAnimationComplete:D});Ze.addAnimation(r,I,f,x)}else r.draw(),D(new Me({numSteps:0,chart:r}));return r}},draw:function(e){var r=this,s,f;if(r.clear(),te.isNullOrUndef(e)&&(e=1),r.transition(e),!(r.width<=0||r.height<=0)&&zt.notify(r,"beforeDraw",[e])!==!1){for(f=r._layers,s=0;s<f.length&&f[s].z<=0;++s)f[s].draw(r.chartArea);for(r.drawDatasets(e);s<f.length;++s)f[s].draw(r.chartArea);r._drawTooltip(e),zt.notify(r,"afterDraw",[e])}},transition:function(e){for(var r=this,s=0,f=(r.data.datasets||[]).length;s<f;++s)r.isDatasetVisible(s)&&r.getDatasetMeta(s).controller.transition(e);r.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var r=this,s=r.data.datasets||[],f=[],x,D;for(x=0,D=s.length;x<D;++x)(!e||r.isDatasetVisible(x))&&f.push(r.getDatasetMeta(x));return f.sort(Ca("order","index")),f},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var r=this,s,f;if(zt.notify(r,"beforeDatasetsDraw",[e])!==!1){for(s=r._getSortedVisibleDatasetMetas(),f=s.length-1;f>=0;--f)r.drawDataset(s[f],e);zt.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,r){var s=this,f={meta:e,index:e.index,easingValue:r};zt.notify(s,"beforeDatasetDraw",[f])!==!1&&(e.controller.draw(r),zt.notify(s,"afterDatasetDraw",[f]))},_drawTooltip:function(e){var r=this,s=r.tooltip,f={tooltip:s,easingValue:e};zt.notify(r,"beforeTooltipDraw",[f])!==!1&&(s.draw(),zt.notify(r,"afterTooltipDraw",[f]))},getElementAtEvent:function(e){return ni.modes.single(this,e)},getElementsAtEvent:function(e){return ni.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return ni.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,r,s){var f=ni.modes[r];return typeof f=="function"?f(this,e,s):[]},getDatasetAtEvent:function(e){return ni.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var r=this,s=r.data.datasets[e];s._meta||(s._meta={});var f=s._meta[r.id];return f||(f=s._meta[r.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s.order||0,index:e}),f},getVisibleDatasetCount:function(){for(var e=0,r=0,s=this.data.datasets.length;r<s;++r)this.isDatasetVisible(r)&&e++;return e},isDatasetVisible:function(e){var r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var r=this.id,s=this.data.datasets[e],f=s._meta&&s._meta[r];f&&(f.controller.destroy(),delete s._meta[r])},destroy:function(){var e=this,r=e.canvas,s,f;for(e.stop(),s=0,f=e.data.datasets.length;s<f;++s)e.destroyDatasetMeta(s);r&&(e.unbindEvents(),te.canvas.clear(e),xn.releaseContext(e.ctx),e.canvas=null,e.ctx=null),zt.notify(e,"destroy"),delete si.instances[e.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Ea({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,r=e._listeners={},s=function(){e.eventHandler.apply(e,arguments)};te.each(e.options.events,function(f){xn.addEventListener(e,f,s),r[f]=s}),e.options.responsive&&(s=function(){e.resize()},xn.addEventListener(e,"resize",s),r.resize=s)},unbindEvents:function(){var e=this,r=e._listeners;r&&(delete e._listeners,te.each(r,function(s,f){xn.removeEventListener(e,f,s)}))},updateHoverStyle:function(e,r,s){var f=s?"set":"remove",x,D,I;for(D=0,I=e.length;D<I;++D)x=e[D],x&&this.getDatasetMeta(x._datasetIndex).controller[f+"HoverStyle"](x);r==="dataset"&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+f+"DatasetHoverStyle"]()},eventHandler:function(e){var r=this,s=r.tooltip;if(zt.notify(r,"beforeEvent",[e])!==!1){r._bufferedRender=!0,r._bufferedRequest=null;var f=r.handleEvent(e);s&&(f=s._start?s.handleEvent(e):f|s.handleEvent(e)),zt.notify(r,"afterEvent",[e]);var x=r._bufferedRequest;return x?r.render(x):f&&!r.animating&&(r.stop(),r.render({duration:r.options.hover.animationDuration,lazy:!0})),r._bufferedRender=!1,r._bufferedRequest=null,r}},handleEvent:function(e){var r=this,s=r.options||{},f=s.hover,x=!1;return r.lastActive=r.lastActive||[],e.type==="mouseout"?r.active=[]:r.active=r.getElementsAtEventForMode(e,f.mode,f),te.callback(s.onHover||s.hover.onHover,[e.native,r.active],r),(e.type==="mouseup"||e.type==="click")&&s.onClick&&s.onClick.call(r,e.native,r.active),r.lastActive.length&&r.updateHoverStyle(r.lastActive,f.mode,!1),r.active.length&&f.mode&&r.updateHoverStyle(r.active,f.mode,!0),x=!te.arrayEquals(r.active,r.lastActive),r.lastActive=r.active,x}}),si.instances={};var Yt=si;si.Controller=si,si.types={},te.configMerge=Sa,te.scaleMerge=Kn;var Gi=function(){te.where=function(f,x){if(te.isArray(f)&&Array.prototype.filter)return f.filter(x);var D=[];return te.each(f,function(I){x(I)&&D.push(I)}),D},te.findIndex=Array.prototype.findIndex?function(f,x,D){return f.findIndex(x,D)}:function(f,x,D){D=D===void 0?f:D;for(var I=0,F=f.length;I<F;++I)if(x.call(D,f[I],I,f))return I;return-1},te.findNextWhere=function(f,x,D){te.isNullOrUndef(D)&&(D=-1);for(var I=D+1;I<f.length;I++){var F=f[I];if(x(F))return F}},te.findPreviousWhere=function(f,x,D){te.isNullOrUndef(D)&&(D=f.length);for(var I=D-1;I>=0;I--){var F=f[I];if(x(F))return F}},te.isNumber=function(f){return!isNaN(parseFloat(f))&&isFinite(f)},te.almostEquals=function(f,x,D){return Math.abs(f-x)<D},te.almostWhole=function(f,x){var D=Math.round(f);return D-x<=f&&D+x>=f},te.max=function(f){return f.reduce(function(x,D){return isNaN(D)?x:Math.max(x,D)},Number.NEGATIVE_INFINITY)},te.min=function(f){return f.reduce(function(x,D){return isNaN(D)?x:Math.min(x,D)},Number.POSITIVE_INFINITY)},te.sign=Math.sign?function(f){return Math.sign(f)}:function(f){return f=+f,f===0||isNaN(f)?f:f>0?1:-1},te.toRadians=function(f){return f*(Math.PI/180)},te.toDegrees=function(f){return f*(180/Math.PI)},te._decimalPlaces=function(f){if(te.isFinite(f)){for(var x=1,D=0;Math.round(f*x)/x!==f;)x*=10,D++;return D}},te.getAngleFromPoint=function(f,x){var D=x.x-f.x,I=x.y-f.y,F=Math.sqrt(D*D+I*I),O=Math.atan2(I,D);return O<-.5*Math.PI&&(O+=2*Math.PI),{angle:O,distance:F}},te.distanceBetweenPoints=function(f,x){return Math.sqrt(Math.pow(x.x-f.x,2)+Math.pow(x.y-f.y,2))},te.aliasPixel=function(f){return f%2===0?0:.5},te._alignPixel=function(f,x,D){var I=f.currentDevicePixelRatio,F=D/2;return Math.round((x-F)*I)/I+F},te.splineCurve=function(f,x,D,I){var F=f.skip?x:f,O=x,W=D.skip?x:D,Z=Math.sqrt(Math.pow(O.x-F.x,2)+Math.pow(O.y-F.y,2)),ee=Math.sqrt(Math.pow(W.x-O.x,2)+Math.pow(W.y-O.y,2)),fe=Z/(Z+ee),Ee=ee/(Z+ee);fe=isNaN(fe)?0:fe,Ee=isNaN(Ee)?0:Ee;var De=I*fe,Ie=I*Ee;return{previous:{x:O.x-De*(W.x-F.x),y:O.y-De*(W.y-F.y)},next:{x:O.x+Ie*(W.x-F.x),y:O.y+Ie*(W.y-F.y)}}},te.EPSILON=Number.EPSILON||1e-14,te.splineCurveMonotone=function(f){var x=(f||[]).map(function(Pe){return{model:Pe._model,deltaK:0,mK:0}}),D=x.length,I,F,O,W;for(I=0;I<D;++I)if(O=x[I],!O.model.skip){if(F=I>0?x[I-1]:null,W=I<D-1?x[I+1]:null,W&&!W.model.skip){var Z=W.model.x-O.model.x;O.deltaK=Z!==0?(W.model.y-O.model.y)/Z:0}!F||F.model.skip?O.mK=O.deltaK:!W||W.model.skip?O.mK=F.deltaK:this.sign(F.deltaK)!==this.sign(O.deltaK)?O.mK=0:O.mK=(F.deltaK+O.deltaK)/2}var ee,fe,Ee,De;for(I=0;I<D-1;++I)if(O=x[I],W=x[I+1],!(O.model.skip||W.model.skip)){if(te.almostEquals(O.deltaK,0,this.EPSILON)){O.mK=W.mK=0;continue}ee=O.mK/O.deltaK,fe=W.mK/O.deltaK,De=Math.pow(ee,2)+Math.pow(fe,2),!(De<=9)&&(Ee=3/Math.sqrt(De),O.mK=ee*Ee*O.deltaK,W.mK=fe*Ee*O.deltaK)}var Ie;for(I=0;I<D;++I)O=x[I],!O.model.skip&&(F=I>0?x[I-1]:null,W=I<D-1?x[I+1]:null,F&&!F.model.skip&&(Ie=(O.model.x-F.model.x)/3,O.model.controlPointPreviousX=O.model.x-Ie,O.model.controlPointPreviousY=O.model.y-Ie*O.mK),W&&!W.model.skip&&(Ie=(W.model.x-O.model.x)/3,O.model.controlPointNextX=O.model.x+Ie,O.model.controlPointNextY=O.model.y+Ie*O.mK))},te.nextItem=function(f,x,D){return D?x>=f.length-1?f[0]:f[x+1]:x>=f.length-1?f[f.length-1]:f[x+1]},te.previousItem=function(f,x,D){return D?x<=0?f[f.length-1]:f[x-1]:x<=0?f[0]:f[x-1]},te.niceNum=function(f,x){var D=Math.floor(te.log10(f)),I=f/Math.pow(10,D),F;return x?I<1.5?F=1:I<3?F=2:I<7?F=5:F=10:I<=1?F=1:I<=2?F=2:I<=5?F=5:F=10,F*Math.pow(10,D)},te.requestAnimFrame=function(){return typeof window>"u"?function(f){f()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(f){return window.setTimeout(f,1e3/60)}}(),te.getRelativePosition=function(f,x){var D,I,F=f.originalEvent||f,O=f.target||f.srcElement,W=O.getBoundingClientRect(),Z=F.touches;Z&&Z.length>0?(D=Z[0].clientX,I=Z[0].clientY):(D=F.clientX,I=F.clientY);var ee=parseFloat(te.getStyle(O,"padding-left")),fe=parseFloat(te.getStyle(O,"padding-top")),Ee=parseFloat(te.getStyle(O,"padding-right")),De=parseFloat(te.getStyle(O,"padding-bottom")),Ie=W.right-W.left-ee-Ee,Pe=W.bottom-W.top-fe-De;return D=Math.round((D-W.left-ee)/Ie*O.width/x.currentDevicePixelRatio),I=Math.round((I-W.top-fe)/Pe*O.height/x.currentDevicePixelRatio),{x:D,y:I}};function e(f,x,D){var I;return typeof f=="string"?(I=parseInt(f,10),f.indexOf("%")!==-1&&(I=I/100*x.parentNode[D])):I=f,I}function r(f){return f!=null&&f!=="none"}function s(f,x,D){var I=document.defaultView,F=te._getParentNode(f),O=I.getComputedStyle(f)[x],W=I.getComputedStyle(F)[x],Z=r(O),ee=r(W),fe=Number.POSITIVE_INFINITY;return Z||ee?Math.min(Z?e(O,f,D):fe,ee?e(W,F,D):fe):"none"}te.getConstraintWidth=function(f){return s(f,"max-width","clientWidth")},te.getConstraintHeight=function(f){return s(f,"max-height","clientHeight")},te._calculatePadding=function(f,x,D){return x=te.getStyle(f,x),x.indexOf("%")>-1?D*parseInt(x,10)/100:parseInt(x,10)},te._getParentNode=function(f){var x=f.parentNode;return x&&x.toString()==="[object ShadowRoot]"&&(x=x.host),x},te.getMaximumWidth=function(f){var x=te._getParentNode(f);if(!x)return f.clientWidth;var D=x.clientWidth,I=te._calculatePadding(x,"padding-left",D),F=te._calculatePadding(x,"padding-right",D),O=D-I-F,W=te.getConstraintWidth(f);return isNaN(W)?O:Math.min(O,W)},te.getMaximumHeight=function(f){var x=te._getParentNode(f);if(!x)return f.clientHeight;var D=x.clientHeight,I=te._calculatePadding(x,"padding-top",D),F=te._calculatePadding(x,"padding-bottom",D),O=D-I-F,W=te.getConstraintHeight(f);return isNaN(W)?O:Math.min(O,W)},te.getStyle=function(f,x){return f.currentStyle?f.currentStyle[x]:document.defaultView.getComputedStyle(f,null).getPropertyValue(x)},te.retinaScale=function(f,x){var D=f.currentDevicePixelRatio=x||typeof window<"u"&&window.devicePixelRatio||1;if(D!==1){var I=f.canvas,F=f.height,O=f.width;I.height=F*D,I.width=O*D,f.ctx.scale(D,D),!I.style.height&&!I.style.width&&(I.style.height=F+"px",I.style.width=O+"px")}},te.fontString=function(f,x,D){return x+" "+f+"px "+D},te.longestText=function(f,x,D,I){I=I||{};var F=I.data=I.data||{},O=I.garbageCollect=I.garbageCollect||[];I.font!==x&&(F=I.data={},O=I.garbageCollect=[],I.font=x),f.font=x;var W=0,Z=D.length,ee,fe,Ee,De,Ie;for(ee=0;ee<Z;ee++)if(De=D[ee],De!=null&&te.isArray(De)!==!0)W=te.measureText(f,F,O,W,De);else if(te.isArray(De))for(fe=0,Ee=De.length;fe<Ee;fe++)Ie=De[fe],Ie!=null&&!te.isArray(Ie)&&(W=te.measureText(f,F,O,W,Ie));var Pe=O.length/2;if(Pe>D.length){for(ee=0;ee<Pe;ee++)delete F[O[ee]];O.splice(0,Pe)}return W},te.measureText=function(f,x,D,I,F){var O=x[F];return O||(O=x[F]=f.measureText(F).width,D.push(F)),O>I&&(I=O),I},te.numberOfLabelLines=function(f){var x=1;return te.each(f,function(D){te.isArray(D)&&D.length>x&&(x=D.length)}),x},te.color=et?function(f){return f instanceof CanvasGradient&&(f=qe.global.defaultColor),et(f)}:function(f){return console.error("Color.js not found!"),f},te.getHoverColor=function(f){return f instanceof CanvasPattern||f instanceof CanvasGradient?f:te.color(f).saturate(.5).darken(.1).rgbString()}};function ln(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Pi(e){this.options=e||{}}te.extend(Pi.prototype,{formats:ln,parse:ln,format:ln,add:ln,diff:ln,startOf:ln,endOf:ln,_create:function(e){return e}}),Pi.override=function(e){te.extend(Pi.prototype,e)};var wo=Pi,Da={_date:wo},Cn={formatters:{values:function(e){return te.isArray(e)?e:""+e},linear:function(e,r,s){var f=s.length>3?s[2]-s[1]:s[1]-s[0];Math.abs(f)>1&&e!==Math.floor(e)&&(f=e-Math.floor(e));var x=te.log10(Math.abs(f)),D="";if(e!==0){var I=Math.max(Math.abs(s[0]),Math.abs(s[s.length-1]));if(I<1e-4){var F=te.log10(Math.abs(e)),O=Math.floor(F)-Math.floor(x);O=Math.max(Math.min(O,20),0),D=e.toExponential(O)}else{var W=-1*Math.floor(x);W=Math.max(Math.min(W,20),0),D=e.toFixed(W)}}else D="0";return D},logarithmic:function(e,r,s){var f=e/Math.pow(10,Math.floor(te.log10(e)));return e===0?"0":f===1||f===2||f===5||r===0||r===s.length-1?e.toExponential():""}}},Dn=te.isArray,gi=te.isNullOrUndef,mi=te.valueOrDefault,yi=te.valueAtIndexOrDefault;qe._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Cn.formatters.values,minor:{},major:{}}});function Eo(e,r){for(var s=[],f=e.length/r,x=0,D=e.length;x<D;x+=f)s.push(e[Math.floor(x)]);return s}function Ta(e,r,s){var f=e.getTicks().length,x=Math.min(r,f-1),D=e.getPixelForTick(x),I=e._startPixel,F=e._endPixel,O=1e-6,W;if(!(s&&(f===1?W=Math.max(D-I,F-D):r===0?W=(e.getPixelForTick(1)-D)/2:W=(D-e.getPixelForTick(x-1))/2,D+=x<r?W:-W,D<I-O||D>F+O)))return D}function Ma(e,r){te.each(e,function(s){var f=s.gc,x=f.length/2,D;if(x>r){for(D=0;D<x;++D)delete s.data[f[D]];f.splice(0,x)}})}function Qn(e,r,s,f){var x=s.length,D=[],I=[],F=[],O=0,W=0,Z,ee,fe,Ee,De,Ie,Pe,rt,wt,It,Zt,Kt,fr;for(Z=0;Z<x;++Z){if(Ee=s[Z].label,De=s[Z].major?r.major:r.minor,e.font=Ie=De.string,Pe=f[Ie]=f[Ie]||{data:{},gc:[]},rt=De.lineHeight,wt=It=0,!gi(Ee)&&!Dn(Ee))wt=te.measureText(e,Pe.data,Pe.gc,wt,Ee),It=rt;else if(Dn(Ee))for(ee=0,fe=Ee.length;ee<fe;++ee)Zt=Ee[ee],!gi(Zt)&&!Dn(Zt)&&(wt=te.measureText(e,Pe.data,Pe.gc,wt,Zt),It+=rt);D.push(wt),I.push(It),F.push(rt/2),O=Math.max(wt,O),W=Math.max(It,W)}Ma(f,x),Kt=D.indexOf(O),fr=I.indexOf(W);function ur(wr){return{width:D[wr]||0,height:I[wr]||0,offset:F[wr]||0}}return{first:ur(0),last:ur(x-1),widest:ur(Kt),highest:ur(fr)}}function Wn(e){return e.drawTicks?e.tickMarkLength:0}function Ra(e){var r,s;return e.display?(r=te.options._parseFont(e),s=te.options.toPadding(e.padding),r.lineHeight+s.height):0}function Yi(e,r){return te.extend(te.options._parseFont({fontFamily:mi(r.fontFamily,e.fontFamily),fontSize:mi(r.fontSize,e.fontSize),fontStyle:mi(r.fontStyle,e.fontStyle),lineHeight:mi(r.lineHeight,e.lineHeight)}),{color:te.options.resolve([r.fontColor,e.fontColor,qe.global.defaultFontColor])})}function yn(e){var r=Yi(e,e.minor),s=e.major.enabled?Yi(e,e.major):r;return{minor:r,major:s}}function _a(e){var r=[],s,f,x;for(f=0,x=e.length;f<x;++f)s=e[f],typeof s._index<"u"&&r.push(s);return r}function Wa(e){var r=e.length,s,f;if(r<2)return!1;for(f=e[0],s=1;s<r;++s)if(e[s]-e[s-1]!==f)return!1;return f}function So(e,r,s,f){var x=Wa(e),D=(r.length-1)/f,I,F,O,W;if(!x)return Math.max(D,1);for(I=te.math._factorize(x),O=0,W=I.length-1;O<W;O++)if(F=I[O],F>D)return F;return Math.max(D,1)}function xo(e){var r=[],s,f;for(s=0,f=e.length;s<f;s++)e[s].major&&r.push(s);return r}function Co(e,r,s){var f=0,x=r[0],D,I;for(s=Math.ceil(s),D=0;D<e.length;D++)I=e[D],D===x?(I._index=D,f++,x=r[f*s]):delete I.label}function la(e,r,s,f){var x=mi(s,0),D=Math.min(mi(f,e.length),e.length),I=0,F,O,W,Z;for(r=Math.ceil(r),f&&(F=f-s,r=F/Math.floor(F/r)),Z=x;Z<0;)I++,Z=Math.round(x+I*r);for(O=Math.max(x,0);O<D;O++)W=e[O],O===Z?(W._index=O,I++,Z=Math.round(x+I*r)):delete W.label}var ua=ce.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){te.callback(this.options.beforeUpdate,[this])},update:function(e,r,s){var f=this,x=f.options.ticks,D=x.sampleSize,I,F,O,W,Z;if(f.beforeUpdate(),f.maxWidth=e,f.maxHeight=r,f.margins=te.extend({left:0,right:0,top:0,bottom:0},s),f._ticks=null,f.ticks=null,f._labelSizes=null,f._maxLabelLines=0,f.longestLabelWidth=0,f.longestTextCache=f.longestTextCache||{},f._gridLineItems=null,f._labelItems=null,f.beforeSetDimensions(),f.setDimensions(),f.afterSetDimensions(),f.beforeDataLimits(),f.determineDataLimits(),f.afterDataLimits(),f.beforeBuildTicks(),W=f.buildTicks()||[],W=f.afterBuildTicks(W)||W,(!W||!W.length)&&f.ticks)for(W=[],I=0,F=f.ticks.length;I<F;++I)W.push({value:f.ticks[I],major:!1});return f._ticks=W,Z=D<W.length,O=f._convertTicksToLabels(Z?Eo(W,D):W),f._configure(),f.beforeCalculateTickRotation(),f.calculateTickRotation(),f.afterCalculateTickRotation(),f.beforeFit(),f.fit(),f.afterFit(),f._ticksToDraw=x.display&&(x.autoSkip||x.source==="auto")?f._autoSkip(W):W,Z&&(O=f._convertTicksToLabels(f._ticksToDraw)),f.ticks=O,f.afterUpdate(),f.minSize},_configure:function(){var e=this,r=e.options.ticks.reverse,s,f;e.isHorizontal()?(s=e.left,f=e.right):(s=e.top,f=e.bottom,r=!r),e._startPixel=s,e._endPixel=f,e._reversePixels=r,e._length=f-s},afterUpdate:function(){te.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){te.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){te.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){te.callback(this.options.beforeDataLimits,[this])},determineDataLimits:te.noop,afterDataLimits:function(){te.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){te.callback(this.options.beforeBuildTicks,[this])},buildTicks:te.noop,afterBuildTicks:function(e){var r=this;return Dn(e)&&e.length?te.callback(r.options.afterBuildTicks,[r,e]):(r.ticks=te.callback(r.options.afterBuildTicks,[r,r.ticks])||r.ticks,e)},beforeTickToLabelConversion:function(){te.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,r=e.options.ticks;e.ticks=e.ticks.map(r.userCallback||r.callback,this)},afterTickToLabelConversion:function(){te.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){te.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,r=e.options,s=r.ticks,f=e.getTicks().length,x=s.minRotation||0,D=s.maxRotation,I=x,F,O,W,Z,ee,fe,Ee;if(!e._isVisible()||!s.display||x>=D||f<=1||!e.isHorizontal()){e.labelRotation=x;return}F=e._getLabelSizes(),O=F.widest.width,W=F.highest.height-F.highest.offset,Z=Math.min(e.maxWidth,e.chart.width-O),ee=r.offset?e.maxWidth/f:Z/(f-1),O+6>ee&&(ee=Z/(f-(r.offset?.5:1)),fe=e.maxHeight-Wn(r.gridLines)-s.padding-Ra(r.scaleLabel),Ee=Math.sqrt(O*O+W*W),I=te.toDegrees(Math.min(Math.asin(Math.min((F.highest.height+6)/ee,1)),Math.asin(Math.min(fe/Ee,1))-Math.asin(W/Ee))),I=Math.max(x,Math.min(D,I))),e.labelRotation=I},afterCalculateTickRotation:function(){te.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){te.callback(this.options.beforeFit,[this])},fit:function(){var e=this,r=e.minSize={width:0,height:0},s=e.chart,f=e.options,x=f.ticks,D=f.scaleLabel,I=f.gridLines,F=e._isVisible(),O=f.position==="bottom",W=e.isHorizontal();if(W?r.width=e.maxWidth:F&&(r.width=Wn(I)+Ra(D)),W?F&&(r.height=Wn(I)+Ra(D)):r.height=e.maxHeight,x.display&&F){var Z=yn(x),ee=e._getLabelSizes(),fe=ee.first,Ee=ee.last,De=ee.widest,Ie=ee.highest,Pe=Z.minor.lineHeight*.4,rt=x.padding;if(W){var wt=e.labelRotation!==0,It=te.toRadians(e.labelRotation),Zt=Math.cos(It),Kt=Math.sin(It),fr=Kt*De.width+Zt*(Ie.height-(wt?Ie.offset:0))+(wt?0:Pe);r.height=Math.min(e.maxHeight,r.height+fr+rt);var ur=e.getPixelForTick(0)-e.left,wr=e.right-e.getPixelForTick(e.getTicks().length-1),Cr,tn;wt?(Cr=O?Zt*fe.width+Kt*fe.offset:Kt*(fe.height-fe.offset),tn=O?Kt*(Ee.height-Ee.offset):Zt*Ee.width+Kt*Ee.offset):(Cr=fe.width/2,tn=Ee.width/2),e.paddingLeft=Math.max((Cr-ur)*e.width/(e.width-ur),0)+3,e.paddingRight=Math.max((tn-wr)*e.width/(e.width-wr),0)+3}else{var Jr=x.mirror?0:De.width+rt+Pe;r.width=Math.min(e.maxWidth,r.width+Jr),e.paddingTop=fe.height/2,e.paddingBottom=Ee.height/2}}e.handleMargins(),W?(e.width=e._length=s.width-e.margins.left-e.margins.right,e.height=r.height):(e.width=r.width,e.height=e._length=s.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){te.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return e==="top"||e==="bottom"},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(gi(e))return NaN;if((typeof e=="number"||e instanceof Number)&&!isFinite(e))return NaN;if(e){if(this.isHorizontal()){if(e.x!==void 0)return this.getRightValue(e.x)}else if(e.y!==void 0)return this.getRightValue(e.y)}return e},_convertTicksToLabels:function(e){var r=this,s,f,x;for(r.ticks=e.map(function(D){return D.value}),r.beforeTickToLabelConversion(),s=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),f=0,x=e.length;f<x;++f)e[f].label=s[f];return s},_getLabelSizes:function(){var e=this,r=e._labelSizes;return r||(e._labelSizes=r=Qn(e.ctx,yn(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=r.widest.width),r},_parseValue:function(e){var r,s,f,x;return Dn(e)?(r=+this.getRightValue(e[0]),s=+this.getRightValue(e[1]),f=Math.min(r,s),x=Math.max(r,s)):(e=+this.getRightValue(e),r=void 0,s=e,f=e,x=e),{min:f,max:x,start:r,end:s}},_getScaleLabel:function(e){var r=this._parseValue(e);return r.start!==void 0?"["+r.start+", "+r.end+"]":+this.getRightValue(e)},getLabelForIndex:te.noop,getPixelForValue:te.noop,getValueForPixel:te.noop,getPixelForTick:function(e){var r=this,s=r.options.offset,f=r._ticks.length,x=1/Math.max(f-(s?0:1),1);return e<0||e>f-1?null:r.getPixelForDecimal(e*x+(s?x/2:0))},getPixelForDecimal:function(e){var r=this;return r._reversePixels&&(e=1-e),r._startPixel+e*r._length},getDecimalForPixel:function(e){var r=(e-this._startPixel)/this._length;return this._reversePixels?1-r:r},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,r=e.min,s=e.max;return e.beginAtZero?0:r<0&&s<0?s:r>0&&s>0?r:0},_autoSkip:function(e){var r=this,s=r.options.ticks,f=r._length,x=s.maxTicksLimit||f/r._tickSize()+1,D=s.major.enabled?xo(e):[],I=D.length,F=D[0],O=D[I-1],W,Z,ee,fe;if(I>x)return Co(e,D,I/x),_a(e);if(ee=So(D,e,f,x),I>0){for(W=0,Z=I-1;W<Z;W++)la(e,ee,D[W],D[W+1]);return fe=I>1?(O-F)/(I-1):null,la(e,ee,te.isNullOrUndef(fe)?0:F-fe,F),la(e,ee,O,te.isNullOrUndef(fe)?e.length:O+fe),_a(e)}return la(e,ee),_a(e)},_tickSize:function(){var e=this,r=e.options.ticks,s=te.toRadians(e.labelRotation),f=Math.abs(Math.cos(s)),x=Math.abs(Math.sin(s)),D=e._getLabelSizes(),I=r.autoSkipPadding||0,F=D?D.widest.width+I:0,O=D?D.highest.height+I:0;return e.isHorizontal()?O*f>F*x?F/f:O/x:O*x<F*f?O/f:F/x},_isVisible:function(){var e=this,r=e.chart,s=e.options.display,f,x,D;if(s!=="auto")return!!s;for(f=0,x=r.data.datasets.length;f<x;++f)if(r.isDatasetVisible(f)&&(D=r.getDatasetMeta(f),D.xAxisID===e.id||D.yAxisID===e.id))return!0;return!1},_computeGridLineItems:function(e){var r=this,s=r.chart,f=r.options,x=f.gridLines,D=f.position,I=x.offsetGridLines,F=r.isHorizontal(),O=r._ticksToDraw,W=O.length+(I?1:0),Z=Wn(x),ee=[],fe=x.drawBorder?yi(x.lineWidth,0,0):0,Ee=fe/2,De=te._alignPixel,Ie=function(as){return De(s,as,fe)},Pe,rt,wt,It,Zt,Kt,fr,ur,wr,Cr,tn,Jr,Vr,cn,Un,ga,Bo;for(D==="top"?(Pe=Ie(r.bottom),fr=r.bottom-Z,wr=Pe-Ee,tn=Ie(e.top)+Ee,Vr=e.bottom):D==="bottom"?(Pe=Ie(r.top),tn=e.top,Vr=Ie(e.bottom)-Ee,fr=Pe+Ee,wr=r.top+Z):D==="left"?(Pe=Ie(r.right),Kt=r.right-Z,ur=Pe-Ee,Cr=Ie(e.left)+Ee,Jr=e.right):(Pe=Ie(r.left),Cr=e.left,Jr=Ie(e.right)-Ee,Kt=Pe+Ee,ur=r.left+Z),rt=0;rt<W;++rt)wt=O[rt]||{},!(gi(wt.label)&&rt<O.length)&&(rt===r.zeroLineIndex&&f.offset===I?(cn=x.zeroLineWidth,Un=x.zeroLineColor,ga=x.zeroLineBorderDash||[],Bo=x.zeroLineBorderDashOffset||0):(cn=yi(x.lineWidth,rt,1),Un=yi(x.color,rt,"rgba(0,0,0,0.1)"),ga=x.borderDash||[],Bo=x.borderDashOffset||0),It=Ta(r,wt._index||rt,I),It!==void 0&&(Zt=De(s,It,cn),F?Kt=ur=Cr=Jr=Zt:fr=wr=tn=Vr=Zt,ee.push({tx1:Kt,ty1:fr,tx2:ur,ty2:wr,x1:Cr,y1:tn,x2:Jr,y2:Vr,width:cn,color:Un,borderDash:ga,borderDashOffset:Bo})));return ee.ticksLength=W,ee.borderValue=Pe,ee},_computeLabelItems:function(){var e=this,r=e.options,s=r.ticks,f=r.position,x=s.mirror,D=e.isHorizontal(),I=e._ticksToDraw,F=yn(s),O=s.padding,W=Wn(r.gridLines),Z=-te.toRadians(e.labelRotation),ee=[],fe,Ee,De,Ie,Pe,rt,wt,It,Zt,Kt,fr,ur;for(f==="top"?(rt=e.bottom-W-O,wt=Z?"left":"center"):f==="bottom"?(rt=e.top+W+O,wt=Z?"right":"center"):f==="left"?(Pe=e.right-(x?0:W)-O,wt=x?"left":"right"):(Pe=e.left+(x?0:W)+O,wt=x?"right":"left"),fe=0,Ee=I.length;fe<Ee;++fe)De=I[fe],Ie=De.label,!gi(Ie)&&(It=e.getPixelForTick(De._index||fe)+s.labelOffset,Zt=De.major?F.major:F.minor,Kt=Zt.lineHeight,fr=Dn(Ie)?Ie.length:1,D?(Pe=It,ur=f==="top"?((Z?1:.5)-fr)*Kt:(Z?0:.5)*Kt):(rt=It,ur=(1-fr)*Kt/2),ee.push({x:Pe,y:rt,rotation:Z,label:Ie,font:Zt,textOffset:ur,textAlign:wt}));return ee},_drawGrid:function(e){var r=this,s=r.options.gridLines;if(s.display){var f=r.ctx,x=r.chart,D=te._alignPixel,I=s.drawBorder?yi(s.lineWidth,0,0):0,F=r._gridLineItems||(r._gridLineItems=r._computeGridLineItems(e)),O,W,Z,ee,fe;for(Z=0,ee=F.length;Z<ee;++Z)fe=F[Z],O=fe.width,W=fe.color,O&&W&&(f.save(),f.lineWidth=O,f.strokeStyle=W,f.setLineDash&&(f.setLineDash(fe.borderDash),f.lineDashOffset=fe.borderDashOffset),f.beginPath(),s.drawTicks&&(f.moveTo(fe.tx1,fe.ty1),f.lineTo(fe.tx2,fe.ty2)),s.drawOnChartArea&&(f.moveTo(fe.x1,fe.y1),f.lineTo(fe.x2,fe.y2)),f.stroke(),f.restore());if(I){var Ee=I,De=yi(s.lineWidth,F.ticksLength-1,1),Ie=F.borderValue,Pe,rt,wt,It;r.isHorizontal()?(Pe=D(x,r.left,Ee)-Ee/2,rt=D(x,r.right,De)+De/2,wt=It=Ie):(wt=D(x,r.top,Ee)-Ee/2,It=D(x,r.bottom,De)+De/2,Pe=rt=Ie),f.lineWidth=I,f.strokeStyle=yi(s.color,0),f.beginPath(),f.moveTo(Pe,wt),f.lineTo(rt,It),f.stroke()}}},_drawLabels:function(){var e=this,r=e.options.ticks;if(r.display){var s=e.ctx,f=e._labelItems||(e._labelItems=e._computeLabelItems()),x,D,I,F,O,W,Z,ee;for(x=0,I=f.length;x<I;++x){if(O=f[x],W=O.font,s.save(),s.translate(O.x,O.y),s.rotate(O.rotation),s.font=W.string,s.fillStyle=W.color,s.textBaseline="middle",s.textAlign=O.textAlign,Z=O.label,ee=O.textOffset,Dn(Z))for(D=0,F=Z.length;D<F;++D)s.fillText(""+Z[D],0,ee),ee+=W.lineHeight;else s.fillText(Z,0,ee);s.restore()}}},_drawTitle:function(){var e=this,r=e.ctx,s=e.options,f=s.scaleLabel;if(f.display){var x=mi(f.fontColor,qe.global.defaultFontColor),D=te.options._parseFont(f),I=te.options.toPadding(f.padding),F=D.lineHeight/2,O=s.position,W=0,Z,ee;if(e.isHorizontal())Z=e.left+e.width/2,ee=O==="bottom"?e.bottom-F-I.bottom:e.top+F+I.top;else{var fe=O==="left";Z=fe?e.left+F+I.top:e.right-F-I.top,ee=e.top+e.height/2,W=fe?-.5*Math.PI:.5*Math.PI}r.save(),r.translate(Z,ee),r.rotate(W),r.textAlign="center",r.textBaseline="middle",r.fillStyle=x,r.font=D.string,r.fillText(f.labelString,0,0),r.restore()}},draw:function(e){var r=this;r._isVisible()&&(r._drawGrid(e),r._drawTitle(),r._drawLabels())},_layers:function(){var e=this,r=e.options,s=r.ticks&&r.ticks.z||0,f=r.gridLines&&r.gridLines.z||0;return!e._isVisible()||s===f||e.draw!==e._draw?[{z:s,draw:function(){e.draw.apply(e,arguments)}}]:[{z:f,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:s,draw:function(){e._drawLabels.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var r=this,s=r.isHorizontal();return r.chart._getSortedVisibleDatasetMetas().filter(function(f){return(!e||f.type===e)&&(s?f.xAxisID===r.id:f.yAxisID===r.id)})}});ua.prototype._draw=ua.prototype.draw;var vn=ua,Ia=te.isNullOrUndef,kn={position:"bottom"},An=vn.extend({determineDataLimits:function(){var e=this,r=e._getLabels(),s=e.options.ticks,f=s.min,x=s.max,D=0,I=r.length-1,F;f!==void 0&&(F=r.indexOf(f),F>=0&&(D=F)),x!==void 0&&(F=r.indexOf(x),F>=0&&(I=F)),e.minIndex=D,e.maxIndex=I,e.min=r[D],e.max=r[I]},buildTicks:function(){var e=this,r=e._getLabels(),s=e.minIndex,f=e.maxIndex;e.ticks=s===0&&f===r.length-1?r:r.slice(s,f+1)},getLabelForIndex:function(e,r){var s=this,f=s.chart;return f.getDatasetMeta(r).controller._getValueScaleId()===s.id?s.getRightValue(f.data.datasets[r].data[e]):s._getLabels()[e]},_configure:function(){var e=this,r=e.options.offset,s=e.ticks;vn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),s&&(e._startValue=e.minIndex-(r?.5:0),e._valueRange=Math.max(s.length-(r?0:1),1))},getPixelForValue:function(e,r,s){var f=this,x,D,I;return!Ia(r)&&!Ia(s)&&(e=f.chart.data.datasets[s].data[r]),Ia(e)||(x=f.isHorizontal()?e.x:e.y),(x!==void 0||e!==void 0&&isNaN(r))&&(D=f._getLabels(),e=te.valueOrDefault(x,e),I=D.indexOf(e),r=I!==-1?I:r,isNaN(r)&&(r=e)),f.getPixelForDecimal((r-f._startValue)/f._valueRange)},getPixelForTick:function(e){var r=this.ticks;return e<0||e>r.length-1?null:this.getPixelForValue(r[e],e+this.minIndex)},getValueForPixel:function(e){var r=this,s=Math.round(r._startValue+r.getDecimalForPixel(e)*r._valueRange);return Math.min(Math.max(s,0),r.ticks.length-1)},getBasePixel:function(){return this.bottom}}),li=kn;An._defaults=li;var Do=te.noop,Pn=te.isNullOrUndef;function Xi(e,r){var s=[],f=1e-14,x=e.stepSize,D=x||1,I=e.maxTicks-1,F=e.min,O=e.max,W=e.precision,Z=r.min,ee=r.max,fe=te.niceNum((ee-Z)/I/D)*D,Ee,De,Ie,Pe;if(fe<f&&Pn(F)&&Pn(O))return[Z,ee];Pe=Math.ceil(ee/fe)-Math.floor(Z/fe),Pe>I&&(fe=te.niceNum(Pe*fe/I/D)*D),x||Pn(W)?Ee=Math.pow(10,te._decimalPlaces(fe)):(Ee=Math.pow(10,W),fe=Math.ceil(fe*Ee)/Ee),De=Math.floor(Z/fe)*fe,Ie=Math.ceil(ee/fe)*fe,x&&(!Pn(F)&&te.almostWhole(F/fe,fe/1e3)&&(De=F),!Pn(O)&&te.almostWhole(O/fe,fe/1e3)&&(Ie=O)),Pe=(Ie-De)/fe,te.almostEquals(Pe,Math.round(Pe),fe/1e3)?Pe=Math.round(Pe):Pe=Math.ceil(Pe),De=Math.round(De*Ee)/Ee,Ie=Math.round(Ie*Ee)/Ee,s.push(Pn(F)?De:F);for(var rt=1;rt<Pe;++rt)s.push(Math.round((De+rt*fe)*Ee)/Ee);return s.push(Pn(O)?Ie:O),s}var da=vn.extend({getRightValue:function(e){return typeof e=="string"?+e:vn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,r=e.options,s=r.ticks;if(s.beginAtZero){var f=te.sign(e.min),x=te.sign(e.max);f<0&&x<0?e.max=0:f>0&&x>0&&(e.min=0)}var D=s.min!==void 0||s.suggestedMin!==void 0,I=s.max!==void 0||s.suggestedMax!==void 0;s.min!==void 0?e.min=s.min:s.suggestedMin!==void 0&&(e.min===null?e.min=s.suggestedMin:e.min=Math.min(e.min,s.suggestedMin)),s.max!==void 0?e.max=s.max:s.suggestedMax!==void 0&&(e.max===null?e.max=s.suggestedMax:e.max=Math.max(e.max,s.suggestedMax)),D!==I&&e.min>=e.max&&(D?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,s.beginAtZero||e.min--)},getTickLimit:function(){var e=this,r=e.options.ticks,s=r.stepSize,f=r.maxTicksLimit,x;return s?x=Math.ceil(e.max/s)-Math.floor(e.min/s)+1:(x=e._computeTickLimit(),f=f||11),f&&(x=Math.min(f,x)),x},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Do,buildTicks:function(){var e=this,r=e.options,s=r.ticks,f=e.getTickLimit();f=Math.max(2,f);var x={maxTicks:f,min:s.min,max:s.max,precision:s.precision,stepSize:te.valueOrDefault(s.fixedStepSize,s.stepSize)},D=e.ticks=Xi(x,e);e.handleDirectionalChanges(),e.max=te.max(D),e.min=te.min(D),s.reverse?(D.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),vn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e=this,r=e.getTicks(),s=e.min,f=e.max,x;vn.prototype._configure.call(e),e.options.offset&&r.length&&(x=(f-s)/Math.max(r.length-1,1)/2,s-=x,f+=x),e._startValue=s,e._endValue=f,e._valueRange=f-s}}),To={position:"left",ticks:{callback:Cn.formatters.linear}},Ua=0,bi=1;function Mo(e,r,s){var f=[s.type,r===void 0&&s.stack===void 0?s.index:"",s.stack].join(".");return e[f]===void 0&&(e[f]={pos:[],neg:[]}),e[f]}function Ro(e,r,s,f){var x=e.options,D=x.stacked,I=Mo(r,D,s),F=I.pos,O=I.neg,W=f.length,Z,ee;for(Z=0;Z<W;++Z)ee=e._parseValue(f[Z]),!(isNaN(ee.min)||isNaN(ee.max)||s.data[Z].hidden)&&(F[Z]=F[Z]||0,O[Z]=O[Z]||0,x.relativePoints?F[Z]=100:ee.min<0||ee.max<0?O[Z]+=ee.min:F[Z]+=ee.max)}function _o(e,r,s){var f=s.length,x,D;for(x=0;x<f;++x)D=e._parseValue(s[x]),!(isNaN(D.min)||isNaN(D.max)||r.data[x].hidden)&&(e.min=Math.min(e.min,D.min),e.max=Math.max(e.max,D.max))}var Va=da.extend({determineDataLimits:function(){var e=this,r=e.options,s=e.chart,f=s.data.datasets,x=e._getMatchingVisibleMetas(),D=r.stacked,I={},F=x.length,O,W,Z,ee;if(e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,D===void 0)for(O=0;!D&&O<F;++O)W=x[O],D=W.stack!==void 0;for(O=0;O<F;++O)W=x[O],Z=f[W.index].data,D?Ro(e,I,W,Z):_o(e,W,Z);te.each(I,function(fe){ee=fe.pos.concat(fe.neg),e.min=Math.min(e.min,te.min(ee)),e.max=Math.max(e.max,te.max(ee))}),e.min=te.isFinite(e.min)&&!isNaN(e.min)?e.min:Ua,e.max=te.isFinite(e.max)&&!isNaN(e.max)?e.max:bi,e.handleTickRangeOptions()},_computeTickLimit:function(){var e=this,r;return e.isHorizontal()?Math.ceil(e.width/40):(r=te.options._parseFont(e.options.ticks),Math.ceil(e.height/r.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,r){return this._getScaleLabel(this.chart.data.datasets[r].data[e])},getPixelForValue:function(e){var r=this;return r.getPixelForDecimal((+r.getRightValue(e)-r._startValue)/r._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var r=this.ticksAsNumbers;return e<0||e>r.length-1?null:this.getPixelForValue(r[e])}}),Ga=To;Va._defaults=Ga;var Oa=te.valueOrDefault,un=te.math.log10;function ka(e,r){var s=[],f=Oa(e.min,Math.pow(10,Math.floor(un(r.min)))),x=Math.floor(un(r.max)),D=Math.ceil(r.max/Math.pow(10,x)),I,F;f===0?(I=Math.floor(un(r.minNotZero)),F=Math.floor(r.minNotZero/Math.pow(10,I)),s.push(f),f=F*Math.pow(10,I)):(I=Math.floor(un(f)),F=Math.floor(f/Math.pow(10,I)));var O=I<0?Math.pow(10,Math.abs(I)):1;do s.push(f),++F,F===10&&(F=1,++I,O=I>=0?1:O),f=Math.round(F*Math.pow(10,I)*O)/O;while(I<x||I===x&&F<D);var W=Oa(e.max,f);return s.push(W),s}var Io={position:"left",ticks:{callback:Cn.formatters.logarithmic}};function Ki(e,r){return te.isFinite(e)&&e>=0?e:r}var Ya=vn.extend({determineDataLimits:function(){var e=this,r=e.options,s=e.chart,f=s.data.datasets,x=e.isHorizontal();function D(Pe){return x?Pe.xAxisID===e.id:Pe.yAxisID===e.id}var I,F,O,W,Z,ee;e.min=Number.POSITIVE_INFINITY,e.max=Number.NEGATIVE_INFINITY,e.minNotZero=Number.POSITIVE_INFINITY;var fe=r.stacked;if(fe===void 0){for(I=0;I<f.length;I++)if(F=s.getDatasetMeta(I),s.isDatasetVisible(I)&&D(F)&&F.stack!==void 0){fe=!0;break}}if(r.stacked||fe){var Ee={};for(I=0;I<f.length;I++){F=s.getDatasetMeta(I);var De=[F.type,r.stacked===void 0&&F.stack===void 0?I:"",F.stack].join(".");if(s.isDatasetVisible(I)&&D(F))for(Ee[De]===void 0&&(Ee[De]=[]),W=f[I].data,Z=0,ee=W.length;Z<ee;Z++){var Ie=Ee[De];O=e._parseValue(W[Z]),!(isNaN(O.min)||isNaN(O.max)||F.data[Z].hidden||O.min<0||O.max<0)&&(Ie[Z]=Ie[Z]||0,Ie[Z]+=O.max)}}te.each(Ee,function(Pe){if(Pe.length>0){var rt=te.min(Pe),wt=te.max(Pe);e.min=Math.min(e.min,rt),e.max=Math.max(e.max,wt)}})}else for(I=0;I<f.length;I++)if(F=s.getDatasetMeta(I),s.isDatasetVisible(I)&&D(F))for(W=f[I].data,Z=0,ee=W.length;Z<ee;Z++)O=e._parseValue(W[Z]),!(isNaN(O.min)||isNaN(O.max)||F.data[Z].hidden||O.min<0||O.max<0)&&(e.min=Math.min(O.min,e.min),e.max=Math.max(O.max,e.max),O.min!==0&&(e.minNotZero=Math.min(O.min,e.minNotZero)));e.min=te.isFinite(e.min)?e.min:null,e.max=te.isFinite(e.max)?e.max:null,e.minNotZero=te.isFinite(e.minNotZero)?e.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,r=e.options.ticks,s=1,f=10;e.min=Ki(r.min,e.min),e.max=Ki(r.max,e.max),e.min===e.max&&(e.min!==0&&e.min!==null?(e.min=Math.pow(10,Math.floor(un(e.min))-1),e.max=Math.pow(10,Math.floor(un(e.max))+1)):(e.min=s,e.max=f)),e.min===null&&(e.min=Math.pow(10,Math.floor(un(e.max))-1)),e.max===null&&(e.max=e.min!==0?Math.pow(10,Math.floor(un(e.min))+1):f),e.minNotZero===null&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(un(e.max))):e.minNotZero=s)},buildTicks:function(){var e=this,r=e.options.ticks,s=!e.isHorizontal(),f={min:Ki(r.min),max:Ki(r.max)},x=e.ticks=ka(f,e);e.max=te.max(x),e.min=te.min(x),r.reverse?(s=!s,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),s&&x.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),vn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,r){return this._getScaleLabel(this.chart.data.datasets[r].data[e])},getPixelForTick:function(e){var r=this.tickValues;return e<0||e>r.length-1?null:this.getPixelForValue(r[e])},_getFirstTickValue:function(e){var r=Math.floor(un(e)),s=Math.floor(e/Math.pow(10,r));return s*Math.pow(10,r)},_configure:function(){var e=this,r=e.min,s=0;vn.prototype._configure.call(e),r===0&&(r=e._getFirstTickValue(e.minNotZero),s=Oa(e.options.ticks.fontSize,qe.global.defaultFontSize)/e._length),e._startValue=un(r),e._valueOffset=s,e._valueRange=(un(e.max)-un(r))/(1-s)},getPixelForValue:function(e){var r=this,s=0;return e=+r.getRightValue(e),e>r.min&&e>0&&(s=(un(e)-r._startValue)/r._valueRange+r._valueOffset),r.getPixelForDecimal(s)},getValueForPixel:function(e){var r=this,s=r.getDecimalForPixel(e);return s===0&&r.min===0?0:Math.pow(10,r._startValue+(s-r._valueOffset)*r._valueRange)}}),Oo=Io;Ya._defaults=Oo;var ca=te.valueOrDefault,wi=te.valueAtIndexOrDefault,Xa=te.options.resolve,Qi={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Cn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Ei(e){var r=e.ticks;return r.display&&e.display?ca(r.fontSize,qe.global.defaultFontSize)+r.backdropPaddingY*2:0}function ko(e,r,s){return te.isArray(s)?{w:te.longestText(e,e.font,s),h:s.length*r}:{w:e.measureText(s).width,h:r}}function Zi(e,r,s,f,x){return e===f||e===x?{start:r-s/2,end:r+s/2}:e<f||e>x?{start:r-s,end:r}:{start:r,end:r+s}}function Ji(e){var r=te.options._parseFont(e.options.pointLabels),s={l:0,r:e.width,t:0,b:e.height-e.paddingTop},f={},x,D,I;e.ctx.font=r.string,e._pointLabelSizes=[];var F=e.chart.data.labels.length;for(x=0;x<F;x++){I=e.getPointPosition(x,e.drawingArea+5),D=ko(e.ctx,r.lineHeight,e.pointLabels[x]),e._pointLabelSizes[x]=D;var O=e.getIndexAngle(x),W=te.toDegrees(O)%360,Z=Zi(W,I.x,D.w,0,180),ee=Zi(W,I.y,D.h,90,270);Z.start<s.l&&(s.l=Z.start,f.l=O),Z.end>s.r&&(s.r=Z.end,f.r=O),ee.start<s.t&&(s.t=ee.start,f.t=O),ee.end>s.b&&(s.b=ee.end,f.b=O)}e.setReductions(e.drawingArea,s,f)}function Ao(e){return e===0||e===180?"center":e<180?"left":"right"}function Po(e,r,s,f){var x=s.y+f/2,D,I;if(te.isArray(r))for(D=0,I=r.length;D<I;++D)e.fillText(r[D],s.x,x),x+=f;else e.fillText(r,s.x,x)}function Ka(e,r,s){e===90||e===270?s.y-=r.h/2:(e>270||e<90)&&(s.y-=r.h)}function Li(e){var r=e.ctx,s=e.options,f=s.pointLabels,x=Ei(s),D=e.getDistanceFromCenterForValue(s.ticks.reverse?e.min:e.max),I=te.options._parseFont(f);r.save(),r.font=I.string,r.textBaseline="middle";for(var F=e.chart.data.labels.length-1;F>=0;F--){var O=F===0?x/2:0,W=e.getPointPosition(F,D+O+5),Z=wi(f.fontColor,F,qe.global.defaultFontColor);r.fillStyle=Z;var ee=e.getIndexAngle(F),fe=te.toDegrees(ee);r.textAlign=Ao(fe),Ka(fe,e._pointLabelSizes[F],W),Po(r,e.pointLabels[F],W,I.lineHeight)}r.restore()}function Qa(e,r,s,f){var x=e.ctx,D=r.circular,I=e.chart.data.labels.length,F=wi(r.color,f-1),O=wi(r.lineWidth,f-1),W;if(!(!D&&!I||!F||!O)){if(x.save(),x.strokeStyle=F,x.lineWidth=O,x.setLineDash&&(x.setLineDash(r.borderDash||[]),x.lineDashOffset=r.borderDashOffset||0),x.beginPath(),D)x.arc(e.xCenter,e.yCenter,s,0,Math.PI*2);else{W=e.getPointPosition(0,s),x.moveTo(W.x,W.y);for(var Z=1;Z<I;Z++)W=e.getPointPosition(Z,s),x.lineTo(W.x,W.y)}x.closePath(),x.stroke(),x.restore()}}function ui(e){return te.isNumber(e)?e:0}var di=da.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Ei(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,r=e.chart,s=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY;te.each(r.data.datasets,function(x,D){if(r.isDatasetVisible(D)){var I=r.getDatasetMeta(D);te.each(x.data,function(F,O){var W=+e.getRightValue(F);isNaN(W)||I.data[O].hidden||(s=Math.min(W,s),f=Math.max(W,f))})}}),e.min=s===Number.POSITIVE_INFINITY?0:s,e.max=f===Number.NEGATIVE_INFINITY?0:f,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Ei(this.options))},convertTicksToLabels:function(){var e=this;da.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var r=te.callback(e.options.pointLabels.callback,arguments,e);return r||r===0?r:""})},getLabelForIndex:function(e,r){return+this.getRightValue(this.chart.data.datasets[r].data[e])},fit:function(){var e=this,r=e.options;r.display&&r.pointLabels.display?Ji(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,r,s){var f=this,x=r.l/Math.sin(s.l),D=Math.max(r.r-f.width,0)/Math.sin(s.r),I=-r.t/Math.cos(s.t),F=-Math.max(r.b-(f.height-f.paddingTop),0)/Math.cos(s.b);x=ui(x),D=ui(D),I=ui(I),F=ui(F),f.drawingArea=Math.min(Math.floor(e-(x+D)/2),Math.floor(e-(I+F)/2)),f.setCenterPoint(x,D,I,F)},setCenterPoint:function(e,r,s,f){var x=this,D=x.width-r-x.drawingArea,I=e+x.drawingArea,F=s+x.drawingArea,O=x.height-x.paddingTop-f-x.drawingArea;x.xCenter=Math.floor((I+D)/2+x.left),x.yCenter=Math.floor((F+O)/2+x.top+x.paddingTop)},getIndexAngle:function(e){var r=this.chart,s=360/r.data.labels.length,f=r.options||{},x=f.startAngle||0,D=(e*s+x)%360;return(D<0?D+360:D)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var r=this;if(te.isNullOrUndef(e))return NaN;var s=r.drawingArea/(r.max-r.min);return r.options.ticks.reverse?(r.max-e)*s:(e-r.min)*s},getPointPosition:function(e,r){var s=this,f=s.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(f)*r+s.xCenter,y:Math.sin(f)*r+s.yCenter}},getPointPositionForValue:function(e,r){return this.getPointPosition(e,this.getDistanceFromCenterForValue(r))},getBasePosition:function(e){var r=this,s=r.min,f=r.max;return r.getPointPositionForValue(e||0,r.beginAtZero?0:s<0&&f<0?f:s>0&&f>0?s:0)},_drawGrid:function(){var e=this,r=e.ctx,s=e.options,f=s.gridLines,x=s.angleLines,D=ca(x.lineWidth,f.lineWidth),I=ca(x.color,f.color),F,O,W;if(s.pointLabels.display&&Li(e),f.display&&te.each(e.ticks,function(Z,ee){ee!==0&&(O=e.getDistanceFromCenterForValue(e.ticksAsNumbers[ee]),Qa(e,f,O,ee))}),x.display&&D&&I){for(r.save(),r.lineWidth=D,r.strokeStyle=I,r.setLineDash&&(r.setLineDash(Xa([x.borderDash,f.borderDash,[]])),r.lineDashOffset=Xa([x.borderDashOffset,f.borderDashOffset,0])),F=e.chart.data.labels.length-1;F>=0;F--)O=e.getDistanceFromCenterForValue(s.ticks.reverse?e.min:e.max),W=e.getPointPosition(F,O),r.beginPath(),r.moveTo(e.xCenter,e.yCenter),r.lineTo(W.x,W.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,r=e.ctx,s=e.options,f=s.ticks;if(f.display){var x=e.getIndexAngle(0),D=te.options._parseFont(f),I=ca(f.fontColor,qe.global.defaultFontColor),F,O;r.save(),r.font=D.string,r.translate(e.xCenter,e.yCenter),r.rotate(x),r.textAlign="center",r.textBaseline="middle",te.each(e.ticks,function(W,Z){Z===0&&!f.reverse||(F=e.getDistanceFromCenterForValue(e.ticksAsNumbers[Z]),f.showLabelBackdrop&&(O=r.measureText(W).width,r.fillStyle=f.backdropColor,r.fillRect(-O/2-f.backdropPaddingX,-F-D.size/2-f.backdropPaddingY,O+f.backdropPaddingX*2,D.size+f.backdropPaddingY*2)),r.fillStyle=I,r.fillText(W,0,-F))}),r.restore()}},_drawTitle:te.noop}),fa=Qi;di._defaults=fa;var ha=te._deprecated,Si=te.options.resolve,Za=te.valueOrDefault,Aa=Number.MIN_SAFE_INTEGER||-9007199254740991,Pa=Number.MAX_SAFE_INTEGER||9007199254740991,pa={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},dn=Object.keys(pa);function La(e,r){return e-r}function Lo(e){var r={},s=[],f,x,D;for(f=0,x=e.length;f<x;++f)D=e[f],r[D]||(r[D]=!0,s.push(D));return s}function Ja(e){return te.valueOrDefault(e.time.min,e.ticks.min)}function $a(e){return te.valueOrDefault(e.time.max,e.ticks.max)}function $i(e,r,s,f){if(f==="linear"||!e.length)return[{time:r,pos:0},{time:s,pos:1}];var x=[],D=[r],I,F,O,W,Z;for(I=0,F=e.length;I<F;++I)W=e[I],W>r&&W<s&&D.push(W);for(D.push(s),I=0,F=D.length;I<F;++I)Z=D[I+1],O=D[I-1],W=D[I],(O===void 0||Z===void 0||Math.round((Z+O)/2)!==W)&&x.push({time:W,pos:I/(F-1)});return x}function Ni(e,r,s){for(var f=0,x=e.length-1,D,I,F;f>=0&&f<=x;)if(D=f+x>>1,I=e[D-1]||null,F=e[D],I)if(F[r]<s)f=D+1;else if(I[r]>s)x=D-1;else return{lo:I,hi:F};else return{lo:null,hi:F};return{lo:F,hi:null}}function Fi(e,r,s,f){var x=Ni(e,r,s),D=x.lo?x.hi?x.lo:e[e.length-2]:e[0],I=x.lo?x.hi?x.hi:e[e.length-1]:e[1],F=I[r]-D[r],O=F?(s-D[r])/F:0,W=(I[f]-D[f])*O;return D[f]+W}function Hi(e,r){var s=e._adapter,f=e.options.time,x=f.parser,D=x||f.format,I=r;return typeof x=="function"&&(I=x(I)),te.isFinite(I)||(I=typeof D=="string"?s.parse(I,D):s.parse(I)),I!==null?+I:(!x&&typeof D=="function"&&(I=D(r),te.isFinite(I)||(I=s.parse(I))),I)}function Ln(e,r){if(te.isNullOrUndef(r))return null;var s=e.options.time,f=Hi(e,e.getRightValue(r));return f===null||s.round&&(f=+e._adapter.startOf(f,s.round)),f}function qa(e,r,s,f){var x=dn.length,D,I,F;for(D=dn.indexOf(e);D<x-1;++D)if(I=pa[dn[D]],F=I.steps?I.steps:Pa,I.common&&Math.ceil((s-r)/(F*I.size))<=f)return dn[D];return dn[x-1]}function No(e,r,s,f,x){var D,I;for(D=dn.length-1;D>=dn.indexOf(s);D--)if(I=dn[D],pa[I].common&&e._adapter.diff(x,f,I)>=r-1)return I;return dn[s?dn.indexOf(s):0]}function eo(e){for(var r=dn.indexOf(e)+1,s=dn.length;r<s;++r)if(pa[dn[r]].common)return dn[r]}function qi(e,r,s,f){var x=e._adapter,D=e.options,I=D.time,F=I.unit||qa(I.minUnit,r,s,f),O=Si([I.stepSize,I.unitStepSize,1]),W=F==="week"?I.isoWeekday:!1,Z=r,ee=[],fe;if(W&&(Z=+x.startOf(Z,"isoWeek",W)),Z=+x.startOf(Z,W?"day":F),x.diff(s,r,F)>1e5*O)throw r+" and "+s+" are too far apart with stepSize of "+O+" "+F;for(fe=Z;fe<s;fe=+x.add(fe,O,F))ee.push(fe);return(fe===s||D.bounds==="ticks")&&ee.push(fe),ee}function to(e,r,s,f,x){var D=0,I=0,F,O;return x.offset&&r.length&&(F=Fi(e,"time",r[0],"pos"),r.length===1?D=1-F:D=(Fi(e,"time",r[1],"pos")-F)/2,O=Fi(e,"time",r[r.length-1],"pos"),r.length===1?I=O:I=(O-Fi(e,"time",r[r.length-2],"pos"))/2),{start:D,end:I,factor:1/(D+1+I)}}function ro(e,r,s,f){var x=e._adapter,D=+x.startOf(r[0].value,f),I=r[r.length-1].value,F,O;for(F=D;F<=I;F=+x.add(F,1,f))O=s[F],O>=0&&(r[O].major=!0);return r}function no(e,r,s){var f=[],x={},D=r.length,I,F;for(I=0;I<D;++I)F=r[I],x[F]=I,f.push({value:F,major:!1});return D===0||!s?f:ro(e,f,x,s)}var Fo={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},io=vn.extend({initialize:function(){this.mergeTicksOptions(),vn.prototype.initialize.call(this)},update:function(){var e=this,r=e.options,s=r.time||(r.time={}),f=e._adapter=new Da._date(r.adapters.date);return ha("time scale",s.format,"time.format","time.parser"),ha("time scale",s.min,"time.min","ticks.min"),ha("time scale",s.max,"time.max","ticks.max"),te.mergeIf(s.displayFormats,f.formats()),vn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&e.t!==void 0&&(e=e.t),vn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e=this,r=e.chart,s=e._adapter,f=e.options,x=f.time.unit||"day",D=Pa,I=Aa,F=[],O=[],W=[],Z,ee,fe,Ee,De,Ie,Pe,rt=e._getLabels();for(Z=0,fe=rt.length;Z<fe;++Z)W.push(Ln(e,rt[Z]));for(Z=0,fe=(r.data.datasets||[]).length;Z<fe;++Z)if(r.isDatasetVisible(Z))if(De=r.data.datasets[Z].data,te.isObject(De[0]))for(O[Z]=[],ee=0,Ee=De.length;ee<Ee;++ee)Ie=Ln(e,De[ee]),F.push(Ie),O[Z][ee]=Ie;else O[Z]=W.slice(0),Pe||(F=F.concat(W),Pe=!0);else O[Z]=[];W.length&&(D=Math.min(D,W[0]),I=Math.max(I,W[W.length-1])),F.length&&(F=fe>1?Lo(F).sort(La):F.sort(La),D=Math.min(D,F[0]),I=Math.max(I,F[F.length-1])),D=Ln(e,Ja(f))||D,I=Ln(e,$a(f))||I,D=D===Pa?+s.startOf(Date.now(),x):D,I=I===Aa?+s.endOf(Date.now(),x)+1:I,e.min=Math.min(D,I),e.max=Math.max(D+1,I),e._table=[],e._timestamps={data:F,datasets:O,labels:W}},buildTicks:function(){var e=this,r=e.min,s=e.max,f=e.options,x=f.ticks,D=f.time,I=e._timestamps,F=[],O=e.getLabelCapacity(r),W=x.source,Z=f.distribution,ee,fe,Ee;for(W==="data"||W==="auto"&&Z==="series"?I=I.data:W==="labels"?I=I.labels:I=qi(e,r,s,O),f.bounds==="ticks"&&I.length&&(r=I[0],s=I[I.length-1]),r=Ln(e,Ja(f))||r,s=Ln(e,$a(f))||s,ee=0,fe=I.length;ee<fe;++ee)Ee=I[ee],Ee>=r&&Ee<=s&&F.push(Ee);return e.min=r,e.max=s,e._unit=D.unit||(x.autoSkip?qa(D.minUnit,e.min,e.max,O):No(e,F.length,D.minUnit,e.min,e.max)),e._majorUnit=!x.major.enabled||e._unit==="year"?void 0:eo(e._unit),e._table=$i(e._timestamps.data,r,s,Z),e._offsets=to(e._table,F,r,s,f),x.reverse&&F.reverse(),no(e,F,e._majorUnit)},getLabelForIndex:function(e,r){var s=this,f=s._adapter,x=s.chart.data,D=s.options.time,I=x.labels&&e<x.labels.length?x.labels[e]:"",F=x.datasets[r].data[e];return te.isObject(F)&&(I=s.getRightValue(F)),D.tooltipFormat?f.format(Hi(s,I),D.tooltipFormat):typeof I=="string"?I:f.format(Hi(s,I),D.displayFormats.datetime)},tickFormatFunction:function(e,r,s,f){var x=this,D=x._adapter,I=x.options,F=I.time.displayFormats,O=F[x._unit],W=x._majorUnit,Z=F[W],ee=s[r],fe=I.ticks,Ee=W&&Z&&ee&&ee.major,De=D.format(e,f||(Ee?Z:O)),Ie=Ee?fe.major:fe.minor,Pe=Si([Ie.callback,Ie.userCallback,fe.callback,fe.userCallback]);return Pe?Pe(De,r,s):De},convertTicksToLabels:function(e){var r=[],s,f;for(s=0,f=e.length;s<f;++s)r.push(this.tickFormatFunction(e[s].value,s,e));return r},getPixelForOffset:function(e){var r=this,s=r._offsets,f=Fi(r._table,"time",e,"pos");return r.getPixelForDecimal((s.start+f)*s.factor)},getPixelForValue:function(e,r,s){var f=this,x=null;if(r!==void 0&&s!==void 0&&(x=f._timestamps.datasets[s][r]),x===null&&(x=Ln(f,e)),x!==null)return f.getPixelForOffset(x)},getPixelForTick:function(e){var r=this.getTicks();return e>=0&&e<r.length?this.getPixelForOffset(r[e].value):null},getValueForPixel:function(e){var r=this,s=r._offsets,f=r.getDecimalForPixel(e)/s.factor-s.end,x=Fi(r._table,"pos",f,"time");return r._adapter._create(x)},_getLabelSize:function(e){var r=this,s=r.options.ticks,f=r.ctx.measureText(e).width,x=te.toRadians(r.isHorizontal()?s.maxRotation:s.minRotation),D=Math.cos(x),I=Math.sin(x),F=Za(s.fontSize,qe.global.defaultFontSize);return{w:f*D+F*I,h:f*I+F*D}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var r=this,s=r.options.time,f=s.displayFormats,x=f[s.unit]||f.millisecond,D=r.tickFormatFunction(e,0,no(r,[e],r._majorUnit),x),I=r._getLabelSize(D),F=Math.floor(r.isHorizontal()?r.width/I.w:r.height/I.h);return r.options.offset&&F--,F>0?F:1}}),Ho=Fo;io._defaults=Ho;var Na={category:An,linear:Va,logarithmic:Ya,radialLinear:di,time:io},ao={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Da._date.override(typeof b=="function"?{_id:"moment",formats:function(){return ao},parse:function(e,r){return typeof e=="string"&&typeof r=="string"?e=b(e,r):e instanceof b||(e=b(e)),e.isValid()?e.valueOf():null},format:function(e,r){return b(e).format(r)},add:function(e,r,s){return b(e).add(r,s).valueOf()},diff:function(e,r,s){return b(e).diff(b(r),s)},startOf:function(e,r,s){return e=b(e),r==="isoWeek"?e.isoWeekday(s).valueOf():e.startOf(r).valueOf()},endOf:function(e,r){return b(e).endOf(r).valueOf()},_create:function(e){return b(e)}}:{}),qe._set("global",{plugins:{filler:{propagate:!0}}});var zo={dataset:function(e){var r=e.fill,s=e.chart,f=s.getDatasetMeta(r),x=f&&s.isDatasetVisible(r),D=x&&f.dataset._children||[],I=D.length||0;return I?function(F,O){return O<I&&D[O]._view||null}:null},boundary:function(e){var r=e.boundary,s=r?r.x:null,f=r?r.y:null;return te.isArray(r)?function(x,D){return r[D]}:function(x){return{x:s===null?x.x:s,y:f===null?x.y:f}}}};function va(e,r,s){var f=e._model||{},x=f.fill,D;if(x===void 0&&(x=!!f.backgroundColor),x===!1||x===null)return!1;if(x===!0)return"origin";if(D=parseFloat(x,10),isFinite(D)&&Math.floor(D)===D)return(x[0]==="-"||x[0]==="+")&&(D=r+D),D===r||D<0||D>=s?!1:D;switch(x){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return x;default:return!1}}function je(e){var r=e.el._model||{},s=e.el._scale||{},f=e.fill,x=null,D;if(isFinite(f))return null;if(f==="start"?x=r.scaleBottom===void 0?s.bottom:r.scaleBottom:f==="end"?x=r.scaleTop===void 0?s.top:r.scaleTop:r.scaleZero!==void 0?x=r.scaleZero:s.getBasePixel&&(x=s.getBasePixel()),x!=null){if(x.x!==void 0&&x.y!==void 0)return x;if(te.isFinite(x))return D=s.isHorizontal(),{x:D?x:null,y:D?null:x}}return null}function Te(e){var r=e.el._scale,s=r.options,f=r.chart.data.labels.length,x=e.fill,D=[],I,F,O,W,Z;if(!f)return null;for(I=s.ticks.reverse?r.max:r.min,F=s.ticks.reverse?r.min:r.max,O=r.getPointPositionForValue(0,I),W=0;W<f;++W)Z=x==="start"||x==="end"?r.getPointPositionForValue(W,x==="start"?I:F):r.getBasePosition(W),s.gridLines.circular&&(Z.cx=O.x,Z.cy=O.y,Z.angle=r.getIndexAngle(W)-Math.PI/2),D.push(Z);return D}function Se(e){var r=e.el._scale||{};return r.getPointPositionForValue?Te(e):je(e)}function Y(e,r,s){var f=e[r],x=f.fill,D=[r],I;if(!s)return x;for(;x!==!1&&D.indexOf(x)===-1;){if(!isFinite(x))return x;if(I=e[x],!I)return!1;if(I.visible)return x;D.push(x),x=I.fill}return!1}function ue(e){var r=e.fill,s="dataset";return r===!1?null:(isFinite(r)||(s="boundary"),zo[s](e))}function ye(e){return e&&!e.skip}function Ve(e,r,s,f,x){var D,I,F,O;if(!(!f||!x)){for(e.moveTo(r[0].x,r[0].y),D=1;D<f;++D)te.canvas.lineTo(e,r[D-1],r[D]);if(s[0].angle!==void 0){for(I=s[0].cx,F=s[0].cy,O=Math.sqrt(Math.pow(s[0].x-I,2)+Math.pow(s[0].y-F,2)),D=x-1;D>0;--D)e.arc(I,F,O,s[D].angle,s[D-1].angle,!0);return}for(e.lineTo(s[x-1].x,s[x-1].y),D=x-1;D>0;--D)te.canvas.lineTo(e,s[D],s[D-1],!0)}}function Je(e,r,s,f,x,D){var I=r.length,F=f.spanGaps,O=[],W=[],Z=0,ee=0,fe,Ee,De,Ie,Pe,rt,wt,It;for(e.beginPath(),fe=0,Ee=I;fe<Ee;++fe)De=fe%I,Ie=r[De]._view,Pe=s(Ie,De,f),rt=ye(Ie),wt=ye(Pe),D&&It===void 0&&rt&&(It=fe+1,Ee=I+It),rt&&wt?(Z=O.push(Ie),ee=W.push(Pe)):Z&&ee&&(F?(rt&&O.push(Ie),wt&&W.push(Pe)):(Ve(e,O,W,Z,ee),Z=ee=0,O=[],W=[]));Ve(e,O,W,Z,ee),e.closePath(),e.fillStyle=x,e.fill()}var lt={id:"filler",afterDatasetsUpdate:function(e,r){var s=(e.data.datasets||[]).length,f=r.propagate,x=[],D,I,F,O;for(I=0;I<s;++I)D=e.getDatasetMeta(I),F=D.dataset,O=null,F&&F._model&&F instanceof Gt.Line&&(O={visible:e.isDatasetVisible(I),fill:va(F,I,s),chart:e,el:F}),D.$filler=O,x.push(O);for(I=0;I<s;++I)O=x[I],O&&(O.fill=Y(x,I,f),O.boundary=Se(O),O.mapper=ue(O))},beforeDatasetsDraw:function(e){var r=e._getSortedVisibleDatasetMetas(),s=e.ctx,f,x,D,I,F,O,W;for(x=r.length-1;x>=0;--x)f=r[x].$filler,!(!f||!f.visible)&&(D=f.el,I=D._view,F=D._children||[],O=f.mapper,W=I.backgroundColor||qe.global.defaultColor,O&&W&&F.length&&(te.canvas.clipArea(s,e.chartArea),Je(s,F,O,I,W,D._loop),te.canvas.unclipArea(s)))}},jt=te.rtl.getRtlAdapter,Jt=te.noop,$t=te.valueOrDefault;qe._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,r){var s=r.datasetIndex,f=this.chart,x=f.getDatasetMeta(s);x.hidden=x.hidden===null?!f.data.datasets[s].hidden:null,f.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var r=e.data.datasets,s=e.options.legend||{},f=s.labels&&s.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(x){var D=x.controller.getStyle(f?0:void 0);return{text:r[x.index].label,fillStyle:D.backgroundColor,hidden:!e.isDatasetVisible(x.index),lineCap:D.borderCapStyle,lineDash:D.borderDash,lineDashOffset:D.borderDashOffset,lineJoin:D.borderJoinStyle,lineWidth:D.borderWidth,strokeStyle:D.borderColor,pointStyle:D.pointStyle,rotation:D.rotation,datasetIndex:x.index}},this)}}},legendCallback:function(e){var r=document.createElement("ul"),s=e.data.datasets,f,x,D,I;for(r.setAttribute("class",e.id+"-legend"),f=0,x=s.length;f<x;f++)D=r.appendChild(document.createElement("li")),I=D.appendChild(document.createElement("span")),I.style.backgroundColor=s[f].backgroundColor,s[f].label&&D.appendChild(document.createTextNode(s[f].label));return r.outerHTML}});function zr(e,r){return e.usePointStyle&&e.boxWidth>r?r:e.boxWidth}var Nn=ce.extend({initialize:function(e){var r=this;te.extend(r,e),r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1},beforeUpdate:Jt,update:function(e,r,s){var f=this;return f.beforeUpdate(),f.maxWidth=e,f.maxHeight=r,f.margins=s,f.beforeSetDimensions(),f.setDimensions(),f.afterSetDimensions(),f.beforeBuildLabels(),f.buildLabels(),f.afterBuildLabels(),f.beforeFit(),f.fit(),f.afterFit(),f.afterUpdate(),f.minSize},afterUpdate:Jt,beforeSetDimensions:Jt,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Jt,beforeBuildLabels:Jt,buildLabels:function(){var e=this,r=e.options.labels||{},s=te.callback(r.generateLabels,[e.chart],e)||[];r.filter&&(s=s.filter(function(f){return r.filter(f,e.chart.data)})),e.options.reverse&&s.reverse(),e.legendItems=s},afterBuildLabels:Jt,beforeFit:Jt,fit:function(){var e=this,r=e.options,s=r.labels,f=r.display,x=e.ctx,D=te.options._parseFont(s),I=D.size,F=e.legendHitBoxes=[],O=e.minSize,W=e.isHorizontal();if(W?(O.width=e.maxWidth,O.height=f?10:0):(O.width=f?10:0,O.height=e.maxHeight),!f){e.width=O.width=e.height=O.height=0;return}if(x.font=D.string,W){var Z=e.lineWidths=[0],ee=0;x.textAlign="left",x.textBaseline="middle",te.each(e.legendItems,function(wt,It){var Zt=zr(s,I),Kt=Zt+I/2+x.measureText(wt.text).width;(It===0||Z[Z.length-1]+Kt+2*s.padding>O.width)&&(ee+=I+s.padding,Z[Z.length-(It>0?0:1)]=0),F[It]={left:0,top:0,width:Kt,height:I},Z[Z.length-1]+=Kt+s.padding}),O.height+=ee}else{var fe=s.padding,Ee=e.columnWidths=[],De=e.columnHeights=[],Ie=s.padding,Pe=0,rt=0;te.each(e.legendItems,function(wt,It){var Zt=zr(s,I),Kt=Zt+I/2+x.measureText(wt.text).width;It>0&&rt+I+2*fe>O.height&&(Ie+=Pe+s.padding,Ee.push(Pe),De.push(rt),Pe=0,rt=0),Pe=Math.max(Pe,Kt),rt+=I+fe,F[It]={left:0,top:0,width:Kt,height:I}}),Ie+=Pe,Ee.push(Pe),De.push(rt),O.width+=Ie}e.width=O.width,e.height=O.height},afterFit:Jt,isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},draw:function(){var e=this,r=e.options,s=r.labels,f=qe.global,x=f.defaultColor,D=f.elements.line,I=e.height,F=e.columnHeights,O=e.width,W=e.lineWidths;if(r.display){var Z=jt(r.rtl,e.left,e.minSize.width),ee=e.ctx,fe=$t(s.fontColor,f.defaultFontColor),Ee=te.options._parseFont(s),De=Ee.size,Ie;ee.textAlign=Z.textAlign("left"),ee.textBaseline="middle",ee.lineWidth=.5,ee.strokeStyle=fe,ee.fillStyle=fe,ee.font=Ee.string;var Pe=zr(s,De),rt=e.legendHitBoxes,wt=function(ur,wr,Cr){if(!(isNaN(Pe)||Pe<=0)){ee.save();var tn=$t(Cr.lineWidth,D.borderWidth);if(ee.fillStyle=$t(Cr.fillStyle,x),ee.lineCap=$t(Cr.lineCap,D.borderCapStyle),ee.lineDashOffset=$t(Cr.lineDashOffset,D.borderDashOffset),ee.lineJoin=$t(Cr.lineJoin,D.borderJoinStyle),ee.lineWidth=tn,ee.strokeStyle=$t(Cr.strokeStyle,x),ee.setLineDash&&ee.setLineDash($t(Cr.lineDash,D.borderDash)),s&&s.usePointStyle){var Jr=Pe*Math.SQRT2/2,Vr=Z.xPlus(ur,Pe/2),cn=wr+De/2;te.canvas.drawPoint(ee,Cr.pointStyle,Jr,Vr,cn,Cr.rotation)}else ee.fillRect(Z.leftForLtr(ur,Pe),wr,Pe,De),tn!==0&&ee.strokeRect(Z.leftForLtr(ur,Pe),wr,Pe,De);ee.restore()}},It=function(ur,wr,Cr,tn){var Jr=De/2,Vr=Z.xPlus(ur,Pe+Jr),cn=wr+Jr;ee.fillText(Cr.text,Vr,cn),Cr.hidden&&(ee.beginPath(),ee.lineWidth=2,ee.moveTo(Vr,cn),ee.lineTo(Z.xPlus(Vr,tn),cn),ee.stroke())},Zt=function(ur,wr){switch(r.align){case"start":return s.padding;case"end":return ur-wr;default:return(ur-wr+s.padding)/2}},Kt=e.isHorizontal();Kt?Ie={x:e.left+Zt(O,W[0]),y:e.top+s.padding,line:0}:Ie={x:e.left+s.padding,y:e.top+Zt(I,F[0]),line:0},te.rtl.overrideTextDirection(e.ctx,r.textDirection);var fr=De+s.padding;te.each(e.legendItems,function(ur,wr){var Cr=ee.measureText(ur.text).width,tn=Pe+De/2+Cr,Jr=Ie.x,Vr=Ie.y;Z.setWidth(e.minSize.width),Kt?wr>0&&Jr+tn+s.padding>e.left+e.minSize.width&&(Vr=Ie.y+=fr,Ie.line++,Jr=Ie.x=e.left+Zt(O,W[Ie.line])):wr>0&&Vr+fr>e.top+e.minSize.height&&(Jr=Ie.x=Jr+e.columnWidths[Ie.line]+s.padding,Ie.line++,Vr=Ie.y=e.top+Zt(I,F[Ie.line]));var cn=Z.x(Jr);wt(cn,Vr,ur),rt[wr].left=Z.leftForLtr(cn,rt[wr].width),rt[wr].top=Vr,It(cn,Vr,ur,Cr),Kt?Ie.x+=tn+s.padding:Ie.y+=fr}),te.rtl.restoreTextDirection(e.ctx,r.textDirection)}},_getLegendItemAt:function(e,r){var s=this,f,x,D;if(e>=s.left&&e<=s.right&&r>=s.top&&r<=s.bottom){for(D=s.legendHitBoxes,f=0;f<D.length;++f)if(x=D[f],e>=x.left&&e<=x.left+x.width&&r>=x.top&&r<=x.top+x.height)return s.legendItems[f]}return null},handleEvent:function(e){var r=this,s=r.options,f=e.type==="mouseup"?"click":e.type,x;if(f==="mousemove"){if(!s.onHover&&!s.onLeave)return}else if(f==="click"){if(!s.onClick)return}else return;x=r._getLegendItemAt(e.x,e.y),f==="click"?x&&s.onClick&&s.onClick.call(r,e.native,x):(s.onLeave&&x!==r._hoveredItem&&(r._hoveredItem&&s.onLeave.call(r,e.native,r._hoveredItem),r._hoveredItem=x),s.onHover&&x&&s.onHover.call(r,e.native,x))}});function Tn(e,r){var s=new Nn({ctx:e.ctx,options:r,chart:e});Kr.configure(e,s,r),Kr.addBox(e,s),e.legend=s}var bn={id:"legend",_element:Nn,beforeInit:function(e){var r=e.options.legend;r&&Tn(e,r)},beforeUpdate:function(e){var r=e.options.legend,s=e.legend;r?(te.mergeIf(r,qe.global.legend),s?(Kr.configure(e,s,r),s.options=r):Tn(e,r)):s&&(Kr.removeBox(e,s),delete e.legend)},afterEvent:function(e,r){var s=e.legend;s&&s.handleEvent(r)}},Mn=te.noop;qe._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var oo=ce.extend({initialize:function(e){var r=this;te.extend(r,e),r.legendHitBoxes=[]},beforeUpdate:Mn,update:function(e,r,s){var f=this;return f.beforeUpdate(),f.maxWidth=e,f.maxHeight=r,f.margins=s,f.beforeSetDimensions(),f.setDimensions(),f.afterSetDimensions(),f.beforeBuildLabels(),f.buildLabels(),f.afterBuildLabels(),f.beforeFit(),f.fit(),f.afterFit(),f.afterUpdate(),f.minSize},afterUpdate:Mn,beforeSetDimensions:Mn,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Mn,beforeBuildLabels:Mn,buildLabels:Mn,afterBuildLabels:Mn,beforeFit:Mn,fit:function(){var e=this,r=e.options,s=e.minSize={},f=e.isHorizontal(),x,D;if(!r.display){e.width=s.width=e.height=s.height=0;return}x=te.isArray(r.text)?r.text.length:1,D=x*te.options._parseFont(r).lineHeight+r.padding*2,e.width=s.width=f?e.maxWidth:D,e.height=s.height=f?D:e.maxHeight},afterFit:Mn,isHorizontal:function(){var e=this.options.position;return e==="top"||e==="bottom"},draw:function(){var e=this,r=e.ctx,s=e.options;if(s.display){var f=te.options._parseFont(s),x=f.lineHeight,D=x/2+s.padding,I=0,F=e.top,O=e.left,W=e.bottom,Z=e.right,ee,fe,Ee;r.fillStyle=te.valueOrDefault(s.fontColor,qe.global.defaultFontColor),r.font=f.string,e.isHorizontal()?(fe=O+(Z-O)/2,Ee=F+D,ee=Z-O):(fe=s.position==="left"?O+D:Z-D,Ee=F+(W-F)/2,ee=W-F,I=Math.PI*(s.position==="left"?-.5:.5)),r.save(),r.translate(fe,Ee),r.rotate(I),r.textAlign="center",r.textBaseline="middle";var De=s.text;if(te.isArray(De))for(var Ie=0,Pe=0;Pe<De.length;++Pe)r.fillText(De[Pe],0,Ie,ee),Ie+=x;else r.fillText(De,0,0,ee);r.restore()}}});function Fa(e,r){var s=new oo({ctx:e.ctx,options:r,chart:e});Kr.configure(e,s,r),Kr.addBox(e,s),e.titleBlock=s}var rs={id:"title",_element:oo,beforeInit:function(e){var r=e.options.title;r&&Fa(e,r)},beforeUpdate:function(e){var r=e.options.title,s=e.titleBlock;r?(te.mergeIf(r,qe.global.title),s?(Kr.configure(e,s,r),s.options=r):Fa(e,r)):s&&(Kr.removeBox(e,s),delete e.titleBlock)}},ut={},ns=lt,is=bn,Xo=rs;ut.filler=ns,ut.legend=is,ut.title=Xo,Yt.helpers=te,Gi(),Yt._adapters=Da,Yt.Animation=Me,Yt.animationService=Ze,Yt.controllers=Ti,Yt.DatasetController=lr,Yt.defaults=qe,Yt.Element=ce,Yt.elements=Gt,Yt.Interaction=ni,Yt.layouts=Kr,Yt.platform=xn,Yt.plugins=zt,Yt.Scale=vn,Yt.scaleService=Rr,Yt.Ticks=Cn,Yt.Tooltip=Ea,Yt.helpers.each(Na,function(e,r){Yt.scaleService.registerScaleType(r,e,e._defaults)});for(var cr in ut)ut.hasOwnProperty(cr)&&Yt.plugins.register(ut[cr]);Yt.platform.initialize();var so=Yt;return typeof window<"u"&&(window.Chart=Yt),Yt.Chart=Yt,Yt.Legend=ut.legend._element,Yt.Title=ut.title._element,Yt.pluginService=Yt.plugins,Yt.PluginBase=Yt.Element.extend({}),Yt.canvasHelpers=Yt.helpers.canvas,Yt.layoutService=Yt.layouts,Yt.LinearScaleBase=da,Yt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){Yt[e]=function(r,s){return new Yt(r,Yt.helpers.merge(s||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),so})})(dl);var zu=dl.exports;const Bu=ba(zu);var Go={};(function H(M,b,P,B){var m=!!(M.Worker&&M.Blob&&M.Promise&&M.OffscreenCanvas&&M.OffscreenCanvasRenderingContext2D&&M.HTMLCanvasElement&&M.HTMLCanvasElement.prototype.transferControlToOffscreen&&M.URL&&M.URL.createObjectURL);function t(){}function p(Q){var re=b.exports.Promise,ge=re!==void 0?re:M.Promise;return typeof ge=="function"?new ge(Q):(Q(t,t),null)}var w=function(){var Q=Math.floor(16.666666666666668),re,ge,Ce={},pe=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(re=function(ie){var oe=Math.random();return Ce[oe]=requestAnimationFrame(function me(Fe){pe===Fe||pe+Q-1<Fe?(pe=Fe,delete Ce[oe],ie()):Ce[oe]=requestAnimationFrame(me)}),oe},ge=function(ie){Ce[ie]&&cancelAnimationFrame(Ce[ie])}):(re=function(ie){return setTimeout(ie,Q)},ge=function(ie){return clearTimeout(ie)}),{frame:re,cancel:ge}}(),g=function(){var Q,re,ge={};function Ce(pe){function ie(oe,me){pe.postMessage({options:oe||{},callback:me})}pe.init=function(me){var Fe=me.transferControlToOffscreen();pe.postMessage({canvas:Fe},[Fe])},pe.fire=function(me,Fe,et){if(re)return ie(me,null),re;var ft=Math.random().toString(36).slice(2);return re=p(function(ze){function bt(St){St.data.callback===ft&&(delete ge[ft],pe.removeEventListener("message",bt),re=null,et(),ze())}pe.addEventListener("message",bt),ie(me,ft),ge[ft]=bt.bind(null,{data:{callback:ft}})}),re},pe.reset=function(){pe.postMessage({reset:!0});for(var me in ge)ge[me](),delete ge[me]}}return function(){if(Q)return Q;if(!P&&m){var pe=["var CONFETTI, SIZE = {}, module = {};","("+H.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
`);try{Q=new Worker(URL.createObjectURL(new Blob([pe])))}catch(ie){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",ie),null}Ce(Q)}return Q}}(),E={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function n(Q,re){return re?re(Q):Q}function i(Q){return Q!=null}function u(Q,re,ge){return n(Q&&i(Q[re])?Q[re]:E[re],ge)}function o(Q){return Q<0?0:Math.floor(Q)}function c(Q,re){return Math.floor(Math.random()*(re-Q))+Q}function l(Q){return parseInt(Q,16)}function a(Q){return Q.map(d)}function d(Q){var re=String(Q).replace(/[^0-9a-f]/gi,"");return re.length<6&&(re=re[0]+re[0]+re[1]+re[1]+re[2]+re[2]),{r:l(re.substring(0,2)),g:l(re.substring(2,4)),b:l(re.substring(4,6))}}function h(Q){var re=u(Q,"origin",Object);return re.x=u(re,"x",Number),re.y=u(re,"y",Number),re}function v(Q){Q.width=document.documentElement.clientWidth,Q.height=document.documentElement.clientHeight}function C(Q){var re=Q.getBoundingClientRect();Q.width=re.width,Q.height=re.height}function k(Q){var re=document.createElement("canvas");return re.style.position="fixed",re.style.top="0px",re.style.left="0px",re.style.pointerEvents="none",re.style.zIndex=Q,re}function j(Q,re,ge,Ce,pe,ie,oe,me,Fe){Q.save(),Q.translate(re,ge),Q.rotate(ie),Q.scale(Ce,pe),Q.arc(0,0,1,oe,me,Fe),Q.restore()}function G(Q){var re=Q.angle*(Math.PI/180),ge=Q.spread*(Math.PI/180);return{x:Q.x,y:Q.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Q.startVelocity*.5+Math.random()*Q.startVelocity,angle2D:-re+(.5*ge-Math.random()*ge),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:Q.color,shape:Q.shape,tick:0,totalTicks:Q.ticks,decay:Q.decay,drift:Q.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Q.gravity*3,ovalScalar:.6,scalar:Q.scalar}}function N(Q,re){re.x+=Math.cos(re.angle2D)*re.velocity+re.drift,re.y+=Math.sin(re.angle2D)*re.velocity+re.gravity,re.wobble+=re.wobbleSpeed,re.velocity*=re.decay,re.tiltAngle+=.1,re.tiltSin=Math.sin(re.tiltAngle),re.tiltCos=Math.cos(re.tiltAngle),re.random=Math.random()+2,re.wobbleX=re.x+10*re.scalar*Math.cos(re.wobble),re.wobbleY=re.y+10*re.scalar*Math.sin(re.wobble);var ge=re.tick++/re.totalTicks,Ce=re.x+re.random*re.tiltCos,pe=re.y+re.random*re.tiltSin,ie=re.wobbleX+re.random*re.tiltCos,oe=re.wobbleY+re.random*re.tiltSin;return Q.fillStyle="rgba("+re.color.r+", "+re.color.g+", "+re.color.b+", "+(1-ge)+")",Q.beginPath(),re.shape==="circle"?Q.ellipse?Q.ellipse(re.x,re.y,Math.abs(ie-Ce)*re.ovalScalar,Math.abs(oe-pe)*re.ovalScalar,Math.PI/10*re.wobble,0,2*Math.PI):j(Q,re.x,re.y,Math.abs(ie-Ce)*re.ovalScalar,Math.abs(oe-pe)*re.ovalScalar,Math.PI/10*re.wobble,0,2*Math.PI):(Q.moveTo(Math.floor(re.x),Math.floor(re.y)),Q.lineTo(Math.floor(re.wobbleX),Math.floor(pe)),Q.lineTo(Math.floor(ie),Math.floor(oe)),Q.lineTo(Math.floor(Ce),Math.floor(re.wobbleY))),Q.closePath(),Q.fill(),re.tick<re.totalTicks}function T(Q,re,ge,Ce,pe){var ie=re.slice(),oe=Q.getContext("2d"),me,Fe,et=p(function(ft){function ze(){me=Fe=null,oe.clearRect(0,0,Ce.width,Ce.height),pe(),ft()}function bt(){P&&!(Ce.width===B.width&&Ce.height===B.height)&&(Ce.width=Q.width=B.width,Ce.height=Q.height=B.height),!Ce.width&&!Ce.height&&(ge(Q),Ce.width=Q.width,Ce.height=Q.height),oe.clearRect(0,0,Ce.width,Ce.height),ie=ie.filter(function(St){return N(oe,St)}),ie.length?me=w.frame(bt):ze()}me=w.frame(bt),Fe=ze});return{addFettis:function(ft){return ie=ie.concat(ft),et},canvas:Q,promise:et,reset:function(){me&&w.cancel(me),Fe&&Fe()}}}function A(Q,re){var ge=!Q,Ce=!!u(re||{},"resize"),pe=u(re,"disableForReducedMotion",Boolean),ie=m&&!!u(re||{},"useWorker"),oe=ie?g():null,me=ge?v:C,Fe=Q&&oe?!!Q.__confetti_initialized:!1,et=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ft;function ze(St,Le,Et){for(var Mt=u(St,"particleCount",o),at=u(St,"angle",Number),Ot=u(St,"spread",Number),Ne=u(St,"startVelocity",Number),ct=u(St,"decay",Number),mt=u(St,"gravity",Number),Ct=u(St,"drift",Number),Ue=u(St,"colors",a),qe=u(St,"ticks",Number),Ft=u(St,"shapes"),Wt=u(St,"scalar"),ne=h(St),_e=Mt,tt=[],Dt=Q.width*ne.x,vt=Q.height*ne.y;_e--;)tt.push(G({x:Dt,y:vt,angle:at,spread:Ot,startVelocity:Ne,color:Ue[_e%Ue.length],shape:Ft[c(0,Ft.length)],ticks:qe,decay:ct,gravity:mt,drift:Ct,scalar:Wt}));return ft?ft.addFettis(tt):(ft=T(Q,tt,me,Le,Et),ft.promise)}function bt(St){var Le=pe||u(St,"disableForReducedMotion",Boolean),Et=u(St,"zIndex",Number);if(Le&&et)return p(function(Ne){Ne()});ge&&ft?Q=ft.canvas:ge&&!Q&&(Q=k(Et),document.body.appendChild(Q)),Ce&&!Fe&&me(Q);var Mt={width:Q.width,height:Q.height};oe&&!Fe&&oe.init(Q),Fe=!0,oe&&(Q.__confetti_initialized=!0);function at(){if(oe){var Ne={getBoundingClientRect:function(){if(!ge)return Q.getBoundingClientRect()}};me(Ne),oe.postMessage({resize:{width:Ne.width,height:Ne.height}});return}Mt.width=Mt.height=null}function Ot(){ft=null,Ce&&M.removeEventListener("resize",at),ge&&Q&&(document.body.removeChild(Q),Q=null,Fe=!1)}return Ce&&M.addEventListener("resize",at,!1),oe?oe.fire(St,Mt,Ot):ze(St,Mt,Ot)}return bt.reset=function(){oe&&oe.reset(),ft&&ft.reset()},bt}var U;function X(){return U||(U=A(null,{useWorker:!0,resize:!0})),U}b.exports=function(){return X().apply(this,arguments)},b.exports.reset=function(){X().reset()},b.exports.create=A})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Go,!1);const ys=Go.exports;Go.exports.create;var cl={exports:{}},ds={exports:{}};/*! DataTables 1.11.3
 * ©2008-2021 SpryMedia Ltd - datatables.net/license
 */var Ls;function ju(){return Ls||(Ls=1,function(H,M){(function(b){H.exports=function(P,B){return P||(P=window),B||(B=typeof window<"u"?xi:xi(P)),b(B,P,P.document)}})(function(b,P,B,m){var t=function(y,_){if(this instanceof t)return b(y).DataTable(_);_=y,this.$=function(ae,se){return this.api(!0).$(ae,se)},this._=function(ae,se){return this.api(!0).rows(ae,se).data()},this.api=function(ae){return ae?new w(hn(this[p.iApiIndex])):new w(this)},this.fnAddData=function(ae,se){var le=this.api(!0),ve=Array.isArray(ae)&&(Array.isArray(ae[0])||b.isPlainObject(ae[0]))?le.rows.add(ae):le.row.add(ae);return(se===m||se)&&le.draw(),ve.flatten().toArray()},this.fnAdjustColumnSizing=function(ae){var se=this.api(!0).columns.adjust(),le=se.settings()[0],ve=le.oScroll;ae===m||ae?se.draw(!1):(ve.sX!==""||ve.sY!=="")&&or(le)},this.fnClearTable=function(ae){var se=this.api(!0).clear();(ae===m||ae)&&se.draw()},this.fnClose=function(ae){this.api(!0).row(ae).child.hide()},this.fnDeleteRow=function(ae,se,le){var ve=this.api(!0),be=ve.rows(ae),Re=be.settings()[0],ke=Re.aoData[be[0][0]];return be.remove(),se&&se.call(this,Re,ke),(le===m||le)&&ve.draw(),ke},this.fnDestroy=function(ae){this.api(!0).destroy(ae)},this.fnDraw=function(ae){this.api(!0).draw(ae)},this.fnFilter=function(ae,se,le,ve,be,Re){var ke=this.api(!0);se===null||se===m?ke.search(ae,le,ve,Re):ke.column(se).search(ae,le,ve,Re),ke.draw()},this.fnGetData=function(ae,se){var le=this.api(!0);if(ae!==m){var ve=ae.nodeName?ae.nodeName.toLowerCase():"";return se!==m||ve=="td"||ve=="th"?le.cell(ae,se).data():le.row(ae).data()||null}return le.data().toArray()},this.fnGetNodes=function(ae){var se=this.api(!0);return ae!==m?se.row(ae).node():se.rows().nodes().flatten().toArray()},this.fnGetPosition=function(ae){var se=this.api(!0),le=ae.nodeName.toUpperCase();if(le=="TR")return se.row(ae).index();if(le=="TD"||le=="TH"){var ve=se.cell(ae).index();return[ve.row,ve.columnVisible,ve.column]}return null},this.fnIsOpen=function(ae){return this.api(!0).row(ae).child.isShown()},this.fnOpen=function(ae,se,le){return this.api(!0).row(ae).child(se,le).show().child()[0]},this.fnPageChange=function(ae,se){var le=this.api(!0).page(ae);(se===m||se)&&le.draw(!1)},this.fnSetColumnVis=function(ae,se,le){var ve=this.api(!0).column(ae).visible(se);(le===m||le)&&ve.columns.adjust().draw()},this.fnSettings=function(){return hn(this[p.iApiIndex])},this.fnSort=function(ae){this.api(!0).order(ae).draw()},this.fnSortListener=function(ae,se,le){this.api(!0).order.listener(ae,se,le)},this.fnUpdate=function(ae,se,le,ve,be){var Re=this.api(!0);return le===m||le===null?Re.row(se).data(ae):Re.cell(se,le).data(ae),(be===m||be)&&Re.columns.adjust(),(ve===m||ve)&&Re.draw(),0},this.fnVersionCheck=p.fnVersionCheck;var L=this,z=_===m,J=this.length;z&&(_={}),this.oApi=this.internal=p.internal;for(var K in t.ext.internal)K&&(this[K]=Kr(K));return this.each(function(){var ae={},se=J>1?Di(ae,_,!0):_,le=0,ve,be=this.getAttribute("id"),Re=!1,ke=t.defaults,Be=b(this);if(this.nodeName.toLowerCase()!="table"){_r(null,0,"Non-table node initialisation ("+this.nodeName+")",2);return}oe(ke),me(ke.column),Ce(ke,ke,!0),Ce(ke.column,ke.column,!0),Ce(ke,b.extend(se,Be.data()),!0);var Qe=t.settings;for(le=0,ve=Qe.length;le<ve;le++){var pt=Qe[le];if(pt.nTable==this||pt.nTHead&&pt.nTHead.parentNode==this||pt.nTFoot&&pt.nTFoot.parentNode==this){var gt=se.bRetrieve!==m?se.bRetrieve:ke.bRetrieve,xt=se.bDestroy!==m?se.bDestroy:ke.bDestroy;if(z||gt)return pt.oInstance;if(xt){pt.oInstance.fnDestroy();break}else{_r(pt,0,"Cannot reinitialise DataTable",3);return}}if(pt.sTableId==this.id){Qe.splice(le,1);break}}(be===null||be==="")&&(be="DataTables_Table_"+t.ext._unique++,this.id=be);var Ge=b.extend(!0,{},t.models.oSettings,{sDestroyWidth:Be[0].style.width,sInstance:be,sTableId:be});Ge.nTable=this,Ge.oApi=L.internal,Ge.oInit=se,Qe.push(Ge),Ge.oInstance=L.length===1?L:Be.dataTable(),oe(se),pe(se.oLanguage),se.aLengthMenu&&!se.iDisplayLength&&(se.iDisplayLength=Array.isArray(se.aLengthMenu[0])?se.aLengthMenu[0][0]:se.aLengthMenu[0]),se=Di(b.extend(!0,{},ke),se),Mr(Ge.oFeatures,se,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Mr(Ge,se,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Mr(Ge.oScroll,se,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Mr(Ge.oLanguage,se,"fnInfoCallback"),Er(Ge,"aoDrawCallback",se.fnDrawCallback,"user"),Er(Ge,"aoServerParams",se.fnServerParams,"user"),Er(Ge,"aoStateSaveParams",se.fnStateSaveParams,"user"),Er(Ge,"aoStateLoadParams",se.fnStateLoadParams,"user"),Er(Ge,"aoStateLoaded",se.fnStateLoaded,"user"),Er(Ge,"aoRowCallback",se.fnRowCallback,"user"),Er(Ge,"aoRowCreatedCallback",se.fnCreatedRow,"user"),Er(Ge,"aoHeaderCallback",se.fnHeaderCallback,"user"),Er(Ge,"aoFooterCallback",se.fnFooterCallback,"user"),Er(Ge,"aoInitComplete",se.fnInitComplete,"user"),Er(Ge,"aoPreDrawCallback",se.fnPreDrawCallback,"user"),Ge.rowIdFn=_e(se.rowId),Fe(Ge);var Xt=Ge.oClasses;if(b.extend(Xt,t.ext.classes,se.oClasses),Be.addClass(Xt.sTable),Ge.iInitDisplayStart===m&&(Ge.iInitDisplayStart=se.iDisplayStart,Ge._iDisplayStart=se.iDisplayStart),se.iDeferLoading!==null){Ge.bDeferLoading=!0;var Nt=Array.isArray(se.iDeferLoading);Ge._iRecordsDisplay=Nt?se.iDeferLoading[0]:se.iDeferLoading,Ge._iRecordsTotal=Nt?se.iDeferLoading[1]:se.iDeferLoading}var gr=Ge.oLanguage;b.extend(!0,gr,se.oLanguage),gr.sUrl?(b.ajax({dataType:"json",url:gr.sUrl,success:function(zt){Ce(ke.oLanguage,zt),pe(zt),b.extend(!0,gr,zt),Qt(Ge,null,"i18n",[Ge]),qt(Ge)},error:function(){qt(Ge)}}),Re=!0):Qt(Ge,null,"i18n",[Ge]),se.asStripeClasses===null&&(Ge.asStripeClasses=[Xt.sStripeOdd,Xt.sStripeEven]);var Qr=Ge.asStripeClasses,an=Be.children("tbody").find("tr").eq(0);b.inArray(!0,b.map(Qr,function(zt,Rr){return an.hasClass(zt)}))!==-1&&(b("tbody tr",this).removeClass(Qr.join(" ")),Ge.asDestroyStripes=Qr.slice());var on=[],sn,Zr=this.getElementsByTagName("thead");if(Zr.length!==0&&(Xe(Ge.aoHeader,Zr[0]),on=st(Ge)),se.aoColumns===null)for(sn=[],le=0,ve=on.length;le<ve;le++)sn.push(null);else sn=se.aoColumns;for(le=0,ve=sn.length;le<ve;le++)ft(Ge,on?on[le]:null);if(Ot(Ge,se.aoColumnDefs,sn,function(zt,Rr){ze(Ge,zt,Rr)}),an.length){var Ar=function(zt,Rr){return zt.getAttribute("data-"+Rr)!==null?Rr:null};b(an[0]).children("th, td").each(function(zt,Rr){var Nr=Ge.aoColumns[zt];if(Nr.mData===zt){var qr=Ar(Rr,"sort")||Ar(Rr,"order"),en=Ar(Rr,"filter")||Ar(Rr,"search");(qr!==null||en!==null)&&(Nr.mData={_:zt+".display",sort:qr!==null?zt+".@data-"+qr:m,type:qr!==null?zt+".@data-"+qr:m,filter:en!==null?zt+".@data-"+en:m},ze(Ge,zt))}})}var _n=Ge.oFeatures,xn=function(){if(se.aaSorting===m){var zt=Ge.aaSorting;for(le=0,ve=zt.length;le<ve;le++)zt[le][1]=Ge.aoColumns[le].asSorting[0]}qn(Ge),_n.bSort&&Er(Ge,"aoDrawCallback",function(){if(Ge.bSorted){var Fr=fn(Ge),Hr={};b.each(Fr,function(vi,In){Hr[In.src]=In.dir}),Qt(Ge,null,"order",[Ge,Fr,Hr]),ia(Ge)}}),Er(Ge,"aoDrawCallback",function(){(Ge.bSorted||Ir(Ge)==="ssp"||_n.bDeferRender)&&qn(Ge)},"sc");var Rr=Be.children("caption").each(function(){this._captionSide=b(this).css("caption-side")}),Nr=Be.children("thead");Nr.length===0&&(Nr=b("<thead/>").appendTo(Be)),Ge.nTHead=Nr[0];var qr=Be.children("tbody");qr.length===0&&(qr=b("<tbody/>").insertAfter(Nr)),Ge.nTBody=qr[0];var en=Be.children("tfoot");if(en.length===0&&Rr.length>0&&(Ge.oScroll.sX!==""||Ge.oScroll.sY!=="")&&(en=b("<tfoot/>").appendTo(Be)),en.length===0||en.children().length===0?Be.addClass(Xt.sNoFooter):en.length>0&&(Ge.nTFoot=en[0],Xe(Ge.aoFooter,Ge.nTFoot)),se.aaData)for(le=0;le<se.aaData.length;le++)Ne(Ge,se.aaData[le]);else(Ge.bDeferLoading||Ir(Ge)=="dom")&&ct(Ge,b(Ge.nTBody).children("tr"));Ge.aiDisplay=Ge.aiDisplayMaster.slice(),Ge.bInitialised=!0,Re===!1&&qt(Ge)};Er(Ge,"aoDrawCallback",Vn,"state_save"),se.bStateSave?(_n.bStateSave=!0,ei(Ge,se,xn)):xn()}),L=null,this},p,w,g,E,n={},i=/[\r\n\u2028]/g,u=/<.*?>/g,o=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,c=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),l=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,a=function(y){return!y||y===!0||y==="-"},d=function(y){var _=parseInt(y,10);return!isNaN(_)&&isFinite(y)?_:null},h=function(y,_){return n[_]||(n[_]=new RegExp(Sr(_),"g")),typeof y=="string"&&_!=="."?y.replace(/\./g,"").replace(n[_],"."):y},v=function(y,_,L){var z=typeof y=="string";return a(y)?!0:(_&&z&&(y=h(y,_)),L&&z&&(y=y.replace(l,"")),!isNaN(parseFloat(y))&&isFinite(y))},C=function(y){return a(y)||typeof y=="string"},k=function(y,_,L){if(a(y))return!0;var z=C(y);return z&&v(A(y),_,L)?!0:null},j=function(y,_,L){var z=[],J=0,K=y.length;if(L!==m)for(;J<K;J++)y[J]&&y[J][_]&&z.push(y[J][_][L]);else for(;J<K;J++)y[J]&&z.push(y[J][_]);return z},G=function(y,_,L,z){var J=[],K=0,ae=_.length;if(z!==m)for(;K<ae;K++)y[_[K]][L]&&J.push(y[_[K]][L][z]);else for(;K<ae;K++)J.push(y[_[K]][L]);return J},N=function(y,_){var L=[],z;_===m?(_=0,z=y):(z=_,_=y);for(var J=_;J<z;J++)L.push(J);return L},T=function(y){for(var _=[],L=0,z=y.length;L<z;L++)y[L]&&_.push(y[L]);return _},A=function(y){return y.replace(u,"")},U=function(y){if(y.length<2)return!0;for(var _=y.slice().sort(),L=_[0],z=1,J=_.length;z<J;z++){if(_[z]===L)return!1;L=_[z]}return!0},X=function(y){if(U(y))return y.slice();var _=[],L,z,J=y.length,K,ae=0;e:for(z=0;z<J;z++){for(L=y[z],K=0;K<ae;K++)if(_[K]===L)continue e;_.push(L),ae++}return _},Q=function(y,_){if(Array.isArray(_))for(var L=0;L<_.length;L++)Q(y,_[L]);else y.push(_);return y},re=function(y,_){return _===m&&(_=0),this.indexOf(y,_)!==-1};Array.isArray||(Array.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}),Array.prototype.includes||(Array.prototype.includes=re),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),String.prototype.includes||(String.prototype.includes=re),t.util={throttle:function(y,_){var L=_!==m?_:200,z,J;return function(){var K=this,ae=+new Date,se=arguments;z&&ae<z+L?(clearTimeout(J),J=setTimeout(function(){z=m,y.apply(K,se)},L)):(z=ae,y.apply(K,se))}},escapeRegex:function(y){return y.replace(c,"\\$1")},set:function(y){if(b.isPlainObject(y))return t.util.set(y._);if(y===null)return function(){};if(typeof y=="function")return function(L,z,J){y(L,"set",z,J)};if(typeof y=="string"&&(y.indexOf(".")!==-1||y.indexOf("[")!==-1||y.indexOf("(")!==-1)){var _=function(L,z,J){for(var K=ne(J),ae,se=K[K.length-1],le,ve,be,Re,ke=0,Be=K.length-1;ke<Be;ke++){if(K[ke]==="__proto__"||K[ke]==="constructor")throw new Error("Cannot set prototype values");if(le=K[ke].match(Ft),ve=K[ke].match(Wt),le){if(K[ke]=K[ke].replace(Ft,""),L[K[ke]]=[],ae=K.slice(),ae.splice(0,ke+1),Re=ae.join("."),Array.isArray(z))for(var Qe=0,pt=z.length;Qe<pt;Qe++)be={},_(be,z[Qe],Re),L[K[ke]].push(be);else L[K[ke]]=z;return}else ve&&(K[ke]=K[ke].replace(Wt,""),L=L[K[ke]](z));(L[K[ke]]===null||L[K[ke]]===m)&&(L[K[ke]]={}),L=L[K[ke]]}se.match(Wt)?L=L[se.replace(Wt,"")](z):L[se.replace(Ft,"")]=z};return function(L,z){return _(L,z,y)}}else return function(L,z){L[y]=z}},get:function(y){if(b.isPlainObject(y)){var _={};return b.each(y,function(z,J){J&&(_[z]=t.util.get(J))}),function(z,J,K,ae){var se=_[J]||_._;return se!==m?se(z,J,K,ae):z}}else{if(y===null)return function(z){return z};if(typeof y=="function")return function(z,J,K,ae){return y(z,J,K,ae)};if(typeof y=="string"&&(y.indexOf(".")!==-1||y.indexOf("[")!==-1||y.indexOf("(")!==-1)){var L=function(z,J,K){var ae,se,le,ve;if(K!=="")for(var be=ne(K),Re=0,ke=be.length;Re<ke;Re++){if(ae=be[Re].match(Ft),se=be[Re].match(Wt),ae){if(be[Re]=be[Re].replace(Ft,""),be[Re]!==""&&(z=z[be[Re]]),le=[],be.splice(0,Re+1),ve=be.join("."),Array.isArray(z))for(var Be=0,Qe=z.length;Be<Qe;Be++)le.push(L(z[Be],J,ve));var pt=ae[0].substring(1,ae[0].length-1);z=pt===""?le:le.join(pt);break}else if(se){be[Re]=be[Re].replace(Wt,""),z=z[be[Re]]();continue}if(z===null||z[be[Re]]===m)return m;z=z[be[Re]]}return z};return function(z,J){return L(z,J,y)}}else return function(z,J){return z[y]}}}};function ge(y){var _="a aa ai ao as b fn i m o s ",L,z,J={};b.each(y,function(K,ae){L=K.match(/^([^A-Z]+?)([A-Z])/),L&&_.indexOf(L[1]+" ")!==-1&&(z=K.replace(L[0],L[2].toLowerCase()),J[z]=K,L[1]==="o"&&ge(y[K]))}),y._hungarianMap=J}function Ce(y,_,L){y._hungarianMap||ge(y);var z;b.each(_,function(J,K){z=y._hungarianMap[J],z!==m&&(L||_[z]===m)&&(z.charAt(0)==="o"?(_[z]||(_[z]={}),b.extend(!0,_[z],_[J]),Ce(y[z],_[z],L)):_[z]=_[J])})}function pe(y){var _=t.defaults.oLanguage,L=_.sDecimal;if(L&&ai(L),y){var z=y.sZeroRecords;!y.sEmptyTable&&z&&_.sEmptyTable==="No data available in table"&&Mr(y,y,"sZeroRecords","sEmptyTable"),!y.sLoadingRecords&&z&&_.sLoadingRecords==="Loading..."&&Mr(y,y,"sZeroRecords","sLoadingRecords"),y.sInfoThousands&&(y.sThousands=y.sInfoThousands);var J=y.sDecimal;J&&L!==J&&ai(J)}}var ie=function(y,_,L){y[_]!==m&&(y[L]=y[_])};function oe(y){ie(y,"ordering","bSort"),ie(y,"orderMulti","bSortMulti"),ie(y,"orderClasses","bSortClasses"),ie(y,"orderCellsTop","bSortCellsTop"),ie(y,"order","aaSorting"),ie(y,"orderFixed","aaSortingFixed"),ie(y,"paging","bPaginate"),ie(y,"pagingType","sPaginationType"),ie(y,"pageLength","iDisplayLength"),ie(y,"searching","bFilter"),typeof y.sScrollX=="boolean"&&(y.sScrollX=y.sScrollX?"100%":""),typeof y.scrollX=="boolean"&&(y.scrollX=y.scrollX?"100%":"");var _=y.aoSearchCols;if(_)for(var L=0,z=_.length;L<z;L++)_[L]&&Ce(t.models.oSearch,_[L])}function me(y){ie(y,"orderable","bSortable"),ie(y,"orderData","aDataSort"),ie(y,"orderSequence","asSorting"),ie(y,"orderDataType","sortDataType");var _=y.aDataSort;typeof _=="number"&&!Array.isArray(_)&&(y.aDataSort=[_])}function Fe(y){if(!t.__browser){var _={};t.__browser=_;var L=b("<div/>").css({position:"fixed",top:0,left:b(P).scrollLeft()*-1,height:1,width:1,overflow:"hidden"}).append(b("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(b("<div/>").css({width:"100%",height:10}))).appendTo("body"),z=L.children(),J=z.children();_.barWidth=z[0].offsetWidth-z[0].clientWidth,_.bScrollOversize=J[0].offsetWidth===100&&z[0].clientWidth!==100,_.bScrollbarLeft=Math.round(J.offset().left)!==1,_.bBounding=!!L[0].getBoundingClientRect().width,L.remove()}b.extend(y.oBrowser,t.__browser),y.oScroll.iBarWidth=t.__browser.barWidth}function et(y,_,L,z,J,K){var ae=z,se,le=!1;for(L!==m&&(se=L,le=!0);ae!==J;)y.hasOwnProperty(ae)&&(se=le?_(se,y[ae],ae,y):y[ae],le=!0,ae+=K);return se}function ft(y,_){var L=t.defaults.column,z=y.aoColumns.length,J=b.extend({},t.models.oColumn,L,{nTh:_||B.createElement("th"),sTitle:L.sTitle?L.sTitle:_?_.innerHTML:"",aDataSort:L.aDataSort?L.aDataSort:[z],mData:L.mData?L.mData:z,idx:z});y.aoColumns.push(J);var K=y.aoPreSearchCols;K[z]=b.extend({},t.models.oSearch,K[z]),ze(y,z,b(_).data())}function ze(y,_,L){var z=y.aoColumns[_],J=y.oClasses,K=b(z.nTh);if(!z.sWidthOrig){z.sWidthOrig=K.attr("width")||null;var ae=(K.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);ae&&(z.sWidthOrig=ae[1])}L!==m&&L!==null&&(me(L),Ce(t.defaults.column,L,!0),L.mDataProp!==m&&!L.mData&&(L.mData=L.mDataProp),L.sType&&(z._sManualType=L.sType),L.className&&!L.sClass&&(L.sClass=L.className),L.sClass&&K.addClass(L.sClass),b.extend(z,L),Mr(z,L,"sWidth","sWidthOrig"),L.iDataSort!==m&&(z.aDataSort=[L.iDataSort]),Mr(z,L,"aDataSort"));var se=z.mData,le=_e(se),ve=z.mRender?_e(z.mRender):null,be=function(Be){return typeof Be=="string"&&Be.indexOf("@")!==-1};z._bAttrSrc=b.isPlainObject(se)&&(be(se.sort)||be(se.type)||be(se.filter)),z._setter=null,z.fnGetData=function(Be,Qe,pt){var gt=le(Be,Qe,m,pt);return ve&&Qe?ve(gt,Qe,Be,pt):gt},z.fnSetData=function(Be,Qe,pt){return tt(se)(Be,Qe,pt)},typeof se!="number"&&(y._rowReadObject=!0),y.oFeatures.bSort||(z.bSortable=!1,K.addClass(J.sSortableNone));var Re=b.inArray("asc",z.asSorting)!==-1,ke=b.inArray("desc",z.asSorting)!==-1;!z.bSortable||!Re&&!ke?(z.sSortingClass=J.sSortableNone,z.sSortingClassJUI=""):Re&&!ke?(z.sSortingClass=J.sSortableAsc,z.sSortingClassJUI=J.sSortJUIAscAllowed):!Re&&ke?(z.sSortingClass=J.sSortableDesc,z.sSortingClassJUI=J.sSortJUIDescAllowed):(z.sSortingClass=J.sSortable,z.sSortingClassJUI=J.sSortJUI)}function bt(y){if(y.oFeatures.bAutoWidth!==!1){var _=y.aoColumns;Gt(y);for(var L=0,z=_.length;L<z;L++)_[L].nTh.style.width=_[L].sWidth}var J=y.oScroll;(J.sY!==""||J.sX!=="")&&or(y),Qt(y,null,"column-sizing",[y])}function St(y,_){var L=Mt(y,"bVisible");return typeof L[_]=="number"?L[_]:null}function Le(y,_){var L=Mt(y,"bVisible"),z=b.inArray(_,L);return z!==-1?z:null}function Et(y){var _=0;return b.each(y.aoColumns,function(L,z){z.bVisible&&b(z.nTh).css("display")!=="none"&&_++}),_}function Mt(y,_){var L=[];return b.map(y.aoColumns,function(z,J){z[_]&&L.push(J)}),L}function at(y){var _=y.aoColumns,L=y.aoData,z=t.ext.type.detect,J,K,ae,se,le,ve,be,Re,ke;for(J=0,K=_.length;J<K;J++)if(be=_[J],ke=[],!be.sType&&be._sManualType)be.sType=be._sManualType;else if(!be.sType){for(ae=0,se=z.length;ae<se;ae++){for(le=0,ve=L.length;le<ve&&(ke[le]===m&&(ke[le]=Ue(y,le,J,"type")),Re=z[ae](ke[le],y),!(!Re&&ae!==z.length-1||Re==="html"&&!a(ke[le])));le++);if(Re){be.sType=Re;break}}be.sType||(be.sType="string")}}function Ot(y,_,L,z){var J,K,ae,se,le,ve,be,Re=y.aoColumns;if(_)for(J=_.length-1;J>=0;J--){be=_[J];var ke=be.targets!==m?be.targets:be.aTargets;for(Array.isArray(ke)||(ke=[ke]),ae=0,se=ke.length;ae<se;ae++)if(typeof ke[ae]=="number"&&ke[ae]>=0){for(;Re.length<=ke[ae];)ft(y);z(ke[ae],be)}else if(typeof ke[ae]=="number"&&ke[ae]<0)z(Re.length+ke[ae],be);else if(typeof ke[ae]=="string")for(le=0,ve=Re.length;le<ve;le++)(ke[ae]=="_all"||b(Re[le].nTh).hasClass(ke[ae]))&&z(le,be)}if(L)for(J=0,K=L.length;J<K;J++)z(J,L[J])}function Ne(y,_,L,z){var J=y.aoData.length,K=b.extend(!0,{},t.models.oRow,{src:L?"dom":"data",idx:J});K._aData=_,y.aoData.push(K);for(var ae=y.aoColumns,se=0,le=ae.length;se<le;se++)ae[se].sType=null;y.aiDisplayMaster.push(J);var ve=y.rowIdFn(_);return ve!==m&&(y.aIds[ve]=K),(L||!y.oFeatures.bDeferRender)&&nt(y,J,L,z),J}function ct(y,_){var L;return _ instanceof b||(_=b(_)),_.map(function(z,J){return L=dt(y,J),Ne(y,L.data,J,L.cells)})}function mt(y,_){return _._DT_RowIndex!==m?_._DT_RowIndex:null}function Ct(y,_,L){return b.inArray(L,y.aoData[_].anCells)}function Ue(y,_,L,z){z==="search"?z="filter":z==="order"&&(z="sort");var J=y.iDraw,K=y.aoColumns[L],ae=y.aoData[_]._aData,se=K.sDefaultContent,le=K.fnGetData(ae,z,{settings:y,row:_,col:L});if(le===m)return y.iDrawError!=J&&se===null&&(_r(y,0,"Requested unknown parameter "+(typeof K.mData=="function"?"{function}":"'"+K.mData+"'")+" for row "+_+", column "+L,4),y.iDrawError=J),se;if((le===ae||le===null)&&se!==null&&z!==m)le=se;else if(typeof le=="function")return le.call(ae);if(le===null&&z==="display")return"";if(z==="filter"){var ve=t.ext.type.search;ve[K.sType]&&(le=ve[K.sType](le))}return le}function qe(y,_,L,z){var J=y.aoColumns[L],K=y.aoData[_]._aData;J.fnSetData(K,z,{settings:y,row:_,col:L})}var Ft=/\[.*?\]$/,Wt=/\(\)$/;function ne(y){return b.map(y.match(/(\\.|[^\.])+/g)||[""],function(_){return _.replace(/\\\./g,".")})}var _e=t.util.get,tt=t.util.set;function Dt(y){return j(y.aoData,"_aData")}function vt(y){y.aoData.length=0,y.aiDisplayMaster.length=0,y.aiDisplay.length=0,y.aIds={}}function Rt(y,_,L){for(var z=-1,J=0,K=y.length;J<K;J++)y[J]==_?z=J:y[J]>_&&y[J]--;z!=-1&&L===m&&y.splice(z,1)}function At(y,_,L,z){var J=y.aoData[_],K,ae,se=function(be,Re){for(;be.childNodes.length;)be.removeChild(be.firstChild);be.innerHTML=Ue(y,_,Re,"display")};if(L==="dom"||(!L||L==="auto")&&J.src==="dom")J._aData=dt(y,J,z,z===m?m:J._aData).data;else{var le=J.anCells;if(le)if(z!==m)se(le[z],z);else for(K=0,ae=le.length;K<ae;K++)se(le[K],K)}J._aSortData=null,J._aFilterData=null;var ve=y.aoColumns;if(z!==m)ve[z].sType=null;else{for(K=0,ae=ve.length;K<ae;K++)ve[K].sType=null;te(y,J)}}function dt(y,_,L,z){var J=[],K=_.firstChild,ae,se,le=0,ve,be=y.aoColumns,Re=y._rowReadObject;z=z!==m?z:Re?{}:[];var ke=function(Ge,Xt){if(typeof Ge=="string"){var Nt=Ge.indexOf("@");if(Nt!==-1){var gr=Ge.substring(Nt+1),Qr=tt(Ge);Qr(z,Xt.getAttribute(gr))}}},Be=function(Ge){if(L===m||L===le)if(se=be[le],ve=Ge.innerHTML.trim(),se&&se._bAttrSrc){var Xt=tt(se.mData._);Xt(z,ve),ke(se.mData.sort,Ge),ke(se.mData.type,Ge),ke(se.mData.filter,Ge)}else Re?(se._setter||(se._setter=tt(se.mData)),se._setter(z,ve)):z[le]=ve;le++};if(K)for(;K;)ae=K.nodeName.toUpperCase(),(ae=="TD"||ae=="TH")&&(Be(K),J.push(K)),K=K.nextSibling;else{J=_.anCells;for(var Qe=0,pt=J.length;Qe<pt;Qe++)Be(J[Qe])}var gt=_.firstChild?_:_.nTr;if(gt){var xt=gt.getAttribute("id");xt&&tt(y.rowId)(z,xt)}return{data:z,cells:J}}function nt(y,_,L,z){var J=y.aoData[_],K=J._aData,ae=[],se,le,ve,be,Re,ke;if(J.nTr===null){for(se=L||B.createElement("tr"),J.nTr=se,J.anCells=ae,se._DT_RowIndex=_,te(y,J),be=0,Re=y.aoColumns.length;be<Re;be++)ve=y.aoColumns[be],ke=!L,le=ke?B.createElement(ve.sCellType):z[be],le._DT_CellIndex={row:_,column:be},ae.push(le),(ke||(ve.mRender||ve.mData!==be)&&(!b.isPlainObject(ve.mData)||ve.mData._!==be+".display"))&&(le.innerHTML=Ue(y,_,be,"display")),ve.sClass&&(le.className+=" "+ve.sClass),ve.bVisible&&!L?se.appendChild(le):!ve.bVisible&&L&&le.parentNode.removeChild(le),ve.fnCreatedCell&&ve.fnCreatedCell.call(y.oInstance,le,Ue(y,_,be),K,_,be);Qt(y,"aoRowCreatedCallback",null,[se,K,_,ae])}}function te(y,_){var L=_.nTr,z=_._aData;if(L){var J=y.rowIdFn(z);if(J&&(L.id=J),z.DT_RowClass){var K=z.DT_RowClass.split(" ");_.__rowc=_.__rowc?X(_.__rowc.concat(K)):K,b(L).removeClass(_.__rowc.join(" ")).addClass(z.DT_RowClass)}z.DT_RowAttr&&b(L).attr(z.DT_RowAttr),z.DT_RowData&&b(L).data(z.DT_RowData)}}function he(y){var _,L,z,J,K,ae=y.nTHead,se=y.nTFoot,le=b("th, td",ae).length===0,ve=y.oClasses,be=y.aoColumns;for(le&&(J=b("<tr/>").appendTo(ae)),_=0,L=be.length;_<L;_++)K=be[_],z=b(K.nTh).addClass(K.sClass),le&&z.appendTo(J),y.oFeatures.bSort&&(z.addClass(K.sSortingClass),K.bSortable!==!1&&(z.attr("tabindex",y.iTabIndex).attr("aria-controls",y.sTableId),Ci(y,K.nTh,_))),K.sTitle!=z[0].innerHTML&&z.html(K.sTitle),zn(y,"header")(y,z,K,ve);if(le&&Xe(y.aoHeader,ae),b(ae).children("tr").children("th, td").addClass(ve.sHeaderTH),b(se).children("tr").children("th, td").addClass(ve.sFooterTH),se!==null){var Re=y.aoFooter[0];for(_=0,L=Re.length;_<L;_++)K=be[_],K.nTf=Re[_].cell,K.sClass&&b(K.nTf).addClass(K.sClass)}}function xe(y,_,L){var z,J,K,ae,se,le,ve,be=[],Re=[],ke=y.aoColumns.length,Be,Qe;if(_){for(L===m&&(L=!1),z=0,J=_.length;z<J;z++){for(be[z]=_[z].slice(),be[z].nTr=_[z].nTr,K=ke-1;K>=0;K--)!y.aoColumns[K].bVisible&&!L&&be[z].splice(K,1);Re.push([])}for(z=0,J=be.length;z<J;z++){if(ve=be[z].nTr,ve)for(;le=ve.firstChild;)ve.removeChild(le);for(K=0,ae=be[z].length;K<ae;K++)if(Be=1,Qe=1,Re[z][K]===m){for(ve.appendChild(be[z][K].cell),Re[z][K]=1;be[z+Be]!==m&&be[z][K].cell==be[z+Be][K].cell;)Re[z+Be][K]=1,Be++;for(;be[z][K+Qe]!==m&&be[z][K].cell==be[z][K+Qe].cell;){for(se=0;se<Be;se++)Re[z+se][K+Qe]=1;Qe++}b(be[z][K].cell).attr("rowspan",Be).attr("colspan",Qe)}}}}function He(y,_){var L=Qt(y,"aoPreDrawCallback","preDraw",[y]);if(b.inArray(!1,L)!==-1){Ht(y,!1);return}var z=[],J=0,K=y.asStripeClasses,ae=K.length;y.aoOpenRows.length;var se=y.oLanguage,le=y.iInitDisplayStart,ve=Ir(y)=="ssp",be=y.aiDisplay;y.bDrawing=!0,le!==m&&le!==-1&&(y._iDisplayStart=ve?le:le>=y.fnRecordsDisplay()?0:le,y.iInitDisplayStart=-1);var Re=y._iDisplayStart,ke=y.fnDisplayEnd();if(y.bDeferLoading)y.bDeferLoading=!1,y.iDraw++,Ht(y,!1);else if(!ve)y.iDraw++;else if(!y.bDestroying&&!_){we(y);return}if(be.length!==0)for(var Be=ve?0:Re,Qe=ve?y.aoData.length:ke,pt=Be;pt<Qe;pt++){var gt=be[pt],xt=y.aoData[gt];xt.nTr===null&&nt(y,gt);var Ge=xt.nTr;if(ae!==0){var Xt=K[J%ae];xt._sRowStripe!=Xt&&(b(Ge).removeClass(xt._sRowStripe).addClass(Xt),xt._sRowStripe=Xt)}Qt(y,"aoRowCallback",null,[Ge,xt._aData,J,pt,gt]),z.push(Ge),J++}else{var Nt=se.sZeroRecords;y.iDraw==1&&Ir(y)=="ajax"?Nt=se.sLoadingRecords:se.sEmptyTable&&y.fnRecordsTotal()===0&&(Nt=se.sEmptyTable),z[0]=b("<tr/>",{class:ae?K[0]:""}).append(b("<td />",{valign:"top",colSpan:Et(y),class:y.oClasses.sRowEmpty}).html(Nt))[0]}Qt(y,"aoHeaderCallback","header",[b(y.nTHead).children("tr")[0],Dt(y),Re,ke,be]),Qt(y,"aoFooterCallback","footer",[b(y.nTFoot).children("tr")[0],Dt(y),Re,ke,be]);var gr=b(y.nTBody);gr.children().detach(),gr.append(b(z)),Qt(y,"aoDrawCallback","draw",[y]),y.bSorted=!1,y.bFiltered=!1,y.bDrawing=!1}function Ae(y,_){var L=y.oFeatures,z=L.bSort,J=L.bFilter;z&&na(y),J?Ut(y,y.oPreviousSearch):y.aiDisplay=y.aiDisplayMaster.slice(),_!==!0&&(y._iDisplayStart=0),y._drawHold=_,He(y),y._drawHold=!1}function Ye(y){var _=y.oClasses,L=b(y.nTable),z=b("<div/>").insertBefore(L),J=y.oFeatures,K=b("<div/>",{id:y.sTableId+"_wrapper",class:_.sWrapper+(y.nTFoot?"":" "+_.sNoFooter)});y.nHolding=z[0],y.nTableWrapper=K[0],y.nTableReinsertBefore=y.nTable.nextSibling;for(var ae=y.sDom.split(""),se,le,ve,be,Re,ke,Be=0;Be<ae.length;Be++){if(se=null,le=ae[Be],le=="<"){if(ve=b("<div/>")[0],be=ae[Be+1],be=="'"||be=='"'){for(Re="",ke=2;ae[Be+ke]!=be;)Re+=ae[Be+ke],ke++;if(Re=="H"?Re=_.sJUIHeader:Re=="F"&&(Re=_.sJUIFooter),Re.indexOf(".")!=-1){var Qe=Re.split(".");ve.id=Qe[0].substr(1,Qe[0].length-1),ve.className=Qe[1]}else Re.charAt(0)=="#"?ve.id=Re.substr(1,Re.length-1):ve.className=Re;Be+=ke}K.append(ve),K=b(ve)}else if(le==">")K=K.parent();else if(le=="l"&&J.bPaginate&&J.bLengthChange)se=Ke(y);else if(le=="f"&&J.bFilter)se=_t(y);else if(le=="r"&&J.bProcessing)se=kt(y);else if(le=="t")se=er(y);else if(le=="i"&&J.bInfo)se=Hn(y);else if(le=="p"&&J.bPaginate)se=ht(y);else if(t.ext.feature.length!==0){for(var pt=t.ext.feature,gt=0,xt=pt.length;gt<xt;gt++)if(le==pt[gt].cFeature){se=pt[gt].fnInit(y);break}}if(se){var Ge=y.aanFeatures;Ge[le]||(Ge[le]=[]),Ge[le].push(se),K.append(se)}}z.replaceWith(K),y.nHolding=null}function Xe(y,_){var L=b(_).children("tr"),z,J,K,ae,se,le,ve,be,Re,ke,Be,Qe=function(pt,gt,xt){for(var Ge=pt[gt];Ge[xt];)xt++;return xt};for(y.splice(0,y.length),K=0,le=L.length;K<le;K++)y.push([]);for(K=0,le=L.length;K<le;K++)for(z=L[K],be=0,J=z.firstChild;J;){if(J.nodeName.toUpperCase()=="TD"||J.nodeName.toUpperCase()=="TH")for(Re=J.getAttribute("colspan")*1,ke=J.getAttribute("rowspan")*1,Re=!Re||Re===0||Re===1?1:Re,ke=!ke||ke===0||ke===1?1:ke,ve=Qe(y,K,be),Be=Re===1,se=0;se<Re;se++)for(ae=0;ae<ke;ae++)y[K+ae][ve+se]={cell:J,unique:Be},y[K+ae].nTr=z;J=J.nextSibling}}function st(y,_,L){var z=[];L||(L=y.aoHeader,_&&(L=[],Xe(L,_)));for(var J=0,K=L.length;J<K;J++)for(var ae=0,se=L[J].length;ae<se;ae++)L[J][ae].unique&&(!z[ae]||!y.bSortCellsTop)&&(z[ae]=L[J][ae].cell);return z}function ce(y,_,L){if(Qt(y,"aoServerParams","serverParams",[_]),_&&Array.isArray(_)){var z={},J=/(.*?)\[\]$/;b.each(_,function(Re,ke){var Be=ke.name.match(J);if(Be){var Qe=Be[0];z[Qe]||(z[Qe]=[]),z[Qe].push(ke.value)}else z[ke.name]=ke.value}),_=z}var K,ae=y.ajax,se=y.oInstance,le=function(Re){var ke=y.jqXhr?y.jqXhr.status:null;(Re===null||typeof ke=="number"&&ke==204)&&(Re={},ot(y,Re,[]));var Be=Re.error||Re.sError;Be&&_r(y,0,Be),y.json=Re,Qt(y,null,"xhr",[y,Re,y.jqXHR]),L(Re)};if(b.isPlainObject(ae)&&ae.data){K=ae.data;var ve=typeof K=="function"?K(_,y):K;_=typeof K=="function"&&ve?ve:b.extend(!0,_,ve),delete ae.data}var be={data:_,success:le,dataType:"json",cache:!1,type:y.sServerMethod,error:function(Re,ke,Be){var Qe=Qt(y,null,"xhr",[y,null,y.jqXHR]);b.inArray(!0,Qe)===-1&&(ke=="parsererror"?_r(y,0,"Invalid JSON response",1):Re.readyState===4&&_r(y,0,"Ajax error",7)),Ht(y,!1)}};y.oAjaxData=_,Qt(y,null,"preXhr",[y,_]),y.fnServerData?y.fnServerData.call(se,y.sAjaxSource,b.map(_,function(Re,ke){return{name:ke,value:Re}}),le,y):y.sAjaxSource||typeof ae=="string"?y.jqXHR=b.ajax(b.extend(be,{url:ae||y.sAjaxSource})):typeof ae=="function"?y.jqXHR=ae.call(se,_,le,y):(y.jqXHR=b.ajax(b.extend(be,ae)),ae.data=K)}function we(y){y.iDraw++,Ht(y,!0),ce(y,Me(y),function(_){Ze(y,_)})}function Me(y){var _=y.aoColumns,L=_.length,z=y.oFeatures,J=y.oPreviousSearch,K=y.aoPreSearchCols,ae,se=[],le,ve,be,Re=fn(y),ke=y._iDisplayStart,Be=z.bPaginate!==!1?y._iDisplayLength:-1,Qe=function(xt,Ge){se.push({name:xt,value:Ge})};Qe("sEcho",y.iDraw),Qe("iColumns",L),Qe("sColumns",j(_,"sName").join(",")),Qe("iDisplayStart",ke),Qe("iDisplayLength",Be);var pt={draw:y.iDraw,columns:[],order:[],start:ke,length:Be,search:{value:J.sSearch,regex:J.bRegex}};for(ae=0;ae<L;ae++)ve=_[ae],be=K[ae],le=typeof ve.mData=="function"?"function":ve.mData,pt.columns.push({data:le,name:ve.sName,searchable:ve.bSearchable,orderable:ve.bSortable,search:{value:be.sSearch,regex:be.bRegex}}),Qe("mDataProp_"+ae,le),z.bFilter&&(Qe("sSearch_"+ae,be.sSearch),Qe("bRegex_"+ae,be.bRegex),Qe("bSearchable_"+ae,ve.bSearchable)),z.bSort&&Qe("bSortable_"+ae,ve.bSortable);z.bFilter&&(Qe("sSearch",J.sSearch),Qe("bRegex",J.bRegex)),z.bSort&&(b.each(Re,function(xt,Ge){pt.order.push({column:Ge.col,dir:Ge.dir}),Qe("iSortCol_"+xt,Ge.col),Qe("sSortDir_"+xt,Ge.dir)}),Qe("iSortingCols",Re.length));var gt=t.ext.legacy.ajax;return gt===null?y.sAjaxSource?se:pt:gt?se:pt}function Ze(y,_){var L=function(ve,be){return _[ve]!==m?_[ve]:_[be]},z=ot(y,_),J=L("sEcho","draw"),K=L("iTotalRecords","recordsTotal"),ae=L("iTotalDisplayRecords","recordsFiltered");if(J!==m){if(J*1<y.iDraw)return;y.iDraw=J*1}z||(z=[]),vt(y),y._iRecordsTotal=parseInt(K,10),y._iRecordsDisplay=parseInt(ae,10);for(var se=0,le=z.length;se<le;se++)Ne(y,z[se]);y.aiDisplay=y.aiDisplayMaster.slice(),He(y,!0),y._bInitComplete||gn(y,_),Ht(y,!1)}function ot(y,_,L){var z=b.isPlainObject(y.ajax)&&y.ajax.dataSrc!==m?y.ajax.dataSrc:y.sAjaxDataProp;if(!L)return z==="data"?_.aaData||_[z]:z!==""?_e(z)(_):_;tt(z)(_,L)}function _t(y){var _=y.oClasses,L=y.sTableId,z=y.oLanguage,J=y.oPreviousSearch,K=y.aanFeatures,ae='<input type="search" class="'+_.sFilterInput+'"/>',se=z.sSearch;se=se.match(/_INPUT_/)?se.replace("_INPUT_",ae):se+ae;var le=b("<div/>",{id:K.f?null:L+"_filter",class:_.sFilter}).append(b("<label/>").append(se)),ve=function(ke){K.f;var Be=this.value?this.value:"";J.return&&ke.key!=="Enter"||Be!=J.sSearch&&(Ut(y,{sSearch:Be,bRegex:J.bRegex,bSmart:J.bSmart,bCaseInsensitive:J.bCaseInsensitive,return:J.return}),y._iDisplayStart=0,He(y))},be=y.searchDelay!==null?y.searchDelay:Ir(y)==="ssp"?400:0,Re=b("input",le).val(J.sSearch).attr("placeholder",z.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",be?Pt(ve,be):ve).on("mouseup",function(ke){setTimeout(function(){ve.call(Re[0],ke)},10)}).on("keypress.DT",function(ke){if(ke.keyCode==13)return!1}).attr("aria-controls",L);return b(y.nTable).on("search.dt.DT",function(ke,Be){if(y===Be)try{Re[0]!==B.activeElement&&Re.val(J.sSearch)}catch{}}),le[0]}function Ut(y,_,L){var z=y.oPreviousSearch,J=y.aoPreSearchCols,K=function(le){z.sSearch=le.sSearch,z.bRegex=le.bRegex,z.bSmart=le.bSmart,z.bCaseInsensitive=le.bCaseInsensitive,z.return=le.return},ae=function(le){return le.bEscapeRegex!==m?!le.bEscapeRegex:le.bRegex};if(at(y),Ir(y)!="ssp"){lr(y,_.sSearch,L,ae(_),_.bSmart,_.bCaseInsensitive,_.return),K(_);for(var se=0;se<J.length;se++)pr(y,J[se].sSearch,se,ae(J[se]),J[se].bSmart,J[se].bCaseInsensitive);nr(y)}else K(_);y.bFiltered=!0,Qt(y,null,"search",[y])}function nr(y){for(var _=t.ext.search,L=y.aiDisplay,z,J,K=0,ae=_.length;K<ae;K++){for(var se=[],le=0,ve=L.length;le<ve;le++)J=L[le],z=y.aoData[J],_[K](y,z._aFilterData,J,z._aData,le)&&se.push(J);L.length=0,b.merge(L,se)}}function pr(y,_,L,z,J,K){if(_!==""){for(var ae,se=[],le=y.aiDisplay,ve=Tr(_,z,J,K),be=0;be<le.length;be++)ae=y.aoData[le[be]]._aFilterData[L],ve.test(ae)&&se.push(le[be]);y.aiDisplay=se}}function lr(y,_,L,z,J,K){var ae=Tr(_,z,J,K),se=y.oPreviousSearch.sSearch,le=y.aiDisplayMaster,ve,be,Re,ke=[];if(t.ext.search.length!==0&&(L=!0),be=Rn(y),_.length<=0)y.aiDisplay=le.slice();else{for((be||L||z||se.length>_.length||_.indexOf(se)!==0||y.bSorted)&&(y.aiDisplay=le.slice()),ve=y.aiDisplay,Re=0;Re<ve.length;Re++)ae.test(y.aoData[ve[Re]]._sFilterRow)&&ke.push(ve[Re]);y.aiDisplay=ke}}function Tr(y,_,L,z){if(y=_?y:Sr(y),L){var J=b.map(y.match(/"[^"]+"|[^ ]+/g)||[""],function(K){if(K.charAt(0)==='"'){var ae=K.match(/^"(.*)"$/);K=ae?ae[1]:K}return K.replace('"',"")});y="^(?=.*?"+J.join(")(?=.*?")+").*$"}return new RegExp(y,z?"i":"")}var Sr=t.util.escapeRegex,kr=b("<div>")[0],En=kr.textContent!==m;function Rn(y){var _=y.aoColumns,L,z,J,K,ae,se,le,ve,be=!1;for(z=0,K=y.aoData.length;z<K;z++)if(ve=y.aoData[z],!ve._aFilterData){for(se=[],J=0,ae=_.length;J<ae;J++)L=_[J],L.bSearchable?(le=Ue(y,z,J,"filter"),le===null&&(le=""),typeof le!="string"&&le.toString&&(le=le.toString())):le="",le.indexOf&&le.indexOf("&")!==-1&&(kr.innerHTML=le,le=En?kr.textContent:kr.innerText),le.replace&&(le=le.replace(/[\r\n\u2028]/g,"")),se.push(le);ve._aFilterData=se,ve._sFilterRow=se.join("  "),be=!0}return be}function yt(y){return{search:y.sSearch,smart:y.bSmart,regex:y.bRegex,caseInsensitive:y.bCaseInsensitive}}function $n(y){return{sSearch:y.search,bSmart:y.smart,bRegex:y.regex,bCaseInsensitive:y.caseInsensitive}}function Hn(y){var _=y.sTableId,L=y.aanFeatures.i,z=b("<div/>",{class:y.oClasses.sInfo,id:L?null:_+"_info"});return L||(y.aoDrawCallback.push({fn:Wr,sName:"information"}),z.attr("role","status").attr("aria-live","polite"),b(y.nTable).attr("aria-describedby",_+"_info")),z[0]}function Wr(y){var _=y.aanFeatures.i;if(_.length!==0){var L=y.oLanguage,z=y._iDisplayStart+1,J=y.fnDisplayEnd(),K=y.fnRecordsTotal(),ae=y.fnRecordsDisplay(),se=ae?L.sInfo:L.sInfoEmpty;ae!==K&&(se+=" "+L.sInfoFiltered),se+=L.sInfoPostFix,se=Ur(y,se);var le=L.fnInfoCallback;le!==null&&(se=le.call(y.oInstance,y,z,J,K,ae,se)),b(_).html(se)}}function Ur(y,_){var L=y.fnFormatNumber,z=y._iDisplayStart+1,J=y._iDisplayLength,K=y.fnRecordsDisplay(),ae=J===-1;return _.replace(/_START_/g,L.call(y,z)).replace(/_END_/g,L.call(y,y.fnDisplayEnd())).replace(/_MAX_/g,L.call(y,y.fnRecordsTotal())).replace(/_TOTAL_/g,L.call(y,K)).replace(/_PAGE_/g,L.call(y,ae?1:Math.ceil(z/J))).replace(/_PAGES_/g,L.call(y,ae?1:Math.ceil(K/J)))}function qt(y){var _,L,z=y.iInitDisplayStart,J=y.aoColumns,K,ae=y.oFeatures,se=y.bDeferLoading;if(!y.bInitialised){setTimeout(function(){qt(y)},200);return}for(Ye(y),he(y),xe(y,y.aoHeader),xe(y,y.aoFooter),Ht(y,!0),ae.bAutoWidth&&Gt(y),_=0,L=J.length;_<L;_++)K=J[_],K.sWidth&&(K.nTh.style.width=sr(K.sWidth));Qt(y,null,"preInit",[y]),Ae(y);var le=Ir(y);(le!="ssp"||se)&&(le=="ajax"?ce(y,[],function(ve){var be=ot(y,ve);for(_=0;_<be.length;_++)Ne(y,be[_]);y.iInitDisplayStart=z,Ae(y),Ht(y,!1),gn(y,ve)}):(Ht(y,!1),gn(y)))}function gn(y,_){y._bInitComplete=!0,(_||y.oInit.aaData)&&bt(y),Qt(y,null,"plugin-init",[y,_]),Qt(y,"aoInitComplete","init",[y,_])}function We(y,_){var L=parseInt(_,10);y._iDisplayLength=L,Gn(y),Qt(y,null,"length",[y,L])}function Ke(y){for(var _=y.oClasses,L=y.sTableId,z=y.aLengthMenu,J=Array.isArray(z[0]),K=J?z[0]:z,ae=J?z[1]:z,se=b("<select/>",{name:L+"_length","aria-controls":L,class:_.sLengthSelect}),le=0,ve=K.length;le<ve;le++)se[0][le]=new Option(typeof ae[le]=="number"?y.fnFormatNumber(ae[le]):ae[le],K[le]);var be=b("<div><label/></div>").addClass(_.sLength);return y.aanFeatures.l||(be[0].id=L+"_length"),be.children().append(y.oLanguage.sLengthMenu.replace("_MENU_",se[0].outerHTML)),b("select",be).val(y._iDisplayLength).on("change.DT",function(Re){We(y,b(this).val()),He(y)}),b(y.nTable).on("length.dt.DT",function(Re,ke,Be){y===ke&&b("select",be).val(Be)}),be[0]}function ht(y){var _=y.sPaginationType,L=t.ext.pager[_],z=typeof L=="function",J=function(se){He(se)},K=b("<div/>").addClass(y.oClasses.sPaging+_)[0],ae=y.aanFeatures;return z||L.fnInit(y,K,J),ae.p||(K.id=y.sTableId+"_paginate",y.aoDrawCallback.push({fn:function(se){if(z){var le=se._iDisplayStart,ve=se._iDisplayLength,be=se.fnRecordsDisplay(),Re=ve===-1,ke=Re?0:Math.ceil(le/ve),Be=Re?1:Math.ceil(be/ve),Qe=L(ke,Be),pt,gt;for(pt=0,gt=ae.p.length;pt<gt;pt++)zn(se,"pageButton")(se,ae.p[pt],pt,Qe,ke,Be)}else L.fnUpdate(se,J)},sName:"pagination"})),K}function Tt(y,_,L){var z=y._iDisplayStart,J=y._iDisplayLength,K=y.fnRecordsDisplay();K===0||J===-1?z=0:typeof _=="number"?(z=_*J,z>K&&(z=0)):_=="first"?z=0:_=="previous"?(z=J>=0?z-J:0,z<0&&(z=0)):_=="next"?z+J<K&&(z+=J):_=="last"?z=Math.floor((K-1)/J)*J:_r(y,0,"Unknown paging action: "+_,5);var ae=y._iDisplayStart!==z;return y._iDisplayStart=z,ae&&(Qt(y,null,"page",[y]),L&&He(y)),ae}function kt(y){return b("<div/>",{id:y.aanFeatures.r?null:y.sTableId+"_processing",class:y.oClasses.sProcessing}).html(y.oLanguage.sProcessing).insertBefore(y.nTable)[0]}function Ht(y,_){y.oFeatures.bProcessing&&b(y.aanFeatures.r).css("display",_?"block":"none"),Qt(y,null,"processing",[y,_])}function er(y){var _=b(y.nTable),L=y.oScroll;if(L.sX===""&&L.sY==="")return y.nTable;var z=L.sX,J=L.sY,K=y.oClasses,ae=_.children("caption"),se=ae.length?ae[0]._captionSide:null,le=b(_[0].cloneNode(!1)),ve=b(_[0].cloneNode(!1)),be=_.children("tfoot"),Re="<div/>",ke=function(Ge){return Ge?sr(Ge):null};be.length||(be=null);var Be=b(Re,{class:K.sScrollWrapper}).append(b(Re,{class:K.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:z?ke(z):"100%"}).append(b(Re,{class:K.sScrollHeadInner}).css({"box-sizing":"content-box",width:L.sXInner||"100%"}).append(le.removeAttr("id").css("margin-left",0).append(se==="top"?ae:null).append(_.children("thead"))))).append(b(Re,{class:K.sScrollBody}).css({position:"relative",overflow:"auto",width:ke(z)}).append(_));be&&Be.append(b(Re,{class:K.sScrollFoot}).css({overflow:"hidden",border:0,width:z?ke(z):"100%"}).append(b(Re,{class:K.sScrollFootInner}).append(ve.removeAttr("id").css("margin-left",0).append(se==="bottom"?ae:null).append(_.children("tfoot")))));var Qe=Be.children(),pt=Qe[0],gt=Qe[1],xt=be?Qe[2]:null;return z&&b(gt).on("scroll.DT",function(Ge){var Xt=this.scrollLeft;pt.scrollLeft=Xt,be&&(xt.scrollLeft=Xt)}),b(gt).css("max-height",J),L.bCollapse||b(gt).css("height",J),y.nScrollHead=pt,y.nScrollBody=gt,y.nScrollFoot=xt,y.aoDrawCallback.push({fn:or,sName:"scrolling"}),Be[0]}function or(y){var _=y.oScroll,L=_.sX,z=_.sXInner,J=_.sY,K=_.iBarWidth,ae=b(y.nScrollHead),se=ae[0].style,le=ae.children("div"),ve=le[0].style,be=le.children("table"),Re=y.nScrollBody,ke=b(Re),Be=Re.style,Qe=b(y.nScrollFoot),pt=Qe.children("div"),gt=pt.children("table"),xt=b(y.nTHead),Ge=b(y.nTable),Xt=Ge[0],Nt=Xt.style,gr=y.nTFoot?b(y.nTFoot):null,Qr=y.oBrowser,an=Qr.bScrollOversize;j(y.aoColumns,"nTh");var on,sn,Zr,Ar,_n,xn,zt=[],Rr=[],Nr=[],qr=[],en,Fr,Hr,vi=function(dr){var xr=dr.style;xr.paddingTop="0",xr.paddingBottom="0",xr.borderTopWidth="0",xr.borderBottomWidth="0",xr.height=0},In=Re.scrollHeight>Re.clientHeight;if(y.scrollBarVis!==In&&y.scrollBarVis!==m){y.scrollBarVis=In,bt(y);return}else y.scrollBarVis=In;Ge.children("thead, tfoot").remove(),gr&&(xn=gr.clone().prependTo(Ge),sn=gr.find("tr"),Ar=xn.find("tr")),_n=xt.clone().prependTo(Ge),on=xt.find("tr"),Zr=_n.find("tr"),_n.find("th, td").removeAttr("tabindex"),L||(Be.width="100%",ae[0].style.width="100%"),b.each(st(y,_n),function(dr,xr){en=St(y,dr),xr.style.width=y.aoColumns[en].sWidth}),gr&&Vt(function(dr){dr.style.width=""},Ar),Hr=Ge.outerWidth(),L===""?(Nt.width="100%",an&&(Ge.find("tbody").height()>Re.offsetHeight||ke.css("overflow-y")=="scroll")&&(Nt.width=sr(Ge.outerWidth()-K)),Hr=Ge.outerWidth()):z!==""&&(Nt.width=sr(z),Hr=Ge.outerWidth()),Vt(vi,Zr),Vt(function(dr){var xr=P.getComputedStyle?P.getComputedStyle(dr).width:sr(b(dr).width());Nr.push(dr.innerHTML),zt.push(xr)},Zr),Vt(function(dr,xr){dr.style.width=zt[xr]},on),b(Zr).height(0),gr&&(Vt(vi,Ar),Vt(function(dr){qr.push(dr.innerHTML),Rr.push(sr(b(dr).css("width")))},Ar),Vt(function(dr,xr){dr.style.width=Rr[xr]},sn),b(Ar).height(0)),Vt(function(dr,xr){dr.innerHTML='<div class="dataTables_sizing">'+Nr[xr]+"</div>",dr.childNodes[0].style.height="0",dr.childNodes[0].style.overflow="hidden",dr.style.width=zt[xr]},Zr),gr&&Vt(function(dr,xr){dr.innerHTML='<div class="dataTables_sizing">'+qr[xr]+"</div>",dr.childNodes[0].style.height="0",dr.childNodes[0].style.overflow="hidden",dr.style.width=Rr[xr]},Ar),Ge.outerWidth()<Hr?(Fr=Re.scrollHeight>Re.offsetHeight||ke.css("overflow-y")=="scroll"?Hr+K:Hr,an&&(Re.scrollHeight>Re.offsetHeight||ke.css("overflow-y")=="scroll")&&(Nt.width=sr(Fr-K)),(L===""||z!=="")&&_r(y,1,"Possible column misalignment",6)):Fr="100%",Be.width=sr(Fr),se.width=sr(Fr),gr&&(y.nScrollFoot.style.width=sr(Fr)),J||an&&(Be.height=sr(Xt.offsetHeight+K));var On=Ge.outerWidth();be[0].style.width=sr(On),ve.width=sr(On);var oi=Ge.height()>Re.clientHeight||ke.css("overflow-y")=="scroll",Ai="padding"+(Qr.bScrollbarLeft?"Left":"Right");ve[Ai]=oi?K+"px":"0px",gr&&(gt[0].style.width=sr(On),pt[0].style.width=sr(On),pt[0].style[Ai]=oi?K+"px":"0px"),Ge.children("colgroup").insertBefore(Ge.children("thead")),ke.trigger("scroll"),(y.bSorted||y.bFiltered)&&!y._drawHold&&(Re.scrollTop=0)}function Vt(y,_,L){for(var z=0,J=0,K=_.length,ae,se;J<K;){for(ae=_[J].firstChild,se=L?L[J].firstChild:null;ae;)ae.nodeType===1&&(L?y(ae,se,z):y(ae,z),z++),ae=ae.nextSibling,se=L?se.nextSibling:null;J++}}var vr=/<.*?>/g;function Gt(y){var _=y.nTable,L=y.aoColumns,z=y.oScroll,J=z.sY,K=z.sX,ae=z.sXInner,se=L.length,le=Mt(y,"bVisible"),ve=b("th",y.nTHead),be=_.getAttribute("width"),Re=_.parentNode,ke=!1,Be,Qe,pt,gt=y.oBrowser,xt=gt.bScrollOversize,Ge=_.style.width;for(Ge&&Ge.indexOf("%")!==-1&&(be=Ge),Be=0;Be<le.length;Be++)Qe=L[le[Be]],Qe.sWidth!==null&&(Qe.sWidth=br(Qe.sWidthOrig,Re),ke=!0);if(xt||!ke&&!K&&!J&&se==Et(y)&&se==ve.length)for(Be=0;Be<se;Be++){var Xt=St(y,Be);Xt!==null&&(L[Xt].sWidth=sr(ve.eq(Be).width()))}else{var Nt=b(_).clone().css("visibility","hidden").removeAttr("id");Nt.find("tbody tr").remove();var gr=b("<tr/>").appendTo(Nt.find("tbody"));for(Nt.find("thead, tfoot").remove(),Nt.append(b(y.nTHead).clone()).append(b(y.nTFoot).clone()),Nt.find("tfoot th, tfoot td").css("width",""),ve=st(y,Nt.find("thead")[0]),Be=0;Be<le.length;Be++)Qe=L[le[Be]],ve[Be].style.width=Qe.sWidthOrig!==null&&Qe.sWidthOrig!==""?sr(Qe.sWidthOrig):"",Qe.sWidthOrig&&K&&b(ve[Be]).append(b("<div/>").css({width:Qe.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(y.aoData.length)for(Be=0;Be<le.length;Be++)pt=le[Be],Qe=L[pt],b(Lr(y,pt)).clone(!1).append(Qe.sContentPadding).appendTo(gr);b("[name]",Nt).removeAttr("name");var Qr=b("<div/>").css(K||J?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(Nt).appendTo(Re);K&&ae?Nt.width(ae):K?(Nt.css("width","auto"),Nt.removeAttr("width"),Nt.width()<Re.clientWidth&&be&&Nt.width(Re.clientWidth)):J?Nt.width(Re.clientWidth):be&&Nt.width(be);var an=0;for(Be=0;Be<le.length;Be++){var on=b(ve[Be]),sn=on.outerWidth()-on.width(),Zr=gt.bBounding?Math.ceil(ve[Be].getBoundingClientRect().width):on.outerWidth();an+=Zr,L[le[Be]].sWidth=sr(Zr-sn)}_.style.width=sr(an),Qr.remove()}if(be&&(_.style.width=sr(be)),(be||K)&&!y._reszEvt){var Ar=function(){b(P).on("resize.DT-"+y.sInstance,Pt(function(){bt(y)}))};xt?setTimeout(Ar,1e3):Ar(),y._reszEvt=!0}}var Pt=t.util.throttle;function br(y,_){if(!y)return 0;var L=b("<div/>").css("width",sr(y)).appendTo(_||B.body),z=L[0].offsetWidth;return L.remove(),z}function Lr(y,_){var L=rn(y,_);if(L<0)return null;var z=y.aoData[L];return z.nTr?z.anCells[_]:b("<td/>").html(Ue(y,L,_,"display"))[0]}function rn(y,_){for(var L,z=-1,J=-1,K=0,ae=y.aoData.length;K<ae;K++)L=Ue(y,K,_,"display")+"",L=L.replace(vr,""),L=L.replace(/&nbsp;/g," "),L.length>z&&(z=L.length,J=K);return J}function sr(y){return y===null?"0px":typeof y=="number"?y<0?"0px":y+"px":y.match(/\d$/)?y+"px":y}function fn(y){var _,L,z,J=[],K=y.aoColumns,ae,se,le,ve,be=y.aaSortingFixed,Re=b.isPlainObject(be),ke=[],Be=function(Qe){Qe.length&&!Array.isArray(Qe[0])?ke.push(Qe):b.merge(ke,Qe)};for(Array.isArray(be)&&Be(be),Re&&be.pre&&Be(be.pre),Be(y.aaSorting),Re&&be.post&&Be(be.post),_=0;_<ke.length;_++)for(ve=ke[_][0],ae=K[ve].aDataSort,L=0,z=ae.length;L<z;L++)se=ae[L],le=K[se].sType||"string",ke[_]._idx===m&&(ke[_]._idx=b.inArray(ke[_][1],K[se].asSorting)),J.push({src:ve,col:se,dir:ke[_][1],index:ke[_]._idx,type:le,formatter:t.ext.type.order[le+"-pre"]});return J}function na(y){var _,L,z,J=[],K=t.ext.type.order,ae=y.aoData;y.aoColumns;var se=0,le,ve=y.aiDisplayMaster,be;for(at(y),be=fn(y),_=0,L=be.length;_<L;_++)le=be[_],le.formatter&&se++,ji(y,le.col);if(Ir(y)!="ssp"&&be.length!==0){for(_=0,z=ve.length;_<z;_++)J[ve[_]]=_;se===be.length?ve.sort(function(Re,ke){var Be,Qe,pt,gt,xt,Ge=be.length,Xt=ae[Re]._aSortData,Nt=ae[ke]._aSortData;for(pt=0;pt<Ge;pt++)if(xt=be[pt],Be=Xt[xt.col],Qe=Nt[xt.col],gt=Be<Qe?-1:Be>Qe?1:0,gt!==0)return xt.dir==="asc"?gt:-gt;return Be=J[Re],Qe=J[ke],Be<Qe?-1:Be>Qe?1:0}):ve.sort(function(Re,ke){var Be,Qe,pt,gt,xt,Ge,Xt=be.length,Nt=ae[Re]._aSortData,gr=ae[ke]._aSortData;for(pt=0;pt<Xt;pt++)if(xt=be[pt],Be=Nt[xt.col],Qe=gr[xt.col],Ge=K[xt.type+"-"+xt.dir]||K["string-"+xt.dir],gt=Ge(Be,Qe),gt!==0)return gt;return Be=J[Re],Qe=J[ke],Be<Qe?-1:Be>Qe?1:0})}y.bSorted=!0}function ia(y){for(var _,L,z=y.aoColumns,J=fn(y),K=y.oLanguage.oAria,ae=0,se=z.length;ae<se;ae++){var le=z[ae],ve=le.asSorting,be=le.ariaTitle||le.sTitle.replace(/<.*?>/g,""),Re=le.nTh;Re.removeAttribute("aria-sort"),le.bSortable?(J.length>0&&J[0].col==ae?(Re.setAttribute("aria-sort",J[0].dir=="asc"?"ascending":"descending"),L=ve[J[0].index+1]||ve[0]):L=ve[0],_=be+(L==="asc"?K.sSortAscending:K.sSortDescending)):_=be,Re.setAttribute("aria-label",_)}}function Bi(y,_,L,z){var J=y.aoColumns[_],K=y.aaSorting,ae=J.asSorting,se,le=function(be,Re){var ke=be._idx;return ke===m&&(ke=b.inArray(be[1],ae)),ke+1<ae.length?ke+1:Re?null:0};if(typeof K[0]=="number"&&(K=y.aaSorting=[K]),L&&y.oFeatures.bSortMulti){var ve=b.inArray(_,j(K,"0"));ve!==-1?(se=le(K[ve],!0),se===null&&K.length===1&&(se=0),se===null?K.splice(ve,1):(K[ve][1]=ae[se],K[ve]._idx=se)):(K.push([_,ae[0],0]),K[K.length-1]._idx=0)}else K.length&&K[0][0]==_?(se=le(K[0]),K.length=1,K[0][1]=ae[se],K[0]._idx=se):(K.length=0,K.push([_,ae[0]]),K[0]._idx=0);Ae(y),typeof z=="function"&&z(y)}function Ci(y,_,L,z){var J=y.aoColumns[L];Xr(_,{},function(K){J.bSortable!==!1&&(y.oFeatures.bProcessing?(Ht(y,!0),setTimeout(function(){Bi(y,L,K.shiftKey,z),Ir(y)!=="ssp"&&Ht(y,!1)},0)):Bi(y,L,K.shiftKey,z))})}function qn(y){var _=y.aLastSort,L=y.oClasses.sSortColumn,z=fn(y),J=y.oFeatures,K,ae,se;if(J.bSort&&J.bSortClasses){for(K=0,ae=_.length;K<ae;K++)se=_[K].src,b(j(y.aoData,"anCells",se)).removeClass(L+(K<2?K+1:3));for(K=0,ae=z.length;K<ae;K++)se=z[K].src,b(j(y.aoData,"anCells",se)).addClass(L+(K<2?K+1:3))}y.aLastSort=z}function ji(y,_){var L=y.aoColumns[_],z=t.ext.order[L.sSortDataType],J;z&&(J=z.call(y.oInstance,y,_,Le(y,_)));for(var K,ae,se=t.ext.type.order[L.sType+"-pre"],le=0,ve=y.aoData.length;le<ve;le++)K=y.aoData[le],K._aSortData||(K._aSortData=[]),(!K._aSortData[_]||z)&&(ae=z?J[le]:Ue(y,le,_,"sort"),K._aSortData[_]=se?se(ae):ae)}function Vn(y){if(!y._bLoadingState){var _={time:+new Date,start:y._iDisplayStart,length:y._iDisplayLength,order:b.extend(!0,[],y.aaSorting),search:yt(y.oPreviousSearch),columns:b.map(y.aoColumns,function(L,z){return{visible:L.bVisible,search:yt(y.aoPreSearchCols[z])}})};y.oSavedState=_,Qt(y,"aoStateSaveParams","stateSaveParams",[y,_]),y.oFeatures.bStateSave&&!y.bDestroying&&y.fnStateSaveCallback.call(y.oInstance,y,_)}}function ei(y,_,L){if(!y.oFeatures.bStateSave){L();return}var z=function(K){mn(y,K,L)},J=y.fnStateLoadCallback.call(y.oInstance,y,z);return J!==m&&mn(y,J,L),!0}function mn(y,_,L){var z,J,K=y.aoColumns;y._bLoadingState=!0;var ae=y._bInitComplete?new t.Api(y):null;if(!_||!_.time){y._bLoadingState=!1,L();return}var se=Qt(y,"aoStateLoadParams","stateLoadParams",[y,_]);if(b.inArray(!1,se)!==-1){y._bLoadingState=!1,L();return}var le=y.iStateDuration;if(le>0&&_.time<+new Date-le*1e3){y._bLoadingState=!1,L();return}if(_.columns&&K.length!==_.columns.length){y._bLoadingState=!1,L();return}if(y.oLoadedState=b.extend(!0,{},_),_.start!==m&&(y._iDisplayStart=_.start,ae===null&&(y.iInitDisplayStart=_.start)),_.length!==m&&(y._iDisplayLength=_.length),_.order!==m&&(y.aaSorting=[],b.each(_.order,function(be,Re){y.aaSorting.push(Re[0]>=K.length?[0,Re[1]]:Re)})),_.search!==m&&b.extend(y.oPreviousSearch,$n(_.search)),_.columns){for(z=0,J=_.columns.length;z<J;z++){var ve=_.columns[z];ve.visible!==m&&(ae?ae.column(z).visible(ve.visible,!1):K[z].bVisible=ve.visible),ve.search!==m&&b.extend(y.aoPreSearchCols[z],$n(ve.search))}ae&&ae.columns.adjust()}y._bLoadingState=!1,Qt(y,"aoStateLoaded","stateLoaded",[y,_]),L()}function hn(y){var _=t.settings,L=b.inArray(y,j(_,"nTable"));return L!==-1?_[L]:null}function _r(y,_,L,z){if(L="DataTables warning: "+(y?"table id="+y.sTableId+" - ":"")+L,z&&(L+=". For more information about this error, please see http://datatables.net/tn/"+z),_)P.console&&console.log&&console.log(L);else{var J=t.ext,K=J.sErrMode||J.errMode;if(y&&Qt(y,null,"error",[y,z,L]),K=="alert")alert(L);else{if(K=="throw")throw new Error(L);typeof K=="function"&&K(y,z,L)}}}function Mr(y,_,L,z){if(Array.isArray(L)){b.each(L,function(J,K){Array.isArray(K)?Mr(y,_,K[0],K[1]):Mr(y,_,K)});return}z===m&&(z=L),_[L]!==m&&(y[z]=_[L])}function Di(y,_,L){var z;for(var J in _)_.hasOwnProperty(J)&&(z=_[J],b.isPlainObject(z)?(b.isPlainObject(y[J])||(y[J]={}),b.extend(!0,y[J],z)):L&&J!=="data"&&J!=="aaData"&&Array.isArray(z)?y[J]=z.slice():y[J]=z);return y}function Xr(y,_,L){b(y).on("click.DT",_,function(z){b(y).trigger("blur"),L(z)}).on("keypress.DT",_,function(z){z.which===13&&(z.preventDefault(),L(z))}).on("selectstart.DT",function(){return!1})}function Er(y,_,L,z){L&&y[_].push({fn:L,sName:z})}function Qt(y,_,L,z){var J=[];if(_&&(J=b.map(y[_].slice().reverse(),function(ae,se){return ae.fn.apply(y.oInstance,z)})),L!==null){var K=b.Event(L+".dt");b(y.nTable).trigger(K,z),J.push(K.result)}return J}function Gn(y){var _=y._iDisplayStart,L=y.fnDisplayEnd(),z=y._iDisplayLength;_>=L&&(_=L-z),_-=_%z,(z===-1||_<0)&&(_=0),y._iDisplayStart=_}function zn(y,_){var L=y.renderer,z=t.ext.renderer[_];return b.isPlainObject(L)&&L[_]?z[L[_]]||z._:typeof L=="string"&&z[L]||z._}function Ir(y){return y.oFeatures.bServerSide?"ssp":y.ajax||y.sAjaxSource?"ajax":"dom"}var pn=[],Or=Array.prototype,Wi=function(y){var _,L,z=t.settings,J=b.map(z,function(K,ae){return K.nTable});if(y){if(y.nTable&&y.oApi)return[y];if(y.nodeName&&y.nodeName.toLowerCase()==="table")return _=b.inArray(y,J),_!==-1?[z[_]]:null;if(y&&typeof y.settings=="function")return y.settings().toArray();typeof y=="string"?L=b(y):y instanceof b&&(L=y)}else return[];if(L)return L.map(function(K){return _=b.inArray(this,J),_!==-1?z[_]:null}).toArray()};w=function(y,_){if(!(this instanceof w))return new w(y,_);var L=[],z=function(ae){var se=Wi(ae);se&&L.push.apply(L,se)};if(Array.isArray(y))for(var J=0,K=y.length;J<K;J++)z(y[J]);else z(y);this.context=X(L),_&&b.merge(this,_),this.selector={rows:null,cols:null,opts:null},w.extend(this,this,pn)},t.Api=w,b.extend(w.prototype,{any:function(){return this.count()!==0},concat:Or.concat,context:[],count:function(){return this.flatten().length},each:function(y){for(var _=0,L=this.length;_<L;_++)y.call(this,this[_],_,this);return this},eq:function(y){var _=this.context;return _.length>y?new w(_[y],this[y]):null},filter:function(y){var _=[];if(Or.filter)_=Or.filter.call(this,y,this);else for(var L=0,z=this.length;L<z;L++)y.call(this,this[L],L,this)&&_.push(this[L]);return new w(this.context,_)},flatten:function(){var y=[];return new w(this.context,y.concat.apply(y,this.toArray()))},join:Or.join,indexOf:Or.indexOf||function(y,_){for(var L=_||0,z=this.length;L<z;L++)if(this[L]===y)return L;return-1},iterator:function(y,_,L,z){var J=[],K,ae,se,le,ve,be=this.context,Re,ke,Be,Qe=this.selector;for(typeof y=="string"&&(z=L,L=_,_=y,y=!1),ae=0,se=be.length;ae<se;ae++){var pt=new w(be[ae]);if(_==="table")K=L.call(pt,be[ae],ae),K!==m&&J.push(K);else if(_==="columns"||_==="rows")K=L.call(pt,be[ae],this[ae],ae),K!==m&&J.push(K);else if(_==="column"||_==="column-rows"||_==="row"||_==="cell")for(ke=this[ae],_==="column-rows"&&(Re=Sn(be[ae],Qe.opts)),le=0,ve=ke.length;le<ve;le++)Be=ke[le],_==="cell"?K=L.call(pt,be[ae],Be.row,Be.column,ae,le):K=L.call(pt,be[ae],Be,ae,le,Re),K!==m&&J.push(K)}if(J.length||z){var gt=new w(be,y?J.concat.apply([],J):J),xt=gt.selector;return xt.rows=Qe.rows,xt.cols=Qe.cols,xt.opts=Qe.opts,gt}return this},lastIndexOf:Or.lastIndexOf||function(y,_){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(y){var _=[];if(Or.map)_=Or.map.call(this,y,this);else for(var L=0,z=this.length;L<z;L++)_.push(y.call(this,this[L],L));return new w(this.context,_)},pluck:function(y){return this.map(function(_){return _[y]})},pop:Or.pop,push:Or.push,reduce:Or.reduce||function(y,_){return et(this,y,_,0,this.length,1)},reduceRight:Or.reduceRight||function(y,_){return et(this,y,_,this.length-1,-1,-1)},reverse:Or.reverse,selector:null,shift:Or.shift,slice:function(){return new w(this.context,this)},sort:Or.sort,splice:Or.splice,toArray:function(){return Or.slice.call(this)},to$:function(){return b(this)},toJQuery:function(){return b(this)},unique:function(){return new w(this.context,X(this))},unshift:Or.unshift}),w.extend=function(y,_,L){if(!(!L.length||!_||!(_ instanceof w)&&!_.__dt_wrapper)){var z,J,K,ae=function(se,le,ve){return function(){var be=le.apply(se,arguments);return w.extend(be,be,ve.methodExt),be}};for(z=0,J=L.length;z<J;z++)K=L[z],_[K.name]=K.type==="function"?ae(y,K.val,K):K.type==="object"?{}:K.val,_[K.name].__dt_wrapper=!0,w.extend(y,_[K.name],K.propExt)}},w.register=g=function(y,_){if(Array.isArray(y)){for(var L=0,z=y.length;L<z;L++)w.register(y[L],_);return}var J,K,ae=y.split("."),se=pn,le,ve,be=function(ke,Be){for(var Qe=0,pt=ke.length;Qe<pt;Qe++)if(ke[Qe].name===Be)return ke[Qe];return null};for(J=0,K=ae.length;J<K;J++){ve=ae[J].indexOf("()")!==-1,le=ve?ae[J].replace("()",""):ae[J];var Re=be(se,le);Re||(Re={name:le,val:{},methodExt:[],propExt:[],type:"object"},se.push(Re)),J===K-1?(Re.val=_,Re.type=typeof _=="function"?"function":b.isPlainObject(_)?"object":"other"):se=ve?Re.methodExt:Re.propExt}},w.registerPlural=E=function(y,_,L){w.register(y,L),w.register(_,function(){var z=L.apply(this,arguments);return z===this?this:z instanceof w?z.length?Array.isArray(z[0])?new w(z.context,z[0]):z[0]:m:z})};var aa=function(y,_){if(Array.isArray(y))return b.map(y,function(z){return aa(z,_)});if(typeof y=="number")return[_[y]];var L=b.map(_,function(z,J){return z.nTable});return b(L).filter(y).map(function(z){var J=b.inArray(this,L);return _[J]}).toArray()};g("tables()",function(y){return y!==m&&y!==null?new w(aa(y,this.context)):this}),g("table()",function(y){var _=this.tables(y),L=_.context;return L.length?new w(L[0]):_}),E("tables().nodes()","table().node()",function(){return this.iterator("table",function(y){return y.nTable},1)}),E("tables().body()","table().body()",function(){return this.iterator("table",function(y){return y.nTBody},1)}),E("tables().header()","table().header()",function(){return this.iterator("table",function(y){return y.nTHead},1)}),E("tables().footer()","table().footer()",function(){return this.iterator("table",function(y){return y.nTFoot},1)}),E("tables().containers()","table().container()",function(){return this.iterator("table",function(y){return y.nTableWrapper},1)}),g("draw()",function(y){return this.iterator("table",function(_){y==="page"?He(_):(typeof y=="string"&&(y=y!=="full-hold"),Ae(_,y===!1))})}),g("page()",function(y){return y===m?this.page.info().page:this.iterator("table",function(_){Tt(_,y)})}),g("page.info()",function(y){if(this.context.length===0)return m;var _=this.context[0],L=_._iDisplayStart,z=_.oFeatures.bPaginate?_._iDisplayLength:-1,J=_.fnRecordsDisplay(),K=z===-1;return{page:K?0:Math.floor(L/z),pages:K?1:Math.ceil(J/z),start:L,end:_.fnDisplayEnd(),length:z,recordsTotal:_.fnRecordsTotal(),recordsDisplay:J,serverSide:Ir(_)==="ssp"}}),g("page.len()",function(y){return y===m?this.context.length!==0?this.context[0]._iDisplayLength:m:this.iterator("table",function(_){We(_,y)})});var Bn=function(y,_,L){if(L){var z=new w(y);z.one("draw",function(){L(z.ajax.json())})}if(Ir(y)=="ssp")Ae(y,_);else{Ht(y,!0);var J=y.jqXHR;J&&J.readyState!==4&&J.abort(),ce(y,[],function(K){vt(y);for(var ae=ot(y,K),se=0,le=ae.length;se<le;se++)Ne(y,ae[se]);Ae(y,_),Ht(y,!1)})}};g("ajax.json()",function(){var y=this.context;if(y.length>0)return y[0].json}),g("ajax.params()",function(){var y=this.context;if(y.length>0)return y[0].oAjaxData}),g("ajax.reload()",function(y,_){return this.iterator("table",function(L){Bn(L,_===!1,y)})}),g("ajax.url()",function(y){var _=this.context;return y===m?_.length===0?m:(_=_[0],_.ajax?b.isPlainObject(_.ajax)?_.ajax.url:_.ajax:_.sAjaxSource):this.iterator("table",function(L){b.isPlainObject(L.ajax)?L.ajax.url=y:L.ajax=y})}),g("ajax.url().load()",function(y,_){return this.iterator("table",function(L){Bn(L,_===!1,y)})});var ti=function(y,_,L,z,J){var K=[],ae,se,le,ve,be,Re,ke=typeof _;for((!_||ke==="string"||ke==="function"||_.length===m)&&(_=[_]),le=0,ve=_.length;le<ve;le++)for(se=_[le]&&_[le].split&&!_[le].match(/[\[\(:]/)?_[le].split(","):[_[le]],be=0,Re=se.length;be<Re;be++)ae=L(typeof se[be]=="string"?se[be].trim():se[be]),ae&&ae.length&&(K=K.concat(ae));var Be=p.selector[y];if(Be.length)for(le=0,ve=Be.length;le<ve;le++)K=Be[le](z,J,K);return X(K)},nn=function(y){return y||(y={}),y.filter&&y.search===m&&(y.search=y.filter),b.extend({search:"none",order:"current",page:"all"},y)},Ti=function(y){for(var _=0,L=y.length;_<L;_++)if(y[_].length>0)return y[0]=y[_],y[0].length=1,y.length=1,y.context=[y.context[_]],y;return y.length=0,y},Sn=function(y,_){var L,z,J,K=[],ae=y.aiDisplay,se=y.aiDisplayMaster,le=_.search,ve=_.order,be=_.page;if(Ir(y)=="ssp")return le==="removed"?[]:N(0,se.length);if(be=="current")for(L=y._iDisplayStart,z=y.fnDisplayEnd();L<z;L++)K.push(ae[L]);else if(ve=="current"||ve=="applied"){if(le=="none")K=se.slice();else if(le=="applied")K=ae.slice();else if(le=="removed"){for(var Re={},L=0,z=ae.length;L<z;L++)Re[ae[L]]=null;K=b.map(se,function(ke){return Re.hasOwnProperty(ke)?null:ke})}}else if(ve=="index"||ve=="original")for(L=0,z=y.aoData.length;L<z;L++)le=="none"?K.push(L):(J=b.inArray(L,ae),(J===-1&&le=="removed"||J>=0&&le=="applied")&&K.push(L));return K},Yn=function(y,_,L){var z,J=function(K){var ae=d(K),se=y.aoData;if(ae!==null&&!L)return[ae];if(z||(z=Sn(y,L)),ae!==null&&b.inArray(ae,z)!==-1)return[ae];if(K===null||K===m||K==="")return z;if(typeof K=="function")return b.map(z,function(Be){var Qe=se[Be];return K(Be,Qe._aData,Qe.nTr)?Be:null});if(K.nodeName){var le=K._DT_RowIndex,ve=K._DT_CellIndex;if(le!==m)return se[le]&&se[le].nTr===K?[le]:[];if(ve)return se[ve.row]&&se[ve.row].nTr===K.parentNode?[ve.row]:[];var be=b(K).closest("*[data-dt-row]");return be.length?[be.data("dt-row")]:[]}if(typeof K=="string"&&K.charAt(0)==="#"){var Re=y.aIds[K.replace(/^#/,"")];if(Re!==m)return[Re.idx]}var ke=T(G(y.aoData,z,"nTr"));return b(ke).filter(K).map(function(){return this._DT_RowIndex}).toArray()};return ti("row",_,J,y,L)};g("rows()",function(y,_){y===m?y="":b.isPlainObject(y)&&(_=y,y=""),_=nn(_);var L=this.iterator("table",function(z){return Yn(z,y,_)},1);return L.selector.rows=y,L.selector.opts=_,L}),g("rows().nodes()",function(){return this.iterator("row",function(y,_){return y.aoData[_].nTr||m},1)}),g("rows().data()",function(){return this.iterator(!0,"rows",function(y,_){return G(y.aoData,_,"_aData")},1)}),E("rows().cache()","row().cache()",function(y){return this.iterator("row",function(_,L){var z=_.aoData[L];return y==="search"?z._aFilterData:z._aSortData},1)}),E("rows().invalidate()","row().invalidate()",function(y){return this.iterator("row",function(_,L){At(_,L,y)})}),E("rows().indexes()","row().index()",function(){return this.iterator("row",function(y,_){return _},1)}),E("rows().ids()","row().id()",function(y){for(var _=[],L=this.context,z=0,J=L.length;z<J;z++)for(var K=0,ae=this[z].length;K<ae;K++){var se=L[z].rowIdFn(L[z].aoData[this[z][K]]._aData);_.push((y===!0?"#":"")+se)}return new w(L,_)}),E("rows().remove()","row().remove()",function(){var y=this;return this.iterator("row",function(_,L,z){var J=_.aoData,K=J[L],ae,se,le,ve,be,Re;for(J.splice(L,1),ae=0,se=J.length;ae<se;ae++)if(be=J[ae],Re=be.anCells,be.nTr!==null&&(be.nTr._DT_RowIndex=ae),Re!==null)for(le=0,ve=Re.length;le<ve;le++)Re[le]._DT_CellIndex.row=ae;Rt(_.aiDisplayMaster,L),Rt(_.aiDisplay,L),Rt(y[z],L,!1),_._iRecordsDisplay>0&&_._iRecordsDisplay--,Gn(_);var ke=_.rowIdFn(K._aData);ke!==m&&delete _.aIds[ke]}),this.iterator("table",function(_){for(var L=0,z=_.aoData.length;L<z;L++)_.aoData[L].idx=L}),this}),g("rows.add()",function(y){var _=this.iterator("table",function(z){var J,K,ae,se=[];for(K=0,ae=y.length;K<ae;K++)J=y[K],J.nodeName&&J.nodeName.toUpperCase()==="TR"?se.push(ct(z,J)[0]):se.push(Ne(z,J));return se},1),L=this.rows(-1);return L.pop(),b.merge(L,_),L}),g("row()",function(y,_){return Ti(this.rows(y,_))}),g("row().data()",function(y){var _=this.context;if(y===m)return _.length&&this.length?_[0].aoData[this[0]]._aData:m;var L=_[0].aoData[this[0]];return L._aData=y,Array.isArray(y)&&L.nTr&&L.nTr.id&&tt(_[0].rowId)(y,L.nTr.id),At(_[0],this[0],"data"),this}),g("row().node()",function(){var y=this.context;return y.length&&this.length&&y[0].aoData[this[0]].nTr||null}),g("row.add()",function(y){y instanceof b&&y.length&&(y=y[0]);var _=this.iterator("table",function(L){return y.nodeName&&y.nodeName.toUpperCase()==="TR"?ct(L,y)[0]:Ne(L,y)});return this.row(_[0])}),b(B).on("plugin-init.dt",function(y,_){var L=new w(_);L.on("stateSaveParams",function(J,K,ae){var se=L.rows().iterator("row",function(le,ve){return le.aoData[ve]._detailsShow?ve:m});ae.childRows=L.rows(se).ids(!0).toArray()});var z=L.state.loaded();z&&z.childRows&&L.rows(z.childRows).every(function(){Qt(_,null,"requestChild",[this])})});var Mi=function(y,_,L,z){var J=[],K=function(ae,se){if(Array.isArray(ae)||ae instanceof b){for(var le=0,ve=ae.length;le<ve;le++)K(ae[le],se);return}if(ae.nodeName&&ae.nodeName.toLowerCase()==="tr")J.push(ae);else{var be=b("<tr><td></td></tr>").addClass(se);b("td",be).addClass(se).html(ae)[0].colSpan=Et(y),J.push(be[0])}};K(L,z),_._details&&_._details.detach(),_._details=b(J),_._detailsShow&&_._details.insertAfter(_.nTr)},ri=function(y,_){var L=y.context;if(L.length){var z=L[0].aoData[_!==m?_:y[0]];z&&z._details&&(z._details.remove(),z._detailsShow=m,z._details=m,b(z.nTr).removeClass("dt-hasChild"),Vn(L[0]))}},hi=function(y,_){var L=y.context;if(L.length&&y.length){var z=L[0].aoData[y[0]];z._details&&(z._detailsShow=_,_?(z._details.insertAfter(z.nTr),b(z.nTr).addClass("dt-hasChild")):(z._details.detach(),b(z.nTr).removeClass("dt-hasChild")),Qt(L[0],null,"childRow",[_,y.row(y[0])]),Ri(L[0]),Vn(L[0]))}},Ri=function(y){var _=new w(y),L=".dt.DT_details",z="draw"+L,J="column-visibility"+L,K="destroy"+L,ae=y.aoData;_.off(z+" "+J+" "+K),j(ae,"_details").length>0&&(_.on(z,function(se,le){y===le&&_.rows({page:"current"}).eq(0).each(function(ve){var be=ae[ve];be._detailsShow&&be._details.insertAfter(be.nTr)})}),_.on(J,function(se,le,ve,be){if(y===le)for(var Re,ke=Et(le),Be=0,Qe=ae.length;Be<Qe;Be++)Re=ae[Be],Re._details&&Re._details.children("td[colspan]").attr("colspan",ke)}),_.on(K,function(se,le){if(y===le)for(var ve=0,be=ae.length;ve<be;ve++)ae[ve]._details&&ri(_,ve)}))},ni="",Xn=ni+"row().child",jn=Xn+"()";g(jn,function(y,_){var L=this.context;return y===m?L.length&&this.length?L[0].aoData[this[0]]._details:m:(y===!0?this.child.show():y===!1?ri(this):L.length&&this.length&&Mi(L[0],L[0].aoData[this[0]],y,_),this)}),g([Xn+".show()",jn+".show()"],function(y){return hi(this,!0),this}),g([Xn+".hide()",jn+".hide()"],function(){return hi(this,!1),this}),g([Xn+".remove()",jn+".remove()"],function(){return ri(this),this}),g(Xn+".isShown()",function(){var y=this.context;return y.length&&this.length&&y[0].aoData[this[0]]._detailsShow||!1});var ii=/^([^:]+):(name|visIdx|visible)$/,Ui=function(y,_,L,z,J){for(var K=[],ae=0,se=J.length;ae<se;ae++)K.push(Ue(y,J[ae],_));return K},wa=function(y,_,L){var z=y.aoColumns,J=j(z,"sName"),K=j(z,"nTh"),ae=function(se){var le=d(se);if(se==="")return N(z.length);if(le!==null)return[le>=0?le:z.length+le];if(typeof se=="function"){var ve=Sn(y,L);return b.map(z,function(pt,gt){return se(gt,Ui(y,gt,0,0,ve),K[gt])?gt:null})}var be=typeof se=="string"?se.match(ii):"";if(be)switch(be[2]){case"visIdx":case"visible":var Re=parseInt(be[1],10);if(Re<0){var ke=b.map(z,function(pt,gt){return pt.bVisible?gt:null});return[ke[ke.length+Re]]}return[St(y,Re)];case"name":return b.map(J,function(pt,gt){return pt===be[1]?gt:null});default:return[]}if(se.nodeName&&se._DT_CellIndex)return[se._DT_CellIndex.column];var Be=b(K).filter(se).map(function(){return b.inArray(this,K)}).toArray();if(Be.length||!se.nodeName)return Be;var Qe=b(se).closest("*[data-dt-column]");return Qe.length?[Qe.data("dt-column")]:[]};return ti("column",_,ae,y,L)},_i=function(y,_,L){var z=y.aoColumns,J=z[_],K=y.aoData,ae,se,le,ve;if(L===m)return J.bVisible;if(J.bVisible!==L){if(L){var be=b.inArray(!0,j(z,"bVisible"),_+1);for(se=0,le=K.length;se<le;se++)ve=K[se].nTr,ae=K[se].anCells,ve&&ve.insertBefore(ae[_],ae[be]||null)}else b(j(y.aoData,"anCells",_)).detach();J.bVisible=L}};g("columns()",function(y,_){y===m?y="":b.isPlainObject(y)&&(_=y,y=""),_=nn(_);var L=this.iterator("table",function(z){return wa(z,y,_)},1);return L.selector.cols=y,L.selector.opts=_,L}),E("columns().header()","column().header()",function(y,_){return this.iterator("column",function(L,z){return L.aoColumns[z].nTh},1)}),E("columns().footer()","column().footer()",function(y,_){return this.iterator("column",function(L,z){return L.aoColumns[z].nTf},1)}),E("columns().data()","column().data()",function(){return this.iterator("column-rows",Ui,1)}),E("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(y,_){return y.aoColumns[_].mData},1)}),E("columns().cache()","column().cache()",function(y){return this.iterator("column-rows",function(_,L,z,J,K){return G(_.aoData,K,y==="search"?"_aFilterData":"_aSortData",L)},1)}),E("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(y,_,L,z,J){return G(y.aoData,J,"anCells",_)},1)}),E("columns().visible()","column().visible()",function(y,_){var L=this,z=this.iterator("column",function(J,K){if(y===m)return J.aoColumns[K].bVisible;_i(J,K,y)});return y!==m&&this.iterator("table",function(J){xe(J,J.aoHeader),xe(J,J.aoFooter),J.aiDisplay.length||b(J.nTBody).find("td[colspan]").attr("colspan",Et(J)),Vn(J),L.iterator("column",function(K,ae){Qt(K,null,"column-visibility",[K,ae,y,_])}),(_===m||_)&&L.columns.adjust()}),z}),E("columns().indexes()","column().index()",function(y){return this.iterator("column",function(_,L){return y==="visible"?Le(_,L):L},1)}),g("columns.adjust()",function(){return this.iterator("table",function(y){bt(y)},1)}),g("column.index()",function(y,_){if(this.context.length!==0){var L=this.context[0];if(y==="fromVisible"||y==="toData")return St(L,_);if(y==="fromData"||y==="toVisible")return Le(L,_)}}),g("column()",function(y,_){return Ti(this.columns(y,_))});var oa=function(y,_,L){var z=y.aoData,J=Sn(y,L),K=T(G(z,J,"anCells")),ae=b(Q([],K)),se,le=y.aoColumns.length,ve,be,Re,ke,Be,Qe,pt=function(gt){var xt=typeof gt=="function";if(gt===null||gt===m||xt){for(ve=[],be=0,Re=J.length;be<Re;be++)for(se=J[be],ke=0;ke<le;ke++)Be={row:se,column:ke},xt?(Qe=z[se],gt(Be,Ue(y,se,ke),Qe.anCells?Qe.anCells[ke]:null)&&ve.push(Be)):ve.push(Be);return ve}if(b.isPlainObject(gt))return gt.column!==m&&gt.row!==m&&b.inArray(gt.row,J)!==-1?[gt]:[];var Ge=ae.filter(gt).map(function(Xt,Nt){return{row:Nt._DT_CellIndex.row,column:Nt._DT_CellIndex.column}}).toArray();return Ge.length||!gt.nodeName?Ge:(Qe=b(gt).closest("*[data-dt-row]"),Qe.length?[{row:Qe.data("dt-row"),column:Qe.data("dt-column")}]:[])};return ti("cell",_,pt,y,L)};g("cells()",function(y,_,L){if(b.isPlainObject(y)&&(y.row===m?(L=y,y=null):(L=_,_=null)),b.isPlainObject(_)&&(L=_,_=null),_===null||_===m)return this.iterator("table",function(ke){return oa(ke,y,nn(L))});var z=L?{page:L.page,order:L.order,search:L.search}:{},J=this.columns(_,z),K=this.rows(y,z),ae,se,le,ve,be=this.iterator("table",function(ke,Be){var Qe=[];for(ae=0,se=K[Be].length;ae<se;ae++)for(le=0,ve=J[Be].length;le<ve;le++)Qe.push({row:K[Be][ae],column:J[Be][le]});return Qe},1),Re=L&&L.selected?this.cells(be,L):be;return b.extend(Re.selector,{cols:_,rows:y,opts:L}),Re}),E("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(y,_,L){var z=y.aoData[_];return z&&z.anCells?z.anCells[L]:m},1)}),g("cells().data()",function(){return this.iterator("cell",function(y,_,L){return Ue(y,_,L)},1)}),E("cells().cache()","cell().cache()",function(y){return y=y==="search"?"_aFilterData":"_aSortData",this.iterator("cell",function(_,L,z){return _.aoData[L][y][z]},1)}),E("cells().render()","cell().render()",function(y){return this.iterator("cell",function(_,L,z){return Ue(_,L,z,y)},1)}),E("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(y,_,L){return{row:_,column:L,columnVisible:Le(y,L)}},1)}),E("cells().invalidate()","cell().invalidate()",function(y){return this.iterator("cell",function(_,L,z){At(_,L,y,z)})}),g("cell()",function(y,_,L){return Ti(this.cells(y,_,L))}),g("cell().data()",function(y){var _=this.context,L=this[0];return y===m?_.length&&L.length?Ue(_[0],L[0].row,L[0].column):m:(qe(_[0],L[0].row,L[0].column,y),At(_[0],L[0].row,"data",L[0].column),this)}),g("order()",function(y,_){var L=this.context;return y===m?L.length!==0?L[0].aaSorting:m:(typeof y=="number"?y=[[y,_]]:y.length&&!Array.isArray(y[0])&&(y=Array.prototype.slice.call(arguments)),this.iterator("table",function(z){z.aaSorting=y.slice()}))}),g("order.listener()",function(y,_,L){return this.iterator("table",function(z){Ci(z,y,_,L)})}),g("order.fixed()",function(y){if(!y){var _=this.context,L=_.length?_[0].aaSortingFixed:m;return Array.isArray(L)?{pre:L}:L}return this.iterator("table",function(z){z.aaSortingFixed=b.extend(!0,{},y)})}),g(["columns().order()","column().order()"],function(y){var _=this;return this.iterator("table",function(L,z){var J=[];b.each(_[z],function(K,ae){J.push([ae,y])}),L.aaSorting=J})}),g("search()",function(y,_,L,z){var J=this.context;return y===m?J.length!==0?J[0].oPreviousSearch.sSearch:m:this.iterator("table",function(K){K.oFeatures.bFilter&&Ut(K,b.extend({},K.oPreviousSearch,{sSearch:y+"",bRegex:_===null?!1:_,bSmart:L===null?!0:L,bCaseInsensitive:z===null?!0:z}),1)})}),E("columns().search()","column().search()",function(y,_,L,z){return this.iterator("column",function(J,K){var ae=J.aoPreSearchCols;if(y===m)return ae[K].sSearch;J.oFeatures.bFilter&&(b.extend(ae[K],{sSearch:y+"",bRegex:_===null?!1:_,bSmart:L===null?!0:L,bCaseInsensitive:z===null?!0:z}),Ut(J,J.oPreviousSearch,1))})}),g("state()",function(){return this.context.length?this.context[0].oSavedState:null}),g("state.clear()",function(){return this.iterator("table",function(y){y.fnStateSaveCallback.call(y.oInstance,y,{})})}),g("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),g("state.save()",function(){return this.iterator("table",function(y){Vn(y)})}),t.versionCheck=t.fnVersionCheck=function(y){for(var _=t.version.split("."),L=y.split("."),z,J,K=0,ae=L.length;K<ae;K++)if(z=parseInt(_[K],10)||0,J=parseInt(L[K],10)||0,z!==J)return z>J;return!0},t.isDataTable=t.fnIsDataTable=function(y){var _=b(y).get(0),L=!1;return y instanceof t.Api?!0:(b.each(t.settings,function(z,J){var K=J.nScrollHead?b("table",J.nScrollHead)[0]:null,ae=J.nScrollFoot?b("table",J.nScrollFoot)[0]:null;(J.nTable===_||K===_||ae===_)&&(L=!0)}),L)},t.tables=t.fnTables=function(y){var _=!1;b.isPlainObject(y)&&(_=y.api,y=y.visible);var L=b.map(t.settings,function(z){if(!y||y&&b(z.nTable).is(":visible"))return z.nTable});return _?new w(L):L},t.camelToHungarian=Ce,g("$()",function(y,_){var L=this.rows(_).nodes(),z=b(L);return b([].concat(z.filter(y).toArray(),z.find(y).toArray()))}),b.each(["on","one","off"],function(y,_){g(_+"()",function(){var L=Array.prototype.slice.call(arguments);L[0]=b.map(L[0].split(/\s/),function(J){return J.match(/\.dt\b/)?J:J+".dt"}).join(" ");var z=b(this.tables().nodes());return z[_].apply(z,L),this})}),g("clear()",function(){return this.iterator("table",function(y){vt(y)})}),g("settings()",function(){return new w(this.context,this.context)}),g("init()",function(){var y=this.context;return y.length?y[0].oInit:null}),g("data()",function(){return this.iterator("table",function(y){return j(y.aoData,"_aData")}).flatten()}),g("destroy()",function(y){return y=y||!1,this.iterator("table",function(_){var L=_.nTableWrapper.parentNode,z=_.oClasses,J=_.nTable,K=_.nTBody,ae=_.nTHead,se=_.nTFoot,le=b(J),ve=b(K),be=b(_.nTableWrapper),Re=b.map(_.aoData,function(pt){return pt.nTr}),ke;_.bDestroying=!0,Qt(_,"aoDestroyCallback","destroy",[_]),y||new w(_).columns().visible(!0),be.off(".DT").find(":not(tbody *)").off(".DT"),b(P).off(".DT-"+_.sInstance),J!=ae.parentNode&&(le.children("thead").detach(),le.append(ae)),se&&J!=se.parentNode&&(le.children("tfoot").detach(),le.append(se)),_.aaSorting=[],_.aaSortingFixed=[],qn(_),b(Re).removeClass(_.asStripeClasses.join(" ")),b("th, td",ae).removeClass(z.sSortable+" "+z.sSortableAsc+" "+z.sSortableDesc+" "+z.sSortableNone),ve.children().detach(),ve.append(Re);var Be=y?"remove":"detach";le[Be](),be[Be](),!y&&L&&(L.insertBefore(J,_.nTableReinsertBefore),le.css("width",_.sDestroyWidth).removeClass(z.sTable),ke=_.asDestroyStripes.length,ke&&ve.children().each(function(pt){b(this).addClass(_.asDestroyStripes[pt%ke])}));var Qe=b.inArray(_,t.settings);Qe!==-1&&t.settings.splice(Qe,1)})}),b.each(["column","row","cell"],function(y,_){g(_+"s().every()",function(L){var z=this.selector.opts,J=this;return this.iterator(_,function(K,ae,se,le,ve){L.call(J[_](ae,_==="cell"?se:z,_==="cell"?z:m),ae,se,le,ve)})})}),g("i18n()",function(y,_,L){var z=this.context[0],J=_e(y)(z.oLanguage);return J===m&&(J=_),L!==m&&b.isPlainObject(J)&&(J=J[L]!==m?J[L]:J._),J.replace("%d",L)}),t.version="1.11.3",t.settings=[],t.models={},t.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0,return:!1},t.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},t.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},t.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(y){return y.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(y){try{return JSON.parse((y.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+y.sInstance+"_"+location.pathname))}catch{return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(y,_){try{(y.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+y.sInstance+"_"+location.pathname,JSON.stringify(_))}catch{}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:b.extend({},t.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},ge(t.defaults),t.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},ge(t.defaults.column),t.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json:m,oAjaxData:m,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return Ir(this)=="ssp"?this._iRecordsTotal*1:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return Ir(this)=="ssp"?this._iRecordsDisplay*1:this.aiDisplay.length},fnDisplayEnd:function(){var y=this._iDisplayLength,_=this._iDisplayStart,L=_+y,z=this.aiDisplay.length,J=this.oFeatures,K=J.bPaginate;return J.bServerSide?K===!1||y===-1?_+z:Math.min(_+y,this._iRecordsDisplay):!K||L>z||y===-1?z:L},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},t.ext=p={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:t.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:t.version},b.extend(p,{afnFiltering:p.search,aTypes:p.type.detect,ofnSearch:p.type.search,oSort:p.type.order,afnSortData:p.order,aoFeatures:p.feature,oApi:p.internal,oStdClasses:p.classes,oPagination:p.pager}),b.extend(t.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ii=t.ext.pager;function pi(y,_){var L=[],z=Ii.numbers_length,J=Math.floor(z/2);return _<=z?L=N(0,_):y<=J?(L=N(0,z-2),L.push("ellipsis"),L.push(_-1)):y>=_-1-J?(L=N(_-(z-2),_),L.splice(0,0,"ellipsis"),L.splice(0,0,0)):(L=N(y-J+2,y+J-1),L.push("ellipsis"),L.push(_-1),L.splice(0,0,"ellipsis"),L.splice(0,0,0)),L.DT_el="span",L}b.extend(Ii,{simple:function(y,_){return["previous","next"]},full:function(y,_){return["first","previous","next","last"]},numbers:function(y,_){return[pi(y,_)]},simple_numbers:function(y,_){return["previous",pi(y,_),"next"]},full_numbers:function(y,_){return["first","previous",pi(y,_),"next","last"]},first_last_numbers:function(y,_){return["first",pi(y,_),"last"]},_numbers:pi,numbers_length:7}),b.extend(!0,t.ext.renderer,{pageButton:{_:function(y,_,L,z,J,K){var ae=y.oClasses,se=y.oLanguage.oPaginate,le=y.oLanguage.oAria.paginate||{},ve,be,Re=0,ke=function(Qe,pt){var gt,xt,Ge,Xt,Nt,gr=ae.sPageButtonDisabled,Qr=function(on){Tt(y,on.data.action,!0)};for(gt=0,xt=pt.length;gt<xt;gt++)if(Xt=pt[gt],Array.isArray(Xt)){var an=b("<"+(Xt.DT_el||"div")+"/>").appendTo(Qe);ke(an,Xt)}else{switch(ve=null,be=Xt,Nt=y.iTabIndex,Xt){case"ellipsis":Qe.append('<span class="ellipsis">&#x2026;</span>');break;case"first":ve=se.sFirst,J===0&&(Nt=-1,be+=" "+gr);break;case"previous":ve=se.sPrevious,J===0&&(Nt=-1,be+=" "+gr);break;case"next":ve=se.sNext,(K===0||J===K-1)&&(Nt=-1,be+=" "+gr);break;case"last":ve=se.sLast,(K===0||J===K-1)&&(Nt=-1,be+=" "+gr);break;default:ve=y.fnFormatNumber(Xt+1),be=J===Xt?ae.sPageButtonActive:"";break}ve!==null&&(Ge=b("<a>",{class:ae.sPageButton+" "+be,"aria-controls":y.sTableId,"aria-label":le[Xt],"data-dt-idx":Re,tabindex:Nt,id:L===0&&typeof Xt=="string"?y.sTableId+"_"+Xt:null}).html(ve).appendTo(Qe),Xr(Ge,{action:Xt},Qr),Re++)}},Be;try{Be=b(_).find(B.activeElement).data("dt-idx")}catch{}ke(b(_).empty(),z),Be!==m&&b(_).find("[data-dt-idx="+Be+"]").trigger("focus")}}}),b.extend(t.ext.type.detect,[function(y,_){var L=_.oLanguage.sDecimal;return v(y,L)?"num"+L:null},function(y,_){if(y&&!(y instanceof Date)&&!o.test(y))return null;var L=Date.parse(y);return L!==null&&!isNaN(L)||a(y)?"date":null},function(y,_){var L=_.oLanguage.sDecimal;return v(y,L,!0)?"num-fmt"+L:null},function(y,_){var L=_.oLanguage.sDecimal;return k(y,L)?"html-num"+L:null},function(y,_){var L=_.oLanguage.sDecimal;return k(y,L,!0)?"html-num-fmt"+L:null},function(y,_){return a(y)||typeof y=="string"&&y.indexOf("<")!==-1?"html":null}]),b.extend(t.ext.type.search,{html:function(y){return a(y)?y:typeof y=="string"?y.replace(i," ").replace(u,""):""},string:function(y){return a(y)?y:typeof y=="string"?y.replace(i," "):y}});var Oi=function(y,_,L,z){return y!==0&&(!y||y==="-")?-1/0:(_&&(y=h(y,_)),y.replace&&(L&&(y=y.replace(L,"")),z&&(y=y.replace(z,""))),y*1)};function ai(y){b.each({num:function(_){return Oi(_,y)},"num-fmt":function(_){return Oi(_,y,l)},"html-num":function(_){return Oi(_,y,u)},"html-num-fmt":function(_){return Oi(_,y,u,l)}},function(_,L){p.type.order[_+y+"-pre"]=L,_.match(/^html\-/)&&(p.type.search[_+y]=p.type.search.html)})}b.extend(p.type.order,{"date-pre":function(y){var _=Date.parse(y);return isNaN(_)?-1/0:_},"html-pre":function(y){return a(y)?"":y.replace?y.replace(/<.*?>/g,"").toLowerCase():y+""},"string-pre":function(y){return a(y)?"":typeof y=="string"?y.toLowerCase():y.toString?y.toString():""},"string-asc":function(y,_){return y<_?-1:y>_?1:0},"string-desc":function(y,_){return y<_?1:y>_?-1:0}}),ai(""),b.extend(!0,t.ext.renderer,{header:{_:function(y,_,L,z){b(y.nTable).on("order.dt.DT",function(J,K,ae,se){if(y===K){var le=L.idx;_.removeClass(z.sSortAsc+" "+z.sSortDesc).addClass(se[le]=="asc"?z.sSortAsc:se[le]=="desc"?z.sSortDesc:L.sSortingClass)}})},jqueryui:function(y,_,L,z){b("<div/>").addClass(z.sSortJUIWrapper).append(_.contents()).append(b("<span/>").addClass(z.sSortIcon+" "+L.sSortingClassJUI)).appendTo(_),b(y.nTable).on("order.dt.DT",function(J,K,ae,se){if(y===K){var le=L.idx;_.removeClass(z.sSortAsc+" "+z.sSortDesc).addClass(se[le]=="asc"?z.sSortAsc:se[le]=="desc"?z.sSortDesc:L.sSortingClass),_.find("span."+z.sSortIcon).removeClass(z.sSortJUIAsc+" "+z.sSortJUIDesc+" "+z.sSortJUI+" "+z.sSortJUIAscAllowed+" "+z.sSortJUIDescAllowed).addClass(se[le]=="asc"?z.sSortJUIAsc:se[le]=="desc"?z.sSortJUIDesc:L.sSortingClassJUI)}})}}});var ki=function(y){return Array.isArray(y)&&(y=y.join(",")),typeof y=="string"?y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):y};t.render={number:function(y,_,L,z,J){return{display:function(K){if(typeof K!="number"&&typeof K!="string")return K;var ae=K<0?"-":"",se=parseFloat(K);if(isNaN(se))return ki(K);se=se.toFixed(L),K=Math.abs(se);var le=parseInt(K,10),ve=L?_+(K-le).toFixed(L).substring(2):"";return le===0&&parseFloat(ve)===0&&(ae=""),ae+(z||"")+le.toString().replace(/\B(?=(\d{3})+(?!\d))/g,y)+ve+(J||"")}}},text:function(){return{display:ki,filter:ki}}};function Kr(y){return function(){var _=[hn(this[t.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return t.ext.internal[y].apply(this,_)}}return b.extend(t.ext.internal,{_fnExternApiFunc:Kr,_fnBuildAjax:ce,_fnAjaxUpdate:we,_fnAjaxParameters:Me,_fnAjaxUpdateDraw:Ze,_fnAjaxDataSrc:ot,_fnAddColumn:ft,_fnColumnOptions:ze,_fnAdjustColumnSizing:bt,_fnVisibleToColumnIndex:St,_fnColumnIndexToVisible:Le,_fnVisbleColumns:Et,_fnGetColumns:Mt,_fnColumnTypes:at,_fnApplyColumnDefs:Ot,_fnHungarianMap:ge,_fnCamelToHungarian:Ce,_fnLanguageCompat:pe,_fnBrowserDetect:Fe,_fnAddData:Ne,_fnAddTr:ct,_fnNodeToDataIndex:mt,_fnNodeToColumnIndex:Ct,_fnGetCellData:Ue,_fnSetCellData:qe,_fnSplitObjNotation:ne,_fnGetObjectDataFn:_e,_fnSetObjectDataFn:tt,_fnGetDataMaster:Dt,_fnClearTable:vt,_fnDeleteIndex:Rt,_fnInvalidate:At,_fnGetRowElements:dt,_fnCreateTr:nt,_fnBuildHead:he,_fnDrawHead:xe,_fnDraw:He,_fnReDraw:Ae,_fnAddOptionsHtml:Ye,_fnDetectHeader:Xe,_fnGetUniqueThs:st,_fnFeatureHtmlFilter:_t,_fnFilterComplete:Ut,_fnFilterCustom:nr,_fnFilterColumn:pr,_fnFilter:lr,_fnFilterCreateSearch:Tr,_fnEscapeRegex:Sr,_fnFilterData:Rn,_fnFeatureHtmlInfo:Hn,_fnUpdateInfo:Wr,_fnInfoMacros:Ur,_fnInitialise:qt,_fnInitComplete:gn,_fnLengthChange:We,_fnFeatureHtmlLength:Ke,_fnFeatureHtmlPaginate:ht,_fnPageChange:Tt,_fnFeatureHtmlProcessing:kt,_fnProcessingDisplay:Ht,_fnFeatureHtmlTable:er,_fnScrollDraw:or,_fnApplyToChildren:Vt,_fnCalculateColumnWidths:Gt,_fnThrottle:Pt,_fnConvertToWidth:br,_fnGetWidestNode:Lr,_fnGetMaxLenString:rn,_fnStringToCss:sr,_fnSortFlatten:fn,_fnSort:na,_fnSortAria:ia,_fnSortListener:Bi,_fnSortAttachListener:Ci,_fnSortingClasses:qn,_fnSortData:ji,_fnSaveState:Vn,_fnLoadState:ei,_fnImplementState:mn,_fnSettingsFromNode:hn,_fnLog:_r,_fnMap:Mr,_fnBindAction:Xr,_fnCallbackReg:Er,_fnCallbackFire:Qt,_fnLengthOverflow:Gn,_fnRenderer:zn,_fnDataSource:Ir,_fnRowAttributes:te,_fnExtend:Di,_fnCalculateEnd:function(){}}),b.fn.dataTable=t,t.$=b,b.fn.dataTableSettings=t.settings,b.fn.dataTableExt=t.ext,b.fn.DataTable=function(y){return b(this).dataTable(y).api()},b.each(t,function(y,_){b.fn.DataTable[y]=_}),t})}(ds)),ds.exports}/*! DataTables Bootstrap 4 integration
 * ©2011-2017 SpryMedia Ltd - datatables.net/license
 */(function(H,M){(function(b){H.exports=function(P,B){return P||(P=window),(!B||!B.fn.dataTable)&&(B=ju()(P,B).$),b(B,P,P.document)}})(function(b,P,B,m){var t=b.fn.dataTable;return b.extend(!0,t.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),b.extend(t.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),t.ext.renderer.pageButton.bootstrap=function(p,w,g,E,n,i){var u=new t.Api(p),o=p.oClasses,c=p.oLanguage.oPaginate,l=p.oLanguage.oAria.paginate||{},a,d,h=0,v=function(k,j){var G,N,T,A,U=function(X){X.preventDefault(),!b(X.currentTarget).hasClass("disabled")&&u.page()!=X.data.action&&u.page(X.data.action).draw("page")};for(G=0,N=j.length;G<N;G++)if(A=j[G],Array.isArray(A))v(k,A);else{switch(a="",d="",A){case"ellipsis":a="&#x2026;",d="disabled";break;case"first":a=c.sFirst,d=A+(n>0?"":" disabled");break;case"previous":a=c.sPrevious,d=A+(n>0?"":" disabled");break;case"next":a=c.sNext,d=A+(n<i-1?"":" disabled");break;case"last":a=c.sLast,d=A+(n<i-1?"":" disabled");break;default:a=A+1,d=n===A?"active":"";break}a&&(T=b("<li>",{class:o.sPageButton+" "+d,id:g===0&&typeof A=="string"?p.sTableId+"_"+A:null}).append(b("<a>",{href:"#","aria-controls":p.sTableId,"aria-label":l[A],"data-dt-idx":h,tabindex:p.iTabIndex,class:"page-link"}).html(a)).appendTo(k),p.oApi._fnBindAction(T,{action:A},U),h++)}},C;try{C=b(w).find(B.activeElement).data("dt-idx")}catch{}v(b(w).empty().html('<ul class="pagination"/>').children("ul"),E),C!==m&&b(w).find("[data-dt-idx="+C+"]").trigger("focus")},t})})(cl);var Wu=cl.exports;const Uu=ba(Wu);/*! 
* amazon-quicksight-embedding-sdk v2.4.0
* git@github.com:awslabs/amazon-quicksight-embedding-sdk.git
* https://github.com/awslabs/amazon-quicksight-embedding-sdk
* 
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/function Ns(H,M){var b=Object.keys(H);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(H);M&&(P=P.filter(function(B){return Object.getOwnPropertyDescriptor(H,B).enumerable})),b.push.apply(b,P)}return b}function ar(H){for(var M=1;M<arguments.length;M++){var b=arguments[M]!=null?arguments[M]:{};M%2?Ns(Object(b),!0).forEach(function(P){it(H,P,b[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(b)):Ns(Object(b)).forEach(function(P){Object.defineProperty(H,P,Object.getOwnPropertyDescriptor(b,P))})}return H}function Lt(){Lt=function(){return H};var H={},M=Object.prototype,b=M.hasOwnProperty,P=Object.defineProperty||function(A,U,X){A[U]=X.value},B=typeof Symbol=="function"?Symbol:{},m=B.iterator||"@@iterator",t=B.asyncIterator||"@@asyncIterator",p=B.toStringTag||"@@toStringTag";function w(A,U,X){return Object.defineProperty(A,U,{value:X,enumerable:!0,configurable:!0,writable:!0}),A[U]}try{w({},"")}catch{w=function(U,X,Q){return U[X]=Q}}function g(A,U,X,Q){var re=U&&U.prototype instanceof i?U:i,ge=Object.create(re.prototype),Ce=new N(Q||[]);return P(ge,"_invoke",{value:C(A,X,Ce)}),ge}function E(A,U,X){try{return{type:"normal",arg:A.call(U,X)}}catch(Q){return{type:"throw",arg:Q}}}H.wrap=g;var n={};function i(){}function u(){}function o(){}var c={};w(c,m,function(){return this});var l=Object.getPrototypeOf,a=l&&l(l(T([])));a&&a!==M&&b.call(a,m)&&(c=a);var d=o.prototype=i.prototype=Object.create(c);function h(A){["next","throw","return"].forEach(function(U){w(A,U,function(X){return this._invoke(U,X)})})}function v(A,U){function X(re,ge,Ce,pe){var ie=E(A[re],A,ge);if(ie.type!=="throw"){var oe=ie.arg,me=oe.value;return me&&typeof me=="object"&&b.call(me,"__await")?U.resolve(me.__await).then(function(Fe){X("next",Fe,Ce,pe)},function(Fe){X("throw",Fe,Ce,pe)}):U.resolve(me).then(function(Fe){oe.value=Fe,Ce(oe)},function(Fe){return X("throw",Fe,Ce,pe)})}pe(ie.arg)}var Q;P(this,"_invoke",{value:function(re,ge){function Ce(){return new U(function(pe,ie){X(re,ge,pe,ie)})}return Q=Q?Q.then(Ce,Ce):Ce()}})}function C(A,U,X){var Q="suspendedStart";return function(re,ge){if(Q==="executing")throw new Error("Generator is already running");if(Q==="completed"){if(re==="throw")throw ge;return{value:void 0,done:!0}}for(X.method=re,X.arg=ge;;){var Ce=X.delegate;if(Ce){var pe=k(Ce,X);if(pe){if(pe===n)continue;return pe}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(Q==="suspendedStart")throw Q="completed",X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);Q="executing";var ie=E(A,U,X);if(ie.type==="normal"){if(Q=X.done?"completed":"suspendedYield",ie.arg===n)continue;return{value:ie.arg,done:X.done}}ie.type==="throw"&&(Q="completed",X.method="throw",X.arg=ie.arg)}}}function k(A,U){var X=U.method,Q=A.iterator[X];if(Q===void 0)return U.delegate=null,X==="throw"&&A.iterator.return&&(U.method="return",U.arg=void 0,k(A,U),U.method==="throw")||X!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+X+"' method")),n;var re=E(Q,A.iterator,U.arg);if(re.type==="throw")return U.method="throw",U.arg=re.arg,U.delegate=null,n;var ge=re.arg;return ge?ge.done?(U[A.resultName]=ge.value,U.next=A.nextLoc,U.method!=="return"&&(U.method="next",U.arg=void 0),U.delegate=null,n):ge:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,n)}function j(A){var U={tryLoc:A[0]};1 in A&&(U.catchLoc=A[1]),2 in A&&(U.finallyLoc=A[2],U.afterLoc=A[3]),this.tryEntries.push(U)}function G(A){var U=A.completion||{};U.type="normal",delete U.arg,A.completion=U}function N(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(j,this),this.reset(!0)}function T(A){if(A||A===""){var U=A[m];if(U)return U.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var X=-1,Q=function re(){for(;++X<A.length;)if(b.call(A,X))return re.value=A[X],re.done=!1,re;return re.value=void 0,re.done=!0,re};return Q.next=Q}}throw new TypeError(typeof A+" is not iterable")}return u.prototype=o,P(d,"constructor",{value:o,configurable:!0}),P(o,"constructor",{value:u,configurable:!0}),u.displayName=w(o,p,"GeneratorFunction"),H.isGeneratorFunction=function(A){var U=typeof A=="function"&&A.constructor;return!!U&&(U===u||(U.displayName||U.name)==="GeneratorFunction")},H.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,o):(A.__proto__=o,w(A,p,"GeneratorFunction")),A.prototype=Object.create(d),A},H.awrap=function(A){return{__await:A}},h(v.prototype),w(v.prototype,t,function(){return this}),H.AsyncIterator=v,H.async=function(A,U,X,Q,re){re===void 0&&(re=Promise);var ge=new v(g(A,U,X,Q),re);return H.isGeneratorFunction(U)?ge:ge.next().then(function(Ce){return Ce.done?Ce.value:ge.next()})},h(d),w(d,p,"Generator"),w(d,m,function(){return this}),w(d,"toString",function(){return"[object Generator]"}),H.keys=function(A){var U=Object(A),X=[];for(var Q in U)X.push(Q);return X.reverse(),function re(){for(;X.length;){var ge=X.pop();if(ge in U)return re.value=ge,re.done=!1,re}return re.done=!0,re}},H.values=T,N.prototype={constructor:N,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(G),!A)for(var U in this)U.charAt(0)==="t"&&b.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=void 0)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var U=this;function X(ie,oe){return ge.type="throw",ge.arg=A,U.next=ie,oe&&(U.method="next",U.arg=void 0),!!oe}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var re=this.tryEntries[Q],ge=re.completion;if(re.tryLoc==="root")return X("end");if(re.tryLoc<=this.prev){var Ce=b.call(re,"catchLoc"),pe=b.call(re,"finallyLoc");if(Ce&&pe){if(this.prev<re.catchLoc)return X(re.catchLoc,!0);if(this.prev<re.finallyLoc)return X(re.finallyLoc)}else if(Ce){if(this.prev<re.catchLoc)return X(re.catchLoc,!0)}else{if(!pe)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return X(re.finallyLoc)}}}},abrupt:function(A,U){for(var X=this.tryEntries.length-1;X>=0;--X){var Q=this.tryEntries[X];if(Q.tryLoc<=this.prev&&b.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var re=Q;break}}re&&(A==="break"||A==="continue")&&re.tryLoc<=U&&U<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=A,ge.arg=U,re?(this.method="next",this.next=re.finallyLoc,n):this.complete(ge)},complete:function(A,U){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&U&&(this.next=U),n},finish:function(A){for(var U=this.tryEntries.length-1;U>=0;--U){var X=this.tryEntries[U];if(X.finallyLoc===A)return this.complete(X.completion,X.afterLoc),G(X),n}},catch:function(A){for(var U=this.tryEntries.length-1;U>=0;--U){var X=this.tryEntries[U];if(X.tryLoc===A){var Q=X.completion;if(Q.type==="throw"){var re=Q.arg;G(X)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(A,U,X){return this.delegate={iterator:T(A),resultName:U,nextLoc:X},this.method==="next"&&(this.arg=void 0),n}},H}function Ha(H){return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Ha(H)}function Fs(H,M,b,P,B,m,t){try{var p=H[m](t),w=p.value}catch(g){return void b(g)}p.done?M(w):Promise.resolve(w).then(P,B)}function yr(H){return function(){var M=this,b=arguments;return new Promise(function(P,B){var m=H.apply(M,b);function t(w){Fs(m,P,B,t,p,"next",w)}function p(w){Fs(m,P,B,t,p,"throw",w)}t(void 0)})}}function Br(H,M){if(!(H instanceof M))throw new TypeError("Cannot call a class as a function")}function jr(H,M,b){return Object.defineProperty(H,"prototype",{writable:!1}),H}function it(H,M,b){return(M=Vu(M))in H?Object.defineProperty(H,M,{value:b,enumerable:!0,configurable:!0,writable:!0}):H[M]=b,H}function Zn(H,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(M&&M.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),M&&bs(H,M)}function $o(H){return $o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},$o(H)}function bs(H,M){return bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,P){return b.__proto__=P,b},bs(H,M)}function go(H,M){if(H==null)return{};var b,P,B=function(t,p){if(t==null)return{};var w,g,E={},n=Object.keys(t);for(g=0;g<n.length;g++)w=n[g],p.indexOf(w)>=0||(E[w]=t[w]);return E}(H,M);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(H);for(P=0;P<m.length;P++)b=m[P],M.indexOf(b)>=0||Object.prototype.propertyIsEnumerable.call(H,b)&&(B[b]=H[b])}return B}function rr(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function Jn(H){var M=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,P=$o(H);if(M){var B=$o(this).constructor;b=Reflect.construct(P,arguments,B)}else b=P.apply(this,arguments);return function(m,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rr(m)}(this,b)}}function qo(H,M){return function(b){if(Array.isArray(b))return b}(H)||function(b,P){var B=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(B!=null){var m,t,p,w,g=[],E=!0,n=!1;try{if(p=(B=B.call(b)).next,P!==0)for(;!(E=(m=p.call(B)).done)&&(g.push(m.value),g.length!==P);E=!0);}catch(i){n=!0,t=i}finally{try{if(!E&&B.return!=null&&(w=B.return(),Object(w)!==w))return}finally{if(n)throw t}}return g}}(H,M)||function(b,P){if(b){if(typeof b=="string")return Hs(b,P);var B=Object.prototype.toString.call(b).slice(8,-1);if(B==="Object"&&b.constructor&&(B=b.constructor.name),B==="Map"||B==="Set")return Array.from(b);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return Hs(b,P)}}(H,M)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Hs(H,M){(M==null||M>H.length)&&(M=H.length);for(var b=0,P=new Array(M);b<M;b++)P[b]=H[b];return P}function Vu(H){var M=function(b,P){if(typeof b!="object"||b===null)return b;var B=b[Symbol.toPrimitive];if(B!==void 0){var m=B.call(b,P||"default");if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(b)}(H,"string");return typeof M=="symbol"?M:String(M)}let Qo;const Gu=new Uint8Array(16);function Yu(){if(!Qo&&(Qo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qo(Gu)}const wn=[];for(let H=0;H<256;++H)wn.push((H+256).toString(16).slice(1));var zs={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function fl(H,M,b){if(zs.randomUUID&&!M&&!H)return zs.randomUUID();const P=(H=H||{}).random||(H.rng||Yu)();return P[6]=15&P[6]|64,P[8]=63&P[8]|128,function(B,m=0){return(wn[B[m+0]]+wn[B[m+1]]+wn[B[m+2]]+wn[B[m+3]]+"-"+wn[B[m+4]]+wn[B[m+5]]+"-"+wn[B[m+6]]+wn[B[m+7]]+"-"+wn[B[m+8]]+wn[B[m+9]]+"-"+wn[B[m+10]]+wn[B[m+11]]+wn[B[m+12]]+wn[B[m+13]]+wn[B[m+14]]+wn[B[m+15]]).toLowerCase()}(P)}var ci={CONSOLE:"CONSOLE",CONTEXT:"CONTEXT",CONTROL:"CONTROL",VISUAL:"VISUAL",DASHBOARD:"DASHBOARD",QSEARCH:"QSEARCH"},Xu=Object.freeze({__proto__:null,ExperienceType:ci});const cs=2147483647,Ku={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},co=Math.floor,fs=String.fromCharCode;function Bs(H){throw new RangeError(Ku[H])}const js=function(H,M){return H+22+75*(H<26)-((M!=0)<<5)},Qu=function(H,M,b){let P=0;for(H=b?co(H/700):H>>1,H+=co(H/M);H>455;P+=36)H=co(H/35);return co(P+36*H/(H+38))},Zu=function(H){const M=[];H=function(w){const g=[];let E=0;const n=w.length;for(;E<n;){const i=w.charCodeAt(E++);if(i>=55296&&i<=56319&&E<n){const u=w.charCodeAt(E++);(64512&u)==56320?g.push(((1023&i)<<10)+(1023&u)+65536):(g.push(i),E--)}else g.push(i)}return g}(H);const b=H.length;let P=128,B=0,m=72;for(const w of H)w<128&&M.push(fs(w));const t=M.length;let p=t;for(t&&M.push("-");p<b;){let w=cs;for(const E of H)E>=P&&E<w&&(w=E);const g=p+1;w-P>co((cs-B)/g)&&Bs("overflow"),B+=(w-P)*g,P=w;for(const E of H)if(E<P&&++B>cs&&Bs("overflow"),E===P){let n=B;for(let i=36;;i+=36){const u=i<=m?1:i>=m+26?26:i-m;if(n<u)break;const o=n-u,c=36-u;M.push(fs(js(u+o%c,0))),n=co(o/c)}M.push(fs(js(n,0))),m=Qu(B,g,p===t),B=0,++p}++B,++P}return M.join("")};var hl={CALLBACK_OPERATION_INVOKED:"CALLBACK_OPERATION_INVOKED",CONTENT_LOADED:"CONTENT_LOADED",EXPERIENCE_INITIALIZED:"EXPERIENCE_INITIALIZED",ERROR_OCCURRED:"ERROR_OCCURRED",SIZE_CHANGED:"SIZE_CHANGED",PARAMETERS_CHANGED:"PARAMETERS_CHANGED",SELECTED_SHEET_CHANGED:"SELECTED_SHEET_CHANGED",MODAL_OPENED:"MODAL_OPENED",Q_SEARCH_CLOSED:"Q_SEARCH_CLOSED",Q_SEARCH_OPENED:"Q_SEARCH_OPENED",Q_SEARCH_SIZE_CHANGED:"Q_SEARCH_SIZE_CHANGED",Q_SEARCH_ENTERED_FULLSCREEN:"Q_SEARCH_ENTERED_FULLSCREEN",Q_SEARCH_EXITED_FULLSCREEN:"Q_SEARCH_EXITED_FULLSCREEN"},pl={FRAME_STARTED:"FRAME_STARTED",FRAME_MOUNTED:"FRAME_MOUNTED",FRAME_LOADED:"FRAME_LOADED",FRAME_REMOVED:"FRAME_REMOVED"},vl={FRAME_NOT_CREATED:"FRAME_NOT_CREATED",NO_BODY:"NO_BODY",NO_CONTAINER:"NO_CONTAINER",INVALID_CONTAINER:"INVALID_CONTAINER",NO_URL:"NO_URL",INVALID_URL:"INVALID_URL",NO_FRAME_OPTIONS:"NO_FRAME_OPTIONS",INVALID_FRAME_OPTIONS:"INVALID_FRAME_OPTIONS"},gl={UNRECOGNIZED_CONTENT_OPTIONS:"UNRECOGNIZED_CONTENT_OPTIONS",UNRECOGNIZED_FRAME_OPTIONS:"UNRECOGNIZED_FRAME_OPTIONS",UNRECOGNIZED_EVENT_TARGET:"UNRECOGNIZED_EVENT_TARGET"},ml={SET_PARAMETERS:"SET_PARAMETERS",SET_SELECTED_SHEET_ID:"SET_SELECTED_SHEET_ID",SET_Q_SEARCH_QUESTION:"SET_Q_SEARCH_QUESTION",SET_VISUAL_ACTIONS:"SET_VISUAL_ACTIONS",ADD_VISUAL_ACTIONS:"ADD_VISUAL_ACTIONS",REMOVE_VISUAL_ACTIONS:"REMOVE_VISUAL_ACTIONS"},yl={GET_PARAMETERS:"GET_PARAMETERS",GET_SHEETS:"GET_SHEETS",GET_SHEET_VISUALS:"GET_SHEET_VISUALS",GET_VISUAL_ACTIONS:"GET_VISUAL_ACTIONS",GET_SELECTED_SHEET_ID:"GET_SELECTED_SHEET_ID"},bl={ACKNOWLEDGE:"ACKNOWLEDGE",INITIATE_PRINT:"INITIATE_PRINT",NAVIGATE_TO_DASHBOARD:"NAVIGATE_TO_DASHBOARD",CLOSE_Q_SEARCH:"CLOSE_Q_SEARCH",UNDO:"UNDO",REDO:"REDO",RESET:"RESET",TOGGLE_BOOKMARKS_PANE:"TOGGLE_BOOKMARKS_PANE"},Ju=Object.freeze({__proto__:null,ErrorChangeEventName:vl,GetterMessageEventName:yl,InfoChangeEventName:pl,InfoMessageEventName:hl,InvokerMessageEventName:bl,SetterMessageEventName:ml,WarnChangeEventName:gl}),Gr=ar(ar(ar({},pl),vl),gl),mr=ar(ar(ar(ar({},hl),ml),yl),bl),Yr={ERROR:"ERROR",INFO:"INFO",WARN:"WARN"},$u=Object.freeze({__proto__:null,ChangeEventLevel:Yr,ChangeEventName:Gr,MessageEventName:mr}),wl=jr(function H(M,b,P){Br(this,H),this.eventName=M,this.message=b,this.data=P}),$r=function(H){Zn(b,wl);var M=Jn(b);function b(P,B,m,t){var p;return Br(this,b),(p=M.call(this,P,m,t)).eventLevel=B,p}return jr(b)}(),Pr=function(H){Zn(b,wl);var M=Jn(b);function b(P,B,m){var t;return Br(this,b),(t=M.call(this,P,B,m)).eventName=P,t}return jr(b)}(),Ms=function(H){Zn(b,Pr);var M=Jn(b);function b(P,B,m,t){var p;return Br(this,b),(p=M.call(this,P,m,t)).eventTarget=B,p}return jr(b)}(),qu=function(H){Zn(b,Ms);var M=Jn(b);function b(P,B,m,t,p,w,g){var E;return Br(this,b),(E=M.call(this,P,B,w,g)).timestamp=t,E.version=p,E.eventId=m,E}return jr(b)}(),Ws=jr(function H(){Br(this,H),it(this,"success",!0)}),ed=jr(function H(M){Br(this,H),it(this,"success",!1),this.errorCode=M.errorCode,this.error=M==null?void 0:M.error}),td=jr(function H(M){Br(this,H),it(this,"success",!0),this.message=M}),El=jr(function H(M){var b=this;Br(this,H),it(this,"classNames",[H.IFRAME_CLASS_NAME]),it(this,"getIframe",function(){return b.iframe}),it(this,"createIframePlaceholder",function(c){if(b.iframePlaceholder=document.createElement("div"),b.iframePlaceholder.id="".concat(b.iframeName,"-placeholder"),b.iframePlaceholder.style.width=b.width,b.iframePlaceholder.style.backgroundColor="rgba(0,0,0,.01)",b.iframePlaceholder.style.display="flex",b.iframePlaceholder.style.justifyContent="center",b.iframePlaceholder.style.alignItems="center",b.iframePlaceholder.className="".concat(H.IFRAME_CLASS_NAME,"-placeholder"),b.height.endsWith("px")&&(b.iframePlaceholder.style.height=b.height),c&&typeof c!="boolean")b.iframePlaceholder.appendChild(c);else{var l=b.createLoaderSVG();b.iframePlaceholder.appendChild(l)}b.container.appendChild(b.iframePlaceholder)}),it(this,"createIframe",function(){var c=document.createElement("iframe");return c.className=b.classNames.join(" ").trim(),c.id=b.iframeName,c.name=b.iframeName,c.width=b.width,c.height=b.height,b.loading&&(c.loading=b.loading),c.style.border="0px",c.style.padding="0px",b.iframePlaceholder&&(c.style.opacity="0",c.style.position="absolute"),b.width==="0px"&&b.height==="0px"&&(c.style.position="absolute"),b.container.appendChild(c),b.payload?b.postRequest=b.createPostRequest({src:b.src,target:c.name,container:b.container,payload:b.payload}):c.src=b.src,c}),it(this,"onLoadLocal",function(c){var l,a;b.iframePlaceholder&&(b.iframePlaceholder.remove(),b.iframe.style.position="",b.iframe.style.opacity="1",b.iframe.style.transition="opacity .5s ease-in-out"),(l=b.onLoad)===null||l===void 0||l.call(b,c),(a=b.postRequest)===null||a===void 0||a.remove()}),it(this,"createPostRequest",function(c){var l=c.src,a=c.container,d=c.target,h=c.payload;if(!l)throw new Error("No source has been provided.");var v=document.createElement("form");return v.style.visibility="hidden",v.method="POST",v.action=l,v.target=d,v.name="".concat(d,"-form"),Object.keys(h).forEach(function(C){var k=document.createElement("input");k.type="hidden",k.name=C,k.value=h[C],v.appendChild(k)}),a.appendChild(v),v==null||v.submit(),{remove:function(){v.remove()}}}),it(this,"createSvgElement",function(c,l){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],h=document.createElementNS("http://www.w3.org/2000/svg",c);return Object.entries(l).forEach(function(v){var C=qo(v,2),k=C[0],j=C[1];return h.setAttribute(k,j)}),Object.entries(a).forEach(function(v){var C=qo(v,2),k=C[0],j=C[1];return h.style.setProperty(k,j)}),d.forEach(function(v){return h.appendChild(v)}),h}),it(this,"createLoaderSVG",function(){var c=[1,2,3].map(function(l){var a=b.createSvgElement("animate",{attributeName:"opacity",dur:"1s",values:"0;1;0",repeatCount:"indefinite",begin:"".concat(l/10)});return b.createSvgElement("circle",{fill:"#ccc",stroke:"none",cx:"".concat(20*l-14),cy:"50",r:"6"},void 0,[a])});return b.createSvgElement("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0"},{width:"100px",height:"100px"},c)});var P=M.id,B=M.src,m=M.width,t=m===void 0?"0px":m,p=M.height,w=p===void 0?"0px":p,g=M.container,E=M.onLoad,n=M.loading,i=M.withIframePlaceholder,u=M.payload,o=M.className;this.width=t,this.height=w,this.onLoad=E,this.iframeName=P,this.loading=n,o&&this.classNames.push(o),this.container=g,this.payload=u,this.src=B,i&&this.createIframePlaceholder(i),this.iframe=this.createIframe(),this.iframe.addEventListener("load",this.onLoadLocal)});it(El,"IFRAME_CLASS_NAME","quicksight-embedding-iframe");var rd="2.4.0",Yo=jr(function H(M,b,P,B,m,t,p){var w=this;Br(this,H),it(this,"MESSAGE_RESPONSE_TIMEOUT",5e3),it(this,"iframe",null),it(this,"send",function(){var g=yr(Lt().mark(function E(n){var i,u,o;return Lt().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(w.iframe){c.next=2;break}throw new Error("Cannot send ".concat(n.eventName,": No experience frame found"));case 2:if(u=fl(),o=new qu(n.eventName,n.eventTarget,u,Date.now(),rd,n.message,n.data),(i=w.iframe)===null||i===void 0||(i=i.contentWindow)===null||i===void 0||i.postMessage(o,w.url),n.eventName!==mr.ACKNOWLEDGE){c.next=7;break}return c.abrupt("return",Promise.resolve(new Ws));case 7:return c.abrupt("return",new Promise(function(l,a){var d=function h(v){var C,k,j=v.data;(j==null?void 0:j.eventId)===u&&(window.removeEventListener("message",h),((C=j.message)===null||C===void 0?void 0:C.success)===!0?l(new Ws):((k=j.message)===null||k===void 0?void 0:k.success)===!1?l(new ed(j.message)):l(new td(j.message)))};window.addEventListener("message",d),setTimeout(function(){window.removeEventListener("message",d),a("".concat(n.eventName," timed out"))},w.MESSAGE_RESPONSE_TIMEOUT)}));case 8:case"end":return c.stop()}},E)}));return function(E){return g.apply(this,arguments)}}()),it(this,"buildParameterString",function(g){return g&&Ha(g)==="object"?Object.entries(g).map(function(E){var n=qo(E,2),i=n[0],u=n[1],o=Array.isArray(u)?u:[u],c=encodeURIComponent(i);return o.map(encodeURIComponent).map(function(l){return"p.".concat(c,"=").concat(l)}).join("&")}).join("&"):""}),it(this,"buildQueryString",function(g){var E=Object.entries(g).reduce(function(n,i){var u=qo(i,2),o=u[0],c=u[1];return c!=null?ar(ar({},n),{},it({},o,"".concat(c))):n},{punyCodeEmbedOrigin:Zu("".concat(window.location.origin,"/"))});return new URLSearchParams(E).toString()}),it(this,"createExperienceIframe",function(){w.onChange(new $r(Gr.FRAME_STARTED,Yr.INFO,"Creating the frame",{experience:w.internalExperience}));try{w.setTimeoutInstance(),w.iframe=new El({id:w.experienceId,src:w.url,width:w.frameOptions.width,height:w.frameOptions.height,container:w.container,onLoad:w.onLoadHandler,withIframePlaceholder:w.frameOptions.withIframePlaceholder,className:w.frameOptions.className}).getIframe()}catch(g){throw w.onChange(new $r(Gr.FRAME_NOT_CREATED,Yr.ERROR,"Failed to create the frame",{experience:w.internalExperience})),g}w.onChange(new $r(Gr.FRAME_MOUNTED,Yr.INFO,"The frame mounted",{experience:w.internalExperience,frame:w.iframe}))}),it(this,"addInternalEventListener",function(g,E){var n=function(i,u){i.eventName===g&&E(i,u)};return w.controlOptions.eventManager.addEventListener(w.experienceId,n,!0),{remove:function(){return w.controlOptions.eventManager.removeEventListener(w.experienceId,n)}}}),it(this,"validateBaseUrl",function(g){if(!g)throw w.onChange(new $r(Gr.NO_URL,Yr.ERROR,"Url is required for the experience",{experience:w.internalExperience})),new Error("Url is required for the experience");return g}),it(this,"setTimeoutInstance",function(){w.timeoutInstance=setTimeout(function(){throw w.onChange(new $r(Gr.FRAME_NOT_CREATED,Yr.ERROR,"Creating the frame timed out",{experience:w.internalExperience})),new Error("Creating the frame timed out")},w.controlOptions.timeout)}),it(this,"onLoadHandler",yr(Lt().mark(function g(){return Lt().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:w.timeoutInstance&&clearTimeout(w.timeoutInstance),w.onChange(new $r(Gr.FRAME_LOADED,Yr.INFO,"The experience iframe loaded",{experience:w.internalExperience}));case 2:case"end":return E.stop()}},g)}))),it(this,"getContainer",function(g){if(!g){var E="Container is required for the experience";throw w.onChange(new $r(Gr.NO_CONTAINER,Yr.ERROR,E,{experience:w.internalExperience})),new Error(E)}var n=null;if(typeof g=="string")try{n=document.querySelector(g)}catch(u){throw u instanceof Error&&w.onChange(new $r(Gr.INVALID_CONTAINER,Yr.ERROR,u.message,{experience:w.internalExperience})),u}else Ha(g)==="object"&&g.nodeName&&(n=g);if(!n){var i="Invalid container '".concat(g,"' for the experience");throw w.onChange(new $r(Gr.INVALID_CONTAINER,Yr.ERROR,i,{experience:w.internalExperience})),new Error(i)}return n}),it(this,"decorateOnChange",function(g){return function(E){if(g){var n={frame:w.iframe};g(E,n)}}}),it(this,"decorateOnMessage",function(g,E){return function(n){E&&w.iframe&&E(n,{frame:w.iframe}),g&&g(n,{frame:w.iframe})}}),it(this,"initializeMutationObserver",function(){var g=new MutationObserver(function(E){E.some(function(n){return Array.from(n.removedNodes).some(function(i){return i===w.iframe||i===w.container})})&&(w.controlOptions.eventManager.cleanUpCallbacksForExperience(w.experienceId),g.disconnect(),w.iframe=null,w.onChange(new $r(Gr.FRAME_REMOVED,Yr.INFO,"Frame removed from the DOM",{experience:w.internalExperience})))});g.observe(document.body,{childList:!0,subtree:!0})}),this.frameOptions=M,this.contentOptions=P,this.onChange=this.decorateOnChange(M.onChange),this.onMessage=this.decorateOnMessage(P.onMessage,p),this.container=this.getContainer(M.container),this.internalExperience=m,this.controlOptions=b,this.transformedContentOptions=B,this.experienceId=t,this.url=this.validateBaseUrl(M.url),this.controlOptions.eventManager.addEventListener(this.experienceId,this.onMessage,!0),this.initializeMutationObserver()}),nd=["parameters"],id=function(H){Zn(b,Yo);var M=Jn(b);function b(P,B,m,t,p,w,g){var E;return Br(this,b),it(rr(E=M.call(this,P,B,m,t,p,w,g)),"buildExperienceUrl",function(n){var i=E.transformedContentOptions,u=i.parameters,o=go(i,nd),c=E.internalExperience,l=c.contextId,a=c.discriminator;return[n,[E.buildQueryString(ar(ar({},o),{},{contextId:l,discriminator:a})),E.buildParameterString(u)].join("#")].join(n.includes("?")?"&":"?")}),E.url=E.buildExperienceUrl(P.url),E.createExperienceIframe(),E}return jr(b)}(),mo=jr(function H(M,b,P,B){var m=this;Br(this,H),it(this,"send",function(){var t=yr(Lt().mark(function p(w){var g;return Lt().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(m.experienceFrame&&m.internalExperience){E.next=2;break}throw new Error("Experience has not been initialized");case 2:return g=new Ms(w.eventName,m.internalExperience,w.message,w.data),E.abrupt("return",m.experienceFrame.send(g));case 4:case"end":return E.stop()}},p)}));return function(p){return t.apply(this,arguments)}}()),it(this,"addEventListener",function(t,p){return m.experienceFrame.addInternalEventListener(t,p)}),it(this,"setLogProvider",function(t){return m.logger=t,m}),it(this,"getInternalExperienceInfo",function(t){var p,w,g=-1;do g++,p=ar(ar({},t),{},{contextId:m.controlOptions.contextId,discriminator:g}),w=H.getExperienceIdentifier(p);while(m.experienceIdentifiers.has(w));return m.experienceIdentifiers.add(w),{experienceIdentifier:w,internalExperience:p}}),it(this,"transformContentOptions",function(t,p){var w,g,E,n=Object.keys(p);return Object.keys(p).length>0&&((w=(g=m.frameOptions).onChange)===null||w===void 0||w.call(g,new $r(Gr.UNRECOGNIZED_CONTENT_OPTIONS,Yr.WARN,"Experience content options contain unrecognized properties",{unrecognizedContentOptions:n}),{frame:null}),(E=m.logger)===null||E===void 0||E.warn("Experience content options contain unrecognized properties")),t}),it(this,"validateFrameOptions",function(){if(!m.frameOptions.url){var t,p,w="Url is required for the experience";throw(t=(p=m.frameOptions).onChange)===null||t===void 0||t.call(p,new $r(Gr.NO_URL,Yr.ERROR,w),{frame:null}),new Error(w)}}),this.frameOptions=M,this.contentOptions=b,this.controlOptions=P,this.experienceIdentifiers=B,this.validateFrameOptions()});it(mo,"getExperienceIdentifier",function(H){if(H.experienceType===ci.DASHBOARD)return[H.contextId,H.experienceType,H.dashboardId,H.discriminator].filter(Boolean).join("-");if(H.experienceType===ci.VISUAL)return[H.contextId,H.experienceType,H.dashboardId,H.sheetId,H.visualId,H.discriminator].filter(Boolean).join("-");if([ci.CONSOLE,ci.CONTROL,ci.CONTEXT,ci.QSEARCH].includes(H.experienceType))return[H.contextId,H.experienceType,H.discriminator].filter(Boolean).join("-");throw new Error("Invalid experience unable to build experience identifier")});var ad=["fitToIframeWidth","locale","parameters","onMessage"],od=function(H){Zn(b,mo);var M=Jn(b);function b(P,B,m,t){var p;Br(this,b),it(rr(p=M.call(this,P,B,m,t)),"setParameters",function(){var n=yr(Lt().mark(function i(u){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",p.send(new Pr(mr.SET_PARAMETERS,u)));case 1:case"end":return o.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"reset",yr(Lt().mark(function n(){return Lt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",p.send(new Pr(mr.RESET)));case 1:case"end":return i.stop()}},n)}))),it(rr(p),"getActions",yr(Lt().mark(function n(){var i,u;return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,p.send(new Pr(mr.GET_VISUAL_ACTIONS));case 2:return u=o.sent,o.abrupt("return",(i=u==null?void 0:u.message)!==null&&i!==void 0?i:[]);case 4:case"end":return o.stop()}},n)}))),it(rr(p),"addActions",function(){var n=yr(Lt().mark(function i(u){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",p.send(new Pr(mr.ADD_VISUAL_ACTIONS,{Actions:u})));case 1:case"end":return o.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"setActions",function(){var n=yr(Lt().mark(function i(u){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",p.send(new Pr(mr.SET_VISUAL_ACTIONS,{Actions:u})));case 1:case"end":return o.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"removeActions",function(){var n=yr(Lt().mark(function i(u){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",p.send(new Pr(mr.REMOVE_VISUAL_ACTIONS,{Actions:u})));case 1:case"end":return o.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"extractExperienceFromUrl",function(n){var i,u,o=/^https:\/\/[^/]+\/embed\/[^/]+\/dashboards\/([\w-]+)\/sheets\/([\w-]+)\/visuals\/([\w-]+)(\?|$)/i.exec(n)||[];if(o.length<5)throw(i=(u=p.frameOptions).onChange)===null||i===void 0||i.call(u,new $r(Gr.INVALID_URL,Yr.ERROR,"Invalid visual experience url",{url:n}),{frame:p.experienceFrame.iframe}),new Error("Invalid visual experience URL");return{experienceType:ci.VISUAL,dashboardId:o[1],sheetId:o[2],visualId:o[3]}}),it(rr(p),"interceptMessage",function(n,i){var u,o,c;n.eventName==="SIZE_CHANGED"&&p.frameOptions.resizeHeightOnSizeChangedEvent&&(i==null||(u=i.frame)===null||u===void 0||(o=u.setAttribute)===null||o===void 0||o.call(u,"height","".concat((c=n.message)===null||c===void 0?void 0:c.height,"px")))}),it(rr(p),"transformVisualContentOptions",function(n){var i=n.fitToIframeWidth,u=n.locale,o=n.parameters;n.onMessage;var c=go(n,ad),l=p.transformContentOptions({fitToIframeWidth:i==null||i,locale:u},c);return Array.isArray(o)&&(l.parameters=o.reduce(function(a,d){return ar(ar({},a),{},it({},d.Name,d.Values))},{})),l}),p.experience=p.extractExperienceFromUrl(P.url);var w=p.getInternalExperienceInfo(p.experience),g=w.experienceIdentifier,E=w.internalExperience;return p.internalExperience=E,p.experienceId=g,p.experienceFrame=new id(P,m,B,p.transformVisualContentOptions(B),E,g,p.interceptMessage),p}return jr(b)}(),sd=function(H){Zn(b,Yo);var M=Jn(b);function b(P,B,m,t,p,w,g){var E;return Br(this,b),it(rr(E=M.call(this,P,B,m,t,p,w,g)),"buildExperienceUrl",function(n){var i=E.internalExperience,u=i.contextId,o=i.discriminator;return[n,E.buildQueryString(ar(ar({},E.transformedContentOptions),{},{contextId:u,discriminator:o}))].join(n.includes("?")?"&":"?")}),E.url=E.buildExperienceUrl(P.url),E.createExperienceIframe(),E}return jr(b)}(),ld=["locale","onMessage"],ud=function(H){Zn(b,mo);var M=Jn(b);function b(P,B,m,t){var p;Br(this,b),it(rr(p=M.call(this,P,B,m,t)),"extractExperienceFromUrl",function(o){var c,l;if((/^https:\/\/[^/]+\/embedding\/[^/]+\/(start(\/(favorites|dashboards|analyses))?|dashboards\/[\w-]+|analyses\/[\w-]+)(\?|$)/i.exec(o)||[]).length<5)throw(c=(l=p.frameOptions).onChange)===null||c===void 0||c.call(l,new $r(Gr.INVALID_URL,Yr.ERROR,"Invalid console experience url",{url:o}),{frame:p.experienceFrame.iframe}),new Error("Invalid console experience URL");return{experienceType:ci.CONSOLE}}),p.experience=p.extractExperienceFromUrl(P.url);var w=p.getInternalExperienceInfo(p.experience),g=w.experienceIdentifier,E=w.internalExperience;p.internalExperience=E,p.experienceId=g;var n=B.locale;B.onMessage;var i=go(B,ld),u=p.transformContentOptions({locale:n},i);return p.experienceFrame=new sd(P,m,B,u,E,g),p}return jr(b)}(),dd=["parameters"],cd=function(H){Zn(b,Yo);var M=Jn(b);function b(P,B,m,t,p,w,g){var E;return Br(this,b),it(rr(E=M.call(this,P,B,m,t,p,w,g)),"buildExperienceUrl",function(n){var i=E.transformedContentOptions,u=i.parameters,o=go(i,dd),c=E.internalExperience,l=c.contextId,a=c.discriminator;return[n,[E.buildQueryString(ar(ar({},o),{},{contextId:l,discriminator:a})),E.buildParameterString(u)].join("#")].join(n.includes("?")?"&":"?")}),E.url=E.buildExperienceUrl(P.url),E.createExperienceIframe(),E}return jr(b)}(),fd=["parameters","locale","attributionOptions","sheetOptions","toolbarOptions","onMessage"],hd=function(H){Zn(b,mo);var M=Jn(b);function b(P,B,m,t){var p;Br(this,b),it(rr(p=M.call(this,P,B,m,t)),"initiatePrint",yr(Lt().mark(function n(){return Lt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",p.send(new Pr(mr.INITIATE_PRINT)));case 1:case"end":return i.stop()}},n)}))),it(rr(p),"undo",yr(Lt().mark(function n(){return Lt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",p.send(new Pr(mr.UNDO)));case 1:case"end":return i.stop()}},n)}))),it(rr(p),"redo",yr(Lt().mark(function n(){return Lt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",p.send(new Pr(mr.REDO)));case 1:case"end":return i.stop()}},n)}))),it(rr(p),"toggleBookmarksPane",yr(Lt().mark(function n(){return Lt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",p.send(new Pr(mr.TOGGLE_BOOKMARKS_PANE)));case 1:case"end":return i.stop()}},n)}))),it(rr(p),"getParameters",yr(Lt().mark(function n(){var i,u;return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,p.send(new Pr(mr.GET_PARAMETERS));case 2:return u=o.sent,o.abrupt("return",(i=u==null?void 0:u.message)!==null&&i!==void 0?i:[]);case 4:case"end":return o.stop()}},n)}))),it(rr(p),"getSheets",yr(Lt().mark(function n(){var i,u;return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,p.send(new Pr(mr.GET_SHEETS));case 2:return u=o.sent,o.abrupt("return",(i=u==null?void 0:u.message)!==null&&i!==void 0?i:[]);case 4:case"end":return o.stop()}},n)}))),it(rr(p),"getVisualActions",function(){var n=yr(Lt().mark(function i(u,o){var c,l;return Lt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,p.send(new Pr(mr.GET_VISUAL_ACTIONS,{SheetId:u,VisualId:o}));case 2:return l=a.sent,a.abrupt("return",(c=l==null?void 0:l.message)!==null&&c!==void 0?c:[]);case 4:case"end":return a.stop()}},i)}));return function(i,u){return n.apply(this,arguments)}}()),it(rr(p),"addVisualActions",function(){var n=yr(Lt().mark(function i(u,o,c){return Lt().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",p.send(new Pr(mr.ADD_VISUAL_ACTIONS,{SheetId:u,VisualId:o,Actions:c})));case 1:case"end":return l.stop()}},i)}));return function(i,u,o){return n.apply(this,arguments)}}()),it(rr(p),"setVisualActions",function(){var n=yr(Lt().mark(function i(u,o,c){return Lt().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",p.send(new Pr(mr.SET_VISUAL_ACTIONS,{SheetId:u,VisualId:o,Actions:c})));case 1:case"end":return l.stop()}},i)}));return function(i,u,o){return n.apply(this,arguments)}}()),it(rr(p),"getSelectedSheetId",yr(Lt().mark(function n(){var i,u;return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,p.send(new Pr(mr.GET_SELECTED_SHEET_ID));case 2:return u=o.sent,o.abrupt("return",(i=u==null?void 0:u.message)!==null&&i!==void 0?i:"");case 4:case"end":return o.stop()}},n)}))),it(rr(p),"setSelectedSheetId",function(){var n=yr(Lt().mark(function i(u){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",p.send(new Pr(mr.SET_SELECTED_SHEET_ID,{SheetId:u})));case 1:case"end":return o.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"navigateToDashboard",function(){var n=yr(Lt().mark(function i(u,o){return Lt().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",p.send(new Pr(mr.NAVIGATE_TO_DASHBOARD,{DashboardId:u,Parameters:o==null?void 0:o.parameters})));case 1:case"end":return c.stop()}},i)}));return function(i,u){return n.apply(this,arguments)}}()),it(rr(p),"removeVisualActions",function(){var n=yr(Lt().mark(function i(u,o,c){return Lt().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",p.send(new Pr(mr.REMOVE_VISUAL_ACTIONS,{SheetId:u,VisualId:o,Actions:c})));case 1:case"end":return l.stop()}},i)}));return function(i,u,o){return n.apply(this,arguments)}}()),it(rr(p),"getSheetVisuals",function(){var n=yr(Lt().mark(function i(u){var o,c;return Lt().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,p.send(new Pr(mr.GET_SHEET_VISUALS,{SheetId:u}));case 2:return c=l.sent,l.abrupt("return",(o=c==null?void 0:c.message)!==null&&o!==void 0?o:[]);case 4:case"end":return l.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"setParameters",function(){var n=yr(Lt().mark(function i(u){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",p.send(new Pr(mr.SET_PARAMETERS,u)));case 1:case"end":return o.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"reset",yr(Lt().mark(function n(){return Lt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",p.send(new Pr(mr.RESET)));case 1:case"end":return i.stop()}},n)}))),it(rr(p),"extractExperienceFromUrl",function(n){var i,u,o=/^https:\/\/[^/]+\/embed\/[^/]+\/dashboards\/([\w-]+)(\?|$)/i.exec(n)||[];if(o.length<3)throw(i=(u=p.frameOptions).onChange)===null||i===void 0||i.call(u,new $r(Gr.INVALID_URL,Yr.ERROR,"Invalid dashboard experience url",{url:n}),{frame:null}),new Error("Invalid dashboard experience URL");return{experienceType:ci.DASHBOARD,dashboardId:o[1]}}),it(rr(p),"interceptMessage",function(n,i){var u,o,c;n.eventName==="SIZE_CHANGED"&&p.frameOptions.resizeHeightOnSizeChangedEvent&&(i==null||(u=i.frame)===null||u===void 0||(o=u.setAttribute)===null||o===void 0||o.call(u,"height","".concat(n==null||(c=n.message)===null||c===void 0?void 0:c.height,"px")))}),it(rr(p),"transformDashboardContentOptions",function(n){var i,u=n.parameters,o=n.locale,c=n.attributionOptions,l=n.sheetOptions,a=n.toolbarOptions;n.onMessage;var d=go(n,fd),h=p.transformContentOptions({locale:o},d);return Array.isArray(u)&&(h.parameters=u.reduce(function(v,C){return ar(ar({},v),{},it({},C.Name,C.Values))},{})),(c==null?void 0:c.overlayContent)!==!0&&(h.footerPaddingEnabled=!0),(a!=null&&a.export||a!=null&&(i=a.export)!==null&&i!==void 0&&i.print)&&(h.printEnabled=!0),(a==null?void 0:a.undoRedo)!==!0&&(h.undoRedoDisabled=!0),(a==null?void 0:a.reset)!==!0&&(h.resetDisabled=!0),(a==null?void 0:a.bookmarks)===!0&&(h.showBookmarksIcon=!0),l!=null&&l.initialSheetId&&(h.sheetId=l.initialSheetId),typeof(l==null?void 0:l.singleSheet)=="boolean"&&(h.sheetTabsDisabled=l.singleSheet),l!=null&&l.emitSizeChangedEventOnSheetChange&&(h.resizeOnSheetChange=!0),h}),p.experience=p.extractExperienceFromUrl(P.url);var w=p.getInternalExperienceInfo(p.experience),g=w.experienceIdentifier,E=w.internalExperience;return p.internalExperience=E,p.experienceId=g,p.experienceFrame=new cd(P,m,B,p.transformDashboardContentOptions(B),E,g,p.interceptMessage),p}return jr(b)}(),pd=function(H){Zn(b,Yo);var M=Jn(b);function b(P,B,m,t,p,w,g){var E;return Br(this,b),it(rr(E=M.call(this,P,B,m,t,p,w,g)),"buildExperienceUrl",function(n){var i=E.internalExperience,u=i.contextId,o=i.discriminator;return[n,E.buildQueryString(ar(ar({},E.transformedContentOptions),{},{contextId:u,discriminator:o}))].join(n.includes("?")?"&":"?")}),E.url=E.buildExperienceUrl(P.url),E.createExperienceIframe(),E}return jr(b)}(),vd=["hideIcon","hideTopicName","theme","allowTopicSelection","onMessage"],Sl=function(H){Zn(b,mo);var M=Jn(b);function b(P,B,m,t){var p;Br(this,b),it(rr(p=M.call(this,P,B,m,t)),"close",function(){return p.send(new Pr(mr.CLOSE_Q_SEARCH))}),it(rr(p),"setQuestion",function(){var n=yr(Lt().mark(function i(u){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",p.send(new Pr(mr.SET_Q_SEARCH_QUESTION,{question:u})));case 1:case"end":return o.stop()}},i)}));return function(i){return n.apply(this,arguments)}}()),it(rr(p),"extractExperienceFromUrl",function(n){var i,u;if((/^https:\/\/[^/]+\/embedding\/[^/]+\/q\/search(\/|\?|$)/i.exec(n)||[]).length<2)throw(i=(u=p.frameOptions).onChange)===null||i===void 0||i.call(u,new $r(Gr.INVALID_URL,Yr.ERROR,"Invalid q-search experience URL",{url:n}),{frame:p.experienceFrame.iframe}),new Error("Invalid q-search experience URL");return{experienceType:ci.QSEARCH}}),it(rr(p),"interceptMessage",function(n,i){switch(n.eventName){case mr.Q_SEARCH_OPENED:case mr.Q_SEARCH_CLOSED:var u,o;Ha(n.message)==="object"&&(i==null||(u=i.frame)===null||u===void 0||u.style.setProperty("height","".concat(n==null||(o=n.message)===null||o===void 0?void 0:o.height,"px")));break;case mr.CONTENT_LOADED:var c=function(d){var h;((h=p.experienceFrame.iframe)===null||h===void 0||!h.contains(d.target))&&p.close()};window.addEventListener("click",c),p.controlOptions.eventManager.addEventListenerForCleanup(p.experienceId,function(){return window.removeEventListener("click",c)});break;case mr.Q_SEARCH_ENTERED_FULLSCREEN:var l,a;!p.frameStyles&&i!=null&&i.frame&&(p.frameStyles={position:(l=i.frame)===null||l===void 0?void 0:l.style.position,top:(a=i.frame)===null||a===void 0?void 0:a.style.top,left:i.frame.style.left,zIndex:i.frame.style.zIndex,width:i.frame.style.width,height:i.frame.style.height},i.frame.style.position="fixed",i.frame.style.top="0px",i.frame.style.left="0px",i.frame.style.zIndex=b.MAX_Z_INDEX,i.frame.style.width="100vw",i.frame.style.height="100vh");break;case mr.Q_SEARCH_EXITED_FULLSCREEN:p.frameStyles&&i!=null&&i.frame&&(i.frame.style.position=p.frameStyles.position,i.frame.style.top=p.frameStyles.top,i.frame.style.left=p.frameStyles.left,i.frame.style.zIndex=p.frameStyles.zIndex,i.frame.style.width=p.frameStyles.width,i.frame.style.height=p.frameStyles.height)}}),it(rr(p),"transformQSearchContentOptions",function(n){var i=n.hideIcon,u=n.hideTopicName,o=n.theme,c=n.allowTopicSelection;n.onMessage;var l=go(n,vd),a=p.transformContentOptions({allowTopicSelection:c},l);return i!==void 0&&(a.qBarIconDisabled=i),u!==void 0&&(a.qBarTopicNameDisabled=u),o!==void 0&&(a.themeId=o),a}),p.experience=p.extractExperienceFromUrl(P.url);var w=p.getInternalExperienceInfo(p.experience),g=w.experienceIdentifier,E=w.internalExperience;return p.internalExperience=E,p.experienceId=g,p.experienceFrame=new pd(P,m,B,p.transformQSearchContentOptions(B),E,g,p.interceptMessage),p}return jr(b)}();it(Sl,"MAX_Z_INDEX","2147483647");var gd=function(H){Zn(b,Yo);var M=Jn(b);function b(P,B,m,t,p,w,g){var E;return Br(this,b),it(rr(E=M.call(this,P,B,m,t,p,w,g)),"buildExperienceUrl",function(n){var i=E.internalExperience,u=i.contextId,o=i.discriminator;return[n,E.buildQueryString(ar(ar({},E.transformedContentOptions),{},{contextId:u,discriminator:o}))].join("?")}),E.url=E.buildExperienceUrl(P.url),E.createExperienceIframe(),E}return jr(b)}(),ws=jr(function H(M,b,P,B){var m=this;Br(this,H),it(this,"experience",{experienceType:ci.CONTROL}),it(this,"iframe",null),it(this,"send",function(t){var p;return(p=m.internalSend)===null||p===void 0?void 0:p.call(m,t)}),it(this,"controlFrameMessageListener",function(t){if(m.isMessageEvent(t.data)){var p=t.data;try{if(p.eventTarget){var w=mo.getExperienceIdentifier(p.eventTarget);m.eventManager.invokeEventListener(w,p)}m.sendAcknowledgment(p)}catch{var g,E;(g=m.onChange)===null||g===void 0||g.call(m,new $r(Gr.UNRECOGNIZED_EVENT_TARGET,Yr.WARN,"Message with unrecognized event target received",{eventTarget:p.eventTarget}),{frame:m.iframe}),(E=m.logger)===null||E===void 0||E.warn("Message with unrecognized event target received")}}}),it(this,"setLogger",function(t){return m.logger=t,m}),it(this,"initializeFrame",function(){var t=m.getControlExperienceBaseUrl(),p=m.getControlExperienceId();m.onMessage&&m.eventManager.addEventListener(p,m.onMessage,!0);var w=new gd({url:t,container:m.container,width:"0px",height:"0px",onChange:m.onChange},{eventManager:m.eventManager,contextId:m.internalExperience.contextId,timeout:H.FRAME_TIMEOUT,urlInfo:m.urlInfo},{onMessage:m.onMessage},{},m.internalExperience,p);m.internalSend=w.send,m.iframe=w.iframe,window.addEventListener("message",m.controlFrameMessageListener),m.eventManager.addEventListenerForCleanup(p,function(){return window.removeEventListener("message",m.controlFrameMessageListener)})}),it(this,"sendAcknowledgment",function(t){var p,w,g=new Ms(mr.ACKNOWLEDGE,m.internalExperience,{eventName:t.eventName,eventTarget:t.eventTarget});!((p=(w=window).requestIdleCallback)===null||p===void 0)&&p.call(w,function(){return m.send(g)})||m.send(g)}),it(this,"getControlExperienceId",function(){return[m.internalExperience.contextId,m.internalExperience.experienceType,m.internalExperience.discriminator].filter(Boolean).join("-")}),it(this,"getControlExperienceBaseUrl",function(){var t=m.urlInfo,p=t.host,w=t.sessionId,g="".concat(p,"/embed/").concat(w,"/embedControl");return new URL(g).href}),it(this,"isMessageEvent",function(t){return!!t&&!!t.eventTarget&&!!t.eventName}),this.container=M,this.eventManager=b.eventManager,this.urlInfo=b.urlInfo,this.internalExperience=ar(ar({},this.experience),{},{contextId:b.contextId,discriminator:0}),this.onMessage=B,this.onChange=P,this.initializeFrame()});it(ws,"FRAME_TIMEOUT",6e4);var md=jr(function H(){var M=this;Br(this,H),it(this,"addEventListener",function(b,P,B){if(!b)throw new Error("Experience identifier is required when calling addEventListener");if(typeof P!="function")throw new Error("Invalid type provided for event listener");var m=M.eventListeners.get(b);return B&&M.addEventListenerForCleanup(b,function(){return M.removeEventListener(b,P)}),m?(m.push(P),M):(M.eventListeners.set(b,[P]),M)}),it(this,"invokeEventListener",function(b,P){var B=M.eventListeners.get(b);if(!B)throw new Error("Unable to find experience specific event listeners: ".concat(b));return B.forEach(function(m){m(P)}),M}),it(this,"removeEventListener",function(b,P){var B=M.eventListeners.get(b);if(!B)throw new Error("Unable to find experience specific event listeners: ".concat(b));var m=B.filter(function(t){return t!==P});return M.eventListeners.set(b,m),M}),it(this,"addEventListenerForCleanup",function(b,P){var B,m=(B=M.cleanUpCallbacks.get(b))!==null&&B!==void 0?B:[];m.push(P),M.cleanUpCallbacks.set(b,m)}),it(this,"cleanUpCallbacksForExperience",function(b){var P=M.cleanUpCallbacks.get(b);P&&(P.forEach(function(B){return B()}),M.cleanUpCallbacks.delete(b),M.eventListeners.set(b,[]))}),this.eventListeners=new Map,this.cleanUpCallbacks=new Map}),yd=jr(function H(){Br(this,H),it(this,"log",console.log),it(this,"warn",console.warn),it(this,"error",console.error),it(this,"debug",console.debug),it(this,"info",console.info)}),bd=jr(function H(M){var b=this;Br(this,H),it(this,"embedVisual",function(){var P=yr(Lt().mark(function B(m){var t,p,w=arguments;return Lt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return t=w.length>1&&w[1]!==void 0?w[1]:{},b.validateFrameOptions(m,"embedVisual"),p=b.buildControlOptions(m),g.abrupt("return",new od(m,t,p,b.experienceIdentifiers).setLogProvider(b.logger));case 4:case"end":return g.stop()}},B)}));return function(B){return P.apply(this,arguments)}}()),it(this,"embedDashboard",function(){var P=yr(Lt().mark(function B(m){var t,p,w=arguments;return Lt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return t=w.length>1&&w[1]!==void 0?w[1]:{},b.validateFrameOptions(m,"embedDashboard"),p=b.buildControlOptions(m),g.abrupt("return",new hd(m,t,p,b.experienceIdentifiers).setLogProvider(b.logger));case 4:case"end":return g.stop()}},B)}));return function(B){return P.apply(this,arguments)}}()),it(this,"embedConsole",function(){var P=yr(Lt().mark(function B(m){var t,p,w=arguments;return Lt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return t=w.length>1&&w[1]!==void 0?w[1]:{},b.validateFrameOptions(m,"embedConsole"),p=b.buildControlOptions(m),g.abrupt("return",new ud(m,t,p,b.experienceIdentifiers).setLogProvider(b.logger));case 4:case"end":return g.stop()}},B)}));return function(B){return P.apply(this,arguments)}}()),it(this,"embedQSearchBar",function(){var P=yr(Lt().mark(function B(m){var t,p,w=arguments;return Lt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return t=w.length>1&&w[1]!==void 0?w[1]:{},b.validateFrameOptions(m,"embedQSearchBar"),p=b.buildControlOptions(m),g.abrupt("return",new Sl(m,t,p,b.experienceIdentifiers).setLogProvider(b.logger));case 4:case"end":return g.stop()}},B)}));return function(B){return P.apply(this,arguments)}}()),it(this,"validateFrameOptions",function(P,B){if(!P){var m="".concat(B," is called without frameOptions");throw b.onChange(new $r(Gr.NO_FRAME_OPTIONS,Yr.ERROR,"".concat(B," is called without frameOptions"),{methodName:B}),{frame:null}),new Error(m)}if(Ha(P)!=="object"||Array.isArray(P)){var t="".concat(B," is called with non-object frameOptions");throw b.onChange(new $r(Gr.INVALID_FRAME_OPTIONS,Yr.ERROR,t,{methodName:B,frameOptionsType:Array.isArray(P)?"array":Ha(P)}),{frame:null}),new Error(t)}var p=["url","container","width","height","resizeHeightOnSizeChangedEvent","withIframePlaceholder","onChange","className"],w=Object.keys(P).filter(function(i){return!p.includes(i)});if(w.length>0){var g,E,n="".concat(B," is called with unrecognized properties");(g=P.onChange)===null||g===void 0||g.call(P,new $r(Gr.UNRECOGNIZED_FRAME_OPTIONS,Yr.WARN,n,{unrecognizedFrameOptions:w}),{frame:null}),(E=b.logger)===null||E===void 0||E.warn(n)}}),it(this,"buildControlOptions",function(P){if(!b.controlOptions){if(!P.url)throw new Error("URL is missing in frame options, but is a required field");var B=b.getControlUrlInfo(P.url),m=new ws(b.getBodyElement(),{eventManager:b.eventManager,urlInfo:B,contextId:b.contextId},b.onChange).setLogger(b.logger);b.controlOptions={eventManager:b.eventManager,sendToControlFrame:m.send,contextId:b.contextId,timeout:ws.FRAME_TIMEOUT,urlInfo:B}}return b.controlOptions}),it(this,"onChange",function(P,B){b.contextOnChange&&b.contextOnChange(P,B)}),it(this,"getControlUrlInfo",function(P){var B=/^(https:\/\/[^/]+)\/(embedding|embed)\/([^/]+)\/[^?]+\?(.*)/i.exec(P)||[];if((B==null?void 0:B.length)<4)throw new Error('Invalid embedding url: "'.concat(P,'"'));return{sessionId:B[3],host:B[1],urlSearchParams:new URLSearchParams(B[4])}}),it(this,"getBodyElement",function(){var P,B=(P=document.getElementsByTagName("body"))===null||P===void 0?void 0:P[0];if(!B){var m="could not locate <body> element in the page";throw b.onChange(new $r(Gr.NO_BODY,Yr.ERROR,m),{frame:null}),new Error(m)}return B}),this.contextId=fl(),this.experienceIdentifiers=new Set,this.eventManager=new md,this.contextOnChange=M.onChange,this.logger=new yd}),wd=function(){var H=yr(Lt().mark(function M(){var b,P=arguments;return Lt().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return b=P.length>0&&P[0]!==void 0?P[0]:{},B.abrupt("return",new bd(b));case 2:case"end":return B.stop()}},M)}));return function(){return H.apply(this,arguments)}}(),Ed=Object.freeze({__proto__:null}),Sd=Object.freeze({__proto__:null}),xd=Object.freeze({__proto__:null}),Cd=Object.freeze({__proto__:null}),Dd=Object.freeze({__proto__:null}),Td=Object.freeze({__proto__:null,CALCULATED_METRIC_COLUMN_TYPE:{INTEGER:null,STRING:null,DECIMAL:null,DATETIME:null},SPECIAL_DATAPOINT_VALUE_TYPES:{NULL:null,OTHER_BUCKET:null}}),Md=Object.freeze({__proto__:null}),Rd=Object.freeze({__proto__:null}),_d=Object.freeze({__proto__:null});ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar({},Cd),Ju),$u),Ed),Sd),xd),Xu),Dd),Td),Rd),Md),_d);var Id=Ba();const Od=ba(Id);var kd={exports:{}};/*!
 * Bootstrap Colorpicker v2.5.2
 * https://itsjavi.com/bootstrap-colorpicker/
 *
 * Originally written by (c) 2012 Stefan Petre
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 */(function(H,M){(function(b,P){H.exports=P(xi)})(zi,function(b){var P=function(t,p,w,g,E){this.fallbackValue=w?typeof w=="string"?this.parse(w):w:null,this.fallbackFormat=g||"rgba",this.hexNumberSignPrefix=E===!0,this.value=this.fallbackValue,this.origFormat=null,this.predefinedColors=p||{},this.colors=b.extend({},P.webColors,this.predefinedColors),t&&(typeof t.h<"u"?this.value=t:this.setColor(String(t))),this.value||(this.value={h:0,s:0,b:0,a:1})};P.webColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32",transparent:"transparent"},P.prototype={constructor:P,colors:{},predefinedColors:{},getValue:function(){return this.value},setValue:function(t){this.value=t},_sanitizeNumber:function(t){return typeof t=="number"?t:isNaN(t)||t===null||t===""||t===void 0?1:t===""?0:typeof t.toLowerCase<"u"?(t.match(/^\./)&&(t="0"+t),Math.ceil(parseFloat(t)*100)/100):1},isTransparent:function(t){return!t||!(typeof t=="string"||t instanceof String)?!1:(t=t.toLowerCase().trim(),t==="transparent"||t.match(/#?00000000/)||t.match(/(rgba|hsla)\(0,0,0,0?\.?0\)/))},rgbaIsTransparent:function(t){return t.r===0&&t.g===0&&t.b===0&&t.a===0},setColor:function(t){if(t=t.toLowerCase().trim(),t){if(this.isTransparent(t))return this.value={h:0,s:0,b:0,a:0},!0;var p=this.parse(t);p?(this.value=this.value={h:p.h,s:p.s,b:p.b,a:p.a},this.origFormat||(this.origFormat=p.format)):this.fallbackValue&&(this.value=this.fallbackValue)}return!1},setHue:function(t){this.value.h=1-t},setSaturation:function(t){this.value.s=t},setBrightness:function(t){this.value.b=1-t},setAlpha:function(t){this.value.a=Math.round(parseInt((1-t)*100,10)/100*100)/100},toRGB:function(t,p,w,g){arguments.length===0&&(t=this.value.h,p=this.value.s,w=this.value.b,g=this.value.a),t*=360;var E,n,i,u,o;return t=t%360/60,o=w*p,u=o*(1-Math.abs(t%2-1)),E=n=i=w-o,t=~~t,E+=[o,u,0,0,u,o][t],n+=[u,o,o,u,0,0][t],i+=[0,0,u,o,o,u][t],{r:Math.round(E*255),g:Math.round(n*255),b:Math.round(i*255),a:g}},toHex:function(t,p,w,g,E){arguments.length<=1&&(p=this.value.h,w=this.value.s,g=this.value.b,E=this.value.a);var n="#",i=this.toRGB(p,w,g,E);if(this.rgbaIsTransparent(i))return"transparent";t||(n=this.hexNumberSignPrefix?"#":"");var u=n+((1<<24)+(parseInt(i.r)<<16)+(parseInt(i.g)<<8)+parseInt(i.b)).toString(16).slice(1);return u},toHSL:function(t,p,w,g){arguments.length===0&&(t=this.value.h,p=this.value.s,w=this.value.b,g=this.value.a);var E=t,n=(2-p)*w,i=p*w;return n>0&&n<=1?i/=n:i/=2-n,n/=2,i>1&&(i=1),{h:isNaN(E)?0:E,s:isNaN(i)?0:i,l:isNaN(n)?0:n,a:isNaN(g)?0:g}},toAlias:function(t,p,w,g){var E,n=arguments.length===0?this.toHex(!0):this.toHex(!0,t,p,w,g),i=this.origFormat==="alias"?n:this.toString(!1,this.origFormat);for(var u in this.colors)if(E=this.colors[u].toLowerCase().trim(),E===n||E===i)return u;return!1},RGBtoHSB:function(t,p,w,g){t/=255,p/=255,w/=255;var E,n,i,u;return i=Math.max(t,p,w),u=i-Math.min(t,p,w),E=u===0?null:i===t?(p-w)/u:i===p?(w-t)/u+2:(t-p)/u+4,E=(E+360)%6*60/360,n=u===0?0:u/i,{h:this._sanitizeNumber(E),s:n,b:i,a:this._sanitizeNumber(g)}},HueToRGB:function(t,p,w){return w<0?w+=1:w>1&&(w-=1),w*6<1?t+(p-t)*w*6:w*2<1?p:w*3<2?t+(p-t)*(2/3-w)*6:t},HSLtoRGB:function(t,p,w,g){p<0&&(p=0);var E;w<=.5?E=w*(1+p):E=w+p-w*p;var n=2*w-E,i=t+1/3,u=t,o=t-1/3,c=Math.round(this.HueToRGB(n,E,i)*255),l=Math.round(this.HueToRGB(n,E,u)*255),a=Math.round(this.HueToRGB(n,E,o)*255);return[c,l,a,this._sanitizeNumber(g)]},parse:function(t){if(typeof t!="string")return this.fallbackValue;if(arguments.length===0)return!1;var p=this,w=!1,g=typeof this.colors[t]<"u",E,n;return g&&(t=this.colors[t].toLowerCase().trim()),b.each(this.stringParsers,function(i,u){var o=u.re.exec(t);return E=o&&u.parse.apply(p,[o]),E?(w={},n=g?"alias":u.format?u.format:p.getValidFallbackFormat(),n.match(/hsla?/)?w=p.RGBtoHSB.apply(p,p.HSLtoRGB.apply(p,E)):w=p.RGBtoHSB.apply(p,E),w instanceof Object&&(w.format=n),!1):!0}),w},getValidFallbackFormat:function(){var t=["rgba","rgb","hex","hsla","hsl"];return this.origFormat&&t.indexOf(this.origFormat)!==-1?this.origFormat:this.fallbackFormat&&t.indexOf(this.fallbackFormat)!==-1?this.fallbackFormat:"rgba"},toString:function(t,p,w){p=p||this.origFormat||this.fallbackFormat,w=w||!1;var g=!1;switch(p){case"rgb":return g=this.toRGB(),this.rgbaIsTransparent(g)?"transparent":"rgb("+g.r+","+g.g+","+g.b+")";case"rgba":return g=this.toRGB(),"rgba("+g.r+","+g.g+","+g.b+","+g.a+")";case"hsl":return g=this.toHSL(),"hsl("+Math.round(g.h*360)+","+Math.round(g.s*100)+"%,"+Math.round(g.l*100)+"%)";case"hsla":return g=this.toHSL(),"hsla("+Math.round(g.h*360)+","+Math.round(g.s*100)+"%,"+Math.round(g.l*100)+"%,"+g.a+")";case"hex":return this.toHex(t);case"alias":return g=this.toAlias(),g===!1?this.toString(t,this.getValidFallbackFormat()):w&&!(g in P.webColors)&&g in this.predefinedColors?this.predefinedColors[g]:g;default:return g}},stringParsers:[{re:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*?\)/,format:"rgb",parse:function(t){return[t[1],t[2],t[3],1]}},{re:/rgb\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"rgb",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],1]}},{re:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/hsl\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"hsl",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/hsla\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"hsla",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,format:"hex",parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1]}},{re:/#?([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,format:"hex",parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1]}}],colorNameToHex:function(t){return typeof this.colors[t.toLowerCase()]<"u"?this.colors[t.toLowerCase()]:!1}};var B={horizontal:!1,inline:!1,color:!1,format:!1,input:"input",container:!1,component:".add-on, .input-group-addon",fallbackColor:!1,fallbackFormat:"hex",hexNumberSignPrefix:!0,sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHue"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlpha"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:100,maxTop:0,callLeft:"setHue",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlpha",callTop:!1}},template:'<div class="colorpicker dropdown-menu"><div class="colorpicker-saturation"><i><b></b></i></div><div class="colorpicker-hue"><i></i></div><div class="colorpicker-alpha"><i></i></div><div class="colorpicker-color"><div /></div><div class="colorpicker-selectors"></div></div>',align:"right",customClass:null,colorSelectors:null},m=function(t,p){this.element=b(t).addClass("colorpicker-element"),this.options=b.extend(!0,{},B,this.element.data(),p),this.component=this.options.component,this.component=this.component!==!1?this.element.find(this.component):!1,this.component&&this.component.length===0&&(this.component=!1),this.container=this.options.container===!0?this.element:this.options.container,this.container=this.container!==!1?b(this.container):!1,this.input=this.element.is("input")?this.element:this.options.input?this.element.find(this.options.input):!1,this.input&&this.input.length===0&&(this.input=!1),this.color=this.createColor(this.options.color!==!1?this.options.color:this.getValue()),this.format=this.options.format!==!1?this.options.format:this.color.origFormat,this.options.color!==!1&&(this.updateInput(this.color),this.updateData(this.color)),this.disabled=!1;var w=this.picker=b(this.options.template);if(this.options.customClass&&w.addClass(this.options.customClass),this.options.inline?w.addClass("colorpicker-inline colorpicker-visible"):w.addClass("colorpicker-hidden"),this.options.horizontal&&w.addClass("colorpicker-horizontal"),(["rgba","hsla","alias"].indexOf(this.format)!==-1||this.options.format===!1||this.getValue()==="transparent")&&w.addClass("colorpicker-with-alpha"),this.options.align==="right"&&w.addClass("colorpicker-right"),this.options.inline===!0&&w.addClass("colorpicker-no-arrow"),this.options.colorSelectors){var g=this,E=g.picker.find(".colorpicker-selectors");E.length>0&&(b.each(this.options.colorSelectors,function(n,i){var u=b("<i />").addClass("colorpicker-selectors-color").css("background-color",i).data("class",n).data("alias",n);u.on("mousedown.colorpicker touchstart.colorpicker",function(o){o.preventDefault(),g.setValue(g.format==="alias"?b(this).data("alias"):b(this).css("background-color"))}),E.append(u)}),E.show().addClass("colorpicker-visible"))}w.on("mousedown.colorpicker touchstart.colorpicker",b.proxy(function(n){n.target===n.currentTarget&&n.preventDefault()},this)),w.find(".colorpicker-saturation, .colorpicker-hue, .colorpicker-alpha").on("mousedown.colorpicker touchstart.colorpicker",b.proxy(this.mousedown,this)),w.appendTo(this.container?this.container:b("body")),this.input!==!1&&(this.input.on({"keyup.colorpicker":b.proxy(this.keyup,this)}),this.input.on({"input.colorpicker":b.proxy(this.change,this)}),this.component===!1&&this.element.on({"focus.colorpicker":b.proxy(this.show,this)}),this.options.inline===!1&&this.element.on({"focusout.colorpicker":b.proxy(this.hide,this)})),this.component!==!1&&this.component.on({"click.colorpicker":b.proxy(this.show,this)}),this.input===!1&&this.component===!1&&this.element.on({"click.colorpicker":b.proxy(this.show,this)}),this.input!==!1&&this.component!==!1&&this.input.attr("type")==="color"&&this.input.on({"click.colorpicker":b.proxy(this.show,this),"focus.colorpicker":b.proxy(this.show,this)}),this.update(),b(b.proxy(function(){this.element.trigger("create")},this))};m.Color=P,m.prototype={constructor:m,destroy:function(){this.picker.remove(),this.element.removeData("colorpicker","color").off(".colorpicker"),this.input!==!1&&this.input.off(".colorpicker"),this.component!==!1&&this.component.off(".colorpicker"),this.element.removeClass("colorpicker-element"),this.element.trigger({type:"destroy"})},reposition:function(){if(this.options.inline!==!1||this.options.container)return!1;var t=this.container&&this.container[0]!==window.document.body?"position":"offset",p=this.component||this.element,w=p[t]();this.options.align==="right"&&(w.left-=this.picker.outerWidth()-p.outerWidth()),this.picker.css({top:w.top+p.outerHeight(),left:w.left})},show:function(t){this.isDisabled()||(this.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.reposition(),b(window).on("resize.colorpicker",b.proxy(this.reposition,this)),t&&(!this.hasInput()||this.input.attr("type")==="color")&&t.stopPropagation&&t.preventDefault&&(t.stopPropagation(),t.preventDefault()),(this.component||!this.input)&&this.options.inline===!1&&b(window.document).on({"mousedown.colorpicker":b.proxy(this.hide,this)}),this.element.trigger({type:"showPicker",color:this.color}))},hide:function(t){if(typeof t<"u"&&t.target&&(b(t.currentTarget).parents(".colorpicker").length>0||b(t.target).parents(".colorpicker").length>0))return!1;this.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),b(window).off("resize.colorpicker",this.reposition),b(window.document).off({"mousedown.colorpicker":this.hide}),this.update(),this.element.trigger({type:"hidePicker",color:this.color})},updateData:function(t){return t=t||this.color.toString(!1,this.format),this.element.data("color",t),t},updateInput:function(t){return t=t||this.color.toString(!1,this.format),this.input!==!1&&(this.input.prop("value",t),this.input.trigger("change")),t},updatePicker:function(t){typeof t<"u"&&(this.color=this.createColor(t));var p=this.options.horizontal===!1?this.options.sliders:this.options.slidersHorz,w=this.picker.find("i");if(w.length!==0)return this.options.horizontal===!1?(p=this.options.sliders,w.eq(1).css("top",p.hue.maxTop*(1-this.color.value.h)).end().eq(2).css("top",p.alpha.maxTop*(1-this.color.value.a))):(p=this.options.slidersHorz,w.eq(1).css("left",p.hue.maxLeft*(1-this.color.value.h)).end().eq(2).css("left",p.alpha.maxLeft*(1-this.color.value.a))),w.eq(0).css({top:p.saturation.maxTop-this.color.value.b*p.saturation.maxTop,left:this.color.value.s*p.saturation.maxLeft}),this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.toHex(!0,this.color.value.h,1,1,1)),this.picker.find(".colorpicker-alpha").css("backgroundColor",this.color.toHex(!0)),this.picker.find(".colorpicker-color, .colorpicker-color div").css("backgroundColor",this.color.toString(!0,this.format)),t},updateComponent:function(t){var p;if(typeof t<"u"?p=this.createColor(t):p=this.color,this.component!==!1){var w=this.component.find("i").eq(0);w.length>0?w.css({backgroundColor:p.toString(!0,this.format)}):this.component.css({backgroundColor:p.toString(!0,this.format)})}return p.toString(!1,this.format)},update:function(t){var p;return(this.getValue(!1)!==!1||t===!0)&&(p=this.updateComponent(),this.updateInput(p),this.updateData(p),this.updatePicker()),p},setValue:function(t){this.color=this.createColor(t),this.update(!0),this.element.trigger({type:"changeColor",color:this.color,value:t})},createColor:function(t){return new P(t||null,this.options.colorSelectors,this.options.fallbackColor?this.options.fallbackColor:this.color,this.options.fallbackFormat,this.options.hexNumberSignPrefix)},getValue:function(t){t=typeof t>"u"?this.options.fallbackColor:t;var p;return this.hasInput()?p=this.input.val():p=this.element.data("color"),(p===void 0||p===""||p===null)&&(p=t),p},hasInput:function(){return this.input!==!1},isDisabled:function(){return this.disabled},disable:function(){return this.hasInput()&&this.input.prop("disabled",!0),this.disabled=!0,this.element.trigger({type:"disable",color:this.color,value:this.getValue()}),!0},enable:function(){return this.hasInput()&&this.input.prop("disabled",!1),this.disabled=!1,this.element.trigger({type:"enable",color:this.color,value:this.getValue()}),!0},currentSlider:null,mousePointer:{left:0,top:0},mousedown:function(t){!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.stopPropagation(),t.preventDefault();var p=b(t.target),w=p.closest("div"),g=this.options.horizontal?this.options.slidersHorz:this.options.sliders;if(!w.is(".colorpicker")){if(w.is(".colorpicker-saturation"))this.currentSlider=b.extend({},g.saturation);else if(w.is(".colorpicker-hue"))this.currentSlider=b.extend({},g.hue);else if(w.is(".colorpicker-alpha"))this.currentSlider=b.extend({},g.alpha);else return!1;var E=w.offset();this.currentSlider.guide=w.find("i")[0].style,this.currentSlider.left=t.pageX-E.left,this.currentSlider.top=t.pageY-E.top,this.mousePointer={left:t.pageX,top:t.pageY},b(window.document).on({"mousemove.colorpicker":b.proxy(this.mousemove,this),"touchmove.colorpicker":b.proxy(this.mousemove,this),"mouseup.colorpicker":b.proxy(this.mouseup,this),"touchend.colorpicker":b.proxy(this.mouseup,this)}).trigger("mousemove")}return!1},mousemove:function(t){!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.stopPropagation(),t.preventDefault();var p=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((t.pageX||this.mousePointer.left)-this.mousePointer.left))),w=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((t.pageY||this.mousePointer.top)-this.mousePointer.top)));return this.currentSlider.guide.left=p+"px",this.currentSlider.guide.top=w+"px",this.currentSlider.callLeft&&this.color[this.currentSlider.callLeft].call(this.color,p/this.currentSlider.maxLeft),this.currentSlider.callTop&&this.color[this.currentSlider.callTop].call(this.color,w/this.currentSlider.maxTop),this.options.format===!1&&(this.currentSlider.callTop==="setAlpha"||this.currentSlider.callLeft==="setAlpha")&&(this.color.value.a!==1?(this.format="rgba",this.color.origFormat="rgba"):(this.format="hex",this.color.origFormat="hex")),this.update(!0),this.element.trigger({type:"changeColor",color:this.color}),!1},mouseup:function(t){return t.stopPropagation(),t.preventDefault(),b(window.document).off({"mousemove.colorpicker":this.mousemove,"touchmove.colorpicker":this.mousemove,"mouseup.colorpicker":this.mouseup,"touchend.colorpicker":this.mouseup}),!1},change:function(t){this.color=this.createColor(this.input.val()),this.color.origFormat&&this.options.format===!1&&(this.format=this.color.origFormat),this.getValue(!1)!==!1&&(this.updateData(),this.updateComponent(),this.updatePicker()),this.element.trigger({type:"changeColor",color:this.color,value:this.input.val()})},keyup:function(t){t.keyCode===38?(this.color.value.a<1&&(this.color.value.a=Math.round((this.color.value.a+.01)*100)/100),this.update(!0)):t.keyCode===40&&(this.color.value.a>0&&(this.color.value.a=Math.round((this.color.value.a-.01)*100)/100),this.update(!0)),this.element.trigger({type:"changeColor",color:this.color,value:this.input.val()})}},b.colorpicker=m,b.fn.colorpicker=function(t){var p=Array.prototype.slice.call(arguments,1),w=this.length===1,g=null,E=this.each(function(){var n=b(this),i=n.data("colorpicker"),u=typeof t=="object"?t:{};i||(i=new m(this,u),n.data("colorpicker",i)),typeof t=="string"?b.isFunction(i[t])?g=i[t].apply(i,p):(p.length&&(i[t]=p[0]),g=i[t]):g=n});return w?g:E},b.fn.colorpicker.constructor=m})})(kd);var hs={exports:{}};/*!
 * FullCalendar v3.8.1
 * Docs & License: https://fullcalendar.io/
 * (c) 2017 Adam Shaw
 */var Us;function es(){return Us||(Us=1,function(H,M){(function(P,B){H.exports=B(Ba(),xi)})(typeof self<"u"?self:zi,function(b,P){return function(B){var m={};function t(p){if(m[p])return m[p].exports;var w=m[p]={i:p,l:!1,exports:{}};return B[p].call(w.exports,w,w.exports,t),w.l=!0,w.exports}return t.m=B,t.c=m,t.d=function(p,w,g){t.o(p,w)||Object.defineProperty(p,w,{configurable:!1,enumerable:!0,get:g})},t.n=function(p){var w=p&&p.__esModule?function(){return p.default}:function(){return p};return t.d(w,"a",w),w},t.o=function(p,w){return Object.prototype.hasOwnProperty.call(p,w)},t.p="",t(t.s=236)}([function(B,m){B.exports=b},,function(B,m){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var g in w)w.hasOwnProperty(g)&&(p[g]=w[g])};m.__extends=function(p,w){t(p,w);function g(){this.constructor=p}p.prototype=w===null?Object.create(w):(g.prototype=w.prototype,new g)}},function(B,m){B.exports=P},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(0),w=t(3);function g(ce,we){we.left&&ce.css({"border-left-width":1,"margin-left":we.left-1}),we.right&&ce.css({"border-right-width":1,"margin-right":we.right-1})}m.compensateScroll=g;function E(ce){ce.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}m.uncompensateScroll=E;function n(){w("body").addClass("fc-not-allowed")}m.disableCursor=n;function i(){w("body").removeClass("fc-not-allowed")}m.enableCursor=i;function u(ce,we,Me){var Ze=Math.floor(we/ce.length),ot=Math.floor(we-Ze*(ce.length-1)),_t=[],Ut=[],nr=[],pr=0;o(ce),ce.each(function(lr,Tr){var Sr=lr===ce.length-1?ot:Ze,kr=w(Tr).outerHeight(!0);kr<Sr?(_t.push(Tr),Ut.push(kr),nr.push(w(Tr).height())):pr+=kr}),Me&&(we-=pr,Ze=Math.floor(we/_t.length),ot=Math.floor(we-Ze*(_t.length-1))),w(_t).each(function(lr,Tr){var Sr=lr===_t.length-1?ot:Ze,kr=Ut[lr],En=nr[lr],Rn=Sr-(kr-En);kr<Sr&&w(Tr).height(Rn)})}m.distributeHeight=u;function o(ce){ce.height("")}m.undistributeHeight=o;function c(ce){var we=0;return ce.find("> *").each(function(Me,Ze){var ot=w(Ze).outerWidth();ot>we&&(we=ot)}),we++,ce.width(we),we}m.matchCellWidths=c;function l(ce,we){var Me=ce.add(we),Ze;return Me.css({position:"relative",left:-1}),Ze=ce.outerHeight()-we.outerHeight(),Me.css({position:"",left:""}),Ze}m.subtractInnerElHeight=l;function a(ce){var we=ce.css("position"),Me=ce.parents().filter(function(){var Ze=w(this);return/(auto|scroll)/.test(Ze.css("overflow")+Ze.css("overflow-y")+Ze.css("overflow-x"))}).eq(0);return we==="fixed"||!Me.length?w(ce[0].ownerDocument||document):Me}m.getScrollParent=a;function d(ce,we){var Me=ce.offset(),Ze=Me.left-(we?we.left:0),ot=Me.top-(we?we.top:0);return{left:Ze,right:Ze+ce.outerWidth(),top:ot,bottom:ot+ce.outerHeight()}}m.getOuterRect=d;function h(ce,we){var Me=ce.offset(),Ze=C(ce),ot=Me.left+T(ce,"border-left-width")+Ze.left-(we?we.left:0),_t=Me.top+T(ce,"border-top-width")+Ze.top-(we?we.top:0);return{left:ot,right:ot+ce[0].clientWidth,top:_t,bottom:_t+ce[0].clientHeight}}m.getClientRect=h;function v(ce,we){var Me=ce.offset(),Ze=Me.left+T(ce,"border-left-width")+T(ce,"padding-left")-(we?we.left:0),ot=Me.top+T(ce,"border-top-width")+T(ce,"padding-top")-(we?we.top:0);return{left:Ze,right:Ze+ce.width(),top:ot,bottom:ot+ce.height()}}m.getContentRect=v;function C(ce){var we=ce[0].offsetWidth-ce[0].clientWidth,Me=ce[0].offsetHeight-ce[0].clientHeight,Ze;return we=k(we),Me=k(Me),Ze={left:0,right:0,top:0,bottom:Me},G()&&ce.css("direction")==="rtl"?Ze.left=we:Ze.right=we,Ze}m.getScrollbarWidths=C;function k(ce){return ce=Math.max(0,ce),ce=Math.round(ce),ce}var j=null;function G(){return j===null&&(j=N()),j}function N(){var ce=w("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),we=ce.children(),Me=we.offset().left>ce.offset().left;return ce.remove(),Me}function T(ce,we){return parseFloat(ce.css(we))||0}function A(ce){return ce.which===1&&!ce.ctrlKey}m.isPrimaryMouseButton=A;function U(ce){var we=ce.originalEvent.touches;return we&&we.length?we[0].pageX:ce.pageX}m.getEvX=U;function X(ce){var we=ce.originalEvent.touches;return we&&we.length?we[0].pageY:ce.pageY}m.getEvY=X;function Q(ce){return/^touch/.test(ce.type)}m.getEvIsTouch=Q;function re(ce){ce.addClass("fc-unselectable").on("selectstart",Ce)}m.preventSelection=re;function ge(ce){ce.removeClass("fc-unselectable").off("selectstart",Ce)}m.allowSelection=ge;function Ce(ce){ce.preventDefault()}m.preventDefault=Ce;function pe(ce,we){var Me={left:Math.max(ce.left,we.left),right:Math.min(ce.right,we.right),top:Math.max(ce.top,we.top),bottom:Math.min(ce.bottom,we.bottom)};return Me.left<Me.right&&Me.top<Me.bottom?Me:!1}m.intersectRects=pe;function ie(ce,we){return{left:Math.min(Math.max(ce.left,we.left),we.right),top:Math.min(Math.max(ce.top,we.top),we.bottom)}}m.constrainPoint=ie;function oe(ce){return{left:(ce.left+ce.right)/2,top:(ce.top+ce.bottom)/2}}m.getRectCenter=oe;function me(ce,we){return{left:ce.left-we.left,top:ce.top-we.top}}m.diffPoints=me;function Fe(ce){var we=[],Me=[],Ze,ot;for(typeof ce=="string"?Me=ce.split(/\s*,\s*/):typeof ce=="function"?Me=[ce]:w.isArray(ce)&&(Me=ce),Ze=0;Ze<Me.length;Ze++)ot=Me[Ze],typeof ot=="string"?we.push(ot.charAt(0)==="-"?{field:ot.substring(1),order:-1}:{field:ot,order:1}):typeof ot=="function"&&we.push({func:ot});return we}m.parseFieldSpecs=Fe;function et(ce,we,Me,Ze,ot){var _t,Ut;for(_t=0;_t<Me.length;_t++)if(Ut=ft(ce,we,Me[_t],Ze,ot),Ut)return Ut;return 0}m.compareByFieldSpecs=et;function ft(ce,we,Me,Ze,ot){if(Me.func)return Me.func(ce,we);var _t=ce[Me.field],Ut=we[Me.field];return _t==null&&Ze&&(_t=Ze[Me.field]),Ut==null&&ot&&(Ut=ot[Me.field]),ze(_t,Ut)*(Me.order||1)}m.compareByFieldSpec=ft;function ze(ce,we){return!ce&&!we?0:we==null?-1:ce==null?1:w.type(ce)==="string"||w.type(we)==="string"?String(ce).localeCompare(String(we)):ce-we}m.flexibleCompare=ze,m.dayIDs=["sun","mon","tue","wed","thu","fri","sat"],m.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"];function bt(ce,we){return p.duration({days:ce.clone().stripTime().diff(we.clone().stripTime(),"days"),ms:ce.time()-we.time()})}m.diffDayTime=bt;function St(ce,we){return p.duration({days:ce.clone().stripTime().diff(we.clone().stripTime(),"days")})}m.diffDay=St;function Le(ce,we,Me){return p.duration(Math.round(ce.diff(we,Me,!0)),Me)}m.diffByUnit=Le;function Et(ce,we){var Me,Ze,ot;for(Me=0;Me<m.unitsDesc.length&&(Ze=m.unitsDesc[Me],ot=at(Ze,ce,we),!(ot>=1&&Ye(ot)));Me++);return Ze}m.computeGreatestUnit=Et;function Mt(ce,we){var Me=Et(ce);return Me==="week"&&typeof we=="object"&&we.days&&(Me="day"),Me}m.computeDurationGreatestUnit=Mt;function at(ce,we,Me){return Me!=null?Me.diff(we,ce,!0):p.isDuration(we)?we.as(ce):we.end.diff(we.start,ce,!0)}function Ot(ce,we,Me){var Ze;return mt(Me)?(we-ce)/Me:(Ze=Me.asMonths(),Math.abs(Ze)>=1&&Ye(Ze)?we.diff(ce,"months",!0)/Ze:we.diff(ce,"days",!0)/Me.asDays())}m.divideRangeByDuration=Ot;function Ne(ce,we){var Me,Ze;return mt(ce)||mt(we)?ce/we:(Me=ce.asMonths(),Ze=we.asMonths(),Math.abs(Me)>=1&&Ye(Me)&&Math.abs(Ze)>=1&&Ye(Ze)?Me/Ze:ce.asDays()/we.asDays())}m.divideDurationByDuration=Ne;function ct(ce,we){var Me;return mt(ce)?p.duration(ce*we):(Me=ce.asMonths(),Math.abs(Me)>=1&&Ye(Me)?p.duration({months:Me*we}):p.duration({days:ce.asDays()*we}))}m.multiplyDuration=ct;function mt(ce){return!!(ce.hours()||ce.minutes()||ce.seconds()||ce.milliseconds())}m.durationHasTime=mt;function Ct(ce){return Object.prototype.toString.call(ce)==="[object Date]"||ce instanceof Date}m.isNativeDate=Ct;function Ue(ce){return typeof ce=="string"&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(ce)}m.isTimeString=Ue;function qe(){for(var ce=[],we=0;we<arguments.length;we++)ce[we]=arguments[we];var Me=window.console;if(Me&&Me.log)return Me.log.apply(Me,ce)}m.log=qe;function Ft(){for(var ce=[],we=0;we<arguments.length;we++)ce[we]=arguments[we];var Me=window.console;return Me&&Me.warn?Me.warn.apply(Me,ce):qe.apply(null,ce)}m.warn=Ft;var Wt={}.hasOwnProperty;function ne(ce,we){var Me={},Ze,ot,_t,Ut,nr,pr;if(we)for(Ze=0;Ze<we.length;Ze++){for(ot=we[Ze],_t=[],Ut=ce.length-1;Ut>=0;Ut--)if(nr=ce[Ut][ot],typeof nr=="object")_t.unshift(nr);else if(nr!==void 0){Me[ot]=nr;break}_t.length&&(Me[ot]=ne(_t))}for(Ze=ce.length-1;Ze>=0;Ze--){pr=ce[Ze];for(ot in pr)ot in Me||(Me[ot]=pr[ot])}return Me}m.mergeProps=ne;function _e(ce,we){for(var Me in ce)tt(ce,Me)&&(we[Me]=ce[Me])}m.copyOwnProps=_e;function tt(ce,we){return Wt.call(ce,we)}m.hasOwnProp=tt;function Dt(ce,we,Me){if(w.isFunction(ce)&&(ce=[ce]),ce){var Ze=void 0,ot=void 0;for(Ze=0;Ze<ce.length;Ze++)ot=ce[Ze].apply(we,Me)||ot;return ot}}m.applyAll=Dt;function vt(ce,we){for(var Me=0,Ze=0;Ze<ce.length;)we(ce[Ze])?(ce.splice(Ze,1),Me++):Ze++;return Me}m.removeMatching=vt;function Rt(ce,we){for(var Me=0,Ze=0;Ze<ce.length;)ce[Ze]===we?(ce.splice(Ze,1),Me++):Ze++;return Me}m.removeExact=Rt;function At(ce,we){var Me=ce.length,Ze;if(Me==null||Me!==we.length)return!1;for(Ze=0;Ze<Me;Ze++)if(ce[Ze]!==we[Ze])return!1;return!0}m.isArraysEqual=At;function dt(){for(var ce=[],we=0;we<arguments.length;we++)ce[we]=arguments[we];for(var Me=0;Me<ce.length;Me++)if(ce[Me]!==void 0)return ce[Me]}m.firstDefined=dt;function nt(ce){return(ce+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}m.htmlEscape=nt;function te(ce){return ce.replace(/&.*?;/g,"")}m.stripHtmlEntities=te;function he(ce){var we=[];return w.each(ce,function(Me,Ze){Ze!=null&&we.push(Me+":"+Ze)}),we.join(";")}m.cssToStr=he;function xe(ce){var we=[];return w.each(ce,function(Me,Ze){Ze!=null&&we.push(Me+'="'+nt(Ze)+'"')}),we.join(" ")}m.attrsToStr=xe;function He(ce){return ce.charAt(0).toUpperCase()+ce.slice(1)}m.capitaliseFirstLetter=He;function Ae(ce,we){return ce-we}m.compareNumbers=Ae;function Ye(ce){return ce%1===0}m.isInt=Ye;function Xe(ce,we){var Me=ce[we];return function(){return Me.apply(ce,arguments)}}m.proxy=Xe;function st(ce,we,Me){Me===void 0&&(Me=!1);var Ze,ot,_t,Ut,nr,pr=function(){var lr=+new Date-Ut;lr<we?Ze=setTimeout(pr,we-lr):(Ze=null,Me||(nr=ce.apply(_t,ot),_t=ot=null))};return function(){_t=this,ot=arguments,Ut=+new Date;var lr=Me&&!Ze;return Ze||(Ze=setTimeout(pr,we)),lr&&(nr=ce.apply(_t,ot),_t=ot=null),nr}}m.debounce=st},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(0),w=t(10),g=function(){function n(i,u){this.isStart=!0,this.isEnd=!0,p.isMoment(i)&&(i=i.clone().stripZone()),p.isMoment(u)&&(u=u.clone().stripZone()),i&&(this.startMs=i.valueOf()),u&&(this.endMs=u.valueOf())}return n.invertRanges=function(i,u){var o=[],c=u.startMs,l,a;for(i.sort(E),l=0;l<i.length;l++)a=i[l],a.startMs>c&&o.push(new n(c,a.startMs)),a.endMs>c&&(c=a.endMs);return c<u.endMs&&o.push(new n(c,u.endMs)),o},n.prototype.intersect=function(i){var u=this.startMs,o=this.endMs,c=null;return i.startMs!=null&&(u==null?u=i.startMs:u=Math.max(u,i.startMs)),i.endMs!=null&&(o==null?o=i.endMs:o=Math.min(o,i.endMs)),(u==null||o==null||u<o)&&(c=new n(u,o),c.isStart=this.isStart&&u===this.startMs,c.isEnd=this.isEnd&&o===this.endMs),c},n.prototype.intersectsWith=function(i){return(this.endMs==null||i.startMs==null||this.endMs>i.startMs)&&(this.startMs==null||i.endMs==null||this.startMs<i.endMs)},n.prototype.containsRange=function(i){return(this.startMs==null||i.startMs!=null&&i.startMs>=this.startMs)&&(this.endMs==null||i.endMs!=null&&i.endMs<=this.endMs)},n.prototype.containsDate=function(i){var u=i.valueOf();return(this.startMs==null||u>=this.startMs)&&(this.endMs==null||u<this.endMs)},n.prototype.constrainDate=function(i){var u=i.valueOf();return this.startMs!=null&&u<this.startMs&&(u=this.startMs),this.endMs!=null&&u>=this.endMs&&(u=this.endMs-1),u},n.prototype.equals=function(i){return this.startMs===i.startMs&&this.endMs===i.endMs},n.prototype.clone=function(){var i=new n(this.startMs,this.endMs);return i.isStart=this.isStart,i.isEnd=this.isEnd,i},n.prototype.getStart=function(){return this.startMs!=null?w.default.utc(this.startMs).stripZone():null},n.prototype.getEnd=function(){return this.endMs!=null?w.default.utc(this.endMs).stripZone():null},n.prototype.as=function(i){return p.utc(this.endMs).diff(p.utc(this.startMs),i,!0)},n}();m.default=g;function E(n,i){return n.startMs-i.startMs}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(208),E=t(32),n=t(49),i=function(u){p.__extends(o,u);function o(c){var l=u.call(this)||this;return l.calendar=c,l.className=[],l.uid=String(o.uuid++),l}return o.parse=function(c,l){var a=new this(l);return typeof c=="object"&&a.applyProps(c)?a:!1},o.normalizeId=function(c){return c?String(c):null},o.prototype.fetch=function(c,l,a){},o.prototype.removeEventDefsById=function(c){},o.prototype.removeAllEventDefs=function(){},o.prototype.getPrimitive=function(c){},o.prototype.parseEventDefs=function(c){var l,a,d=[];for(l=0;l<c.length;l++)a=this.parseEventDef(c[l]),a&&d.push(a);return d},o.prototype.parseEventDef=function(c){var l=this.calendar.opt("eventDataTransform"),a=this.eventDataTransform;return l&&(c=l(c,this.calendar)),a&&(c=a(c,this.calendar)),n.default.parse(c,this)},o.prototype.applyManualStandardProps=function(c){return c.id!=null&&(this.id=o.normalizeId(c.id)),w.isArray(c.className)?this.className=c.className:typeof c.className=="string"&&(this.className=c.className.split(/\s+/)),!0},o.uuid=0,o.defineStandardProps=g.default.defineStandardProps,o.copyVerbatimStandardProps=g.default.copyVerbatimStandardProps,o}(E.default);m.default=i,g.default.mixInto(i),i.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(14),E=0,n=function(i){p.__extends(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.listenTo=function(o,c,l){if(typeof c=="object")for(var a in c)c.hasOwnProperty(a)&&this.listenTo(o,a,c[a]);else typeof c=="string"&&o.on(c+"."+this.getListenerNamespace(),w.proxy(l,this))},u.prototype.stopListeningTo=function(o,c){o.off((c||"")+"."+this.getListenerNamespace())},u.prototype.getListenerNamespace=function(){return this.listenerId==null&&(this.listenerId=E++),"_listener"+this.listenerId},u}(g.default);m.default=n},,,function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(0),w=t(3),g=t(4),E=/^\s*\d{4}-\d\d$/,n=/^\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=p.fn;m.newMomentProto=i;var u=w.extend({},i);m.oldMomentProto=u;var o=p.momentProperties;o.push("_fullCalendar"),o.push("_ambigTime"),o.push("_ambigZone");function c(d,h){return u.format.call(d,h)}m.oldMomentFormat=c;var l=function(){return a(arguments)};m.default=l,l.utc=function(){var d=a(arguments,!0);return d.hasTime()&&d.utc(),d},l.parseZone=function(){return a(arguments,!0,!0)};function a(d,h,v){h===void 0&&(h=!1),v===void 0&&(v=!1);var C=d[0],k=d.length===1&&typeof C=="string",j,G,N,T;return p.isMoment(C)||g.isNativeDate(C)||C===void 0?T=p.apply(null,d):(j=!1,G=!1,k?E.test(C)?(C+="-01",d=[C],j=!0,G=!0):(N=n.exec(C))&&(j=!N[5],G=!0):w.isArray(C)&&(G=!0),h||j?T=p.utc.apply(p,d):T=p.apply(null,d),j?(T._ambigTime=!0,T._ambigZone=!0):v&&(G?T._ambigZone=!0:k&&T.utcOffset(C))),T._fullCalendar=!0,T}i.week=i.weeks=function(d){var h=this._locale._fullCalendar_weekCalc;return d==null&&typeof h=="function"?h(this):h==="ISO"?u.isoWeek.apply(this,arguments):u.week.apply(this,arguments)},i.time=function(d){if(!this._fullCalendar)return u.time.apply(this,arguments);if(d==null)return p.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,!p.isDuration(d)&&!p.isMoment(d)&&(d=p.duration(d));var h=0;return p.isDuration(d)&&(h=Math.floor(d.asDays())*24),this.hours(h+d.hours()).minutes(d.minutes()).seconds(d.seconds()).milliseconds(d.milliseconds())},i.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},i.hasTime=function(){return!this._ambigTime},i.stripZone=function(){var d;return this._ambigZone||(d=this._ambigTime,this.utc(!0),this._ambigTime=d||!1,this._ambigZone=!0),this},i.hasZone=function(){return!this._ambigZone},i.local=function(d){return u.local.call(this,this._ambigZone||d),this._ambigTime=!1,this._ambigZone=!1,this},i.utc=function(d){return u.utc.call(this,d),this._ambigTime=!1,this._ambigZone=!1,this},i.utcOffset=function(d){return d!=null&&(this._ambigTime=!1,this._ambigZone=!1),u.utcOffset.apply(this,arguments)}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(14),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.on=function(u,o){return w(this).on(u,this._prepareIntercept(o)),this},i.prototype.one=function(u,o){return w(this).one(u,this._prepareIntercept(o)),this},i.prototype._prepareIntercept=function(u){var o=function(c,l){return u.apply(l.context||this,l.args||[])};return u.guid||(u.guid=w.guid++),o.guid=u.guid,o},i.prototype.off=function(u,o){return w(this).off(u,o),this},i.prototype.trigger=function(u){for(var o=[],c=1;c<arguments.length;c++)o[c-1]=arguments[c];return w(this).triggerHandler(u,{args:o}),this},i.prototype.triggerWith=function(u,o,c){return w(this).triggerHandler(u,{context:o,args:c}),this},i.prototype.hasHandlers=function(u){var o=w._data(this,"events");return o&&o[u]&&o[u].length>0},i}(g.default);m.default=E},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(w,g){this.isAllDay=!1,this.unzonedRange=w,this.isAllDay=g}return p.prototype.toLegacy=function(w){return{start:w.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:w.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(33),g=t(209),E=t(18),n=function(i){p.__extends(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.buildInstances=function(){return[this.buildInstance()]},u.prototype.buildInstance=function(){return new g.default(this,this.dateProfile)},u.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},u.prototype.clone=function(){var o=i.prototype.clone.call(this);return o.dateProfile=this.dateProfile,o},u.prototype.rezone=function(){var o=this.source.calendar,c=this.dateProfile;this.dateProfile=new E.default(o.moment(c.start),c.end?o.moment(c.end):null,o)},u.prototype.applyManualStandardProps=function(o){var c=i.prototype.applyManualStandardProps.call(this,o),l=E.default.parse(o,this.source);return l?(this.dateProfile=l,o.date!=null&&(this.miscProps.date=o.date),c):!1},u}(w.default);m.default=n,n.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(){}return p.mixInto=function(w){var g=this;Object.getOwnPropertyNames(this.prototype).forEach(function(E){w.prototype[E]||(w.prototype[E]=g.prototype[E])})},p.mixOver=function(w){var g=this;Object.getOwnPropertyNames(this.prototype).forEach(function(E){w.prototype[E]=g.prototype[E]})},p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(17),g=t(11),E=t(7);w.touchMouseIgnoreWait=500;var n=null,i=0,u=function(){function o(){this.isTouching=!1,this.mouseIgnoreDepth=0}return o.get=function(){return n||(n=new o,n.bind()),n},o.needed=function(){o.get(),i++},o.unneeded=function(){i--,i||(n.unbind(),n=null)},o.prototype.bind=function(){var c=this;this.listenTo(p(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(l){c.handleTouchMove(p.Event(l))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(l){c.handleScroll(p.Event(l))},!0)},o.prototype.unbind=function(){this.stopListeningTo(p(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},o.prototype.handleTouchStart=function(c){this.stopTouch(c,!0),this.isTouching=!0,this.trigger("touchstart",c)},o.prototype.handleTouchMove=function(c){this.isTouching&&this.trigger("touchmove",c)},o.prototype.handleTouchCancel=function(c){this.isTouching&&(this.trigger("touchcancel",c),this.stopTouch(c))},o.prototype.handleTouchEnd=function(c){this.stopTouch(c)},o.prototype.handleMouseDown=function(c){this.shouldIgnoreMouse()||this.trigger("mousedown",c)},o.prototype.handleMouseMove=function(c){this.shouldIgnoreMouse()||this.trigger("mousemove",c)},o.prototype.handleMouseUp=function(c){this.shouldIgnoreMouse()||this.trigger("mouseup",c)},o.prototype.handleClick=function(c){this.shouldIgnoreMouse()||this.trigger("click",c)},o.prototype.handleSelectStart=function(c){this.trigger("selectstart",c)},o.prototype.handleContextMenu=function(c){this.trigger("contextmenu",c)},o.prototype.handleScroll=function(c){this.trigger("scroll",c)},o.prototype.stopTouch=function(c,l){l===void 0&&(l=!1),this.isTouching&&(this.isTouching=!1,this.trigger("touchend",c),l||this.startTouchMouseIgnore())},o.prototype.startTouchMouseIgnore=function(){var c=this,l=w.touchMouseIgnoreWait;l&&(this.mouseIgnoreDepth++,setTimeout(function(){c.mouseIgnoreDepth--},l))},o.prototype.shouldIgnoreMouse=function(){return this.isTouching||!!this.mouseIgnoreDepth},o}();m.default=u,E.default.mixInto(u),g.default.mixInto(u)},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(w){this.view=w._getView(),this.component=w}return p.prototype.opt=function(w){return this.view.opt(w)},p.prototype.end=function(){},p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0}),m.version="3.8.1",m.internalApiVersion=12;var p=t(4);m.applyAll=p.applyAll,m.debounce=p.debounce,m.isInt=p.isInt,m.htmlEscape=p.htmlEscape,m.cssToStr=p.cssToStr,m.proxy=p.proxy,m.capitaliseFirstLetter=p.capitaliseFirstLetter,m.getOuterRect=p.getOuterRect,m.getClientRect=p.getClientRect,m.getContentRect=p.getContentRect,m.getScrollbarWidths=p.getScrollbarWidths,m.preventDefault=p.preventDefault,m.parseFieldSpecs=p.parseFieldSpecs,m.compareByFieldSpecs=p.compareByFieldSpecs,m.compareByFieldSpec=p.compareByFieldSpec,m.flexibleCompare=p.flexibleCompare,m.computeGreatestUnit=p.computeGreatestUnit,m.divideRangeByDuration=p.divideRangeByDuration,m.divideDurationByDuration=p.divideDurationByDuration,m.multiplyDuration=p.multiplyDuration,m.durationHasTime=p.durationHasTime,m.log=p.log,m.warn=p.warn,m.removeExact=p.removeExact,m.intersectRects=p.intersectRects;var w=t(47);m.formatDate=w.formatDate,m.formatRange=w.formatRange,m.queryMostGranularFormatUnit=w.queryMostGranularFormatUnit;var g=t(30);m.datepickerLocale=g.datepickerLocale,m.locale=g.locale;var E=t(10);m.moment=E.default;var n=t(11);m.EmitterMixin=n.default;var i=t(7);m.ListenerMixin=i.default;var u=t(48);m.Model=u.default;var o=t(207);m.Constraints=o.default;var c=t(5);m.UnzonedRange=c.default;var l=t(12);m.ComponentFootprint=l.default;var a=t(212);m.BusinessHourGenerator=a.default;var d=t(33);m.EventDef=d.default;var h=t(36);m.EventDefMutation=h.default;var v=t(37);m.EventSourceParser=v.default;var C=t(6);m.EventSource=C.default;var k=t(51);m.defineThemeSystem=k.defineThemeSystem;var j=t(19);m.EventInstanceGroup=j.default;var G=t(52);m.ArrayEventSource=G.default;var N=t(215);m.FuncEventSource=N.default;var T=t(216);m.JsonFeedEventSource=T.default;var A=t(35);m.EventFootprint=A.default;var U=t(32);m.Class=U.default;var X=t(14);m.Mixin=X.default;var Q=t(53);m.CoordCache=Q.default;var re=t(54);m.DragListener=re.default;var ge=t(20);m.Promise=ge.default;var Ce=t(217);m.TaskQueue=Ce.default;var pe=t(218);m.RenderQueue=pe.default;var ie=t(39);m.Scroller=ie.default;var oe=t(38);m.Theme=oe.default;var me=t(219);m.DateComponent=me.default;var Fe=t(40);m.InteractiveDateComponent=Fe.default;var et=t(220);m.Calendar=et.default;var ft=t(41);m.View=ft.default;var ze=t(21);m.defineView=ze.defineView,m.getViewConfig=ze.getViewConfig;var bt=t(55);m.DayTableMixin=bt.default;var St=t(56);m.BusinessHourRenderer=St.default;var Le=t(42);m.EventRenderer=Le.default;var Et=t(57);m.FillRenderer=Et.default;var Mt=t(58);m.HelperRenderer=Mt.default;var at=t(222);m.ExternalDropping=at.default;var Ot=t(223);m.EventResizing=Ot.default;var Ne=t(59);m.EventPointing=Ne.default;var ct=t(224);m.EventDragging=ct.default;var mt=t(225);m.DateSelecting=mt.default;var Ct=t(60);m.StandardInteractionsMixin=Ct.default;var Ue=t(226);m.AgendaView=Ue.default;var qe=t(227);m.TimeGrid=qe.default;var Ft=t(61);m.DayGrid=Ft.default;var Wt=t(62);m.BasicView=Wt.default;var ne=t(229);m.MonthView=ne.default;var _e=t(230);m.ListView=_e.default},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(5),w=function(){function g(E,n,i){this.start=E,this.end=n||null,this.unzonedRange=this.buildUnzonedRange(i)}return g.parse=function(E,n){var i=E.start||E.date,u=E.end;if(!i)return!1;var o=n.calendar,c=o.moment(i),l=u?o.moment(u):null,a=E.allDay,d=o.opt("forceEventDuration");return c.isValid()?(l&&(!l.isValid()||!l.isAfter(c))&&(l=null),a==null&&(a=n.allDayDefault,a==null&&(a=o.opt("allDayDefault"))),a===!0?(c.stripTime(),l&&l.stripTime()):a===!1&&(c.hasTime()||c.time(0),l&&!l.hasTime()&&l.time(0)),!l&&d&&(l=o.getDefaultEventEnd(!c.hasTime(),c)),new g(c,l,o)):!1},g.isStandardProp=function(E){return E==="start"||E==="date"||E==="end"||E==="allDay"},g.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},g.prototype.buildUnzonedRange=function(E){var n=this.start.clone().stripZone().valueOf(),i=this.getEnd(E).stripZone().valueOf();return new p.default(n,i)},g.prototype.getEnd=function(E){return this.end?this.end.clone():E.getDefaultEventEnd(this.isAllDay(),this.start)},g}();m.default=w},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(5),w=t(34),g=t(211),E=function(){function n(i){this.eventInstances=i||[]}return n.prototype.getAllEventRanges=function(i){return i?this.sliceNormalRenderRanges(i):this.eventInstances.map(w.eventInstanceToEventRange)},n.prototype.sliceRenderRanges=function(i){return this.isInverse()?this.sliceInverseRenderRanges(i):this.sliceNormalRenderRanges(i)},n.prototype.sliceNormalRenderRanges=function(i){var u=this.eventInstances,o,c,l,a=[];for(o=0;o<u.length;o++)c=u[o],l=c.dateProfile.unzonedRange.intersect(i),l&&a.push(new g.default(l,c.def,c));return a},n.prototype.sliceInverseRenderRanges=function(i){var u=this.eventInstances.map(w.eventInstanceToUnzonedRange),o=this.getEventDef();return u=p.default.invertRanges(u,i),u.map(function(c){return new g.default(c,o)})},n.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},n.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},n}();m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w={construct:function(n){var i=p.Deferred(),u=i.promise();return typeof n=="function"&&n(function(o){i.resolve(o),g(u,o)},function(){i.reject(),E(u)}),u},resolve:function(n){var i=p.Deferred().resolve(n),u=i.promise();return g(u,n),u},reject:function(){var n=p.Deferred().reject(),i=n.promise();return E(i),i}};m.default=w;function g(n,i){n.then=function(u){return typeof u=="function"?w.resolve(u(i)):n}}function E(n){n.then=function(i,u){return typeof u=="function"&&u(),n}}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(17);m.viewHash={},p.views=m.viewHash;function w(E,n){m.viewHash[E]=n}m.defineView=w;function g(E){return m.viewHash[E]}m.getViewConfig=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=t(54),E=function(u){p.__extends(o,u);function o(c,l){var a=u.call(this,l)||this;return a.component=c,a}return o.prototype.handleInteractionStart=function(c){var l=this.subjectEl,a,d,h;this.component.hitsNeeded(),this.computeScrollBounds(),c?(d={left:w.getEvX(c),top:w.getEvY(c)},h=d,l&&(a=w.getOuterRect(l),h=w.constrainPoint(h,a)),this.origHit=this.queryHit(h.left,h.top),l&&this.options.subjectCenter&&(this.origHit&&(a=w.intersectRects(this.origHit,a)||a),h=w.getRectCenter(a)),this.coordAdjust=w.diffPoints(h,d)):(this.origHit=null,this.coordAdjust=null),u.prototype.handleInteractionStart.call(this,c)},o.prototype.handleDragStart=function(c){var l;u.prototype.handleDragStart.call(this,c),l=this.queryHit(w.getEvX(c),w.getEvY(c)),l&&this.handleHitOver(l)},o.prototype.handleDrag=function(c,l,a){var d;u.prototype.handleDrag.call(this,c,l,a),d=this.queryHit(w.getEvX(a),w.getEvY(a)),n(d,this.hit)||(this.hit&&this.handleHitOut(),d&&this.handleHitOver(d))},o.prototype.handleDragEnd=function(c){this.handleHitDone(),u.prototype.handleDragEnd.call(this,c)},o.prototype.handleHitOver=function(c){var l=n(c,this.origHit);this.hit=c,this.trigger("hitOver",this.hit,l,this.origHit)},o.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},o.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},o.prototype.handleInteractionEnd=function(c,l){u.prototype.handleInteractionEnd.call(this,c,l),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},o.prototype.handleScrollEnd=function(){u.prototype.handleScrollEnd.call(this),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},o.prototype.queryHit=function(c,l){return this.coordAdjust&&(c+=this.coordAdjust.left,l+=this.coordAdjust.top),this.component.queryHit(c,l)},o}(g.default);m.default=E;function n(u,o){return!u&&!o?!0:u&&o?u.component===o.component&&i(u,o)&&i(o,u):!1}function i(u,o){for(var c in u)if(!/^(component|left|right|top|bottom)$/.test(c)&&u[c]!==o[c])return!1;return!0}},,,,,,,,function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(0),g=t(17),E=t(31),n=t(4);m.localeOptionHash={},g.locales=m.localeOptionHash;var i={buttonText:function(h){return{prev:n.stripHtmlEntities(h.prevText),next:n.stripHtmlEntities(h.nextText),today:n.stripHtmlEntities(h.currentText)}},monthYearFormat:function(h){return h.showMonthAfterYear?"YYYY["+h.yearSuffix+"] MMMM":"MMMM YYYY["+h.yearSuffix+"]"}},u={dayOfMonthFormat:function(h,v){var C=h.longDateFormat("l");return C=C.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),v.isRTL?C+=" ddd":C="ddd "+C,C},mediumTimeFormat:function(h){return h.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(h){return h.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(h){return h.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(h){return h.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(h){return h.longDateFormat("LT").replace(/\s*a$/i,"")}},o={smallDayDateFormat:function(h){return h.isRTL?"D dd":"dd D"},weekFormat:function(h){return h.isRTL?"w[ "+h.weekNumberTitle+"]":"["+h.weekNumberTitle+" ]w"},smallWeekFormat:function(h){return h.isRTL?"w["+h.weekNumberTitle+"]":"["+h.weekNumberTitle+"]w"}};function c(h){p.each(o,function(v,C){h[v]==null&&(h[v]=C(h))})}m.populateInstanceComputableOptions=c;function l(h,v,C){var k=m.localeOptionHash[h]||(m.localeOptionHash[h]={});k.isRTL=C.isRTL,k.weekNumberTitle=C.weekHeader,p.each(i,function(G,N){k[G]=N(C)});var j=p.datepicker;j&&(j.regional[v]=j.regional[h]=C,j.regional.en=j.regional[""],j.setDefaults(C))}m.datepickerLocale=l;function a(h,v){var C,k;C=m.localeOptionHash[h]||(m.localeOptionHash[h]={}),v&&(C=m.localeOptionHash[h]=E.mergeOptions([C,v])),k=d(h),p.each(u,function(j,G){C[j]==null&&(C[j]=G(k,C))}),E.globalDefaults.locale=h}m.locale=a;function d(h){return w.localeData(h)||w.localeData("en")}m.getMomentLocaleData=d,a("en",E.englishDefaults)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(4);m.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},m.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},m.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var w=["header","footer","buttonText","buttonIcons","themeButtonIcons"];function g(E){return p.mergeProps(E,w)}m.mergeOptions=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=function(){function E(){}return E.extend=function(n){var i=function(u){p.__extends(o,u);function o(){return u!==null&&u.apply(this,arguments)||this}return o}(this);return w.copyOwnProps(n,i.prototype),i},E.mixin=function(n){w.copyOwnProps(n,this.prototype)},E}();m.default=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(208),g=function(){function E(n){this.source=n,this.className=[],this.miscProps={}}return E.parse=function(n,i){var u=new this(i);return u.applyProps(n)?u:!1},E.normalizeId=function(n){return String(n)},E.generateId=function(){return"_fc"+E.uuid++},E.prototype.clone=function(){var n=new this.constructor(this.source);return n.id=this.id,n.rawId=this.rawId,n.uid=this.uid,E.copyVerbatimStandardProps(this,n),n.className=this.className.slice(),n.miscProps=p.extend({},this.miscProps),n},E.prototype.hasInverseRendering=function(){return this.getRendering()==="inverse-background"},E.prototype.hasBgRendering=function(){var n=this.getRendering();return n==="inverse-background"||n==="background"},E.prototype.getRendering=function(){return this.rendering!=null?this.rendering:this.source.rendering},E.prototype.getConstraint=function(){return this.constraint!=null?this.constraint:this.source.constraint!=null?this.source.constraint:this.source.calendar.opt("eventConstraint")},E.prototype.getOverlap=function(){return this.overlap!=null?this.overlap:this.source.overlap!=null?this.source.overlap:this.source.calendar.opt("eventOverlap")},E.prototype.isStartExplicitlyEditable=function(){return this.startEditable!=null?this.startEditable:this.source.startEditable},E.prototype.isDurationExplicitlyEditable=function(){return this.durationEditable!=null?this.durationEditable:this.source.durationEditable},E.prototype.isExplicitlyEditable=function(){return this.editable!=null?this.editable:this.source.editable},E.prototype.toLegacy=function(){var n=p.extend({},this.miscProps);return n._id=this.uid,n.source=this.source,n.className=this.className.slice(),n.allDay=this.isAllDay(),this.rawId!=null&&(n.id=this.rawId),E.copyVerbatimStandardProps(this,n),n},E.prototype.applyManualStandardProps=function(n){return n.id!=null?this.id=E.normalizeId(this.rawId=n.id):this.id=E.generateId(),n._id!=null?this.uid=String(n._id):this.uid=E.generateId(),p.isArray(n.className)&&(this.className=n.className),typeof n.className=="string"&&(this.className=n.className.split(/\s+/)),!0},E.prototype.applyMiscProps=function(n){p.extend(this.miscProps,n)},E.uuid=0,E.defineStandardProps=w.default.defineStandardProps,E.copyVerbatimStandardProps=w.default.copyVerbatimStandardProps,E}();m.default=g,w.default.mixInto(g),g.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(211),w=t(35),g=t(12);function E(c,l){var a=[],d;for(d=0;d<c.length;d++)a.push.apply(a,c[d].buildInstances(l));return a}m.eventDefsToEventInstances=E;function n(c){return new p.default(c.dateProfile.unzonedRange,c.def,c)}m.eventInstanceToEventRange=n;function i(c){return new w.default(new g.default(c.unzonedRange,c.eventDef.isAllDay()),c.eventDef,c.eventInstance)}m.eventRangeToEventFootprint=i;function u(c){return c.dateProfile.unzonedRange}m.eventInstanceToUnzonedRange=u;function o(c){return c.componentFootprint}m.eventFootprintToComponentFootprint=o},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(w,g,E){this.componentFootprint=w,this.eventDef=g,E&&(this.eventInstance=E)}return p.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(4),w=t(18),g=t(33),E=t(50),n=t(13),i=function(){function u(){}return u.createFromRawProps=function(o,c,l){var a=o.def,d={},h={},v={},C={},k=null,j=null,G,N,T,A;for(G in c)w.default.isStandardProp(G)?d[G]=c[G]:a.isStandardProp(G)?h[G]=c[G]:a.miscProps[G]!==c[G]&&(v[G]=c[G]);return N=w.default.parse(d,a.source),N&&(T=E.default.createFromDiff(o.dateProfile,N,l)),h.id!==a.id&&(k=h.id),p.isArraysEqual(h.className,a.className)||(j=h.className),g.default.copyVerbatimStandardProps(h,C),A=new u,A.eventDefId=k,A.className=j,A.verbatimStandardProps=C,A.miscProps=v,T&&(A.dateMutation=T),A},u.prototype.mutateSingle=function(o){var c;return this.dateMutation&&(c=o.dateProfile,o.dateProfile=this.dateMutation.buildNewDateProfile(c,o.source.calendar)),this.eventDefId!=null&&(o.id=g.default.normalizeId(o.rawId=this.eventDefId)),this.className&&(o.className=this.className),this.verbatimStandardProps&&n.default.copyVerbatimStandardProps(this.verbatimStandardProps,o),this.miscProps&&o.applyMiscProps(this.miscProps),c?function(){o.dateProfile=c}:function(){}},u.prototype.setDateMutation=function(o){o&&!o.isEmpty()?this.dateMutation=o:this.dateMutation=null},u.prototype.isEmpty=function(){return!this.dateMutation},u}();m.default=i},function(B,m){Object.defineProperty(m,"__esModule",{value:!0}),m.default={sourceClasses:[],registerClass:function(t){this.sourceClasses.unshift(t)},parse:function(t,p){var w=this.sourceClasses,g,E;for(g=0;g<w.length;g++)if(E=w[g].parse(t,p),E)return E}}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=function(){function g(E){this.optionsManager=E,this.processIconOverride()}return g.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},g.prototype.setIconOverride=function(E){var n,i;if(p.isPlainObject(E)){n=p.extend({},this.iconClasses);for(i in E)n[i]=this.applyIconOverridePrefix(E[i]);this.iconClasses=n}else E===!1&&(this.iconClasses={})},g.prototype.applyIconOverridePrefix=function(E){var n=this.iconOverridePrefix;return n&&E.indexOf(n)!==0&&(E=n+E),E},g.prototype.getClass=function(E){return this.classes[E]||""},g.prototype.getIconClass=function(E){var n=this.iconClasses[E];return n?this.baseIconClass+" "+n:""},g.prototype.getCustomButtonIconClass=function(E){var n;return this.iconOverrideCustomButtonOption&&(n=E[this.iconOverrideCustomButtonOption],n)?this.baseIconClass+" "+this.applyIconOverridePrefix(n):""},g}();m.default=w,w.prototype.classes={},w.prototype.iconClasses={},w.prototype.baseIconClass="",w.prototype.iconOverridePrefix=""},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(32),n=function(i){p.__extends(u,i);function u(o){var c=i.call(this)||this;return o=o||{},c.overflowX=o.overflowX||o.overflow||"auto",c.overflowY=o.overflowY||o.overflow||"auto",c}return u.prototype.render=function(){this.el=this.renderEl(),this.applyOverflow()},u.prototype.renderEl=function(){return this.scrollEl=w('<div class="fc-scroller"></div>')},u.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},u.prototype.destroy=function(){this.el.remove()},u.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},u.prototype.lockOverflow=function(o){var c=this.overflowX,l=this.overflowY;o=o||this.getScrollbarWidths(),c==="auto"&&(c=o.top||o.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),l==="auto"&&(l=o.left||o.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":c,"overflow-y":l})},u.prototype.setHeight=function(o){this.scrollEl.height(o)},u.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},u.prototype.setScrollTop=function(o){this.scrollEl.scrollTop(o)},u.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},u.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},u.prototype.getScrollbarWidths=function(){return g.getScrollbarWidths(this.scrollEl)},u}(E.default);m.default=n},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(219),n=t(15),i=function(u){p.__extends(o,u);function o(c,l){var a=u.call(this,c,l)||this;return a.segSelector=".fc-event-container > *",a.dateSelectingClass&&(a.dateClicking=new a.dateClickingClass(a)),a.dateSelectingClass&&(a.dateSelecting=new a.dateSelectingClass(a)),a.eventPointingClass&&(a.eventPointing=new a.eventPointingClass(a)),a.eventDraggingClass&&a.eventPointing&&(a.eventDragging=new a.eventDraggingClass(a,a.eventPointing)),a.eventResizingClass&&a.eventPointing&&(a.eventResizing=new a.eventResizingClass(a,a.eventPointing)),a.externalDroppingClass&&(a.externalDropping=new a.externalDroppingClass(a)),a}return o.prototype.setElement=function(c){u.prototype.setElement.call(this,c),this.dateClicking&&this.dateClicking.bindToEl(c),this.dateSelecting&&this.dateSelecting.bindToEl(c),this.bindAllSegHandlersToEl(c)},o.prototype.removeElement=function(){this.endInteractions(),u.prototype.removeElement.call(this)},o.prototype.executeEventUnrender=function(){this.endInteractions(),u.prototype.executeEventUnrender.call(this)},o.prototype.bindGlobalHandlers=function(){u.prototype.bindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.bindToDocument()},o.prototype.unbindGlobalHandlers=function(){u.prototype.unbindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.unbindFromDocument()},o.prototype.bindDateHandlerToEl=function(c,l,a){var d=this;this.el.on(l,function(h){if(!w(h.target).is(d.segSelector+":not(.fc-helper),"+d.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return a.call(d,h)})},o.prototype.bindAllSegHandlersToEl=function(c){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(l){l&&l.bindToEl(c)})},o.prototype.bindSegHandlerToEl=function(c,l,a){var d=this;c.on(l,this.segSelector,function(h){var v=w(h.currentTarget);if(!v.is(".fc-helper")){var C=v.data("fc-seg");if(C&&!d.shouldIgnoreEventPointing())return a.call(d,C,h)}})},o.prototype.shouldIgnoreMouse=function(){return n.default.get().shouldIgnoreMouse()},o.prototype.shouldIgnoreTouch=function(){var c=this._getView();return c.isSelected||c.selectedEvent},o.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},o.prototype.canStartSelection=function(c,l){return g.getEvIsTouch(l)&&!this.canStartResize(c,l)&&(this.isEventDefDraggable(c.footprint.eventDef)||this.isEventDefResizable(c.footprint.eventDef))},o.prototype.canStartDrag=function(c,l){return!this.canStartResize(c,l)&&this.isEventDefDraggable(c.footprint.eventDef)},o.prototype.canStartResize=function(c,l){var a=this._getView(),d=c.footprint.eventDef;return(!g.getEvIsTouch(l)||a.isEventDefSelected(d))&&this.isEventDefResizable(d)&&w(l.target).is(".fc-resizer")},o.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(c){c&&c.end()})},o.prototype.isEventDefDraggable=function(c){return this.isEventDefStartEditable(c)},o.prototype.isEventDefStartEditable=function(c){var l=c.isStartExplicitlyEditable();return l==null&&(l=this.opt("eventStartEditable"),l==null&&(l=this.isEventDefGenerallyEditable(c))),l},o.prototype.isEventDefGenerallyEditable=function(c){var l=c.isExplicitlyEditable();return l==null&&(l=this.opt("editable")),l},o.prototype.isEventDefResizableFromStart=function(c){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(c)},o.prototype.isEventDefResizableFromEnd=function(c){return this.isEventDefResizable(c)},o.prototype.isEventDefResizable=function(c){var l=c.isDurationExplicitlyEditable();return l==null&&(l=this.opt("eventDurationEditable"),l==null&&(l=this.isEventDefGenerallyEditable(c))),l},o.prototype.diffDates=function(c,l){return this.largeUnit?g.diffByUnit(c,l,this.largeUnit):g.diffDayTime(c,l)},o.prototype.isEventInstanceGroupAllowed=function(c){var l=this._getView(),a=this.dateProfile,d=this.eventRangesToEventFootprints(c.getAllEventRanges()),h;for(h=0;h<d.length;h++)if(!a.validUnzonedRange.containsRange(d[h].componentFootprint.unzonedRange))return!1;return l.calendar.constraints.isEventInstanceGroupAllowed(c)},o.prototype.isExternalInstanceGroupAllowed=function(c){var l=this._getView(),a=this.dateProfile,d=this.eventRangesToEventFootprints(c.getAllEventRanges()),h;for(h=0;h<d.length;h++)if(!a.validUnzonedRange.containsRange(d[h].componentFootprint.unzonedRange))return!1;for(h=0;h<d.length;h++)if(!l.calendar.constraints.isSelectionFootprintAllowed(d[h].componentFootprint))return!1;return!0},o}(E.default);m.default=i},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(0),E=t(4),n=t(218),i=t(221),u=t(40),o=t(15),c=t(5),l=function(a){p.__extends(d,a);function d(h,v){var C=a.call(this,null,v.options)||this;return C.batchRenderDepth=0,C.isSelected=!1,C.calendar=h,C.viewSpec=v,C.type=v.type,C.name=C.type,C.initRenderQueue(),C.initHiddenDays(),C.dateProfileGenerator=new C.dateProfileGeneratorClass(C),C.bindBaseRenderHandlers(),C.eventOrderSpecs=E.parseFieldSpecs(C.opt("eventOrder")),C.initialize&&C.initialize(),C}return d.prototype._getView=function(){return this},d.prototype.opt=function(h){return this.options[h]},d.prototype.initRenderQueue=function(){this.renderQueue=new n.default({event:this.opt("eventRenderWait")}),this.renderQueue.on("start",this.onRenderQueueStart.bind(this)),this.renderQueue.on("stop",this.onRenderQueueStop.bind(this)),this.on("before:change",this.startBatchRender),this.on("change",this.stopBatchRender)},d.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight(),this.addScroll(this.queryScroll())},d.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll(),this.calendar.thawContentHeight()},d.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},d.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},d.prototype.requestRender=function(h,v,C){this.renderQueue.queue(h,v,C)},d.prototype.whenSizeUpdated=function(h){this.renderQueue.isRunning?this.renderQueue.one("stop",h.bind(this)):h.call(this)},d.prototype.computeTitle=function(h){var v;return/^(year|month)$/.test(h.currentRangeUnit)?v=h.currentUnzonedRange:v=h.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(v.startMs,h.isRangeAllDay),end:this.calendar.msToMoment(v.endMs,h.isRangeAllDay)},h.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(h),this.opt("titleRangeSeparator"))},d.prototype.computeTitleFormat=function(h){var v=h.currentRangeUnit;return v==="year"?"YYYY":v==="month"?this.opt("monthYearFormat"):h.currentUnzonedRange.as("days")>1?"ll":"LL"},d.prototype.setDate=function(h){var v=this.get("dateProfile"),C=this.dateProfileGenerator.build(h,void 0,!0);(!v||!v.activeUnzonedRange.equals(C.activeUnzonedRange))&&this.set("dateProfile",C)},d.prototype.unsetDate=function(){this.unset("dateProfile")},d.prototype.fetchInitialEvents=function(h){var v=this.calendar,C=h.isRangeAllDay&&!this.usesMinMaxTime;return v.requestEvents(v.msToMoment(h.activeUnzonedRange.startMs,C),v.msToMoment(h.activeUnzonedRange.endMs,C))},d.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},d.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},d.prototype.setEvents=function(h){this.set("currentEvents",h),this.set("hasEvents",!0)},d.prototype.unsetEvents=function(){this.unset("currentEvents"),this.unset("hasEvents")},d.prototype.resetEvents=function(h){this.startBatchRender(),this.unsetEvents(),this.setEvents(h),this.stopBatchRender()},d.prototype.requestDateRender=function(h){var v=this;this.requestRender(function(){v.executeDateRender(h)},"date","init")},d.prototype.requestDateUnrender=function(){var h=this;this.requestRender(function(){h.executeDateUnrender()},"date","destroy")},d.prototype.executeDateRender=function(h){a.prototype.executeDateRender.call(this,h),this.render&&this.render(),this.trigger("datesRendered"),this.addScroll({isDateInit:!0}),this.startNowIndicator()},d.prototype.executeDateUnrender=function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.destroy&&this.destroy(),a.prototype.executeDateUnrender.call(this)},d.prototype.bindBaseRenderHandlers=function(){var h=this;this.on("datesRendered",function(){h.whenSizeUpdated(h.triggerViewRender)}),this.on("before:datesUnrendered",function(){h.triggerViewDestroy()})},d.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},d.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},d.prototype.requestEventsRender=function(h){var v=this;this.requestRender(function(){v.executeEventRender(h),v.whenSizeUpdated(v.triggerAfterEventsRendered)},"event","init")},d.prototype.requestEventsUnrender=function(){var h=this;this.requestRender(function(){h.triggerBeforeEventsDestroyed(),h.executeEventUnrender()},"event","destroy")},d.prototype.requestBusinessHoursRender=function(h){var v=this;this.requestRender(function(){v.renderBusinessHours(h)},"businessHours","init")},d.prototype.requestBusinessHoursUnrender=function(){var h=this;this.requestRender(function(){h.unrenderBusinessHours()},"businessHours","destroy")},d.prototype.bindGlobalHandlers=function(){a.prototype.bindGlobalHandlers.call(this),this.listenTo(o.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},d.prototype.unbindGlobalHandlers=function(){a.prototype.unbindGlobalHandlers.call(this),this.stopListeningTo(o.default.get())},d.prototype.startNowIndicator=function(){var h=this,v,C,k;this.opt("nowIndicator")&&(v=this.getNowIndicatorUnit(),v&&(C=E.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=new Date().valueOf(),k=this.initialNowDate.clone().startOf(v).add(1,v).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){h.nowIndicatorTimeoutID=null,C(),k=+g.duration(1,v),k=Math.max(100,k),h.nowIndicatorIntervalID=setInterval(C,k)},k)))},d.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date().valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},d.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},d.prototype.updateSize=function(h,v,C){this.setHeight?this.setHeight(h,v):a.prototype.updateSize.call(this,h,v,C),this.updateNowIndicator()},d.prototype.addScroll=function(h){var v=this.queuedScroll||(this.queuedScroll={});w.extend(v,h)},d.prototype.popScroll=function(){this.applyQueuedScroll(),this.queuedScroll=null},d.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},d.prototype.queryScroll=function(){var h={};return this.isDatesRendered&&w.extend(h,this.queryDateScroll()),h},d.prototype.applyScroll=function(h){h.isDateInit&&this.isDatesRendered&&w.extend(h,this.computeInitialDateScroll()),this.isDatesRendered&&this.applyDateScroll(h)},d.prototype.computeInitialDateScroll=function(){return{}},d.prototype.queryDateScroll=function(){return{}},d.prototype.applyDateScroll=function(h){},d.prototype.reportEventDrop=function(h,v,C,k){var j=this.calendar.eventManager,G=j.mutateEventsWithId(h.def.id,v),N=v.dateMutation;N&&(h.dateProfile=N.buildNewDateProfile(h.dateProfile,this.calendar)),this.triggerEventDrop(h,N&&N.dateDelta||g.duration(),G,C,k)},d.prototype.triggerEventDrop=function(h,v,C,k,j){this.publiclyTrigger("eventDrop",{context:k[0],args:[h.toLegacy(),v,C,j,{},this]})},d.prototype.reportExternalDrop=function(h,v,C,k,j,G){v&&this.calendar.eventManager.addEventDef(h,C),this.triggerExternalDrop(h,v,k,j,G)},d.prototype.triggerExternalDrop=function(h,v,C,k,j){this.publiclyTrigger("drop",{context:C[0],args:[h.dateProfile.start.clone(),k,j,this]}),v&&this.publiclyTrigger("eventReceive",{context:this,args:[h.buildInstance().toLegacy(),this]})},d.prototype.reportEventResize=function(h,v,C,k){var j=this.calendar.eventManager,G=j.mutateEventsWithId(h.def.id,v);h.dateProfile=v.dateMutation.buildNewDateProfile(h.dateProfile,this.calendar),this.triggerEventResize(h,v.dateMutation.endDelta,G,C,k)},d.prototype.triggerEventResize=function(h,v,C,k,j){this.publiclyTrigger("eventResize",{context:k[0],args:[h.toLegacy(),v,C,j,{},this]})},d.prototype.select=function(h,v){this.unselect(v),this.renderSelectionFootprint(h),this.reportSelection(h,v)},d.prototype.renderSelectionFootprint=function(h){this.renderSelection?this.renderSelection(h.toLegacy(this.calendar)):a.prototype.renderSelectionFootprint.call(this,h)},d.prototype.reportSelection=function(h,v){this.isSelected=!0,this.triggerSelect(h,v)},d.prototype.triggerSelect=function(h,v){var C=this.calendar.footprintToDateProfile(h);this.publiclyTrigger("select",{context:this,args:[C.start,C.end,v,this]})},d.prototype.unselect=function(h){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[h,this]}))},d.prototype.selectEventInstance=function(h){(!this.selectedEventInstance||this.selectedEventInstance!==h)&&(this.unselectEventInstance(),this.getEventSegs().forEach(function(v){v.footprint.eventInstance===h&&v.el&&v.el.addClass("fc-selected")}),this.selectedEventInstance=h)},d.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(h){h.el&&h.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},d.prototype.isEventDefSelected=function(h){return this.selectedEventInstance&&this.selectedEventInstance.def.id===h.id},d.prototype.handleDocumentMousedown=function(h){E.isPrimaryMouseButton(h)&&this.processUnselect(h)},d.prototype.processUnselect=function(h){this.processRangeUnselect(h),this.processEventUnselect(h)},d.prototype.processRangeUnselect=function(h){var v;this.isSelected&&this.opt("unselectAuto")&&(v=this.opt("unselectCancel"),(!v||!w(h.target).closest(v).length)&&this.unselect(h))},d.prototype.processEventUnselect=function(h){this.selectedEventInstance&&(w(h.target).closest(".fc-selected").length||this.unselectEventInstance())},d.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},d.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},d.prototype.triggerDayClick=function(h,v,C){var k=this.calendar.footprintToDateProfile(h);this.publiclyTrigger("dayClick",{context:v,args:[k.start,C,this]})},d.prototype.isDateInOtherMonth=function(h,v){return!1},d.prototype.getUnzonedRangeOption=function(h){var v=this.opt(h);if(typeof v=="function"&&(v=v.apply(null,Array.prototype.slice.call(arguments,1))),v)return this.calendar.parseUnzonedRange(v)},d.prototype.initHiddenDays=function(){var h=this.opt("hiddenDays")||[],v=[],C=0,k;for(this.opt("weekends")===!1&&h.push(0,6),k=0;k<7;k++)(v[k]=w.inArray(k,h)!==-1)||C++;if(!C)throw new Error("invalid hiddenDays");this.isHiddenDayHash=v},d.prototype.trimHiddenDays=function(h){var v=h.getStart(),C=h.getEnd();return v&&(v=this.skipHiddenDays(v)),C&&(C=this.skipHiddenDays(C,-1,!0)),v===null||C===null||v<C?new c.default(v,C):null},d.prototype.isHiddenDay=function(h){return g.isMoment(h)&&(h=h.day()),this.isHiddenDayHash[h]},d.prototype.skipHiddenDays=function(h,v,C){v===void 0&&(v=1),C===void 0&&(C=!1);for(var k=h.clone();this.isHiddenDayHash[(k.day()+(C?v:0)+7)%7];)k.add(v,"days");return k},d}(u.default);m.default=l,l.prototype.usesMinMaxTime=!1,l.prototype.dateProfileGeneratorClass=i.default,l.watch("displayingDates",["isInDom","dateProfile"],function(a){this.requestDateRender(a.dateProfile)},function(){this.requestDateUnrender()}),l.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(a){this.requestBusinessHoursRender(a.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()}),l.watch("initialEvents",["dateProfile"],function(a){return this.fetchInitialEvents(a.dateProfile)}),l.watch("bindingEvents",["initialEvents"],function(a){this.setEvents(a.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),l.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),l.watch("title",["dateProfile"],function(a){return this.title=this.computeTitle(a.dateProfile)}),l.watch("legacyDateProps",["dateProfile"],function(a){var d=this.calendar,h=a.dateProfile;this.start=d.msToMoment(h.activeUnzonedRange.startMs,h.isRangeAllDay),this.end=d.msToMoment(h.activeUnzonedRange.endMs,h.isRangeAllDay),this.intervalStart=d.msToMoment(h.currentUnzonedRange.startMs,h.isRangeAllDay),this.intervalEnd=d.msToMoment(h.currentUnzonedRange.endMs,h.isRangeAllDay)})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=function(){function E(n,i){this.view=n._getView(),this.component=n,this.fillRenderer=i}return E.prototype.opt=function(n){return this.view.opt(n)},E.prototype.rangeUpdated=function(){var n,i;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat(),n=this.opt("displayEventTime"),n==null&&(n=this.computeDisplayEventTime()),i=this.opt("displayEventEnd"),i==null&&(i=this.computeDisplayEventEnd()),this.displayEventTime=n,this.displayEventEnd=i},E.prototype.render=function(n){var i=this.component._getDateProfile(),u,o,c,l=[],a=[];for(u in n)o=n[u],c=o.sliceRenderRanges(i.activeUnzonedRange),o.getEventDef().hasBgRendering()?l.push.apply(l,c):a.push.apply(a,c);this.renderBgRanges(l),this.renderFgRanges(a)},E.prototype.unrender=function(){this.unrenderBgRanges(),this.unrenderFgRanges()},E.prototype.renderFgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),u=this.component.eventFootprintsToSegs(i);u=this.renderFgSegEls(u),this.renderFgSegs(u)!==!1&&(this.fgSegs=u)},E.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]),this.fgSegs=null},E.prototype.renderBgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),u=this.component.eventFootprintsToSegs(i);this.renderBgSegs(u)!==!1&&(this.bgSegs=u)},E.prototype.unrenderBgRanges=function(){this.unrenderBgSegs(),this.bgSegs=null},E.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},E.prototype.renderFgSegs=function(n){return!1},E.prototype.unrenderFgSegs=function(n){},E.prototype.renderBgSegs=function(n){var i=this;if(this.fillRenderer)this.fillRenderer.renderSegs("bgEvent",n,{getClasses:function(u){return i.getBgClasses(u.footprint.eventDef)},getCss:function(u){return{"background-color":i.getBgColor(u.footprint.eventDef)}},filterEl:function(u,o){return i.filterEventRenderEl(u.footprint,o)}});else return!1},E.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},E.prototype.renderFgSegEls=function(n,i){var u=this;i===void 0&&(i=!1);var o=this.view.hasPublicHandlers("eventRender"),c="",l=[],a;if(n.length){for(a=0;a<n.length;a++)this.beforeFgSegHtml(n[a]),c+=this.fgSegHtml(n[a],i);p(c).each(function(d,h){var v=n[d],C=p(h);o&&(C=u.filterEventRenderEl(v.footprint,C)),C&&(C.data("fc-seg",v),v.el=C,l.push(v))})}return l},E.prototype.beforeFgSegHtml=function(n){},E.prototype.fgSegHtml=function(n,i){},E.prototype.getSegClasses=function(n,i,u){var o=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(n.footprint.eventDef));return i&&o.push("fc-draggable"),u&&o.push("fc-resizable"),this.view.isEventDefSelected(n.footprint.eventDef)&&o.push("fc-selected"),o},E.prototype.filterEventRenderEl=function(n,i){var u=n.getEventLegacy(),o=this.view.publiclyTrigger("eventRender",{context:u,args:[u,i,this.view]});return o===!1?i=null:o&&o!==!0&&(i=p(o)),i},E.prototype.getTimeText=function(n,i,u){return this._getTimeText(n.eventInstance.dateProfile.start,n.eventInstance.dateProfile.end,n.componentFootprint.isAllDay,i,u)},E.prototype._getTimeText=function(n,i,u,o,c){return o==null&&(o=this.eventTimeFormat),c==null&&(c=this.displayEventEnd),this.displayEventTime&&!u?c&&i?this.view.formatRange({start:n,end:i},!1,o):n.format(o):""},E.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},E.prototype.computeDisplayEventTime=function(){return!0},E.prototype.computeDisplayEventEnd=function(){return!0},E.prototype.getBgClasses=function(n){var i=this.getClasses(n);return i.push("fc-bgevent"),i},E.prototype.getClasses=function(n){var i=this.getStylingObjs(n),u,o=[];for(u=0;u<i.length;u++)o.push.apply(o,i[u].eventClassName||i[u].className||[]);return o},E.prototype.getSkinCss=function(n){return{"background-color":this.getBgColor(n),"border-color":this.getBorderColor(n),color:this.getTextColor(n)}},E.prototype.getBgColor=function(n){var i=this.getStylingObjs(n),u,o;for(u=0;u<i.length&&!o;u++)o=i[u].eventBackgroundColor||i[u].eventColor||i[u].backgroundColor||i[u].color;return o||(o=this.opt("eventBackgroundColor")||this.opt("eventColor")),o},E.prototype.getBorderColor=function(n){var i=this.getStylingObjs(n),u,o;for(u=0;u<i.length&&!o;u++)o=i[u].eventBorderColor||i[u].eventColor||i[u].borderColor||i[u].color;return o||(o=this.opt("eventBorderColor")||this.opt("eventColor")),o},E.prototype.getTextColor=function(n){var i=this.getStylingObjs(n),u,o;for(u=0;u<i.length&&!o;u++)o=i[u].eventTextColor||i[u].textColor;return o||(o=this.opt("eventTextColor")),o},E.prototype.getStylingObjs=function(n){var i=this.getFallbackStylingObjs(n);return i.unshift(n),i},E.prototype.getFallbackStylingObjs=function(n){return[n.source]},E.prototype.sortEventSegs=function(n){n.sort(w.proxy(this,"compareEventSegs"))},E.prototype.compareEventSegs=function(n,i){var u=n.footprint,o=i.footprint,c=u.componentFootprint,l=o.componentFootprint,a=c.unzonedRange,d=l.unzonedRange;return a.startMs-d.startMs||d.endMs-d.startMs-(a.endMs-a.startMs)||l.isAllDay-c.isAllDay||w.compareByFieldSpecs(u.eventDef,o.eventDef,this.view.eventOrderSpecs,u.eventDef.miscProps,o.eventDef.miscProps)},E}();m.default=g},,,,,function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(10);p.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?c(this,arguments[0]):this._ambigTime?p.oldMomentFormat(w(this),"YYYY-MM-DD"):this._ambigZone?p.oldMomentFormat(w(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?p.oldMomentFormat(w(this)):p.oldMomentProto.format.apply(this,arguments)},p.newMomentProto.toISOString=function(){return this._ambigTime?p.oldMomentFormat(w(this),"YYYY-MM-DD"):this._ambigZone?p.oldMomentFormat(w(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?p.oldMomentProto.toISOString.apply(w(this),arguments):p.oldMomentProto.toISOString.apply(this,arguments)};function w(X){return X.locale()!=="en"?X.clone().locale("en"):X}var g="\v",E="",n="",i=new RegExp(n+"([^"+n+"]*)"+n,"g"),u={t:function(X){return p.oldMomentFormat(X,"a").charAt(0)},T:function(X){return p.oldMomentFormat(X,"A").charAt(0)}},o={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};function c(X,Q){return N(h(Q).fakeFormatString,X)}m.formatDate=c;function l(X,Q,re,ge,Ce){var pe;return X=p.default.parseZone(X),Q=p.default.parseZone(Q),pe=X.localeData(),re=pe.longDateFormat(re)||re,a(h(re),X,Q,ge||" - ",Ce)}m.formatRange=l;function a(X,Q,re,ge,Ce){var pe=X.sameUnits,ie=Q.clone().stripZone(),oe=re.clone().stripZone(),me=T(X.fakeFormatString,Q),Fe=T(X.fakeFormatString,re),et,ft="",ze,bt="",St,Le="",Et="",Mt="";for(et=0;et<pe.length&&(!pe[et]||ie.isSame(oe,pe[et]));et++)ft+=me[et];for(ze=pe.length-1;ze>et&&(!pe[ze]||ie.isSame(oe,pe[ze]))&&!(ze-1===et&&me[ze]===".");ze--)bt=me[ze]+bt;for(St=et;St<=ze;St++)Le+=me[St],Et+=Fe[St];return(Le||Et)&&(Ce?Mt=Et+ge+Le:Mt=Le+ge+Et),A(ft+Mt+bt)}var d={};function h(X){return d[X]||(d[X]=v(X))}function v(X){var Q=C(X);return{fakeFormatString:j(Q),sameUnits:G(Q)}}function C(X){for(var Q=[],re,ge=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;re=ge.exec(X);)re[1]?Q.push.apply(Q,k(re[1])):re[2]?Q.push({maybe:C(re[2])}):re[3]?Q.push({token:re[3]}):re[5]&&Q.push.apply(Q,k(re[5]));return Q}function k(X){return X===". "?["."," "]:[X]}function j(X){var Q=[],re,ge;for(re=0;re<X.length;re++)ge=X[re],typeof ge=="string"?Q.push("["+ge+"]"):ge.token?ge.token in u?Q.push(E+"["+ge.token+"]"):Q.push(ge.token):ge.maybe&&Q.push(n+j(ge.maybe)+n);return Q.join(g)}function G(X){var Q=[],re,ge,Ce;for(re=0;re<X.length;re++)ge=X[re],ge.token?(Ce=o[ge.token.charAt(0)],Q.push(Ce?Ce.unit:"second")):ge.maybe?Q.push.apply(Q,G(ge.maybe)):Q.push(null);return Q}function N(X,Q){return A(T(X,Q).join(""))}function T(X,Q){var re=[],ge=p.oldMomentFormat(Q,X),Ce=ge.split(g),pe,ie;for(pe=0;pe<Ce.length;pe++)ie=Ce[pe],ie.charAt(0)===E?re.push(u[ie.substring(1)](Q)):re.push(ie);return re}function A(X){return X.replace(i,function(Q,re){return re.match(/[1-9]/)?re:""})}function U(X){var Q=C(X),re,ge,Ce,pe;for(re=0;re<Q.length;re++)ge=Q[re],ge.token&&(Ce=o[ge.token.charAt(0)],Ce&&(!pe||Ce.value>pe.value)&&(pe=Ce));return pe?pe.unit:null}m.queryMostGranularFormatUnit=U},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(32),g=t(11),E=t(7),n=function(i){p.__extends(u,i);function u(){var o=i.call(this)||this;return o._watchers={},o._props={},o.applyGlobalWatchers(),o.constructed(),o}return u.watch=function(o){for(var c=[],l=1;l<arguments.length;l++)c[l-1]=arguments[l];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs)),this.prototype._globalWatchArgs[o]=c},u.prototype.constructed=function(){},u.prototype.applyGlobalWatchers=function(){var o=this._globalWatchArgs,c;for(c in o)this.watch.apply(this,[c].concat(o[c]))},u.prototype.has=function(o){return o in this._props},u.prototype.get=function(o){return o===void 0?this._props:this._props[o]},u.prototype.set=function(o,c){var l;typeof o=="string"?(l={},l[o]=c===void 0?null:c):l=o,this.setProps(l)},u.prototype.reset=function(o){var c=this._props,l={},a;for(a in c)l[a]=void 0;for(a in o)l[a]=o[a];this.setProps(l)},u.prototype.unset=function(o){var c={},l,a;for(typeof o=="string"?l=[o]:l=o,a=0;a<l.length;a++)c[l[a]]=void 0;this.setProps(c)},u.prototype.setProps=function(o){var c={},l=0,a,d;for(a in o)d=o[a],(typeof d=="object"||d!==this._props[a])&&(c[a]=d,l++);if(l){this.trigger("before:batchChange",c);for(a in c)d=c[a],this.trigger("before:change",a,d),this.trigger("before:change:"+a,d);for(a in c)d=c[a],d===void 0?delete this._props[a]:this._props[a]=d,this.trigger("change:"+a,d),this.trigger("change",a,d);this.trigger("batchChange",c)}},u.prototype.watch=function(o,c,l,a){var d=this;this.unwatch(o),this._watchers[o]=this._watchDeps(c,function(h){var v=l.call(d,h);v&&v.then?(d.unset(o),v.then(function(C){d.set(o,C)})):d.set(o,v)},function(h){d.unset(o),a&&a.call(d,h)})},u.prototype.unwatch=function(o){var c=this._watchers[o];c&&(delete this._watchers[o],c.teardown())},u.prototype._watchDeps=function(o,c,l){var a=this,d=0,h=o.length,v=0,C={},k=[],j=!1,G=function(A,U,X){d++,d===1&&v===h&&(j=!0,l(C),j=!1)},N=function(A,U,X){U===void 0?(!X&&C[A]!==void 0&&v--,delete C[A]):(!X&&C[A]===void 0&&v++,C[A]=U),d--,d||v===h&&(j||c(C))},T=function(A,U){a.on(A,U),k.push([A,U])};return o.forEach(function(A){var U=!1;A.charAt(0)==="?"&&(A=A.substring(1),U=!0),T("before:change:"+A,function(X){G()}),T("change:"+A,function(X){N(A,X,U)})}),o.forEach(function(A){var U=!1;A.charAt(0)==="?"&&(A=A.substring(1),U=!0),a.has(A)?(C[A]=a.get(A),v++):U&&v++}),v===h&&c(C),{teardown:function(){for(var A=0;A<k.length;A++)a.off(k[A][0],k[A][1]);k=null,v===h&&l()},flash:function(){v===h&&(l(),c(C))}}},u.prototype.flash=function(o){var c=this._watchers[o];c&&c.flash()},u}(w.default);m.default=n,n.prototype._globalWatchArgs={},g.default.mixInto(n),E.default.mixInto(n)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(0),w=t(4),g=t(13),E=t(210);m.default={parse:function(n,i){return w.isTimeString(n.start)||p.isDuration(n.start)||w.isTimeString(n.end)||p.isDuration(n.end)?E.default.parse(n,i):g.default.parse(n,i)}}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(4),w=t(18),g=function(){function E(){this.clearEnd=!1,this.forceTimed=!1,this.forceAllDay=!1}return E.createFromDiff=function(n,i,u){var o=n.end&&!i.end,c=n.isAllDay()&&!i.isAllDay(),l=!n.isAllDay()&&i.isAllDay(),a,d,h,v;function C(k,j){return u?p.diffByUnit(k,j,u):i.isAllDay()?p.diffDay(k,j):p.diffDayTime(k,j)}return a=C(i.start,n.start),i.end&&(d=C(i.unzonedRange.getEnd(),n.unzonedRange.getEnd()),h=d.subtract(a)),v=new E,v.clearEnd=o,v.forceTimed=c,v.forceAllDay=l,v.setDateDelta(a),v.setEndDelta(h),v},E.prototype.buildNewDateProfile=function(n,i){var u=n.start.clone(),o=null,c=!1;return n.end&&!this.clearEnd?o=n.end.clone():this.endDelta&&!o&&(o=i.getDefaultEventEnd(n.isAllDay(),u)),this.forceTimed?(c=!0,u.hasTime()||u.time(0),o&&!o.hasTime()&&o.time(0)):this.forceAllDay&&(u.hasTime()&&u.stripTime(),o&&o.hasTime()&&o.stripTime()),this.dateDelta&&(c=!0,u.add(this.dateDelta),o&&o.add(this.dateDelta)),this.endDelta&&(c=!0,o.add(this.endDelta)),this.startDelta&&(c=!0,u.add(this.startDelta)),c&&(u=i.applyTimezone(u),o&&(o=i.applyTimezone(o))),!o&&i.opt("forceEventDuration")&&(o=i.getDefaultEventEnd(n.isAllDay(),u)),new w.default(u,o,i)},E.prototype.setDateDelta=function(n){n&&n.valueOf()?this.dateDelta=n:this.dateDelta=null},E.prototype.setStartDelta=function(n){n&&n.valueOf()?this.startDelta=n:this.startDelta=null},E.prototype.setEndDelta=function(n){n&&n.valueOf()?this.endDelta=n:this.endDelta=null},E.prototype.isEmpty=function(){return!this.clearEnd&&!this.forceTimed&&!this.forceAllDay&&!this.dateDelta&&!this.startDelta&&!this.endDelta},E}();m.default=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(213),w=t(214),g={};function E(i,u){g[i]=u}m.defineThemeSystem=E;function n(i){return i?i===!0?w.default:g[i]:p.default}m.getThemeSystemClass=n},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(20),n=t(6),i=t(13),u=function(o){p.__extends(c,o);function c(l){var a=o.call(this,l)||this;return a.eventDefs=[],a}return c.parse=function(l,a){var d;return w.isArray(l.events)?d=l:w.isArray(l)&&(d={events:l}),d?n.default.parse.call(this,d,a):!1},c.prototype.setRawEventDefs=function(l){this.rawEventDefs=l,this.eventDefs=this.parseEventDefs(l)},c.prototype.fetch=function(l,a,d){var h=this.eventDefs,v;if(this.currentTimezone!=null&&this.currentTimezone!==d)for(v=0;v<h.length;v++)h[v]instanceof i.default&&h[v].rezone();return this.currentTimezone=d,E.default.resolve(h)},c.prototype.addEventDef=function(l){this.eventDefs.push(l)},c.prototype.removeEventDefsById=function(l){return g.removeMatching(this.eventDefs,function(a){return a.id===l})},c.prototype.removeAllEventDefs=function(){this.eventDefs=[]},c.prototype.getPrimitive=function(){return this.rawEventDefs},c.prototype.applyManualStandardProps=function(l){var a=o.prototype.applyManualStandardProps.call(this,l);return this.setRawEventDefs(l.events),a},c}(n.default);m.default=u,u.defineStandardProps({events:!1})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=function(){function E(n){this.isHorizontal=!1,this.isVertical=!1,this.els=p(n.els),this.isHorizontal=n.isHorizontal,this.isVertical=n.isVertical,this.forcedOffsetParentEl=n.offsetParent?p(n.offsetParent):null}return E.prototype.build=function(){var n=this.forcedOffsetParentEl;!n&&this.els.length>0&&(n=this.els.eq(0).offsetParent()),this.origin=n?n.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},E.prototype.clear=function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},E.prototype.ensureBuilt=function(){this.origin||this.build()},E.prototype.buildElHorizontals=function(){var n=[],i=[];this.els.each(function(u,o){var c=p(o),l=c.offset().left,a=c.outerWidth();n.push(l),i.push(l+a)}),this.lefts=n,this.rights=i},E.prototype.buildElVerticals=function(){var n=[],i=[];this.els.each(function(u,o){var c=p(o),l=c.offset().top,a=c.outerHeight();n.push(l),i.push(l+a)}),this.tops=n,this.bottoms=i},E.prototype.getHorizontalIndex=function(n){this.ensureBuilt();var i=this.lefts,u=this.rights,o=i.length,c;for(c=0;c<o;c++)if(n>=i[c]&&n<u[c])return c},E.prototype.getVerticalIndex=function(n){this.ensureBuilt();var i=this.tops,u=this.bottoms,o=i.length,c;for(c=0;c<o;c++)if(n>=i[c]&&n<u[c])return c},E.prototype.getLeftOffset=function(n){return this.ensureBuilt(),this.lefts[n]},E.prototype.getLeftPosition=function(n){return this.ensureBuilt(),this.lefts[n]-this.origin.left},E.prototype.getRightOffset=function(n){return this.ensureBuilt(),this.rights[n]},E.prototype.getRightPosition=function(n){return this.ensureBuilt(),this.rights[n]-this.origin.left},E.prototype.getWidth=function(n){return this.ensureBuilt(),this.rights[n]-this.lefts[n]},E.prototype.getTopOffset=function(n){return this.ensureBuilt(),this.tops[n]},E.prototype.getTopPosition=function(n){return this.ensureBuilt(),this.tops[n]-this.origin.top},E.prototype.getBottomOffset=function(n){return this.ensureBuilt(),this.bottoms[n]},E.prototype.getBottomPosition=function(n){return this.ensureBuilt(),this.bottoms[n]-this.origin.top},E.prototype.getHeight=function(n){return this.ensureBuilt(),this.bottoms[n]-this.tops[n]},E.prototype.queryBoundingRect=function(){var n;return this.els.length>0&&(n=w.getScrollParent(this.els.eq(0)),!n.is(document))?w.getClientRect(n):null},E.prototype.isPointInBounds=function(n,i){return this.isLeftInBounds(n)&&this.isTopInBounds(i)},E.prototype.isLeftInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.left&&n<this.boundingRect.right},E.prototype.isTopInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.top&&n<this.boundingRect.bottom},E}();m.default=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=t(7),E=t(15),n=function(){function i(u){this.isInteracting=!1,this.isDistanceSurpassed=!1,this.isDelayEnded=!1,this.isDragging=!1,this.isTouch=!1,this.isGeneric=!1,this.shouldCancelTouchScroll=!0,this.scrollAlwaysKills=!1,this.isAutoScroll=!1,this.scrollSensitivity=30,this.scrollSpeed=200,this.scrollIntervalMs=50,this.options=u||{}}return i.prototype.startInteraction=function(u,o){if(o===void 0&&(o={}),u.type==="mousedown"){if(E.default.get().shouldIgnoreMouse())return;if(w.isPrimaryMouseButton(u))u.preventDefault();else return}this.isInteracting||(this.delay=w.firstDefined(o.delay,this.options.delay,0),this.minDistance=w.firstDefined(o.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,w.preventSelection(p("body")),this.isInteracting=!0,this.isTouch=w.getEvIsTouch(u),this.isGeneric=u.type==="dragstart",this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=w.getEvX(u),this.originY=w.getEvY(u),this.scrollEl=w.getScrollParent(p(u.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(u),this.startDelay(u),this.minDistance||this.handleDistanceSurpassed(u))},i.prototype.handleInteractionStart=function(u){this.trigger("interactionStart",u)},i.prototype.endInteraction=function(u,o){this.isInteracting&&(this.endDrag(u),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(u,o),w.allowSelection(p("body")))},i.prototype.handleInteractionEnd=function(u,o){this.trigger("interactionEnd",u,o||!1)},i.prototype.bindHandlers=function(){var u=E.default.get();this.isGeneric?this.listenTo(p(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(u,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(u,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(u,{selectstart:w.preventDefault,contextmenu:w.preventDefault})},i.prototype.unbindHandlers=function(){this.stopListeningTo(E.default.get()),this.stopListeningTo(p(document))},i.prototype.startDrag=function(u,o){this.startInteraction(u,o),this.isDragging||(this.isDragging=!0,this.handleDragStart(u))},i.prototype.handleDragStart=function(u){this.trigger("dragStart",u)},i.prototype.handleMove=function(u){var o=w.getEvX(u)-this.originX,c=w.getEvY(u)-this.originY,l=this.minDistance,a;this.isDistanceSurpassed||(a=o*o+c*c,a>=l*l&&this.handleDistanceSurpassed(u)),this.isDragging&&this.handleDrag(o,c,u)},i.prototype.handleDrag=function(u,o,c){this.trigger("drag",u,o,c),this.updateAutoScroll(c)},i.prototype.endDrag=function(u){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(u))},i.prototype.handleDragEnd=function(u){this.trigger("dragEnd",u)},i.prototype.startDelay=function(u){var o=this;this.delay?this.delayTimeoutId=setTimeout(function(){o.handleDelayEnd(u)},this.delay):this.handleDelayEnd(u)},i.prototype.handleDelayEnd=function(u){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(u)},i.prototype.handleDistanceSurpassed=function(u){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(u)},i.prototype.handleTouchMove=function(u){this.isDragging&&this.shouldCancelTouchScroll&&u.preventDefault(),this.handleMove(u)},i.prototype.handleMouseMove=function(u){this.handleMove(u)},i.prototype.handleTouchScroll=function(u){(!this.isDragging||this.scrollAlwaysKills)&&this.endInteraction(u,!0)},i.prototype.trigger=function(u){for(var o=[],c=1;c<arguments.length;c++)o[c-1]=arguments[c];this.options[u]&&this.options[u].apply(this,o),this["_"+u]&&this["_"+u].apply(this,o)},i.prototype.initAutoScroll=function(){var u=this.scrollEl;this.isAutoScroll=this.options.scroll&&u&&!u.is(window)&&!u.is(document),this.isAutoScroll&&this.listenTo(u,"scroll",w.debounce(this.handleDebouncedScroll,100))},i.prototype.destroyAutoScroll=function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},i.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=w.getOuterRect(this.scrollEl))},i.prototype.updateAutoScroll=function(u){var o=this.scrollSensitivity,c=this.scrollBounds,l,a,d,h,v=0,C=0;c&&(l=(o-(w.getEvY(u)-c.top))/o,a=(o-(c.bottom-w.getEvY(u)))/o,d=(o-(w.getEvX(u)-c.left))/o,h=(o-(c.right-w.getEvX(u)))/o,l>=0&&l<=1?v=l*this.scrollSpeed*-1:a>=0&&a<=1&&(v=a*this.scrollSpeed),d>=0&&d<=1?C=d*this.scrollSpeed*-1:h>=0&&h<=1&&(C=h*this.scrollSpeed)),this.setScrollVel(v,C)},i.prototype.setScrollVel=function(u,o){this.scrollTopVel=u,this.scrollLeftVel=o,this.constrainScrollVel(),(this.scrollTopVel||this.scrollLeftVel)&&!this.scrollIntervalId&&(this.scrollIntervalId=setInterval(w.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},i.prototype.constrainScrollVel=function(){var u=this.scrollEl;this.scrollTopVel<0?u.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&u.scrollTop()+u[0].clientHeight>=u[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?u.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&u.scrollLeft()+u[0].clientWidth>=u[0].scrollWidth&&(this.scrollLeftVel=0)},i.prototype.scrollIntervalFunc=function(){var u=this.scrollEl,o=this.scrollIntervalMs/1e3;this.scrollTopVel&&u.scrollTop(u.scrollTop()+this.scrollTopVel*o),this.scrollLeftVel&&u.scrollLeft(u.scrollLeft()+this.scrollLeftVel*o),this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel&&this.endAutoScroll()},i.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},i.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},i.prototype.handleScrollEnd=function(){},i}();m.default=n,g.default.mixInto(n)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=t(14),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.updateDayTable=function(){for(var u=this,o=u.view,c=o.calendar,l=c.msToUtcMoment(u.dateProfile.renderUnzonedRange.startMs,!0),a=c.msToUtcMoment(u.dateProfile.renderUnzonedRange.endMs,!0),d=-1,h=[],v=[],C,k,j;l.isBefore(a);)o.isHiddenDay(l)?h.push(d+.5):(d++,h.push(d),v.push(l.clone())),l.add(1,"days");if(this.breakOnWeeks){for(k=v[0].day(),C=1;C<v.length&&v[C].day()!==k;C++);j=Math.ceil(v.length/C)}else j=1,C=v.length;this.dayDates=v,this.dayIndices=h,this.daysPerRow=C,this.rowCnt=j,this.updateDayTableCols()},i.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},i.prototype.computeColCnt=function(){return this.daysPerRow},i.prototype.getCellDate=function(u,o){return this.dayDates[this.getCellDayIndex(u,o)].clone()},i.prototype.getCellRange=function(u,o){var c=this.getCellDate(u,o),l=c.clone().add(1,"days");return{start:c,end:l}},i.prototype.getCellDayIndex=function(u,o){return u*this.daysPerRow+this.getColDayIndex(o)},i.prototype.getColDayIndex=function(u){return this.isRTL?this.colCnt-1-u:u},i.prototype.getDateDayIndex=function(u){var o=this.dayIndices,c=u.diff(this.dayDates[0],"days");return c<0?o[0]-1:c>=o.length?o[o.length-1]+1:o[c]},i.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},i.prototype.sliceRangeByRow=function(u){var o=this.daysPerRow,c=this.view.computeDayRange(u),l=this.getDateDayIndex(c.start),a=this.getDateDayIndex(c.end.clone().subtract(1,"days")),d=[],h,v,C,k,j;for(h=0;h<this.rowCnt;h++)v=h*o,C=v+o-1,k=Math.max(l,v),j=Math.min(a,C),k=Math.ceil(k),j=Math.floor(j),k<=j&&d.push({row:h,firstRowDayIndex:k-v,lastRowDayIndex:j-v,isStart:k===l,isEnd:j===a});return d},i.prototype.sliceRangeByDay=function(u){var o=this.daysPerRow,c=this.view.computeDayRange(u),l=this.getDateDayIndex(c.start),a=this.getDateDayIndex(c.end.clone().subtract(1,"days")),d=[],h,v,C,k,j,G;for(h=0;h<this.rowCnt;h++)for(v=h*o,C=v+o-1,k=v;k<=C;k++)j=Math.max(l,k),G=Math.min(a,k),j=Math.ceil(j),G=Math.floor(G),j<=G&&d.push({row:h,firstRowDayIndex:j-v,lastRowDayIndex:G-v,isStart:j===l,isEnd:G===a});return d},i.prototype.renderHeadHtml=function(){var u=this.view.calendar.theme;return'<div class="fc-row '+u.getClass("headerRow")+'"><table class="'+u.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},i.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},i.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},i.prototype.renderHeadDateCellsHtml=function(){var u=[],o,c;for(o=0;o<this.colCnt;o++)c=this.getCellDate(0,o),u.push(this.renderHeadDateCellHtml(c));return u.join("")},i.prototype.renderHeadDateCellHtml=function(u,o,c){var l=this,a=l.view,d=l.dateProfile.activeUnzonedRange.containsDate(u),h=["fc-day-header",a.calendar.theme.getClass("widgetHeader")],v;return typeof l.opt("columnHeaderHtml")=="function"?v=l.opt("columnHeaderHtml")(u):typeof l.opt("columnHeaderText")=="function"?v=w.htmlEscape(l.opt("columnHeaderText")(u)):v=w.htmlEscape(u.format(l.colHeadFormat)),l.rowCnt===1?h=h.concat(l.getDayClasses(u,!0)):h.push("fc-"+w.dayIDs[u.day()]),'<th class="'+h.join(" ")+'"'+((d&&l.rowCnt)===1?' data-date="'+u.format("YYYY-MM-DD")+'"':"")+(o>1?' colspan="'+o+'"':"")+(c?" "+c:"")+">"+(d?a.buildGotoAnchorHtml({date:u,forceOff:l.rowCnt>1||l.colCnt===1},v):v)+"</th>"},i.prototype.renderBgTrHtml=function(u){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(u))+this.renderBgCellsHtml(u)+(this.isRTL?this.renderBgIntroHtml(u):"")+"</tr>"},i.prototype.renderBgIntroHtml=function(u){return this.renderIntroHtml()},i.prototype.renderBgCellsHtml=function(u){var o=[],c,l;for(c=0;c<this.colCnt;c++)l=this.getCellDate(u,c),o.push(this.renderBgCellHtml(l));return o.join("")},i.prototype.renderBgCellHtml=function(u,o){var c=this,l=c.view,a=c.dateProfile.activeUnzonedRange.containsDate(u),d=c.getDayClasses(u);return d.unshift("fc-day",l.calendar.theme.getClass("widgetContent")),'<td class="'+d.join(" ")+'"'+(a?' data-date="'+u.format("YYYY-MM-DD")+'"':"")+(o?" "+o:"")+"></td>"},i.prototype.renderIntroHtml=function(){},i.prototype.bookendCells=function(u){var o=this.renderIntroHtml();o&&(this.isRTL?u.append(o):u.prepend(o))},i}(g.default);m.default=E},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(w,g){this.component=w,this.fillRenderer=g}return p.prototype.render=function(w){var g=this.component,E=g._getDateProfile().activeUnzonedRange,n=w.buildEventInstanceGroup(g.hasAllDayBusinessHours,E),i=n?g.eventRangesToEventFootprints(n.sliceRenderRanges(E)):[];this.renderEventFootprints(i)},p.prototype.renderEventFootprints=function(w){var g=this.component.eventFootprintsToSegs(w);this.renderSegs(g),this.segs=g},p.prototype.renderSegs=function(w){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",w,{getClasses:function(g){return["fc-nonbusiness","fc-bgevent"]}})},p.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours"),this.segs=null},p.prototype.getSegs=function(){return this.segs||[]},p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=function(){function E(n){this.fillSegTag="div",this.component=n,this.elsByFill={}}return E.prototype.renderFootprint=function(n,i,u){this.renderSegs(n,this.component.componentFootprintToSegs(i),u)},E.prototype.renderSegs=function(n,i,u){var o;return i=this.buildSegEls(n,i,u),o=this.attachSegEls(n,i),o&&this.reportEls(n,o),i},E.prototype.unrender=function(n){var i=this.elsByFill[n];i&&(i.remove(),delete this.elsByFill[n])},E.prototype.buildSegEls=function(n,i,u){var o=this,c="",l=[],a;if(i.length){for(a=0;a<i.length;a++)c+=this.buildSegHtml(n,i[a],u);p(c).each(function(d,h){var v=i[d],C=p(h);u.filterEl&&(C=u.filterEl(v,C)),C&&(C=p(C),C.is(o.fillSegTag)&&(v.el=C,l.push(v)))})}return l},E.prototype.buildSegHtml=function(n,i,u){var o=u.getClasses?u.getClasses(i):[],c=w.cssToStr(u.getCss?u.getCss(i):{});return"<"+this.fillSegTag+(o.length?' class="'+o.join(" ")+'"':"")+(c?' style="'+c+'"':"")+" />"},E.prototype.attachSegEls=function(n,i){},E.prototype.reportEls=function(n,i){this.elsByFill[n]?this.elsByFill[n]=this.elsByFill[n].add(i):this.elsByFill[n]=p(i)},E}();m.default=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(13),w=t(35),g=t(6),E=function(){function n(i,u){this.view=i._getView(),this.component=i,this.eventRenderer=u}return n.prototype.renderComponentFootprint=function(i){this.renderEventFootprints([this.fabricateEventFootprint(i)])},n.prototype.renderEventDraggingFootprints=function(i,u,o){this.renderEventFootprints(i,u,"fc-dragging",o?null:this.view.opt("dragOpacity"))},n.prototype.renderEventResizingFootprints=function(i,u,o){this.renderEventFootprints(i,u,"fc-resizing")},n.prototype.renderEventFootprints=function(i,u,o,c){var l=this.component.eventFootprintsToSegs(i),a="fc-helper "+(o||""),d;for(l=this.eventRenderer.renderFgSegEls(l),d=0;d<l.length;d++)l[d].el.addClass(a);if(c!=null)for(d=0;d<l.length;d++)l[d].el.css("opacity",c);this.helperEls=this.renderSegs(l,u)},n.prototype.renderSegs=function(i,u){},n.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},n.prototype.fabricateEventFootprint=function(i){var u=this.view.calendar,o=u.footprintToDateProfile(i),c=new p.default(new g.default(u)),l;return c.dateProfile=o,l=c.buildInstance(),new w.default(i,c,l)},n}();m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(15),g=t(16),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.bindToEl=function(u){var o=this.component;o.bindSegHandlerToEl(u,"click",this.handleClick.bind(this)),o.bindSegHandlerToEl(u,"mouseenter",this.handleMouseover.bind(this)),o.bindSegHandlerToEl(u,"mouseleave",this.handleMouseout.bind(this))},i.prototype.handleClick=function(u,o){var c=this.component.publiclyTrigger("eventClick",{context:u.el[0],args:[u.footprint.getEventLegacy(),o,this.view]});c===!1&&o.preventDefault()},i.prototype.handleMouseover=function(u,o){!w.default.get().shouldIgnoreMouse()&&!this.mousedOverSeg&&(this.mousedOverSeg=u,this.view.isEventDefResizable(u.footprint.eventDef)&&u.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:u.el[0],args:[u.footprint.getEventLegacy(),o,this.view]}))},i.prototype.handleMouseout=function(u,o){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(u.footprint.eventDef)&&u.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:u.el[0],args:[u.footprint.getEventLegacy(),o||{},this.view]}))},i.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(14),g=t(245),E=t(225),n=t(59),i=t(224),u=t(223),o=t(222),c=function(l){p.__extends(a,l);function a(){return l!==null&&l.apply(this,arguments)||this}return a}(w.default);m.default=c,c.prototype.dateClickingClass=g.default,c.prototype.dateSelectingClass=E.default,c.prototype.eventPointingClass=n.default,c.prototype.eventDraggingClass=i.default,c.prototype.eventResizingClass=u.default,c.prototype.externalDroppingClass=o.default},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(53),n=t(249),i=t(5),u=t(12),o=t(35),c=t(56),l=t(60),a=t(40),d=t(55),h=t(250),v=t(251),C=t(252),k=function(j){p.__extends(G,j);function G(N){var T=j.call(this,N)||this;return T.cellWeekNumbersVisible=!1,T.bottomCoordPadding=0,T.isRigid=!1,T.hasAllDayBusinessHours=!0,T}return G.prototype.componentFootprintToSegs=function(N){var T=this.sliceRangeByRow(N.unzonedRange),A,U;for(A=0;A<T.length;A++)U=T[A],this.isRTL?(U.leftCol=this.daysPerRow-1-U.lastRowDayIndex,U.rightCol=this.daysPerRow-1-U.firstRowDayIndex):(U.leftCol=U.firstRowDayIndex,U.rightCol=U.lastRowDayIndex);return T},G.prototype.renderDates=function(N){this.dateProfile=N,this.updateDayTable(),this.renderGrid()},G.prototype.unrenderDates=function(){this.removeSegPopover()},G.prototype.renderGrid=function(){var N=this.view,T=this.rowCnt,A=this.colCnt,U="",X,Q;for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),X=0;X<T;X++)U+=this.renderDayRowHtml(X,this.isRigid);for(this.el.html(U),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new E.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new E.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),X=0;X<T;X++)for(Q=0;Q<A;Q++)this.publiclyTrigger("dayRender",{context:N,args:[this.getCellDate(X,Q),this.getCellEl(X,Q),N]})},G.prototype.renderDayRowHtml=function(N,T){var A=this.view.calendar.theme,U=["fc-row","fc-week",A.getClass("dayRow")];return T&&U.push("fc-rigid"),'<div class="'+U.join(" ")+'"><div class="fc-bg"><table class="'+A.getClass("tableGrid")+'">'+this.renderBgTrHtml(N)+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(N)+"</thead>":"")+"</table></div></div>"},G.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},G.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},G.prototype.renderNumberTrHtml=function(N){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(N))+this.renderNumberCellsHtml(N)+(this.isRTL?this.renderNumberIntroHtml(N):"")+"</tr>"},G.prototype.renderNumberIntroHtml=function(N){return this.renderIntroHtml()},G.prototype.renderNumberCellsHtml=function(N){var T=[],A,U;for(A=0;A<this.colCnt;A++)U=this.getCellDate(N,A),T.push(this.renderNumberCellHtml(U));return T.join("")},G.prototype.renderNumberCellHtml=function(N){var T=this.view,A="",U=this.dateProfile.activeUnzonedRange.containsDate(N),X=this.getIsDayNumbersVisible()&&U,Q,re;return!X&&!this.cellWeekNumbersVisible?"<td/>":(Q=this.getDayClasses(N),Q.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(N._locale._fullCalendar_weekCalc==="ISO"?re=1:re=N._locale.firstDayOfWeek()),A+='<td class="'+Q.join(" ")+'"'+(U?' data-date="'+N.format()+'"':"")+">",this.cellWeekNumbersVisible&&N.day()===re&&(A+=T.buildGotoAnchorHtml({date:N,type:"week"},{class:"fc-week-number"},N.format("w"))),X&&(A+=T.buildGotoAnchorHtml(N,{class:"fc-day-number"},N.format("D"))),A+="</td>",A)},G.prototype.prepareHits=function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},G.prototype.releaseHits=function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},G.prototype.queryHit=function(N,T){if(this.colCoordCache.isLeftInBounds(N)&&this.rowCoordCache.isTopInBounds(T)){var A=this.colCoordCache.getHorizontalIndex(N),U=this.rowCoordCache.getVerticalIndex(T);if(U!=null&&A!=null)return this.getCellHit(U,A)}},G.prototype.getHitFootprint=function(N){var T=this.getCellRange(N.row,N.col);return new u.default(new i.default(T.start,T.end),!0)},G.prototype.getHitEl=function(N){return this.getCellEl(N.row,N.col)},G.prototype.getCellHit=function(N,T){return{row:N,col:T,component:this,left:this.colCoordCache.getLeftOffset(T),right:this.colCoordCache.getRightOffset(T),top:this.rowCoordCache.getTopOffset(N),bottom:this.rowCoordCache.getBottomOffset(N)}},G.prototype.getCellEl=function(N,T){return this.cellEls.eq(N*this.colCnt+T)},G.prototype.executeEventUnrender=function(){this.removeSegPopover(),j.prototype.executeEventUnrender.call(this)},G.prototype.getOwnEventSegs=function(){return j.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},G.prototype.renderDrag=function(N,T,A){var U;for(U=0;U<N.length;U++)this.renderHighlight(N[U].componentFootprint);if(N.length&&T&&T.component!==this)return this.helperRenderer.renderEventDraggingFootprints(N,T,A),!0},G.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},G.prototype.renderEventResize=function(N,T,A){var U;for(U=0;U<N.length;U++)this.renderHighlight(N[U].componentFootprint);this.helperRenderer.renderEventResizingFootprints(N,T,A)},G.prototype.unrenderEventResize=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},G.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},G.prototype.limitRows=function(N){var T=this.eventRenderer.rowStructs||[],A,U;for(A=0;A<T.length;A++)this.unlimitRow(A),N?typeof N=="number"?U=N:U=this.computeRowLevelLimit(A):U=!1,U!==!1&&this.limitRow(A,U)},G.prototype.computeRowLevelLimit=function(N){var T=this.rowEls.eq(N),A=T.height(),U=this.eventRenderer.rowStructs[N].tbodyEl.children(),X,Q,re;function ge(Ce,pe){re=Math.max(re,w(pe).outerHeight())}for(X=0;X<U.length;X++)if(Q=U.eq(X).removeClass("fc-limited"),re=0,Q.find("> td > :first-child").each(ge),Q.position().top+re>A)return X;return!1},G.prototype.limitRow=function(N,T){var A=this,U=this.eventRenderer.rowStructs[N],X=[],Q=0,re,ge,Ce,pe,ie,oe,me,Fe,et,ft,ze,bt,St,Le,Et,Mt=function(at){for(;Q<at;)oe=A.getCellSegs(N,Q,T),oe.length&&(et=ge[T-1][Q],Et=A.renderMoreLink(N,Q,oe),Le=w("<div/>").append(Et),et.append(Le),X.push(Le[0])),Q++};if(T&&T<U.segLevels.length){for(re=U.segLevels[T-1],ge=U.cellMatrix,Ce=U.tbodyEl.children().slice(T).addClass("fc-limited").get(),pe=0;pe<re.length;pe++){for(ie=re[pe],Mt(ie.leftCol),Fe=[],me=0;Q<=ie.rightCol;)oe=this.getCellSegs(N,Q,T),Fe.push(oe),me+=oe.length,Q++;if(me){for(et=ge[T-1][ie.leftCol],ft=et.attr("rowspan")||1,ze=[],bt=0;bt<Fe.length;bt++)St=w('<td class="fc-more-cell"/>').attr("rowspan",ft),oe=Fe[bt],Et=this.renderMoreLink(N,ie.leftCol+bt,[ie].concat(oe)),Le=w("<div/>").append(Et),St.append(Le),ze.push(St[0]),X.push(St[0]);et.addClass("fc-limited").after(w(ze)),Ce.push(et[0])}}Mt(this.colCnt),U.moreEls=w(X),U.limitedEls=w(Ce)}},G.prototype.unlimitRow=function(N){var T=this.eventRenderer.rowStructs[N];T.moreEls&&(T.moreEls.remove(),T.moreEls=null),T.limitedEls&&(T.limitedEls.removeClass("fc-limited"),T.limitedEls=null)},G.prototype.renderMoreLink=function(N,T,A){var U=this,X=this.view;return w('<a class="fc-more"/>').text(this.getMoreLinkText(A.length)).on("click",function(Q){var re=U.opt("eventLimitClick"),ge=U.getCellDate(N,T),Ce=w(Q.currentTarget),pe=U.getCellEl(N,T),ie=U.getCellSegs(N,T),oe=U.resliceDaySegs(ie,ge),me=U.resliceDaySegs(A,ge);typeof re=="function"&&(re=U.publiclyTrigger("eventLimitClick",{context:X,args:[{date:ge.clone(),dayEl:pe,moreEl:Ce,segs:oe,hiddenSegs:me},Q,X]})),re==="popover"?U.showSegPopover(N,T,Ce,oe):typeof re=="string"&&X.calendar.zoomTo(ge,re)})},G.prototype.showSegPopover=function(N,T,A,U){var X=this,Q=this.view,re=A.parent(),ge,Ce;this.rowCnt===1?ge=Q.el:ge=this.rowEls.eq(N),Ce={className:"fc-more-popover "+Q.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(N,T,U),parentEl:Q.el,top:ge.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){X.popoverSegs&&X.triggerBeforeEventSegsDestroyed(X.popoverSegs),X.segPopover.removeElement(),X.segPopover=null,X.popoverSegs=null}},this.isRTL?Ce.right=re.offset().left+re.outerWidth()+1:Ce.left=re.offset().left-1,this.segPopover=new n.default(Ce),this.segPopover.show(),this.bindAllSegHandlersToEl(this.segPopover.el),this.triggerAfterEventSegsRendered(U)},G.prototype.renderSegPopoverContent=function(N,T,A){var U=this.view,X=U.calendar.theme,Q=this.getCellDate(N,T).format(this.opt("dayPopoverFormat")),re=w('<div class="fc-header '+X.getClass("popoverHeader")+'"><span class="fc-close '+X.getIconClass("close")+'"></span><span class="fc-title">'+g.htmlEscape(Q)+'</span><div class="fc-clear"/></div><div class="fc-body '+X.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>'),ge=re.find(".fc-event-container"),Ce;for(A=this.eventRenderer.renderFgSegEls(A,!0),this.popoverSegs=A,Ce=0;Ce<A.length;Ce++)this.hitsNeeded(),A[Ce].hit=this.getCellHit(N,T),this.hitsNotNeeded(),ge.append(A[Ce].el);return re},G.prototype.resliceDaySegs=function(N,T){var A=T.clone(),U=A.clone().add(1,"days"),X=new i.default(A,U),Q=[],re,ge,Ce;for(re=0;re<N.length;re++)ge=N[re],Ce=ge.footprint.componentFootprint.unzonedRange.intersect(X),Ce&&Q.push(w.extend({},ge,{footprint:new o.default(new u.default(Ce,ge.footprint.componentFootprint.isAllDay),ge.footprint.eventDef,ge.footprint.eventInstance),isStart:ge.isStart&&Ce.isStart,isEnd:ge.isEnd&&Ce.isEnd}));return this.eventRenderer.sortEventSegs(Q),Q},G.prototype.getMoreLinkText=function(N){var T=this.opt("eventLimitText");return typeof T=="function"?T(N):"+"+N+" "+T},G.prototype.getCellSegs=function(N,T,A){for(var U=this.eventRenderer.rowStructs[N].segMatrix,X=A||0,Q=[],re;X<U.length;)re=U[X][T],re&&Q.push(re),X++;return Q},G}(a.default);m.default=k,k.prototype.eventRendererClass=h.default,k.prototype.businessHourRendererClass=c.default,k.prototype.helperRendererClass=v.default,k.prototype.fillRendererClass=C.default,l.default.mixInto(k),d.default.mixInto(k)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(39),n=t(41),i=t(228),u=t(61),o=function(l){p.__extends(a,l);function a(d,h){var v=l.call(this,d,h)||this;return v.dayGrid=v.instantiateDayGrid(),v.dayGrid.isRigid=v.hasRigidRows(),v.opt("weekNumbers")&&(v.opt("weekNumbersWithinDays")?(v.dayGrid.cellWeekNumbersVisible=!0,v.dayGrid.colWeekNumbersVisible=!1):(v.dayGrid.cellWeekNumbersVisible=!1,v.dayGrid.colWeekNumbersVisible=!0)),v.addChild(v.dayGrid),v.scroller=new E.default({overflowX:"hidden",overflowY:"auto"}),v}return a.prototype.instantiateDayGrid=function(){var d=c(this.dayGridClass);return new d(this)},a.prototype.executeDateRender=function(d){this.dayGrid.breakOnWeeks=/year|month|week/.test(d.currentRangeUnit),l.prototype.executeDateRender.call(this,d)},a.prototype.renderSkeleton=function(){var d,h;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.scroller.render(),d=this.scroller.el.addClass("fc-day-grid-container"),h=w('<div class="fc-day-grid" />').appendTo(d),this.el.find(".fc-body > tr > td").append(d),this.dayGrid.headContainerEl=this.el.find(".fc-head-container"),this.dayGrid.setElement(h)},a.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement(),this.scroller.destroy()},a.prototype.renderSkeletonHtml=function(){var d=this.calendar.theme;return'<table class="'+d.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+d.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+d.getClass("widgetContent")+'"></td></tr></tbody></table>'},a.prototype.weekNumberStyleAttr=function(){return this.weekNumberWidth!=null?'style="width:'+this.weekNumberWidth+'px"':""},a.prototype.hasRigidRows=function(){var d=this.opt("eventLimit");return d&&typeof d!="number"},a.prototype.updateSize=function(d,h,v){var C=this.opt("eventLimit"),k=this.dayGrid.headContainerEl.find(".fc-row"),j,G;if(!this.dayGrid.rowEls){h||(j=this.computeScrollerHeight(d),this.scroller.setHeight(j));return}l.prototype.updateSize.call(this,d,h,v),this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=g.matchCellWidths(this.el.find(".fc-week-number"))),this.scroller.clear(),g.uncompensateScroll(k),this.dayGrid.removeSegPopover(),C&&typeof C=="number"&&this.dayGrid.limitRows(C),j=this.computeScrollerHeight(d),this.setGridHeight(j,h),C&&typeof C!="number"&&this.dayGrid.limitRows(C),h||(this.scroller.setHeight(j),G=this.scroller.getScrollbarWidths(),(G.left||G.right)&&(g.compensateScroll(k,G),j=this.computeScrollerHeight(d),this.scroller.setHeight(j)),this.scroller.lockOverflow(G))},a.prototype.computeScrollerHeight=function(d){return d-g.subtractInnerElHeight(this.el,this.scroller.el)},a.prototype.setGridHeight=function(d,h){h?g.undistributeHeight(this.dayGrid.rowEls):g.distributeHeight(this.dayGrid.rowEls,d,!0)},a.prototype.computeInitialDateScroll=function(){return{top:0}},a.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},a.prototype.applyDateScroll=function(d){d.top!==void 0&&this.scroller.setScrollTop(d.top)},a}(n.default);m.default=o,o.prototype.dateProfileGeneratorClass=i.default,o.prototype.dayGridClass=u.default;function c(l){return function(a){p.__extends(d,a);function d(){var h=a!==null&&a.apply(this,arguments)||this;return h.colWeekNumbersVisible=!1,h}return d.prototype.renderHeadIntroHtml=function(){var h=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+h.calendar.theme.getClass("widgetHeader")+'" '+h.weekNumberStyleAttr()+"><span>"+g.htmlEscape(this.opt("weekNumberTitle"))+"</span></th>":""},d.prototype.renderNumberIntroHtml=function(h){var v=this.view,C=this.getCellDate(h,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+v.weekNumberStyleAttr()+">"+v.buildGotoAnchorHtml({date:C,type:"week",forceOff:this.colCnt===1},C.format("w"))+"</td>":""},d.prototype.renderBgIntroHtml=function(){var h=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+h.calendar.theme.getClass("widgetContent")+'" '+h.weekNumberStyleAttr()+"></td>":""},d.prototype.renderIntroHtml=function(){var h=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+h.weekNumberStyleAttr()+"></td>":""},d.prototype.getIsNumbersVisible=function(){return u.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},d}(l)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(5),w=t(12),g=t(49),E=t(6),n=t(34),i=function(){function c(l,a){this.eventManager=l,this._calendar=a}return c.prototype.opt=function(l){return this._calendar.opt(l)},c.prototype.isEventInstanceGroupAllowed=function(l){var a=l.getEventDef(),d=this.eventRangesToEventFootprints(l.getAllEventRanges()),h,v=this.getPeerEventInstances(a),C=v.map(n.eventInstanceToEventRange),k=this.eventRangesToEventFootprints(C),j=a.getConstraint(),G=a.getOverlap(),N=this.opt("eventAllow");for(h=0;h<d.length;h++)if(!this.isFootprintAllowed(d[h].componentFootprint,k,j,G,d[h].eventInstance))return!1;if(N){for(h=0;h<d.length;h++)if(N(d[h].componentFootprint.toLegacy(this._calendar),d[h].getEventLegacy())===!1)return!1}return!0},c.prototype.getPeerEventInstances=function(l){return this.eventManager.getEventInstancesWithoutId(l.id)},c.prototype.isSelectionFootprintAllowed=function(l){var a=this.eventManager.getEventInstances(),d=a.map(n.eventInstanceToEventRange),h=this.eventRangesToEventFootprints(d),v;return this.isFootprintAllowed(l,h,this.opt("selectConstraint"),this.opt("selectOverlap"))?(v=this.opt("selectAllow"),v?v(l.toLegacy(this._calendar))!==!1:!0):!1},c.prototype.isFootprintAllowed=function(l,a,d,h,v){var C,k;if(d!=null&&(C=this.constraintValToFootprints(d,l.isAllDay),!this.isFootprintWithinConstraints(l,C)))return!1;if(k=this.collectOverlapEventFootprints(a,l),h===!1){if(k.length)return!1}else if(typeof h=="function"&&!u(k,h,v))return!1;return!(v&&!o(k,v))},c.prototype.isFootprintWithinConstraints=function(l,a){var d;for(d=0;d<a.length;d++)if(this.footprintContainsFootprint(a[d],l))return!0;return!1},c.prototype.constraintValToFootprints=function(l,a){var d;if(l==="businessHours")return this.buildCurrentBusinessFootprints(a);if(typeof l=="object")return d=this.parseEventDefToInstances(l),d?this.eventInstancesToFootprints(d):this.parseFootprints(l);if(l!=null)return d=this.eventManager.getEventInstancesWithId(l),this.eventInstancesToFootprints(d)},c.prototype.buildCurrentBusinessFootprints=function(l){var a=this._calendar.view,d=a.get("businessHourGenerator"),h=a.dateProfile.activeUnzonedRange,v=d.buildEventInstanceGroup(l,h);return v?this.eventInstancesToFootprints(v.eventInstances):[]},c.prototype.eventInstancesToFootprints=function(l){var a=l.map(n.eventInstanceToEventRange),d=this.eventRangesToEventFootprints(a);return d.map(n.eventFootprintToComponentFootprint)},c.prototype.collectOverlapEventFootprints=function(l,a){var d=[],h;for(h=0;h<l.length;h++)this.footprintsIntersect(a,l[h].componentFootprint)&&d.push(l[h]);return d},c.prototype.parseEventDefToInstances=function(l){var a=this.eventManager,d=g.default.parse(l,new E.default(this._calendar));return d?d.buildInstances(a.currentPeriod.unzonedRange):!1},c.prototype.eventRangesToEventFootprints=function(l){var a,d=[];for(a=0;a<l.length;a++)d.push.apply(d,this.eventRangeToEventFootprints(l[a]));return d},c.prototype.eventRangeToEventFootprints=function(l){return[n.eventRangeToEventFootprint(l)]},c.prototype.parseFootprints=function(l){var a,d;return l.start&&(a=this._calendar.moment(l.start),a.isValid()||(a=null)),l.end&&(d=this._calendar.moment(l.end),d.isValid()||(d=null)),[new w.default(new p.default(a,d),a&&!a.hasTime()||d&&!d.hasTime())]},c.prototype.footprintContainsFootprint=function(l,a){return l.unzonedRange.containsRange(a.unzonedRange)},c.prototype.footprintsIntersect=function(l,a){return l.unzonedRange.intersectsWith(a.unzonedRange)},c}();m.default=i;function u(c,l,a){var d;for(d=0;d<c.length;d++)if(!l(c[d].eventInstance.toLegacy(),a?a.toLegacy():null))return!1;return!0}function o(c,l){var a=l.toLegacy(),d,h,v,C;for(d=0;d<c.length;d++){if(h=c[d].eventInstance,v=h.def,C=v.getOverlap(),C===!1)return!1;if(typeof C=="function"&&!C(h.toLegacy(),a))return!1}return!0}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=t(14),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.defineStandardProps=function(u){var o=this.prototype;o.hasOwnProperty("standardPropMap")||(o.standardPropMap=Object.create(o.standardPropMap)),w.copyOwnProps(u,o.standardPropMap)},i.copyVerbatimStandardProps=function(u,o){var c=this.prototype.standardPropMap,l;for(l in c)u[l]!=null&&c[l]===!0&&(o[l]=u[l])},i.prototype.applyProps=function(u){var o=this.standardPropMap,c={},l={},a;for(a in u)o[a]===!0?this[a]=u[a]:o[a]===!1?c[a]=u[a]:l[a]=u[a];return this.applyMiscProps(l),this.applyManualStandardProps(c)},i.prototype.applyManualStandardProps=function(u){return!0},i.prototype.applyMiscProps=function(u){},i.prototype.isStandardProp=function(u){return u in this.standardPropMap},i}(g.default);m.default=E,E.prototype.standardPropMap={}},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(w,g){this.def=w,this.dateProfile=g}return p.prototype.toLegacy=function(){var w=this.dateProfile,g=this.def.toLegacy();return g.start=w.start.clone(),g.end=w.end?w.end.clone():null,g},p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(0),E=t(33),n=t(209),i=t(18),u=function(o){p.__extends(c,o);function c(){return o!==null&&o.apply(this,arguments)||this}return c.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},c.prototype.buildInstances=function(l){for(var a=this.source.calendar,d=l.getStart(),h=l.getEnd(),v,C,k,j=[];d.isBefore(h);)(!this.dowHash||this.dowHash[d.day()])&&(v=a.applyTimezone(d),C=v.clone(),k=null,this.startTime?C.time(this.startTime):C.stripTime(),this.endTime&&(k=v.clone().time(this.endTime)),j.push(new n.default(this,new i.default(C,k,a)))),d.add(1,"days");return j},c.prototype.setDow=function(l){this.dowHash||(this.dowHash={});for(var a=0;a<l.length;a++)this.dowHash[l[a]]=!0},c.prototype.clone=function(){var l=o.prototype.clone.call(this);return l.startTime&&(l.startTime=g.duration(this.startTime)),l.endTime&&(l.endTime=g.duration(this.endTime)),this.dowHash&&(l.dowHash=w.extend({},this.dowHash)),l},c}(E.default);m.default=u,u.prototype.applyProps=function(o){var c=E.default.prototype.applyProps.call(this,o);return o.start&&(this.startTime=g.duration(o.start)),o.end&&(this.endTime=g.duration(o.end)),o.dow&&this.setDow(o.dow),c},u.defineStandardProps({start:!1,end:!1,dow:!1})},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(w,g,E){this.unzonedRange=w,this.eventDef=g,E&&(this.eventInstance=E)}return p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(34),g=t(19),E=t(210),n=t(6),i={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},u=function(){function o(c,l){this.rawComplexDef=c,this.calendar=l}return o.prototype.buildEventInstanceGroup=function(c,l){var a=this.buildEventDefs(c),d;if(a.length)return d=new g.default(w.eventDefsToEventInstances(a,l)),d.explicitEventDef=a[0],d},o.prototype.buildEventDefs=function(c){var l=this.rawComplexDef,a=[],d=!1,h,v=[];for(l===!0?a=[{}]:p.isPlainObject(l)?a=[l]:p.isArray(l)&&(a=l,d=!0),h=0;h<a.length;h++)(!d||a[h].dow)&&v.push(this.buildEventDef(c,a[h]));return v},o.prototype.buildEventDef=function(c,l){var a=p.extend({},i,l);return c&&(a.start=null,a.end=null),E.default.parse(a,new n.default(this.calendar))},o}();m.default=u},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(38),g=function(E){p.__extends(n,E);function n(){return E!==null&&E.apply(this,arguments)||this}return n}(w.default);m.default=g,g.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},g.prototype.baseIconClass="fc-icon",g.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"},g.prototype.iconOverrideOption="buttonIcons",g.prototype.iconOverrideCustomButtonOption="icon",g.prototype.iconOverridePrefix="fc-icon-"},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(38),g=function(E){p.__extends(n,E);function n(){return E!==null&&E.apply(this,arguments)||this}return n}(w.default);m.default=g,g.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"},g.prototype.baseIconClass="ui-icon",g.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"},g.prototype.iconOverrideOption="themeButtonIcons",g.prototype.iconOverrideCustomButtonOption="themeIcon",g.prototype.iconOverridePrefix="ui-icon-"},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(20),E=t(6),n=function(i){p.__extends(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.parse=function(o,c){var l;return w.isFunction(o.events)?l=o:w.isFunction(o)&&(l={events:o}),l?E.default.parse.call(this,l,c):!1},u.prototype.fetch=function(o,c,l){var a=this;return this.calendar.pushLoading(),g.default.construct(function(d){a.func.call(a.calendar,o.clone(),c.clone(),l,function(h){a.calendar.popLoading(),d(a.parseEventDefs(h))})})},u.prototype.getPrimitive=function(){return this.func},u.prototype.applyManualStandardProps=function(o){var c=i.prototype.applyManualStandardProps.call(this,o);return this.func=o.events,c},u}(E.default);m.default=n,n.defineStandardProps({events:!1})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(20),n=t(6),i=function(u){p.__extends(o,u);function o(){return u!==null&&u.apply(this,arguments)||this}return o.parse=function(c,l){var a;return typeof c.url=="string"?a=c:typeof c=="string"&&(a={url:c}),a?n.default.parse.call(this,a,l):!1},o.prototype.fetch=function(c,l,a){var d=this,h=this.ajaxSettings,v=h.success,C=h.error,k=this.buildRequestParams(c,l,a);return this.calendar.pushLoading(),E.default.construct(function(j,G){w.ajax(w.extend({},o.AJAX_DEFAULTS,h,{url:d.url,data:k,success:function(N,T,A){var U;d.calendar.popLoading(),N?(U=g.applyAll(v,d,[N,T,A]),w.isArray(U)&&(N=U),j(d.parseEventDefs(N))):G()},error:function(N,T,A){d.calendar.popLoading(),g.applyAll(C,d,[N,T,A]),G()}}))})},o.prototype.buildRequestParams=function(c,l,a){var d=this.calendar,h=this.ajaxSettings,v,C,k,j,G={};return v=this.startParam,v==null&&(v=d.opt("startParam")),C=this.endParam,C==null&&(C=d.opt("endParam")),k=this.timezoneParam,k==null&&(k=d.opt("timezoneParam")),w.isFunction(h.data)?j=h.data():j=h.data||{},w.extend(G,j),G[v]=c.format(),G[C]=l.format(),a&&a!=="local"&&(G[k]=a),G},o.prototype.getPrimitive=function(){return this.url},o.prototype.applyMiscProps=function(c){this.ajaxSettings=c},o.AJAX_DEFAULTS={dataType:"json",cache:!1},o}(n.default);m.default=i,i.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(11),w=function(){function g(){this.q=[],this.isPaused=!1,this.isRunning=!1}return g.prototype.queue=function(){for(var E=[],n=0;n<arguments.length;n++)E[n]=arguments[n];this.q.push.apply(this.q,E),this.tryStart()},g.prototype.pause=function(){this.isPaused=!0},g.prototype.resume=function(){this.isPaused=!1,this.tryStart()},g.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},g.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},g.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},g.prototype.runRemaining=function(){var E=this,n,i;do if(n=this.q.shift(),i=this.runTask(n),i&&i.then){i.then(function(){E.canRunNext()&&E.runRemaining()});return}while(this.canRunNext());this.trigger("stop"),this.isRunning=!1,this.tryStart()},g.prototype.runTask=function(E){return E()},g}();m.default=w,p.default.mixInto(w)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(217),g=function(E){p.__extends(n,E);function n(i){var u=E.call(this)||this;return u.waitsByNamespace=i||{},u}return n.prototype.queue=function(i,u,o){var c={func:i,namespace:u,type:o},l;u&&(l=this.waitsByNamespace[u]),this.waitNamespace&&(u===this.waitNamespace&&l!=null?this.delayWait(l):(this.clearWait(),this.tryStart())),this.compoundTask(c)&&(!this.waitNamespace&&l!=null?this.startWait(u,l):this.tryStart())},n.prototype.startWait=function(i,u){this.waitNamespace=i,this.spawnWait(u)},n.prototype.delayWait=function(i){clearTimeout(this.waitId),this.spawnWait(i)},n.prototype.spawnWait=function(i){var u=this;this.waitId=setTimeout(function(){u.waitNamespace=null,u.tryStart()},i)},n.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},n.prototype.canRunNext=function(){if(!E.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var i=this.q,u=0;u<i.length;u++)if(i[u].namespace!==this.waitNamespace)return!0;return!1}return!0},n.prototype.runTask=function(i){i.func()},n.prototype.compoundTask=function(i){var u=this.q,o=!0,c,l;if(i.namespace&&i.type==="destroy")for(c=u.length-1;c>=0;c--)switch(l=u[c],l.type){case"init":o=!1;case"add":case"remove":u.splice(c,1)}return o&&u.push(i),o},n}(w.default);m.default=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(0),E=t(4),n=t(10),i=t(47),u=t(237),o=t(34),c=function(a){p.__extends(d,a);function d(h,v){var C=a.call(this)||this;return C.isRTL=!1,C.hitsNeededDepth=0,C.hasAllDayBusinessHours=!1,C.isDatesRendered=!1,h&&(C.view=h),v&&(C.options=v),C.uid=String(d.guid++),C.childrenByUid={},C.nextDayThreshold=g.duration(C.opt("nextDayThreshold")),C.isRTL=C.opt("isRTL"),C.fillRendererClass&&(C.fillRenderer=new C.fillRendererClass(C)),C.eventRendererClass&&(C.eventRenderer=new C.eventRendererClass(C,C.fillRenderer)),C.helperRendererClass&&C.eventRenderer&&(C.helperRenderer=new C.helperRendererClass(C,C.eventRenderer)),C.businessHourRendererClass&&C.fillRenderer&&(C.businessHourRenderer=new C.businessHourRendererClass(C,C.fillRenderer)),C}return d.prototype.addChild=function(h){return this.childrenByUid[h.uid]?!1:(this.childrenByUid[h.uid]=h,!0)},d.prototype.removeChild=function(h){return this.childrenByUid[h.uid]?(delete this.childrenByUid[h.uid],!0):!1},d.prototype.updateSize=function(h,v,C){this.callChildren("updateSize",arguments)},d.prototype.opt=function(h){return this._getView().opt(h)},d.prototype.publiclyTrigger=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];var C=this._getCalendar();return C.publiclyTrigger.apply(C,h)},d.prototype.hasPublicHandlers=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];var C=this._getCalendar();return C.hasPublicHandlers.apply(C,h)},d.prototype.executeDateRender=function(h){this.dateProfile=h,this.renderDates(h),this.isDatesRendered=!0,this.callChildren("executeDateRender",arguments)},d.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments),this.dateProfile=null,this.unrenderDates(),this.isDatesRendered=!1},d.prototype.renderDates=function(h){},d.prototype.unrenderDates=function(){},d.prototype.getNowIndicatorUnit=function(){},d.prototype.renderNowIndicator=function(h){this.callChildren("renderNowIndicator",arguments)},d.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},d.prototype.renderBusinessHours=function(h){this.businessHourRenderer&&this.businessHourRenderer.render(h),this.callChildren("renderBusinessHours",arguments)},d.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments),this.businessHourRenderer&&this.businessHourRenderer.unrender()},d.prototype.executeEventRender=function(h){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(h)):this.renderEvents&&this.renderEvents(l(h)),this.callChildren("executeEventRender",arguments)},d.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments),this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},d.prototype.getBusinessHourSegs=function(){var h=this.getOwnBusinessHourSegs();return this.iterChildren(function(v){h.push.apply(h,v.getBusinessHourSegs())}),h},d.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},d.prototype.getEventSegs=function(){var h=this.getOwnEventSegs();return this.iterChildren(function(v){h.push.apply(h,v.getEventSegs())}),h},d.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},d.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs()),this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},d.prototype.triggerAfterEventSegsRendered=function(h){var v=this;this.hasPublicHandlers("eventAfterRender")&&h.forEach(function(C){var k;C.el&&(k=C.footprint.getEventLegacy(),v.publiclyTrigger("eventAfterRender",{context:k,args:[k,C.el,v]}))})},d.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},d.prototype.triggerBeforeEventSegsDestroyed=function(h){var v=this;this.hasPublicHandlers("eventDestroy")&&h.forEach(function(C){var k;C.el&&(k=C.footprint.getEventLegacy(),v.publiclyTrigger("eventDestroy",{context:k,args:[k,C.el,v]}))})},d.prototype.showEventsWithId=function(h){this.getEventSegs().forEach(function(v){v.footprint.eventDef.id===h&&v.el&&v.el.css("visibility","")}),this.callChildren("showEventsWithId",arguments)},d.prototype.hideEventsWithId=function(h){this.getEventSegs().forEach(function(v){v.footprint.eventDef.id===h&&v.el&&v.el.css("visibility","hidden")}),this.callChildren("hideEventsWithId",arguments)},d.prototype.renderDrag=function(h,v,C){var k=!1;return this.iterChildren(function(j){j.renderDrag(h,v,C)&&(k=!0)}),k},d.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},d.prototype.renderEventResize=function(h,v,C){this.callChildren("renderEventResize",arguments)},d.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},d.prototype.renderSelectionFootprint=function(h){this.renderHighlight(h),this.callChildren("renderSelectionFootprint",arguments)},d.prototype.unrenderSelection=function(){this.unrenderHighlight(),this.callChildren("unrenderSelection",arguments)},d.prototype.renderHighlight=function(h){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",h,{getClasses:function(){return["fc-highlight"]}}),this.callChildren("renderHighlight",arguments)},d.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight"),this.callChildren("unrenderHighlight",arguments)},d.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits(),this.callChildren("hitsNeeded",arguments)},d.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits(),this.callChildren("hitsNotNeeded",arguments)},d.prototype.prepareHits=function(){},d.prototype.releaseHits=function(){},d.prototype.queryHit=function(h,v){var C=this.childrenByUid,k,j;for(k in C)if(j=C[k].queryHit(h,v),j)break;return j},d.prototype.getSafeHitFootprint=function(h){var v=this.getHitFootprint(h);return this.dateProfile.activeUnzonedRange.containsRange(v.unzonedRange)?v:null},d.prototype.getHitFootprint=function(h){},d.prototype.getHitEl=function(h){},d.prototype.eventRangesToEventFootprints=function(h){var v=[],C;for(C=0;C<h.length;C++)v.push.apply(v,this.eventRangeToEventFootprints(h[C]));return v},d.prototype.eventRangeToEventFootprints=function(h){return[o.eventRangeToEventFootprint(h)]},d.prototype.eventFootprintsToSegs=function(h){var v=[],C;for(C=0;C<h.length;C++)v.push.apply(v,this.eventFootprintToSegs(h[C]));return v},d.prototype.eventFootprintToSegs=function(h){var v=h.componentFootprint.unzonedRange,C,k,j;for(C=this.componentFootprintToSegs(h.componentFootprint),k=0;k<C.length;k++)j=C[k],v.isStart||(j.isStart=!1),v.isEnd||(j.isEnd=!1),j.footprint=h;return C},d.prototype.componentFootprintToSegs=function(h){return[]},d.prototype.callChildren=function(h,v){this.iterChildren(function(C){C[h].apply(C,v)})},d.prototype.iterChildren=function(h){var v=this.childrenByUid,C;for(C in v)h(v[C])},d.prototype._getCalendar=function(){var h=this;return h.calendar||h.view.calendar},d.prototype._getView=function(){return this.view},d.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},d.prototype.buildGotoAnchorHtml=function(h,v,C){var k,j,G,N;return w.isPlainObject(h)?(k=h.date,j=h.type,G=h.forceOff):k=h,k=n.default(k),N={date:k.format("YYYY-MM-DD"),type:j||"day"},typeof v=="string"&&(C=v,v=null),v=v?" "+E.attrsToStr(v):"",C=C||"",!G&&this.opt("navLinks")?"<a"+v+' data-goto="'+E.htmlEscape(JSON.stringify(N))+'">'+C+"</a>":"<span"+v+">"+C+"</span>"},d.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||E.htmlEscape(this.opt("allDayText"))},d.prototype.getDayClasses=function(h,v){var C=this._getView(),k=[],j;return this.dateProfile.activeUnzonedRange.containsDate(h)?(k.push("fc-"+E.dayIDs[h.day()]),C.isDateInOtherMonth(h,this.dateProfile)&&k.push("fc-other-month"),j=C.calendar.getNow(),h.isSame(j,"day")?(k.push("fc-today"),v!==!0&&k.push(C.calendar.theme.getClass("today"))):h<j?k.push("fc-past"):k.push("fc-future")):k.push("fc-disabled-day"),k},d.prototype.formatRange=function(h,v,C,k){var j=h.end;return v&&(j=j.clone().subtract(1)),i.formatRange(h.start,j,C,k,this.isRTL)},d.prototype.currentRangeAs=function(h){return this._getDateProfile().currentUnzonedRange.as(h)},d.prototype.computeDayRange=function(h){var v=this._getCalendar(),C=v.msToUtcMoment(h.startMs,!0),k=v.msToUtcMoment(h.endMs),j=+k.time(),G=k.clone().stripTime();return j&&j>=this.nextDayThreshold&&G.add(1,"days"),G<=C&&(G=C.clone().add(1,"days")),{start:C,end:G}},d.prototype.isMultiDayRange=function(h){var v=this.computeDayRange(h);return v.end.diff(v.start,"days")>1},d.guid=0,d}(u.default);m.default=c;function l(a){var d,h,v=[],C;for(d in a)for(h=a[d].eventInstances,C=0;C<h.length;C++)v.push(h[C].toLegacy());return v}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(0),g=t(4),E=t(31),n=t(238),i=t(15),u=t(11),o=t(7),c=t(239),l=t(240),a=t(241),d=t(207),h=t(30),v=t(10),C=t(5),k=t(12),j=t(18),G=t(242),N=t(212),T=t(37),A=t(49),U=t(13),X=t(36),Q=t(6),re=t(51),ge=function(){function pe(ie,oe){this.loadingLevel=0,this.ignoreUpdateViewSize=0,this.freezeContentHeightDepth=0,i.default.needed(),this.el=ie,this.viewsByType={},this.optionsManager=new l.default(this,oe),this.viewSpecManager=new a.default(this.optionsManager,this),this.initMomentInternals(),this.initCurrentDate(),this.initEventManager(),this.constraints=new d.default(this.eventManager,this),this.constructed()}return pe.prototype.constructed=function(){},pe.prototype.getView=function(){return this.view},pe.prototype.publiclyTrigger=function(ie,oe){var me=this.opt(ie),Fe,et;if(p.isPlainObject(oe)?(Fe=oe.context,et=oe.args):p.isArray(oe)&&(et=oe),Fe==null&&(Fe=this.el[0]),et||(et=[]),this.triggerWith(ie,Fe,et),me)return me.apply(Fe,et)},pe.prototype.hasPublicHandlers=function(ie){return this.hasHandlers(ie)||this.opt(ie)},pe.prototype.option=function(ie,oe){var me;if(typeof ie=="string"){if(oe===void 0)return this.optionsManager.get(ie);me={},me[ie]=oe,this.optionsManager.add(me)}else typeof ie=="object"&&this.optionsManager.add(ie)},pe.prototype.opt=function(ie){return this.optionsManager.get(ie)},pe.prototype.instantiateView=function(ie){var oe=this.viewSpecManager.getViewSpec(ie);if(!oe)throw new Error('View type "'+ie+'" is not valid');return new oe.class(this,oe)},pe.prototype.isValidViewType=function(ie){return!!this.viewSpecManager.getViewSpec(ie)},pe.prototype.changeView=function(ie,oe){oe&&(oe.start&&oe.end?this.optionsManager.recordOverrides({visibleRange:oe}):this.currentDate=this.moment(oe).stripZone()),this.renderView(ie)},pe.prototype.zoomTo=function(ie,oe){var me;oe=oe||"day",me=this.viewSpecManager.getViewSpec(oe)||this.viewSpecManager.getUnitViewSpec(oe),this.currentDate=ie.clone(),this.renderView(me?me.type:null)},pe.prototype.initCurrentDate=function(){var ie=this.opt("defaultDate");ie!=null?this.currentDate=this.moment(ie).stripZone():this.currentDate=this.getNow()},pe.prototype.prev=function(){var ie=this.view,oe=ie.dateProfileGenerator.buildPrev(ie.get("dateProfile"));oe.isValid&&(this.currentDate=oe.date,this.renderView())},pe.prototype.next=function(){var ie=this.view,oe=ie.dateProfileGenerator.buildNext(ie.get("dateProfile"));oe.isValid&&(this.currentDate=oe.date,this.renderView())},pe.prototype.prevYear=function(){this.currentDate.add(-1,"years"),this.renderView()},pe.prototype.nextYear=function(){this.currentDate.add(1,"years"),this.renderView()},pe.prototype.today=function(){this.currentDate=this.getNow(),this.renderView()},pe.prototype.gotoDate=function(ie){this.currentDate=this.moment(ie).stripZone(),this.renderView()},pe.prototype.incrementDate=function(ie){this.currentDate.add(w.duration(ie)),this.renderView()},pe.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},pe.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},pe.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},pe.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},pe.prototype.initialRender=function(){var ie=this,oe=this.el;oe.addClass("fc"),oe.on("click.fc","a[data-goto]",function(me){var Fe=p(me.currentTarget),et=Fe.data("goto"),ft=ie.moment(et.date),ze=et.type,bt=ie.view.opt("navLink"+g.capitaliseFirstLetter(ze)+"Click");typeof bt=="function"?bt(ft,me):(typeof bt=="string"&&(ze=bt),ie.zoomTo(ft,ze))}),this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(me){var Fe=re.getThemeSystemClass(me.themeSystem||me.theme),et=new Fe(ie.optionsManager),ft=et.getClass("widget");ie.theme=et,ft&&oe.addClass(ft)},function(){var me=ie.theme.getClass("widget");ie.theme=null,me&&oe.removeClass(me)}),this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(me){ie.businessHourGenerator=new N.default(me.businessHours,ie),ie.view&&ie.view.set("businessHourGenerator",ie.businessHourGenerator)},function(){ie.businessHourGenerator=null}),this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(me){oe.toggleClass("fc-ltr",!me.isRTL),oe.toggleClass("fc-rtl",me.isRTL)}),this.contentEl=p("<div class='fc-view-container'/>").prependTo(oe),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&p(window).resize(this.windowResizeProxy=g.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},pe.prototype.destroy=function(){this.view&&this.clearView(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl"),this.optionsManager.unwatch("settingTheme"),this.optionsManager.unwatch("settingBusinessHourGenerator"),this.el.off(".fc"),this.windowResizeProxy&&(p(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),i.default.unneeded()},pe.prototype.elementVisible=function(){return this.el.is(":visible")},pe.prototype.bindViewHandlers=function(ie){var oe=this;ie.watch("titleForCalendar",["title"],function(me){ie===oe.view&&oe.setToolbarsTitle(me.title)}),ie.watch("dateProfileForCalendar",["dateProfile"],function(me){ie===oe.view&&(oe.currentDate=me.dateProfile.date,oe.updateToolbarButtons(me.dateProfile))})},pe.prototype.unbindViewHandlers=function(ie){ie.unwatch("titleForCalendar"),ie.unwatch("dateProfileForCalendar")},pe.prototype.renderView=function(ie){var oe=this.view,me;this.freezeContentHeight(),oe&&ie&&oe.type!==ie&&this.clearView(),!this.view&&ie&&(me=this.view=this.viewsByType[ie]||(this.viewsByType[ie]=this.instantiateView(ie)),this.bindViewHandlers(me),me.startBatchRender(),me.setElement(p("<div class='fc-view fc-"+ie+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",ie)),this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),me&&me.stopBatchRender()),this.thawContentHeight()},pe.prototype.clearView=function(){var ie=this.view;this.toolbarsManager.proxyCall("deactivateButton",ie.type),this.unbindViewHandlers(ie),ie.removeElement(),ie.unsetDate(),this.view=null},pe.prototype.reinitView=function(){var ie=this.view,oe=ie.queryScroll();this.freezeContentHeight(),this.clearView(),this.calcSize(),this.renderView(ie.type),this.view.applyScroll(oe),this.thawContentHeight()},pe.prototype.getSuggestedViewHeight=function(){return this.suggestedViewHeight==null&&this.calcSize(),this.suggestedViewHeight},pe.prototype.isHeightAuto=function(){return this.opt("contentHeight")==="auto"||this.opt("height")==="auto"},pe.prototype.updateViewSize=function(ie){ie===void 0&&(ie=!1);var oe=this.view,me;if(!this.ignoreUpdateViewSize&&oe)return ie&&(this.calcSize(),me=oe.queryScroll()),this.ignoreUpdateViewSize++,oe.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),ie),this.ignoreUpdateViewSize--,ie&&oe.applyScroll(me),!0},pe.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},pe.prototype._calcSize=function(){var ie=this.opt("contentHeight"),oe=this.opt("height");typeof ie=="number"?this.suggestedViewHeight=ie:typeof ie=="function"?this.suggestedViewHeight=ie():typeof oe=="number"?this.suggestedViewHeight=oe-this.queryToolbarsHeight():typeof oe=="function"?this.suggestedViewHeight=oe()-this.queryToolbarsHeight():oe==="parent"?this.suggestedViewHeight=this.el.parent().height()-this.queryToolbarsHeight():this.suggestedViewHeight=Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},pe.prototype.windowResize=function(ie){ie.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},pe.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},pe.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},pe.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--,this.contentEl.css({width:"",height:"",overflow:""}),this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},pe.prototype.initToolbars=function(){this.header=new c.default(this,this.computeHeaderOptions()),this.footer=new c.default(this,this.computeFooterOptions()),this.toolbarsManager=new n.default([this.header,this.footer])},pe.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},pe.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},pe.prototype.renderHeader=function(){var ie=this.header;ie.setToolbarOptions(this.computeHeaderOptions()),ie.render(),ie.el&&this.el.prepend(ie.el)},pe.prototype.renderFooter=function(){var ie=this.footer;ie.setToolbarOptions(this.computeFooterOptions()),ie.render(),ie.el&&this.el.append(ie.el)},pe.prototype.setToolbarsTitle=function(ie){this.toolbarsManager.proxyCall("updateTitle",ie)},pe.prototype.updateToolbarButtons=function(ie){var oe=this.getNow(),me=this.view,Fe=me.dateProfileGenerator.build(oe),et=me.dateProfileGenerator.buildPrev(me.get("dateProfile")),ft=me.dateProfileGenerator.buildNext(me.get("dateProfile"));this.toolbarsManager.proxyCall(Fe.isValid&&!ie.currentUnzonedRange.containsDate(oe)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(et.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(ft.isValid?"enableButton":"disableButton","next")},pe.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(ie,oe){var me=oe.el?oe.el.outerHeight(!0):0;return ie+me},0)},pe.prototype.select=function(ie,oe){this.view.select(this.buildSelectFootprint.apply(this,arguments))},pe.prototype.unselect=function(){this.view&&this.view.unselect()},pe.prototype.buildSelectFootprint=function(ie,oe){var me=this.moment(ie).stripZone(),Fe;return oe?Fe=this.moment(oe).stripZone():me.hasTime()?Fe=me.clone().add(this.defaultTimedEventDuration):Fe=me.clone().add(this.defaultAllDayEventDuration),new k.default(new C.default(me,Fe),!me.hasTime())},pe.prototype.initMomentInternals=function(){var ie=this;this.defaultAllDayEventDuration=w.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=w.duration(this.opt("defaultTimedEventDuration")),this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(oe){var me=oe.weekNumberCalculation,Fe=oe.firstDay,et;me==="iso"&&(me="ISO");var ft=Object.create(h.getMomentLocaleData(oe.locale));oe.monthNames&&(ft._months=oe.monthNames),oe.monthNamesShort&&(ft._monthsShort=oe.monthNamesShort),oe.dayNames&&(ft._weekdays=oe.dayNames),oe.dayNamesShort&&(ft._weekdaysShort=oe.dayNamesShort),Fe==null&&me==="ISO"&&(Fe=1),Fe!=null&&(et=Object.create(ft._week),et.dow=Fe,ft._week=et),(me==="ISO"||me==="local"||typeof me=="function")&&(ft._fullCalendar_weekCalc=me),ie.localeData=ft,ie.currentDate&&ie.localizeMoment(ie.currentDate)})},pe.prototype.moment=function(){for(var ie=[],oe=0;oe<arguments.length;oe++)ie[oe]=arguments[oe];var me;return this.opt("timezone")==="local"?(me=v.default.apply(null,ie),me.hasTime()&&me.local()):this.opt("timezone")==="UTC"?me=v.default.utc.apply(null,ie):me=v.default.parseZone.apply(null,ie),this.localizeMoment(me),me},pe.prototype.msToMoment=function(ie,oe){var me=v.default.utc(ie);return oe?me.stripTime():me=this.applyTimezone(me),this.localizeMoment(me),me},pe.prototype.msToUtcMoment=function(ie,oe){var me=v.default.utc(ie);return oe&&me.stripTime(),this.localizeMoment(me),me},pe.prototype.localizeMoment=function(ie){ie._locale=this.localeData},pe.prototype.getIsAmbigTimezone=function(){return this.opt("timezone")!=="local"&&this.opt("timezone")!=="UTC"},pe.prototype.applyTimezone=function(ie){if(!ie.hasTime())return ie.clone();var oe=this.moment(ie.toArray()),me=ie.time().asMilliseconds()-oe.time().asMilliseconds(),Fe;return me&&(Fe=oe.clone().add(me),ie.time().asMilliseconds()-Fe.time().asMilliseconds()===0&&(oe=Fe)),oe},pe.prototype.footprintToDateProfile=function(ie,oe){oe===void 0&&(oe=!1);var me=v.default.utc(ie.unzonedRange.startMs),Fe;return oe||(Fe=v.default.utc(ie.unzonedRange.endMs)),ie.isAllDay?(me.stripTime(),Fe&&Fe.stripTime()):(me=this.applyTimezone(me),Fe&&(Fe=this.applyTimezone(Fe))),new j.default(me,Fe,this)},pe.prototype.getNow=function(){var ie=this.opt("now");return typeof ie=="function"&&(ie=ie()),this.moment(ie).stripZone()},pe.prototype.humanizeDuration=function(ie){return ie.locale(this.opt("locale")).humanize()},pe.prototype.parseUnzonedRange=function(ie){var oe=null,me=null;return ie.start&&(oe=this.moment(ie.start).stripZone()),ie.end&&(me=this.moment(ie.end).stripZone()),!oe&&!me||oe&&me&&me.isBefore(oe)?null:new C.default(oe,me)},pe.prototype.initEventManager=function(){var ie=this,oe=new G.default(this),me=this.opt("eventSources")||[],Fe=this.opt("events");this.eventManager=oe,Fe&&me.unshift(Fe),oe.on("release",function(et){ie.trigger("eventsReset",et)}),oe.freeze(),me.forEach(function(et){var ft=T.default.parse(et,ie);ft&&oe.addSource(ft)}),oe.thaw()},pe.prototype.requestEvents=function(ie,oe){return this.eventManager.requestEvents(ie,oe,this.opt("timezone"),!this.opt("lazyFetching"))},pe.prototype.getEventEnd=function(ie){return ie.end?ie.end.clone():this.getDefaultEventEnd(ie.allDay,ie.start)},pe.prototype.getDefaultEventEnd=function(ie,oe){var me=oe.clone();return ie?me.stripTime().add(this.defaultAllDayEventDuration):me.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&me.stripZone(),me},pe.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},pe.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},pe.prototype.renderEvents=function(ie,oe){this.eventManager.freeze();for(var me=0;me<ie.length;me++)this.renderEvent(ie[me],oe);this.eventManager.thaw()},pe.prototype.renderEvent=function(ie,oe){oe===void 0&&(oe=!1);var me=this.eventManager,Fe=A.default.parse(ie,ie.source||me.stickySource);Fe&&me.addEventDef(Fe,oe)},pe.prototype.removeEvents=function(ie){var oe=this.eventManager,me=[],Fe={},et,ft;if(ie==null)oe.removeAllEventDefs();else{for(oe.getEventInstances().forEach(function(ze){me.push(ze.toLegacy())}),me=Ce(me,ie),ft=0;ft<me.length;ft++)et=this.eventManager.getEventDefByUid(me[ft]._id),Fe[et.id]=!0;oe.freeze();for(ft in Fe)oe.removeEventDefsById(ft);oe.thaw()}},pe.prototype.clientEvents=function(ie){var oe=[];return this.eventManager.getEventInstances().forEach(function(me){oe.push(me.toLegacy())}),Ce(oe,ie)},pe.prototype.updateEvents=function(ie){this.eventManager.freeze();for(var oe=0;oe<ie.length;oe++)this.updateEvent(ie[oe]);this.eventManager.thaw()},pe.prototype.updateEvent=function(ie){var oe=this.eventManager.getEventDefByUid(ie._id),me,Fe;oe instanceof U.default&&(me=oe.buildInstance(),Fe=X.default.createFromRawProps(me,ie,null),this.eventManager.mutateEventsWithId(oe.id,Fe))},pe.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},pe.prototype.getEventSourceById=function(ie){return this.eventManager.getSourceById(Q.default.normalizeId(ie))},pe.prototype.addEventSource=function(ie){var oe=T.default.parse(ie,this);oe&&this.eventManager.addSource(oe)},pe.prototype.removeEventSources=function(ie){var oe=this.eventManager,me,Fe;if(ie==null)this.eventManager.removeAllSources();else{for(me=oe.multiQuerySources(ie),oe.freeze(),Fe=0;Fe<me.length;Fe++)oe.removeSource(me[Fe]);oe.thaw()}},pe.prototype.removeEventSource=function(ie){var oe=this.eventManager,me=oe.querySources(ie),Fe;for(oe.freeze(),Fe=0;Fe<me.length;Fe++)oe.removeSource(me[Fe]);oe.thaw()},pe.prototype.refetchEventSources=function(ie){var oe=this.eventManager,me=oe.multiQuerySources(ie),Fe;for(oe.freeze(),Fe=0;Fe<me.length;Fe++)oe.refetchSource(me[Fe]);oe.thaw()},pe.defaults=E.globalDefaults,pe.englishDefaults=E.englishDefaults,pe.rtlDefaults=E.rtlDefaults,pe}();m.default=ge,u.default.mixInto(ge),o.default.mixInto(ge);function Ce(pe,ie){return ie==null?pe:p.isFunction(ie)?pe.filter(ie):(ie+="",pe.filter(function(oe){return oe.id==ie||oe._id===ie}))}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(0),w=t(4),g=t(5),E=function(){function n(i){this._view=i}return n.prototype.opt=function(i){return this._view.opt(i)},n.prototype.trimHiddenDays=function(i){return this._view.trimHiddenDays(i)},n.prototype.msToUtcMoment=function(i,u){return this._view.calendar.msToUtcMoment(i,u)},n.prototype.buildPrev=function(i){var u=i.date.clone().startOf(i.currentRangeUnit).subtract(i.dateIncrement);return this.build(u,-1)},n.prototype.buildNext=function(i){var u=i.date.clone().startOf(i.currentRangeUnit).add(i.dateIncrement);return this.build(u,1)},n.prototype.build=function(i,u,o){o===void 0&&(o=!1);var c=!i.hasTime(),l,a=null,d=null,h,v,C,k,j;return l=this.buildValidRange(),l=this.trimHiddenDays(l),o&&(i=this.msToUtcMoment(l.constrainDate(i),c)),h=this.buildCurrentRangeInfo(i,u),v=/^(year|month|week|day)$/.test(h.unit),C=this.buildRenderRange(this.trimHiddenDays(h.unzonedRange),h.unit,v),C=this.trimHiddenDays(C),k=C.clone(),this.opt("showNonCurrentDates")||(k=k.intersect(h.unzonedRange)),a=p.duration(this.opt("minTime")),d=p.duration(this.opt("maxTime")),k=this.adjustActiveRange(k,a,d),k=k.intersect(l),k&&(i=this.msToUtcMoment(k.constrainDate(i),c)),j=h.unzonedRange.intersectsWith(l),{validUnzonedRange:l,currentUnzonedRange:h.unzonedRange,currentRangeUnit:h.unit,isRangeAllDay:v,activeUnzonedRange:k,renderUnzonedRange:C,minTime:a,maxTime:d,isValid:j,date:i,dateIncrement:this.buildDateIncrement(h.duration)}},n.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new g.default},n.prototype.buildCurrentRangeInfo=function(i,u){var o=this._view.viewSpec,c=null,l=null,a=null,d;return o.duration?(c=o.duration,l=o.durationUnit,a=this.buildRangeFromDuration(i,u,c,l)):(d=this.opt("dayCount"))?(l="day",a=this.buildRangeFromDayCount(i,u,d)):(a=this.buildCustomVisibleRange(i))?l=w.computeGreatestUnit(a.getStart(),a.getEnd()):(c=this.getFallbackDuration(),l=w.computeGreatestUnit(c),a=this.buildRangeFromDuration(i,u,c,l)),{duration:c,unit:l,unzonedRange:a}},n.prototype.getFallbackDuration=function(){return p.duration({days:1})},n.prototype.adjustActiveRange=function(i,u,o){var c=i.getStart(),l=i.getEnd();return this._view.usesMinMaxTime&&(u<0&&c.time(0).add(u),o>24*60*60*1e3&&l.time(o-24*60*60*1e3)),new g.default(c,l)},n.prototype.buildRangeFromDuration=function(i,u,o,c){var l=this.opt("dateAlignment"),a,d,h,v,C;l||(a=this.opt("dateIncrement"),a?(d=p.duration(a),d<o?l=w.computeDurationGreatestUnit(d,a):l=c):l=c),o.as("days")<=1&&this._view.isHiddenDay(h)&&(h=this._view.skipHiddenDays(h,u),h.startOf("day"));function k(){h=i.clone().startOf(l),v=h.clone().add(o),C=new g.default(h,v)}return k(),this.trimHiddenDays(C)||(i=this._view.skipHiddenDays(i,u),k()),C},n.prototype.buildRangeFromDayCount=function(i,u,o){var c=this.opt("dateAlignment"),l=0,a=i.clone(),d;c&&a.startOf(c),a.startOf("day"),a=this._view.skipHiddenDays(a,u),d=a.clone();do d.add(1,"day"),this._view.isHiddenDay(d)||l++;while(l<o);return new g.default(a,d)},n.prototype.buildCustomVisibleRange=function(i){var u=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(i));return u&&(u.startMs==null||u.endMs==null)?null:u},n.prototype.buildRenderRange=function(i,u,o){return i.clone()},n.prototype.buildDateIncrement=function(i){var u=this.opt("dateIncrement"),o;return u?p.duration(u):(o=this.opt("dateAlignment"))?p.duration(1,o):i||p.duration({days:1})},n}();m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(0),E=t(17),n=t(4),i=t(10),u=t(7),o=t(22),c=t(13),l=t(19),a=t(6),d=t(16),h=function(C){p.__extends(k,C);function k(){var j=C!==null&&C.apply(this,arguments)||this;return j.isDragging=!1,j}return k.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},k.prototype.bindToDocument=function(){this.listenTo(w(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},k.prototype.unbindFromDocument=function(){this.stopListeningTo(w(document))},k.prototype.handleDragStart=function(j,G){var N,T;this.opt("droppable")&&(N=w((G?G.item:null)||j.target),T=this.opt("dropAccept"),(w.isFunction(T)?T.call(N[0],N):N.is(T))&&(this.isDragging||this.listenToExternalDrag(N,j,G)))},k.prototype.listenToExternalDrag=function(j,G,N){var T=this,A=this.component,U=this.view,X=v(j),Q,re=this.dragListener=new o.default(A,{interactionStart:function(){T.isDragging=!0},hitOver:function(ge){var Ce=!0,pe=ge.component.getSafeHitFootprint(ge),ie;pe?(Q=T.computeExternalDrop(pe,X),Q?(ie=new l.default(Q.buildInstances()),Ce=X.eventProps?A.isEventInstanceGroupAllowed(ie):A.isExternalInstanceGroupAllowed(ie)):Ce=!1):Ce=!1,Ce||(Q=null,n.disableCursor()),Q&&A.renderDrag(A.eventRangesToEventFootprints(ie.sliceRenderRanges(A.dateProfile.renderUnzonedRange,U.calendar)))},hitOut:function(){Q=null},hitDone:function(){n.enableCursor(),A.unrenderDrag()},interactionEnd:function(ge){Q&&U.reportExternalDrop(Q,!!X.eventProps,!!X.stick,j,ge,N),T.isDragging=!1,T.dragListener=null}});re.startDrag(G)},k.prototype.computeExternalDrop=function(j,G){var N=this.view.calendar,T=i.default.utc(j.unzonedRange.startMs).stripZone(),A,U;return j.isAllDay&&(G.startTime?T.time(G.startTime):T.stripTime()),G.duration&&(A=T.clone().add(G.duration)),T=N.applyTimezone(T),A&&(A=N.applyTimezone(A)),U=c.default.parse(w.extend({},G.eventProps,{start:T,end:A}),new a.default(N)),U},k}(d.default);m.default=h,u.default.mixInto(h),E.dataAttrPrefix="";function v(C){var k=E.dataAttrPrefix,j,G,N,T;return k&&(k+="-"),j=C.data(k+"event")||null,j&&(typeof j=="object"?j=w.extend({},j):j={},G=j.start,G==null&&(G=j.time),N=j.duration,T=j.stick,delete j.start,delete j.time,delete j.duration,delete j.stick),G==null&&(G=C.data(k+"start")),G==null&&(G=C.data(k+"time")),N==null&&(N=C.data(k+"duration")),T==null&&(T=C.data(k+"stick")),G=G!=null?g.duration(G):null,N=N!=null?g.duration(N):null,T=!!T,{eventProps:j,startTime:G,duration:N,stick:T}}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(36),n=t(50),i=t(22),u=t(16),o=function(c){p.__extends(l,c);function l(a,d){var h=c.call(this,a)||this;return h.isResizing=!1,h.eventPointing=d,h}return l.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},l.prototype.bindToEl=function(a){var d=this.component;d.bindSegHandlerToEl(a,"mousedown",this.handleMouseDown.bind(this)),d.bindSegHandlerToEl(a,"touchstart",this.handleTouchStart.bind(this))},l.prototype.handleMouseDown=function(a,d){this.component.canStartResize(a,d)&&this.buildDragListener(a,w(d.target).is(".fc-start-resizer")).startInteraction(d,{distance:5})},l.prototype.handleTouchStart=function(a,d){this.component.canStartResize(a,d)&&this.buildDragListener(a,w(d.target).is(".fc-start-resizer")).startInteraction(d)},l.prototype.buildDragListener=function(a,d){var h=this,v=this.component,C=this.view,k=C.calendar,j=k.eventManager,G=a.el,N=a.footprint.eventDef,T=a.footprint.eventInstance,A,U,X=this.dragListener=new i.default(v,{scroll:this.opt("dragScroll"),subjectEl:G,interactionStart:function(){A=!1},dragStart:function(Q){A=!0,h.eventPointing.handleMouseout(a,Q),h.segResizeStart(a,Q)},hitOver:function(Q,re,ge){var Ce=!0,pe=v.getSafeHitFootprint(ge),ie=v.getSafeHitFootprint(Q),oe;pe&&ie?(U=d?h.computeEventStartResizeMutation(pe,ie,a.footprint):h.computeEventEndResizeMutation(pe,ie,a.footprint),U?(oe=j.buildMutatedEventInstanceGroup(N.id,U),Ce=v.isEventInstanceGroupAllowed(oe)):Ce=!1):Ce=!1,Ce?U.isEmpty()&&(U=null):(U=null,g.disableCursor()),U&&(C.hideEventsWithId(a.footprint.eventDef.id),C.renderEventResize(v.eventRangesToEventFootprints(oe.sliceRenderRanges(v.dateProfile.renderUnzonedRange,k)),a))},hitOut:function(){U=null},hitDone:function(){C.unrenderEventResize(a),C.showEventsWithId(a.footprint.eventDef.id),g.enableCursor()},interactionEnd:function(Q){A&&h.segResizeStop(a,Q),U&&C.reportEventResize(T,U,G,Q),h.dragListener=null}});return X},l.prototype.segResizeStart=function(a,d){this.isResizing=!0,this.component.publiclyTrigger("eventResizeStart",{context:a.el[0],args:[a.footprint.getEventLegacy(),d,{},this.view]})},l.prototype.segResizeStop=function(a,d){this.isResizing=!1,this.component.publiclyTrigger("eventResizeStop",{context:a.el[0],args:[a.footprint.getEventLegacy(),d,{},this.view]})},l.prototype.computeEventStartResizeMutation=function(a,d,h){var v=h.componentFootprint.unzonedRange,C=this.component.diffDates(d.unzonedRange.getStart(),a.unzonedRange.getStart()),k,j;return v.getStart().add(C)<v.getEnd()?(k=new n.default,k.setStartDelta(C),j=new E.default,j.setDateMutation(k),j):!1},l.prototype.computeEventEndResizeMutation=function(a,d,h){var v=h.componentFootprint.unzonedRange,C=this.component.diffDates(d.unzonedRange.getEnd(),a.unzonedRange.getEnd()),k,j;return v.getEnd().add(C)>v.getStart()?(k=new n.default,k.setEndDelta(C),j=new E.default,j.setDateMutation(k),j):!1},l}(u.default);m.default=o},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=t(36),E=t(50),n=t(54),i=t(22),u=t(244),o=t(15),c=t(16),l=function(a){p.__extends(d,a);function d(h,v){var C=a.call(this,h)||this;return C.isDragging=!1,C.eventPointing=v,C}return d.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},d.prototype.getSelectionDelay=function(){var h=this.opt("eventLongPressDelay");return h==null&&(h=this.opt("longPressDelay")),h},d.prototype.bindToEl=function(h){var v=this.component;v.bindSegHandlerToEl(h,"mousedown",this.handleMousedown.bind(this)),v.bindSegHandlerToEl(h,"touchstart",this.handleTouchStart.bind(this))},d.prototype.handleMousedown=function(h,v){!o.default.get().shouldIgnoreMouse()&&this.component.canStartDrag(h,v)&&this.buildDragListener(h).startInteraction(v,{distance:5})},d.prototype.handleTouchStart=function(h,v){var C=this.component,k={delay:this.view.isEventDefSelected(h.footprint.eventDef)?0:this.getSelectionDelay()};o.default.get().shouldIgnoreMouse()||(C.canStartDrag(h,v)?this.buildDragListener(h).startInteraction(v,k):C.canStartSelection(h,v)&&this.buildSelectListener(h).startInteraction(v,k))},d.prototype.buildSelectListener=function(h){var v=this,C=this.view,k=h.footprint.eventDef,j=h.footprint.eventInstance;if(this.dragListener)return this.dragListener;var G=this.dragListener=new n.default({dragStart:function(N){G.isTouch&&!C.isEventDefSelected(k)&&j&&C.selectEventInstance(j)},interactionEnd:function(N){v.dragListener=null}});return G},d.prototype.buildDragListener=function(h){var v=this,C=this.component,k=this.view,j=k.calendar,G=j.eventManager,N=h.el,T=h.footprint.eventDef,A=h.footprint.eventInstance,U,X,Q;if(this.dragListener)return this.dragListener;var re=this.dragListener=new i.default(k,{scroll:this.opt("dragScroll"),subjectEl:N,subjectCenter:!0,interactionStart:function(ge){h.component=C,U=!1,X=new u.default(h.el,{additionalClass:"fc-dragging",parentEl:k.el,opacity:re.isTouch?null:v.opt("dragOpacity"),revertDuration:v.opt("dragRevertDuration"),zIndex:2}),X.hide(),X.start(ge)},dragStart:function(ge){re.isTouch&&!k.isEventDefSelected(T)&&A&&k.selectEventInstance(A),U=!0,v.eventPointing.handleMouseout(h,ge),v.segDragStart(h,ge),k.hideEventsWithId(h.footprint.eventDef.id)},hitOver:function(ge,Ce,pe){var ie=!0,oe,me,Fe;h.hit&&(pe=h.hit),oe=pe.component.getSafeHitFootprint(pe),me=ge.component.getSafeHitFootprint(ge),oe&&me?(Q=v.computeEventDropMutation(oe,me,T),Q?(Fe=G.buildMutatedEventInstanceGroup(T.id,Q),ie=C.isEventInstanceGroupAllowed(Fe)):ie=!1):ie=!1,ie||(Q=null,w.disableCursor()),Q&&k.renderDrag(C.eventRangesToEventFootprints(Fe.sliceRenderRanges(C.dateProfile.renderUnzonedRange,j)),h,re.isTouch)?X.hide():X.show(),Ce&&(Q=null)},hitOut:function(){k.unrenderDrag(h),X.show(),Q=null},hitDone:function(){w.enableCursor()},interactionEnd:function(ge){delete h.component,X.stop(!Q,function(){U&&(k.unrenderDrag(h),v.segDragStop(h,ge)),k.showEventsWithId(h.footprint.eventDef.id),Q&&k.reportEventDrop(A,Q,N,ge)}),v.dragListener=null}});return re},d.prototype.segDragStart=function(h,v){this.isDragging=!0,this.component.publiclyTrigger("eventDragStart",{context:h.el[0],args:[h.footprint.getEventLegacy(),v,{},this.view]})},d.prototype.segDragStop=function(h,v){this.isDragging=!1,this.component.publiclyTrigger("eventDragStop",{context:h.el[0],args:[h.footprint.getEventLegacy(),v,{},this.view]})},d.prototype.computeEventDropMutation=function(h,v,C){var k=new g.default;return k.setDateMutation(this.computeEventDateMutation(h,v)),k},d.prototype.computeEventDateMutation=function(h,v){var C=h.unzonedRange.getStart(),k=v.unzonedRange.getStart(),j=!1,G=!1,N=!1,T,A;return h.isAllDay!==v.isAllDay&&(j=!0,v.isAllDay?(N=!0,C.stripTime()):G=!0),T=this.component.diffDates(k,C),A=new E.default,A.clearEnd=j,A.forceTimed=G,A.forceAllDay=N,A.setDateDelta(T),A},d}(c.default);m.default=l},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=t(22),E=t(12),n=t(5),i=t(16),u=function(o){p.__extends(c,o);function c(l){var a=o.call(this,l)||this;return a.dragListener=a.buildDragListener(),a}return c.prototype.end=function(){this.dragListener.endInteraction()},c.prototype.getDelay=function(){var l=this.opt("selectLongPressDelay");return l==null&&(l=this.opt("longPressDelay")),l},c.prototype.bindToEl=function(l){var a=this,d=this.component,h=this.dragListener;d.bindDateHandlerToEl(l,"mousedown",function(v){a.opt("selectable")&&!d.shouldIgnoreMouse()&&h.startInteraction(v,{distance:a.opt("selectMinDistance")})}),d.bindDateHandlerToEl(l,"touchstart",function(v){a.opt("selectable")&&!d.shouldIgnoreTouch()&&h.startInteraction(v,{delay:a.getDelay()})}),w.preventSelection(l)},c.prototype.buildDragListener=function(){var l=this,a=this.component,d,h=new g.default(a,{scroll:this.opt("dragScroll"),interactionStart:function(){d=null},dragStart:function(v){l.view.unselect(v)},hitOver:function(v,C,k){var j,G;k&&(j=a.getSafeHitFootprint(k),G=a.getSafeHitFootprint(v),j&&G?d=l.computeSelection(j,G):d=null,d?a.renderSelectionFootprint(d):d===!1&&w.disableCursor())},hitOut:function(){d=null,a.unrenderSelection()},hitDone:function(){w.enableCursor()},interactionEnd:function(v,C){!C&&d&&l.view.reportSelection(d,v)}});return h},c.prototype.computeSelection=function(l,a){var d=this.computeSelectionFootprint(l,a);return d&&!this.isSelectionFootprintAllowed(d)?!1:d},c.prototype.computeSelectionFootprint=function(l,a){var d=[l.unzonedRange.startMs,l.unzonedRange.endMs,a.unzonedRange.startMs,a.unzonedRange.endMs];return d.sort(w.compareNumbers),new E.default(new n.default(d[0],d[3]),l.isAllDay)},c.prototype.isSelectionFootprintAllowed=function(l){return this.component.dateProfile.validUnzonedRange.containsRange(l.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(l)},c}(i.default);m.default=u},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(0),g=t(3),E=t(4),n=t(39),i=t(41),u=t(227),o=t(61),c=5,l,a,d=function(v){p.__extends(C,v);function C(k,j){var G=v.call(this,k,j)||this;return G.usesMinMaxTime=!0,G.timeGrid=G.instantiateTimeGrid(),G.addChild(G.timeGrid),G.opt("allDaySlot")&&(G.dayGrid=G.instantiateDayGrid(),G.addChild(G.dayGrid)),G.scroller=new n.default({overflowX:"hidden",overflowY:"auto"}),G}return C.prototype.instantiateTimeGrid=function(){var k=new this.timeGridClass(this);return E.copyOwnProps(l,k),k},C.prototype.instantiateDayGrid=function(){var k=new this.dayGridClass(this);return E.copyOwnProps(a,k),k},C.prototype.renderSkeleton=function(){var k,j;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.scroller.render(),k=this.scroller.el.addClass("fc-time-grid-container"),j=g('<div class="fc-time-grid" />').appendTo(k),this.el.find(".fc-body > tr > td").append(k),this.timeGrid.headContainerEl=this.el.find(".fc-head-container"),this.timeGrid.setElement(j),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},C.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement(),this.dayGrid&&this.dayGrid.removeElement(),this.scroller.destroy()},C.prototype.renderSkeletonHtml=function(){var k=this.calendar.theme;return'<table class="'+k.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+k.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+k.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+k.getClass("widgetHeader")+'"/>':"")+"</td></tr></tbody></table>"},C.prototype.axisStyleAttr=function(){return this.axisWidth!=null?'style="width:'+this.axisWidth+'px"':""},C.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},C.prototype.updateSize=function(k,j,G){var N,T,A;if(v.prototype.updateSize.call(this,k,j,G),this.axisWidth=E.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls){j||(T=this.computeScrollerHeight(k),this.scroller.setHeight(T));return}var U=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide(),this.scroller.clear(),E.uncompensateScroll(U),this.dayGrid&&(this.dayGrid.removeSegPopover(),N=this.opt("eventLimit"),N&&typeof N!="number"&&(N=c),N&&this.dayGrid.limitRows(N)),j||(T=this.computeScrollerHeight(k),this.scroller.setHeight(T),A=this.scroller.getScrollbarWidths(),(A.left||A.right)&&(E.compensateScroll(U,A),T=this.computeScrollerHeight(k),this.scroller.setHeight(T)),this.scroller.lockOverflow(A),this.timeGrid.getTotalSlatHeight()<T&&this.timeGrid.bottomRuleEl.show())},C.prototype.computeScrollerHeight=function(k){return k-E.subtractInnerElHeight(this.el,this.scroller.el)},C.prototype.computeInitialDateScroll=function(){var k=w.duration(this.opt("scrollTime")),j=this.timeGrid.computeTimeTop(k);return j=Math.ceil(j),j&&j++,{top:j}},C.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},C.prototype.applyDateScroll=function(k){k.top!==void 0&&this.scroller.setScrollTop(k.top)},C.prototype.getHitFootprint=function(k){return k.component.getHitFootprint(k)},C.prototype.getHitEl=function(k){return k.component.getHitEl(k)},C.prototype.executeEventRender=function(k){var j={},G={},N,T;for(N in k)T=k[N],T.getEventDef().isAllDay()?j[N]=T:G[N]=T;this.timeGrid.executeEventRender(G),this.dayGrid&&this.dayGrid.executeEventRender(j)},C.prototype.renderDrag=function(k,j,G){var N=h(k),T=!1;return T=this.timeGrid.renderDrag(N.timed,j,G),this.dayGrid&&(T=this.dayGrid.renderDrag(N.allDay,j,G)||T),T},C.prototype.renderEventResize=function(k,j,G){var N=h(k);this.timeGrid.renderEventResize(N.timed,j,G),this.dayGrid&&this.dayGrid.renderEventResize(N.allDay,j,G)},C.prototype.renderSelectionFootprint=function(k){k.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(k):this.timeGrid.renderSelectionFootprint(k)},C}(i.default);m.default=d,d.prototype.timeGridClass=u.default,d.prototype.dayGridClass=o.default,l={renderHeadIntroHtml:function(){var v=this.view,C=v.calendar,k=C.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0),j;return this.opt("weekNumbers")?(j=k.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+C.theme.getClass("widgetHeader")+'" '+v.axisStyleAttr()+">"+v.buildGotoAnchorHtml({date:k,type:"week",forceOff:this.colCnt>1},E.htmlEscape(j))+"</th>"):'<th class="fc-axis '+C.theme.getClass("widgetHeader")+'" '+v.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var v=this.view;return'<td class="fc-axis '+v.calendar.theme.getClass("widgetContent")+'" '+v.axisStyleAttr()+"></td>"},renderIntroHtml:function(){var v=this.view;return'<td class="fc-axis" '+v.axisStyleAttr()+"></td>"}},a={renderBgIntroHtml:function(){var v=this.view;return'<td class="fc-axis '+v.calendar.theme.getClass("widgetContent")+'" '+v.axisStyleAttr()+"><span>"+v.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){var v=this.view;return'<td class="fc-axis" '+v.axisStyleAttr()+"></td>"}};function h(v){var C=[],k=[],j;for(j=0;j<v.length;j++)v[j].componentFootprint.isAllDay?C.push(v[j]):k.push(v[j]);return{allDay:C,timed:k}}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(0),E=t(4),n=t(40),i=t(56),u=t(60),o=t(55),c=t(53),l=t(5),a=t(12),d=t(246),h=t(247),v=t(248),C=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],k=function(j){p.__extends(G,j);function G(N){var T=j.call(this,N)||this;return T.processOptions(),T}return G.prototype.componentFootprintToSegs=function(N){var T=this.sliceRangeByTimes(N.unzonedRange),A;for(A=0;A<T.length;A++)this.isRTL?T[A].col=this.daysPerRow-1-T[A].dayIndex:T[A].col=T[A].dayIndex;return T},G.prototype.sliceRangeByTimes=function(N){var T=[],A,U;for(U=0;U<this.daysPerRow;U++)A=N.intersect(this.dayRanges[U]),A&&T.push({startMs:A.startMs,endMs:A.endMs,isStart:A.isStart,isEnd:A.isEnd,dayIndex:U});return T},G.prototype.processOptions=function(){var N=this.opt("slotDuration"),T=this.opt("snapDuration"),A;N=g.duration(N),T=T?g.duration(T):N,this.slotDuration=N,this.snapDuration=T,this.snapsPerSlot=N/T,A=this.opt("slotLabelFormat"),w.isArray(A)&&(A=A[A.length-1]),this.labelFormat=A||this.opt("smallTimeFormat"),A=this.opt("slotLabelInterval"),this.labelInterval=A?g.duration(A):this.computeLabelInterval(N)},G.prototype.computeLabelInterval=function(N){var T,A,U;for(T=C.length-1;T>=0;T--)if(A=g.duration(C[T]),U=E.divideDurationByDuration(A,N),E.isInt(U)&&U>1)return A;return g.duration(N)},G.prototype.renderDates=function(N){this.dateProfile=N,this.updateDayTable(),this.renderSlats(),this.renderColumns()},G.prototype.unrenderDates=function(){this.unrenderColumns()},G.prototype.renderSkeleton=function(){var N=this.view.calendar.theme;this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+N.getClass("widgetHeader")+'" style="display:none" />'),this.bottomRuleEl=this.el.find("hr")},G.prototype.renderSlats=function(){var N=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+N.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"</table>"),this.slatEls=this.slatContainerEl.find("tr"),this.slatCoordCache=new c.default({els:this.slatEls,isVertical:!0})},G.prototype.renderSlatRowHtml=function(){for(var N=this.view,T=N.calendar,A=T.theme,U=this.isRTL,X=this.dateProfile,Q="",re=g.duration(+X.minTime),ge=g.duration(0),Ce,pe,ie;re<X.maxTime;)Ce=T.msToUtcMoment(X.renderUnzonedRange.startMs).time(re),pe=E.isInt(E.divideDurationByDuration(ge,this.labelInterval)),ie='<td class="fc-axis fc-time '+A.getClass("widgetContent")+'" '+N.axisStyleAttr()+">"+(pe?"<span>"+E.htmlEscape(Ce.format(this.labelFormat))+"</span>":"")+"</td>",Q+='<tr data-time="'+Ce.format("HH:mm:ss")+'"'+(pe?"":' class="fc-minor"')+">"+(U?"":ie)+'<td class="'+A.getClass("widgetContent")+'"/>'+(U?ie:"")+"</tr>",re.add(this.slotDuration),ge.add(this.slotDuration);return Q},G.prototype.renderColumns=function(){var N=this.dateProfile,T=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(A){return new l.default(A.clone().add(N.minTime),A.clone().add(N.maxTime))}),this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),this.el.find("> .fc-bg").html('<table class="'+T.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"</table>"),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.colCoordCache=new c.default({els:this.colEls,isHorizontal:!0}),this.renderContentSkeleton()},G.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},G.prototype.renderContentSkeleton=function(){var N="",T,A;for(T=0;T<this.colCnt;T++)N+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';A=this.contentSkeletonEl=w('<div class="fc-content-skeleton"><table><tr>'+N+"</tr></table></div>"),this.colContainerEls=A.find(".fc-content-col"),this.helperContainerEls=A.find(".fc-helper-container"),this.fgContainerEls=A.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=A.find(".fc-bgevent-container"),this.highlightContainerEls=A.find(".fc-highlight-container"),this.businessContainerEls=A.find(".fc-business-container"),this.bookendCells(A.find("tr")),this.el.append(A)},G.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},G.prototype.groupSegsByCol=function(N){var T=[],A;for(A=0;A<this.colCnt;A++)T.push([]);for(A=0;A<N.length;A++)T[N[A].col].push(N[A]);return T},G.prototype.attachSegsByCol=function(N,T){var A,U,X;for(A=0;A<this.colCnt;A++)for(U=N[A],X=0;X<U.length;X++)T.eq(A).append(U[X].el)},G.prototype.getNowIndicatorUnit=function(){return"minute"},G.prototype.renderNowIndicator=function(N){if(this.colContainerEls){var T=this.componentFootprintToSegs(new a.default(new l.default(N,N.valueOf()+1),!1)),A=this.computeDateTop(N,N),U=[],X;for(X=0;X<T.length;X++)U.push(w('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",A).appendTo(this.colContainerEls.eq(T[X].col))[0]);T.length>0&&U.push(w('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",A).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=w(U)}},G.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},G.prototype.updateSize=function(N,T,A){j.prototype.updateSize.call(this,N,T,A),this.slatCoordCache.build(),A&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},G.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},G.prototype.computeDateTop=function(N,T){return this.computeTimeTop(g.duration(N-T.clone().stripTime()))},G.prototype.computeTimeTop=function(N){var T=this.slatEls.length,A=this.dateProfile,U=(N-A.minTime)/this.slotDuration,X,Q;return U=Math.max(0,U),U=Math.min(T,U),X=Math.floor(U),X=Math.min(X,T-1),Q=U-X,this.slatCoordCache.getTopPosition(X)+this.slatCoordCache.getHeight(X)*Q},G.prototype.updateSegVerticals=function(N){this.computeSegVerticals(N),this.assignSegVerticals(N)},G.prototype.computeSegVerticals=function(N){var T=this.opt("agendaEventMinHeight"),A,U,X;for(A=0;A<N.length;A++)U=N[A],X=this.dayDates[U.dayIndex],U.top=this.computeDateTop(U.startMs,X),U.bottom=Math.max(U.top+T,this.computeDateTop(U.endMs,X))},G.prototype.assignSegVerticals=function(N){var T,A;for(T=0;T<N.length;T++)A=N[T],A.el.css(this.generateSegVerticalCss(A))},G.prototype.generateSegVerticalCss=function(N){return{top:N.top,bottom:-N.bottom}},G.prototype.prepareHits=function(){this.colCoordCache.build(),this.slatCoordCache.build()},G.prototype.releaseHits=function(){this.colCoordCache.clear()},G.prototype.queryHit=function(N,T){var A=this.snapsPerSlot,U=this.colCoordCache,X=this.slatCoordCache;if(U.isLeftInBounds(N)&&X.isTopInBounds(T)){var Q=U.getHorizontalIndex(N),re=X.getVerticalIndex(T);if(Q!=null&&re!=null){var ge=X.getTopOffset(re),Ce=X.getHeight(re),pe=(T-ge)/Ce,ie=Math.floor(pe*A),oe=re*A+ie,me=ge+ie/A*Ce,Fe=ge+(ie+1)/A*Ce;return{col:Q,snap:oe,component:this,left:U.getLeftOffset(Q),right:U.getRightOffset(Q),top:me,bottom:Fe}}}},G.prototype.getHitFootprint=function(N){var T=this.getCellDate(0,N.col),A=this.computeSnapTime(N.snap),U;return T.time(A),U=T.clone().add(this.snapDuration),new a.default(new l.default(T,U),!1)},G.prototype.computeSnapTime=function(N){return g.duration(this.dateProfile.minTime+this.snapDuration*N)},G.prototype.getHitEl=function(N){return this.colEls.eq(N.col)},G.prototype.renderDrag=function(N,T,A){var U;if(T){if(N.length)return this.helperRenderer.renderEventDraggingFootprints(N,T,A),!0}else for(U=0;U<N.length;U++)this.renderHighlight(N[U].componentFootprint)},G.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},G.prototype.renderEventResize=function(N,T,A){this.helperRenderer.renderEventResizingFootprints(N,T,A)},G.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},G.prototype.renderSelectionFootprint=function(N){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(N):this.renderHighlight(N)},G.prototype.unrenderSelection=function(){this.helperRenderer.unrender(),this.unrenderHighlight()},G}(n.default);m.default=k,k.prototype.eventRendererClass=d.default,k.prototype.businessHourRendererClass=i.default,k.prototype.helperRendererClass=h.default,k.prototype.fillRendererClass=v.default,u.default.mixInto(k),o.default.mixInto(k)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(5),g=t(221),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.buildRenderRange=function(u,o,c){var l=n.prototype.buildRenderRange.call(this,u,o,c),a=this.msToUtcMoment(l.startMs,c),d=this.msToUtcMoment(l.endMs,c);return/^(year|month)$/.test(o)&&(a.startOf("week"),d.weekday()&&d.add(1,"week").startOf("week")),new w.default(a,d)},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(0),g=t(4),E=t(62),n=t(253),i=function(u){p.__extends(o,u);function o(){return u!==null&&u.apply(this,arguments)||this}return o.prototype.setGridHeight=function(c,l){l&&(c*=this.dayGrid.rowCnt/6),g.distributeHeight(this.dayGrid.rowEls,c,!l)},o.prototype.isDateInOtherMonth=function(c,l){return c.month()!==w.utc(l.currentUnzonedRange.startMs).month()},o}(E.default);m.default=i,i.prototype.dateProfileGeneratorClass=n.default},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(5),n=t(41),i=t(39),u=t(254),o=t(255),c=function(l){p.__extends(a,l);function a(d,h){var v=l.call(this,d,h)||this;return v.segSelector=".fc-list-item",v.scroller=new i.default({overflowX:"hidden",overflowY:"auto"}),v}return a.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView")),this.scroller.render(),this.scroller.el.appendTo(this.el),this.contentEl=this.scroller.scrollEl},a.prototype.unrenderSkeleton=function(){this.scroller.destroy()},a.prototype.updateSize=function(d,h,v){this.scroller.setHeight(this.computeScrollerHeight(d))},a.prototype.computeScrollerHeight=function(d){return d-g.subtractInnerElHeight(this.el,this.scroller.el)},a.prototype.renderDates=function(d){for(var h=this.calendar,v=h.msToUtcMoment(d.renderUnzonedRange.startMs,!0),C=h.msToUtcMoment(d.renderUnzonedRange.endMs,!0),k=[],j=[];v<C;)k.push(v.clone()),j.push(new E.default(v,v.clone().add(1,"day"))),v.add(1,"day");this.dayDates=k,this.dayRanges=j},a.prototype.componentFootprintToSegs=function(d){var h=this.dayRanges,v,C,k,j=[];for(v=0;v<h.length;v++)if(C=d.unzonedRange.intersect(h[v]),C&&(k={startMs:C.startMs,endMs:C.endMs,isStart:C.isStart,isEnd:C.isEnd,dayIndex:v},j.push(k),!k.isEnd&&!d.isAllDay&&v+1<h.length&&d.unzonedRange.endMs<h[v+1].startMs+this.nextDayThreshold)){k.endMs=d.unzonedRange.endMs,k.isEnd=!0;break}return j},a.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+g.htmlEscape(this.opt("noEventsMessage"))+"</div></div></div>")},a.prototype.renderSegList=function(d){var h=this.groupSegsByDay(d),v,C,k,j=w('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/></table>'),G=j.find("tbody");for(v=0;v<h.length;v++)if(C=h[v],C)for(G.append(this.dayHeaderHtml(this.dayDates[v])),this.eventRenderer.sortEventSegs(C),k=0;k<C.length;k++)G.append(C[k].el);this.contentEl.empty().append(j)},a.prototype.groupSegsByDay=function(d){var h=[],v,C;for(v=0;v<d.length;v++)C=d[v],(h[C.dayIndex]||(h[C.dayIndex]=[])).push(C);return h},a.prototype.dayHeaderHtml=function(d){var h=this.opt("listDayFormat"),v=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+d.format("YYYY-MM-DD")+'"><td class="'+this.calendar.theme.getClass("widgetHeader")+'" colspan="3">'+(h?this.buildGotoAnchorHtml(d,{class:"fc-list-heading-main"},g.htmlEscape(d.format(h))):"")+(v?this.buildGotoAnchorHtml(d,{class:"fc-list-heading-alt"},g.htmlEscape(d.format(v))):"")+"</td></tr>"},a}(n.default);m.default=c,c.prototype.eventRendererClass=u.default,c.prototype.eventPointingClass=o.default},,,,,,function(B,m,t){var p=t(3),w=t(17),g=t(4),E=t(220);t(10),t(47),t(256),t(257),t(259),t(260),t(261),t(262),p.fullCalendar=w,p.fn.fullCalendar=function(n){var i=Array.prototype.slice.call(arguments,1),u=this;return this.each(function(o,c){var l=p(c),a=l.data("fullCalendar"),d;typeof n=="string"?n==="getCalendar"?o||(u=a):n==="destroy"?a&&(a.destroy(),l.removeData("fullCalendar")):a?p.isFunction(a[n])?(d=a[n].apply(a,i),o||(u=d),n==="destroy"&&l.removeData("fullCalendar")):g.warn("'"+n+"' is an unknown FullCalendar method."):g.warn("Attempting to call a FullCalendar method on an element with no calendar."):a||(a=new E.default(l,n),l.data("fullCalendar",a),a.render())}),u},B.exports=w},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(48),g=function(E){p.__extends(n,E);function n(){return E!==null&&E.apply(this,arguments)||this}return n.prototype.setElement=function(i){this.el=i,this.bindGlobalHandlers(),this.renderSkeleton(),this.set("isInDom",!0)},n.prototype.removeElement=function(){this.unset("isInDom"),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},n.prototype.bindGlobalHandlers=function(){},n.prototype.unbindGlobalHandlers=function(){},n.prototype.renderSkeleton=function(){},n.prototype.unrenderSkeleton=function(){},n}(w.default);m.default=g},function(B,m){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function p(w){this.items=w||[]}return p.prototype.proxyCall=function(w){for(var g=[],E=1;E<arguments.length;E++)g[E-1]=arguments[E];var n=[];return this.items.forEach(function(i){n.push(i[w].apply(i,g))}),n},p}();m.default=t},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=function(){function E(n,i){this.el=null,this.viewsWithButtons=[],this.calendar=n,this.toolbarOptions=i}return E.prototype.setToolbarOptions=function(n){this.toolbarOptions=n},E.prototype.render=function(){var n=this.toolbarOptions.layout,i=this.el;n?(i?i.empty():i=this.el=p("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),i.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},E.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},E.prototype.renderSection=function(n){var i=this,u=this.calendar,o=u.theme,c=u.optionsManager,l=u.viewSpecManager,a=p('<div class="fc-'+n+'"/>'),d=this.toolbarOptions.layout[n],h=c.get("customButtons")||{},v=c.overrides.buttonText||{},C=c.get("buttonText")||{};return d&&p.each(d.split(" "),function(k,j){var G=p(),N=!0,T;p.each(j.split(","),function(A,U){var X,Q,re,ge,Ce,pe,ie,oe,me;U==="title"?(G=G.add(p("<h2>&nbsp;</h2>")),N=!1):((X=h[U])?(re=function(Fe){X.click&&X.click.call(oe[0],Fe)},(ge=o.getCustomButtonIconClass(X))||(ge=o.getIconClass(U))||(Ce=X.text)):(Q=l.getViewSpec(U))?(i.viewsWithButtons.push(U),re=function(){u.changeView(U)},(Ce=Q.buttonTextOverride)||(ge=o.getIconClass(U))||(Ce=Q.buttonTextDefault)):u[U]&&(re=function(){u[U]()},(Ce=v[U])||(ge=o.getIconClass(U))||(Ce=C[U])),re&&(ie=["fc-"+U+"-button",o.getClass("button"),o.getClass("stateDefault")],Ce?(pe=w.htmlEscape(Ce),me=""):ge&&(pe="<span class='"+ge+"'></span>",me=' aria-label="'+U+'"'),oe=p('<button type="button" class="'+ie.join(" ")+'"'+me+">"+pe+"</button>").click(function(Fe){oe.hasClass(o.getClass("stateDisabled"))||(re(Fe),(oe.hasClass(o.getClass("stateActive"))||oe.hasClass(o.getClass("stateDisabled")))&&oe.removeClass(o.getClass("stateHover")))}).mousedown(function(){oe.not("."+o.getClass("stateActive")).not("."+o.getClass("stateDisabled")).addClass(o.getClass("stateDown"))}).mouseup(function(){oe.removeClass(o.getClass("stateDown"))}).hover(function(){oe.not("."+o.getClass("stateActive")).not("."+o.getClass("stateDisabled")).addClass(o.getClass("stateHover"))},function(){oe.removeClass(o.getClass("stateHover")).removeClass(o.getClass("stateDown"))}),G=G.add(oe)))}),N&&G.first().addClass(o.getClass("cornerLeft")).end().last().addClass(o.getClass("cornerRight")).end(),G.length>1?(T=p("<div/>"),N&&T.addClass(o.getClass("buttonGroup")),T.append(G),a.append(T)):a.append(G)}),a},E.prototype.updateTitle=function(n){this.el&&this.el.find("h2").text(n)},E.prototype.activateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").addClass(this.calendar.theme.getClass("stateActive"))},E.prototype.deactivateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},E.prototype.disableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},E.prototype.enableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},E.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},E}();m.default=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(31),n=t(30),i=t(48),u=function(o){p.__extends(c,o);function c(l,a){var d=o.call(this)||this;return d._calendar=l,d.overrides=w.extend({},a),d.dynamicOverrides={},d.compute(),d}return c.prototype.add=function(l){var a=0,d;this.recordOverrides(l);for(d in l)a++;if(a===1)if(d==="height"||d==="contentHeight"||d==="aspectRatio"){this._calendar.updateViewSize(!0);return}else{if(d==="defaultDate")return;if(d==="businessHours")return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(d))return;if(d==="timezone"){this._calendar.view.flash("initialEvents");return}}this._calendar.renderHeader(),this._calendar.renderFooter(),this._calendar.viewsByType={},this._calendar.reinitView()},c.prototype.compute=function(){var l,a,d,h,v;l=g.firstDefined(this.dynamicOverrides.locale,this.overrides.locale),a=n.localeOptionHash[l],a||(l=E.globalDefaults.locale,a=n.localeOptionHash[l]||{}),d=g.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,a.isRTL,E.globalDefaults.isRTL),h=d?E.rtlDefaults:{},this.dirDefaults=h,this.localeDefaults=a,v=E.mergeOptions([E.globalDefaults,h,a,this.overrides,this.dynamicOverrides]),n.populateInstanceComputableOptions(v),this.reset(v)},c.prototype.recordOverrides=function(l){var a;for(a in l)this.dynamicOverrides[a]=l[a];this._calendar.viewSpecManager.clearCache(),this.compute()},c}(i.default);m.default=u},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(0),w=t(3),g=t(21),E=t(4),n=t(31),i=t(30),u=function(){function o(c,l){this.optionsManager=c,this._calendar=l,this.clearCache()}return o.prototype.clearCache=function(){this.viewSpecCache={}},o.prototype.getViewSpec=function(c){var l=this.viewSpecCache;return l[c]||(l[c]=this.buildViewSpec(c))},o.prototype.getUnitViewSpec=function(c){var l,a,d;if(w.inArray(c,E.unitsDesc)!==-1){for(l=this._calendar.header.getViewsWithButtons(),w.each(g.viewHash,function(h){l.push(h)}),a=0;a<l.length;a++)if(d=this.getViewSpec(l[a]),d&&d.singleUnit===c)return d}},o.prototype.buildViewSpec=function(c){for(var l=this.optionsManager.overrides.views||{},a=[],d=[],h=[],v=c,C,k,j,G,N;v;)C=g.viewHash[v],k=l[v],v=null,typeof C=="function"&&(C={class:C}),C&&(a.unshift(C),d.unshift(C.defaults||{}),j=j||C.duration,v=v||C.type),k&&(h.unshift(k),j=j||k.duration,v=v||k.type);return C=E.mergeProps(a),C.type=c,C.class?(j=j||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,j&&(G=p.duration(j),G.valueOf()&&(N=E.computeDurationGreatestUnit(G,j),C.duration=G,C.durationUnit=N,G.as(N)===1&&(C.singleUnit=N,h.unshift(l[N]||{})))),C.defaults=n.mergeOptions(d),C.overrides=n.mergeOptions(h),this.buildViewSpecOptions(C),this.buildViewSpecButtonText(C,c),C):!1},o.prototype.buildViewSpecOptions=function(c){var l=this.optionsManager;c.options=n.mergeOptions([n.globalDefaults,c.defaults,l.dirDefaults,l.localeDefaults,l.overrides,c.overrides,l.dynamicOverrides]),i.populateInstanceComputableOptions(c.options)},o.prototype.buildViewSpecButtonText=function(c,l){var a=this.optionsManager;function d(h){var v=h.buttonText||{};return v[l]||(c.buttonTextKey?v[c.buttonTextKey]:null)||(c.singleUnit?v[c.singleUnit]:null)}c.buttonTextOverride=d(a.dynamicOverrides)||d(a.overrides)||c.overrides.buttonText,c.buttonTextDefault=d(a.localeDefaults)||d(a.dirDefaults)||c.defaults.buttonText||d(n.globalDefaults)||(c.duration?this._calendar.humanizeDuration(c.duration):null)||l},o}();m.default=u},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=t(243),E=t(52),n=t(6),i=t(37),u=t(13),o=t(19),c=t(11),l=t(7),a=function(){function h(v){this.calendar=v,this.stickySource=new E.default(v),this.otherSources=[]}return h.prototype.requestEvents=function(v,C,k,j){return(j||!this.currentPeriod||!this.currentPeriod.isWithinRange(v,C)||k!==this.currentPeriod.timezone)&&this.setPeriod(new g.default(v,C,k)),this.currentPeriod.whenReleased()},h.prototype.addSource=function(v){this.otherSources.push(v),this.currentPeriod&&this.currentPeriod.requestSource(v)},h.prototype.removeSource=function(v){w.removeExact(this.otherSources,v),this.currentPeriod&&this.currentPeriod.purgeSource(v)},h.prototype.removeAllSources=function(){this.otherSources=[],this.currentPeriod&&this.currentPeriod.purgeAllSources()},h.prototype.refetchSource=function(v){var C=this.currentPeriod;C&&(C.freeze(),C.purgeSource(v),C.requestSource(v),C.thaw())},h.prototype.refetchAllSources=function(){var v=this.currentPeriod;v&&(v.freeze(),v.purgeAllSources(),v.requestSources(this.getSources()),v.thaw())},h.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},h.prototype.multiQuerySources=function(v){v?p.isArray(v)||(v=[v]):v=[];var C=[],k;for(k=0;k<v.length;k++)C.push.apply(C,this.querySources(v[k]));return C},h.prototype.querySources=function(v){var C=this.otherSources,k,j;for(k=0;k<C.length;k++)if(j=C[k],j===v)return[j];if(j=this.getSourceById(n.default.normalizeId(v)),j)return[j];if(v=i.default.parse(v,this.calendar),v)return p.grep(C,function(G){return d(v,G)})},h.prototype.getSourceById=function(v){return p.grep(this.otherSources,function(C){return C.id&&C.id===v})[0]},h.prototype.setPeriod=function(v){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null),this.currentPeriod=v,this.bindPeriod(v),v.requestSources(this.getSources())},h.prototype.bindPeriod=function(v){this.listenTo(v,"release",function(C){this.trigger("release",C)})},h.prototype.unbindPeriod=function(v){this.stopListeningTo(v)},h.prototype.getEventDefByUid=function(v){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(v)},h.prototype.addEventDef=function(v,C){C&&this.stickySource.addEventDef(v),this.currentPeriod&&this.currentPeriod.addEventDef(v)},h.prototype.removeEventDefsById=function(v){this.getSources().forEach(function(C){C.removeEventDefsById(v)}),this.currentPeriod&&this.currentPeriod.removeEventDefsById(v)},h.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(v){v.removeAllEventDefs()}),this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},h.prototype.mutateEventsWithId=function(v,C){var k=this.currentPeriod,j,G=[];return k?(k.freeze(),j=k.getEventDefsById(v),j.forEach(function(N){k.removeEventDef(N),G.push(C.mutateSingle(N)),k.addEventDef(N)}),k.thaw(),function(){k.freeze();for(var N=0;N<j.length;N++)k.removeEventDef(j[N]),G[N](),k.addEventDef(j[N]);k.thaw()}):function(){}},h.prototype.buildMutatedEventInstanceGroup=function(v,C){var k=this.getEventDefsById(v),j,G,N=[];for(j=0;j<k.length;j++)G=k[j].clone(),G instanceof u.default&&(C.mutateSingle(G),N.push.apply(N,G.buildInstances()));return new o.default(N)},h.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},h.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},h.prototype.getEventDefsById=function(v){return this.currentPeriod.getEventDefsById(v)},h.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},h.prototype.getEventInstancesWithId=function(v){return this.currentPeriod.getEventInstancesWithId(v)},h.prototype.getEventInstancesWithoutId=function(v){return this.currentPeriod.getEventInstancesWithoutId(v)},h}();m.default=a,c.default.mixInto(a),l.default.mixInto(a);function d(h,v){return h.getPrimitive()===v.getPrimitive()}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=t(20),E=t(11),n=t(5),i=t(19),u=function(){function o(c,l,a){this.pendingCnt=0,this.freezeDepth=0,this.stuntedReleaseCnt=0,this.releaseCnt=0,this.start=c,this.end=l,this.timezone=a,this.unzonedRange=new n.default(c.clone().stripZone(),l.clone().stripZone()),this.requestsByUid={},this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={}}return o.prototype.isWithinRange=function(c,l){return!c.isBefore(this.start)&&!l.isAfter(this.end)},o.prototype.requestSources=function(c){this.freeze();for(var l=0;l<c.length;l++)this.requestSource(c[l]);this.thaw()},o.prototype.requestSource=function(c){var l=this,a={source:c,status:"pending",eventDefs:null};this.requestsByUid[c.uid]=a,this.pendingCnt+=1,c.fetch(this.start,this.end,this.timezone).then(function(d){a.status!=="cancelled"&&(a.status="completed",a.eventDefs=d,l.addEventDefs(d),l.pendingCnt--,l.tryRelease())},function(){a.status!=="cancelled"&&(a.status="failed",l.pendingCnt--,l.tryRelease())})},o.prototype.purgeSource=function(c){var l=this.requestsByUid[c.uid];l&&(delete this.requestsByUid[c.uid],l.status==="pending"?(l.status="cancelled",this.pendingCnt--,this.tryRelease()):l.status==="completed"&&l.eventDefs.forEach(this.removeEventDef.bind(this)))},o.prototype.purgeAllSources=function(){var c=this.requestsByUid,l,a,d=0;for(l in c)a=c[l],a.status==="pending"?a.status="cancelled":a.status==="completed"&&d++;this.requestsByUid={},this.pendingCnt=0,d&&this.removeAllEventDefs()},o.prototype.getEventDefByUid=function(c){return this.eventDefsByUid[c]},o.prototype.getEventDefsById=function(c){var l=this.eventDefsById[c];return l?l.slice():[]},o.prototype.addEventDefs=function(c){for(var l=0;l<c.length;l++)this.addEventDef(c[l])},o.prototype.addEventDef=function(c){var l=this.eventDefsById,a=c.id,d=l[a]||(l[a]=[]),h=c.buildInstances(this.unzonedRange),v;for(d.push(c),this.eventDefsByUid[c.uid]=c,v=0;v<h.length;v++)this.addEventInstance(h[v],a)},o.prototype.removeEventDefsById=function(c){var l=this;this.getEventDefsById(c).forEach(function(a){l.removeEventDef(a)})},o.prototype.removeAllEventDefs=function(){var c=p.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={},c||this.tryRelease()},o.prototype.removeEventDef=function(c){var l=this.eventDefsById,a=l[c.id];delete this.eventDefsByUid[c.uid],a&&(w.removeExact(a,c),a.length||delete l[c.id],this.removeEventInstancesForDef(c))},o.prototype.getEventInstances=function(){var c=this.eventInstanceGroupsById,l=[],a;for(a in c)l.push.apply(l,c[a].eventInstances);return l},o.prototype.getEventInstancesWithId=function(c){var l=this.eventInstanceGroupsById[c];return l?l.eventInstances.slice():[]},o.prototype.getEventInstancesWithoutId=function(c){var l=this.eventInstanceGroupsById,a=[],d;for(d in l)d!==c&&a.push.apply(a,l[d].eventInstances);return a},o.prototype.addEventInstance=function(c,l){var a=this.eventInstanceGroupsById,d=a[l]||(a[l]=new i.default);d.eventInstances.push(c),this.tryRelease()},o.prototype.removeEventInstancesForDef=function(c){var l=this.eventInstanceGroupsById,a=l[c.id],d;a&&(d=w.removeMatching(a.eventInstances,function(h){return h.def===c}),a.eventInstances.length||delete l[c.id],d&&this.tryRelease())},o.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},o.prototype.release=function(){this.releaseCnt++,this.trigger("release",this.eventInstanceGroupsById)},o.prototype.whenReleased=function(){var c=this;return this.releaseCnt?g.default.resolve(this.eventInstanceGroupsById):g.default.construct(function(l){c.one("release",l)})},o.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},o.prototype.thaw=function(){!--this.freezeDepth&&this.stuntedReleaseCnt&&!this.pendingCnt&&this.release()},o}();m.default=u,E.default.mixInto(u)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=t(7),E=function(){function n(i,u){this.isFollowing=!1,this.isHidden=!1,this.isAnimating=!1,this.options=u=u||{},this.sourceEl=i,this.parentEl=u.parentEl?p(u.parentEl):i.parent()}return n.prototype.start=function(i){this.isFollowing||(this.isFollowing=!0,this.y0=w.getEvY(i),this.x0=w.getEvX(i),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),w.getEvIsTouch(i)?this.listenTo(p(document),"touchmove",this.handleMove):this.listenTo(p(document),"mousemove",this.handleMove))},n.prototype.stop=function(i,u){var o=this,c=this.options.revertDuration,l=function(){o.isAnimating=!1,o.removeElement(),o.top0=o.left0=null,u&&u()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(p(document)),i&&c&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:c,complete:l})):l())},n.prototype.getEl=function(){var i=this.el;return i||(i=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").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}),i.addClass("fc-unselectable"),i.appendTo(this.parentEl)),i},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.updatePosition=function(){var i,u;this.getEl(),this.top0==null&&(i=this.sourceEl.offset(),u=this.el.offsetParent().offset(),this.top0=i.top-u.top,this.left0=i.left-u.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},n.prototype.handleMove=function(i){this.topDelta=w.getEvY(i)-this.y0,this.leftDelta=w.getEvX(i)-this.x0,this.isHidden||this.updatePosition()},n.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},n.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},n}();m.default=E,g.default.mixInto(E)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(22),g=t(16),E=function(n){p.__extends(i,n);function i(u){var o=n.call(this,u)||this;return o.dragListener=o.buildDragListener(),o}return i.prototype.end=function(){this.dragListener.endInteraction()},i.prototype.bindToEl=function(u){var o=this.component,c=this.dragListener;o.bindDateHandlerToEl(u,"mousedown",function(l){o.shouldIgnoreMouse()||c.startInteraction(l)}),o.bindDateHandlerToEl(u,"touchstart",function(l){o.shouldIgnoreTouch()||c.startInteraction(l)})},i.prototype.buildDragListener=function(){var u=this,o=this.component,c,l=new w.default(o,{scroll:this.opt("dragScroll"),interactionStart:function(){c=l.origHit},hitOver:function(a,d,h){d||(c=null)},hitOut:function(){c=null},interactionEnd:function(a,d){var h;!d&&c&&(h=o.getSafeHitFootprint(c),h&&u.view.triggerDayClick(h,o.getHitEl(c),a))}});return l.shouldCancelTouchScroll=!1,l.scrollAlwaysKills=!0,l},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=t(42),E=function(l){p.__extends(a,l);function a(d,h){var v=l.call(this,d,h)||this;return v.timeGrid=d,v}return a.prototype.renderFgSegs=function(d){this.renderFgSegsIntoContainers(d,this.timeGrid.fgContainerEls)},a.prototype.renderFgSegsIntoContainers=function(d,h){var v,C;for(v=this.timeGrid.groupSegsByCol(d),C=0;C<this.timeGrid.colCnt;C++)this.updateFgSegCoords(v[C]);this.timeGrid.attachSegsByCol(v,h)},a.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(d){d.el.remove()})},a.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},a.prototype.computeDisplayEventEnd=function(){return!0},a.prototype.fgSegHtml=function(d,h){var v=this.view,C=v.calendar,k=d.footprint.componentFootprint,j=k.isAllDay,G=d.footprint.eventDef,N=v.isEventDefDraggable(G),T=!h&&d.isStart&&v.isEventDefResizableFromStart(G),A=!h&&d.isEnd&&v.isEventDefResizableFromEnd(G),U=this.getSegClasses(d,N,T||A),X=w.cssToStr(this.getSkinCss(G)),Q,re,ge;if(U.unshift("fc-time-grid-event","fc-v-event"),v.isMultiDayRange(k.unzonedRange)){if(d.isStart||d.isEnd){var Ce=C.msToMoment(d.startMs),pe=C.msToMoment(d.endMs);Q=this._getTimeText(Ce,pe,j),re=this._getTimeText(Ce,pe,j,"LT"),ge=this._getTimeText(Ce,pe,j,null,!1)}}else Q=this.getTimeText(d.footprint),re=this.getTimeText(d.footprint,"LT"),ge=this.getTimeText(d.footprint,null,!1);return'<a class="'+U.join(" ")+'"'+(G.url?' href="'+w.htmlEscape(G.url)+'"':"")+(X?' style="'+X+'"':"")+'><div class="fc-content">'+(Q?'<div class="fc-time" data-start="'+w.htmlEscape(ge)+'" data-full="'+w.htmlEscape(re)+'"><span>'+w.htmlEscape(Q)+"</span></div>":"")+(G.title?'<div class="fc-title">'+w.htmlEscape(G.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(A?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},a.prototype.updateFgSegCoords=function(d){this.timeGrid.computeSegVerticals(d),this.computeFgSegHorizontals(d),this.timeGrid.assignSegVerticals(d),this.assignFgSegHorizontals(d)},a.prototype.computeFgSegHorizontals=function(d){var h,v,C;if(this.sortEventSegs(d),h=n(d),i(h),v=h[0]){for(C=0;C<v.length;C++)u(v[C]);for(C=0;C<v.length;C++)this.computeFgSegForwardBack(v[C],0,0)}},a.prototype.computeFgSegForwardBack=function(d,h,v){var C=d.forwardSegs,k;if(d.forwardCoord===void 0)for(C.length?(this.sortForwardSegs(C),this.computeFgSegForwardBack(C[0],h+1,v),d.forwardCoord=C[0].backwardCoord):d.forwardCoord=1,d.backwardCoord=d.forwardCoord-(d.forwardCoord-v)/(h+1),k=0;k<C.length;k++)this.computeFgSegForwardBack(C[k],0,d.forwardCoord)},a.prototype.sortForwardSegs=function(d){d.sort(w.proxy(this,"compareForwardSegs"))},a.prototype.compareForwardSegs=function(d,h){return h.forwardPressure-d.forwardPressure||(d.backwardCoord||0)-(h.backwardCoord||0)||this.compareEventSegs(d,h)},a.prototype.assignFgSegHorizontals=function(d){var h,v;for(h=0;h<d.length;h++)v=d[h],v.el.css(this.generateFgSegHorizontalCss(v)),v.bottom-v.top<30&&v.el.addClass("fc-short")},a.prototype.generateFgSegHorizontalCss=function(d){var h=this.opt("slotEventOverlap"),v=d.backwardCoord,C=d.forwardCoord,k=this.timeGrid.generateSegVerticalCss(d),j=this.timeGrid.isRTL,G,N;return h&&(C=Math.min(1,v+(C-v)*2)),j?(G=1-C,N=v):(G=v,N=1-C),k.zIndex=d.level+1,k.left=G*100+"%",k.right=N*100+"%",h&&d.forwardPressure&&(k[j?"marginLeft":"marginRight"]=10*2),k},a}(g.default);m.default=E;function n(l){var a=[],d,h,v;for(d=0;d<l.length;d++){for(h=l[d],v=0;v<a.length&&o(h,a[v]).length;v++);h.level=v,(a[v]||(a[v]=[])).push(h)}return a}function i(l){var a,d,h,v,C;for(a=0;a<l.length;a++)for(d=l[a],h=0;h<d.length;h++)for(v=d[h],v.forwardSegs=[],C=a+1;C<l.length;C++)o(v,l[C],v.forwardSegs)}function u(l){var a=l.forwardSegs,d=0,h,v;if(l.forwardPressure===void 0){for(h=0;h<a.length;h++)v=a[h],u(v),d=Math.max(d,1+v.forwardPressure);l.forwardPressure=d}}function o(l,a,d){d===void 0&&(d=[]);for(var h=0;h<a.length;h++)c(l,a[h])&&d.push(a[h]);return d}function c(l,a){return l.bottom>a.top&&l.top<a.bottom}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(58),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.renderSegs=function(u,o){var c=[],l,a,d;for(this.eventRenderer.renderFgSegsIntoContainers(u,this.component.helperContainerEls),l=0;l<u.length;l++)a=u[l],o&&o.col===a.col&&(d=o.el,a.el.css({left:d.css("left"),right:d.css("right"),"margin-left":d.css("margin-left"),"margin-right":d.css("margin-right")})),c.push(a.el[0]);return w(c)},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(57),g=function(E){p.__extends(n,E);function n(){return E!==null&&E.apply(this,arguments)||this}return n.prototype.attachSegEls=function(i,u){var o=this.component,c;return i==="bgEvent"?c=o.bgContainerEls:i==="businessHours"?c=o.businessContainerEls:i==="highlight"&&(c=o.highlightContainerEls),o.updateSegVerticals(u),o.attachSegsByCol(o.groupSegsByCol(u),c),u.map(function(l){return l.el[0]})},n}(w.default);m.default=g},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(3),w=t(4),g=t(7),E=function(){function n(i){this.isHidden=!0,this.margin=10,this.options=i||{}}return n.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},n.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},n.prototype.render=function(){var i=this,u=this.options;this.el=p('<div class="fc-popover"/>').addClass(u.className||"").css({top:0,left:0}).append(u.content).appendTo(u.parentEl),this.el.on("click",".fc-close",function(){i.hide()}),u.autoHide&&this.listenTo(p(document),"mousedown",this.documentMousedown)},n.prototype.documentMousedown=function(i){this.el&&!p(i.target).closest(this.el).length&&this.hide()},n.prototype.removeElement=function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(p(document),"mousedown")},n.prototype.position=function(){var i=this.options,u=this.el.offsetParent().offset(),o=this.el.outerWidth(),c=this.el.outerHeight(),l=p(window),a=w.getScrollParent(this.el),d,h,v,C,k;C=i.top||0,i.left!==void 0?k=i.left:i.right!==void 0?k=i.right-o:k=0,a.is(window)||a.is(document)?(a=l,d=0,h=0):(v=a.offset(),d=v.top,h=v.left),d+=l.scrollTop(),h+=l.scrollLeft(),i.viewportConstrain!==!1&&(C=Math.min(C,d+a.outerHeight()-c-this.margin),C=Math.max(C,d+this.margin),k=Math.min(k,h+a.outerWidth()-o-this.margin),k=Math.max(k,h+this.margin)),this.el.css({top:C-u.top,left:k-u.left})},n.prototype.trigger=function(i){this.options[i]&&this.options[i].apply(this,Array.prototype.slice.call(arguments,1))},n}();m.default=E,g.default.mixInto(E)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(4),E=t(42),n=function(o){p.__extends(c,o);function c(l,a){var d=o.call(this,l,a)||this;return d.dayGrid=l,d}return c.prototype.renderBgRanges=function(l){l=w.grep(l,function(a){return a.eventDef.isAllDay()}),o.prototype.renderBgRanges.call(this,l)},c.prototype.renderFgSegs=function(l){var a=this.rowStructs=this.renderSegRows(l);this.dayGrid.rowEls.each(function(d,h){w(h).find(".fc-content-skeleton > table").append(a[d].tbodyEl)})},c.prototype.unrenderFgSegs=function(){for(var l=this.rowStructs||[],a;a=l.pop();)a.tbodyEl.remove();this.rowStructs=null},c.prototype.renderSegRows=function(l){var a=[],d,h;for(d=this.groupSegRows(l),h=0;h<d.length;h++)a.push(this.renderSegRow(h,d[h]));return a},c.prototype.renderSegRow=function(l,a){var d=this.dayGrid.colCnt,h=this.buildSegLevels(a),v=Math.max(1,h.length),C=w("<tbody/>"),k=[],j=[],G=[],N,T,A,U,X,Q,re;function ge(Ce){for(;A<Ce;)re=(G[N-1]||[])[A],re?re.attr("rowspan",parseInt(re.attr("rowspan")||1,10)+1):(re=w("<td/>"),U.append(re)),j[N][A]=re,G[N][A]=re,A++}for(N=0;N<v;N++){if(T=h[N],A=0,U=w("<tr/>"),k.push([]),j.push([]),G.push([]),T)for(X=0;X<T.length;X++){for(Q=T[X],ge(Q.leftCol),re=w('<td class="fc-event-container"/>').append(Q.el),Q.leftCol!==Q.rightCol?re.attr("colspan",Q.rightCol-Q.leftCol+1):G[N][A]=re;A<=Q.rightCol;)j[N][A]=re,k[N][A]=Q,A++;U.append(re)}ge(d),this.dayGrid.bookendCells(U),C.append(U)}return{row:l,tbodyEl:C,cellMatrix:j,segMatrix:k,segLevels:h,segs:a}},c.prototype.buildSegLevels=function(l){var a=[],d,h,v;for(this.sortEventSegs(l),d=0;d<l.length;d++){for(h=l[d],v=0;v<a.length&&i(h,a[v]);v++);h.level=v,(a[v]||(a[v]=[])).push(h)}for(v=0;v<a.length;v++)a[v].sort(u);return a},c.prototype.groupSegRows=function(l){var a=[],d;for(d=0;d<this.dayGrid.rowCnt;d++)a.push([]);for(d=0;d<l.length;d++)a[l[d].row].push(l[d]);return a},c.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},c.prototype.computeDisplayEventEnd=function(){return this.dayGrid.colCnt===1},c.prototype.fgSegHtml=function(l,a){var d=this.view,h=l.footprint.eventDef,v=l.footprint.componentFootprint.isAllDay,C=d.isEventDefDraggable(h),k=!a&&v&&l.isStart&&d.isEventDefResizableFromStart(h),j=!a&&v&&l.isEnd&&d.isEventDefResizableFromEnd(h),G=this.getSegClasses(l,C,k||j),N=g.cssToStr(this.getSkinCss(h)),T="",A,U;return G.unshift("fc-day-grid-event","fc-h-event"),l.isStart&&(A=this.getTimeText(l.footprint),A&&(T='<span class="fc-time">'+g.htmlEscape(A)+"</span>")),U='<span class="fc-title">'+(g.htmlEscape(h.title||"")||"&nbsp;")+"</span>",'<a class="'+G.join(" ")+'"'+(h.url?' href="'+g.htmlEscape(h.url)+'"':"")+(N?' style="'+N+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?U+" "+T:T+" "+U)+"</div>"+(k?'<div class="fc-resizer fc-start-resizer" />':"")+(j?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},c}(E.default);m.default=n;function i(o,c){var l,a;for(l=0;l<c.length;l++)if(a=c[l],a.leftCol<=o.rightCol&&a.rightCol>=o.leftCol)return!0;return!1}function u(o,c){return o.leftCol-c.leftCol}},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(58),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.renderSegs=function(u,o){var c=[],l;return l=this.eventRenderer.renderSegRows(u),this.component.rowEls.each(function(a,d){var h=w(d),v=w('<div class="fc-helper-skeleton"><table/></div>'),C,k;o&&o.row===a?k=o.el.position().top:(C=h.find(".fc-content-skeleton tbody"),C.length||(C=h.find(".fc-content-skeleton table")),k=C.position().top),v.css("top",k).find("table").append(l[a].tbodyEl),h.append(v),c.push(v[0])}),w(c)},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(57),E=function(n){p.__extends(i,n);function i(){var u=n!==null&&n.apply(this,arguments)||this;return u.fillSegTag="td",u}return i.prototype.attachSegEls=function(u,o){var c=[],l,a,d;for(l=0;l<o.length;l++)a=o[l],d=this.renderFillRow(u,a),this.component.rowEls.eq(a.row).append(d),c.push(d[0]);return c},i.prototype.renderFillRow=function(u,o){var c=this.component.colCnt,l=o.leftCol,a=o.rightCol+1,d,h,v;return u==="businessHours"?d="bgevent":d=u.toLowerCase(),h=w('<div class="fc-'+d+'-skeleton"><table><tr/></table></div>'),v=h.find("tr"),l>0&&v.append('<td colspan="'+l+'"/>'),v.append(o.el.attr("colspan",a-l)),a<c&&v.append('<td colspan="'+(c-a)+'"/>'),this.component.bookendCells(v),h},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(228),g=t(5),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.buildRenderRange=function(u,o,c){var l=n.prototype.buildRenderRange.call(this,u,o,c),a=this.msToUtcMoment(l.startMs,c),d=this.msToUtcMoment(l.endMs,c),h;return this.opt("fixedWeekCount")&&(h=Math.ceil(d.diff(a,"weeks",!0)),d.add(6-h,"weeks")),new g.default(a,d)},i}(w.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(4),g=t(42),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.renderFgSegs=function(u){u.length?this.component.renderSegList(u):this.component.renderEmptyMessage()},i.prototype.fgSegHtml=function(u){var o=this.view,c=o.calendar,l=c.theme,a=u.footprint,d=a.eventDef,h=a.componentFootprint,v=d.url,C=["fc-list-item"].concat(this.getClasses(d)),k=this.getBgColor(d),j;return h.isAllDay?j=o.getAllDayHtml():o.isMultiDayRange(h.unzonedRange)?u.isStart||u.isEnd?j=w.htmlEscape(this._getTimeText(c.msToMoment(u.startMs),c.msToMoment(u.endMs),h.isAllDay)):j=o.getAllDayHtml():j=w.htmlEscape(this.getTimeText(a)),v&&C.push("fc-has-url"),'<tr class="'+C.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+l.getClass("widgetContent")+'">'+(j||"")+"</td>":"")+'<td class="fc-list-item-marker '+l.getClass("widgetContent")+'"><span class="fc-event-dot"'+(k?' style="background-color:'+k+'"':"")+'></span></td><td class="fc-list-item-title '+l.getClass("widgetContent")+'"><a'+(v?' href="'+w.htmlEscape(v)+'"':"")+">"+w.htmlEscape(d.title||"")+"</a></td></tr>"},i.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(3),g=t(59),E=function(n){p.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.handleClick=function(u,o){var c;n.prototype.handleClick.call(this,u,o),w(o.target).closest("a[href]").length||(c=u.footprint.eventDef.url,c&&!o.isDefaultPrevented()&&(window.location.href=c))},i}(g.default);m.default=E},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(37),w=t(52),g=t(215),E=t(216);p.default.registerClass(w.default),p.default.registerClass(g.default),p.default.registerClass(E.default)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(51),w=t(213),g=t(214),E=t(258);p.defineThemeSystem("standard",w.default),p.defineThemeSystem("jquery-ui",g.default),p.defineThemeSystem("bootstrap3",E.default)},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(2),w=t(38),g=function(E){p.__extends(n,E);function n(){return E!==null&&E.apply(this,arguments)||this}return n}(w.default);m.default=g,g.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table table-striped",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},g.prototype.baseIconClass="glyphicon",g.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},g.prototype.iconOverrideOption="bootstrapGlyphicons",g.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",g.prototype.iconOverridePrefix="glyphicon-"},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(21),w=t(62),g=t(229);p.defineView("basic",{class:w.default}),p.defineView("basicDay",{type:"basic",duration:{days:1}}),p.defineView("basicWeek",{type:"basic",duration:{weeks:1}}),p.defineView("month",{class:g.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(21),w=t(226);p.defineView("agenda",{class:w.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}}),p.defineView("agendaDay",{type:"agenda",duration:{days:1}}),p.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0});var p=t(21),w=t(230);p.defineView("list",{class:w.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}}),p.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}}),p.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}}),p.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}}),p.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(B,m){Object.defineProperty(m,"__esModule",{value:!0})}])})}(hs)),hs.exports}var xl=es();const Ad=ba(xl),Pd=Ql({__proto__:null,default:Ad},[xl]);var Ld={exports:{}};/*!
 * FullCalendar Scheduler v1.9.2
 * Docs & License: https://fullcalendar.io/scheduler/
 * (c) 2017 Adam Shaw
 */(function(H,M){(function(P,B){H.exports=B(es(),xi,Ba())})(zi,function(b,P,B){return function(m){var t={};function p(w){if(t[w])return t[w].exports;var g=t[w]={i:w,l:!1,exports:{}};return m[w].call(g.exports,g,g.exports,p),g.l=!0,g.exports}return p.m=m,p.c=t,p.d=function(w,g,E){p.o(w,g)||Object.defineProperty(w,g,{configurable:!1,enumerable:!0,get:E})},p.n=function(w){var g=w&&w.__esModule?function(){return w.default}:function(){return w};return p.d(g,"a",g),g},p.o=function(w,g){return Object.prototype.hasOwnProperty.call(w,g)},p.p="",p(p.s=36)}([function(m,t){m.exports=b},function(m,t){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,g){w.__proto__=g}||function(w,g){for(var E in g)g.hasOwnProperty(E)&&(w[E]=g[E])};t.__extends=function(w,g){p(w,g);function E(){this.constructor=w}w.prototype=g===null?Object.create(g):(E.prototype=g.prototype,new E)}},function(m,t){m.exports=P},,,,function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=function(n){w.__extends(i,n);function i(u,o,c){var l=n.call(this,u,o)||this;return l.resourceId=c,l}return i.prototype.toLegacy=function(u){var o=n.prototype.toLegacy.call(this,u);return o.resourceId=this.resourceId,o},i}(g.ComponentFootprint);t.default=E},,,function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=function(i){w.__extends(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.mixInto=function(o){var c=this;E.Mixin.mixInto.call(this,o),["bindBaseRenderHandlers","queryScroll","applyScroll","triggerDayClick","triggerSelect","triggerExternalDrop","handleResourceAdd","handleResourceRemove"].forEach(function(l){o.prototype[l]=c.prototype[l]})},u.prototype.initResourceView=function(){var o=this,c=["hasResources"];this.canHandleSpecificResources||c.push("displayingDates"),this.watch("displayingResources",c,function(){o.requestResourcesRender(o.get("currentResources"))},function(){o.requestResourcesUnrender()}),this.watch("displayingBusinessHours",["businessHourGenerator","displayingResources","displayingDates"],function(l){o.requestBusinessHoursRender(l.businessHourGenerator)},function(){o.requestBusinessHoursUnrender()}),this.watch("displayingEvents",["displayingResources","hasEvents"],function(){o.requestEventsRender(o.get("currentEvents"))},function(){o.requestEventsUnrender()})},u.prototype.bindBaseRenderHandlers=function(){var o=!1,c=!1;this.on("resourcesRendered",function(){o||(o=!0,c&&this.whenSizeUpdated(this.triggerViewRender))}),this.on("datesRendered",function(){c||(c=!0,o&&this.whenSizeUpdated(this.triggerViewRender))}),this.on("before:resourcesUnrendered",function(){o&&(o=!1)}),this.on("before:datesUnrendered",function(){c&&(c=!1,this.triggerViewDestroy())})},u.prototype.queryScroll=function(){var o=E.View.prototype.queryScroll.apply(this,arguments);return this.isResourcesRendered&&g.extend(o,this.queryResourceScroll()),o},u.prototype.applyScroll=function(o){E.View.prototype.applyScroll.apply(this,arguments),this.isResourcesRendered&&this.applyResourceScroll(o)},u.prototype.queryResourceScroll=function(){return{}},u.prototype.applyResourceScroll=function(){},u.prototype.getResourceText=function(o){return this.getResourceTextFunc()(o)},u.prototype.getResourceTextFunc=function(){if(this.resourceTextFunc)return this.resourceTextFunc;var o=this.opt("resourceText");return typeof o!="function"&&(o=function(c){return c.title||c.id}),this.resourceTextFunc=o,o},u.prototype.handleResourceAdd=function(o){this.requestResourceRender(o)},u.prototype.handleResourceRemove=function(o){this.requestResourceUnrender(o)},u.prototype.requestResourcesRender=function(o){var c=this;this.requestRender(function(){c.executeResourcesRender(o)},"resource","init")},u.prototype.requestResourcesUnrender=function(){var o=this;this.requestRender(function(){o.executeResourcesUnrender()},"resource","destroy")},u.prototype.requestResourceRender=function(o){var c=this;this.requestRender(function(){c.executeResourceRender(o)},"resource","add")},u.prototype.requestResourceUnrender=function(o){var c=this;this.requestRender(function(){c.executeResourceUnrender(o)},"resource","remove")},u.prototype.executeResourcesRender=function(o){this.renderResources(o),this.isResourcesRendered=!0,this.trigger("resourcesRendered")},u.prototype.executeResourcesUnrender=function(){this.trigger("before:resourcesUnrendered"),this.unrenderResources(),this.isResourcesRendered=!1},u.prototype.executeResourceRender=function(o){this.renderResource(o)},u.prototype.executeResourceUnrender=function(o){this.unrenderResource(o)},u.prototype.triggerDayClick=function(o,c,l){var a=this.calendar.footprintToDateProfile(o);this.publiclyTrigger("dayClick",{context:c,args:[a.start,l,this,o.resourceId?this.calendar.resourceManager.getResourceById(o.resourceId):null]})},u.prototype.triggerSelect=function(o,c){var l=this.calendar.footprintToDateProfile(o);this.publiclyTrigger("select",{context:this,args:[l.start,l.end,c,this,o.resourceId?this.calendar.resourceManager.getResourceById(o.resourceId):null]})},u.prototype.triggerExternalDrop=function(o,c,l,a,d){this.publiclyTrigger("drop",{context:l[0],args:[o.dateProfile.start.clone(),a,d,o.getResourceIds()[0],this]}),c&&this.publiclyTrigger("eventReceive",{context:this,args:[o.buildInstance().toLegacy(),this]})},u}(E.Mixin);t.default=n,n.prototype.isResourcesRendered=!1},,,,function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=p(21),i=p(6),u=function(o){w.__extends(c,o);function c(l){var a=o.call(this,l)||this;return a.isResourceFootprintsEnabled=!0,a}return c.prototype.renderDates=function(l){this.dateProfile=l},c.prototype.renderResources=function(l){this.registerResources(l),this.renderGrid(),this.headContainerEl&&this.processHeadResourceEls(this.headContainerEl)},c.prototype.getHitFootprint=function(l){var a=o.prototype.getHitFootprint.call(this,l);return new i.default(a.unzonedRange,a.isAllDay,this.getColResource(l.col).id)},c.prototype.componentFootprintToSegs=function(l){for(var a=this.resourceCnt,d=this.datesAboveResources?this.sliceRangeByDay(l.unzonedRange):this.sliceRangeByRow(l.unzonedRange),h=[],v=0,C=d;v<C.length;v++)for(var k=C[v],j=0;j<a;j++){var G=this.flattenedResources[j];if(!(l instanceof i.default)||l.resourceId===G.id){var N=g.extend({},k);N.resource=G,this.isRTL?(N.leftCol=this.indicesToCol(j,k.lastRowDayIndex),N.rightCol=this.indicesToCol(j,k.firstRowDayIndex)):(N.leftCol=this.indicesToCol(j,k.firstRowDayIndex),N.rightCol=this.indicesToCol(j,k.lastRowDayIndex)),h.push(N)}}return h},c}(E.DayGrid);t.default=u,n.default.mixInto(u)},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(15),n=p(0),i=p(24),u=p(25),o=p(16),c=p(26),l=p(17),a=p(28),d=p(29),h=p(40),v=p(41),C=p(42),k=function(j){w.__extends(G,j);function G(N,T){var A=j.call(this,N,T)||this;return A.emphasizeWeeks=!1,A.isTimeBodyScrolled=!1,A.slotWidth=A.opt("slotWidth"),A}return G.prototype.normalizeComponentFootprint=function(N){var T,A,U=N.unzonedRange;if(this.isTimeScale)A=this.normalizeGridDate(U.getStart()),T=this.normalizeGridDate(U.getEnd());else{var X=this.computeDayRange(U);this.largeUnit?(A=X.start.clone().startOf(this.largeUnit),T=X.end.clone().startOf(this.largeUnit),(!T.isSame(X.end)||!T.isAfter(A))&&T.add(this.slotDuration)):(A=X.start,T=X.end)}return new n.ComponentFootprint(new n.UnzonedRange(A,T),!this.isTimeScale)},G.prototype.componentFootprintToSegs=function(N){var T=N.unzonedRange.getStart(),A=N.unzonedRange.getEnd(),U=this.normalizeComponentFootprint(N),X=[];if(this.computeDateSnapCoverage(T)<this.computeDateSnapCoverage(A)){var Q=U.unzonedRange.intersect(this.normalizedUnzonedRange);if(Q){var re=Q.getStart(),ge=Q.getEnd();X.push({start:re,end:ge,isStart:Q.isStart&&this.isValidDate(re),isEnd:Q.isEnd&&this.isValidDate(ge.clone().subtract(1))})}}return X},G.prototype.normalizeGridDate=function(N){var T=N.clone();return this.calendar.localizeMoment(T),this.isTimeScale?T.hasTime()||T.time(0):(T=T.clone().stripTime(),this.largeUnit&&T.startOf(this.largeUnit)),T},G.prototype.isValidDate=function(N){if(this.isHiddenDay(N))return!1;if(this.isTimeScale){var T=N.time()-this.dateProfile.minTime;return T=(T%864e5+864e5)%864e5,T<this.timeWindowMs}else return!0},G.prototype.updateGridDates=function(){for(var N=-1,T=0,A=[],U=[],X=this.normalizedUnzonedStart.clone();X<this.normalizedUnzonedEnd;)this.isValidDate(X)?(N++,A.push(N),U.push(T)):A.push(N+.5),X.add(this.snapDuration),T++;this.snapDiffToIndex=A,this.snapIndexToDiff=U,this.snapCnt=N+1,this.slotCnt=this.snapCnt/this.snapsPerSlot},G.prototype.renderSkeleton=function(){this.el.addClass("fc-timeline"),this.opt("eventOverlap")===!1&&this.el.addClass("fc-no-overlap"),this.el.html(this.renderSkeletonHtml()),this.timeHeadEl=this.el.find("thead .fc-time-area"),this.timeBodyEl=this.el.find("tbody .fc-time-area"),this.timeHeadScroller=new i.default({overflowX:"clipped-scroll",overflowY:"hidden"}),this.timeHeadScroller.canvas=new u.default,this.timeHeadScroller.render(),this.timeHeadScroller.el.appendTo(this.timeHeadEl),this.timeBodyScroller=new i.default,this.timeBodyScroller.canvas=new u.default,this.timeBodyScroller.render(),this.timeBodyScroller.el.appendTo(this.timeBodyEl),this.isTimeBodyScrolled=!1,this.timeBodyScroller.on("scroll",n.proxy(this,"handleTimeBodyScrolled")),this.slatContainerEl=g('<div class="fc-slats"/>').appendTo(this.timeBodyScroller.canvas.bgEl),this.segContainerEl=g('<div class="fc-event-container"/>').appendTo(this.timeBodyScroller.canvas.contentEl),this.bgSegContainerEl=this.timeBodyScroller.canvas.bgEl,this.timeBodyBoundCache=new n.CoordCache({els:this.timeBodyScroller.canvas.el,isHorizontal:!0,isVertical:!0}),this.timeScrollJoiner=new o.default("horizontal",[this.timeHeadScroller,this.timeBodyScroller]),this.headDateFollower=new c.default(this.timeHeadScroller,!0),this.eventTitleFollower=new c.default(this.timeBodyScroller),this.eventTitleFollower.minTravel=50,this.isRTL?this.eventTitleFollower.containOnNaturalRight=!0:this.eventTitleFollower.containOnNaturalLeft=!0,j.prototype.renderSkeleton.call(this)},G.prototype.renderSkeletonHtml=function(){var N=this.calendar.theme;return'<table class="'+N.getClass("tableGrid")+'"> <thead class="fc-head"> <tr> <td class="fc-time-area '+N.getClass("widgetHeader")+'"></td> </tr> </thead> <tbody class="fc-body"> <tr> <td class="fc-time-area '+N.getClass("widgetContent")+'"></td> </tr> </tbody> </table>'},G.prototype.unrenderSkeleton=function(){this.handleTimeBodyScrolled(0),j.prototype.unrenderSkeleton.call(this)},G.prototype.renderDates=function(N){C.initScaleProps(this),this.timeWindowMs=N.maxTime-N.minTime,this.normalizedUnzonedStart=this.normalizeGridDate(N.renderUnzonedRange.getStart()),this.normalizedUnzonedEnd=this.normalizeGridDate(N.renderUnzonedRange.getEnd()),this.isTimeScale&&(this.normalizedUnzonedStart.add(N.minTime),this.normalizedUnzonedEnd.subtract(1,"day").add(N.maxTime)),this.normalizedUnzonedRange=new n.UnzonedRange(this.normalizedUnzonedStart,this.normalizedUnzonedEnd);var T=[],A=this.normalizedUnzonedStart.clone();for(this.calendar.localizeMoment(A);A<this.normalizedUnzonedEnd;)this.isValidDate(A)&&T.push(A.clone()),A.add(this.slotDuration);this.slotDates=T,this.updateGridDates();var U=this.renderSlatHtml();this.timeHeadScroller.canvas.contentEl.html(U.headHtml),this.timeHeadColEls=this.timeHeadScroller.canvas.contentEl.find("col"),this.slatContainerEl.html(U.bodyHtml),this.slatColEls=this.slatContainerEl.find("col"),this.slatEls=this.slatContainerEl.find("td"),this.slatCoordCache=new n.CoordCache({els:this.slatEls,isHorizontal:!0}),this.slatInnerCoordCache=new n.CoordCache({els:this.slatEls.find("> div"),isHorizontal:!0,offsetParent:this.timeBodyScroller.canvas.el});for(var X=0;X<this.slotDates.length;X++)A=this.slotDates[X],this.publiclyTrigger("dayRender",{context:this,args:[A,this.slatEls.eq(X),this]});this.headDateFollower&&this.headDateFollower.setSpriteEls(this.timeHeadEl.find("tr:not(:last-child) .fc-cell-text"))},G.prototype.unrenderDates=function(){this.headDateFollower&&this.headDateFollower.clearSprites(),this.timeHeadScroller.canvas.contentEl.empty(),this.slatContainerEl.empty(),this.timeHeadScroller.canvas.clearWidth(),this.timeBodyScroller.canvas.clearWidth()},G.prototype.renderSlatHtml=function(){for(var N,T,A,U,X=this.calendar.theme,Q=this.labelInterval,re=this.headerFormats,ge=re.map(function(tt){return[]}),Ce=null,pe=null,ie=this.slotDates,oe=[],me=re.map(function(tt){return n.queryMostGranularFormatUnit(tt)}),Fe=0,et=ie;Fe<et.length;Fe++){T=et[Fe];for(var ft=T.week(),ze=this.emphasizeWeeks&&pe!==null&&pe!==ft,bt=0;bt<re.length;bt++){U=re[bt],A=ge[bt],Ce=A[A.length-1];var St=re.length>1&&bt<re.length-1,Le=null;if(St){var Et=T.format(U);!Ce||Ce.text!==Et?Le=this.buildCellObject(T,Et,me[bt]):Ce.colspan+=1}else if(!Ce||n.isInt(n.divideRangeByDuration(this.normalizedUnzonedStart,T,Q))){var Et=T.format(U);Le=this.buildCellObject(T,Et,me[bt])}else Ce.colspan+=1;Le&&(Le.weekStart=ze,A.push(Le))}oe.push({weekStart:ze}),pe=ft}var Mt=Q>this.slotDuration,at=this.slotDuration.as("days")===1,Ot='<table class="'+X.getClass("tableGrid")+'">';Ot+="<colgroup>";for(var Ne=0,ct=ie;Ne<ct.length;Ne++)T=ct[Ne],Ot+="<col/>";Ot+="</colgroup>",Ot+="<tbody>";for(var mt=0;mt<ge.length;mt++){A=ge[mt];var Ct=mt===ge.length-1;Ot+="<tr"+(Mt&&Ct?' class="fc-chrono"':"")+">";for(var Ue=0,qe=A;Ue<qe.length;Ue++){N=qe[Ue];var Ft=[X.getClass("widgetHeader")];N.weekStart&&Ft.push("fc-em-cell"),at&&(Ft=Ft.concat(this.getDayClasses(N.date,!0))),Ot+='<th class="'+Ft.join(" ")+'" data-date="'+N.date.format()+'"'+(N.colspan>1?' colspan="'+N.colspan+'"':"")+'><div class="fc-cell-content">'+N.spanHtml+"</div></th>"}Ot+="</tr>"}Ot+="</tbody></table>";var Wt='<table class="'+X.getClass("tableGrid")+'">';Wt+="<colgroup>";for(var ne=0,_e=oe;ne<_e.length;ne++)N=_e[ne],Wt+="<col/>";Wt+="</colgroup>",Wt+="<tbody><tr>";for(var mt=0;mt<oe.length;mt++)N=oe[mt],T=ie[mt],Wt+=this.slatCellHtml(T,N.weekStart);return Wt+="</tr></tbody></table>",{headHtml:Ot,bodyHtml:Wt}},G.prototype.buildCellObject=function(N,T,A){N=N.clone();var U=this.buildGotoAnchorHtml({date:N,type:A,forceOff:!A},{class:"fc-cell-text"},n.htmlEscape(T));return{text:T,spanHtml:U,date:N,colspan:1}},G.prototype.slatCellHtml=function(N,T){var A,U=this.calendar.theme;return this.isTimeScale?(A=[],A.push(n.isInt(n.divideRangeByDuration(this.normalizedUnzonedStart,N,this.labelInterval))?"fc-major":"fc-minor")):(A=this.getDayClasses(N),A.push("fc-day")),A.unshift(U.getClass("widgetContent")),T&&A.push("fc-em-cell"),'<td class="'+A.join(" ")+'" data-date="'+N.format()+'"><div /></td>'},G.prototype.renderBusinessHours=function(N){if(!this.largeUnit)return j.prototype.renderBusinessHours.call(this,N)},G.prototype.getNowIndicatorUnit=function(){if(this.isTimeScale)return n.computeGreatestUnit(this.slotDuration)},G.prototype.renderNowIndicator=function(N){var T=[];if(N=this.normalizeGridDate(N),this.normalizedUnzonedRange.containsDate(N)){var A=this.dateToCoord(N),U=this.isRTL?{right:-A}:{left:A};T.push(g("<div class='fc-now-indicator fc-now-indicator-arrow'></div>").css(U).appendTo(this.timeHeadScroller.canvas.el)[0]),T.push(g("<div class='fc-now-indicator fc-now-indicator-line'></div>").css(U).appendTo(this.timeBodyScroller.canvas.el)[0])}this.nowIndicatorEls=g(T)},G.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},G.prototype.updateSize=function(N,T,A){var U,X,Q,re;T?U="auto":U=N-this.headHeight()-this.queryMiscHeight(),this.timeBodyScroller.setHeight(U);var ge=this.timeHeadColEls;if(ge){var Ce=Math.round(this.slotWidth||(this.slotWidth=this.computeSlotWidth()));Q=Ce*this.slotDates.length,X="",re=Ce;var pe=this.timeBodyScroller.getClientWidth();pe>Q&&(X=pe,Q="",re=Math.floor(pe/this.slotDates.length))}else Q="",X="";this.timeHeadScroller.canvas.setWidth(Q),this.timeHeadScroller.canvas.setMinWidth(X),this.timeBodyScroller.canvas.setWidth(Q),this.timeBodyScroller.canvas.setMinWidth(X),ge&&this.timeHeadColEls.slice(0,-1).add(this.slatColEls.slice(0,-1)).css("width",re),this.timeHeadScroller.updateSize(),this.timeBodyScroller.updateSize(),this.timeScrollJoiner.update(),ge&&(this.buildCoords(),this.updateSegPositions(),this.updateNowIndicator()),this.headDateFollower&&this.headDateFollower.update(),this.eventTitleFollower&&this.eventTitleFollower.update()},G.prototype.queryMiscHeight=function(){return this.el.outerHeight()-this.timeHeadScroller.el.outerHeight()-this.timeBodyScroller.el.outerHeight()},G.prototype.computeSlotWidth=function(){var N=0,T=this.timeHeadEl.find("tr:last-child th .fc-cell-text");T.each(function(re,ge){var Ce=g(ge).outerWidth();return N=Math.max(N,Ce)});var A=N+1,U=n.divideDurationByDuration(this.labelInterval,this.slotDuration),X=Math.ceil(A/U),Q=this.timeHeadColEls.eq(0).css("min-width");return Q&&(Q=parseInt(Q,10),Q&&(X=Math.max(X,Q))),X},G.prototype.buildCoords=function(){this.timeBodyBoundCache.build(),this.slatCoordCache.build(),this.slatInnerCoordCache.build()},G.prototype.computeDateSnapCoverage=function(N){var T=n.divideRangeByDuration(this.normalizedUnzonedStart,N,this.snapDuration);if(T<0)return 0;if(T>=this.snapDiffToIndex.length)return this.snapCnt;var A=Math.floor(T),U=this.snapDiffToIndex[A];return n.isInt(U)?U+=T-A:U=Math.ceil(U),U},G.prototype.dateToCoord=function(N){var T=this.computeDateSnapCoverage(N),A=T/this.snapsPerSlot,U=Math.floor(A);U=Math.min(U,this.slotCnt-1);var X=A-U,Q=this.slatInnerCoordCache;return this.isRTL?Q.getRightPosition(U)-Q.getWidth(U)*X-this.timeBodyBoundCache.getWidth(0):Q.getLeftPosition(U)+Q.getWidth(U)*X},G.prototype.rangeToCoords=function(N){return this.isRTL?{right:this.dateToCoord(N.start),left:this.dateToCoord(N.end)}:{left:this.dateToCoord(N.start),right:this.dateToCoord(N.end)}},G.prototype.headHeight=function(){for(var N=[],T=0;T<arguments.length;T++)N[T]=arguments[T];var A=this.timeHeadScroller.canvas.contentEl.find("table");return A.height.apply(A,N)},G.prototype.updateSegPositions=function(){for(var N=[].concat(this.getEventSegs(),this.getBusinessHourSegs()),T=0,A=N;T<A.length;T++){var U=A[T],X=this.rangeToCoords(U);U.el.css({left:U.left=X.left,right:-(U.right=X.right)})}},G.prototype.handleTimeBodyScrolled=function(N){N?this.isTimeBodyScrolled||(this.isTimeBodyScrolled=!0,this.el.addClass("fc-scrolled")):this.isTimeBodyScrolled&&(this.isTimeBodyScrolled=!1,this.el.removeClass("fc-scrolled"))},G.prototype.computeInitialDateScroll=function(){var N=this.get("dateProfile").activeUnzonedRange,T=0;if(this.isTimeScale){var A=this.opt("scrollTime");A&&(A=E.duration(A),T=this.dateToCoord(N.getStart().time(A)))}return{left:T}},G.prototype.queryDateScroll=function(){return{left:this.timeBodyScroller.getScrollLeft()}},G.prototype.applyDateScroll=function(N){N.left!=null&&(this.timeHeadScroller.setScrollLeft(N.left),this.timeBodyScroller.setScrollLeft(N.left))},G.prototype.prepareHits=function(){this.buildCoords()},G.prototype.queryHit=function(N,T){var A=this.snapsPerSlot,U=this.slatCoordCache,X=this.timeBodyBoundCache;if(X.isPointInBounds(N,T)){var Q=U.getHorizontalIndex(N);if(Q!=null){var re=void 0,ge=void 0,Ce=void 0,pe=void 0,ie=void 0,oe=U.getWidth(Q);if(this.isRTL){var me=U.getRightOffset(Q);ge=(me-N)/oe,re=Math.floor(ge*A),Ce=Q*A+re,ie=me-re/A*oe,pe=ie-(re+1)/A*oe}else{var Fe=U.getLeftOffset(Q);ge=(N-Fe)/oe,re=Math.floor(ge*A),Ce=Q*A+re,pe=Fe+re/A*oe,ie=Fe+(re+1)/A*oe}return{snap:Ce,component:this,left:pe,right:ie,top:X.getTopOffset(0),bottom:X.getBottomOffset(0)}}}},G.prototype.getHitFootprint=function(N){return new n.ComponentFootprint(this.getSnapUnzonedRange(N.snap),!this.isTimeScale)},G.prototype.getHitEl=function(N){return this.getSnapEl(N.snap)},G.prototype.getSnapUnzonedRange=function(N){var T=this.normalizedUnzonedStart.clone();T.add(n.multiplyDuration(this.snapDuration,this.snapIndexToDiff[N]));var A=T.clone().add(this.snapDuration);return new n.UnzonedRange(T,A)},G.prototype.getSnapEl=function(N){return this.slatEls.eq(Math.floor(N/this.snapsPerSlot))},G.prototype.renderEventResize=function(N,T,A){for(var U=0,X=N;U<X.length;U++){var Q=X[U];this.renderHighlight(Q.componentFootprint)}return this.helperRenderer.renderEventResizingFootprints(N,T,A)},G.prototype.unrenderEventResize=function(){return this.unrenderHighlight(),this.helperRenderer.unrender()},G.prototype.renderDrag=function(N,T,A){if(T)return this.helperRenderer.renderEventDraggingFootprints(N,T,A),!0;for(var U=0,X=N;U<X.length;U++){var Q=X[U];this.renderHighlight(Q.componentFootprint)}return!1},G.prototype.unrenderDrag=function(){return this.helperRenderer.unrender(),this.unrenderHighlight()},G}(n.View);t.default=k,k.prototype.usesMinMaxTime=!0,k.prototype.eventRendererClass=l.default,k.prototype.fillRendererClass=a.default,k.prototype.businessHourRendererClass=n.BusinessHourRenderer,k.prototype.helperRendererClass=d.default,k.prototype.eventDraggingClass=h.default,k.prototype.eventResizingClass=v.default,n.StandardInteractionsMixin.mixInto(k)},function(m,t){m.exports=B},function(m,t){Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function w(g,E){this.axis=g,this.scrollers=E;for(var n=0,i=this.scrollers;n<i.length;n++){var u=i[n];this.initScroller(u)}}return w.prototype.initScroller=function(g){var E=this;g.scrollEl.on("wheel mousewheel DomMouseScroll MozMousePixelScroll",function(){E.assignMasterScroller(g)}),g.on("scrollStart",function(){E.masterScroller||E.assignMasterScroller(g)}).on("scroll",function(){if(g===E.masterScroller)for(var n=0,i=E.scrollers;n<i.length;n++){var u=i[n];if(u!==g)switch(E.axis){case"horizontal":u.setNativeScrollLeft(g.getNativeScrollLeft());break;case"vertical":u.setScrollTop(g.getScrollTop());break}}}).on("scrollEnd",function(){g===E.masterScroller&&E.unassignMasterScroller()})},w.prototype.assignMasterScroller=function(g){this.unassignMasterScroller(),this.masterScroller=g;for(var E=0,n=this.scrollers;E<n.length;E++){var i=n[E];i!==g&&i.disableTouchScroll()}},w.prototype.unassignMasterScroller=function(){if(this.masterScroller){for(var g=0,E=this.scrollers;g<E.length;g++){var n=E[g];n.enableTouchScroll()}this.masterScroller=null}},w.prototype.update=function(){for(var g=this.scrollers.map(function(h){return h.getScrollbarWidths()}),E=0,n=0,i=0,u=0,o,c,l,a=0,d=g;a<d.length;a++)c=d[a],E=Math.max(E,c.left),n=Math.max(n,c.right),i=Math.max(i,c.top),u=Math.max(u,c.bottom);for(l=0;l<this.scrollers.length;l++)o=this.scrollers[l],c=g[l],o.canvas.setGutters(this.axis==="horizontal"?{left:E-c.left,right:n-c.right}:{top:i-c.top,bottom:u-c.bottom})},w}();t.default=p},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=p(27),n=function(c){w.__extends(l,c);function l(){return c!==null&&c.apply(this,arguments)||this}return l.prototype.computeDisplayEventTime=function(){return!this.view.isTimeScale},l.prototype.computeDisplayEventEnd=function(){return!1},l.prototype.computeEventTimeFormat=function(){return this.view.opt("extraSmallTimeFormat")},l.prototype.renderFgSegs=function(a){for(var d=this.view.eventTitleFollower,h=0,v=a;h<v.length;h++){var C=v[h],k=this.component.rangeToCoords(C);C.el.css({left:C.left=k.left,right:-(C.right=k.right)})}for(var j=0,G=a;j<G.length;j++){var C=G[j];C.el.appendTo(this.component.segContainerEl)}for(var N=0,T=a;N<T.length;N++){var C=T[N];C.height=C.el.outerHeight(!0)}this.buildSegLevels(a),this.component.segContainerHeight=i(a);for(var A=0,U=a;A<U.length;A++){var C=U[A];C.el.css("top",C.top)}this.component.segContainerEl.height(this.component.segContainerHeight);for(var X=0,Q=a;X<Q.length;X++){var C=Q[X],re=C.el.find(".fc-title");re.length&&(C.scrollFollowerSprite=new E.default(re),d.addSprite(C.scrollFollowerSprite))}},l.prototype.buildSegLevels=function(a){var d=[];this.sortEventSegs(a);for(var h=0,v=a;h<v.length;h++){var C=v[h];C.above=[];for(var k=0;k<d.length;){for(var j=!1,G=0,N=d[k];G<N.length;G++){var T=N[G];o(C,T)&&(C.above.push(T),j=!0)}if(j)k+=1;else break}for((d[k]||(d[k]=[])).push(C),k+=1;k<d.length;){for(var A=0,U=d[k];A<U.length;A++){var X=U[A];o(C,X)&&X.above.push(C)}k+=1}}return d},l.prototype.unrenderFgSegs=function(a){if(this.component.segContainerEl){for(var d=this.view.eventTitleFollower,h=0,v=a;h<v.length;h++){var C=v[h];C.scrollFollowerSprite&&d.removeSprite(C.scrollFollowerSprite)}this.component.segContainerEl.empty(),this.component.segContainerEl.height(""),this.component.segContainerHeight=null}},l.prototype.fgSegHtml=function(a,d){var h=a.footprint.eventDef,v=this.view.isEventDefDraggable(h),C=a.isStart&&this.view.isEventDefResizableFromStart(h),k=a.isEnd&&this.view.isEventDefResizableFromEnd(h),j=this.getSegClasses(a,v,C||k);j.unshift("fc-timeline-event","fc-h-event");var G=this.getTimeText(a.footprint);return'<a class="'+j.join(" ")+'" style="'+g.cssToStr(this.getSkinCss(a.footprint.eventDef))+'"'+(h.url?' href="'+g.htmlEscape(h.url)+'"':"")+'><div class="fc-content">'+(G?'<span class="fc-time">'+g.htmlEscape(G)+"</span>":"")+'<span class="fc-title">'+(h.title?g.htmlEscape(h.title):"&nbsp;")+'</span></div><div class="fc-bg" />'+(C?'<div class="fc-resizer fc-start-resizer"></div>':"")+(k?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},l}(g.EventRenderer);t.default=n;function i(c){for(var l=0,a=0,d=c;a<d.length;a++){var h=d[a];l=Math.max(l,u(h))}return l}function u(c){return c.top==null&&(c.top=i(c.above)),c.top+c.height}function o(c,l){return c.left<l.right&&c.right>l.left}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=p(44),i=function(u){w.__extends(o,u);function o(c){var l=u.call(this,c)||this;return l.children=[],l.depth=0,l.trHash={},l.trs=g(),l.isExpanded=l.view.opt("resourcesInitiallyExpanded"),l}return o.prototype.addChildRowNode=function(c,l){c.removeFromParentAndDom();var a=this.children;l!=null?a.splice(l,0,c):(l=a.length,a.push(c)),c.prevSibling=l>0?a[l-1]:null,l<a.length-1&&(a[l+1].prevSibling=c),c.parent=this,c.depth=this.depth+(this.hasOwnRow?1:0),this.descendantAdded(c)},o.prototype.removeChild=function(c){var l,a=this.children,d=!1;for(l=0;l<a.length;l++){var h=a[l];if(h===c){d=!0;break}}return d?(l<a.length-1&&(a[l+1].prevSibling=c.prevSibling),a.splice(l,1),c.parent=null,c.prevSibling=null,this.descendantRemoved(c),c):!1},o.prototype.removeChildren=function(){for(var c=0,l=this.children;c<l.length;c++){var a=l[c];this.descendantRemoved(a)}this.children=[]},o.prototype.removeFromParentAndDom=function(){this.parent&&this.parent.removeChild(this),this.get("isInDom")&&this.removeElement()},o.prototype.getLastChild=function(){var c=this.children;return c[c.length-1]},o.prototype.getPrevRowInDom=function(){for(var c=this;c;){if(c.prevSibling){var l=void 0;for(c=c.prevSibling;l=c.getLastChild();)c=l}else c=c.parent;if(c&&c.get("isInDom")&&c.hasOwnRow)return c}return null},o.prototype.getLeadingRow=function(){if(this.hasOwnRow)return this;if(this.isExpanded&&this.children.length)return this.children[0].getLeadingRow()},o.prototype.getRows=function(c){c===void 0&&(c=[]),this.hasOwnRow&&c.push(this);for(var l=0,a=this.children;l<a.length;l++){var d=a[l];d.getRows(c)}return c},o.prototype.getNodes=function(c){c===void 0&&(c=[]),c.push(this);for(var l=0,a=this.children;l<a.length;l++){var d=a[l];d.getNodes(c)}return c},o.prototype.getDescendants=function(){for(var c=[],l=0,a=this.children;l<a.length;l++){var d=a[l];d.getNodes(c)}return c},o.prototype.show=function(){this.get("isInDom")||this.renderSkeleton()},o.prototype.hide=function(){this.get("isInDom")&&this.removeElement()},o.prototype.renderSkeleton=function(){this.trHash={};var c=[];if(this.hasOwnRow){var l=this.getPrevRowInDom();for(var a in this.view.tbodyHash){var d=this.view.tbodyHash[a],h=g("<tr/>");this.trHash[a]=h,c.push(h[0]);var v="render"+E.capitaliseFirstLetter(a)+"Skeleton";this[v]&&this[v](h),l?l.trHash[a].after(h):d.prepend(h)}this.trs=g(c).on("click",".fc-expander",E.proxy(this,"toggleExpanded")),this.thisRowShown()}if(this.set("isInDom",!0),this.isExpanded)for(var C=0,k=this.children;C<k.length;C++){var j=k[C];j.renderSkeleton()}},o.prototype.removeElement=function(){for(var c in this.trHash){var l=this.trHash[c],a="unrender"+E.capitaliseFirstLetter(c)+"Skeleton";this[a]&&this[a](l)}this.unset("isInDom"),this.thisRowHidden(),this.trHash={},this.trs.remove(),this.trs=g();for(var d=0,h=this.children;d<h.length;d++){var v=h[d];v.get("isInDom")&&v.removeElement()}},o.prototype.getTr=function(c){return this.trHash[c]},o.prototype.expand=function(){if(!this.isExpanded){this.isExpanded=!0,this.indicateExpanded();for(var c=0,l=this.children;c<l.length;c++){var a=l[c];a.show()}this.view.calendar.updateViewSize(),this.animateExpand()}},o.prototype.collapse=function(){if(this.isExpanded){this.isExpanded=!1,this.indicateCollapsed();for(var c=0,l=this.children;c<l.length;c++){var a=l[c];a.hide()}this.view.calendar.updateViewSize()}},o.prototype.toggleExpanded=function(){this.isExpanded?this.collapse():this.expand()},o.prototype.indicateExpanded=function(){this.trs.find(".fc-expander .fc-icon").removeClass(this.getCollapsedIcon()).addClass(this.getExpandedIcon())},o.prototype.indicateCollapsed=function(){this.trs.find(".fc-expander .fc-icon").removeClass(this.getExpandedIcon()).addClass(this.getCollapsedIcon())},o.prototype.indicateExpandingEnabled=function(){this.trs.find(".fc-expander-space").addClass("fc-expander"),this.isExpanded?this.indicateExpanded():this.indicateCollapsed()},o.prototype.indicateExpandingDisabled=function(){this.trs.find(".fc-expander-space").removeClass("fc-expander").find(".fc-icon").removeClass(this.getExpandedIcon()).removeClass(this.getCollapsedIcon())},o.prototype.updateExpandingEnabled=function(){this.hasOwnRow&&this.children.length?this.indicateExpandingEnabled():this.indicateExpandingDisabled()},o.prototype.getExpandedIcon=function(){return"fc-icon-down-triangle"},o.prototype.getCollapsedIcon=function(){var c=this.view.isRTL?"left":"right";return"fc-icon-"+c+"-triangle"},o.prototype.animateExpand=function(){var c=this.children[0],l=c&&c.getLeadingRow(),a=l&&l.trs;a&&(a.addClass("fc-collapsed"),setTimeout(function(){a.addClass("fc-transitioning"),a.removeClass("fc-collapsed")}),a.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){a.removeClass("fc-transitioning")}))},o.prototype.getMaxTrInnerHeight=function(){var c=0;return g.each(this.trHash,function(l,a){var d=n.getOwnCells(a).find("> div:not(.fc-cell-content):first");c=Math.max(d.height(),c)}),c},o.prototype.setTrInnerHeight=function(c){g.each(this.trHash,function(l,a){n.getOwnCells(a).find("> div:not(.fc-cell-content):first").height(c)})},o.prototype.descendantAdded=function(c){this.get("isInDom")&&this.hasOwnRow&&this.children.length===1&&this.indicateExpandingEnabled(),(this.parent||this.view).descendantAdded(c)},o.prototype.descendantRemoved=function(c){this.get("isInDom")&&this.hasOwnRow&&this.children.length===0&&this.indicateExpandingDisabled(),(this.parent||this.view).descendantRemoved(c)},o.prototype.thisRowShown=function(){(this.parent||this.view).descendantShown(this)},o.prototype.thisRowHidden=function(){(this.parent||this.view).descendantHidden(this)},o.prototype.descendantShown=function(c){(this.parent||this.view).descendantShown(c)},o.prototype.descendantHidden=function(c){(this.parent||this.view).descendantHidden(c)},o}(E.DateComponent);t.default=i,i.prototype.hasOwnRow=!1},function(m,t){Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function w(){}return w.extractIds=function(g,E){var n=E.opt("eventResourceField")||"resourceId",i=[];if(g.resourceIds)for(var u=0,o=g.resourceIds;u<o.length;u++){var c=o[u];i.push(w.normalizeId(c))}return g[n]!=null&&i.push(w.normalizeId(g[n])),i},w.normalizeId=function(g){return String(g)},w}();t.default=p},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=p(9),n=p(13),i=p(38),u=function(o){w.__extends(c,o);function c(l,a){var d=o.call(this,l,a)||this;return d.initResourceView(),d}return c}(g.AgendaView);t.default=u,u.prototype.timeGridClass=i.default,u.prototype.dayGridClass=n.default,E.default.mixInto(u)},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=p(6),i=function(u){w.__extends(o,u);function o(){return u!==null&&u.apply(this,arguments)||this}return o.mixInto=function(c){var l=this;E.Mixin.mixInto.call(this,c),["updateDayTableCols","computeColCnt","getColDayIndex","renderHeadTrHtml","renderBgCellsHtml","renderBusinessHours","allowCrossResource"].forEach(function(a){c.prototype[a]=l.prototype[a]})},o.prototype.registerResources=function(c){this.flattenedResources=this.flattenResources(c),this.resourceCnt=this.flattenedResources.length,this.updateDayTable()},o.prototype.flattenResources=function(c){var l,a=this.opt("resourceOrder");if(a){var d=E.parseFieldSpecs(a);l=function(v,C){return E.compareByFieldSpecs(v,C,d)}}else l=null;var h=[];return this.accumulateResources(c,l,h),h},o.prototype.accumulateResources=function(c,l,a){var d;l?(d=c.slice(0),d.sort(l)):d=c;for(var h=0,v=d;h<v.length;h++){var C=v[h];a.push(C),this.accumulateResources(C.children,l,a)}},o.prototype.updateDayTableCols=function(){this.datesAboveResources=this.opt("groupByDateAndResource"),E.DayTableMixin.prototype.updateDayTableCols.call(this)},o.prototype.computeColCnt=function(){return this.resourceCnt*this.daysPerRow},o.prototype.getColDayIndex=function(c){return this.isRTL&&(c=this.colCnt-1-c),this.datesAboveResources?Math.floor(c/(this.resourceCnt||1)):c%this.daysPerRow},o.prototype.getColResource=function(c){return this.flattenedResources[this.getColResourceIndex(c)]},o.prototype.getColResourceIndex=function(c){return this.isRTL&&(c=this.colCnt-1-c),this.datesAboveResources?c%(this.resourceCnt||1):Math.floor(c/this.daysPerRow)},o.prototype.indicesToCol=function(c,l){var a=this.datesAboveResources?l*(this.resourceCnt||1)+c:c*this.daysPerRow+l;return this.isRTL&&(a=this.colCnt-1-a),a},o.prototype.renderHeadTrHtml=function(){return this.daysPerRow>1?this.datesAboveResources?this.renderHeadDateAndResourceHtml():this.renderHeadResourceAndDateHtml():this.renderHeadResourceHtml()},o.prototype.renderHeadResourceHtml=function(){var c=this,l=this.flattenedResources.map(function(a){return c.renderHeadResourceCellHtml(a)});return l.length||l.push("<td>&nbsp;</td>"),this.wrapTr(l,"renderHeadIntroHtml")},o.prototype.renderHeadResourceAndDateHtml=function(){for(var c=[],l=[],a=this.daysPerRow,d=0,h=this.flattenedResources;d<h.length;d++){var v=h[d];c.push(this.renderHeadResourceCellHtml(v,null,this.daysPerRow));for(var C=0;C<a;C++){var k=this.dayDates[C].clone();l.push(this.renderHeadResourceDateCellHtml(k,v))}}return c.length||c.push("<td>&nbsp;</td>"),l.length||l.push("<td>&nbsp;</td>"),this.wrapTr(c,"renderHeadIntroHtml")+this.wrapTr(l,"renderHeadIntroHtml")},o.prototype.renderHeadDateAndResourceHtml=function(){for(var c=[],l=[],a=this.daysPerRow,d=0;d<a;d++){var h=this.dayDates[d].clone();c.push(this.renderHeadDateCellHtml(h,this.resourceCnt));for(var v=0,C=this.flattenedResources;v<C.length;v++){var k=C[v];l.push(this.renderHeadResourceCellHtml(k,h))}}return c.length||c.push("<td>&nbsp;</td>"),l.length||l.push("<td>&nbsp;</td>"),this.wrapTr(c,"renderHeadIntroHtml")+this.wrapTr(l,"renderHeadIntroHtml")},o.prototype.renderHeadResourceCellHtml=function(c,l,a){return a===void 0&&(a=1),'<th class="fc-resource-cell" data-resource-id="'+c.id+'"'+(l?' data-date="'+l.format("YYYY-MM-DD")+'"':"")+(a>1?' colspan="'+a+'"':"")+">"+E.htmlEscape(this.view.getResourceText(c))+"</th>"},o.prototype.renderHeadResourceDateCellHtml=function(c,l,a){return a===void 0&&(a=1),this.renderHeadDateCellHtml(c,a,'data-resource-id="'+l.id+'"')},o.prototype.processHeadResourceEls=function(c){var l=this;c.find(".fc-resource-cell").each(function(a,d){var h;l.datesAboveResources?h=l.getColResource(a):h=l.flattenedResources[l.isRTL?l.flattenedResources.length-1-a:a],l.publiclyTrigger("resourceRender",{context:h,args:[h,g(d),g(),l.view]})})},o.prototype.renderBgCellsHtml=function(c){for(var l=[],a=this.colCnt,d=0;d<a;d++){var h=this.getCellDate(c,d),v=this.getColResource(d);l.push(this.renderResourceBgCellHtml(h,v))}return l.length||l.push("<td>&nbsp;</td>"),l.join("")},o.prototype.renderResourceBgCellHtml=function(c,l){return this.renderBgCellHtml(c,'data-resource-id="'+l.id+'"')},o.prototype.wrapTr=function(c,l){return this.isRTL?(c.reverse(),"<tr>"+c.join("")+this[l]()+"</tr>"):"<tr>"+this[l]()+c.join("")+"</tr>"},o.prototype.renderBusinessHours=function(c){for(var l=this.hasAllDayBusinessHours,a=this.dateProfile.activeUnzonedRange,d=[],h=0,v=this.flattenedResources;h<v.length;h++){var C=v[h],k=(C.businessHourGenerator||c).buildEventInstanceGroup(l,a);if(k)for(var j=0,G=k.sliceRenderRanges(a);j<G.length;j++){var N=G[j];d.push(new E.EventFootprint(new n.default(N.unzonedRange,l,C.id),N.eventDef,N.eventInstance))}}return this.businessHourRenderer.renderEventFootprints(d)},o}(E.Mixin);t.default=i,i.prototype.resourceCnt=0,i.prototype.datesAboveResources=!1,i.prototype.allowCrossResource=!1},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=p(9),n=p(13),i=function(u){w.__extends(o,u);function o(c,l){var a=u.call(this,c,l)||this;return a.initResourceView(),a}return o}(g.BasicView);t.default=i,i.prototype.dayGridClass=n.default,E.default.mixInto(i)},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=p(9),n=p(13),i=function(u){w.__extends(o,u);function o(c,l){var a=u.call(this,c,l)||this;return a.initResourceView(),a}return o}(g.MonthView);t.default=i,i.prototype.dayGridClass=n.default,E.default.mixInto(i)},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=p(39),i=function(u){w.__extends(o,u);function o(c){var l=u.call(this,c)||this;return l.isHScrollbarsClipped=!1,l.isVScrollbarsClipped=!1,l.overflowX==="clipped-scroll"&&(l.overflowX="scroll",l.isHScrollbarsClipped=!0),l.overflowY==="clipped-scroll"&&(l.overflowY="scroll",l.isVScrollbarsClipped=!0),l}return o.prototype.renderEl=function(){var c=u.prototype.renderEl.call(this);return g('<div class="fc-scroller-clip" />').append(c)},o.prototype.updateSize=function(){var c=this.scrollEl,l=E.getScrollbarWidths(c),a={marginLeft:0,marginRight:0,marginTop:0,marginBottom:0};return this.isHScrollbarsClipped&&(a.marginTop=-l.top,a.marginBottom=-l.bottom),this.isVScrollbarsClipped&&(a.marginLeft=-l.left,a.marginRight=-l.right),c.css(a),c.toggleClass("fc-no-scrollbars",(this.isHScrollbarsClipped||this.overflowX==="hidden")&&(this.isVScrollbarsClipped||this.overflowY==="hidden")&&!(l.top||l.bottom||l.left||l.right))},o.prototype.getScrollbarWidths=function(){var c=E.getScrollbarWidths(this.scrollEl);return this.isHScrollbarsClipped&&(c.top=0,c.bottom=0),this.isVScrollbarsClipped&&(c.left=0,c.right=0),c},o}(n.default);t.default=i},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=function(){function E(){this.gutters={}}return E.prototype.render=function(){this.el=w('<div class="fc-scroller-canvas"> <div class="fc-content"></div> <div class="fc-bg"></div> </div>'),this.contentEl=this.el.find(".fc-content"),this.bgEl=this.el.find(".fc-bg")},E.prototype.setGutters=function(n){n?w.extend(this.gutters,n):this.gutters={},this.updateSize()},E.prototype.setWidth=function(n){this.width=n,this.updateSize()},E.prototype.setMinWidth=function(n){this.minWidth=n,this.updateSize()},E.prototype.clearWidth=function(){this.width=null,this.minWidth=null,this.updateSize()},E.prototype.updateSize=function(){var n=this.gutters;this.el.toggleClass("fc-gutter-left",!!n.left).toggleClass("fc-gutter-right",!!n.right).toggleClass("fc-gutter-top",!!n.top).toggleClass("fc-gutter-bottom",!!n.bottom).css({paddingLeft:n.left||"",paddingRight:n.right||"",paddingTop:n.top||"",paddingBottom:n.bottom||"",width:this.width!=null?this.width+(n.left||0)+(n.right||0):"",minWidth:this.minWidth!=null?this.minWidth+(n.left||0)+(n.right||0):""}),this.bgEl.css({left:n.left||"",right:n.right||"",top:n.top||"",bottom:n.bottom||""})},E}();t.default=g},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=p(0),E=p(27),n=function(){function i(u,o){o===void 0&&(o=!1);var c=this;this.isHFollowing=!0,this.isVFollowing=!1,this.allowPointerEvents=!1,this.containOnNaturalLeft=!1,this.containOnNaturalRight=!1,this.minTravel=0,this.allowPointerEvents=o,this.scroller=u,this.spritesById={},u.on("scroll",function(){u.isTouchedEver?(c.isTouch=!0,c.isForcedRelative=!0):(c.isTouch=!1,c.handleScroll())}),u.on("scrollEnd",function(){c.handleScroll()})}return i.prototype.setSpriteEls=function(u){var o=this;this.clearSprites(),u.each(function(c,l){o.addSprite(new E.default(w(l)))})},i.prototype.clearSprites=function(){this.iterSprites(function(u){return u.clear()}),this.spritesById={}},i.prototype.addSprite=function(u){u.follower=this,this.spritesById[u.id]=u},i.prototype.removeSprite=function(u){u.clear(),delete this.spritesById[u.id]},i.prototype.handleScroll=function(){this.updateViewport(),this.updatePositions()},i.prototype.cacheDimensions=function(){this.updateViewport(),this.scrollbarWidths=this.scroller.getScrollbarWidths(),this.contentOffset=this.scroller.canvas.el.offset(),this.iterSprites(function(u){return u.cacheDimensions()})},i.prototype.updateViewport=function(){var u=this.scroller,o=u.getScrollFromLeft(),c=u.getScrollTop();return this.viewportRect={left:o,right:o+u.getClientWidth(),top:c,bottom:c+u.getClientHeight()}},i.prototype.forceRelative=function(){this.isForcedRelative||(this.isForcedRelative=!0,this.iterSprites(function(u){if(u.doAbsolute)return u.assignPosition()}))},i.prototype.clearForce=function(){this.isForcedRelative&&!this.isTouch&&(this.isForcedRelative=!1,this.iterSprites(function(u){return u.assignPosition()}))},i.prototype.update=function(){this.cacheDimensions(),this.updatePositions()},i.prototype.updatePositions=function(){this.iterSprites(function(u){return u.updatePosition()})},i.prototype.getContentRect=function(u){return g.getContentRect(u,this.contentOffset)},i.prototype.getBoundingRect=function(u){return g.getOuterRect(u,this.contentOffset)},i.prototype.iterSprites=function(u){for(var o in this.spritesById){var c=this.spritesById[o];u(c,o)}},i}();t.default=n},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=function(){function h(v){this.isEnabled=!0,this.isHFollowing=!1,this.isVFollowing=!1,this.doAbsolute=!1,this.isAbsolute=!1,this.isCentered=!1,this.isBlock=!1,this.el=v,this.id=String(h.uid++),this.isBlock=this.el.css("display")==="block",this.el.css("position")!=="relative"&&this.el.css("position","relative")}return h.prototype.disable=function(){this.isEnabled&&(this.isEnabled=!1,this.resetPosition(),this.unabsolutize())},h.prototype.enable=function(){this.isEnabled||(this.isEnabled=!0,this.assignPosition())},h.prototype.clear=function(){this.disable(),this.follower=null,this.absoluteEl=null},h.prototype.cacheDimensions=function(){var v=!1,C=!1,k=!1;this.naturalWidth=this.el.width(),this.resetPosition();var j=this.follower,G=this.naturalRect=j.getBoundingRect(this.el),N=this.el.parent();this.parentRect=j.getBoundingRect(N);var T=this.containerRect=d(j.getContentRect(N),G),A=j.minTravel;j.containOnNaturalLeft&&(T.left=G.left),j.containOnNaturalRight&&(T.right=G.right),j.isHFollowing&&n(T)-n(G)>=A&&(k=this.el.css("text-align")==="center",v=!0),j.isVFollowing&&i(T)-i(G)>=A&&(C=!0),this.isHFollowing=v,this.isVFollowing=C,this.isCentered=k},h.prototype.updatePosition=function(){this.computePosition(),this.assignPosition()},h.prototype.resetPosition=function(){this.el.css({top:"",left:""})},h.prototype.computePosition=function(){var v=this.follower.viewportRect,C=this.parentRect,k=this.containerRect,j=w.intersectRects(v,C),G=null,N=!1;if(j){G=E(this.naturalRect);var T=w.intersectRects(G,C);if(this.isCentered&&!u(v,C)||T&&!u(v,T)){if(N=!0,this.isHFollowing){if(this.isCentered){var A=n(G);G.left=(j.left+j.right)/2-A/2,G.right=G.left+A}else l(G,v)||(N=!1);l(G,k)&&(N=!1)}this.isVFollowing&&(a(G,v)||(N=!1),a(G,k)&&(N=!1)),u(v,G)||(N=!1)}}this.rect=G,this.doAbsolute=N},h.prototype.assignPosition=function(){if(this.isEnabled)if(!this.rect)this.unabsolutize();else if(this.doAbsolute&&!this.follower.isForcedRelative)this.absolutize(),this.absoluteEl.css({top:this.rect.top-this.follower.viewportRect.top+this.follower.scrollbarWidths.top,left:this.rect.left-this.follower.viewportRect.left+this.follower.scrollbarWidths.left,width:this.isBlock?this.naturalWidth:""});else{var v=this.rect.top-this.naturalRect.top,C=this.rect.left-this.naturalRect.left;this.unabsolutize(),this.el.toggleClass("fc-following",!!(v||C)).css({top:v,left:C})}},h.prototype.absolutize=function(){this.isAbsolute||(this.absoluteEl||(this.absoluteEl=this.buildAbsoluteEl()),this.absoluteEl.appendTo(this.follower.scroller.el),this.el.css("visibility","hidden"),this.isAbsolute=!0)},h.prototype.unabsolutize=function(){this.isAbsolute&&(this.absoluteEl.detach(),this.el.css("visibility",""),this.isAbsolute=!1)},h.prototype.buildAbsoluteEl=function(){var v=this.el.clone().addClass("fc-following");return v.css({position:"absolute","z-index":1e3,"font-weight":this.el.css("font-weight"),"font-size":this.el.css("font-size"),"font-family":this.el.css("font-family"),"text-decoration":this.el.css("text-decoration"),color:this.el.css("color"),"padding-top":this.el.css("padding-top"),"padding-bottom":this.el.css("padding-bottom"),"padding-left":this.el.css("padding-left"),"padding-right":this.el.css("padding-right")}),this.follower.allowPointerEvents||v.css("pointer-events","none"),v},h.uid=0,h}();t.default=g;function E(h){return{left:h.left,right:h.right,top:h.top,bottom:h.bottom}}function n(h){return h.right-h.left}function i(h){return h.bottom-h.top}function u(h,v){return o(h,v)&&c(h,v)}function o(h,v){return v.left>=h.left&&v.right<=h.right}function c(h,v){return v.top>=h.top&&v.bottom<=h.bottom}function l(h,v){return h.left<v.left?(h.right=v.left+n(h),h.left=v.left,!0):h.right>v.right?(h.left=v.right-n(h),h.right=v.right,!0):!1}function a(h,v){return h.top<v.top?(h.bottom=v.top+i(h),h.top=v.top,!0):h.bottom>v.bottom?(h.top=v.bottom-i(h),h.bottom=v.bottom,!0):!1}function d(h,v){return{left:Math.min(h.left,v.left),right:Math.max(h.right,v.right),top:Math.min(h.top,v.top),bottom:Math.max(h.bottom,v.bottom)}}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=function(i){w.__extends(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.attachSegEls=function(o,c){if(c.length){var l=void 0;o==="businessHours"?l="bgevent":l=o.toLowerCase();for(var a=g('<div class="fc-'+l+'-container" />').appendTo(this.component.bgSegContainerEl),d=0,h=c;d<h.length;d++){var v=h[d],C=this.component.rangeToCoords(v);v.el.css({left:v.left=C.left,right:-(v.right=C.right)}),v.el.appendTo(a)}return a}},u}(E.FillRenderer);t.default=n},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=function(i){w.__extends(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.renderSegs=function(o,c){for(var l=[],a=0,d=o;a<d.length;a++){var h=d[a],v=this.component.rangeToCoords(h);h.el.css({left:h.left=v.left,right:-(h.right=v.right)}),c&&c.resourceId===(this.component.resource!=null?this.component.resource.id:void 0)?h.el.css("top",c.el.css("top")):h.el.css("top",0)}var C=g('<div class="fc-event-container fc-helper-container"/>').appendTo(this.component.innerEl);l.push(C[0]);for(var k=0,j=o;k<j.length;k++){var h=j[k];C.append(h.el)}return g(l)},u}(E.HelperRenderer);t.default=n},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=p(16),i=p(6),u=p(9),o=p(14),c=p(43),l=p(45),a=p(18),d=p(46),h=p(47),v=p(31),C=p(33),k=function(N){w.__extends(T,N);function T(A,U){var X=N.call(this,A,U)||this;return X.canHandleSpecificResources=!0,X.isResourceFootprintsEnabled=!0,X.nestingCnt=0,X.indiBizCnt=0,X.isIndiBizRendered=!1,X.isGenericBizRendered=!1,X.initResourceView(),X.processResourceOptions(),X.spreadsheet=new c.default(X),X.rowHierarchy=new a.default(X),X.rowHierarchy.isExpanded=!0,X.resourceRowHash={},X}return T.prototype.processResourceOptions=function(){var A=this.opt("resourceColumns")||[],U=this.opt("resourceLabelText"),X="Resources",Q=null;A.length?Q=U:A.push({labelText:U||X,text:this.getResourceTextFunc()});for(var re=[],ge=[],Ce=[],pe=!1,ie=!1,oe=0,me=A;oe<me.length;oe++){var Fe=me[oe];Fe.group?ge.push(Fe):re.push(Fe)}if(re[0].isMain=!0,ge.length)Ce=ge,pe=!0;else{var et=this.opt("resourceGroupField");et&&(ie=!0,Ce.push({field:et,text:this.opt("resourceGroupText"),render:this.opt("resourceGroupRender")}))}for(var ft=E.parseFieldSpecs(this.opt("resourceOrder")),ze=[],bt=0,St=ft;bt<St.length;bt++){for(var Le=St[bt],Et=!1,Mt=0,at=Ce;Mt<at.length;Mt++){var Ot=at[Mt];if(Ot.field===Le.field){Ot.order=Le.order,Et=!0;break}}Et||ze.push(Le)}this.superHeaderText=Q,this.isVGrouping=pe,this.isHGrouping=ie,this.groupSpecs=Ce,this.colSpecs=ge.concat(re),this.orderSpecs=ze},T.prototype.renderSkeleton=function(){N.prototype.renderSkeleton.call(this);var A=this.calendar.theme;this.spreadsheet.el=this.el.find("tbody .fc-resource-area"),this.spreadsheet.headEl=this.el.find("thead .fc-resource-area"),this.spreadsheet.renderSkeleton(),this.segContainerEl.remove(),this.segContainerEl=null;var U=g('<div class="fc-rows"> <table class="'+A.getClass("tableGrid")+'"> <tbody/> </table> </div>').appendTo(this.timeBodyScroller.canvas.contentEl);this.timeBodyTbodyEl=U.find("tbody"),this.tbodyHash={spreadsheet:this.spreadsheet.tbodyEl,event:this.timeBodyTbodyEl},this.resourceScrollJoiner=new n.default("vertical",[this.spreadsheet.bodyScroller,this.timeBodyScroller]),this.initDividerMoving()},T.prototype.renderSkeletonHtml=function(){var A=this.calendar.theme;return'<table class="'+A.getClass("tableGrid")+'"> <thead class="fc-head"> <tr> <td class="fc-resource-area '+A.getClass("widgetHeader")+'"></td> <td class="fc-divider fc-col-resizer '+A.getClass("widgetHeader")+'"></td> <td class="fc-time-area '+A.getClass("widgetHeader")+'"></td> </tr> </thead> <tbody class="fc-body"> <tr> <td class="fc-resource-area '+A.getClass("widgetContent")+'"></td> <td class="fc-divider fc-col-resizer '+A.getClass("widgetHeader")+'"></td> <td class="fc-time-area '+A.getClass("widgetContent")+'"></td> </tr> </tbody> </table>'},T.prototype.initDividerMoving=function(){var A=this,U=this.opt("resourceAreaWidth");this.dividerEls=this.el.find(".fc-divider"),this.dividerWidth=U??this.spreadsheet.tableWidth,this.dividerWidth!=null&&this.positionDivider(this.dividerWidth),this.dividerEls.on("mousedown",function(X){A.dividerMousedown(X)})},T.prototype.dividerMousedown=function(A){var U=this,X=this.opt("isRTL"),Q=30,re=this.el.width()-30,ge=this.getNaturalDividerWidth(),Ce=new E.DragListener({dragStart:function(){U.dividerEls.addClass("fc-active")},drag:function(pe,ie){var oe;X?oe=ge-pe:oe=ge+pe,oe=Math.max(oe,Q),oe=Math.min(oe,re),U.dividerWidth=oe,U.positionDivider(oe),U.calendar.updateViewSize()},dragEnd:function(){U.dividerEls.removeClass("fc-active")}});Ce.startInteraction(A)},T.prototype.getNaturalDividerWidth=function(){return this.el.find(".fc-resource-area").width()},T.prototype.positionDivider=function(A){this.el.find(".fc-resource-area").css("width",A)},T.prototype.updateSize=function(A,U,X){var Q;this.rowsNeedingHeightSync?(this.syncRowHeights(this.rowsNeedingHeightSync),this.rowsNeedingHeightSync=null):this.syncRowHeights();var re=this.syncHeadHeights();U?Q="auto":Q=A-re-this.queryMiscHeight(),this.timeBodyScroller.setHeight(Q),this.spreadsheet.bodyScroller.setHeight(Q),this.spreadsheet.updateSize(),N.prototype.updateSize.call(this,A,U,X),this.resourceScrollJoiner.update()},T.prototype.queryMiscHeight=function(){return this.el.outerHeight()-Math.max(this.spreadsheet.headScroller.el.outerHeight(),this.timeHeadScroller.el.outerHeight())-Math.max(this.spreadsheet.bodyScroller.el.outerHeight(),this.timeBodyScroller.el.outerHeight())},T.prototype.syncHeadHeights=function(){this.spreadsheet.headHeight("auto"),this.headHeight("auto");var A=Math.max(this.spreadsheet.headHeight(),this.headHeight());return this.spreadsheet.headHeight(A),this.headHeight(A),A},T.prototype.queryResourceScroll=function(){for(var A={},U=this.timeBodyScroller.scrollEl.offset().top,X=0,Q=this.getVisibleRows();X<Q.length;X++){var re=Q[X];if(re.resource){var ge=re.getTr("event"),Ce=ge.offset().top+ge.outerHeight();if(Ce>U){A.resourceId=re.resource.id,A.bottom=Ce-U;break}}}return A},T.prototype.applyResourceScroll=function(A){if(A.resourceId){var U=this.getResourceRow(A.resourceId);if(U){var X=U.getTr("event");if(X){var Q=this.timeBodyScroller.canvas.el.offset().top,re=X.offset().top+X.outerHeight(),ge=re-A.bottom-Q;this.timeBodyScroller.setScrollTop(ge),this.spreadsheet.bodyScroller.setScrollTop(ge)}}}},T.prototype.scrollToResource=function(A){var U=this.getResourceRow(A.id);if(U){var X=U.getTr("event");if(X){var Q=this.timeBodyScroller.canvas.el.offset().top,re=X.offset().top-Q;this.timeBodyScroller.setScrollTop(re),this.spreadsheet.bodyScroller.setScrollTop(re)}}},T.prototype.prepareHits=function(){var A=[];N.prototype.prepareHits.call(this),this.eventRows=this.getEventRows(),this.eventRows.forEach(function(X){X.get("isInDom")&&A.push(X)});var U=A.map(function(X){return X.getTr("event")[0]});this.shownEventRows=A,this.rowCoordCache=new E.CoordCache({els:U,isVertical:!0}),this.rowCoordCache.build()},T.prototype.releaseHits=function(){N.prototype.releaseHits.call(this),this.eventRows=null,this.shownEventRows=null,this.rowCoordCache.clear()},T.prototype.queryHit=function(A,U){var X=N.prototype.queryHit.call(this,A,U);if(X){var Q=this.rowCoordCache.getVerticalIndex(U);if(Q!=null)return{resourceId:this.shownEventRows[Q].resource.id,snap:X.snap,component:this,left:X.left,right:X.right,top:this.rowCoordCache.getTopOffset(Q),bottom:this.rowCoordCache.getBottomOffset(Q)}}},T.prototype.getHitFootprint=function(A){var U=N.prototype.getHitFootprint.call(this,A);return new i.default(U.unzonedRange,U.isAllDay,A.resourceId)},T.prototype.getHitEl=function(A){return this.getSnapEl(A.snap)},T.prototype.renderResources=function(A){for(var U=0,X=A;U<X.length;U++){var Q=X[U];this.renderResource(Q)}},T.prototype.unrenderResources=function(){this.rowHierarchy.removeElement(),this.rowHierarchy.removeChildren();for(var A in this.resourceRowHash)this.removeChild(this.resourceRowHash[A]);this.resourceRowHash={}},T.prototype.renderResource=function(A){this.insertResource(A)},T.prototype.unrenderResource=function(A){this.removeResource(A)},T.prototype.executeEventRender=function(A){var U={},X={},Q;for(var re in A){var ge=A[re],Ce=ge.getEventDef(),pe=Ce.getResourceIds();if(pe.length)for(var ie=0,oe=pe;ie<oe.length;ie++){Q=oe[ie];var me=U[Q]||(U[Q]={});me[re]=ge}else Ce.hasBgRendering()&&(X[re]=ge)}this.eventRenderer.render(X);for(Q in U){var Fe=U[Q],et=this.getResourceRow(Q);et&&et.executeEventRender(Fe)}},T.prototype.renderBusinessHours=function(A){if(this.genericBiz=A,this.isIndiBizRendered=!1,this.isGenericBizRendered=!1,this.indiBizCnt){this.isIndiBizRendered=!0;for(var U=0,X=this.getEventRows();U<X.length;U++){var Q=X[U];Q.renderBusinessHours(Q.resource.businessHourGenerator||A)}}else this.isGenericBizRendered=!0,this.businessHourRenderer.render(A)},T.prototype.updateIndiBiz=function(){(this.indiBizCnt&&this.isGenericBizRendered||!this.indiBizCnt&&this.isIndiBizRendered)&&(this.unrenderBusinessHours(),this.renderBusinessHours(this.genericBiz))},T.prototype.insertResource=function(A,U){var X=!U,Q=new d.default(this,A);U||(A.parent?U=this.getResourceRow(A.parent.id):A.parentId&&(U=this.getResourceRow(A.parentId))),U?this.insertRowAsChild(Q,U):this.insertRow(Q),this.addChild(Q),this.resourceRowHash[A.id]=Q,A.businessHourGenerator&&(this.indiBizCnt++,this.isIndiBizRendered&&(Q.businessHourGenerator=A.businessHourGenerator),this.updateIndiBiz());for(var re=0,ge=A.children;re<ge.length;re++){var Ce=ge[re];this.insertResource(Ce,Q)}return X&&G(Q.parent)&&Q.renderSkeleton(),Q},T.prototype.removeResource=function(A){var U=this.resourceRowHash[A.id];return U&&(delete this.resourceRowHash[A.id],this.removeChild(U),U.removeFromParentAndDom(),A.businessHourGenerator&&(this.indiBizCnt--,this.updateIndiBiz())),U},T.prototype.insertRow=function(A,U,X){if(U===void 0&&(U=this.rowHierarchy),X===void 0&&(X=this.groupSpecs),X.length){var Q=this.ensureResourceGroup(A,U,X[0]);Q instanceof h.default?this.insertRowAsChild(A,Q):this.insertRow(A,Q,X.slice(1))}else this.insertRowAsChild(A,U)},T.prototype.insertRowAsChild=function(A,U){return U.addChildRowNode(A,this.computeChildRowPosition(A,U))},T.prototype.computeChildRowPosition=function(A,U){if(this.orderSpecs.length)for(var X=0;X<U.children.length;X++){var Q=U.children[X],re=this.compareResources(Q.resource||{},A.resource||{});if(re>0)return X}return null},T.prototype.compareResources=function(A,U){return E.compareByFieldSpecs(A,U,this.orderSpecs)},T.prototype.ensureResourceGroup=function(A,U,X){var Q,re,ge=(A.resource||{})[X.field],Ce=null;if(X.order)for(Q=0;Q<U.children.length;Q++){re=U.children[Q];var pe=E.flexibleCompare(re.groupValue,ge)*X.order;if(pe===0){Ce=re;break}else if(pe>0)break}else for(Q=0;Q<U.children.length;Q++)if(re=U.children[Q],re.groupValue===ge){Ce=re;break}return Ce||(this.isVGrouping?Ce=new v.default(this,X,ge):Ce=new h.default(this,X,ge),U.addChildRowNode(Ce,Q),Ce.renderSkeleton()),Ce},T.prototype.descendantAdded=function(A){var U=this.isNesting,X=!!(this.nestingCnt+=A.depth?1:0);U!==X&&(this.el.toggleClass("fc-nested",X).toggleClass("fc-flat",!X),this.isNesting=X)},T.prototype.descendantRemoved=function(A){var U=this.isNesting,X=!!(this.nestingCnt-=A.depth?1:0);U!==X&&(this.el.toggleClass("fc-nested",X).toggleClass("fc-flat",!X),this.isNesting=X)},T.prototype.descendantShown=function(A){(this.rowsNeedingHeightSync||(this.rowsNeedingHeightSync=[])).push(A)},T.prototype.descendantHidden=function(A){this.rowsNeedingHeightSync||(this.rowsNeedingHeightSync=[])},T.prototype.syncRowHeights=function(A,U){A===void 0&&(A=this.getVisibleRows()),U===void 0&&(U=!1);for(var X=0,Q=A;X<Q.length;X++){var re=Q[X];re.setTrInnerHeight("")}for(var ge=A.map(function(oe){var me=oe.getMaxTrInnerHeight();return U&&(me+=me%2),me}),Ce=0;Ce<A.length;Ce++){var re=A[Ce];re.setTrInnerHeight(ge[Ce])}if(!U){var pe=this.spreadsheet.tbodyEl.height(),ie=this.timeBodyTbodyEl.height();Math.abs(pe-ie)>1&&this.syncRowHeights(A,!0)}},T.prototype.getVisibleRows=function(){for(var A=[],U=0,X=this.rowHierarchy.getRows();U<X.length;U++){var Q=X[U];Q.get("isInDom")&&A.push(Q)}return A},T.prototype.getEventRows=function(){return this.rowHierarchy.getRows().filter(function(A){return A instanceof C.default})},T.prototype.getResourceRow=function(A){return this.resourceRowHash[A]},T.prototype.renderSelectionFootprint=function(A){if(A.resourceId){var U=this.getResourceRow(A.resourceId);if(U)return U.renderSelectionFootprint(A)}else return N.prototype.renderSelectionFootprint.call(this,A)},T.prototype.renderEventResize=function(A,U,X){var Q=j(A);for(var re in Q){var ge=Q[re],Ce=this.getResourceRow(re);Ce.helperRenderer.renderEventDraggingFootprints(ge,U,X);for(var pe=0,ie=ge;pe<ie.length;pe++){var oe=ie[pe];Ce.renderHighlight(oe.componentFootprint)}}},T.prototype.unrenderEventResize=function(){for(var A=0,U=this.getEventRows();A<U.length;A++){var X=U[A];X.helperRenderer.unrender(),X.unrenderHighlight()}},T.prototype.renderDrag=function(A,U,X){var Q=j(A),re,ge,Ce;if(U){for(ge in Q)re=Q[ge],Ce=this.getResourceRow(ge),Ce.helperRenderer.renderEventDraggingFootprints(re,U,X);return!0}else{for(ge in Q){re=Q[ge];for(var pe=0,ie=re;pe<ie.length;pe++){var oe=ie[pe];Ce=this.getResourceRow(ge),Ce.renderHighlight(oe.componentFootprint)}}return!1}},T.prototype.unrenderDrag=function(){for(var A=0,U=this.getEventRows();A<U.length;A++){var X=U[A];X.helperRenderer.unrender(),X.unrenderHighlight()}},T}(o.default);t.default=k,k.prototype.eventRendererClass=l.default,u.default.mixInto(k);function j(N){for(var T={},A=0,U=N;A<U.length;A++){var X=U[A];(T[X.componentFootprint.resourceId]||(T[X.componentFootprint.resourceId]=[])).push(X)}return T}function G(N){for(;N;){if(!N.isExpanded)return!1;N=N.parent}return!0}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(32),n=function(i){w.__extends(u,i);function u(o,c,l){var a=i.call(this,o,c,l)||this;return a.rowspan=0,a}return u.prototype.renderRowspan=function(){var o,c=this.view.calendar.theme;this.rowspan?(this.groupTd||(this.groupTd=g('<td class="'+c.getClass("widgetContent")+'"/>').append(this.renderGroupContentEl())),this.groupTd.attr("rowspan",this.rowspan),o=this.getLeadingRow().getTr("spreadsheet"),o!==this.leadingTr&&(o&&o.prepend(this.groupTd),this.leadingTr=o)):(this.groupTd&&(this.groupTd.remove(),this.groupTd=null),this.leadingTr=null)},u.prototype.descendantShown=function(o){this.rowspan+=1,this.renderRowspan(),i.prototype.descendantShown.call(this,o)},u.prototype.descendantHidden=function(o){this.rowspan-=1,this.renderRowspan(),i.prototype.descendantHidden.call(this,o)},u}(E.default);t.default=n},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(18),n=function(i){w.__extends(u,i);function u(o,c,l){var a=i.call(this,o)||this;return a.groupSpec=c,a.groupValue=l,a}return u.prototype.descendantRemoved=function(o){i.prototype.descendantRemoved.call(this,o),this.children.length||this.removeFromParentAndDom()},u.prototype.renderGroupContentEl=function(){var o=g('<div class="fc-cell-content" />').append(this.renderGroupTextEl()),c=this.groupSpec.render;return typeof c=="function"&&(o=c(o,this.groupValue)||o),o},u.prototype.renderGroupTextEl=function(){var o=this.groupValue||"",c=this.groupSpec.text;return typeof c=="function"&&(o=c(o)||o),g('<span class="fc-cell-text" />').text(o)},u}(E.default);t.default=n},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=p(18),n=p(28),i=p(17),u=p(29),o=function(c){w.__extends(l,c);function l(){return c!==null&&c.apply(this,arguments)||this}return l.prototype.renderEventSkeleton=function(a){var d=this.view.calendar.theme;a.html('<td class="'+d.getClass("widgetContent")+'"> <div> <div class="fc-event-container" /> </div> </td>'),this.segContainerEl=a.find(".fc-event-container"),this.innerEl=this.bgSegContainerEl=a.find("td > div")},l.prototype.rangeToCoords=function(a){return this.view.rangeToCoords(a)},l.prototype.componentFootprintToSegs=function(a){return this.view.componentFootprintToSegs(a)},l}(E.default);t.default=o,o.prototype.fillRendererClass=n.default,o.prototype.eventRendererClass=i.default,o.prototype.helperRendererClass=u.default,o.prototype.businessHourRendererClass=g.BusinessHourRenderer,o.prototype.hasOwnRow=!0},,,function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0);p(37),p(48),p(50),p(51),p(53),p(54),p(55),p(56),p(57),p(58),p(59),p(60),p(61),p(62),p(63),p(64),p(65),p(66),p(67),p(68);var g="1.9.2";if(w.schedulerVersion=g,w.internalApiVersion!==12)throw new Error("v"+g+" of FullCalendar Scheduler is incompatible with v"+w.version+` of the core.
Please see http://fullcalendar.io/support/ for more information.`)},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(20),E=p(22),n=p(23),i=p(14),u=p(30);w.ResourceAgendaView=g.default,w.ResourceBasicView=E.default,w.ResourceMonthView=n.default,w.TimelineView=i.default,w.ResourceTimelineView=u.default},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=p(21),i=p(6),u=function(o){w.__extends(c,o);function c(l){var a=o.call(this,l)||this;return a.isResourceFootprintsEnabled=!0,a}return c.prototype.renderDates=function(l){this.dateProfile=l,this.renderSlats()},c.prototype.renderResources=function(l){this.registerResources(l),this.renderColumns(),this.headContainerEl&&this.processHeadResourceEls(this.headContainerEl)},c.prototype.getHitFootprint=function(l){var a=o.prototype.getHitFootprint.call(this,l);return new i.default(a.unzonedRange,a.isAllDay,this.getColResource(l.col).id)},c.prototype.componentFootprintToSegs=function(l){for(var a=this.resourceCnt,d=this.sliceRangeByTimes(l.unzonedRange),h=[],v=0,C=d;v<C.length;v++)for(var k=C[v],j=0;j<a;j++){var G=this.flattenedResources[j];if(!(l instanceof i.default)||l.resourceId===G.id){var N=g.extend({},k);N.resource=G,N.col=this.indicesToCol(j,k.dayIndex),h.push(N)}}return h},c}(E.TimeGrid);t.default=u,n.default.mixInto(u)},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=null,i=function(o){w.__extends(c,o);function c(l){var a=o.call(this,l)||this;return a.isScrolling=!1,a.isTouching=!1,a.isTouchedEver=!1,a.isMoving=!1,a.isTouchScrollEnabled=!0,a.requestMovingEnd=E.debounce(a.reportMovingEnd,500),a}return c.prototype.render=function(){o.prototype.render.call(this),this.canvas&&(this.canvas.render(),this.canvas.el.appendTo(this.scrollEl)),this.bindHandlers()},c.prototype.destroy=function(){o.prototype.destroy.call(this),this.unbindHandlers()},c.prototype.disableTouchScroll=function(){this.isTouchScrollEnabled=!1,this.bindPreventTouchScroll()},c.prototype.enableTouchScroll=function(){this.isTouchScrollEnabled=!0,this.isTouching||this.unbindPreventTouchScroll()},c.prototype.bindPreventTouchScroll=function(){this.preventTouchScrollHandler||this.scrollEl.on("touchmove",this.preventTouchScrollHandler=E.preventDefault)},c.prototype.unbindPreventTouchScroll=function(){this.preventTouchScrollHandler&&(this.scrollEl.off("touchmove",this.preventTouchScrollHandler),this.preventTouchScrollHandler=null)},c.prototype.bindHandlers=function(){return this.listenTo(this.scrollEl,{scroll:this.reportScroll,touchstart:this.reportTouchStart,touchend:this.reportTouchEnd})},c.prototype.unbindHandlers=function(){return this.stopListeningTo(this.scrollEl)},c.prototype.reportScroll=function(){this.isScrolling||this.reportScrollStart(),this.trigger("scroll"),this.isMoving=!0,this.requestMovingEnd()},c.prototype.reportScrollStart=function(){this.isScrolling||(this.isScrolling=!0,this.trigger("scrollStart",this.isTouching))},c.prototype.reportMovingEnd=function(){this.isMoving=!1,this.isTouching||this.reportScrollEnd()},c.prototype.reportScrollEnd=function(){this.isScrolling&&(this.trigger("scrollEnd"),this.isScrolling=!1)},c.prototype.reportTouchStart=function(){this.isTouching=!0,this.isTouchedEver=!0},c.prototype.reportTouchEnd=function(){this.isTouching&&(this.isTouching=!1,this.isTouchScrollEnabled&&this.unbindPreventTouchScroll(),this.isMoving||this.reportScrollEnd())},c.prototype.getScrollLeft=function(){var l=this.scrollEl.css("direction"),a=this.scrollEl[0],d=a.scrollLeft;if(l==="rtl")switch(n){case"positive":d=d+a.clientWidth-a.scrollWidth;break;case"reverse":d=-d;break}return d},c.prototype.setScrollLeft=function(l){var a=this.scrollEl.css("direction"),d=this.scrollEl[0];if(a==="rtl")switch(n){case"positive":l=l-d.clientWidth+d.scrollWidth;break;case"reverse":l=-l;break}d.scrollLeft=l},c.prototype.getScrollFromLeft=function(){var l=this.scrollEl.css("direction"),a=this.scrollEl[0],d=a.scrollLeft;if(l==="rtl")switch(n){case"negative":d=d-a.clientWidth+a.scrollWidth;break;case"reverse":d=-d-a.clientWidth+a.scrollWidth;break}return d},c.prototype.getNativeScrollLeft=function(){return this.scrollEl[0].scrollLeft},c.prototype.setNativeScrollLeft=function(l){this.scrollEl[0].scrollLeft=l},c}(E.Scroller);t.default=i,E.EmitterMixin.mixInto(i),E.ListenerMixin.mixInto(i);function u(){var o=g('<div style=" position: absolute; top: -1000px; width: 1px; height: 1px; overflow: scroll; direction: rtl; font-size: 100px; ">A</div>').appendTo("body"),c=o[0],l=function(){return c.scrollLeft>0?"positive":(c.scrollLeft=1,c.scrollLeft>0?"reverse":"negative")}();return o.remove(),l}g(function(){n=u()})},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=function(n){w.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.segDragStart=function(u,o){n.prototype.segDragStart.call(this,u,o),this.component.eventTitleFollower&&this.component.eventTitleFollower.forceRelative()},i.prototype.segDragStop=function(u,o){n.prototype.segDragStop.call(this,u,o),this.component.eventTitleFollower&&this.component.eventTitleFollower.clearForce()},i}(g.EventDragging);t.default=E},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(0),E=function(n){w.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.segResizeStart=function(u,o){if(n.prototype.segResizeStart.call(this,u,o),this.component.eventTitleFollower)return this.component.eventTitleFollower.forceRelative()},i.prototype.segResizeStop=function(u,o){if(n.prototype.segResizeStop.call(this,u,o),this.component.eventTitleFollower)return this.component.eventTitleFollower.clearForce()},i}(g.EventResizing);t.default=E},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=p(15),E=p(0),n=18,i=6,u=200;E.MAX_TIMELINE_SLOTS=1e3;var o=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function c(C){C.labelInterval=l(C,"slotLabelInterval"),C.slotDuration=l(C,"slotDuration"),a(C),d(C),h(C);var k=C.opt("slotLabelFormat"),j=w.type(k);C.headerFormats=j==="array"?k:j==="string"?[k]:v(C),C.isTimeScale=E.durationHasTime(C.slotDuration);var G=null;if(!C.isTimeScale){var N=E.computeGreatestUnit(C.slotDuration);/year|month|week/.test(N)&&(G=N)}C.largeUnit=G,C.emphasizeWeeks=C.slotDuration.as("days")===1&&C.currentRangeAs("weeks")>=2&&!C.opt("businessHours");var T=C.opt("snapDuration");C.snapDuration=T?g.duration(T):C.slotDuration,C.snapsPerSlot=E.divideDurationByDuration(C.slotDuration,C.snapDuration)}t.initScaleProps=c;function l(C,k){var j=C.opt(k);if(j!=null){var G=g.duration(j);if(+G)return G}}function a(C){var k=C.dateProfile.currentUnzonedRange;if(C.labelInterval){var j=E.divideRangeByDuration(k.getStart(),k.getEnd(),C.labelInterval);j>E.MAX_TIMELINE_SLOTS&&(E.warn("slotLabelInterval results in too many cells"),C.labelInterval=null)}if(C.slotDuration){var G=E.divideRangeByDuration(k.getStart(),k.getEnd(),C.slotDuration);G>E.MAX_TIMELINE_SLOTS&&(E.warn("slotDuration results in too many cells"),C.slotDuration=null)}if(C.labelInterval&&C.slotDuration){var N=E.divideDurationByDuration(C.labelInterval,C.slotDuration);if(!E.isInt(N)||N<1)return E.warn("slotLabelInterval must be a multiple of slotDuration"),C.slotDuration=null}}function d(C){var k=C.dateProfile.currentUnzonedRange,j=C.labelInterval;if(!j){var G=void 0;if(C.slotDuration){for(var N=0,T=o;N<T.length;N++){G=T[N];var A=g.duration(G),U=E.divideDurationByDuration(A,C.slotDuration);if(E.isInt(U)&&U<=i){j=A;break}}j||(j=C.slotDuration)}else for(var X=0,Q=o;X<Q.length;X++){G=Q[X],j=g.duration(G);var re=E.divideRangeByDuration(k.getStart(),k.getEnd(),j);if(re>=n)break}C.labelInterval=j}return j}function h(C){var k=C.dateProfile.currentUnzonedRange,j=C.slotDuration;if(!j){for(var G=d(C),N=0,T=o;N<T.length;N++){var A=T[N],U=g.duration(A),X=E.divideDurationByDuration(G,U);if(E.isInt(X)&&X>1&&X<=i){j=U;break}}if(j){var Q=E.divideRangeByDuration(k.getStart(),k.getEnd(),j);Q>u&&(j=null)}j||(j=G),C.slotDuration=j}return j}function v(C){var k,j,G=C.labelInterval,N=E.computeGreatestUnit(G),T=C.opt("weekNumbers"),A=k=j=null;switch(N==="week"&&!T&&(N="day"),N){case"year":A="YYYY";break;case"month":C.currentRangeAs("years")>1&&(A="YYYY"),k="MMM";break;case"week":C.currentRangeAs("years")>1&&(A="YYYY"),k=C.opt("shortWeekFormat");break;case"day":C.currentRangeAs("years")>1?A=C.opt("monthYearFormat"):C.currentRangeAs("months")>1&&(A="MMMM"),T&&(k=C.opt("weekFormat")),j="dd D";break;case"hour":T&&(A=C.opt("weekFormat")),C.currentRangeAs("days")>1&&(k=C.opt("dayOfMonthFormat")),j=C.opt("smallTimeFormat");break;case"minute":G.asMinutes()/60>=i?(A=C.opt("hourFormat"),k="[:]mm"):A=C.opt("mediumTimeFormat");break;case"second":G.asSeconds()/60>=i?(A="LT",k="[:]ss"):A="LTS";break;case"millisecond":A="LTS",k="[.]SSS";break}return[].concat(A||[],k||[],j||[])}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=p(0),E=p(24),n=p(25),i=p(16),u=p(26),o=p(31),c=30,l=function(){function a(d){this.colGroupHtml="",this.view=d,this.isRTL=this.view.opt("isRTL"),this.givenColWidths=this.colWidths=this.view.colSpecs.map(function(h){return h.width})}return a.prototype.renderSkeleton=function(){var d=this.view.calendar.theme;this.headScroller=new E.default({overflowX:"clipped-scroll",overflowY:"hidden"}),this.headScroller.canvas=new n.default,this.headScroller.render(),this.headScroller.canvas.contentEl.html(this.renderHeadHtml()),this.headEl.append(this.headScroller.el),this.bodyScroller=new E.default({overflowY:"clipped-scroll"}),this.bodyScroller.canvas=new n.default,this.bodyScroller.render(),this.bodyScroller.canvas.contentEl.html('<div class="fc-rows"> <table class="'+d.getClass("tableGrid")+'">'+this.colGroupHtml+"<tbody/> </table> </div>"),this.tbodyEl=this.bodyScroller.canvas.contentEl.find("tbody"),this.el.append(this.bodyScroller.el),this.scrollJoiner=new i.default("horizontal",[this.headScroller,this.bodyScroller]),this.headTable=this.headEl.find("table"),this.headColEls=this.headEl.find("col"),this.headCellEls=this.headScroller.canvas.contentEl.find("tr:last-child th"),this.bodyColEls=this.el.find("col"),this.bodyTable=this.el.find("table"),this.colMinWidths=this.computeColMinWidths(),this.applyColWidths(),this.initColResizing()},a.prototype.renderHeadHtml=function(){for(var d=this.view.calendar.theme,h=this.view.colSpecs,v='<table class="'+d.getClass("tableGrid")+'">',C="<colgroup>",k=0,j=h;k<j.length;k++){var G=j[k];G.isMain?C+='<col class="fc-main-col"/>':C+="<col/>"}C+="</colgroup>",this.colGroupHtml=C,v+=C,v+="<tbody>",this.view.superHeaderText&&(v+='<tr class="fc-super"><th class="'+d.getClass("widgetHeader")+'" colspan="'+h.length+'"><div class="fc-cell-content"><span class="fc-cell-text">'+g.htmlEscape(this.view.superHeaderText)+"</span></div></th></tr>"),v+="<tr>";for(var N=0;N<h.length;N++){var G=h[N],T=N===h.length-1;v+='<th class="'+d.getClass("widgetHeader")+'"><div><div class="fc-cell-content">'+(G.isMain?'<span class="fc-expander-space"><span class="fc-icon"></span></span>':"")+'<span class="fc-cell-text">'+g.htmlEscape(G.labelText||"")+"</span></div>"+(T?"":'<div class="fc-col-resizer"></div>')+"</div></th>"}return v+="</tr>",v+="</tbody></table>",v},a.prototype.initColResizing=function(){var d=this;this.headEl.find("th .fc-col-resizer").each(function(h,v){v=w(v),v.on("mousedown",function(C){d.colResizeMousedown(h,C,v)})})},a.prototype.colResizeMousedown=function(d,h,v){var C=this,k=this.colWidths=this.queryColWidths();k.pop(),k.push(null);var j=k[d],G=Math.min(this.colMinWidths[d],c),N=new g.DragListener({dragStart:function(){v.addClass("fc-active")},drag:function(T,A){var U=j+(C.isRTL?-T:T);U=Math.max(U,G),k[d]=U,C.applyColWidths()},dragEnd:function(){v.removeClass("fc-active")}});N.startInteraction(h)},a.prototype.applyColWidths=function(){for(var d,h,v,C=this.colMinWidths,k=this.colWidths,j=!0,G=!1,N=0,T=0,A=k;T<A.length;T++)v=A[T],typeof v=="number"?N+=v:(j=!1,v&&(G=!0));var U=G&&!this.view.isHGrouping?"auto":"",X=k.map(function(re){return re??U}),Q=0;for(h=0;h<X.length;h++)d=X[h],Q+=typeof d=="number"?d:C[h];for(h=0;h<X.length;h++)d=X[h],this.headColEls.eq(h).css("width",d),this.bodyColEls.eq(h).css("width",d);this.headScroller.canvas.setMinWidth(Q),this.bodyScroller.canvas.setMinWidth(Q),this.tableMinWidth=Q,this.tableWidth=j?N:void 0},a.prototype.computeColMinWidths=function(){var d=this;return this.givenColWidths.map(function(h,v){return typeof h=="number"?h:parseInt(d.headColEls.eq(v).css("min-width"),10)||c})},a.prototype.queryColWidths=function(){return this.headCellEls.map(function(d,h){return w(h).outerWidth()}).get()},a.prototype.updateSize=function(){this.headScroller.updateSize(),this.bodyScroller.updateSize(),this.scrollJoiner.update(),this.updateCellFollower()},a.prototype.headHeight=function(){var d=this.headScroller.canvas.contentEl.find("table");return d.height.apply(d,arguments)},a.prototype.updateCellFollower=function(){this.cellFollower&&this.cellFollower.clearSprites(),this.cellFollower=new u.default(this.bodyScroller,!0),this.cellFollower.isHFollowing=!1,this.cellFollower.isVFollowing=!0;for(var d=[],h=0,v=this.view.rowHierarchy.getNodes();h<v.length;h++){var C=v[h];if(C instanceof o.default&&C.groupTd){var k=C.groupTd.find(".fc-cell-content");k.length&&d.push(k[0])}}this.cellFollower.setSpriteEls(w(d)),this.cellFollower.update()},a}();t.default=l},function(m,t){Object.defineProperty(t,"__esModule",{value:!0});function p(w){return w.find("> td").filter(function(g,E){return E.rowSpan<=1})}t.getOwnCells=p},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(17),E=function(n){w.__extends(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.renderFgRanges=function(u){},i.prototype.unrenderFgRanges=function(){},i}(g.default);t.default=E},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=p(33),i=function(u){w.__extends(o,u);function o(c,l){var a=u.call(this,c)||this;return a.resource=l,a.eventRenderer.designatedResource=a.resource,a}return o.prototype.renderSkeleton=function(){u.prototype.renderSkeleton.call(this),this.updateExpandingEnabled(),this.eventsPayload&&n.default.prototype.executeEventRender.call(this,this.eventsPayload),this.businessHourGenerator&&n.default.prototype.renderBusinessHours.call(this,this.businessHourGenerator),this.view.publiclyTrigger("resourceRender",{context:this.resource,args:[this.resource,this.getTr("spreadsheet").find("> td"),this.getTr("event").find("> td"),this.view]})},o.prototype.removeElement=function(){u.prototype.removeElement.call(this),this.eventsPayload&&n.default.prototype.executeEventUnrender.call(this,this.eventsPayload),this.businessHourGenerator&&n.default.prototype.unrenderBusinessHours.call(this,this.businessHourGenerator)},o.prototype.renderEventSkeleton=function(c){u.prototype.renderEventSkeleton.call(this,c),c.attr("data-resource-id",this.resource.id)},o.prototype.executeEventRender=function(c){this.eventsPayload=c,this.get("isInDom")&&u.prototype.executeEventRender.call(this,this.eventsPayload)},o.prototype.executeEventUnrender=function(){u.prototype.executeEventUnrender.call(this),this.eventsPayload=null},o.prototype.renderBusinessHours=function(c){this.businessHourGenerator=c,this.get("isInDom")&&u.prototype.renderBusinessHours.call(this,this.businessHourGenerator)},o.prototype.unrenderBusinessHours=function(){u.prototype.unrenderBusinessHours.call(this),this.businessHourGenerator=null},o.prototype.renderSpreadsheetSkeleton=function(c){for(var l=this.view.calendar.theme,a=this.resource,d=0,h=this.view.colSpecs;d<h.length;d++){var v=h[d];if(!v.group){var C=v.field?a[v.field]||null:a,k=typeof v.text=="function"?v.text(a,C):C,j=g('<div class="fc-cell-content">'+(v.isMain?this.renderGutterHtml():"")+'<span class="fc-cell-text">'+(k?E.htmlEscape(k):"&nbsp;")+"</span></div>");typeof v.render=="function"&&(j=v.render(a,j,C)||j);var G=g('<td class="'+l.getClass("widgetContent")+'"/>').append(j);v.isMain&&G.wrapInner("<div/>"),c.append(G)}}c.attr("data-resource-id",a.id)},o.prototype.renderGutterHtml=function(){for(var c="",l=this.depth,a=0;a<l;a++)c+='<span class="fc-icon"/>';return c+='<span class="fc-expander-space"><span class="fc-icon"></span></span>',c},o}(n.default);t.default=i},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(32),n=function(i){w.__extends(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.renderSkeleton=function(){i.prototype.renderSkeleton.call(this),this.updateExpandingEnabled()},u.prototype.renderSpreadsheetSkeleton=function(o){var c=this.renderGroupContentEl();return c.prepend('<span class="fc-expander"><span class="fc-icon"></span></span>'),g('<td class="fc-divider" />').attr("colspan",this.view.colSpecs.length).append(g("<div/>").append(c)).appendTo(o)},u.prototype.renderEventSkeleton=function(o){return o.append('<td class="fc-divider"> <div/> </td>')},u}(E.default);t.default=n,n.prototype.hasOwnRow=!0},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=p(0),E=p(19),n=p(49),i=p(6),u={constructed:g.Calendar.prototype.constructed,buildSelectFootprint:g.Calendar.prototype.buildSelectFootprint};g.Calendar.defaults.refetchResourcesOnNavigate=!1,g.Calendar.defaults.filterResourcesWithEvents=!1,g.Calendar.prototype.resourceManager=null,g.Calendar.prototype.constructed=function(){u.constructed.apply(this,arguments),this.resourceManager=new n.default(this)},g.Calendar.prototype.instantiateView=function(o){var c=this.viewSpecManager.getViewSpec(o),l=c.class;return this.opt("resources")&&c.options.resources!==!1&&(c.queryResourceClass?l=c.queryResourceClass(c)||l:c.resourceClass&&(l=c.resourceClass)),new l(this,c)},g.Calendar.prototype.getResources=function(){return Array.prototype.slice.call(this.resourceManager.topLevelResources)},g.Calendar.prototype.addResource=function(o,c){var l=this;c===void 0&&(c=!1),this.resourceManager.addResource(o).then(function(a){if(c&&l.view.scrollToResource)return l.view.scrollToResource(a)})},g.Calendar.prototype.removeResource=function(o){return this.resourceManager.removeResource(o)},g.Calendar.prototype.refetchResources=function(){this.resourceManager.clear(),this.view.flash("initialResources")},g.Calendar.prototype.rerenderResources=function(){this.resourceManager.resetCurrentResources()},g.Calendar.prototype.buildSelectFootprint=function(o,c,l){var a=u.buildSelectFootprint.apply(this,arguments);return l?new i.default(a.unzonedRange,a.isAllDay,l):a},g.Calendar.prototype.getResourceById=function(o){return this.resourceManager.getResourceById(o)},g.Calendar.prototype.getEventResourceId=function(o){return this.getEventResourceIds(o)[0]},g.Calendar.prototype.getEventResourceIds=function(o){var c=this.eventManager.getEventDefByUid(o._id);return c?c.getResourceIds():[]},g.Calendar.prototype.setEventResourceId=function(o,c){this.setEventResourceIds(o,c?[c]:[])},g.Calendar.prototype.setEventResourceIds=function(o,c){var l=this.eventManager.getEventDefByUid(o._id);l&&(l.resourceIds=c.map(function(a){return E.default.normalizeId(a)}))},g.Calendar.prototype.getResourceEvents=function(o){var c=this,l=typeof o=="object"?o:this.getResourceById(o);return l?this.clientEvents(function(a){return w.inArray(l.id,c.getEventResourceIds(a))!==-1}):[]},g.Calendar.prototype.getEventResource=function(o){return this.getEventResources(o)[0]},g.Calendar.prototype.getEventResources=function(o){var c=typeof o=="object"?o:this.clientEvents(o)[0],l=[];if(c)for(var a=0,d=this.getEventResourceIds(c);a<d.length;a++){var h=d[a],v=this.getResourceById(h);v&&l.push(v)}return l}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(1),g=p(2),E=p(0),n=function(i){w.__extends(u,i);function u(o){var c=i.call(this)||this;return c.fetchId=0,c.calendar=o,c.initializeCache(),c}return u.prototype.getResources=function(o,c){var l=!o&&!this.currentStart||o&&this.currentStart&&o.isSame(this.currentStart)&&c.isSame(this.currentEnd);return!this.fetching||!l?this.fetchResources(o,c):this.fetching},u.prototype.fetchResources=function(o,c){var l=this,a=this.fetchId+=1;return this.fetching=E.Promise.construct(function(d,h){l.fetchResourceInputs(function(v){return a===l.fetchId?(l.setResources(v),d(l.topLevelResources)):h()},o,c)})},u.prototype.fetchResourceInputs=function(o,c,l){var a=this,d=this.calendar,h=d.opt("resources"),v=d.opt("timezone");switch(g.type(h)==="string"&&(h={url:h}),g.type(h)){case"function":this.calendar.pushLoading(),h(function(k){a.calendar.popLoading(),o(k)},c,l,d.opt("timezone"));break;case"object":d.pushLoading();var C={};c&&l&&(C[d.opt("startParam")]=c.format(),C[d.opt("endParam")]=l.format(),v&&v!=="local"&&(C[d.opt("timezoneParam")]=v)),g.ajax(g.extend({data:C},u.ajaxDefaults,h)).then(function(k){d.popLoading(),o(k)});break;case"array":o(h);break;default:o([]);break}},u.prototype.getResourceById=function(o){return this.resourcesById[o]},u.prototype.getFlatResources=function(){var o=[];for(var c in this.resourcesById)o.push(this.resourcesById[c]);return o},u.prototype.initializeCache=function(){this.topLevelResources=[],this.resourcesById={}},u.prototype.setResources=function(o){var c=this,l,a=!!this.topLevelResources;this.initializeCache();for(var d=o.map(function(G){return c.buildResource(G)}),h=[],v=0,C=d;v<C.length;v++)l=C[v],this.addResourceToIndex(l)&&h.push(l);for(var k=0,j=h;k<j.length;k++)l=j[k],this.addResourceToTree(l);a?this.trigger("reset",this.topLevelResources):this.trigger("set",this.topLevelResources),this.calendar.publiclyTrigger("resourcesSet",[this.topLevelResources])},u.prototype.resetCurrentResources=function(){this.topLevelResources&&this.trigger("reset",this.topLevelResources)},u.prototype.clear=function(){this.topLevelResources=null,this.fetching=null},u.prototype.addResource=function(o){var c=this;return this.fetching?this.fetching.then(function(){var l=c.buildResource(o);return c.addResourceToIndex(l)?(c.addResourceToTree(l),c.trigger("add",l,c.topLevelResources),l):!1}):E.Promise.reject()},u.prototype.addResourceToIndex=function(o){if(this.resourcesById[o.id])return!1;this.resourcesById[o.id]=o;for(var c=0,l=o.children;c<l.length;c++){var a=l[c];this.addResourceToIndex(a)}return!0},u.prototype.addResourceToTree=function(o){if(!o.parent){var c=void 0,l=String(o.parentId!=null?o.parentId:"");if(l){var a=this.resourcesById[l];if(a)o.parent=a,c=a.children;else return!1}else c=this.topLevelResources;c.push(o)}return!0},u.prototype.removeResource=function(o){var c=this,l=typeof o=="object"?o.id:o;return this.fetching?this.fetching.then(function(){var a=c.removeResourceFromIndex(l);return a&&(c.removeResourceFromTree(a),c.trigger("remove",a,c.topLevelResources)),a}):E.Promise.reject()},u.prototype.removeResourceFromIndex=function(o){var c=this.resourcesById[o];if(c){delete this.resourcesById[o];for(var l=0,a=c.children;l<a.length;l++){var d=a[l];this.removeResourceFromIndex(d.id)}return c}else return!1},u.prototype.removeResourceFromTree=function(o,c){c===void 0&&(c=this.topLevelResources);for(var l=0;l<c.length;l++){var a=c[l];if(a===o)return o.parent=null,c.splice(l,1),!0;if(this.removeResourceFromTree(o,a.children))return!0}return!1},u.prototype.buildResource=function(o){var c=this,l=g.extend({},o),a=o.eventClassName;return l.id=String(o.id!=null?o.id:"_fc"+u.resourceGuid++),l.eventClassName=function(){switch(g.type(a)){case"string":return a.split(/\s+/);case"array":return a;default:return[]}}(),o.businessHours&&(l.businessHourGenerator=new E.BusinessHourGenerator(o.businessHours,this.calendar)),l.children=(o.children||[]).map(function(d){var h=c.buildResource(d);return h.parent=l,h}),l},u.resourceGuid=1,u.ajaxDefaults={dataType:"json",cache:!1},u}(E.Class);t.default=n,E.EmitterMixin.mixInto(n)},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=p(0),E=p(19),n=p(6),i={getPeerEventInstances:g.Constraints.prototype.getPeerEventInstances,isFootprintAllowed:g.Constraints.prototype.isFootprintAllowed,buildCurrentBusinessFootprints:g.Constraints.prototype.buildCurrentBusinessFootprints,footprintContainsFootprint:g.Constraints.prototype.footprintContainsFootprint,footprintsIntersect:g.Constraints.prototype.footprintsIntersect,eventRangeToEventFootprints:g.Constraints.prototype.eventRangeToEventFootprints,parseFootprints:g.Constraints.prototype.parseFootprints};g.Constraints.prototype.getPeerEventInstances=function(u){var o=u.getResourceIds(),c=i.getPeerEventInstances.apply(this,arguments);return o.length?c.filter(function(l){if(!l.def.resourceIds.length)return!0;for(var a=0,d=o;a<d.length;a++){var h=d[a];if(l.def.hasResourceId(h))return!0}return!1}):c},g.Constraints.prototype.isFootprintAllowed=function(u,o,c,l,a){if(typeof c=="object"){var d=E.default.extractIds(c,this);if(d.length&&(!(u instanceof n.default)||w.inArray(u.resourceId,d)===-1))return!1}return i.isFootprintAllowed.apply(this,arguments)},g.Constraints.prototype.buildCurrentBusinessFootprints=function(u){for(var o=this._calendar.resourceManager.getFlatResources(),c=!1,l=0,a=o;l<a.length;l++){var d=a[l];d.businessHourGenerator&&(c=!0)}if(c){for(var h=this._calendar.view,v=h.get("businessHourGenerator"),C=h.dateProfile.activeUnzonedRange,k=[],j=0,G=o;j<G.length;j++){var d=G[j],N=d.businessHourGenerator||v,T=N.buildEventInstanceGroup(u,C);if(T)for(var A=0,U=T.getAllEventRanges();A<U.length;A++){var X=U[A];k.push(new n.default(X.unzonedRange,u,d.id))}}return k}else return i.buildCurrentBusinessFootprints.apply(this,arguments)},g.Constraints.prototype.footprintContainsFootprint=function(u,o){return u instanceof n.default&&(!(o instanceof n.default)||o.resourceId!==u.resourceId)?!1:i.footprintContainsFootprint.apply(this,arguments)},g.Constraints.prototype.footprintsIntersect=function(u,o){return u instanceof n.default&&o instanceof n.default&&u.resourceId!==o.resourceId?!1:i.footprintsIntersect.apply(this,arguments)},g.Constraints.prototype.eventRangeToEventFootprints=function(u){var o=u.eventDef,c=o.getResourceIds();return c.length?c.map(function(l){return new g.EventFootprint(new n.default(u.unzonedRange,o.isAllDay(),l),o,u.eventInstance)}):i.eventRangeToEventFootprints.apply(this,arguments)},g.Constraints.prototype.parseFootprints=function(u){var o=i.parseFootprints.apply(this,arguments),c=u.resourceIds||[];if(u.resourceId&&(c=[u.resourceId].concat(c)),c.length){for(var l=[],a=0,d=c;a<d.length;a++)for(var h=d[a],v=0,C=o;v<C.length;v++){var k=C[v];l.push(new n.default(k.unzonedRange,k.isAllDay,h))}return l}else return o}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(52),E={setElement:w.View.prototype.setElement,removeElement:w.View.prototype.removeElement,triggerViewRender:w.View.prototype.triggerViewRender};w.View.prototype.canHandleSpecificResources=!1,w.View.prototype.setElement=function(){E.setElement.apply(this,arguments),this.watchResources()},w.View.prototype.removeElement=function(){this.unwatchResources(),E.removeElement.apply(this,arguments)},w.View.prototype.triggerViewRender=function(){g.processLicenseKey(this.opt("schedulerLicenseKey"),this.el),E.triggerViewRender.apply(this,arguments)},w.View.prototype.watchResources=function(){var i=this,u=[],o=["initialResources"];this.opt("refetchResourcesOnNavigate")&&u.push("dateProfile"),this.opt("filterResourcesWithEvents")&&o.push("currentEvents"),this.watch("initialResources",u,function(c){return i.getInitialResources(c.dateProfile)}),this.watch("bindingResources",o,function(c){i.bindResourceChanges(c.currentEvents),i.setResources(c.initialResources,c.currentEvents)},function(){i.unbindResourceChanges(),i.unsetResources()})},w.View.prototype.unwatchResources=function(){this.unwatch("initialResources"),this.unwatch("bindingResources")},w.View.prototype.getInitialResources=function(i){var u=this.calendar;return i?u.resourceManager.getResources(u.msToMoment(i.activeUnzonedRange.startMs,i.isRangeAllDay),u.msToMoment(i.activeUnzonedRange.endMs,i.isRangeAllDay)):u.resourceManager.getResources()},w.View.prototype.bindResourceChanges=function(i){var u=this;this.listenTo(this.calendar.resourceManager,{set:function(o){u.setResources(o,i)},unset:function(){u.unsetResources()},reset:function(o){u.resetResources(o,i)},add:function(o,c){u.addResource(o,c,i)},remove:function(o,c){u.removeResource(o,c,i)}})},w.View.prototype.unbindResourceChanges=function(){this.stopListeningTo(this.calendar.resourceManager)},w.View.watch("displayingEvents",["displayingDates","hasEvents","currentResources"],function(i){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),w.View.prototype.setResources=function(i,u){u&&(i=this.filterResourcesWithEvents(i,u)),this.set("currentResources",i),this.set("hasResources",!0)},w.View.prototype.unsetResources=function(){this.unset("currentResources"),this.unset("hasResources")},w.View.prototype.resetResources=function(i,u){this.startBatchRender(),this.unsetResources(),this.setResources(i,u),this.stopBatchRender()},w.View.prototype.addResource=function(i,u,o){if(!this.canHandleSpecificResources){this.resetResources(u,o);return}if(o){var c=this.filterResourcesWithEvents([i],o);c.length||(i=null)}i&&(this.set("currentResources",u),this.handleResourceAdd(i))},w.View.prototype.removeResource=function(i,u,o){if(!this.canHandleSpecificResources){this.resetResources(u,o);return}this.set("currentResources",u),this.handleResourceRemove(i)},w.View.prototype.handleResourceAdd=function(i){},w.View.prototype.handleResourceRemove=function(i){},w.View.prototype.filterResourcesWithEvents=function(i,u){for(var o=this.eventsPayloadToRanges(u),c={},l=0,a=o;l<a.length;l++)for(var d=a[l],h=0,v=d.eventDef.getResourceIds();h<v.length;h++){var C=v[h];c[C]=!0}return n(i,c)},w.View.prototype.eventsPayloadToRanges=function(i){var u=this._getDateProfile(),o=[];for(var c in i){var l=i[c],a=l.sliceRenderRanges(u.activeUnzonedRange);o.push.apply(o,a||[])}return o};function n(i,u){for(var o=[],c=0,l=i;c<l.length;c++){var a=l[c];if(a.children.length){var d=n(a.children,u);if(d.length||u[a.id]){var h=Object.create(a);h.children=d,o.push(h)}}else u[a.id]&&o.push(a)}return o}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=p(15),E=p(0),n="2018-01-28",i={years:1,weeks:1},u="http://fullcalendar.io/scheduler/license/",o=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"];function c(v,C){if(!a(window.location.href)&&!l(v)&&!h(C))return d('Please use a valid license key. <a href="'+u+'">More Info</a>',C)}t.processLicenseKey=c;function l(v){if(w.inArray(v,o)!==-1)return!0;var C=(v||"").match(/^(\d+)\-fcs\-(\d+)$/);if(C&&C[1].length===10){var k=g.utc(parseInt(C[2],10)*1e3),j=g.utc(E.mockSchedulerReleaseDate||n);if(j.isValid()){var G=j.clone().subtract(i);if(k.isAfter(G))return!0}}return!1}t.isValidKey=l;function a(v){return/\w+\:\/\/fullcalendar\.io\/|\/demos\/[\w-]+\.html$/.test(v)}t.isImmuneUrl=a;function d(v,C){return C.append(w('<div class="fc-license-message" />').html(v))}t.renderingWarningInContainer=d;function h(v){return v.find(".fc-license-message").length>=1}t.detectWarningInContainer=h},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(6),E={eventRangeToEventFootprints:w.DateComponent.prototype.eventRangeToEventFootprints};w.DateComponent.prototype.isResourceFootprintsEnabled=!1,w.DateComponent.prototype.eventRangeToEventFootprints=function(n){if(this.isResourceFootprintsEnabled){var i=n.eventDef,u=i.getResourceIds();return u.length?u.map(function(o){return new w.EventFootprint(new g.default(n.unzonedRange,i.isAllDay(),o),i,n.eventInstance)}):i.hasBgRendering()?E.eventRangeToEventFootprints.apply(this,arguments):[]}else return E.eventRangeToEventFootprints.apply(this,arguments)},w.DateComponent.prototype.renderResources=function(n){this.callChildren("renderResources",arguments)},w.DateComponent.prototype.unrenderResources=function(){this.callChildren("unrenderResources",arguments)},w.DateComponent.prototype.renderResource=function(n){this.callChildren("renderResource",arguments)},w.DateComponent.prototype.unrenderResource=function(n){this.callChildren("unrenderResource",arguments)}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g={isEventDefDraggable:w.InteractiveDateComponent.prototype.isEventDefDraggable};w.InteractiveDateComponent.prototype.allowCrossResource=!0,w.InteractiveDateComponent.prototype.isEventDefDraggable=function(E){return this.isEventDefResourceEditable(E)||g.isEventDefDraggable.call(this,E)},w.InteractiveDateComponent.prototype.isEventDefResourceEditable=function(E){var n=E.resourceEditable;return n==null&&(n=(E.source||{}).resourceEditable,n==null&&(n=this.opt("eventResourceEditable"),n==null&&(n=this.isEventDefGenerallyEditable(E)))),n}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g={getFallbackStylingObjs:w.EventRenderer.prototype.getFallbackStylingObjs};w.EventRenderer.prototype.designatedResource=null,w.EventRenderer.prototype.currentResource=null,w.EventRenderer.prototype.beforeFgSegHtml=function(n){var i=n.footprint.componentFootprint.resourceId;this.designatedResource?this.currentResource=this.designatedResource:i?this.currentResource=E(this,i):this.currentResource=null},w.EventRenderer.prototype.getFallbackStylingObjs=function(n){var i=g.getFallbackStylingObjs.apply(this,arguments);if(this.currentResource)i.unshift(this.currentResource);else{for(var u=[],o=0,c=n.getResourceIds();o<c.length;o++){var l=c[o],a=E(this,l);a&&u.push(a)}i=u.concat(i)}return i};function E(n,i){return n.view.calendar.resourceManager.getResourceById(i)}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(6),E={computeSelectionFootprint:w.DateSelecting.prototype.computeSelectionFootprint};w.DateSelecting.prototype.computeSelectionFootprint=function(n,i){if(n.resourceId&&i.resourceId&&n.resourceId!==i.resourceId&&!this.component.allowCrossResource)return null;var u=E.computeSelectionFootprint.apply(this,arguments);return n.resourceId&&(u=new g.default(u.unzonedRange,u.isAllDay,n.resourceId)),u}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g={computeEventDropMutation:w.EventDragging.prototype.computeEventDropMutation};w.EventDragging.prototype.computeEventDropMutation=function(E,n,i){var u=this.component.isEventDefStartEditable(i);if(E.resourceId&&n.resourceId&&E.resourceId!==n.resourceId&&this.component.isEventDefResourceEditable(i)){var o=new w.EventDefMutation;return o.oldResourceId=E.resourceId,o.newResourceId=n.resourceId,u&&o.setDateMutation(this.computeEventDateMutation(E,n)),o}else if(u)return g.computeEventDropMutation.apply(this,arguments)}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g={computeEventStartResizeMutation:w.EventResizing.prototype.computeEventStartResizeMutation,computeEventEndResizeMutation:w.EventResizing.prototype.computeEventEndResizeMutation};w.EventResizing.prototype.computeEventStartResizeMutation=function(E,n,i){return E.resourceId&&n.resourceId&&E.resourceId!==n.resourceId&&!this.component.allowCrossResource?null:g.computeEventStartResizeMutation.apply(this,arguments)},w.EventResizing.prototype.computeEventEndResizeMutation=function(E,n,i){return E.resourceId&&n.resourceId&&E.resourceId!==n.resourceId&&!this.component.allowCrossResource?null:g.computeEventEndResizeMutation.apply(this,arguments)}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g={computeExternalDrop:w.ExternalDropping.prototype.computeExternalDrop};w.ExternalDropping.prototype.computeExternalDrop=function(E,n){var i=g.computeExternalDrop.apply(this,arguments);return E.resourceId&&i.addResourceId(E.resourceId),i}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0);w.EventSource.prototype.standardPropMap.resourceEditable=!0},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(2),g=p(0),E=p(19),n={applyMiscProps:g.EventDef.prototype.applyMiscProps,clone:g.EventDef.prototype.clone,toLegacy:g.EventDef.prototype.toLegacy};g.EventDef.defineStandardProps({resourceEditable:!0}),g.EventDef.prototype.resourceIds=null,g.EventDef.prototype.resourceEditable=null,g.EventDef.prototype.applyMiscProps=function(i){i=w.extend({},i),this.resourceIds=E.default.extractIds(i,this.source.calendar),delete i.resourceId,delete i.resourceIds,n.applyMiscProps.apply(this,arguments)},g.EventDef.prototype.hasResourceId=function(i){return w.inArray(i,this.resourceIds)!==-1},g.EventDef.prototype.removeResourceId=function(i){g.removeExact(this.resourceIds,i)},g.EventDef.prototype.addResourceId=function(i){this.hasResourceId(i)||this.resourceIds.push(i)},g.EventDef.prototype.getResourceIds=function(){return this.resourceIds?this.resourceIds.slice():[]},g.EventDef.prototype.clone=function(){var i=n.clone.apply(this,arguments);return i.resourceIds=this.getResourceIds(),i},g.EventDef.prototype.toLegacy=function(){var i=n.toLegacy.apply(this,arguments),u=this.getResourceIds();return i.resourceId=u.length===1?u[0]:null,i.resourceIds=u.length>1?u:null,this.resourceEditable!=null&&(i.resourceEditable=this.resourceEditable),i}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=w.EventDefMutation.prototype.mutateSingle;w.EventDefMutation.prototype.oldResourceId=null,w.EventDefMutation.prototype.newResourceId=null,w.EventDefMutation.prototype.mutateSingle=function(E){var n=g.apply(this,arguments),i=null;return this.oldResourceId&&E.hasResourceId(this.oldResourceId)&&(i=E.getResourceIds(),E.removeResourceId(this.oldResourceId),E.addResourceId(this.newResourceId)),function(){n(),i&&(E.resourceIds=i)}}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(14);w.defineView("timeline",{class:g.default,defaults:{eventResizableFromStart:!0}}),w.defineView("timelineDay",{type:"timeline",duration:{days:1}}),w.defineView("timelineWeek",{type:"timeline",duration:{weeks:1}}),w.defineView("timelineMonth",{type:"timeline",duration:{months:1}}),w.defineView("timelineYear",{type:"timeline",duration:{years:1}})},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(30);w.getViewConfig("timeline").resourceClass=g.default,w.Calendar.defaults.resourcesInitiallyExpanded=!0},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(22),E=p(23);w.getViewConfig("basic").queryResourceClass=function(n){var i=n.options.groupByResource||n.options.groupByDateAndResource,u=!1;if(i!=null?u=i:n.duration&&(u=n.duration.as("days")===1),u)return g.default},w.getViewConfig("month").queryResourceClass=function(n){if(n.options.groupByResource||n.options.groupByDateAndResource)return E.default}},function(m,t,p){Object.defineProperty(t,"__esModule",{value:!0});var w=p(0),g=p(20);w.getViewConfig("agenda").queryResourceClass=function(E){var n=E.options.groupByResource||E.options.groupByDateAndResource,i=!1;if(n!=null?i=n:E.duration&&(i=E.duration.as("days")===1),i)return g.default}},function(m,t){Object.defineProperty(t,"__esModule",{value:!0})},function(m,t){Object.defineProperty(t,"__esModule",{value:!0})}])})})(Ld);var Nd={exports:{}};(function(H,M){(function(b,P){H.exports=P(Ba(),es())})(typeof self<"u"?self:zi,function(b,P){return function(B){function m(p){if(t[p])return t[p].exports;var w=t[p]={i:p,l:!1,exports:{}};return B[p].call(w.exports,w,w.exports,m),w.l=!0,w.exports}var t={};return m.m=B,m.c=t,m.d=function(p,w,g){m.o(p,w)||Object.defineProperty(p,w,{configurable:!1,enumerable:!0,get:g})},m.n=function(p){var w=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(w,"a",w),w},m.o=function(p,w){return Object.prototype.hasOwnProperty.call(p,w)},m.p="",m(m.s=169)}({0:function(B,m){B.exports=b},1:function(B,m){B.exports=P},169:function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0}),t(170);var p=t(1);p.datepickerLocale("nl","nl",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),p.locale("nl",{buttonText:{month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"})},170:function(B,m,t){(function(p,w){w(t(0))})(0,function(p){var w="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),g="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),E=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],n=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return p.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(i,u){return i?/-MMM-/.test(u)?g[i.month()]:w[i.month()]:w},monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:E,longMonthsParse:E,shortMonthsParse:E,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(i){return i+(i===1||i===8||i>=20?"ste":"de")},week:{dow:1,doy:4}})})}})})})(Nd);var Fd={exports:{}};(function(H,M){(function(b,P){H.exports=P(Ba(),es())})(typeof self<"u"?self:zi,function(b,P){return function(B){function m(p){if(t[p])return t[p].exports;var w=t[p]={i:p,l:!1,exports:{}};return B[p].call(w.exports,w,w.exports,m),w.l=!0,w.exports}var t={};return m.m=B,m.c=t,m.d=function(p,w,g){m.o(p,w)||Object.defineProperty(p,w,{configurable:!1,enumerable:!0,get:g})},m.n=function(p){var w=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(w,"a",w),w},m.o=function(p,w){return Object.prototype.hasOwnProperty.call(p,w)},m.p="",m(m.s=103)}({0:function(B,m){B.exports=b},1:function(B,m){B.exports=P},103:function(B,m,t){Object.defineProperty(m,"__esModule",{value:!0}),t(104);var p=t(1);p.datepickerLocale("en-gb","en-GB",{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),p.locale("en-gb")},104:function(B,m,t){(function(p,w){w(t(0))})(0,function(p){return p.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(w){var g=w%10;return w+(~~(w%100/10)==1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th")},week:{dow:1,doy:4}})})}})})})(Fd);var Hd={exports:{}};(function(H,M){(function(b){H.exports=b(xi,Ba())})(function(b,P){if(!P)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");function B(m,t){function p(){return P.tz!==void 0&&t.timeZone!==void 0&&t.timeZone!==null&&t.timeZone!==""}function w(ne){var _e=ne==null?P():P.isDate(ne)||P.isMoment(ne)?P(ne):p()?P.tz(ne,ft,t.useStrict,t.timeZone):P(ne,ft,t.useStrict);return p()&&_e.tz(t.timeZone),_e}function g(ne){if(typeof ne!="string"||1<ne.length)throw new TypeError("isEnabled expects a single character string parameter");switch(ne){case"y":return et.indexOf("Y")!==-1;case"M":return et.indexOf("M")!==-1;case"d":return et.toLowerCase().indexOf("d")!==-1;case"h":case"H":return et.toLowerCase().indexOf("h")!==-1;case"m":return et.indexOf("m")!==-1;case"s":return et.indexOf("s")!==-1;default:return!1}}function E(){return g("h")||g("m")||g("s")}function n(){return g("y")||g("M")||g("d")}function i(){var ne,_e,tt,Dt=b("<div>").addClass("timepicker-hours").append(b("<table>").addClass("table-condensed")),vt=b("<div>").addClass("timepicker-minutes").append(b("<table>").addClass("table-condensed")),Rt=b("<div>").addClass("timepicker-seconds").append(b("<table>").addClass("table-condensed")),At=[(ne=b("<tr>"),_e=b("<tr>"),tt=b("<tr>"),g("h")&&(ne.append(b("<td>").append(b("<a>").attr({href:"#",tabindex:"-1",title:t.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(b("<i>").addClass(t.icons.up)))),_e.append(b("<td>").append(b("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:t.tooltips.pickHour}).attr("data-action","showHours"))),tt.append(b("<td>").append(b("<a>").attr({href:"#",tabindex:"-1",title:t.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(b("<i>").addClass(t.icons.down))))),g("m")&&(g("h")&&(ne.append(b("<td>").addClass("separator")),_e.append(b("<td>").addClass("separator").html(":")),tt.append(b("<td>").addClass("separator"))),ne.append(b("<td>").append(b("<a>").attr({href:"#",tabindex:"-1",title:t.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(b("<i>").addClass(t.icons.up)))),_e.append(b("<td>").append(b("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:t.tooltips.pickMinute}).attr("data-action","showMinutes"))),tt.append(b("<td>").append(b("<a>").attr({href:"#",tabindex:"-1",title:t.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(b("<i>").addClass(t.icons.down))))),g("s")&&(g("m")&&(ne.append(b("<td>").addClass("separator")),_e.append(b("<td>").addClass("separator").html(":")),tt.append(b("<td>").addClass("separator"))),ne.append(b("<td>").append(b("<a>").attr({href:"#",tabindex:"-1",title:t.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(b("<i>").addClass(t.icons.up)))),_e.append(b("<td>").append(b("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:t.tooltips.pickSecond}).attr("data-action","showSeconds"))),tt.append(b("<td>").append(b("<a>").attr({href:"#",tabindex:"-1",title:t.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(b("<i>").addClass(t.icons.down))))),Fe||(ne.append(b("<td>").addClass("separator")),_e.append(b("<td>").append(b("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:t.tooltips.togglePeriod}))),tt.append(b("<td>").addClass("separator"))),b("<div>").addClass("timepicker-picker").append(b("<table>").addClass("table-condensed").append([ne,_e,tt])))];return g("h")&&At.push(Dt),g("m")&&At.push(vt),g("s")&&At.push(Rt),At}function u(){var ne,_e,tt,Dt=b("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),vt=b("<div>").addClass("datepicker").append((_e=b("<thead>").append(b("<tr>").append(b("<th>").addClass("prev").attr("data-action","previous").append(b("<i>").addClass(t.icons.previous))).append(b("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",t.calendarWeeks?"6":"5")).append(b("<th>").addClass("next").attr("data-action","next").append(b("<i>").addClass(t.icons.next)))),tt=b("<tbody>").append(b("<tr>").append(b("<td>").attr("colspan",t.calendarWeeks?"8":"7"))),[b("<div>").addClass("datepicker-days").append(b("<table>").addClass("table-condensed").append(_e).append(b("<tbody>"))),b("<div>").addClass("datepicker-months").append(b("<table>").addClass("table-condensed").append(_e.clone()).append(tt.clone())),b("<div>").addClass("datepicker-years").append(b("<table>").addClass("table-condensed").append(_e.clone()).append(tt.clone())),b("<div>").addClass("datepicker-decades").append(b("<table>").addClass("table-condensed").append(_e.clone()).append(tt.clone()))])),Rt=b("<div>").addClass("timepicker").append(i()),At=b("<ul>").addClass("list-unstyled"),dt=b("<li>").addClass("picker-switch"+(t.collapse?" accordion-toggle":"")).append((ne=[],t.showTodayButton&&ne.push(b("<td>").append(b("<a>").attr({"data-action":"today",title:t.tooltips.today}).append(b("<i>").addClass(t.icons.today)))),!t.sideBySide&&n()&&E()&&ne.push(b("<td>").append(b("<a>").attr({"data-action":"togglePicker",title:t.tooltips.selectTime}).append(b("<i>").addClass(t.icons.time)))),t.showClear&&ne.push(b("<td>").append(b("<a>").attr({"data-action":"clear",title:t.tooltips.clear}).append(b("<i>").addClass(t.icons.clear)))),t.showClose&&ne.push(b("<td>").append(b("<a>").attr({"data-action":"close",title:t.tooltips.close}).append(b("<i>").addClass(t.icons.close)))),b("<table>").addClass("table-condensed").append(b("<tbody>").append(b("<tr>").append(ne)))));return t.inline&&Dt.removeClass("dropdown-menu"),Fe&&Dt.addClass("usetwentyfour"),g("s")&&!Fe&&Dt.addClass("wider"),t.sideBySide&&n()&&E()?(Dt.addClass("timepicker-sbs"),t.toolbarPlacement==="top"&&Dt.append(dt),Dt.append(b("<div>").addClass("row").append(vt.addClass("col-md-6")).append(Rt.addClass("col-md-6"))),t.toolbarPlacement==="bottom"&&Dt.append(dt),Dt):(t.toolbarPlacement==="top"&&At.append(dt),n()&&At.append(b("<li>").addClass(t.collapse&&E()?"collapse show":"").append(vt)),t.toolbarPlacement==="default"&&At.append(dt),E()&&At.append(b("<li>").addClass(t.collapse&&n()?"collapse":"").append(Rt)),t.toolbarPlacement==="bottom"&&At.append(dt),Dt.append(At))}function o(){var ne,_e=(Mt||m).position(),tt=(Mt||m).offset(),Dt=t.widgetPositioning.vertical,vt=t.widgetPositioning.horizontal;if(t.widgetParent)ne=t.widgetParent.append(at);else if(m.is("input"))ne=m.after(at).parent();else{if(t.inline)return void(ne=m.append(at));(ne=m).children().first().after(at)}if(Dt==="auto"&&(Dt=tt.top+1.5*at.height()>=b(window).height()+b(window).scrollTop()&&at.height()+m.outerHeight()<tt.top?"top":"bottom"),vt==="auto"&&(vt=ne.width()<tt.left+at.outerWidth()/2&&tt.left+at.outerWidth()>b(window).width()?"right":"left"),Dt==="top"?at.addClass("top").removeClass("bottom"):at.addClass("bottom").removeClass("top"),vt==="right"?at.addClass("pull-right"):at.removeClass("pull-right"),ne.css("position")==="static"&&(ne=ne.parents().filter(function(){return b(this).css("position")!=="static"}).first()),ne.length===0)throw new Error("datetimepicker component should be placed within a non-static positioned container");at.css({top:Dt==="top"?"auto":_e.top+m.outerHeight(),bottom:Dt==="top"?ne.outerHeight()-(ne===m?0:_e.top):"auto",left:vt==="left"?ne===m?0:_e.left:"auto",right:vt==="left"?"auto":ne.outerWidth()-m.outerWidth()-(ne===m?0:_e.left)})}function c(ne){ne.type==="dp.change"&&(ne.date&&ne.date.isSame(ne.oldDate)||!ne.date&&!ne.oldDate)||m.trigger(ne)}function l(ne){ne==="y"&&(ne="YYYY"),c({type:"dp.update",change:ne,viewDate:oe.clone()})}function a(ne){at&&(ne&&(ze=Math.max(Ot,Math.min(3,ze+ne))),at.find(".datepicker > div").hide().filter(".datepicker-"+Ne[ze].clsName).show())}function d(ne,_e){var tt,Dt,vt,Rt;if(ne.isValid()&&!(t.disabledDates&&_e==="d"&&(tt=ne,t.disabledDates[tt.format("YYYY-MM-DD")]===!0)||t.enabledDates&&_e==="d"&&(Dt=ne,t.enabledDates[Dt.format("YYYY-MM-DD")]!==!0)||t.minDate&&ne.isBefore(t.minDate,_e)||t.maxDate&&ne.isAfter(t.maxDate,_e)||t.daysOfWeekDisabled&&_e==="d"&&t.daysOfWeekDisabled.indexOf(ne.day())!==-1||t.disabledHours&&(_e==="h"||_e==="m"||_e==="s")&&(vt=ne,t.disabledHours[vt.format("H")]===!0)||t.enabledHours&&(_e==="h"||_e==="m"||_e==="s")&&(Rt=ne,t.enabledHours[Rt.format("H")]!==!0))){if(t.disabledTimeIntervals&&(_e==="h"||_e==="m"||_e==="s")){var At=!1;if(b.each(t.disabledTimeIntervals,function(){if(ne.isBetween(this[0],this[1]))return!(At=!0)}),At)return}return 1}}function h(){var ne,_e,tt,Dt,vt,Rt,At=at.find(".datepicker-days"),dt=At.find("th"),nt=[],te=[];if(n()){for(dt.eq(0).find("span").attr("title",t.tooltips.prevMonth),dt.eq(1).attr("title",t.tooltips.selectMonth),dt.eq(2).find("span").attr("title",t.tooltips.nextMonth),At.find(".disabled").removeClass("disabled"),dt.eq(1).text(oe.format(t.dayViewHeaderFormat)),d(oe.clone().subtract(1,"M"),"M")||dt.eq(0).addClass("disabled"),d(oe.clone().add(1,"M"),"M")||dt.eq(2).addClass("disabled"),ne=oe.clone().startOf("M").startOf("w").startOf("d"),tt=0;tt<42;tt++)ne.weekday()===0&&(_e=b("<tr>"),t.calendarWeeks&&_e.append('<td class="cw">'+ne.week()+"</td>"),nt.push(_e)),te=["day"],ne.isBefore(oe,"M")&&te.push("old"),ne.isAfter(oe,"M")&&te.push("new"),ne.isSame(ie,"d")&&!Et&&te.push("active"),d(ne,"d")||te.push("disabled"),ne.isSame(w(),"d")&&te.push("today"),ne.day()!==0&&ne.day()!==6||te.push("weekend"),c({type:"dp.classify",date:ne,classNames:te}),_e.append('<td data-action="selectDay" data-day="'+ne.format("L")+'" class="'+te.join(" ")+'">'+ne.date()+"</td>"),ne.add(1,"d");At.find("tbody").empty().append(nt),Dt=at.find(".datepicker-months"),vt=Dt.find("th"),Rt=Dt.find("tbody").find("span"),vt.eq(0).find("span").attr("title",t.tooltips.prevYear),vt.eq(1).attr("title",t.tooltips.selectYear),vt.eq(2).find("span").attr("title",t.tooltips.nextYear),Dt.find(".disabled").removeClass("disabled"),d(oe.clone().subtract(1,"y"),"y")||vt.eq(0).addClass("disabled"),vt.eq(1).text(oe.year()),d(oe.clone().add(1,"y"),"y")||vt.eq(2).addClass("disabled"),Rt.removeClass("active"),ie.isSame(oe,"y")&&!Et&&Rt.eq(ie.month()).addClass("active"),Rt.each(function(he){d(oe.clone().month(he),"M")||b(this).addClass("disabled")}),function(){var he=at.find(".datepicker-years"),xe=he.find("th"),He=oe.clone().subtract(5,"y"),Ae=oe.clone().add(6,"y"),Ye="";for(xe.eq(0).find("span").attr("title",t.tooltips.prevDecade),xe.eq(1).attr("title",t.tooltips.selectDecade),xe.eq(2).find("span").attr("title",t.tooltips.nextDecade),he.find(".disabled").removeClass("disabled"),t.minDate&&t.minDate.isAfter(He,"y")&&xe.eq(0).addClass("disabled"),xe.eq(1).text(He.year()+"-"+Ae.year()),t.maxDate&&t.maxDate.isBefore(Ae,"y")&&xe.eq(2).addClass("disabled");!He.isAfter(Ae,"y");)Ye+='<span data-action="selectYear" class="year'+(He.isSame(ie,"y")&&!Et?" active":"")+(d(He,"y")?"":" disabled")+'">'+He.year()+"</span>",He.add(1,"y");he.find("td").html(Ye)}(),function(){var he,xe=at.find(".datepicker-decades"),He=xe.find("th"),Ae=P({y:oe.year()-oe.year()%100-1}),Ye=Ae.clone().add(100,"y"),Xe=Ae.clone(),st=!1,ce=!1,we="";for(He.eq(0).find("span").attr("title",t.tooltips.prevCentury),He.eq(2).find("span").attr("title",t.tooltips.nextCentury),xe.find(".disabled").removeClass("disabled"),(Ae.isSame(P({y:1900}))||t.minDate&&t.minDate.isAfter(Ae,"y"))&&He.eq(0).addClass("disabled"),He.eq(1).text(Ae.year()+"-"+Ye.year()),(Ae.isSame(P({y:2e3}))||t.maxDate&&t.maxDate.isBefore(Ye,"y"))&&He.eq(2).addClass("disabled");!Ae.isAfter(Ye,"y");)he=Ae.year()+12,st=t.minDate&&t.minDate.isAfter(Ae,"y")&&t.minDate.year()<=he,ce=t.maxDate&&t.maxDate.isAfter(Ae,"y")&&t.maxDate.year()<=he,we+='<span data-action="selectDecade" class="decade'+(ie.isAfter(Ae)&&ie.year()<=he?" active":"")+(d(Ae,"y")||st||ce?"":" disabled")+'" data-selection="'+(Ae.year()+6)+'">'+(Ae.year()+1)+" - "+(Ae.year()+12)+"</span>",Ae.add(12,"y");we+="<span></span><span></span><span></span>",xe.find("td").html(we),He.eq(1).text(Xe.year()+1+"-"+Ae.year())}()}}function v(){var ne,_e,tt=at.find(".timepicker span[data-time-component]");Fe||(ne=at.find(".timepicker [data-action=togglePeriod]"),_e=ie.clone().add(12<=ie.hours()?-12:12,"h"),ne.text(ie.format("A")),d(_e,"h")?ne.removeClass("disabled"):ne.addClass("disabled")),tt.filter("[data-time-component=hours]").text(ie.format(Fe?"HH":"hh")),tt.filter("[data-time-component=minutes]").text(ie.format("mm")),tt.filter("[data-time-component=seconds]").text(ie.format("ss")),function(){var Dt=at.find(".timepicker-hours table"),vt=oe.clone().startOf("d"),Rt=[],At=b("<tr>");for(11<oe.hour()&&!Fe&&vt.hour(12);vt.isSame(oe,"d")&&(Fe||oe.hour()<12&&vt.hour()<12||11<oe.hour());)vt.hour()%4==0&&(At=b("<tr>"),Rt.push(At)),At.append('<td data-action="selectHour" class="hour'+(d(vt,"h")?"":" disabled")+'">'+vt.format(Fe?"HH":"hh")+"</td>"),vt.add(1,"h");Dt.empty().append(Rt)}(),function(){for(var Dt=at.find(".timepicker-minutes table"),vt=oe.clone().startOf("h"),Rt=[],At=b("<tr>"),dt=t.stepping===1?5:t.stepping;oe.isSame(vt,"h");)vt.minute()%(4*dt)==0&&(At=b("<tr>"),Rt.push(At)),At.append('<td data-action="selectMinute" class="minute'+(d(vt,"m")?"":" disabled")+'">'+vt.format("mm")+"</td>"),vt.add(dt,"m");Dt.empty().append(Rt)}(),function(){for(var Dt=at.find(".timepicker-seconds table"),vt=oe.clone().startOf("m"),Rt=[],At=b("<tr>");oe.isSame(vt,"m");)vt.second()%20==0&&(At=b("<tr>"),Rt.push(At)),At.append('<td data-action="selectSecond" class="second'+(d(vt,"s")?"":" disabled")+'">'+vt.format("ss")+"</td>"),vt.add(5,"s");Dt.empty().append(Rt)}()}function C(){at&&(h(),v())}function k(ne){var _e=Et?null:ie;if(!ne)return Et=!0,me.val(""),m.data("date",""),c({type:"dp.change",date:!1,oldDate:_e}),void C();if(ne=ne.clone().locale(t.locale),p()&&ne.tz(t.timeZone),t.stepping!==1)for(ne.minutes(Math.round(ne.minutes()/t.stepping)*t.stepping).seconds(0);t.minDate&&ne.isBefore(t.minDate);)ne.add(t.stepping,"minutes");d(ne)?(oe=(ie=ne).clone(),me.val(ie.format(et)),m.data("date",ie.format(et)),Et=!1,C(),c({type:"dp.change",date:ie.clone(),oldDate:_e})):(t.keepInvalid?c({type:"dp.change",date:ne,oldDate:_e}):me.val(Et?"":ie.format(et)),c({type:"dp.error",date:ne,oldDate:_e}))}function j(){var ne=!1;return at&&(at.find(".collapse").each(function(){var _e=b(this).data("collapse");return!_e||!_e.transitioning||!(ne=!0)}),ne||(Mt&&Mt.hasClass("btn")&&Mt.toggleClass("active"),at.hide(),b(window).off("resize",o),at.off("click","[data-action]"),at.off("mousedown",!1),at.remove(),at=!1,c({type:"dp.hide",date:ie.clone()}),me.blur(),oe=ie.clone())),Le}function G(){k(null)}function N(ne){return t.parseInputDate===void 0?(!P.isMoment(ne)||ne instanceof Date)&&(ne=w(ne)):ne=t.parseInputDate(ne),ne}function T(ne){return b(ne.currentTarget).is(".disabled")||Wt[b(ne.currentTarget).data("action")].apply(Le,arguments),!1}function A(){var ne;return me.prop("disabled")||!t.ignoreReadonly&&me.prop("readonly")||at||(me.val()!==void 0&&me.val().trim().length!==0?k(N(me.val().trim())):Et&&t.useCurrent&&(t.inline||me.is("input")&&me.val().trim().length===0)&&(ne=w(),typeof t.useCurrent=="string"&&(ne={year:function(_e){return _e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(_e){return _e.date(1).hours(0).seconds(0).minutes(0)},day:function(_e){return _e.hours(0).seconds(0).minutes(0)},hour:function(_e){return _e.seconds(0).minutes(0)},minute:function(_e){return _e.seconds(0)}}[t.useCurrent](ne)),k(ne)),at=u(),function(){var _e=b("<tr>"),tt=oe.clone().startOf("w").startOf("d");for(t.calendarWeeks===!0&&_e.append(b("<th>").addClass("cw").text("#"));tt.isBefore(oe.clone().endOf("w"));)_e.append(b("<th>").addClass("dow").text(tt.format("dd"))),tt.add(1,"d");at.find(".datepicker-days thead").append(_e)}(),function(){for(var _e=[],tt=oe.clone().startOf("y").startOf("d");tt.isSame(oe,"y");)_e.push(b("<span>").attr("data-action","selectMonth").addClass("month").text(tt.format("MMM"))),tt.add(1,"M");at.find(".datepicker-months td").empty().append(_e)}(),at.find(".timepicker-hours").hide(),at.find(".timepicker-minutes").hide(),at.find(".timepicker-seconds").hide(),C(),a(),b(window).on("resize",o),at.on("click","[data-action]",T),at.on("mousedown",!1),Mt&&Mt.hasClass("btn")&&Mt.toggleClass("active"),o(),at.show(),t.focusOnShow&&!me.is(":focus")&&me.focus(),c({type:"dp.show"})),Le}function U(){return(at?j:A)()}function X(ne){var _e,tt,Dt,vt,Rt=null,At=[],dt={},nt=ne.which;for(_e in Ft[nt]="p",Ft)Ft.hasOwnProperty(_e)&&Ft[_e]==="p"&&(At.push(_e),parseInt(_e,10)!==nt&&(dt[_e]=!0));for(_e in t.keyBinds)if(t.keyBinds.hasOwnProperty(_e)&&typeof t.keyBinds[_e]=="function"&&(Dt=_e.split(" ")).length===At.length&&qe[nt]===Dt[Dt.length-1]){for(vt=!0,tt=Dt.length-2;0<=tt;tt--)if(!(qe[Dt[tt]]in dt)){vt=!1;break}if(vt){Rt=t.keyBinds[_e];break}}Rt&&(Rt.call(Le,at),ne.stopPropagation(),ne.preventDefault())}function Q(ne){Ft[ne.which]="r",ne.stopPropagation(),ne.preventDefault()}function re(ne){var _e=b(ne.target).val().trim(),tt=_e?N(_e):null;return k(tt),ne.stopImmediatePropagation(),!1}function ge(ne){var _e={};return b.each(ne,function(){var tt=N(this);tt.isValid()&&(_e[tt.format("YYYY-MM-DD")]=!0)}),!!Object.keys(_e).length&&_e}function Ce(ne){var _e={};return b.each(ne,function(){_e[this]=!0}),!!Object.keys(_e).length&&_e}function pe(){var ne=t.format||"L LT";et=ne.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(_e){return(ie.localeData().longDateFormat(_e)||_e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(tt){return ie.localeData().longDateFormat(tt)||tt})}),(ft=t.extraFormats?t.extraFormats.slice():[]).indexOf(ne)<0&&ft.indexOf(et)<0&&ft.push(et),Fe=et.toLowerCase().indexOf("a")<1&&et.replace(/\[.*?\]/g,"").indexOf("h")<1,g("y")&&(Ot=2),g("M")&&(Ot=1),g("d")&&(Ot=0),ze=Math.max(Ot,ze),Et||k(ie)}var ie,oe,me,Fe,et,ft,ze,bt,St,Le={},Et=!0,Mt=!1,at=!1,Ot=0,Ne=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],ct=["days","months","years","decades"],mt=["top","bottom","auto"],Ct=["left","right","auto"],Ue=["default","top","bottom"],qe={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},Ft={},Wt={next:function(){var ne=Ne[ze].navFnc;oe.add(Ne[ze].navStep,ne),h(),l(ne)},previous:function(){var ne=Ne[ze].navFnc;oe.subtract(Ne[ze].navStep,ne),h(),l(ne)},pickerSwitch:function(){a(1)},selectMonth:function(ne){var _e=b(ne.target).closest("tbody").find("span").index(b(ne.target));oe.month(_e),ze===Ot?(k(ie.clone().year(oe.year()).month(oe.month())),t.inline||j()):(a(-1),h()),l("M")},selectYear:function(ne){var _e=parseInt(b(ne.target).text(),10)||0;oe.year(_e),ze===Ot?(k(ie.clone().year(oe.year())),t.inline||j()):(a(-1),h()),l("YYYY")},selectDecade:function(ne){var _e=parseInt(b(ne.target).data("selection"),10)||0;oe.year(_e),ze===Ot?(k(ie.clone().year(oe.year())),t.inline||j()):(a(-1),h()),l("YYYY")},selectDay:function(ne){var _e=oe.clone();b(ne.target).is(".old")&&_e.subtract(1,"M"),b(ne.target).is(".new")&&_e.add(1,"M"),k(_e.date(parseInt(b(ne.target).text(),10))),E()||t.keepOpen||t.inline||j()},incrementHours:function(){var ne=ie.clone().add(1,"h");d(ne,"h")&&k(ne)},incrementMinutes:function(){var ne=ie.clone().add(t.stepping,"m");d(ne,"m")&&k(ne)},incrementSeconds:function(){var ne=ie.clone().add(1,"s");d(ne,"s")&&k(ne)},decrementHours:function(){var ne=ie.clone().subtract(1,"h");d(ne,"h")&&k(ne)},decrementMinutes:function(){var ne=ie.clone().subtract(t.stepping,"m");d(ne,"m")&&k(ne)},decrementSeconds:function(){var ne=ie.clone().subtract(1,"s");d(ne,"s")&&k(ne)},togglePeriod:function(){k(ie.clone().add(12<=ie.hours()?-12:12,"h"))},togglePicker:function(ne){var _e,tt=b(ne.target),Dt=tt.closest("a"),vt=tt.closest("ul"),Rt=vt.find(".show"),At=vt.find(".collapse:not(.show)");if(Rt&&Rt.length){if((_e=Rt.data("collapse"))&&_e.transitioning)return;Rt.collapse?(Rt.collapse("hide"),At.collapse("show")):(Rt.removeClass("show"),At.addClass("show")),tt.is("i")?tt.toggleClass(t.icons.time+" "+t.icons.date):tt.find("i").toggleClass(t.icons.time+" "+t.icons.date),tt.hasClass(t.icons.date)?Dt.attr("title",t.tooltips.selectDate):Dt.attr("title",t.tooltips.selectTime)}},showPicker:function(){at.find(".timepicker > div:not(.timepicker-picker)").hide(),at.find(".timepicker .timepicker-picker").show()},showHours:function(){at.find(".timepicker .timepicker-picker").hide(),at.find(".timepicker .timepicker-hours").show()},showMinutes:function(){at.find(".timepicker .timepicker-picker").hide(),at.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){at.find(".timepicker .timepicker-picker").hide(),at.find(".timepicker .timepicker-seconds").show()},selectHour:function(ne){var _e=parseInt(b(ne.target).text(),10);Fe||(12<=ie.hours()?_e!==12&&(_e+=12):_e===12&&(_e=0)),k(ie.clone().hours(_e)),Wt.showPicker.call(Le)},selectMinute:function(ne){k(ie.clone().minutes(parseInt(b(ne.target).text(),10))),Wt.showPicker.call(Le)},selectSecond:function(ne){k(ie.clone().seconds(parseInt(b(ne.target).text(),10))),Wt.showPicker.call(Le)},clear:G,today:function(){var ne=w();d(ne,"d")&&k(ne)},close:j};if(Le.destroy=function(){j(),me.off({change:re,blur,keydown:X,keyup:Q,focus:t.allowInputToggle?j:""}),m.is("input")?me.off({focus:A}):Mt&&(Mt.off("click",U),Mt.off("mousedown",!1)),m.removeData("DateTimePicker"),m.removeData("date")},Le.toggle=U,Le.show=A,Le.hide=j,Le.disable=function(){return j(),Mt&&Mt.hasClass("btn")&&Mt.addClass("disabled"),me.prop("disabled",!0),Le},Le.enable=function(){return Mt&&Mt.hasClass("btn")&&Mt.removeClass("disabled"),me.prop("disabled",!1),Le},Le.ignoreReadonly=function(ne){if(arguments.length===0)return t.ignoreReadonly;if(typeof ne!="boolean")throw new TypeError("ignoreReadonly () expects a boolean parameter");return t.ignoreReadonly=ne,Le},Le.options=function(ne){if(arguments.length===0)return b.extend(!0,{},t);if(!(ne instanceof Object))throw new TypeError("options() options parameter should be an object");return b.extend(!0,t,ne),b.each(t,function(_e,tt){if(Le[_e]===void 0)throw new TypeError("option "+_e+" is not recognized!");Le[_e](tt)}),Le},Le.date=function(ne){if(arguments.length===0)return Et?null:ie.clone();if(!(ne===null||typeof ne=="string"||P.isMoment(ne)||ne instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return k(ne===null?null:N(ne)),Le},Le.format=function(ne){if(arguments.length===0)return t.format;if(typeof ne!="string"&&(typeof ne!="boolean"||ne!==!1))throw new TypeError("format() expects a string or boolean:false parameter "+ne);return t.format=ne,et&&pe(),Le},Le.timeZone=function(ne){if(arguments.length===0)return t.timeZone;if(typeof ne!="string")throw new TypeError("newZone() expects a string parameter");return t.timeZone=ne,Le},Le.dayViewHeaderFormat=function(ne){if(arguments.length===0)return t.dayViewHeaderFormat;if(typeof ne!="string")throw new TypeError("dayViewHeaderFormat() expects a string parameter");return t.dayViewHeaderFormat=ne,Le},Le.extraFormats=function(ne){if(arguments.length===0)return t.extraFormats;if(ne!==!1&&!(ne instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return t.extraFormats=ne,ft&&pe(),Le},Le.disabledDates=function(ne){if(arguments.length===0)return t.disabledDates?b.extend({},t.disabledDates):t.disabledDates;if(!ne)return t.disabledDates=!1,C(),Le;if(!(ne instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return t.disabledDates=ge(ne),t.enabledDates=!1,C(),Le},Le.enabledDates=function(ne){if(arguments.length===0)return t.enabledDates?b.extend({},t.enabledDates):t.enabledDates;if(!ne)return t.enabledDates=!1,C(),Le;if(!(ne instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return t.enabledDates=ge(ne),t.disabledDates=!1,C(),Le},Le.daysOfWeekDisabled=function(ne){if(arguments.length===0)return t.daysOfWeekDisabled.splice(0);if(typeof ne=="boolean"&&!ne)return t.daysOfWeekDisabled=!1,C(),Le;if(!(ne instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(t.daysOfWeekDisabled=ne.reduce(function(tt,Dt){return 6<(Dt=parseInt(Dt,10))||Dt<0||isNaN(Dt)||tt.indexOf(Dt)===-1&&tt.push(Dt),tt},[]).sort(),t.useCurrent&&!t.keepInvalid){for(var _e=0;!d(ie,"d");){if(ie.add(1,"d"),_e===31)throw"Tried 31 times to find a valid date";_e++}k(ie)}return C(),Le},Le.maxDate=function(ne){if(arguments.length===0)return t.maxDate?t.maxDate.clone():t.maxDate;if(typeof ne=="boolean"&&ne===!1)return t.maxDate=!1,C(),Le;typeof ne=="string"&&(ne!=="now"&&ne!=="moment"||(ne=w()));var _e=N(ne);if(!_e.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+ne);if(t.minDate&&_e.isBefore(t.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+_e.format(et));return t.maxDate=_e,t.useCurrent&&!t.keepInvalid&&ie.isAfter(ne)&&k(t.maxDate),oe.isAfter(_e)&&(oe=_e.clone().subtract(t.stepping,"m")),C(),Le},Le.minDate=function(ne){if(arguments.length===0)return t.minDate?t.minDate.clone():t.minDate;if(typeof ne=="boolean"&&ne===!1)return t.minDate=!1,C(),Le;typeof ne=="string"&&(ne!=="now"&&ne!=="moment"||(ne=w()));var _e=N(ne);if(!_e.isValid())throw new TypeError("minDate() Could not parse date parameter: "+ne);if(t.maxDate&&_e.isAfter(t.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+_e.format(et));return t.minDate=_e,t.useCurrent&&!t.keepInvalid&&ie.isBefore(ne)&&k(t.minDate),oe.isBefore(_e)&&(oe=_e.clone().add(t.stepping,"m")),C(),Le},Le.defaultDate=function(ne){if(arguments.length===0)return t.defaultDate?t.defaultDate.clone():t.defaultDate;if(!ne)return t.defaultDate=!1,Le;typeof ne=="string"&&(ne=ne==="now"||ne==="moment"?w():w(ne));var _e=N(ne);if(!_e.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+ne);if(!d(_e))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return t.defaultDate=_e,(t.defaultDate&&t.inline||me.val().trim()==="")&&k(t.defaultDate),Le},Le.locale=function(ne){if(arguments.length===0)return t.locale;if(!P.localeData(ne))throw new TypeError("locale() locale "+ne+" is not loaded from moment locales!");return t.locale=ne,ie.locale(t.locale),oe.locale(t.locale),et&&pe(),at&&(j(),A()),Le},Le.stepping=function(ne){return arguments.length===0?t.stepping:(ne=parseInt(ne,10),(isNaN(ne)||ne<1)&&(ne=1),t.stepping=ne,Le)},Le.useCurrent=function(ne){var _e=["year","month","day","hour","minute"];if(arguments.length===0)return t.useCurrent;if(typeof ne!="boolean"&&typeof ne!="string")throw new TypeError("useCurrent() expects a boolean or string parameter");if(typeof ne=="string"&&_e.indexOf(ne.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+_e.join(", "));return t.useCurrent=ne,Le},Le.collapse=function(ne){if(arguments.length===0)return t.collapse;if(typeof ne!="boolean")throw new TypeError("collapse() expects a boolean parameter");return t.collapse===ne||(t.collapse=ne,at&&(j(),A())),Le},Le.icons=function(ne){if(arguments.length===0)return b.extend({},t.icons);if(!(ne instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return b.extend(t.icons,ne),at&&(j(),A()),Le},Le.tooltips=function(ne){if(arguments.length===0)return b.extend({},t.tooltips);if(!(ne instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return b.extend(t.tooltips,ne),at&&(j(),A()),Le},Le.useStrict=function(ne){if(arguments.length===0)return t.useStrict;if(typeof ne!="boolean")throw new TypeError("useStrict() expects a boolean parameter");return t.useStrict=ne,Le},Le.sideBySide=function(ne){if(arguments.length===0)return t.sideBySide;if(typeof ne!="boolean")throw new TypeError("sideBySide() expects a boolean parameter");return t.sideBySide=ne,at&&(j(),A()),Le},Le.viewMode=function(ne){if(arguments.length===0)return t.viewMode;if(typeof ne!="string")throw new TypeError("viewMode() expects a string parameter");if(ct.indexOf(ne)===-1)throw new TypeError("viewMode() parameter must be one of ("+ct.join(", ")+") value");return t.viewMode=ne,ze=Math.max(ct.indexOf(ne),Ot),a(),Le},Le.toolbarPlacement=function(ne){if(arguments.length===0)return t.toolbarPlacement;if(typeof ne!="string")throw new TypeError("toolbarPlacement() expects a string parameter");if(Ue.indexOf(ne)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+Ue.join(", ")+") value");return t.toolbarPlacement=ne,at&&(j(),A()),Le},Le.widgetPositioning=function(ne){if(arguments.length===0)return b.extend({},t.widgetPositioning);if({}.toString.call(ne)!=="[object Object]")throw new TypeError("widgetPositioning() expects an object variable");if(ne.horizontal){if(typeof ne.horizontal!="string")throw new TypeError("widgetPositioning() horizontal variable must be a string");if(ne.horizontal=ne.horizontal.toLowerCase(),Ct.indexOf(ne.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+Ct.join(", ")+")");t.widgetPositioning.horizontal=ne.horizontal}if(ne.vertical){if(typeof ne.vertical!="string")throw new TypeError("widgetPositioning() vertical variable must be a string");if(ne.vertical=ne.vertical.toLowerCase(),mt.indexOf(ne.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+mt.join(", ")+")");t.widgetPositioning.vertical=ne.vertical}return C(),Le},Le.calendarWeeks=function(ne){if(arguments.length===0)return t.calendarWeeks;if(typeof ne!="boolean")throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return t.calendarWeeks=ne,C(),Le},Le.showTodayButton=function(ne){if(arguments.length===0)return t.showTodayButton;if(typeof ne!="boolean")throw new TypeError("showTodayButton() expects a boolean parameter");return t.showTodayButton=ne,at&&(j(),A()),Le},Le.showClear=function(ne){if(arguments.length===0)return t.showClear;if(typeof ne!="boolean")throw new TypeError("showClear() expects a boolean parameter");return t.showClear=ne,at&&(j(),A()),Le},Le.widgetParent=function(ne){if(arguments.length===0)return t.widgetParent;if(typeof ne=="string"&&(ne=b(ne)),ne!==null&&typeof ne!="string"&&!(ne instanceof b))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return t.widgetParent=ne,at&&(j(),A()),Le},Le.keepOpen=function(ne){if(arguments.length===0)return t.keepOpen;if(typeof ne!="boolean")throw new TypeError("keepOpen() expects a boolean parameter");return t.keepOpen=ne,Le},Le.focusOnShow=function(ne){if(arguments.length===0)return t.focusOnShow;if(typeof ne!="boolean")throw new TypeError("focusOnShow() expects a boolean parameter");return t.focusOnShow=ne,Le},Le.inline=function(ne){if(arguments.length===0)return t.inline;if(typeof ne!="boolean")throw new TypeError("inline() expects a boolean parameter");return t.inline=ne,Le},Le.clear=function(){return G(),Le},Le.keyBinds=function(ne){return arguments.length===0?t.keyBinds:(t.keyBinds=ne,Le)},Le.getMoment=w,Le.debug=function(ne){if(typeof ne!="boolean")throw new TypeError("debug() expects a boolean parameter");return t.debug=ne,Le},Le.allowInputToggle=function(ne){if(arguments.length===0)return t.allowInputToggle;if(typeof ne!="boolean")throw new TypeError("allowInputToggle() expects a boolean parameter");return t.allowInputToggle=ne,Le},Le.showClose=function(ne){if(arguments.length===0)return t.showClose;if(typeof ne!="boolean")throw new TypeError("showClose() expects a boolean parameter");return t.showClose=ne,Le},Le.keepInvalid=function(ne){if(arguments.length===0)return t.keepInvalid;if(typeof ne!="boolean")throw new TypeError("keepInvalid() expects a boolean parameter");return t.keepInvalid=ne,Le},Le.datepickerInput=function(ne){if(arguments.length===0)return t.datepickerInput;if(typeof ne!="string")throw new TypeError("datepickerInput() expects a string parameter");return t.datepickerInput=ne,Le},Le.parseInputDate=function(ne){if(arguments.length===0)return t.parseInputDate;if(typeof ne!="function")throw new TypeError("parseInputDate() sholud be as function");return t.parseInputDate=ne,Le},Le.disabledTimeIntervals=function(ne){if(arguments.length===0)return t.disabledTimeIntervals?b.extend({},t.disabledTimeIntervals):t.disabledTimeIntervals;if(!ne)return t.disabledTimeIntervals=!1,C(),Le;if(!(ne instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return t.disabledTimeIntervals=ne,C(),Le},Le.disabledHours=function(ne){if(arguments.length===0)return t.disabledHours?b.extend({},t.disabledHours):t.disabledHours;if(!ne)return t.disabledHours=!1,C(),Le;if(!(ne instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(t.disabledHours=Ce(ne),t.enabledHours=!1,t.useCurrent&&!t.keepInvalid){for(var _e=0;!d(ie,"h");){if(ie.add(1,"h"),_e===24)throw"Tried 24 times to find a valid date";_e++}k(ie)}return C(),Le},Le.enabledHours=function(ne){if(arguments.length===0)return t.enabledHours?b.extend({},t.enabledHours):t.enabledHours;if(!ne)return t.enabledHours=!1,C(),Le;if(!(ne instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(t.enabledHours=Ce(ne),t.disabledHours=!1,t.useCurrent&&!t.keepInvalid){for(var _e=0;!d(ie,"h");){if(ie.add(1,"h"),_e===24)throw"Tried 24 times to find a valid date";_e++}k(ie)}return C(),Le},Le.viewDate=function(ne){if(arguments.length===0)return oe.clone();if(!ne)return oe=ie.clone(),Le;if(!(typeof ne=="string"||P.isMoment(ne)||ne instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return oe=N(ne),l(),Le},m.is("input"))me=m;else if((me=m.find(t.datepickerInput)).length===0)me=m.find("input");else if(!me.is("input"))throw new Error('CSS class "'+t.datepickerInput+'" cannot be applied to non input element');if(m.hasClass("input-group")&&(m.find(".datepickerbutton").length===0?(Mt=m.find(".input-group-text")).length===0&&(Mt=m.find(".input-group-addon")):Mt=m.find(".datepickerbutton")),!t.inline&&!me.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return ie=w(),oe=ie.clone(),b.extend(!0,t,(bt={},(St=m.is("input")||t.inline?m.data():m.find("input").data()).dateOptions&&St.dateOptions instanceof Object&&(bt=b.extend(!0,bt,St.dateOptions)),b.each(t,function(ne){var _e="date"+ne.charAt(0).toUpperCase()+ne.slice(1);St[_e]!==void 0&&(bt[ne]=St[_e])}),bt)),Le.options(t),pe(),me.on({change:re,blur:t.debug?"":j,keydown:X,keyup:Q,focus:t.allowInputToggle?A:""}),m.is("input")?me.on({focus:A}):Mt&&(Mt.on("click",U),Mt.on("mousedown",!1)),me.prop("disabled")&&Le.disable(),me.is("input")&&me.val().trim().length!==0?k(N(me.val().trim())):t.defaultDate&&me.attr("placeholder")===void 0&&k(t.defaultDate),t.inline&&A(),Le}return b.fn.datetimepicker=function(m){m=m||{};var t,p=Array.prototype.slice.call(arguments,1),w=!0;if(typeof m=="object")return this.each(function(){var g,E=b(this);E.data("DateTimePicker")||(g=b.extend(!0,{},b.fn.datetimepicker.defaults,m),E.data("DateTimePicker",B(E,g)))});if(typeof m=="string")return this.each(function(){var g=b(this).data("DateTimePicker");if(!g)throw new Error('bootstrap-datetimepicker("'+m+'") method was called on an element that is not using DateTimePicker');t=g[m].apply(g,p),w=t===g}),w||-1<b.inArray(m,["destroy","hide","show","toggle"])?this:t;throw new TypeError("Invalid arguments for DateTimePicker: "+m)},b.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:P.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-crosshairs",clear:"fa fa-trash-o",close:"fa fa-times"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time",selectDate:"Select Date"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(m){var t;m&&(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m")))},down:function(m){var t;m?(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))):this.show()},"control up":function(m){var t;m&&(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h")))},"control down":function(m){var t;m&&(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h")))},left:function(m){var t;m&&(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d")))},right:function(m){var t;m&&(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d")))},pageUp:function(m){var t;m&&(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M")))},pageDown:function(m){var t;m&&(t=this.date()||this.getMoment(),m.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M")))},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(m){m&&m.find(".timepicker").is(":visible")&&m.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},b.fn.datetimepicker})})(Hd);/**
 * better-dom: Live extension playground
 * @version 4.0.0 Wed, 04 Jul 2018 18:30:49 GMT
 * @link https://github.com/chemerisuk/better-dom
 * @copyright 2018 Maksim Chemerisuk
 * @license MIT
 */(function(){var H=window,M=document,b=M.documentElement,P=0,B=M.ELEMENT_NODE,m=M.DOCUMENT_NODE,t=["Webkit","O","Moz","ms"],p="v__40000__",w="__40000__sheet",g=H.WebKitAnimationEvent?"-webkit-":"",E=Array.prototype,n=E.every,i=E.forEach,u=E.filter,o=E.map,c=Array.isArray,l=Object.keys,a=H.requestAnimationFrame;function d(he){return he.ownerDocument.defaultView.getComputedStyle(he)}function h(he){if(he&&he.nodeType===B)return he.ownerDocument.getElementsByTagName("head")[0].appendChild(he)}function v(he,xe,He){He===void 0&&(He="$Element");var Ae="http://chemerisuk.github.io/better-dom/"+He+".html#"+he,Ye="invalid call `"+He+(He==="DOM"?".":"#")+he+"(";Ye+=o.call(xe,String).join(", ")+")`. ",this.message=Ye+"Check "+Ae+" to verify the arguments"}v.prototype=new TypeError;function C(he,xe){v.call(this,he,xe,"$Document")}C.prototype=new TypeError;function k(he){he&&(this[0]=he,he.__40000__=this)}k.prototype={toString:function(){return""},valueOf:function(){return P}};var j="@"+g+"keyframes "+p+" {from {opacity:.99} to {opacity:1}}";function G(he){if(this instanceof G){k.call(this,he);var xe=he.createElement("style");xe.innerHTML=j,h(xe),he[w]=xe.sheet||xe.styleSheet}else return he?he.__40000__||new G(he):new G}var N=new k;G.prototype=N,N.valueOf=function(){var he=this[0];return he?m:P},N.toString=function(){return"#document"};function T(he){if(this instanceof T)k.call(this,he);else return he?he.__40000__||new T(he):new T}var A=new k;T.prototype=A,A.valueOf=function(){var he=this[0];return he?B:P},A.toString=function(){var he=this[0];return he?"<"+he.tagName.toLowerCase()+">":"#unknown"};var U=new G(H.document),X=H.DOM;U.constructor=function(he){var xe=he&&he.nodeType;return xe===B?T(he):xe===m?G(he):new k},U.noConflict=function(){return H.DOM===U&&(H.DOM=X),U},H.DOM=U;var Q=/^<([a-zA-Z-]+)\/?>$/,re=M.createElement("body");function ge(he){return function(xe){var He=this[0];if(!He||typeof xe!="string")throw new v("create"+he,arguments);var Ae=he?[]:null,Ye=!Ae&&Q.exec(xe);if(Ye)return new T(He.createElement(Ye[1]));re.innerHTML=xe.trim();for(var Xe;Xe=re.firstElementChild;)if(re.removeChild(Xe),He!==M&&(Xe=He.adoptNode(Xe)),Ae)Ae.push(new T(Xe));else{Ae=new T(Xe);break}return Ae||new T}}G.prototype.create=ge(""),G.prototype.createAll=ge("All");var Ce=/^(\w*)(?:#([\w\-]+))?(?:\[([\w\-\=]+)\])?(?:\.([\w\-]+))?$/,pe=t.concat(null).map(function(he){return(he?he.toLowerCase()+"M":"m")+"atchesSelector"}).reduceRight(function(he,xe){return he||xe in b&&xe},null),ie=function(xe,He){if(typeof xe!="string")return null;var Ae=Ce.exec(xe);return Ae&&(Ae[1]&&(Ae[1]=Ae[1].toLowerCase()),Ae[3]&&(Ae[3]=Ae[3].split("=")),Ae[4]&&(Ae[4]=" "+Ae[4]+" ")),function(Ye){var Xe,st;for(!Ae&&!pe&&(st=(He||Ye.ownerDocument).querySelectorAll(xe));Ye&&Ye.nodeType===1;Ye=Ye.parentNode){if(Ae)Xe=(!Ae[1]||Ye.nodeName.toLowerCase()===Ae[1])&&(!Ae[2]||Ye.id===Ae[2])&&(!Ae[3]||(Ae[3][1]?Ye.getAttribute(Ae[3][0])===Ae[3][1]:Ye.hasAttribute(Ae[3][0])))&&(!Ae[4]||(" "+Ye.className+" ").indexOf(Ae[4])>=0);else if(pe)Xe=Ye[pe](xe);else for(var ce=0,we=st.length;ce<we;++ce){var we=st[ce];if(we===Ye)return we}if(Xe||!He||Ye===He)break}return Xe&&Ye}},oe=[],me=g?"webkitAnimationStart":"animationstart",Fe=[g+"animation-name:"+p+" !important",g+"animation-duration:1ms !important"].join(";");function et(he,xe){var He=T(xe),Ae=he.constructor;Object.keys(he).forEach(function(Ye){var Xe=he[Ye];Xe!==Ae&&(He[Ye]=Xe)}),Ae&&Ae.call(He)}G.prototype.extend=function(he,xe){var He=this[0];if(!He)return this;if(arguments.length===1&&typeof he=="object")return l(he).forEach(function(Ye){G.prototype[Ye]=he[Ye]}),this;if(he==="*")return l(xe).forEach(function(Ye){T.prototype[Ye]=xe[Ye]}),this;if(typeof xe=="function"&&(xe={constructor:xe}),!xe||typeof xe!="object")throw new C("extend",arguments);var Ae=ie(he);oe.push([Ae,xe]),He.addEventListener(me,function(Ye){var Xe=Ye.target;Ye.animationName===p&&Ae(Xe)&&(Ye.stopPropagation(),Xe.style.setProperty(g+"animation-name","none","important"),et(xe,Xe))},!0),i.call(He.querySelectorAll(he),function(Ye){Ye.style.setProperty(g+"animation-name","none","important"),H.setTimeout(function(){et(xe,Ye)},0)}),this.importStyles(he,Fe)},G.prototype.mock=function(he){if(!he)return new T;var xe=this.create(he),He=function Ae(Ye){oe.forEach(function(Xe){var st=Xe[0],ce=Xe[1];st(Ye)&&et(ce,Ye)}),i.call(Ye.children,Ae)};return oe.length&&He(xe[0]),xe},G.prototype.importScripts=function(){for(var he=this,xe=arguments,He=arguments.length,Ae=new Array(He),Ye=0;Ye<He;Ye++)Ae[Ye]=arguments[Ye];var Xe=function st(){var ce=he[0];if(ce){var we=Ae.shift(),Me=typeof we,Ze;if(Me==="string")Ze=ce.createElement("script"),Ze.src=we,Ze.onload=st,Ze.async=!0,h(Ze);else if(Me==="function")we();else if(we)throw new C("importScripts",xe)}};Xe()},G.prototype.importStyles=function(he,xe){var He=this[0];if(He){if(!xe&&typeof he=="string"&&(xe=he,he="@media screen"),typeof he!="string"||typeof xe!="string")throw new C("importStyles",arguments);var Ae=He[w],Ye=Ae.cssRules.length;he.split(",").forEach(function(Xe){try{Ye=Ae.insertRule(Xe+"{"+xe+"}",Ye)}catch{}})}};function ft(he,xe){return function(He){if(He&&typeof He!==xe)throw new v(he,arguments);var Ae=this[0],Ye=ie(He),Xe=Ae?Ae.children:[];return typeof He=="number"?(He<0&&(He=Xe.length+He),T(Xe[He])):Ye?u.call(Xe,Ye).map(T):o.call(Xe,T)}}T.prototype.child=ft("child","number"),T.prototype.children=ft("children","string");var ze=/[\n\t\r]/g,bt=function(xe){return(" "+xe.className+" ").replace(ze," ")};T.prototype.hasClass=function(he){if(typeof he!="string")throw new v("hasClass",arguments);var xe=this[0];return xe?xe.classList?xe.classList.contains(he):bt(xe).indexOf(" "+he+" ")>=0:!1},T.prototype.addClass=function(){for(var he=this,xe=arguments,He=arguments.length,Ae=new Array(He),Ye=0;Ye<He;Ye++)Ae[Ye]=arguments[Ye];var Xe=this[0];return Xe&&Ae.forEach(function(st){if(typeof st!="string")throw new v("addClass",xe);Xe.classList?Xe.classList.add(st):he.hasClass(st)||(he[0].className+=" "+st)}),this},T.prototype.removeClass=function(){for(var he=arguments,xe=arguments.length,He=new Array(xe),Ae=0;Ae<xe;Ae++)He[Ae]=arguments[Ae];var Ye=this[0];return Ye&&He.forEach(function(Xe){if(typeof Xe!="string")throw new v("removeClass",he);Ye.classList?Ye.classList.remove(Xe):Ye.className=bt(Ye).replace(" "+Xe+" "," ").trim()}),this},T.prototype.toggleClass=function(he,xe){if(typeof he!="string")throw new v("toggleClass",arguments);typeof xe!="boolean"&&(xe=!this.hasClass(he));var He=this[0];return He&&(xe?this.addClass(he):this.removeClass(he)),xe};var St=/\-./g,Le={get:{},set:{},find:function(xe,He){var Ae=xe.replace(St,function(Ye){return Ye[1].toUpperCase()});return Ae in He||(Ae=t.map(function(Ye){return Ye+Ae[0].toUpperCase()+Ae.slice(1)}).filter(function(Ye){return Ye in He})[0]),this.get[xe]=this.set[xe]=Ae}},Et=["Top","Right","Bottom","Left"],Mt={font:["fontStyle","fontSize","/","lineHeight","fontFamily"],padding:Et.map(function(he){return"padding"+he}),margin:Et.map(function(he){return"margin"+he}),"border-width":Et.map(function(he){return"border"+he+"Width"}),"border-style":Et.map(function(he){return"border"+he+"Style"})};Le.get.float=Le.set.float="cssFloat","fill-opacity font-weight line-height opacity orphans widows z-index zoom".split(" ").forEach(function(he){var xe=he.replace(St,function(He){return He[1].toUpperCase()});Le.get[he]=xe,Le.set[he]=function(He,Ae){Ae[xe]=He.toString()}}),l(Mt).forEach(function(he){var xe=Mt[he];Le.get[he]=function(He){var Ae=[],Ye=function(st,ce){return Ae.push(st==="/"?st:He[st]),!Ae[ce]};return xe.some(Ye)?"":Ae.join(" ")},Le.set[he]=function(He,Ae){He&&"cssText"in Ae?Ae.cssText+=";"+he+":"+He:xe.forEach(function(Ye){return Ae[Ye]=typeof He=="number"?He+"px":He.toString()})}});var at=Le;T.prototype.css=function(he,xe){var He=this,Ae=arguments.length,Ye=this[0];if(!Ye)return Ae===1&&c(he)?{}:Ae!==1||typeof he!="string"?this:void 0;var Xe=Ye.style,st;if(Ae===1&&(typeof he=="string"||c(he))){var ce=function(Ze){var ot=at.get[Ze]||at.find(Ze,Xe),_t=typeof ot=="function"?ot(Xe):Xe[ot];return _t||(st||(st=d(Ye)),_t=typeof ot=="function"?ot(st):st[ot]),_t};return typeof he=="string"?ce(he):he.map(ce).reduce(function(Me,Ze,ot){return Me[he[ot]]=Ze,Me},{})}if(Ae===2&&typeof he=="string"){var we=at.set[he]||at.find(he,Xe);typeof xe=="function"&&(xe=xe(this)),xe==null&&(xe=""),typeof we=="function"?we(xe,Xe):Xe[we]=typeof xe=="number"?xe+"px":xe.toString()}else if(Ae===1&&he&&typeof he=="object")l(he).forEach(function(Me){He.css(Me,he[Me])});else throw new v("css",arguments);return this};function Ot(he,xe,He){return function(){var Ae=this,Ye=this[0];if(!Ye||xe&&!Ye.parentNode)return this;for(var Xe=he?"":Ye.ownerDocument.createDocumentFragment(),st=arguments.length,ce=new Array(st),we=0;we<st;we++)ce[we]=arguments[we];return ce.forEach(function(Me){typeof Me=="function"&&(Me=Me(Ae)),typeof Me=="string"?typeof Xe=="string"?Xe+=Me.trim():Me=G(Ye.ownerDocument).createAll(Me):Me instanceof T&&(Me=[Me]),c(Me)&&(typeof Xe=="string"&&(Me=G(Ye.ownerDocument).createAll(Xe).concat(Me),Xe=Ye.ownerDocument.createDocumentFragment()),Me.forEach(function(Ze){Xe.appendChild(Ze[0])}))}),typeof Xe=="string"?Ye.insertAdjacentHTML(he,Xe):He(Ye,Xe),this}}T.prototype.after=Ot("afterend",!0,function(he,xe){he.parentNode.insertBefore(xe,he.nextSibling)}),T.prototype.before=Ot("beforebegin",!0,function(he,xe){he.parentNode.insertBefore(xe,he)}),T.prototype.prepend=Ot("afterbegin",!1,function(he,xe){he.insertBefore(xe,he.firstChild)}),T.prototype.append=Ot("beforeend",!1,function(he,xe){he.appendChild(xe)}),T.prototype.replace=Ot("",!0,function(he,xe){he.parentNode.replaceChild(xe,he)}),T.prototype.remove=Ot("",!0,function(he){he.parentNode.removeChild(he)});var Ne={":focus":function(xe){return xe===xe.ownerDocument.activeElement}};T.prototype.matches=function(he){if(!he||typeof he!="string")throw new v("matches",arguments);var xe=Ne[he]||ie(he);return!!xe(this[0])},T.prototype.offset=function(){var he=this[0],xe={top:0,left:0,right:0,bottom:0,width:0,height:0};if(he){var He=(he.ownerDocument||he).documentElement,Ae=He.clientTop,Ye=He.clientLeft,Xe=H.pageYOffset||He.scrollTop,st=H.pageXOffset||He.scrollLeft,ce=he.getBoundingClientRect();xe.top=ce.top+Xe-Ae,xe.left=ce.left+st-Ye,xe.right=ce.right+st-Ye,xe.bottom=ce.bottom+Xe-Ae,xe.width=ce.right-ce.left,xe.height=ce.bottom-ce.top}return xe};function ct(he,xe,He){return function(Ae){if(Ae&&typeof Ae!="string")throw new v(he,arguments);var Ye=this[0],Xe=He?[]:null;if(Ye){var st=ie(Ae);Ye&&(!st||he!=="closest")&&(Ye=Ye[xe]);for(var ce=Ye;ce;ce=ce[xe])if(!st||st(ce))if(Xe)Xe.push(T(ce));else{Xe=T(ce);break}}return Xe||new T}}T.prototype.next=ct("next","nextElementSibling"),T.prototype.prev=ct("prev","previousElementSibling"),T.prototype.nextAll=ct("nextAll","nextElementSibling",!0),T.prototype.prevAll=ct("prevAll","previousElementSibling",!0),T.prototype.closest=ct("closest","parentNode"),T.prototype.value=function(he){var xe=this[0];if(!xe)return he?this:void 0;var He=xe.tagName;if(he===void 0)return He==="SELECT"?~xe.selectedIndex?xe.options[xe.selectedIndex].value:"":He==="OPTION"?xe.hasAttribute("value")?xe.value:xe.text:He==="INPUT"||He==="TEXTAREA"?xe.value:xe.textContent;switch(He){case"INPUT":case"OPTION":case"TEXTAREA":typeof he=="function"&&(he=he(xe.value)),xe.value=he;break;case"SELECT":typeof he=="function"&&(he=he(xe.value)),n.call(xe.options,function(Ae){return!(Ae.selected=Ae.value===he)})&&(xe.selectedIndex=-1);break;default:typeof he=="function"&&(he=he(xe.textContent)),xe.textContent=he}return this},T.prototype.empty=function(){return this.value("")};var mt=g?"webkitTransitionEnd":"transitionend",Ct=g?"webkitAnimationEnd":"animationend";function Ue(he,xe){this.node=he,this.style=he.style,this.eventType=xe?Ct:mt,this.animationName=xe}Ue.prototype={handleEvent:function(xe){(!this.animationName||xe.animationName===this.animationName)&&(this.animationName&&(this.style.animationName="",this.style.animationDirection=""),this.node.removeEventListener(this.eventType,this,!0),typeof this.callback=="function"&&this.callback())},start:function(xe,He){this.callback=xe,this.animationName&&(this.style.animationName=this.animationName,this.style.animationDirection=He),this.node.addEventListener(this.eventType,this,!0)}};var qe=Ue;function Ft(he,xe){return function(He,Ae){var Ye=this;if(typeof He!="string"&&(Ae=He,He=null),Ae&&typeof Ae!="function")throw new v(he,arguments);var Xe=this[0];if(!Xe)return this;var st=d(Xe);if(Xe&&st.width){var ce=function(){Xe.style.visibility=xe?"hidden":"inherit",typeof Ae=="function"&&Ae(Ye)};Xe.ownerDocument.documentElement.contains(Xe)?!He&&parseFloat(st["transition-duration"])===0||He&&parseFloat(st["animation-duration"])===0?a(ce):(Xe.style.visibility="visible",new qe(Xe,He).start(ce,xe?"normal":"reverse")):a(ce)}return this.set("aria-hidden",String(xe))}}T.prototype.show=Ft("show",!1),T.prototype.hide=Ft("hide",!0),k.prototype.clone=function(he){if(typeof he!="boolean")throw new v("clone",arguments);var xe=this[0];if(xe){var He=xe.cloneNode(he);if(this instanceof T)return new T(He);if(this instanceof G)return new G(He)}return new k},k.prototype.contains=function(he){var xe=this[0];if(!xe)return!1;if(he instanceof T){var He=he[0];return He===xe?!0:xe.contains?xe.contains(He):xe.compareDocumentPosition(He)&16}throw new v("contains",arguments)};var Wt=/^(?:(\w+)|\.([\w\-]+))$/,ne=/'|\\/g;function _e(he,xe){return function(He){if(typeof He!="string")throw new v(he,arguments);var Ae=this[0];if(!Ae)return xe?[]:new k;var Ye=Wt.exec(He),Xe,st,ce,we;return Ye?(Ye[1]?Xe=Ae.getElementsByTagName(He):Xe=Ae.getElementsByClassName(Ye[2]),Xe&&!xe&&(Xe=Xe[0])):(st=!0,we=Ae,this instanceof G||((st=Ae.getAttribute("id"))?ce=st.replace(ne,"\\$&"):(ce="___40000__",Ae.setAttribute("id",ce)),ce="[id='"+ce+"'] ",He=ce+He.split(",").join(","+ce)),Xe=we["querySelector"+xe](He),st||Ae.removeAttribute("id")),xe?o.call(Xe,T):T(Xe)}}k.prototype.find=_e("find",""),k.prototype.findAll=_e("findAll","All");var tt={};"onfocusin"in b?(tt.focus=function(he){he._type="focusin"},tt.blur=function(he){he._type="focusout"}):tt.focus=tt.blur=function(he){he.options.capture=!0},M.createElement("input").validity&&(tt.invalid=function(he){he.options.capture=!0});var Dt=tt,vt=!1;try{var Rt=Object.defineProperty({},"passive",{get:function(){vt=!0}});H.addEventListener("test",null,Rt)}catch{}function At(he,xe,He,Ae){this.context=he,this.node=xe,this.options=He,this.args=Ae,He.selector&&(this.matcher=ie(He.selector,xe))}At.prototype={handleEvent:function(xe){if(this.event=xe,this.currentTarget=this.matcher?this.matcher(xe.target):this.node,this.currentTarget){this.options.once===!0&&this.unsubscribe();var He=this.args.map(this.getEventProperty,this);this.callback.apply(this.context,He)===!1&&xe.preventDefault()}},getEventProperty:function(xe){var He=arguments,Ae=this.event;if(xe==="type")return this.type;if(xe==="target"||xe==="relatedTarget")return T(Ae[xe]);if(xe==="currentTarget")return T(this.currentTarget);var Ye=Ae[xe];return typeof Ye=="function"?function(){return Ye.apply(Ae,He)}:Ye},subscribe:function(xe,He){var Ae=Dt[xe];this.type=xe,this.callback=He,Ae&&Ae(this),this.node.addEventListener(this._type||this.type,this,this.getLastArgument())},unsubscribe:function(){this.node.removeEventListener(this._type||this.type,this,this.getLastArgument())},getLastArgument:function(){var xe=!!this.options.capture;return this.options.passive&&vt&&(xe={passive:!0,capture:xe}),xe}};var dt=At;k.prototype.fire=function(he,xe){var He=this[0],Ae,Ye,Xe;if(typeof he=="string"){var st=Dt[he],ce={options:{}};st&&(ce=st(ce)||ce),Ye=ce._type||he}else throw new v("fire",arguments);if(!He)return!0;if(Ae=(He.ownerDocument||He).createEvent("CustomEvent"),Ae.initCustomEvent(Ye,!0,!0,xe),Xe=He.dispatchEvent(Ae),Xe&&He[he]){var we=dt.prototype.handleEvent;dt.prototype.handleEvent=function(Me){if(this.type!==he)return we.call(this,Me)},He[he](),dt.prototype.handleEvent=we}return Xe};var nt={get:{},set:{}};"tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" ").forEach(function(he){nt.get[he.toLowerCase()]=function(xe){return xe[he]}}),nt.get.style=function(he){return he.style.cssText},nt.set.style=function(he,xe){he.style.cssText=xe},nt.get.type=function(he){return he.getAttribute("type")||he.type};var te=nt;k.prototype.get=function(he,xe){var He=this,Ae=this[0],Ye=te.get[he],Xe;if(!Ae)return Xe;if(arguments.length===0)return Ae.innerHTML;if(Ye)Xe=Ye(Ae,he);else if(typeof he=="string")he in Ae?Xe=Ae[he]:this instanceof T?Xe=Ae.getAttribute(he):Xe=null;else if(c(he))Xe=he.reduce(function(st,ce){return st[ce]=He.get(ce),st},{});else throw new v("get",arguments);return Xe??xe},k.prototype.on=function(he,xe,He,Ae){if(typeof he=="string"&&(typeof xe=="string"?xe={selector:xe}:typeof xe=="function"?(Ae=xe,xe={},He=[]):typeof xe=="object"&&c(xe)&&(Ae=He,He=xe,xe={}),typeof He=="function"&&(Ae=He,He=[]),xe&&typeof xe=="object"&&typeof Ae=="function")){var Ye=this[0];if(!Ye)return function(){};var Xe=new dt(this,Ye,xe,He);return Xe.subscribe(he,Ae),function(){return Xe.unsubscribe()}}throw new v("on",arguments)},k.prototype.set=function(he,xe){var He=this,Ae=this[0],Ye=arguments.length,Xe=te.set[he];if(Ae)if(typeof he=="string")Ye===1&&(xe=he,he="innerHTML"),typeof xe=="function"&&(xe=xe(this.get(he))),Xe?Xe(Ae,xe):xe==null&&this instanceof T?Ae.removeAttribute(he):he in Ae?Ae[he]=xe:this instanceof T&&Ae.setAttribute(he,xe);else if(c(he))Ye===1?(Ae.textContent="",this.append.apply(this,he)):he.forEach(function(st){He.set(st,xe)});else if(typeof he=="object")l(he).forEach(function(st){He.set(st,he[st])});else throw new v("set",arguments);return this}})();/**
 * better-dateinput-polyfill: input[type=date] polyfill for better-dom
 * @version 3.2.7 Fri, 31 May 2019 21:09:24 GMT
 * @link https://github.com/chemerisuk/better-dateinput-polyfill
 * @copyright 2019 Maksim Chemerisuk
 * @license MIT
 */(function(){var H="dateinput-picker{display:inline-block;vertical-align:bottom}dateinput-picker>object{position:absolute;z-index:1000;width:21rem;height:20rem;max-height:20rem;box-shadow:0 8px 24px #888;background:#fff;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transform-origin:0 0;transform-origin:0 0;transition:.1s ease-out}dateinput-picker[aria-hidden=true]>object{opacity:0;-webkit-transform:skew(-25deg) scaleX(.75);transform:skew(-25deg) scaleX(.75);visibility:hidden;height:0}dateinput-picker[aria-expanded=true]>object{height:13.75rem;max-height:13.75rem}dateinput-picker+input{color:transparent!important;caret-color:transparent!important}dateinput-picker+input::selection{background:none}dateinput-picker+input::-moz-selection{background:none}",M=DOM.find("html"),b=M.get("lang")||void 0,P="orientation"in window?"mobile":"desktop",B=function(){return DOM.create("<input type='date'>").value("_").value()!=="_"}();function m(w){return[w.getFullYear(),("0"+(w.getMonth()+1)).slice(-2),("0"+w.getDate()).slice(-2)].join("-")}function t(w){var g=new Date((w||"?")+"T00:00");return isNaN(g.getTime())?null:g}var p=DOM.findAll("meta[name^='data-format:']").reduce(function(w,g){var E=g.get("name").split(":")[1].trim(),n=JSON.parse(g.get("content"));if(E)try{w[E]=new window.Intl.DateTimeFormat(b,n)}catch{}return w},{});DOM.extend("input[type=date]",{constructor:function(){if(this._isPolyfillEnabled())return!1;var g=this.css(["color","font-size","font-family","font-style","line-height","padding-left","border-left-width","text-indent"]);g.dx=["padding-left","border-left-width","text-indent"].map(function(o){return parseFloat(g[o])}).reduce(function(o,c){return o+c}),g.css=["font-family","font-style","line-height","font-size"].map(function(o){return o+":"+g[o]}).join(";").replace(/"/g,""),this._backgroundTemplate=('<svg xmlns="http://www.w3.org/2000/svg"><text x="'+g.dx+'" y="50%" dy=".35em" fill="'+g.color+'"></text></svg>').replace("></",' style="'+g.css+'"></');var E=DOM.create("<dateinput-picker tabindex='-1'>");E._parentInput=this,this.before(E.hide()),this._picker=E;var n=this._syncDisplayedText.bind(this,"defaultValue"),i=this._syncDisplayedText.bind(this,"value"),u=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this[0],"value",{configurable:!1,enumerable:!0,get:u.get,set:this._setValue.bind(this,u.set,i)}),Object.defineProperty(this[0],"valueAsDate",{configurable:!1,enumerable:!0,get:this._getValueAsDate.bind(this),set:this._setValueAsDate.bind(this)}),this.on("change",i),this.on("focus",this._focusInput.bind(this)),this.on("blur",this._blurInput.bind(this)),this.on("keydown",["which"],this._keydownInput.bind(this)),this.on("click",this._focusInput.bind(this)),this.closest("form").on("reset",n),n()},_isPolyfillEnabled:function(){var g=this.get("data-polyfill");return g==="none"?!0:g&&(g===P||g==="all")?(this.set("type","text"),!1):B},_setValue:function(g,E,n){var i=t(n);if(!i)n="";else{var u=new Date((this.get("min")||"?")+"T00:00"),o=new Date((this.get("max")||"?")+"T00:00");i<u?n=m(u):i>o&&(n=m(o))}g.call(this[0],n),E()},_getValueAsDate:function(){return t(this.value())},_setValueAsDate:function(g){g instanceof Date&&!isNaN(g.getTime())&&this.value(m(g))},_syncDisplayedText:function(g){var E=this.get(g),n=t(E);if(n){var i=this.get("data-format"),u=p[i];try{var o=new Date(n.getFullYear(),n.getMonth(),n.getDate(),12);u?E=u.format(o):E=o.toLocaleDateString(b,i?JSON.parse(i):{})}catch{}}this.css("background-image","url('data:image/svg+xml,"+encodeURIComponent(this._backgroundTemplate.replace("></",">"+E+"</"))+"')")},_keydownInput:function(g){if(g===13&&this._picker.get("aria-hidden")==="true")return!0;if(g===32)this.get("readonly")||(this._picker.toggleState(!1),this._picker.invalidateState(),this._picker.get("aria-hidden")==="true"?this._picker.show():this._picker.hide());else if(g===27||g===9||g===13)this._picker.hide();else if(g===8||g===46)this.empty().fire("change");else if(g===17)this._picker.toggleState(),this._picker.invalidateState();else{var E;if(g===74||g===40?E=7:g===75||g===38?E=-7:g===76||g===39?E=1:(g===72||g===37)&&(E=-1),E){var n=this.get("valueAsDate")||new Date,i=this._picker.get("aria-expanded")==="true";i&&(g===40||g===38)?n.setMonth(n.getMonth()+(E>0?4:-4)):i&&(g===37||g===39)?n.setMonth(n.getMonth()+(E>0?1:-1)):n.setDate(n.getDate()+E),this.value(m(n)).fire("change")}}return g===9},_blurInput:function(){this._picker.hide()},_focusInput:function(){if(this.get("readonly"))return!1;var g=this.offset(),E=this._picker.offset(),n=g.height;M.get("clientHeight")<g.bottom+E.height&&(n=-E.height),this._picker.toggleState(!1),this._picker.invalidateState(),this._picker.css("margin-top",n).show()}}),DOM.importStyles(H)})();(function(){var H="body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:2.5rem;text-align:center;cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none;margin:0;overflow:hidden}a{position:absolute;width:3rem;height:2.5rem}a[rel=prev]{left:0}a[rel=next]{right:0}b{display:block;cursor:pointer}table{width:100%;table-layout:fixed;border-spacing:0;border-collapse:collapse;text-align:center;line-height:2.5rem}table+table{line-height:3.75rem;background:#fff;position:absolute;top:2.5rem;left:0;opacity:1;transition:.1s ease-out}table+table[aria-hidden=true]{visibility:hidden!important;opacity:0}td,th{padding:0}thead{background:#ddd;font-size:smaller;font-weight:700}[aria-selected=false],[aria-disabled=true]{color:#888}[aria-selected=true]{box-shadow:inset 0 0 0 1px #888}a:hover,td:hover,[aria-disabled=true],[aria-selected=true]{background-color:#f5f5f5}",M=DOM.find("html"),b=M.get("lang")||void 0,P="orientation"in window?"touchend":"mousedown",B=function(){try{new Date().toLocaleString("_")}catch(n){return n instanceof RangeError}return!1}();function m(n,i){return typeof i=="string"?Array(n+1).join(i):Array.apply(null,Array(n)).map(i).join("")}function t(n,i){return b==="en-US"?n:i}function p(n){var i=new Date;if(i.setDate(i.getDate()-i.getDay()+n+t(0,1)),B)try{return i.toLocaleDateString(b,{weekday:"short"})}catch{}return i.toUTCString().split(",")[0].slice(0,2)}function w(n){var i=new Date(null,n);if(B)try{return i.toLocaleDateString(b,{month:"short"})}catch{}return i.toUTCString().split(" ")[2]}function g(n){var i=new Date(n.getFullYear(),n.getMonth(),12);if(B)try{return i.toLocaleDateString(b,{month:"long",year:"numeric"})}catch{}return i.toUTCString().split(" ").slice(2,4).join(" ")}var E='<a rel="prev"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="100%" viewBox="0 0 16 16"><path d="M11.5 14.06L1 8L11.5 1.94z"/></svg></a><a rel="next"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="100%" viewBox="0 0 16 16"><path d="M15 8L4.5 14.06L4.5 1.94z"/></svg></a><b></b><table><thead>'+m(7,function(n,i){return"<th>"+p(i)})+"</thead><tbody>"+m(7,"<tr>"+m(7,"<td>")+"</tr>")+"</tbody></table><table><tbody>"+m(3,function(n,i){return"<tr>"+m(4,function(u,o){return"<td>"+w(i*4+o)})})+"</tbody></table>";DOM.extend("dateinput-picker",{constructor:function(){var i="ScriptEngineMajorVersion"in window,u=DOM.create("<object type='text/html' width='100%' height='100%'>");i||u.set("data","about:blank"),this.on("load",{capture:!0,once:!0},["target"],this._loadContent.bind(this)),this.append(u),i&&u.set("data","about:blank")},_loadContent:function(i){var u=DOM.constructor(i.get("contentDocument")),o=u.find("body");u.importStyles(H),o.set(E),this._calendarDays=o.find("table"),this._calendarMonths=o.find("table+table"),this._calendarCaption=o.find("b"),this._calendarDays.on("picker:invalidate",["detail"],this._invalidateDays.bind(this)),this._calendarMonths.on("picker:invalidate",["detail"],this._invalidateMonths.bind(this)),o.on("picker:invalidate",["detail"],this._invalidateCaption.bind(this)),o.on(P,"a",["currentTarget"],this._clickPickerButton.bind(this)),o.on(P,"td",["target"],this._clickPickerDay.bind(this)),this._calendarCaption.on(P,this._clickCaption.bind(this)),o.on(P,function(){return!1}),this._parentInput.on("change",this.invalidateState.bind(this)),DOM.get("activeElement")===this._parentInput[0]&&this.show()},_invalidateDays:function(i){var u=i.getMonth(),o=i.getDate(),c=i.getFullYear(),l=new Date((this._parentInput.get("min")||"?")+"T00:00"),a=new Date((this._parentInput.get("max")||"?")+"T00:00"),d=new Date(c,u,1);d.setDate(1-d.getDay()-t(1,d.getDay()===0?7:0)),this._calendarDays.findAll("td").forEach(function(h){d.setDate(d.getDate()+1);var v=u-d.getMonth(),C=null,k=null;c!==d.getFullYear()&&(v*=-1),d<l||d>a?k="true":v>0||v<0?C="false":o===d.getDate()&&(C="true"),h._ts=d.getTime(),h.set("aria-selected",C),h.set("aria-disabled",k),h.value(d.getDate())})},_invalidateMonths:function(i){var u=i.getMonth(),o=i.getFullYear(),c=new Date((this._parentInput.get("min")||"?")+"T00:00"),l=new Date((this._parentInput.get("max")||"?")+"T00:00"),a=new Date(o,u,1);this._calendarMonths.findAll("td").forEach(function(d,h){a.setMonth(h);var v=u-a.getMonth(),C=null;a<c||a>l?C="false":v||(C="true"),d._ts=a.getTime(),d.set("aria-selected",C)})},_invalidateCaption:function(i){var u=i.getFullYear();this.get("aria-expanded")!=="true"&&(u=g(i)),this._calendarCaption.value(u)},_clickCaption:function(){this.toggleState(),this.invalidateState()},_clickPickerButton:function(i){var u=i.get("rel")==="next"?1:-1,o=this._parentInput.get("valueAsDate")||new Date;this.get("aria-expanded")==="true"?o.setFullYear(o.getFullYear()+u):o.setMonth(o.getMonth()+u),this._parentInput.set("valueAsDate",o).fire("change")},_clickPickerDay:function(i){var u;this.get("aria-expanded")==="true"?(isNaN(i._ts)?u=new Date:u=new Date(i._ts),this.toggleState(!1)):isNaN(i._ts)||(u=new Date(i._ts),this.hide()),u!=null&&this._parentInput.set("valueAsDate",u).fire("change")},toggleState:function(i){typeof i!="boolean"&&(i=this.get("aria-expanded")!=="true"),this.set("aria-expanded",i)},invalidateState:function(){var i=this.get("aria-expanded")==="true",u=i?this._calendarMonths:this._calendarDays,o=this._parentInput.get("valueAsDate")||new Date;u.fire("picker:invalidate",o),i?this._calendarMonths.show():this._calendarMonths.hide()}})})();(function(H){(function(M){M(xi)})(function(M){M.support.htmlMenuitem="HTMLMenuItemElement"in window,M.support.htmlCommand="HTMLCommandElement"in window,M.support.eventSelectstart="onselectstart"in document.documentElement,(!M.ui||!M.widget)&&(M.cleanData=function(a){return function(d){var h,v,C;for(C=0;d[C]!=null;C++){v=d[C];try{h=M._data(v,"events"),h&&h.remove&&M(v).triggerHandler("remove")}catch{}}a(d)}}(M.cleanData));var b=null,P=!1,B=M(window),m=0,t={},p={},w={},g={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,hideOnSecondTrigger:!1,selectableSubMenu:!1,classNames:{hover:"context-menu-hover",disabled:"context-menu-disabled",visible:"context-menu-visible",notSelectable:"context-menu-not-selectable",icon:"context-menu-icon",iconEdit:"context-menu-icon-edit",iconCut:"context-menu-icon-cut",iconCopy:"context-menu-icon-copy",iconPaste:"context-menu-icon-paste",iconDelete:"context-menu-icon-delete",iconAdd:"context-menu-icon-add",iconQuit:"context-menu-icon-quit",iconLoadingClass:"context-menu-icon-loading"},determinePosition:function(a){if(M.ui&&M.ui.position)a.css("display","block").position({my:"center top",at:"center bottom",of:this,offset:"0 5",collision:"fit"}).css("display","none");else{var d=this.offset();d.top+=this.outerHeight(),d.left+=this.outerWidth()/2-a.outerWidth()/2,a.css(d)}},position:function(a,d,h){var v;if(!d&&!h){a.determinePosition.call(this,a.$menu);return}else if(d==="maintain"&&h==="maintain")v=a.$menu.position();else{var C=a.$menu.offsetParent().offset();v={top:h-C.top,left:d-C.left}}var k=B.scrollTop()+B.height(),j=B.scrollLeft()+B.width(),G=a.$menu.outerHeight(),N=a.$menu.outerWidth();v.top+G>k&&(v.top-=G),v.top<0&&(v.top=0),v.left+N>j&&(v.left-=N),v.left<0&&(v.left=0),a.$menu.css(v)},positionSubmenu:function(a){if(!(typeof a>"u"))if(M.ui&&M.ui.position)a.css("display","block").position({my:"left top-5",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var d={top:-9,left:this.outerWidth()-5};a.css(d)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{preShow:M.noop,show:M.noop,hide:M.noop,activated:M.noop},callback:null,items:{}},E={timer:null,pageX:null,pageY:null},n=function(a){for(var d=0,h=a;d=Math.max(d,parseInt(h.css("z-index"),10)||0),h=h.parent(),!(!h||!h.length||"html body".indexOf(h.prop("nodeName").toLowerCase())>-1););return d},i={abortevent:function(a){a.preventDefault(),a.stopImmediatePropagation()},contextmenu:function(a){var d=M(this);if(a.data.events.preShow(d,a)!==!1&&(a.data.trigger==="right"&&(a.preventDefault(),a.stopImmediatePropagation()),!(a.data.trigger!=="right"&&a.data.trigger!=="demand"&&a.originalEvent)&&!(typeof a.mouseButton<"u"&&a.data&&!(a.data.trigger==="left"&&a.mouseButton===0)&&!(a.data.trigger==="right"&&a.mouseButton===2))&&!d.hasClass("context-menu-active")&&!d.hasClass("context-menu-disabled"))){if(b=d,a.data.build){var h=a.data.build(b,a);if(h===!1)return;if(a.data=M.extend(!0,{},g,a.data,h||{}),!a.data.items||M.isEmptyObject(a.data.items))throw window.console&&(console.error||console.log).call(console,"No items specified to show in contextMenu"),new Error("No Items specified");a.data.$trigger=b,u.create(a.data)}u.show.call(d,a.data,a.pageX,a.pageY)}},click:function(a){a.preventDefault(),a.stopImmediatePropagation(),M(this).trigger(M.Event("contextmenu",{data:a.data,pageX:a.pageX,pageY:a.pageY}))},mousedown:function(a){var d=M(this);b&&b.length&&!b.is(d)&&b.data("contextMenu").$menu.trigger("contextmenu:hide"),a.button===2&&(b=d.data("contextMenuActive",!0))},mouseup:function(a){var d=M(this);d.data("contextMenuActive")&&b&&b.length&&b.is(d)&&!d.hasClass("context-menu-disabled")&&(a.preventDefault(),a.stopImmediatePropagation(),b=d,d.trigger(M.Event("contextmenu",{data:a.data,pageX:a.pageX,pageY:a.pageY}))),d.removeData("contextMenuActive")},mouseenter:function(a){var d=M(this),h=M(a.relatedTarget),v=M(document);h.is(".context-menu-list")||h.closest(".context-menu-list").length||b&&b.length||(E.pageX=a.pageX,E.pageY=a.pageY,E.data=a.data,v.on("mousemove.contextMenuShow",i.mousemove),E.timer=setTimeout(function(){E.timer=null,v.off("mousemove.contextMenuShow"),b=d,d.trigger(M.Event("contextmenu",{data:E.data,pageX:E.pageX,pageY:E.pageY}))},a.data.delay))},mousemove:function(a){E.pageX=a.pageX,E.pageY=a.pageY},mouseleave:function(a){var d=M(a.relatedTarget);if(!(d.is(".context-menu-list")||d.closest(".context-menu-list").length)){try{clearTimeout(E.timer)}catch{}E.timer=null}},layerClick:function(a){var d=M(this),h=d.data("contextMenuRoot"),v=a.button,C=a.pageX,k=a.pageY,j=C===void 0,G,N;a.preventDefault(),setTimeout(function(){if(j){h!==null&&typeof h<"u"&&h.$menu!==null&&typeof h.$menu<"u"&&h.$menu.trigger("contextmenu:hide");return}var T,A=h.trigger==="left"&&v===0||h.trigger==="right"&&v===2;if(document.elementFromPoint&&h.$layer){if(h.$layer.hide(),G=document.elementFromPoint(C-B.scrollLeft(),k-B.scrollTop()),G.isContentEditable){var U=document.createRange(),X=window.getSelection();U.selectNode(G),U.collapse(!0),X.removeAllRanges(),X.addRange(U)}M(G).trigger(a),h.$layer.show()}if(h.hideOnSecondTrigger&&A&&h.$menu!==null&&typeof h.$menu<"u"){h.$menu.trigger("contextmenu:hide");return}if(h.reposition&&A){if(document.elementFromPoint){if(h.$trigger.is(G)){h.position.call(h.$trigger,h,C,k);return}}else if(N=h.$trigger.offset(),T=M(window),N.top+=T.scrollTop(),N.top<=a.pageY&&(N.left+=T.scrollLeft(),N.left<=a.pageX&&(N.bottom=N.top+h.$trigger.outerHeight(),N.bottom>=a.pageY&&(N.right=N.left+h.$trigger.outerWidth(),N.right>=a.pageX)))){h.position.call(h.$trigger,h,C,k);return}}G&&A&&h.$trigger.one("contextmenu:hidden",function(){M(G).contextMenu({x:C,y:k,button:v})}),h!==null&&typeof h<"u"&&h.$menu!==null&&typeof h.$menu<"u"&&h.$menu.trigger("contextmenu:hide")},50)},keyStop:function(a,d){d.isInput||a.preventDefault(),a.stopPropagation()},key:function(a){var d={};b&&(d=b.data("contextMenu")||{}),typeof d.zIndex>"u"&&(d.zIndex=0);var h=0,v=function(G){G.style.zIndex!==""?h=G.style.zIndex:G.offsetParent!==null&&typeof G.offsetParent<"u"?v(G.offsetParent):G.parentElement!==null&&typeof G.parentElement<"u"&&v(G.parentElement)};if(v(a.target),!(d.$menu&&parseInt(h,10)>parseInt(d.$menu.css("zIndex"),10))){switch(a.keyCode){case 9:case 38:if(i.keyStop(a,d),d.isInput){if(a.keyCode===9&&a.shiftKey){a.preventDefault(),d.$selected&&d.$selected.find("input, textarea, select").blur(),d.$menu!==null&&typeof d.$menu<"u"&&d.$menu.trigger("prevcommand");return}else if(a.keyCode===38&&d.$selected.find("input, textarea, select").prop("type")==="checkbox"){a.preventDefault();return}}else if(a.keyCode!==9||a.shiftKey){d.$menu!==null&&typeof d.$menu<"u"&&d.$menu.trigger("prevcommand");return}break;case 40:if(i.keyStop(a,d),d.isInput){if(a.keyCode===9){a.preventDefault(),d.$selected&&d.$selected.find("input, textarea, select").blur(),d.$menu!==null&&typeof d.$menu<"u"&&d.$menu.trigger("nextcommand");return}else if(a.keyCode===40&&d.$selected.find("input, textarea, select").prop("type")==="checkbox"){a.preventDefault();return}}else{d.$menu!==null&&typeof d.$menu<"u"&&d.$menu.trigger("nextcommand");return}break;case 37:if(i.keyStop(a,d),d.isInput||!d.$selected||!d.$selected.length)break;if(!d.$selected.parent().hasClass("context-menu-root")){var C=d.$selected.parent().parent();d.$selected.trigger("contextmenu:blur"),d.$selected=C;return}break;case 39:if(i.keyStop(a,d),d.isInput||!d.$selected||!d.$selected.length)break;var k=d.$selected.data("contextMenu")||{};if(k.$menu&&d.$selected.hasClass("context-menu-submenu")){d.$selected=null,k.$selected=null,k.$menu.trigger("nextcommand");return}break;case 35:case 36:if(d.$selected&&d.$selected.find("input, textarea, select").length)return;(d.$selected&&d.$selected.parent()||d.$menu).children(":not(."+d.classNames.disabled+", ."+d.classNames.notSelectable+")")[a.keyCode===36?"first":"last"]().trigger("contextmenu:focus"),a.preventDefault();return;case 13:if(i.keyStop(a,d),d.isInput){if(d.$selected&&!d.$selected.is("textarea, select")){a.preventDefault();return}break}typeof d.$selected<"u"&&d.$selected!==null&&d.$selected.trigger("mouseup");return;case 32:case 33:case 34:i.keyStop(a,d);return;case 27:i.keyStop(a,d),d.$menu!==null&&typeof d.$menu<"u"&&d.$menu.trigger("contextmenu:hide");return;default:var j=String.fromCharCode(a.keyCode).toUpperCase();if(d.accesskeys&&d.accesskeys[j]){d.accesskeys[j].$node.trigger(d.accesskeys[j].$menu?"contextmenu:focus":"mouseup");return}break}a.stopPropagation(),typeof d.$selected<"u"&&d.$selected!==null&&d.$selected.trigger(a)}},prevItem:function(a){a.stopPropagation();var d=M(this).data("contextMenu")||{},h=M(this).data("contextMenuRoot")||{};if(d.$selected){var v=d.$selected;d=d.$selected.parent().data("contextMenu")||{},d.$selected=v}for(var C=d.$menu.children(),k=!d.$selected||!d.$selected.prev().length?C.last():d.$selected.prev(),j=k;k.hasClass(h.classNames.disabled)||k.hasClass(h.classNames.notSelectable)||k.is(":hidden");)if(k.prev().length?k=k.prev():k=C.last(),k.is(j))return;d.$selected&&i.itemMouseleave.call(d.$selected.get(0),a),i.itemMouseenter.call(k.get(0),a);var G=k.find("input, textarea, select");G.length&&G.focus()},nextItem:function(a){a.stopPropagation();var d=M(this).data("contextMenu")||{},h=M(this).data("contextMenuRoot")||{};if(d.$selected){var v=d.$selected;d=d.$selected.parent().data("contextMenu")||{},d.$selected=v}for(var C=d.$menu.children(),k=!d.$selected||!d.$selected.next().length?C.first():d.$selected.next(),j=k;k.hasClass(h.classNames.disabled)||k.hasClass(h.classNames.notSelectable)||k.is(":hidden");)if(k.next().length?k=k.next():k=C.first(),k.is(j))return;d.$selected&&i.itemMouseleave.call(d.$selected.get(0),a),i.itemMouseenter.call(k.get(0),a);var G=k.find("input, textarea, select");G.length&&G.focus()},focusInput:function(){var a=M(this).closest(".context-menu-item"),d=a.data(),h=d.contextMenu,v=d.contextMenuRoot;v.$selected=h.$selected=a,v.isInput=h.isInput=!0},blurInput:function(){var a=M(this).closest(".context-menu-item"),d=a.data(),h=d.contextMenu,v=d.contextMenuRoot;v.isInput=h.isInput=!1},menuMouseenter:function(){var a=M(this).data().contextMenuRoot;a.hovering=!0},menuMouseleave:function(a){var d=M(this).data().contextMenuRoot;d.$layer&&d.$layer.is(a.relatedTarget)&&(d.hovering=!1)},itemMouseenter:function(a){var d=M(this),h=d.data(),v=h.contextMenu,C=h.contextMenuRoot;if(C.hovering=!0,a&&C.$layer&&C.$layer.is(a.relatedTarget)&&(a.preventDefault(),a.stopImmediatePropagation()),(v.$menu?v:C).$menu.children("."+C.classNames.hover).trigger("contextmenu:blur").children(".hover").trigger("contextmenu:blur"),d.hasClass(C.classNames.disabled)||d.hasClass(C.classNames.notSelectable)){v.$selected=null;return}d.trigger("contextmenu:focus")},itemMouseleave:function(a){var d=M(this),h=d.data(),v=h.contextMenu,C=h.contextMenuRoot;if(C!==v&&C.$layer&&C.$layer.is(a.relatedTarget)){typeof C.$selected<"u"&&C.$selected!==null&&C.$selected.trigger("contextmenu:blur"),a.preventDefault(),a.stopImmediatePropagation(),C.$selected=v.$selected=v.$node;return}v&&v.$menu&&v.$menu.hasClass("context-menu-visible")||d.trigger("contextmenu:blur")},itemClick:function(a){var d=M(this),h=d.data(),v=h.contextMenu,C=h.contextMenuRoot,k=h.contextMenuKey,j;if(!(!v.items[k]||d.is("."+C.classNames.disabled+", .context-menu-separator, ."+C.classNames.notSelectable)||d.is(".context-menu-submenu")&&C.selectableSubMenu===!1)){if(a.preventDefault(),a.stopImmediatePropagation(),M.isFunction(v.callbacks[k])&&Object.prototype.hasOwnProperty.call(v.callbacks,k))j=v.callbacks[k];else if(M.isFunction(C.callback))j=C.callback;else return;j.call(C.$trigger,k,C,a)!==!1?C.$menu.trigger("contextmenu:hide"):C.$menu.parent().length&&u.update.call(C.$trigger,C)}},inputClick:function(a){a.stopImmediatePropagation()},hideMenu:function(a,d){var h=M(this).data("contextMenuRoot");u.hide.call(h.$trigger,h,d&&d.force)},focusItem:function(a){a.stopPropagation();var d=M(this),h=d.data(),v=h.contextMenu,C=h.contextMenuRoot;d.hasClass(C.classNames.disabled)||d.hasClass(C.classNames.notSelectable)||(d.addClass([C.classNames.hover,C.classNames.visible].join(" ")).parent().find(".context-menu-item").not(d).removeClass(C.classNames.visible).filter("."+C.classNames.hover).trigger("contextmenu:blur"),v.$selected=C.$selected=d,v&&v.$node&&v.$node.hasClass("context-menu-submenu")&&v.$node.addClass(C.classNames.hover),v.$node&&C.positionSubmenu.call(v.$node,v.$menu))},blurItem:function(a){a.stopPropagation();var d=M(this),h=d.data(),v=h.contextMenu,C=h.contextMenuRoot;v.autoHide&&d.removeClass(C.classNames.visible),d.removeClass(C.classNames.hover),v.$selected=null}},u={show:function(a,d,h){var v=M(this),C={};if(M("#context-menu-layer").trigger("mousedown"),a.$trigger=v,a.events.show.call(v,a)===!1){b=null;return}var k=u.update.call(v,a);if(k===!1){b=null;return}if(a.position.call(v,a,d,h),a.zIndex){var j=a.zIndex;typeof a.zIndex=="function"&&(j=a.zIndex.call(v,a)),C.zIndex=n(v)+j}u.layer.call(a.$menu,a,C.zIndex),a.$menu.find("ul").css("zIndex",C.zIndex+1),a.$menu.css(C)[a.animation.show](a.animation.duration,function(){v.trigger("contextmenu:visible"),u.activated(a),a.events.activated(a)}),v.data("contextMenu",a).addClass("context-menu-active"),M(document).off("keydown.contextMenu").on("keydown.contextMenu",i.key),a.autoHide&&M(document).on("mousemove.contextMenuAutoHide",function(G){var N=v.offset();N.right=N.left+v.outerWidth(),N.bottom=N.top+v.outerHeight(),a.$layer&&!a.hovering&&(!(G.pageX>=N.left&&G.pageX<=N.right)||!(G.pageY>=N.top&&G.pageY<=N.bottom))&&setTimeout(function(){!a.hovering&&a.$menu!==null&&typeof a.$menu<"u"&&a.$menu.trigger("contextmenu:hide")},50)})},hide:function(a,d){var h=M(this);if(a||(a=h.data("contextMenu")||{}),!(!d&&a.events&&a.events.hide.call(h,a)===!1)){if(h.removeData("contextMenu").removeClass("context-menu-active"),a.$layer){setTimeout(function(v){return function(){v.remove()}}(a.$layer),10);try{delete a.$layer}catch{a.$layer=null}}b=null,a.$menu.find("."+a.classNames.hover).trigger("contextmenu:blur"),a.$selected=null,a.$menu.find("."+a.classNames.visible).removeClass(a.classNames.visible),M(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),a.$menu&&a.$menu[a.animation.hide](a.animation.duration,function(){a.build&&(a.$menu.remove(),M.each(a,function(v){switch(v){case"ns":case"selector":case"build":case"trigger":return!0;default:a[v]=void 0;try{delete a[v]}catch{}return!0}})),setTimeout(function(){h.trigger("contextmenu:hidden")},10)})}},create:function(a,d){typeof d>"u"&&(d=a),a.$menu=M('<ul class="context-menu-list"></ul>').addClass(a.className||"").data({contextMenu:a,contextMenuRoot:d}),a.dataAttr&&M.each(a.dataAttr,function(v,C){a.$menu.attr("data-"+a.key,C)}),M.each(["callbacks","commands","inputs"],function(v,C){a[C]={},d[C]||(d[C]={})}),d.accesskeys||(d.accesskeys={});function h(v){var C=M("<span></span>");if(v._accesskey)v._beforeAccesskey&&C.append(document.createTextNode(v._beforeAccesskey)),M("<span></span>").addClass("context-menu-accesskey").text(v._accesskey).appendTo(C),v._afterAccesskey&&C.append(document.createTextNode(v._afterAccesskey));else if(v.isHtmlName){if(typeof v.accesskey<"u")throw new Error("accesskeys are not compatible with HTML names and cannot be used together in the same item");C.html(v.name)}else C.text(v.name);return C}M.each(a.items,function(v,C){var k=M('<li class="context-menu-item"></li>').addClass(C.className||""),j=null,G=null;if(k.on("click",M.noop),(typeof C=="string"||C.type==="cm_separator")&&(C={type:"cm_seperator"}),C.$node=k.data({contextMenu:a,contextMenuRoot:d,contextMenuKey:v}),typeof C.accesskey<"u"){for(var N=o(C.accesskey),T=0,A;A=N[T];T++)if(!d.accesskeys[A]){d.accesskeys[A]=C;var U=C.name.match(new RegExp("^(.*?)("+A+")(.*)$","i"));U&&(C._beforeAccesskey=U[1],C._accesskey=U[2],C._afterAccesskey=U[3]);break}}if(C.type&&w[C.type])w[C.type].call(k,C,a,d),M.each([a,d],function(X,Q){Q.commands[v]=C,M.isFunction(C.callback)&&(typeof Q.callbacks[v]>"u"||typeof a.type>"u")&&(Q.callbacks[v]=C.callback)});else{switch(C.type==="cm_seperator"?k.addClass("context-menu-separator "+d.classNames.notSelectable):C.type==="html"?k.addClass("context-menu-html "+d.classNames.notSelectable):C.type!=="sub"&&C.type?(j=M("<label></label>").appendTo(k),h(C).appendTo(j),k.addClass("context-menu-input"),a.hasTypes=!0,M.each([a,d],function(X,Q){Q.commands[v]=C,Q.inputs[v]=C})):C.items&&(C.type="sub"),C.type){case"cm_seperator":break;case"text":G=M('<input type="text" value="1" name="" />').attr("name","context-menu-input-"+v).val(C.value||"").appendTo(j);break;case"textarea":G=M('<textarea name=""></textarea>').attr("name","context-menu-input-"+v).val(C.value||"").appendTo(j),C.height&&G.height(C.height);break;case"checkbox":G=M('<input type="checkbox" value="1" name="" />').attr("name","context-menu-input-"+v).val(C.value||"").prop("checked",!!C.selected).prependTo(j);break;case"radio":G=M('<input type="radio" value="1" name="" />').attr("name","context-menu-input-"+C.radio).val(C.value||"").prop("checked",!!C.selected).prependTo(j);break;case"select":G=M('<select name=""></select>').attr("name","context-menu-input-"+v).appendTo(j),C.options&&(M.each(C.options,function(X,Q){M("<option></option>").val(X).text(Q).appendTo(G)}),G.val(C.selected));break;case"sub":h(C).appendTo(k),C.appendTo=C.$node,k.data("contextMenu",C).addClass("context-menu-submenu"),C.callback=null,typeof C.items.then=="function"?u.processPromises(C,d,C.items):u.create(C,d);break;case"html":M(C.html).appendTo(k);break;default:M.each([a,d],function(X,Q){Q.commands[v]=C,M.isFunction(C.callback)&&(typeof Q.callbacks[v]>"u"||typeof a.type>"u")&&(Q.callbacks[v]=C.callback)}),h(C).appendTo(k);break}C.type&&C.type!=="sub"&&C.type!=="html"&&C.type!=="cm_seperator"&&(G.on("focus",i.focusInput).on("blur",i.blurInput),C.events&&G.on(C.events,a)),C.icon&&(M.isFunction(C.icon)?C._icon=C.icon.call(this,this,k,v,C):typeof C.icon=="string"&&(C.icon.substring(0,4)==="fab "||C.icon.substring(0,4)==="fas "||C.icon.substring(0,4)==="fad "||C.icon.substring(0,4)==="far "||C.icon.substring(0,4)==="fal ")?(k.addClass(d.classNames.icon+" "+d.classNames.icon+"--fa5"),C._icon=M('<i class="'+C.icon+'"></i>')):typeof C.icon=="string"&&C.icon.substring(0,3)==="fa-"?C._icon=d.classNames.icon+" "+d.classNames.icon+"--fa fa "+C.icon:C._icon=d.classNames.icon+" "+d.classNames.icon+"-"+C.icon,typeof C._icon=="string"?k.addClass(C._icon):k.prepend(C._icon))}C.$input=G,C.$label=j,k.appendTo(a.$menu),!a.hasTypes&&M.support.eventSelectstart&&k.on("selectstart.disableTextSelect",i.abortevent)}),a.$node||a.$menu.css("display","none").addClass("context-menu-root"),a.$menu.appendTo(a.appendTo||document.body)},resize:function(a,d){var h;a.css({position:"absolute",display:"block"}),a.data("width",(h=a.get(0)).getBoundingClientRect?Math.ceil(h.getBoundingClientRect().width):a.outerWidth()+1),a.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),a.find("> li > ul").each(function(){u.resize(M(this),!0)}),d||a.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).outerWidth(function(){return M(this).data("width")})},update:function(a,d){var h=this;typeof d>"u"&&(d=a,u.resize(a.$menu));var v=!1;return a.$menu.children().each(function(){var C=M(this),k=C.data("contextMenuKey"),j=a.items[k],G=M.isFunction(j.disabled)&&j.disabled.call(h,k,d)||j.disabled===!0,N;if(M.isFunction(j.visible)?N=j.visible.call(h,k,d):typeof j.visible<"u"?N=j.visible===!0:N=!0,N&&(v=!0),C[N?"show":"hide"](),C[G?"addClass":"removeClass"](d.classNames.disabled),M.isFunction(j.icon)){C.removeClass(j._icon);var T=j.icon.call(this,h,C,k,j);typeof T=="string"?C.addClass(T):C.prepend(T)}if(j.type)switch(C.find("input, select, textarea").prop("disabled",G),j.type){case"text":case"textarea":j.$input.val(j.value||"");break;case"checkbox":case"radio":j.$input.val(j.value||"").prop("checked",!!j.selected);break;case"select":j.$input.val((j.selected===0?"0":j.selected)||"");break}if(j.$menu){var A=u.update.call(h,j,d);A&&(v=!0)}}),v},layer:function(a,d){var h=a.$layer=M('<div id="context-menu-layer"></div>').css({height:B.height(),width:B.width(),display:"block",position:"fixed","z-index":d,top:0,left:0,opacity:0,filter:"alpha(opacity=0)","background-color":"#000"}).data("contextMenuRoot",a).insertBefore(this).on("contextmenu",i.abortevent).on("mousedown",i.layerClick);return typeof document.body.style.maxWidth>"u"&&h.css({position:"absolute",height:M(document).height()}),h},processPromises:function(a,d,h){a.$node.addClass(d.classNames.iconLoadingClass);function v(j,G,N){typeof N>"u"&&C(void 0),k(j,G,N)}function C(j,G,N){typeof N>"u"?(N={error:{name:"No items and no error item",icon:"context-menu-icon context-menu-icon-quit"}},window.console&&(console.error||console.log).call(console,'When you reject a promise, provide an "items" object, equal to normal sub-menu items')):typeof N=="string"&&(N={error:{name:N}}),k(j,G,N)}function k(j,G,N){typeof G.$menu>"u"||!G.$menu.is(":visible")||(j.$node.removeClass(G.classNames.iconLoadingClass),j.items=N,u.create(j,G,!0),u.update(j,G),G.positionSubmenu.call(j.$node,j.$menu))}h.then(v.bind(this,a,d),C.bind(this,a,d))},activated:function(a){var d=a.$menu,h=d.offset(),v=M(window).height(),C=M(window).scrollTop(),k=d.height();k>v?d.css({height:v+"px","overflow-x":"hidden","overflow-y":"auto",top:C+"px"}):(h.top<C||h.top+k>C+v)&&d.css({top:C+"px"})}};function o(a){for(var d=a.split(/\s+/),h=[],v=0,C;C=d[v];v++)C=C.charAt(0).toUpperCase(),h.push(C);return h}M.fn.contextMenu=function(a){var d=this,h=a;if(this.length>0)if(typeof a>"u")this.first().trigger("contextmenu");else if(typeof a.x<"u"&&typeof a.y<"u")this.first().trigger(M.Event("contextmenu",{pageX:a.x,pageY:a.y,mouseButton:a.button}));else if(a==="hide"){var v=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;v&&v.trigger("contextmenu:hide")}else a==="destroy"?M.contextMenu("destroy",{context:this}):M.isPlainObject(a)?(a.context=this,M.contextMenu("create",a)):a?this.removeClass("context-menu-disabled"):a||this.addClass("context-menu-disabled");else M.each(p,function(){this.selector===d.selector&&(h.data=this,M.extend(h.data,{trigger:"demand"}))}),i.contextmenu.call(h.target,h);return this},M.contextMenu=function(a,d){typeof a!="string"&&(d=a,a="create"),typeof d=="string"?d={selector:d}:typeof d>"u"&&(d={});var h=M.extend(!0,{},g,d||{}),v=M(document),C=v,k=!1;switch(!h.context||!h.context.length?h.context=document:(C=M(h.context).first(),h.context=C.get(0),k=!M(h.context).is(document)),a){case"update":if(k)u.update(C);else for(var j in p)p.hasOwnProperty(j)&&u.update(p[j]);break;case"create":if(!h.selector)throw new Error("No selector specified");if(h.selector.match(/.context-menu-(list|item|input)($|\s)/))throw new Error('Cannot bind to selector "'+h.selector+'" as it contains a reserved className');if(!h.build&&(!h.items||M.isEmptyObject(h.items)))throw new Error("No Items specified");if(m++,h.ns=".contextMenu"+m,k||(t[h.selector]=h.ns),p[h.ns]=h,h.trigger||(h.trigger="right"),!P){var G=h.itemClickEvent==="click"?"click.contextMenu":"mouseup.contextMenu",N={"contextmenu:focus.contextMenu":i.focusItem,"contextmenu:blur.contextMenu":i.blurItem,"contextmenu.contextMenu":i.abortevent,"mouseenter.contextMenu":i.itemMouseenter,"mouseleave.contextMenu":i.itemMouseleave};N[G]=i.itemClick,v.on({"contextmenu:hide.contextMenu":i.hideMenu,"prevcommand.contextMenu":i.prevItem,"nextcommand.contextMenu":i.nextItem,"contextmenu.contextMenu":i.abortevent,"mouseenter.contextMenu":i.menuMouseenter,"mouseleave.contextMenu":i.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",i.inputClick).on(N,".context-menu-item"),P=!0}switch(C.on("contextmenu"+h.ns,h.selector,h,i.contextmenu),k&&C.on("remove"+h.ns,function(){M(this).contextMenu("destroy")}),h.trigger){case"hover":C.on("mouseenter"+h.ns,h.selector,h,i.mouseenter).on("mouseleave"+h.ns,h.selector,h,i.mouseleave);break;case"left":C.on("click"+h.ns,h.selector,h,i.click);break;case"touchstart":C.on("touchstart"+h.ns,h.selector,h,i.click);break}h.build||u.create(h);break;case"destroy":var T;if(k){var A=h.context;M.each(p,function(U,X){if(!X||!M(A).is(X.selector))return!0;T=M(".context-menu-list").filter(":visible"),T.length&&T.data().contextMenuRoot.$trigger.is(M(X.context).find(X.selector))&&T.trigger("contextmenu:hide",{force:!0});try{p[X.ns].$menu&&p[X.ns].$menu.remove(),delete p[X.ns]}catch{p[X.ns]=null}return M(X.context).off(X.ns),!0})}else if(!h.selector)v.off(".contextMenu .contextMenuAutoHide"),M.each(p,function(U,X){M(X.context).off(X.ns)}),t={},p={},m=0,P=!1,M("#context-menu-layer, .context-menu-list").remove();else if(t[h.selector]){T=M(".context-menu-list").filter(":visible"),T.length&&T.data().contextMenuRoot.$trigger.is(h.selector)&&T.trigger("contextmenu:hide",{force:!0});try{p[t[h.selector]].$menu&&p[t[h.selector]].$menu.remove(),delete p[t[h.selector]]}catch{p[t[h.selector]]=null}v.off(t[h.selector])}break;case"html5":(!M.support.htmlCommand&&!M.support.htmlMenuitem||typeof d=="boolean"&&d)&&M('menu[type="context"]').each(function(){this.id&&M.contextMenu({selector:"[contextmenu="+this.id+"]",items:M.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw new Error('Unknown operation "'+a+'"')}return this},M.contextMenu.setInputValues=function(a,d){typeof d>"u"&&(d={}),M.each(a.inputs,function(h,v){switch(v.type){case"text":case"textarea":v.value=d[h]||"";break;case"checkbox":v.selected=!!d[h];break;case"radio":v.selected=(d[v.radio]||"")===v.value;break;case"select":v.selected=d[h]||"";break}})},M.contextMenu.getInputValues=function(a,d){return typeof d>"u"&&(d={}),M.each(a.inputs,function(h,v){switch(v.type){case"text":case"textarea":case"select":d[h]=v.$input.val();break;case"checkbox":d[h]=v.$input.prop("checked");break;case"radio":v.$input.prop("checked")&&(d[v.radio]=v.value);break}}),d};function c(a){return a.id&&M('label[for="'+a.id+'"]').val()||a.name}function l(a,d,h){return h||(h=0),d.each(function(){var v=M(this),C=this,k=this.nodeName.toLowerCase(),j,G;switch(k==="label"&&v.find("input, textarea, select").length&&(j=v.text(),v=v.children().first(),C=v.get(0),k=C.nodeName.toLowerCase()),k){case"menu":G={name:v.attr("label"),items:{}},h=l(G.items,v.children(),h);break;case"a":case"button":G={name:v.text(),disabled:!!v.attr("disabled"),callback:function(){return function(){v.get(0).click()}}()};break;case"menuitem":case"command":switch(v.attr("type")){case void 0:case"command":case"menuitem":G={name:v.attr("label"),disabled:!!v.attr("disabled"),icon:v.attr("icon"),callback:function(){return function(){v.get(0).click()}}()};break;case"checkbox":G={type:"checkbox",disabled:!!v.attr("disabled"),name:v.attr("label"),selected:!!v.attr("checked")};break;case"radio":G={type:"radio",disabled:!!v.attr("disabled"),name:v.attr("label"),radio:v.attr("radiogroup"),value:v.attr("id"),selected:!!v.attr("checked")};break;default:G=void 0}break;case"hr":G="-------";break;case"input":switch(v.attr("type")){case"text":G={type:"text",name:j||c(C),disabled:!!v.attr("disabled"),value:v.val()};break;case"checkbox":G={type:"checkbox",name:j||c(C),disabled:!!v.attr("disabled"),selected:!!v.attr("checked")};break;case"radio":G={type:"radio",name:j||c(C),disabled:!!v.attr("disabled"),radio:!!v.attr("name"),value:v.val(),selected:!!v.attr("checked")};break;default:G=void 0;break}break;case"select":G={type:"select",name:j||c(C),disabled:!!v.attr("disabled"),selected:v.val(),options:{}},v.children().each(function(){G.options[this.value]=M(this).text()});break;case"textarea":G={type:"textarea",name:j||c(C),disabled:!!v.attr("disabled"),value:v.val()};break;case"label":break;default:G={type:"html",html:v.clone(!0)};break}G&&(h++,a["key"+h]=G)}),h}M.contextMenu.fromMenu=function(a){var d=M(a),h={};return l(h,d.children()),h},M.contextMenu.defaults=g,M.contextMenu.types=w,M.contextMenu.handle=i,M.contextMenu.op=u,M.contextMenu.menus=p})})();/*!
 * fullcalendar-rightclick v2.1
 * Docs & License: https://github.com/mherrmann/fullcalendar-rightclick
 * (c) 2015 Michael Herrmann
 */function ps(H){H=H.class||H;var M="render"in H.prototype?"render":"renderSkeleton",b=H.prototype[M];H.prototype[M]=function(){b.call(this),this.el.data("fullcalendar-rightclick")||(this.registerRightclickListener(),this.el.data("fullcalendar-rightclick",!0))};function P(){throw new Error("trigger not detected")}function B(m){return function(p,w,g,E,n){return p[m](w,g,E,n)}}typeof H.prototype.publiclyTrigger=="function"?H.prototype.publiclyTrigger.toString().match(/name, thisObj/)?P=B("publiclyTrigger"):P=function(m,t,p,w,g){return m.publiclyTrigger(t,[w,g,p])}:P=B("trigger"),H.prototype.registerRightclickListener=function(){var m=this;this.el.on("contextmenu",function(t){var p=$(t.target).closest(".fc-event");if(p.length){var w=p.data("fc-seg"),g;return typeof w.event=="object"?g=w.event:g=w.footprint.eventDef,P(m,"eventRightclick",this,g,t)}else{var E=$(t.target).closest(".fc-bg, .fc-slats, .fc-content-skeleton, .fc-bgevent-skeleton, .fc-highlight-skeleton, .fc-widget-content");if(E.length){var n;if(m.coordMap)m.coordMap.build(),n=m.coordMap.getCell(t.pageX,t.pageY);else{m.prepareHits();var i=m.queryHit(t.pageX,t.pageY);if(typeof m.getHitSpan=="function")n=m.getHitSpan(i);else if(i.row)n=i.component.getCellRange(i.row,i.col);else{var u=i.component.getSafeHitFootprint(i);u&&(n=m.calendar.footprintToDateProfile(u))}}if(n)return P(m,"dayRightclick",null,n.start,t)}}},{passive:!0})}}(function(){if(!window.Chart)return;function H(){}H.prototype.setup=function(M,b){this.chart=M,this.ctx=M.ctx,this.limits=b.data.datasets[0].gaugeLimits,this.data=b.data.datasets[0].gaugeData;var P=M.options;this.fontSize=P.defaultFontSize,this.fontStyle=P.defaultFontFamily,this.fontColor=P.defaultFontColor,this.ctx.textBaseline="alphabetic",this.arrowAngle=25*Math.PI/180,this.arrowColor=b.options.indicatorColor||P.arrowColor,this.showMarkers=typeof b.options.showMarkers>"u"?!0:b.options.showMarkers,b.options.markerFormatFn?this.markerFormatFn=b.options.markerFormatFn:this.markerFormatFn=function(B){return B}},H.prototype.applyGaugeConfig=function(M){this.calcLimits(),M.data.datasets[0].data=this.doughnutData;var b=this.ctx,P=this.limits.map((function(t){var p=this.markerFormatFn(t);return b.measureText(p).width}).bind(this)),B=Math.max.apply(this,P)+this.chart.width/35,m=this.chart.height/50;M.options.layout.padding={top:this.fontSize+m,left:B,right:B,bottom:m*2}},H.prototype.calcLimits=function(){for(var M=this.limits,b=[],P=0,B=1,m=M.length;B<m;B++){var t=Math.abs(M[B]-M[B-1]);P+=t,b.push(t)}this.doughnutData=b;var p=M[0],w=M[M.length-1];this.isRevers=p>w,this.minValue=this.isRevers?w:p,this.totalValue=P},H.prototype.updateGaugeDimensions=function(){var M=this.chart.chartArea;this.gaugeRadius=this.chart.innerRadius,this.gaugeCenterX=(M.left+M.right)/2,this.gaugeCenterY=(M.top+M.bottom+this.chart.outerRadius)/2,this.arrowLength=this.chart.radiusLength*.8},H.prototype.getCoordOnCircle=function(M,b){return{x:M*Math.cos(b),y:M*Math.sin(b)}},H.prototype.getAngleOfValue=function(M){var b=0,P=M-this.minValue;return P<=0?b=0:P>=this.totalValue?b=Math.PI:b=Math.PI*P/this.totalValue,this.isRevers?Math.PI-b:b},H.prototype.renderLimitLabel=function(M){var b=this.ctx,P=this.getAngleOfValue(M),B=this.getCoordOnCircle(this.chart.outerRadius+this.chart.radiusLength/5,P),m,t=P-Math.PI/2;t>0?m="left":t<0?m="right":m="center",b.textAlign=m,b.font=this.fontSize+"px "+this.fontStyle,b.fillStyle=this.fontColor;var p=this.markerFormatFn(M);b.fillText(p,this.gaugeCenterX-B.x,this.gaugeCenterY-B.y)},H.prototype.renderLimits=function(){for(var M=0,b=this.limits.length;M<b;M++)this.renderLimitLabel(this.limits[M])},H.prototype.renderValueLabel=function(){var M=this.data.value.toString(),b=this.ctx;b.font="30px "+this.fontStyle;var P=b.measureText(M).width,B=.75*this.gaugeRadius*2,m=B/P,t=Math.floor(30*m),p=Math.min(t,this.gaugeRadius);b.textAlign="center",b.font=p+"px "+this.fontStyle,b.fillStyle=this.data.valueColor||this.fontColor,b.fillText(M,this.gaugeCenterX,this.gaugeCenterY)},H.prototype.renderValueArrow=function(M){var b=this.getAngleOfValue(typeof M=="number"?M:this.data.value);this.ctx.globalCompositeOperation="source-over",this.renderArrow(this.gaugeRadius,b,this.arrowLength,this.arrowAngle,this.arrowColor)},H.prototype.renderSmallValueArrow=function(M){var b=this.getAngleOfValue(M);this.ctx.globalCompositeOperation="source-over",this.renderArrow(this.gaugeRadius-1,b,this.arrowLength-1,this.arrowAngle,this.arrowColor)},H.prototype.clearValueArrow=function(M){var b=this.getAngleOfValue(M);this.ctx.lineWidth=2,this.ctx.globalCompositeOperation="destination-out",this.renderArrow(this.gaugeRadius-1,b,this.arrowLength+1,this.arrowAngle,"#FFFFFF"),this.ctx.stroke()},H.prototype.renderArrow=function(M,b,P,B,m){var t=this.getCoordOnCircle(M,b),p={x:this.gaugeCenterX-t.x,y:this.gaugeCenterY-t.y},w=this.ctx;w.fillStyle=m,w.beginPath(),w.moveTo(p.x,p.y),t=this.getCoordOnCircle(P,b+B),w.lineTo(p.x+t.x,p.y+t.y),t=this.getCoordOnCircle(P,b-B),w.lineTo(p.x+t.x,p.y+t.y),w.closePath(),w.fill()},H.prototype.animateArrow=function(){var M=30,b=300,P=this.data.value-this.minValue,B=P/M,m=0,t=this.minValue,p=setInterval((function(){m++,this.clearValueArrow(t),m>M?(clearInterval(p),this.renderValueArrow()):(t+=B,this.renderSmallValueArrow(t))}).bind(this),b/M)},Chart.defaults.tsgauge={animation:{animateRotate:!0,animateScale:!1},cutoutPercentage:75,rotation:Math.PI,circumference:Math.PI,legend:{display:!1},scales:{},arrowColor:"#444"},Chart.controllers.tsgauge=Chart.controllers.doughnut.extend({initialize:function(M){var b=this.gaugeHelper=new H;b.setup(M,M.config),b.applyGaugeConfig(M.config),M.config.options.animation.onComplete=function(P){b.updateGaugeDimensions(),b.animateArrow()},Chart.controllers.doughnut.prototype.initialize.apply(this,arguments)},draw:function(){Chart.controllers.doughnut.prototype.draw.apply(this,arguments);var M=this.gaugeHelper;M.updateGaugeDimensions(),M.renderValueLabel(),M.showMarkers&&M.renderLimits(),M.renderSmallValueArrow(M.minValue)}})})();var Cl={},Dl={exports:{}};(function(H){(function(M){if(typeof window>"u")return;var b=0,P=!1,B=!1,m="message",t=m.length,p="[iFrameSizer]",w=p.length,g=null,E=window.requestAnimationFrame,n={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},i={},u=null,o={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){G("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};function c(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function l(Ne,ct,mt){"addEventListener"in window?Ne.addEventListener(ct,mt,!1):"attachEvent"in window&&Ne.attachEvent("on"+ct,mt)}function a(Ne,ct,mt){"removeEventListener"in window?Ne.removeEventListener(ct,mt,!1):"detachEvent"in window&&Ne.detachEvent("on"+ct,mt)}function d(){var Ne=["moz","webkit","o","ms"],ct;for(ct=0;ct<Ne.length&&!E;ct+=1)E=window[Ne[ct]+"RequestAnimationFrame"];E||k("setup","RequestAnimationFrame not supported")}function h(Ne){var ct="Host page: "+Ne;return window.top!==window.self&&(window.parentIFrame&&window.parentIFrame.getId?ct=window.parentIFrame.getId()+": "+Ne:ct="Nested host page: "+Ne),ct}function v(Ne){return p+"["+h(Ne)+"]"}function C(Ne){return i[Ne]?i[Ne].log:P}function k(Ne,ct){N("log",Ne,ct,C(Ne))}function j(Ne,ct){N("info",Ne,ct,C(Ne))}function G(Ne,ct){N("warn",Ne,ct,!0)}function N(Ne,ct,mt,Ct){Ct===!0&&typeof window.console=="object"&&console[Ne](v(ct),mt)}function T(Ne){function ct(){function we(){pe(st),re(ce),he("resizedCallback",st)}Ct("Height"),Ct("Width"),ie(we,st,"init")}function mt(){var we=Xe.substr(w).split(":");return{iframe:i[we[0]]&&i[we[0]].iframe,id:we[0],height:we[1],width:we[2],type:we[3]}}function Ct(we){var Me=Number(i[ce]["max"+we]),Ze=Number(i[ce]["min"+we]),ot=we.toLowerCase(),_t=Number(st[ot]);k(ce,"Checking "+ot+" is in range "+Ze+"-"+Me),_t<Ze&&(_t=Ze,k(ce,"Set "+ot+" to min value")),_t>Me&&(_t=Me,k(ce,"Set "+ot+" to max value")),st[ot]=""+_t}function Ue(){function we(){function ot(){var Ut=0,nr=!1;for(k(ce,"Checking connection is from allowed list of origins: "+Ze);Ut<Ze.length;Ut++)if(Ze[Ut]===Me){nr=!0;break}return nr}function _t(){var Ut=i[ce]&&i[ce].remoteHost;return k(ce,"Checking connection is from: "+Ut),Me===Ut}return Ze.constructor===Array?ot():_t()}var Me=Ne.origin,Ze=i[ce]&&i[ce].checkOrigin;if(Ze&&""+Me!="null"&&!we())throw new Error("Unexpected message received from: "+Me+" for "+st.iframe.id+". Message was: "+Ne.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function qe(){return p===(""+Xe).substr(0,w)&&Xe.substr(w).split(":")[0]in i}function Ft(){var we=st.type in{true:1,false:1,undefined:1};return we&&k(ce,"Ignoring init message from meta parent page"),we}function Wt(we){return Xe.substr(Xe.indexOf(":")+t+we)}function ne(we){k(ce,"MessageCallback passed: {iframe: "+st.iframe.id+", message: "+we+"}"),he("messageCallback",{iframe:st.iframe,message:JSON.parse(we)}),k(ce,"--")}function _e(){var we=document.body.getBoundingClientRect(),Me=st.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:Me.height,iframeWidth:Me.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(Me.top-we.top,10),offsetLeft:parseInt(Me.left-we.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}function tt(we,Me){function Ze(){oe("Send Page Info","pageInfo:"+_e(),we,Me)}ze(Ze,32,Me)}function Dt(){function we(_t,Ut){function nr(){i[ot]?tt(i[ot].iframe,ot):Me()}["scroll","resize"].forEach(function(pr){k(ot,_t+pr+" listener for sendPageInfo"),Ut(window,pr,nr)})}function Me(){we("Remove ",a)}function Ze(){we("Add ",l)}var ot=ce;Ze(),i[ot]&&(i[ot].stopPageInfo=Me)}function vt(){i[ce]&&i[ce].stopPageInfo&&(i[ce].stopPageInfo(),delete i[ce].stopPageInfo)}function Rt(){var we=!0;return st.iframe===null&&(G(ce,"IFrame ("+st.id+") not found"),we=!1),we}function At(we){var Me=we.getBoundingClientRect();return Q(ce),{x:Math.floor(Number(Me.left)+Number(g.x)),y:Math.floor(Number(Me.top)+Number(g.y))}}function dt(we){function Me(){g=Ut,nt(),k(ce,"--")}function Ze(){return{x:Number(st.width)+_t.x,y:Number(st.height)+_t.y}}function ot(){window.parentIFrame?window.parentIFrame["scrollTo"+(we?"Offset":"")](Ut.x,Ut.y):G(ce,"Unable to scroll to requested position, window.parentIFrame not found")}var _t=we?At(st.iframe):{x:0,y:0},Ut=Ze();k(ce,"Reposition requested from iFrame (offset x:"+_t.x+" y:"+_t.y+")"),window.top!==window.self?ot():Me()}function nt(){he("scrollCallback",g)!==!1?re(ce):ge()}function te(we){function Me(){var nr=At(Ut);k(ce,"Moving to in page link (#"+ot+") at x: "+nr.x+" y: "+nr.y),g={x:nr.x,y:nr.y},nt(),k(ce,"--")}function Ze(){window.parentIFrame?window.parentIFrame.moveToAnchor(ot):k(ce,"In page link #"+ot+" not found and window.parentIFrame not found")}var ot=we.split("#")[1]||"",_t=decodeURIComponent(ot),Ut=document.getElementById(_t)||document.getElementsByName(_t)[0];Ut?Me():window.top!==window.self?Ze():k(ce,"In page link #"+ot+" not found")}function he(we,Me){return A(ce,we,Me)}function xe(){switch(i[ce]&&i[ce].firstRun&&Ye(),st.type){case"close":i[ce].closeRequestCallback?A(ce,"closeRequestCallback",i[ce].iframe):X(st.iframe);break;case"message":ne(Wt(6));break;case"scrollTo":dt(!1);break;case"scrollToOffset":dt(!0);break;case"pageInfo":tt(i[ce]&&i[ce].iframe,ce),Dt();break;case"pageInfoStop":vt();break;case"inPageLink":te(Wt(9));break;case"reset":Ce(st);break;case"init":ct(),he("initCallback",st.iframe);break;default:ct()}}function He(we){var Me=!0;return i[we]||(Me=!1,G(st.type+" No settings for "+we+". Message was: "+Xe)),Me}function Ae(){for(var we in i)oe("iFrame requested init",me(we),document.getElementById(we),we)}function Ye(){i[ce]&&(i[ce].firstRun=!1)}var Xe=Ne.data,st={},ce=null;Xe==="[iFrameResizerChild]Ready"?Ae():qe()?(st=mt(),ce=st.id,i[ce]&&(i[ce].loaded=!0),!Ft()&&He(ce)&&(k(ce,"Received: "+Xe),Rt()&&Ue()&&xe())):j(ce,"Ignored: "+Xe)}function A(Ne,ct,mt){var Ct=null,Ue=null;if(i[Ne])if(Ct=i[Ne][ct],typeof Ct=="function")Ue=Ct(mt);else throw new TypeError(ct+" on iFrame["+Ne+"] is not a function");return Ue}function U(Ne){var ct=Ne.id;delete i[ct]}function X(Ne){var ct=Ne.id;k(ct,"Removing iFrame: "+ct);try{Ne.parentNode&&Ne.parentNode.removeChild(Ne)}catch{}A(ct,"closedCallback",ct),k(ct,"--"),U(Ne)}function Q(Ne){g===null&&(g={x:window.pageXOffset!==M?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==M?window.pageYOffset:document.documentElement.scrollTop},k(Ne,"Get page position: "+g.x+","+g.y))}function re(Ne){g!==null&&(window.scrollTo(g.x,g.y),k(Ne,"Set page position: "+g.x+","+g.y),ge())}function ge(){g=null}function Ce(Ne){function ct(){pe(Ne),oe("reset","reset",Ne.iframe,Ne.id)}k(Ne.id,"Size reset requested by "+(Ne.type==="init"?"host page":"iFrame")),Q(Ne.id),ie(ct,Ne,"reset")}function pe(Ne){function ct(qe){if(!Ne.id){k("undefined","messageData id not set");return}Ne.iframe.style[qe]=Ne[qe]+"px",k(Ne.id,"IFrame ("+Ue+") "+qe+" set to "+Ne[qe]+"px")}function mt(qe){!B&&Ne[qe]==="0"&&(B=!0,k(Ue,"Hidden iFrame detected, creating visibility listener"),bt())}function Ct(qe){ct(qe),mt(qe)}var Ue=Ne.iframe.id;i[Ue]&&(i[Ue].sizeHeight&&Ct("height"),i[Ue].sizeWidth&&Ct("width"))}function ie(Ne,ct,mt){mt!==ct.type&&E?(k(ct.id,"Requesting animation frame"),E(Ne)):Ne()}function oe(Ne,ct,mt,Ct,Ue){function qe(){var tt=i[Ct]&&i[Ct].targetOrigin;k(Ct,"["+Ne+"] Sending msg to iframe["+Ct+"] ("+ct+") targetOrigin: "+tt),mt.contentWindow.postMessage(p+ct,tt)}function Ft(){G(Ct,"["+Ne+"] IFrame("+Ct+") not found")}function Wt(){mt&&"contentWindow"in mt&&mt.contentWindow!==null?qe():Ft()}function ne(){function tt(){i[Ct]&&!i[Ct].loaded&&!_e&&(_e=!0,G(Ct,"IFrame has not responded within "+i[Ct].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}Ue&&i[Ct]&&i[Ct].warningTimeout&&(i[Ct].msgTimeout=setTimeout(tt,i[Ct].warningTimeout))}var _e=!1;Ct=Ct||mt.id,i[Ct]&&(Wt(),ne())}function me(Ne){return Ne+":"+i[Ne].bodyMarginV1+":"+i[Ne].sizeWidth+":"+i[Ne].log+":"+i[Ne].interval+":"+i[Ne].enablePublicMethods+":"+i[Ne].autoResize+":"+i[Ne].bodyMargin+":"+i[Ne].heightCalculationMethod+":"+i[Ne].bodyBackground+":"+i[Ne].bodyPadding+":"+i[Ne].tolerance+":"+i[Ne].inPageLinks+":"+i[Ne].resizeFrom+":"+i[Ne].widthCalculationMethod}function Fe(Ne,ct){function mt(){function nt(he){i[dt][he]!==1/0&&i[dt][he]!==0&&(Ne.style[he]=i[dt][he]+"px",k(dt,"Set "+he+" = "+i[dt][he]+"px"))}function te(he){if(i[dt]["min"+he]>i[dt]["max"+he])throw new Error("Value for min"+he+" can not be greater than max"+he)}te("Height"),te("Width"),nt("maxHeight"),nt("minHeight"),nt("maxWidth"),nt("minWidth")}function Ct(){var nt=ct&&ct.id||o.id+b++;return document.getElementById(nt)!==null&&(nt=nt+b++),nt}function Ue(nt){return nt===""&&(Ne.id=nt=Ct(),P=(ct||{}).log,k(nt,"Added missing iframe ID: "+nt+" ("+Ne.src+")")),nt}function qe(){switch(k(dt,"IFrame scrolling "+(i[dt]&&i[dt].scrolling?"enabled":"disabled")+" for "+dt),Ne.style.overflow=(i[dt]&&i[dt].scrolling)===!1?"hidden":"auto",i[dt]&&i[dt].scrolling){case"omit":break;case!0:Ne.scrolling="yes";break;case!1:Ne.scrolling="no";break;default:Ne.scrolling=i[dt]?i[dt].scrolling:"no"}}function Ft(){(typeof(i[dt]&&i[dt].bodyMargin)=="number"||(i[dt]&&i[dt].bodyMargin)==="0")&&(i[dt].bodyMarginV1=i[dt].bodyMargin,i[dt].bodyMargin=""+i[dt].bodyMargin+"px")}function Wt(){var nt=i[dt]&&i[dt].firstRun,te=i[dt]&&i[dt].heightCalculationMethod in n;!nt&&te&&Ce({iframe:Ne,height:0,width:0,type:"init"})}function ne(){Function.prototype.bind&&i[dt]&&(i[dt].iframe.iFrameResizer={close:X.bind(null,i[dt].iframe),removeListeners:U.bind(null,i[dt].iframe),resize:oe.bind(null,"Window resize","resize",i[dt].iframe),moveToAnchor:function(nt){oe("Move to anchor","moveToAnchor:"+nt,i[dt].iframe,dt)},sendMessage:function(nt){nt=JSON.stringify(nt),oe("Send Message","message:"+nt,i[dt].iframe,dt)}})}function _e(nt){function te(){oe("iFrame.onload",nt,Ne,M,!0),Wt()}function he(He){if(Ne.parentNode){var Ae=new He(function(Ye){Ye.forEach(function(Xe){var st=Array.prototype.slice.call(Xe.removedNodes);st.forEach(function(ce){ce===Ne&&X(Ne)})})});Ae.observe(Ne.parentNode,{childList:!0})}}var xe=c();xe&&he(xe),l(Ne,"load",te),oe("init",nt,Ne,M,!0)}function tt(nt){if(typeof nt!="object")throw new TypeError("Options is not an object")}function Dt(nt){for(var te in o)o.hasOwnProperty(te)&&(i[dt][te]=nt.hasOwnProperty(te)?nt[te]:o[te])}function vt(nt){return nt===""||nt==="file://"?"*":nt}function Rt(nt){nt=nt||{},i[dt]={firstRun:!0,iframe:Ne,remoteHost:Ne.src.split("/").slice(0,3).join("/")},tt(nt),Dt(nt),i[dt]&&(i[dt].targetOrigin=i[dt].checkOrigin===!0?vt(i[dt].remoteHost):"*")}function At(){return dt in i&&"iFrameResizer"in Ne}var dt=Ue(Ne.id);At()?G(dt,"Ignored iFrame, already setup."):(Rt(ct),qe(),mt(),Ft(),_e(me(dt)),ne())}function et(Ne,ct){u===null&&(u=setTimeout(function(){u=null,Ne()},ct))}var ft={};function ze(Ne,ct,mt){ft[mt]||(ft[mt]=setTimeout(function(){ft[mt]=null,Ne()},ct))}function bt(){function Ne(){function Ue(Ft){function Wt(_e){return(i[Ft]&&i[Ft].iframe.style[_e])==="0px"}function ne(_e){return _e.offsetParent!==null}i[Ft]&&ne(i[Ft].iframe)&&(Wt("height")||Wt("width"))&&oe("Visibility change","resize",i[Ft].iframe,Ft)}for(var qe in i)Ue(qe)}function ct(Ue){k("window","Mutation observed: "+Ue[0].target+" "+Ue[0].type),et(Ne,16)}function mt(){var Ue=document.querySelector("body"),qe={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},Ft=new Ct(ct);Ft.observe(Ue,qe)}var Ct=c();Ct&&mt()}function St(Ne){function ct(){Et("Window "+Ne,"resize")}k("window","Trigger event: "+Ne),et(ct,16)}function Le(){function Ne(){Et("Tab Visable","resize")}document.visibilityState!=="hidden"&&(k("document","Trigger event: Visiblity change"),et(Ne,16))}function Et(Ne,ct){function mt(Ue){return i[Ue]&&i[Ue].resizeFrom==="parent"&&i[Ue].autoResize&&!i[Ue].firstRun}for(var Ct in i)mt(Ct)&&oe(Ne,ct,document.getElementById(Ct),Ct)}function Mt(){l(window,"message",T),l(window,"resize",function(){St("resize")}),l(document,"visibilitychange",Le),l(document,"-webkit-visibilitychange",Le),l(window,"focusin",function(){St("focus")}),l(window,"focus",function(){St("focus")})}function at(){function Ne(Ct,Ue){function qe(){if(Ue.tagName){if(Ue.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected <IFRAME> tag, found <"+Ue.tagName+">")}else throw new TypeError("Object is not a valid DOM element")}Ue&&(qe(),Fe(Ue,Ct),mt.push(Ue))}function ct(Ct){Ct&&Ct.enablePublicMethods&&G("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var mt;return d(),Mt(),function(Ue,qe){switch(mt=[],ct(Ue),typeof qe){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(qe||"iframe"),Ne.bind(M,Ue));break;case"object":Ne(Ue,qe);break;default:throw new TypeError("Unexpected data type ("+typeof qe+")")}return mt}}function Ot(Ne){Ne.fn?Ne.fn.iFrameResize||(Ne.fn.iFrameResize=function(mt){function Ct(Ue,qe){Fe(qe,mt)}return this.filter("iframe").each(Ct).end()}):j("","Unable to bind to jQuery, it is not fully loaded.")}window.jQuery&&Ot(window.jQuery),H.exports=at(),window.iFrameResize=window.iFrameResize||at()})()})(Dl);var zd=Dl.exports,Tl={exports:{}};(function(H){(function(M){if(typeof window>"u")return;var b=!0,P=10,B="",m=0,t="",p=null,w="",g=!1,E={resize:1,click:1},n=128,i=!0,u=1,o="bodyOffset",c=o,l=!0,a="",d={},h=32,v=null,C=!1,k="[iFrameSizer]",j=k.length,G="",N={max:1,min:1,bodyScroll:1,documentElementScroll:1},T="child",A=!0,U=window.parent,X="*",Q=0,re=!1,ge=null,Ce=16,pe=1,ie="scroll",oe=ie,me=window,Fe=function(){qe("MessageCallback function not defined")},et=function(){},ft=function(){},ze={height:function(){return qe("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return qe("Custom width calculation function not defined"),document.body.scrollWidth}},bt={},St=!1,Le=!1;function Et(){}try{var Mt=Object.create({},{passive:{get:function(){St=!0}},once:{get:function(){Le=!0}}});window.addEventListener("test",Et,Mt),window.removeEventListener("test",Et,Mt)}catch{}function at(We,Ke,ht,Tt){"addEventListener"in window?We.addEventListener(Ke,ht,St?Tt||{}:!1):"attachEvent"in window&&We.attachEvent("on"+Ke,ht)}function Ot(We,Ke,ht){"removeEventListener"in window?We.removeEventListener(Ke,ht,!1):"detachEvent"in window&&We.detachEvent("on"+Ke,ht)}function Ne(We){return We.charAt(0).toUpperCase()+We.slice(1)}function ct(We){var Ke,ht,Tt,kt=null,Ht=0,er=function(){Ht=mt(),kt=null,Tt=We.apply(Ke,ht),kt||(Ke=ht=null)};return function(){var or=mt();Ht||(Ht=or);var Vt=Ce-(or-Ht);return Ke=this,ht=arguments,Vt<=0||Vt>Ce?(kt&&(clearTimeout(kt),kt=null),Ht=or,Tt=We.apply(Ke,ht),kt||(Ke=ht=null)):kt||(kt=setTimeout(er,Vt)),Tt}}var mt=Date.now||function(){return new Date().getTime()};function Ct(We){return k+"["+G+"] "+We}function Ue(We){C&&typeof window.console=="object"&&console.log(Ct(We))}function qe(We){typeof window.console=="object"&&console.warn(Ct(We))}function Ft(){Wt(),Ue("Initialising iFrame ("+location.href+")"),ne(),Dt(),tt("background",B),tt("padding",w),st(),nt(),te(),vt(),we(),he(),d=ce(),yt("init","Init message from host page"),et()}function Wt(){function We(ht){return ht==="true"}var Ke=a.substr(j).split(":");G=Ke[0],m=M!==Ke[1]?Number(Ke[1]):m,g=M!==Ke[2]?We(Ke[2]):g,C=M!==Ke[3]?We(Ke[3]):C,h=M!==Ke[4]?Number(Ke[4]):h,b=M!==Ke[6]?We(Ke[6]):b,t=Ke[7],c=M!==Ke[8]?Ke[8]:c,B=Ke[9],w=Ke[10],Q=M!==Ke[11]?Number(Ke[11]):Q,d.enable=M!==Ke[12]?We(Ke[12]):!1,T=M!==Ke[13]?Ke[13]:T,oe=M!==Ke[14]?Ke[14]:oe}function ne(){function We(){var ht=window.iFrameResizer;Ue("Reading data from page: "+JSON.stringify(ht)),Fe="messageCallback"in ht?ht.messageCallback:Fe,et="readyCallback"in ht?ht.readyCallback:et,X="targetOrigin"in ht?ht.targetOrigin:X,c="heightCalculationMethod"in ht?ht.heightCalculationMethod:c,oe="widthCalculationMethod"in ht?ht.widthCalculationMethod:oe}function Ke(ht,Tt){return typeof ht=="function"&&(Ue("Setup custom "+Tt+"CalcMethod"),ze[Tt]=ht,ht="custom"),ht}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(We(),c=Ke(c,"height"),oe=Ke(oe,"width")),Ue("TargetOrigin for parent set to: "+X)}function _e(We,Ke){return Ke.indexOf("-")!==-1&&(qe("Negative CSS value ignored for "+We),Ke=""),Ke}function tt(We,Ke){M!==Ke&&Ke!==""&&Ke!=="null"&&(document.body.style[We]=Ke,Ue("Body "+We+' set to "'+Ke+'"'))}function Dt(){M===t&&(t=m+"px"),tt("margin",_e("margin",t))}function vt(){document.documentElement.style.height="",document.body.style.height="",Ue('HTML & body height set to "auto"')}function Rt(We){var Ke={add:function(ht){function Tt(){yt(We.eventName,We.eventType)}bt[ht]=Tt,at(window,ht,Tt,{passive:!0})},remove:function(ht){var Tt=bt[ht];delete bt[ht],Ot(window,ht,Tt)}};We.eventNames&&Array.prototype.map?(We.eventName=We.eventNames[0],We.eventNames.map(Ke[We.method])):Ke[We.method](We.eventName),Ue(Ne(We.method)+" event listener: "+We.eventType)}function At(We){Rt({method:We,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),Rt({method:We,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),Rt({method:We,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),Rt({method:We,eventType:"Input",eventName:"input"}),Rt({method:We,eventType:"Mouse Up",eventName:"mouseup"}),Rt({method:We,eventType:"Mouse Down",eventName:"mousedown"}),Rt({method:We,eventType:"Orientation Change",eventName:"orientationchange"}),Rt({method:We,eventType:"Print",eventName:["afterprint","beforeprint"]}),Rt({method:We,eventType:"Ready State Change",eventName:"readystatechange"}),Rt({method:We,eventType:"Touch Start",eventName:"touchstart"}),Rt({method:We,eventType:"Touch End",eventName:"touchend"}),Rt({method:We,eventType:"Touch Cancel",eventName:"touchcancel"}),Rt({method:We,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),Rt({method:We,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),Rt({method:We,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),T==="child"&&Rt({method:We,eventType:"IFrame Resized",eventName:"resize"})}function dt(We,Ke,ht,Tt){return Ke!==We&&(We in ht||(qe(We+" is not a valid option for "+Tt+"CalculationMethod."),We=Ke),Ue(Tt+' calculation method set to "'+We+'"')),We}function nt(){c=dt(c,o,Sr,"height")}function te(){oe=dt(oe,ie,kr,"width")}function he(){b===!0?(At("add"),ot()):Ue("Auto Resize disabled")}function xe(){Ue("Disable outgoing messages"),A=!1}function He(){Ue("Remove event listener: Message"),Ot(window,"message",qt)}function Ae(){p!==null&&p.disconnect()}function Ye(){At("remove"),Ae(),clearInterval(v)}function Xe(){xe(),He(),b===!0&&Ye()}function st(){var We=document.createElement("div");We.style.clear="both",We.style.display="block",document.body.appendChild(We)}function ce(){function We(){return{x:window.pageXOffset!==M?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==M?window.pageYOffset:document.documentElement.scrollTop}}function Ke(Vt){var vr=Vt.getBoundingClientRect(),Gt=We();return{x:parseInt(vr.left,10)+parseInt(Gt.x,10),y:parseInt(vr.top,10)+parseInt(Gt.y,10)}}function ht(Vt){function vr(Lr){var rn=Ke(Lr);Ue("Moving to in page link (#"+Gt+") at x: "+rn.x+" y: "+rn.y),Ur(rn.y,rn.x,"scrollToOffset")}var Gt=Vt.split("#")[1]||Vt,Pt=decodeURIComponent(Gt),br=document.getElementById(Pt)||document.getElementsByName(Pt)[0];M!==br?vr(br):(Ue("In page link (#"+Gt+") not found in iFrame, so sending to parent"),Ur(0,0,"inPageLink","#"+Gt))}function Tt(){location.hash!==""&&location.hash!=="#"&&ht(location.href)}function kt(){function Vt(vr){function Gt(Pt){Pt.preventDefault(),ht(this.getAttribute("href"))}vr.getAttribute("href")!=="#"&&at(vr,"click",Gt)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),Vt)}function Ht(){at(window,"hashchange",Tt)}function er(){setTimeout(Tt,n)}function or(){Array.prototype.forEach&&document.querySelectorAll?(Ue("Setting up location.hash handlers"),kt(),Ht(),er()):qe("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return d.enable?or():Ue("In page linking not enabled"),{findTarget:ht}}function we(){Ue("Enable public methods"),me.parentIFrame={autoResize:function(Ke){return Ke===!0&&b===!1?(b=!0,he()):Ke===!1&&b===!0&&(b=!1,Ye()),b},close:function(){Ur(0,0,"close"),Xe()},getId:function(){return G},getPageInfo:function(Ke){typeof Ke=="function"?(ft=Ke,Ur(0,0,"pageInfo")):(ft=function(){},Ur(0,0,"pageInfoStop"))},moveToAnchor:function(Ke){d.findTarget(Ke)},reset:function(){Wr("parentIFrame.reset")},scrollTo:function(Ke,ht){Ur(ht,Ke,"scrollTo")},scrollToOffset:function(Ke,ht){Ur(ht,Ke,"scrollToOffset")},sendMessage:function(Ke,ht){Ur(0,0,"message",JSON.stringify(Ke),ht)},setHeightCalculationMethod:function(Ke){c=Ke,nt()},setWidthCalculationMethod:function(Ke){oe=Ke,te()},setTargetOrigin:function(Ke){Ue("Set targetOrigin: "+Ke),X=Ke},size:function(Ke,ht){var Tt=""+(Ke||"")+(ht?","+ht:"");yt("size","parentIFrame.size("+Tt+")",Ke,ht)}}}function Me(){h!==0&&(Ue("setInterval: "+h+"ms"),v=setInterval(function(){yt("interval","setInterval: "+h)},Math.abs(h)))}function Ze(){function We(Pt){function br(Lr){Lr.complete===!1&&(Ue("Attach listeners to "+Lr.src),Lr.addEventListener("load",kt,!1),Lr.addEventListener("error",Ht,!1),Vt.push(Lr))}Pt.type==="attributes"&&Pt.attributeName==="src"?br(Pt.target):Pt.type==="childList"&&Array.prototype.forEach.call(Pt.target.querySelectorAll("img"),br)}function Ke(Pt){Vt.splice(Vt.indexOf(Pt),1)}function ht(Pt){Ue("Remove listeners from "+Pt.src),Pt.removeEventListener("load",kt,!1),Pt.removeEventListener("error",Ht,!1),Ke(Pt)}function Tt(Pt,br,Lr){ht(Pt.target),yt(br,Lr+": "+Pt.target.src,M,M)}function kt(Pt){Tt(Pt,"imageLoad","Image loaded")}function Ht(Pt){Tt(Pt,"imageLoadFailed","Image load failed")}function er(Pt){yt("mutationObserver","mutationObserver: "+Pt[0].target+" "+Pt[0].type),Pt.forEach(We)}function or(){var Pt=document.querySelector("body"),br={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return Gt=new vr(er),Ue("Create body MutationObserver"),Gt.observe(Pt,br),Gt}var Vt=[],vr=window.MutationObserver||window.WebKitMutationObserver,Gt=or();return{disconnect:function(){"disconnect"in Gt&&(Ue("Disconnect body MutationObserver"),Gt.disconnect(),Vt.forEach(ht))}}}function ot(){var We=0>h;window.MutationObserver||window.WebKitMutationObserver?We?Me():p=Ze():(Ue("MutationObserver not supported in this browser!"),Me())}function _t(We,Ke){function ht(kt){var Ht=/^\d+(px)?$/i;if(Ht.test(kt))return parseInt(kt,P);var er=Ke.style.left,or=Ke.runtimeStyle.left;return Ke.runtimeStyle.left=Ke.currentStyle.left,Ke.style.left=kt||0,kt=Ke.style.pixelLeft,Ke.style.left=er,Ke.runtimeStyle.left=or,kt}var Tt=0;return Ke=Ke||document.body,"defaultView"in document&&"getComputedStyle"in document.defaultView?(Tt=document.defaultView.getComputedStyle(Ke,null),Tt=Tt!==null?Tt[We]:0):Tt=ht(Ke.currentStyle[We]),parseInt(Tt,P)}function Ut(We){We>Ce/2&&(Ce=2*We,Ue("Event throttle increased to "+Ce+"ms"))}function nr(We,Ke){for(var ht=Ke.length,Tt=0,kt=0,Ht=Ne(We),er=mt(),or=0;or<ht;or++)Tt=Ke[or].getBoundingClientRect()[We]+_t("margin"+Ht,Ke[or]),Tt>kt&&(kt=Tt);return er=mt()-er,Ue("Parsed "+ht+" HTML elements"),Ue("Element position calculated in "+er+"ms"),Ut(er),kt}function pr(We){return[We.bodyOffset(),We.bodyScroll(),We.documentElementOffset(),We.documentElementScroll()]}function lr(We,Ke){function ht(){return qe("No tagged elements ("+Ke+") found on page"),document.querySelectorAll("body *")}var Tt=document.querySelectorAll("["+Ke+"]");return Tt.length===0&&ht(),nr(We,Tt)}function Tr(){return document.querySelectorAll("body *")}var Sr={bodyOffset:function(){return document.body.offsetHeight+_t("marginTop")+_t("marginBottom")},offset:function(){return Sr.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return ze.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,pr(Sr))},min:function(){return Math.min.apply(null,pr(Sr))},grow:function(){return Sr.max()},lowestElement:function(){return Math.max(Sr.bodyOffset()||Sr.documentElementOffset(),nr("bottom",Tr()))},taggedElement:function(){return lr("bottom","data-iframe-height")}},kr={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return ze.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(kr.bodyScroll(),kr.documentElementScroll())},max:function(){return Math.max.apply(null,pr(kr))},min:function(){return Math.min.apply(null,pr(kr))},rightMostElement:function(){return nr("right",Tr())},taggedElement:function(){return lr("right","data-iframe-width")}};function En(We,Ke,ht,Tt){function kt(){u=Gt,pe=Pt,Ur(u,pe,We)}function Ht(){function br(Lr,rn){var sr=Math.abs(Lr-rn)<=Q;return!sr}return Gt=M!==ht?ht:Sr[c](),Pt=M!==Tt?Tt:kr[oe](),br(u,Gt)||g&&br(pe,Pt)}function er(){return!(We in{init:1,interval:1,size:1})}function or(){return c in N||g&&oe in N}function Vt(){Ue("No change in size detected")}function vr(){er()&&or()?Wr(Ke):We in{interval:1}||Vt()}var Gt,Pt;Ht()||We==="init"?($n(),kt()):vr()}var Rn=ct(En);function yt(We,Ke,ht,Tt){function kt(){We in{reset:1,resetPage:1,init:1}||Ue("Trigger event: "+Ke)}function Ht(){return re&&We in E}Ht()?Ue("Trigger event cancelled: "+We):(kt(),We==="init"?En(We,Ke,ht,Tt):Rn(We,Ke,ht,Tt))}function $n(){re||(re=!0,Ue("Trigger event lock on")),clearTimeout(ge),ge=setTimeout(function(){re=!1,Ue("Trigger event lock off"),Ue("--")},n)}function Hn(We){u=Sr[c](),pe=kr[oe](),Ur(u,pe,We)}function Wr(We){var Ke=c;c=o,Ue("Reset trigger event: "+We),$n(),Hn("reset"),c=Ke}function Ur(We,Ke,ht,Tt,kt){function Ht(){M===kt?kt=X:Ue("Message targetOrigin: "+kt)}function er(){var or=We+":"+Ke,Vt=G+":"+or+":"+ht+(M!==Tt?":"+Tt:"");Ue("Sending message to host page ("+Vt+")"),U.postMessage(k+Vt,kt)}A===!0&&(Ht(),er())}function qt(We){var Ke={init:function(){a=We.data,U=We.source,Ft(),i=!1,setTimeout(function(){l=!1},n)},reset:function(){l?Ue("Page reset ignored by init"):(Ue("Page size reset by host page"),Hn("resetPage"))},resize:function(){yt("resizeParent","Parent window requested size check")},moveToAnchor:function(){d.findTarget(kt())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var Gt=kt();Ue("PageInfoFromParent called from parent: "+Gt),ft(JSON.parse(Gt)),Ue(" --")},message:function(){var Gt=kt();Ue("MessageCallback called from parent: "+Gt),Fe(JSON.parse(Gt)),Ue(" --")}};function ht(){return k===(""+We.data).substr(0,j)}function Tt(){return We.data.split("]")[1].split(":")[0]}function kt(){return We.data.substr(We.data.indexOf(":")+1)}function Ht(){return!H.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype}function er(){return We.data.split(":")[2]in{true:1,false:1}}function or(){var vr=Tt();vr in Ke?Ke[vr]():!Ht()&&!er()&&qe("Unexpected message ("+We.data+")")}function Vt(){i===!1?or():er()?Ke.init():Ue('Ignored message of type "'+Tt()+'". Received before initialization.')}ht()&&Vt()}function gn(){document.readyState!=="loading"&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}at(window,"message",qt),at(window,"readystatechange",gn),gn()})()})(Tl);var Bd=Tl.exports;Cl.iframeResizer=zd;Cl.iframeResizerContentWindow=Bd;(function(H){(function(M){var b=[],P=!1,B=!1,m={interval:250,force_process:!1},t=M(window),p=[];function w(){return M(this).is(":appeared")}function g(){return!M(this).data("_appear_triggered")}function E(){B=!1;for(var i=0,u=b.length;i<u;i++){var o=M(b[i]).filter(w);if(o.filter(g).data("_appear_triggered",!0).trigger("appear",[o]),p[i]){var c=p[i].not(o);c.data("_appear_triggered",!1).trigger("disappear",[c])}p[i]=o}}function n(i){b.push(i),p.push()}M.expr.pseudos.appeared=M.expr.createPseudo(function(i){return function(u){var o=M(u);if(!o.is(":visible"))return!1;var c=t.scrollLeft(),l=t.scrollTop(),a=o.offset(),d=a.left,h=a.top;return h+o.height()>=l&&h-(o.data("appear-top-offset")||0)<=l+t.height()&&d+o.width()>=c&&d-(o.data("appear-left-offset")||0)<=c+t.width()}}),M.fn.extend({appear:function(i,u){return M.appear(this,u),this}}),M.extend({appear:function(i,u){var o=M.extend({},m,u||{});if(!P){var c=function(){B||(B=!0,setTimeout(E,o.interval))};M(window).scroll(c).resize(c),P=!0}o.force_process&&setTimeout(E,o.interval),n(i)},force_appear:function(){return P?(E(),!0):!1}})})(function(){return xi}())})();var Ml={exports:{}};/*! For license information please see gridstack-h5.js.LICENSE.txt */(function(H,M){(function(b,P){H.exports=P()})(self,function(){return(()=>{var b={21:(m,t,p)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackDD=void 0;const w=p(334),g=p(270),E=p(593);class n extends w.GridStackDDI{static get(){return w.GridStackDDI.get()}remove(o){return this.draggable(o,"destroy").resizable(o,"destroy"),o.gridstackNode&&delete o.gridstackNode._initDD,this}}function i(u,o){let c=u?u.gridstackNode:void 0;c&&c.grid&&(o?c._isAboutToRemove=!0:delete c._isAboutToRemove,o?u.classList.add("grid-stack-item-removing"):u.classList.remove("grid-stack-item-removing"))}t.GridStackDD=n,g.GridStack.prototype._setupAcceptWidget=function(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return n.get().droppable(this.el,"destroy"),this;let u,o,c,l=(a,d,h)=>{let v=d.gridstackNode;if(!v)return;let C=(h=h||d).getBoundingClientRect(),k=C.left-u.left,j=C.top-u.top,G={position:{top:j,left:k}};if(v._temporaryRemoved){if(v.x=Math.max(0,Math.round(k/c)),v.y=Math.max(0,Math.round(j/o)),delete v.autoPosition,this.engine.nodeBoundFix(v),!this.engine.willItFit(v)){if(v.autoPosition=!0,!this.engine.willItFit(v))return void n.get().off(d,"drag");v._willFitPos&&(E.Utils.copyPos(v,v._willFitPos),delete v._willFitPos)}this._onStartMoving(h,a,G,v,c,o)}else this._dragOrResize(h,a,G,v,c,o)};return n.get().droppable(this.el,{accept:a=>{let d=a.gridstackNode;if(d&&d.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let h=!0;if(typeof this.opts.acceptWidgets=="function")h=this.opts.acceptWidgets(a);else{let v=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;h=a.matches(v)}if(h&&d&&this.opts.maxRow){let v={w:d.w,h:d.h,minW:d.minW,minH:d.minH};h=this.engine.willItFit(v)}return h}}).on(this.el,"dropover",(a,d,h)=>{let v=d.gridstackNode;if(v&&v.grid===this&&!v._temporaryRemoved)return!1;v&&v.grid&&v.grid!==this&&!v._temporaryRemoved&&v.grid._leave(d,h);let C=this.el.getBoundingClientRect();u={top:C.top,left:C.left},c=this.cellWidth(),o=this.getCellHeight(!0),v||(v=this._readAttr(d)),v.grid||(v._isExternal=!0,d.gridstackNode=v),h=h||d;let k=v.w||Math.round(h.offsetWidth/c)||1,j=v.h||Math.round(h.offsetHeight/o)||1;return v.grid&&v.grid!==this?(d._gridstackNodeOrig||(d._gridstackNodeOrig=v),d.gridstackNode=v=Object.assign(Object.assign({},v),{w:k,h:j,grid:this}),this.engine.cleanupNode(v).nodeBoundFix(v),v._initDD=v._isExternal=v._temporaryRemoved=!0):(v.w=k,v.h=j,v._temporaryRemoved=!0),i(v.el,!1),n.get().on(d,"drag",l),l(a,d,h),!1}).on(this.el,"dropout",(a,d,h)=>{let v=d.gridstackNode;return v.grid&&v.grid!==this||this._leave(d,h),!1}).on(this.el,"drop",(a,d,h)=>{let v=d.gridstackNode;if(v&&v.grid===this&&!v._isExternal)return!1;let C=!!this.placeholder.parentElement;this.placeholder.remove();let k=d._gridstackNodeOrig;if(delete d._gridstackNodeOrig,C&&k&&k.grid&&k.grid!==this){let j=k.grid;j.engine.removedNodes.push(k),j._triggerRemoveEvent()}return!!v&&(C&&(this.engine.cleanupNode(v),v.grid=this),n.get().off(d,"drag"),h!==d?(h.remove(),d.gridstackNode=k,C&&(d=d.cloneNode(!0))):(d.remove(),n.get().remove(d)),!!C&&(d.gridstackNode=v,v.el=d,E.Utils.copyPos(v,this._readAttr(this.placeholder)),E.Utils.removePositioningStyles(d),this._writeAttr(d,v),this.el.appendChild(d),this._updateContainerHeight(),this.engine.addedNodes.push(v),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped(Object.assign(Object.assign({},a),{type:"dropped"}),k&&k.grid?k:void 0,v),window.setTimeout(()=>{v.el&&v.el.parentElement?this._prepareDragDropByNode(v):this.engine.removeNode(v)}),!1))}),this},g.GridStack.prototype._setupRemoveDrop=function(){if(!this.opts.staticGrid&&typeof this.opts.removable=="string"){let u=document.querySelector(this.opts.removable);if(!u)return this;n.get().isDroppable(u)||n.get().droppable(u,this.opts.removableOptions).on(u,"dropover",(o,c)=>i(c,!0)).on(u,"dropout",(o,c)=>i(c,!1))}return this},g.GridStack.setupDragIn=function(u,o){let c,l;if(u&&(c=u,l=Object.assign(Object.assign({},{revert:"invalid",handle:".grid-stack-item-content",scroll:!1,appendTo:"body"}),o||{})),typeof c!="string")return;let a=n.get();E.Utils.getElements(c).forEach(d=>{a.isDraggable(d)||a.dragIn(d,l)})},g.GridStack.prototype._prepareDragDropByNode=function(u){let o=u.el,c=n.get();if(this.opts.staticGrid||(u.noMove||this.opts.disableDrag)&&(u.noResize||this.opts.disableResize))return u._initDD&&(c.remove(o),delete u._initDD),o.classList.add("ui-draggable-disabled","ui-resizable-disabled"),this;if(!u._initDD){let l,a,d=(C,k)=>{this._gsEventHandler[C.type]&&this._gsEventHandler[C.type](C,C.target),l=this.cellWidth(),a=this.getCellHeight(!0),this._onStartMoving(o,C,k,u,l,a)},h=(C,k)=>{this._dragOrResize(o,C,k,u,l,a)},v=C=>{this.placeholder.remove(),delete u._moving,delete u._lastTried;let k=C.target;if(k.gridstackNode&&k.gridstackNode.grid===this){if(u.el=k,u._isAboutToRemove){let j=o.gridstackNode.grid;j._gsEventHandler[C.type]&&j._gsEventHandler[C.type](C,k),c.remove(o),j.engine.removedNodes.push(u),j._triggerRemoveEvent(),delete o.gridstackNode,delete u.el,o.remove()}else u._temporaryRemoved?(E.Utils.removePositioningStyles(k),E.Utils.copyPos(u,u._orig),this._writePosAttr(k,u),this.engine.addNode(u)):(E.Utils.removePositioningStyles(k),this._writePosAttr(k,u)),this._gsEventHandler[C.type]&&this._gsEventHandler[C.type](C,k);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate()}};c.draggable(o,{start:d,stop:v,drag:h}).resizable(o,{start:d,stop:v,resize:h}),u._initDD=!0}return u.noMove||this.opts.disableDrag?(c.draggable(o,"disable"),o.classList.add("ui-draggable-disabled")):(c.draggable(o,"enable"),o.classList.remove("ui-draggable-disabled")),u.noResize||this.opts.disableResize?(c.resizable(o,"disable"),o.classList.add("ui-resizable-disabled")):(c.resizable(o,"enable"),o.classList.remove("ui-resizable-disabled")),this},g.GridStack.prototype._onStartMoving=function(u,o,c,l,a,d){if(this.engine.cleanNodes().beginUpdate(l),this._writePosAttr(this.placeholder,l),this.el.appendChild(this.placeholder),l.el=this.placeholder,l._lastUiPosition=c.position,l._prevYPix=c.position.top,l._moving=o.type==="dragstart",delete l._lastTried,o.type==="dropover"&&l._temporaryRemoved&&(this.engine.addNode(l),l._moving=!0),this.engine.cacheRects(a,d,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),o.type==="resizestart"){let h=n.get().resizable(u,"option","minWidth",a*(l.minW||1)).resizable(u,"option","minHeight",d*(l.minH||1));l.maxW&&h.resizable(u,"option","maxWidth",a*l.maxW),l.maxH&&h.resizable(u,"option","maxHeight",d*l.maxH)}},g.GridStack.prototype._leave=function(u,o){let c=u.gridstackNode;c&&(n.get().off(u,"drag"),c._temporaryRemoved||(c._temporaryRemoved=!0,this.engine.removeNode(c),c.el=c._isExternal&&o?o:u,this.opts.removable===!0&&i(u,!0),u._gridstackNodeOrig?(u.gridstackNode=u._gridstackNodeOrig,delete u._gridstackNodeOrig):c._isExternal&&(delete c.el,delete u.gridstackNode,this.engine.restoreInitial())))},g.GridStack.prototype._dragOrResize=function(u,o,c,l,a,d){let h,v=Object.assign({},l._orig);const C=this.opts.marginLeft,k=this.opts.marginRight,j=this.opts.marginTop,G=this.opts.marginBottom;if(o.type==="drag"){if(l._temporaryRemoved)return;let T=c.position.top-l._prevYPix;l._prevYPix=c.position.top,E.Utils.updateScrollPosition(u,c.position,T);let A=c.position.left+(c.position.left>l._lastUiPosition.left?-k:C),U=c.position.top+(c.position.top>l._lastUiPosition.top?-G:j);v.x=Math.round(A/a),v.y=Math.round(U/d);let X=this._extraDragRow;if(this.engine.collide(l,v)){let Q=this.getRow(),re=Math.max(0,v.y+l.h-Q);this.opts.maxRow&&Q+re>this.opts.maxRow&&(re=Math.max(0,this.opts.maxRow-Q)),this._extraDragRow=re}else this._extraDragRow=0;if(this._extraDragRow!==X&&this._updateContainerHeight(),l.x===v.x&&l.y===v.y)return}else if(o.type==="resize"){if(v.x<0||(E.Utils.updateScrollResize(o,u,d),v.w=Math.round((c.size.width-C)/a),v.h=Math.round((c.size.height-j)/d),l.w===v.w&&l.h===v.h)||l._lastTried&&l._lastTried.w===v.w&&l._lastTried.h===v.h)return;let T=c.position.left+C,A=c.position.top+j;v.x=Math.round(T/a),v.y=Math.round(A/d),h=!0}l._lastTried=v;let N={x:c.position.left+C,y:c.position.top+j,w:(c.size?c.size.width:l.w*a)-C-k,h:(c.size?c.size.height:l.h*d)-j-G};if(this.engine.moveNodeCheck(l,Object.assign(Object.assign({},v),{cellWidth:a,cellHeight:d,rect:N}))){l._lastUiPosition=c.position,this.engine.cacheRects(a,d,j,k,G,C),delete l._skipDown,h&&l.subGrid&&l.subGrid.onParentResize(),this._extraDragRow=0,this._updateContainerHeight();let T=o.target;this._writePosAttr(T,l),this._gsEventHandler[o.type]&&this._gsEventHandler[o.type](o,T)}},g.GridStack.prototype.movable=function(u,o){return this.opts.staticGrid||g.GridStack.getElements(u).forEach(c=>{let l=c.gridstackNode;l&&(o?delete l.noMove:l.noMove=!0,this._prepareDragDropByNode(l))}),this},g.GridStack.prototype.resizable=function(u,o){return this.opts.staticGrid||g.GridStack.getElements(u).forEach(c=>{let l=c.gridstackNode;l&&(o?delete l.noResize:l.noResize=!0,this._prepareDragDropByNode(l))}),this},g.GridStack.prototype.disable=function(){if(!this.opts.staticGrid)return this.enableMove(!1),this.enableResize(!1),this._triggerEvent("disable"),this},g.GridStack.prototype.enable=function(){if(!this.opts.staticGrid)return this.enableMove(!0),this.enableResize(!0),this._triggerEvent("enable"),this},g.GridStack.prototype.enableMove=function(u){return this.opts.staticGrid||(this.opts.disableDrag=!u,this.engine.nodes.forEach(o=>this.movable(o.el,u))),this},g.GridStack.prototype.enableResize=function(u){return this.opts.staticGrid||(this.opts.disableResize=!u,this.engine.nodes.forEach(o=>this.resizable(o.el,u))),this}},334:(m,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackDDI=void 0;class p{static registerPlugin(g){return p.ddi=new g,p.ddi}static get(){return p.ddi||p.registerPlugin(p)}remove(g){return this}}t.GridStackDDI=p},62:(m,t,p)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackEngine=void 0;const w=p(593);class g{constructor(n={}){this.addedNodes=[],this.removedNodes=[],this.column=n.column||12,this.onChange=n.onChange,this._float=n.float,this.maxRow=n.maxRow,this.nodes=n.nodes||[]}batchUpdate(){return this.batchMode||(this.batchMode=!0,this._prevFloat=this._float,this._float=!0,this.saveInitial()),this}commit(){return this.batchMode?(this.batchMode=!1,this._float=this._prevFloat,delete this._prevFloat,this._packNodes()._notify()):this}_useEntireRowArea(n,i){return!this.float&&!this._hasLocked&&(!n._moving||n._skipDown||i.y<=n.y)}_fixCollisions(n,i=n,u,o={}){if(this._sortNodes(-1),!(u=u||this.collide(n,i)))return!1;if(n._moving&&!o.nested&&!this.float&&this.swap(n,u))return!0;let c=i;this._useEntireRowArea(n,i)&&(c={x:0,w:this.column,y:i.y,h:i.h},u=this.collide(n,c,o.skip));let l=!1,a={nested:!0,pack:!1};for(;u=u||this.collide(n,c,o.skip);){let d;if(u.locked||n._moving&&!n._skipDown&&i.y>n.y&&!this.float&&(!this.collide(u,Object.assign(Object.assign({},u),{y:n.y}),n)||!this.collide(u,Object.assign(Object.assign({},u),{y:i.y-u.h}),n))?(n._skipDown=n._skipDown||i.y>n.y,d=this.moveNode(n,Object.assign(Object.assign(Object.assign({},i),{y:u.y+u.h}),a)),u.locked&&d?w.Utils.copyPos(i,n):!u.locked&&d&&o.pack&&(this._packNodes(),i.y=u.y+u.h,w.Utils.copyPos(n,i)),l=l||d):d=this.moveNode(u,Object.assign(Object.assign(Object.assign({},u),{y:i.y+i.h,skip:n}),a)),!d)return l;u=void 0}return l}collide(n,i=n,u){return this.nodes.find(o=>o!==n&&o!==u&&w.Utils.isIntercepted(o,i))}collideAll(n,i=n,u){return this.nodes.filter(o=>o!==n&&o!==u&&w.Utils.isIntercepted(o,i))}collideCoverage(n,i,u){if(!i.rect||!n._rect)return;let o,c=n._rect,l=Object.assign({},i.rect);return l.y>c.y?(l.h+=l.y-c.y,l.y=c.y):l.h+=c.y-l.y,l.x>c.x?(l.w+=l.x-c.x,l.x=c.x):l.w+=c.x-l.x,u.forEach(a=>{if(a.locked||!a._rect)return;let d=a._rect,h=Number.MAX_VALUE,v=Number.MAX_VALUE,C=.5;c.y<d.y?h=(l.y+l.h-d.y)/d.h:c.y+c.h>d.y+d.h&&(h=(d.y+d.h-l.y)/d.h),c.x<d.x?v=(l.x+l.w-d.x)/d.w:c.x+c.w>d.x+d.w&&(v=(d.x+d.w-l.x)/d.w);let k=Math.min(v,h);k>C&&(C=k,o=a)}),o}cacheRects(n,i,u,o,c,l){return this.nodes.forEach(a=>a._rect={y:a.y*i+u,x:a.x*n+l,w:a.w*n-l-o,h:a.h*i-u-c}),this}swap(n,i){if(!i||i.locked||!n||n.locked)return!1;function u(){let c=i.x,l=i.y;return i.x=n.x,i.y=n.y,n.h!=i.h?(n.x=c,n.y=i.y+i.h):(n.x=c,n.y=l),n._dirty=i._dirty=!0,!0}let o;if(n.w===i.w&&n.h===i.h&&(n.x===i.x||n.y===i.y)&&(o=w.Utils.isTouching(n,i)))return u();if(o!==!1){if(n.w===i.w&&n.x===i.x&&(o||w.Utils.isTouching(n,i))){if(i.y<n.y){let c=n;n=i,i=c}return u()}return!1}}isAreaEmpty(n,i,u,o){let c={x:n||0,y:i||0,w:u||1,h:o||1};return!this.collide(c)}compact(){if(this.nodes.length===0)return this;this.batchUpdate()._sortNodes();let n=this.nodes;return this.nodes=[],n.forEach(i=>{i.locked||(i.autoPosition=!0),this.addNode(i,!1),i._dirty=!0}),this.commit()}set float(n){this._float!==n&&(this._float=n||!1,n||this._packNodes()._notify())}get float(){return this._float||!1}_sortNodes(n){return this.nodes=w.Utils.sort(this.nodes,n,this.column),this}_packNodes(){return this._sortNodes(),this.float?this.nodes.forEach(n=>{if(n._updating||n._orig===void 0||n.y===n._orig.y)return;let i=n.y;for(;i>n._orig.y;)--i,this.collide(n,{x:n.x,y:i,w:n.w,h:n.h})||(n._dirty=!0,n.y=i)}):this.nodes.forEach((n,i)=>{if(!n.locked)for(;n.y>0;){let u=i===0?0:n.y-1;if(i!==0&&this.collide(n,{x:n.x,y:u,w:n.w,h:n.h}))break;n._dirty=n.y!==u,n.y=u}}),this}prepareNode(n,i){(n=n||{})._id=n._id||g._idSeq++,n.x!==void 0&&n.y!==void 0&&n.x!==null&&n.y!==null||(n.autoPosition=!0);let u={x:0,y:0,w:1,h:1};return w.Utils.defaults(n,u),n.autoPosition||delete n.autoPosition,n.noResize||delete n.noResize,n.noMove||delete n.noMove,typeof n.x=="string"&&(n.x=Number(n.x)),typeof n.y=="string"&&(n.y=Number(n.y)),typeof n.w=="string"&&(n.w=Number(n.w)),typeof n.h=="string"&&(n.h=Number(n.h)),isNaN(n.x)&&(n.x=u.x,n.autoPosition=!0),isNaN(n.y)&&(n.y=u.y,n.autoPosition=!0),isNaN(n.w)&&(n.w=u.w),isNaN(n.h)&&(n.h=u.h),this.nodeBoundFix(n,i)}nodeBoundFix(n,i){return n.maxW&&(n.w=Math.min(n.w,n.maxW)),n.maxH&&(n.h=Math.min(n.h,n.maxH)),n.minW&&n.minW<=this.column&&(n.w=Math.max(n.w,n.minW)),n.minH&&(n.h=Math.max(n.h,n.minH)),n.w>this.column?(this.column<12&&(n.w=Math.min(12,n.w),this.cacheOneLayout(n,12)),n.w=this.column):n.w<1&&(n.w=1),this.maxRow&&n.h>this.maxRow?n.h=this.maxRow:n.h<1&&(n.h=1),n.x<0&&(n.x=0),n.y<0&&(n.y=0),n.x+n.w>this.column&&(i?n.w=this.column-n.x:n.x=this.column-n.w),this.maxRow&&n.y+n.h>this.maxRow&&(i?n.h=this.maxRow-n.y:n.y=this.maxRow-n.h),n}getDirtyNodes(n){return n?this.nodes.filter(i=>i._dirty&&!w.Utils.samePos(i,i._orig)):this.nodes.filter(i=>i._dirty)}_notify(n,i=!0){if(this.batchMode)return this;let u=(n=n===void 0?[]:Array.isArray(n)?n:[n]).concat(this.getDirtyNodes());return this.onChange&&this.onChange(u,i),this}cleanNodes(){return this.batchMode||this.nodes.forEach(n=>{delete n._dirty,delete n._lastTried}),this}saveInitial(){return this.nodes.forEach(n=>{n._orig=w.Utils.copyPos({},n),delete n._dirty}),this._hasLocked=this.nodes.some(n=>n.locked),this}restoreInitial(){return this.nodes.forEach(n=>{w.Utils.samePos(n,n._orig)||(w.Utils.copyPos(n,n._orig),n._dirty=!0)}),this._notify(),this}addNode(n,i=!1){let u;if(u=this.nodes.find(o=>o._id===n._id))return u;if(delete(n=this.prepareNode(n))._temporaryRemoved,delete n._removeDOM,n.autoPosition){this._sortNodes();for(let o=0;;++o){let c=o%this.column,l=Math.floor(o/this.column);if(c+n.w>this.column)continue;let a={x:c,y:l,w:n.w,h:n.h};if(!this.nodes.find(d=>w.Utils.isIntercepted(a,d))){n.x=c,n.y=l,delete n.autoPosition;break}}}return this.nodes.push(n),i&&this.addedNodes.push(n),this._fixCollisions(n),this._packNodes()._notify(),n}removeNode(n,i=!0,u=!1){return this.nodes.find(o=>o===n)?(u&&this.removedNodes.push(n),i&&(n._removeDOM=!0),this.nodes=this.nodes.filter(o=>o!==n),this._packNodes()._notify(n)):this}removeAll(n=!0){return delete this._layouts,this.nodes.length===0?this:(n&&this.nodes.forEach(i=>i._removeDOM=!0),this.removedNodes=this.nodes,this.nodes=[],this._notify(this.removedNodes))}moveNodeCheck(n,i){if(!this.changedPosConstrain(n,i))return!1;if(i.pack=!0,!this.maxRow)return this.moveNode(n,i);let u,o=new g({column:this.column,float:this.float,nodes:this.nodes.map(l=>l===n?(u=Object.assign({},l),u):Object.assign({},l))});if(!u)return!1;let c=o.moveNode(u,i);if(this.maxRow&&c&&(c=o.getRow()<=this.maxRow,!c)){let l=this.collide(n,i);if(l&&this.swap(n,l))return this._notify(),!0}return!!c&&(o.nodes.filter(l=>l._dirty).forEach(l=>{let a=this.nodes.find(d=>d._id===l._id);a&&(w.Utils.copyPos(a,l),a._dirty=!0)}),this._notify(),!0)}willItFit(n){if(delete n._willFitPos,!this.maxRow)return!0;let i=new g({column:this.column,float:this.float,nodes:this.nodes.map(o=>Object.assign({},o))}),u=Object.assign({},n);return this.cleanupNode(u),delete u.el,delete u._id,delete u.content,delete u.grid,i.addNode(u),i.getRow()<=this.maxRow&&(n._willFitPos=w.Utils.copyPos({},u),!0)}changedPosConstrain(n,i){return i.w=i.w||n.w,i.h=i.h||n.h,n.x!==i.x||n.y!==i.y||(n.maxW&&(i.w=Math.min(i.w,n.maxW)),n.maxH&&(i.h=Math.min(i.h,n.maxH)),n.minW&&(i.w=Math.max(i.w,n.minW)),n.minH&&(i.h=Math.max(i.h,n.minH)),n.w!==i.w||n.h!==i.h)}moveNode(n,i){if(!n||!i)return!1;i.pack===void 0&&(i.pack=!0),typeof i.x!="number"&&(i.x=n.x),typeof i.y!="number"&&(i.y=n.y),typeof i.w!="number"&&(i.w=n.w),typeof i.h!="number"&&(i.h=n.h);let u=n.w!==i.w||n.h!==i.h,o=w.Utils.copyPos({},n,!0);if(w.Utils.copyPos(o,i),o=this.nodeBoundFix(o,u),w.Utils.copyPos(i,o),w.Utils.samePos(n,i))return!1;let c=w.Utils.copyPos({},n),l=o,a=this.collideAll(n,l,i.skip),d=!0;if(a.length){let h=n._moving&&!i.nested?this.collideCoverage(n,i,a):a[0];d=!!h&&!this._fixCollisions(n,o,h,i)}return d&&(n._dirty=!0,w.Utils.copyPos(n,o)),i.pack&&this._packNodes()._notify(),!w.Utils.samePos(n,c)}getRow(){return this.nodes.reduce((n,i)=>Math.max(n,i.y+i.h),0)}beginUpdate(n){return n._updating||(n._updating=!0,delete n._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){let n=this.nodes.find(i=>i._updating);return n&&(delete n._updating,delete n._skipDown),this}save(n=!0){let i=[];return this._sortNodes(),this.nodes.forEach(u=>{let o={};for(let c in u)c[0]!=="_"&&u[c]!==null&&u[c]!==void 0&&(o[c]=u[c]);delete o.grid,n||delete o.el,o.autoPosition||delete o.autoPosition,o.noResize||delete o.noResize,o.noMove||delete o.noMove,o.locked||delete o.locked,i.push(o)}),i}layoutsNodesChange(n){return!this._layouts||this._ignoreLayoutsNodeChange||this._layouts.forEach((i,u)=>{if(!i||u===this.column)return this;u<this.column?this._layouts[u]=void 0:n.forEach(o=>{if(!o._orig)return;let c=i.find(a=>a._id===o._id);if(!c)return;let l=u/this.column;o.y!==o._orig.y&&(c.y+=o.y-o._orig.y),o.x!==o._orig.x&&(c.x=Math.round(o.x*l)),o.w!==o._orig.w&&(c.w=Math.round(o.w*l))})}),this}updateNodeWidths(n,i,u,o="moveScale"){if(!this.nodes.length||n===i)return this;if(this.cacheLayout(this.nodes,n),i===1&&u&&u.length){let d=0;u.forEach(h=>{h.x=0,h.w=1,h.y=Math.max(h.y,d),d=h.y+h.h})}else u=w.Utils.sort(this.nodes,-1,n);let c=this._layouts[i]||[],l=this._layouts.length-1;c.length===0&&i>n&&i<l&&(c=this._layouts[l]||[],c.length&&(n=l,c.forEach(d=>{let h=u.findIndex(v=>v._id===d._id);h!==-1&&(u[h].x=d.x,u[h].y=d.y,u[h].w=d.w)}),c=[]));let a=[];if(c.forEach(d=>{let h=u.findIndex(v=>v._id===d._id);h!==-1&&(u[h].x=d.x,u[h].y=d.y,u[h].w=d.w,a.push(u[h]),u.splice(h,1))}),u.length)if(typeof o=="function")o(i,n,a,u);else{let d=i/n,h=o==="move"||o==="moveScale",v=o==="scale"||o==="moveScale";u.forEach(C=>{C.x=i===1?0:h?Math.round(C.x*d):Math.min(C.x,i-1),C.w=i===1||n===1?1:v?Math.round(C.w*d)||1:Math.min(C.w,i),a.push(C)}),u=[]}return a=w.Utils.sort(a,-1,i),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(),this.nodes=[],a.forEach(d=>{this.addNode(d,!1),d._dirty=!0},this),this.commit(),delete this._ignoreLayoutsNodeChange,this}cacheLayout(n,i,u=!1){let o=[];return n.forEach((c,l)=>{c._id=c._id||g._idSeq++,o[l]={x:c.x,y:c.y,w:c.w,_id:c._id}}),this._layouts=u?[]:this._layouts||[],this._layouts[i]=o,this}cacheOneLayout(n,i){n._id=n._id||g._idSeq++;let u={x:n.x,y:n.y,w:n.w,_id:n._id};this._layouts=this._layouts||[],this._layouts[i]=this._layouts[i]||[];let o=this._layouts[i].findIndex(c=>c._id===n._id);return o===-1?this._layouts[i].push(u):this._layouts[i][o]=u,this}cleanupNode(n){for(let i in n)i[0]==="_"&&i!=="_id"&&delete n[i];return this}}t.GridStackEngine=g,g._idSeq=1},930:function(m,t,p){var w=this&&this.__createBinding||(Object.create?function(E,n,i,u){u===void 0&&(u=i),Object.defineProperty(E,u,{enumerable:!0,get:function(){return n[i]}})}:function(E,n,i,u){u===void 0&&(u=i),E[u]=n[i]}),g=this&&this.__exportStar||function(E,n){for(var i in E)i==="default"||n.hasOwnProperty(i)||w(n,E,i)};Object.defineProperty(t,"__esModule",{value:!0}),g(p(699),t),g(p(593),t),g(p(62),t),g(p(334),t),g(p(270),t),g(p(761),t)},270:function(m,t,p){var w=this&&this.__createBinding||(Object.create?function(c,l,a,d){d===void 0&&(d=a),Object.defineProperty(c,d,{enumerable:!0,get:function(){return l[a]}})}:function(c,l,a,d){d===void 0&&(d=a),c[d]=l[a]}),g=this&&this.__exportStar||function(c,l){for(var a in c)a==="default"||l.hasOwnProperty(a)||w(l,c,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.GridStack=void 0;const E=p(62),n=p(593),i=p(334);g(p(699),t),g(p(593),t),g(p(62),t),g(p(334),t);const u={column:12,minRow:0,maxRow:0,itemClass:"grid-stack-item",placeholderClass:"grid-stack-placeholder",placeholderText:"",handle:".grid-stack-item-content",handleClass:null,styleInHead:!1,cellHeight:"auto",cellHeightThrottle:100,margin:10,auto:!0,minWidth:768,float:!1,staticGrid:!1,animate:!0,alwaysShowResizeHandle:!1,resizable:{autoHide:!0,handles:"se"},draggable:{handle:".grid-stack-item-content",scroll:!1,appendTo:"body"},disableDrag:!1,disableResize:!1,rtl:"auto",removable:!1,removableOptions:{accept:".grid-stack-item"},marginUnit:"px",cellHeightUnit:"px",disableOneColumnMode:!1,oneColumnModeDomSort:!1};class o{constructor(l,a={}){this._gsEventHandler={},this._extraDragRow=0,this.el=l,(a=a||{}).row&&(a.minRow=a.maxRow=a.row,delete a.row);let d=n.Utils.toNumber(l.getAttribute("gs-row")),h=Object.assign(Object.assign({},n.Utils.cloneDeep(u)),{column:n.Utils.toNumber(l.getAttribute("gs-column"))||12,minRow:d||n.Utils.toNumber(l.getAttribute("gs-min-row"))||0,maxRow:d||n.Utils.toNumber(l.getAttribute("gs-max-row"))||0,staticGrid:n.Utils.toBool(l.getAttribute("gs-static"))||!1,_styleSheetClass:"grid-stack-instance-"+(1e4*Math.random()).toFixed(0),alwaysShowResizeHandle:a.alwaysShowResizeHandle||!1,resizable:{autoHide:!a.alwaysShowResizeHandle,handles:"se"},draggable:{handle:(a.handleClass?"."+a.handleClass:a.handle?a.handle:"")||".grid-stack-item-content",scroll:!1,appendTo:"body"},removableOptions:{accept:"."+(a.itemClass||"grid-stack-item")}});l.getAttribute("gs-animate")&&(h.animate=n.Utils.toBool(l.getAttribute("gs-animate"))),this.opts=n.Utils.defaults(a,h),a=null,this.initMargin(),this.opts.column!==1&&!this.opts.disableOneColumnMode&&this._widthOrContainer()<=this.opts.minWidth&&(this._prevColumn=this.opts.column,this.opts.column=1),this.opts.rtl==="auto"&&(this.opts.rtl=l.style.direction==="rtl"),this.opts.rtl&&this.el.classList.add("grid-stack-rtl");let v=n.Utils.closestByClass(this.el,u.itemClass);if(v&&v.gridstackNode&&(this.opts._isNested=v.gridstackNode,this.opts._isNested.subGrid=this,this.el.classList.add("grid-stack-nested")),this._isAutoCellHeight=this.opts.cellHeight==="auto",this._isAutoCellHeight||this.opts.cellHeight==="initial"?this.cellHeight(void 0,!1):(typeof this.opts.cellHeight=="number"&&this.opts.cellHeightUnit&&this.opts.cellHeightUnit!==u.cellHeightUnit&&(this.opts.cellHeight=this.opts.cellHeight+this.opts.cellHeightUnit,delete this.opts.cellHeightUnit),this.cellHeight(this.opts.cellHeight,!1)),this.el.classList.add(this.opts._styleSheetClass),this._setStaticClass(),this.engine=new E.GridStackEngine({column:this.opts.column,float:this.opts.float,maxRow:this.opts.maxRow,onChange:C=>{let k=0;this.engine.nodes.forEach(j=>{k=Math.max(k,j.y+j.h)}),C.forEach(j=>{let G=j.el;j._removeDOM?(G&&G.remove(),delete j._removeDOM):this._writePosAttr(G,j)}),this._updateStyles(!1,k)}}),this.opts.auto){this.batchUpdate();let C=[];this.getGridItems().forEach(k=>{let j=parseInt(k.getAttribute("gs-x")),G=parseInt(k.getAttribute("gs-y"));C.push({el:k,i:(Number.isNaN(j)?1e3:j)+(Number.isNaN(G)?1e3:G)*this.opts.column})}),C.sort((k,j)=>k.i-j.i).forEach(k=>this._prepareElement(k.el)),this.commit()}this.setAnimation(this.opts.animate),this._updateStyles(),this.opts.column!=12&&this.el.classList.add("grid-stack-"+this.opts.column),this.opts.dragIn&&o.setupDragIn(this.opts.dragIn,this.opts.dragInOptions),delete this.opts.dragIn,delete this.opts.dragInOptions,this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateWindowResizeEvent()}static init(l={},a=".grid-stack"){let d=o.getGridElement(a);return d?(d.gridstack||(d.gridstack=new o(d,n.Utils.cloneDeep(l))),d.gridstack):(console.error(typeof a=="string"?'GridStack.initAll() no grid was found with selector "'+a+`" - element missing or wrong selector ?
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(l={},a=".grid-stack"){let d=[];return o.getGridElements(a).forEach(h=>{h.gridstack||(h.gridstack=new o(h,n.Utils.cloneDeep(l)),delete l.dragIn,delete l.dragInOptions),d.push(h.gridstack)}),d.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+a+`" - element missing or wrong selector ?
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`),d}static addGrid(l,a={}){if(!l)return null;let d=l;if(!l.classList.contains("grid-stack")){let v=document.implementation.createHTMLDocument();v.body.innerHTML=`<div class="grid-stack ${a.class||""}"></div>`,d=v.body.children[0],l.appendChild(d)}let h=o.init(a,d);if(h.opts.children){let v=h.opts.children;delete h.opts.children,h.load(v)}return h}get placeholder(){if(!this._placeholder){let l=document.createElement("div");l.className="placeholder-content",this.opts.placeholderText&&(l.innerHTML=this.opts.placeholderText),this._placeholder=document.createElement("div"),this._placeholder.classList.add(this.opts.placeholderClass,u.itemClass,this.opts.itemClass),this.placeholder.appendChild(l)}return this._placeholder}addWidget(l,a){if(arguments.length>2){console.warn("gridstack.ts: `addWidget(el, x, y, width...)` is deprecated. Use `addWidget({x, y, w, content, ...})`. It will be removed soon");let k=arguments,j=1,G={x:k[j++],y:k[j++],w:k[j++],h:k[j++],autoPosition:k[j++],minW:k[j++],maxW:k[j++],minH:k[j++],maxH:k[j++],id:k[j++]};return this.addWidget(l,G)}let d;if(typeof l=="string"){let k=document.implementation.createHTMLDocument();k.body.innerHTML=l,d=k.body.children[0]}else if(arguments.length===0||arguments.length===1&&((h=l).x!==void 0||h.y!==void 0||h.w!==void 0||h.h!==void 0||h.content!==void 0)){let k=l&&l.content||"";a=l;let j=document.implementation.createHTMLDocument();j.body.innerHTML=`<div class="grid-stack-item ${this.opts.itemClass||""}"><div class="grid-stack-item-content">${k}</div></div>`,d=j.body.children[0]}else d=l;var h;let v=this._readAttr(d);a=n.Utils.cloneDeep(a)||{},n.Utils.defaults(a,v);let C=this.engine.prepareNode(a);if(this._writeAttr(d,a),this._insertNotAppend?this.el.prepend(d):this.el.appendChild(d),this._prepareElement(d,!0,a),this._updateContainerHeight(),C.subGrid&&!C.subGrid.el){let k=C.el.querySelector(".grid-stack-item-content");C.subGrid=o.addGrid(k,C.subGrid)}return this._triggerAddEvent(),this._triggerChangeEvent(),d}save(l=!0,a=!1){let d=this.engine.save(l);if(d.forEach(h=>{if(l&&h.el&&!h.subGrid){let v=h.el.querySelector(".grid-stack-item-content");h.content=v?v.innerHTML:void 0,h.content||delete h.content}else l||delete h.content,h.subGrid&&(h.subGrid=h.subGrid.save(l,!0));delete h.el}),a){let h=n.Utils.cloneDeep(this.opts);return h.marginBottom===h.marginTop&&h.marginRight===h.marginLeft&&h.marginTop===h.marginRight&&(h.margin=h.marginTop,delete h.marginTop,delete h.marginRight,delete h.marginBottom,delete h.marginLeft),h.rtl===(this.el.style.direction==="rtl")&&(h.rtl="auto"),this._isAutoCellHeight&&(h.cellHeight="auto"),n.Utils.removeInternalAndSame(h,u),h.children=d,h}return d}load(l,a=!0){let d=o.Utils.sort([...l],-1,this._prevColumn||this.opts.column);this._insertNotAppend=!0,this._prevColumn&&this._prevColumn!==this.opts.column&&d.some(v=>v.x+v.w>this.opts.column)&&(this._ignoreLayoutsNodeChange=!0,this.engine.cacheLayout(d,this._prevColumn,!0));let h=[];return this.batchUpdate(),a&&[...this.engine.nodes].forEach(v=>{d.find(C=>v.id===C.id)||(typeof a=="function"?a(this,v,!1):(h.push(v),this.removeWidget(v.el,!0,!1)))}),d.forEach(v=>{let C=v.id||v.id===0?this.engine.nodes.find(k=>k.id===v.id):void 0;if(C){if(this.update(C.el,v),v.subGrid&&v.subGrid.children){let k=C.el.querySelector(".grid-stack");k&&k.gridstack&&(k.gridstack.load(v.subGrid.children),this._insertNotAppend=!0)}}else a&&(v=typeof a=="function"?a(this,v,!0).gridstackNode:this.addWidget(v).gridstackNode)}),this.engine.removedNodes=h,this.commit(),delete this._ignoreLayoutsNodeChange,delete this._insertNotAppend,this}batchUpdate(){return this.engine.batchUpdate(),this}getCellHeight(l=!1){return!this.opts.cellHeight||this.opts.cellHeight==="auto"||l&&this.opts.cellHeightUnit&&this.opts.cellHeightUnit!=="px"?Math.round(this.el.getBoundingClientRect().height)/parseInt(this.el.getAttribute("gs-current-row")):this.opts.cellHeight}cellHeight(l,a=!0){if(a&&l!==void 0&&this._isAutoCellHeight!==(l==="auto")&&(this._isAutoCellHeight=l==="auto",this._updateWindowResizeEvent()),l!=="initial"&&l!=="auto"||(l=void 0),l===void 0){let h=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;l=this.cellWidth()+h}let d=n.Utils.parseHeight(l);return this.opts.cellHeightUnit===d.unit&&this.opts.cellHeight===d.h||(this.opts.cellHeightUnit=d.unit,this.opts.cellHeight=d.h,a&&this._updateStyles(!0,this.getRow())),this}cellWidth(){return this._widthOrContainer()/this.opts.column}_widthOrContainer(){return this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}commit(){return this.engine.commit(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent(),this}compact(){return this.engine.compact(),this._triggerChangeEvent(),this}column(l,a="moveScale"){if(this.opts.column===l)return this;let d,h=this.opts.column;return l===1?this._prevColumn=h:delete this._prevColumn,this.el.classList.remove("grid-stack-"+h),this.el.classList.add("grid-stack-"+l),this.opts.column=this.engine.column=l,l===1&&this.opts.oneColumnModeDomSort&&(d=[],this.getGridItems().forEach(v=>{v.gridstackNode&&d.push(v.gridstackNode)}),d.length||(d=void 0)),this.engine.updateNodeWidths(h,l,d,a),this._isAutoCellHeight&&this.cellHeight(),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(l=>l.matches("."+this.opts.itemClass)&&!l.matches("."+this.opts.placeholderClass))}destroy(l=!0){if(this.el)return this._updateWindowResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),l?this.el.parentNode.removeChild(this.el):(this.removeAll(l),this.el.classList.remove(this.opts._styleSheetClass)),this._removeStylesheet(),this.el.removeAttribute("gs-current-row"),delete this.opts._isNested,delete this.opts,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(l){return this.engine.float=l,this._triggerChangeEvent(),this}getFloat(){return this.engine.float}getCellFromPixel(l,a=!1){let d,h=this.el.getBoundingClientRect();d=a?{top:h.top+document.documentElement.scrollTop,left:h.left}:{top:this.el.offsetTop,left:this.el.offsetLeft};let v=l.left-d.left,C=l.top-d.top,k=h.width/this.opts.column,j=h.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(v/k),y:Math.floor(C/j)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow)}isAreaEmpty(l,a,d,h){return this.engine.isAreaEmpty(l,a,d,h)}makeWidget(l){let a=o.getElement(l);return this._prepareElement(a,!0),this._updateContainerHeight(),this._triggerAddEvent(),this._triggerChangeEvent(),a}on(l,a){if(l.indexOf(" ")!==-1)return l.split(" ").forEach(d=>this.on(d,a)),this;if(l==="change"||l==="added"||l==="removed"||l==="enable"||l==="disable"){let d=l==="enable"||l==="disable";this._gsEventHandler[l]=d?h=>a(h):h=>a(h,h.detail),this.el.addEventListener(l,this._gsEventHandler[l])}else l==="drag"||l==="dragstart"||l==="dragstop"||l==="resizestart"||l==="resize"||l==="resizestop"||l==="dropped"?this._gsEventHandler[l]=a:console.log("GridStack.on("+l+') event not supported, but you can still use $(".grid-stack").on(...) while jquery-ui is still used internally.');return this}off(l){return l.indexOf(" ")!==-1?(l.split(" ").forEach(a=>this.off(a)),this):(l!=="change"&&l!=="added"&&l!=="removed"&&l!=="enable"&&l!=="disable"||this._gsEventHandler[l]&&this.el.removeEventListener(l,this._gsEventHandler[l]),delete this._gsEventHandler[l],this)}removeWidget(l,a=!0,d=!0){return o.getElements(l).forEach(h=>{if(h.parentElement!==this.el)return;let v=h.gridstackNode;v||(v=this.engine.nodes.find(C=>h===C.el)),v&&(delete h.gridstackNode,i.GridStackDDI.get().remove(h),this.engine.removeNode(v,a,d),a&&h.parentElement&&h.remove())}),d&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this}removeAll(l=!0){return this.engine.nodes.forEach(a=>{delete a.el.gridstackNode,i.GridStackDDI.get().remove(a.el)}),this.engine.removeAll(l),this._triggerRemoveEvent(),this}setAnimation(l){return l?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this}setStatic(l,a=!0){return this.opts.staticGrid===l||(this.opts.staticGrid=l,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(d=>this._prepareDragDropByNode(d)),a&&this._setStaticClass()),this}update(l,a){if(arguments.length>2){console.warn("gridstack.ts: `update(el, x, y, w, h)` is deprecated. Use `update(el, {x, w, content, ...})`. It will be removed soon");let d=arguments,h=1;return a={x:d[h++],y:d[h++],w:d[h++],h:d[h++]},this.update(l,a)}return o.getElements(l).forEach(d=>{if(!d||!d.gridstackNode)return;let h=d.gridstackNode,v=n.Utils.cloneDeep(a);delete v.autoPosition;let C,k=["x","y","w","h"];if(k.some(N=>v[N]!==void 0&&v[N]!==h[N])&&(C={},k.forEach(N=>{C[N]=v[N]!==void 0?v[N]:h[N],delete v[N]})),!C&&(v.minW||v.minH||v.maxW||v.maxH)&&(C={}),v.content){let N=d.querySelector(".grid-stack-item-content");N&&N.innerHTML!==v.content&&(N.innerHTML=v.content),delete v.content}let j=!1,G=!1;for(const N in v)N[0]!=="_"&&h[N]!==v[N]&&(h[N]=v[N],j=!0,G=G||!this.opts.staticGrid&&(N==="noResize"||N==="noMove"||N==="locked"));C&&(this.engine.cleanNodes().beginUpdate(h).moveNode(h,C),this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate()),j&&this._writeAttr(d,h),G&&this._prepareDragDropByNode(h)}),this}margin(l){if(!(typeof l=="string"&&l.split(" ").length>1)){let a=n.Utils.parseHeight(l);if(this.opts.marginUnit===a.unit&&this.opts.margin===a.h)return}return this.opts.margin=l,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this.initMargin(),this._updateStyles(!0),this}getMargin(){return this.opts.margin}willItFit(l){if(arguments.length>1){console.warn("gridstack.ts: `willItFit(x,y,w,h,autoPosition)` is deprecated. Use `willItFit({x, y,...})`. It will be removed soon");let a=arguments,d=0,h={x:a[d++],y:a[d++],w:a[d++],h:a[d++],autoPosition:a[d++]};return this.willItFit(h)}return this.engine.willItFit(l)}_triggerChangeEvent(){if(this.engine.batchMode)return this;let l=this.engine.getDirtyNodes(!0);return l&&l.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(l),this._triggerEvent("change",l)),this.engine.saveInitial(),this}_triggerAddEvent(){return this.engine.batchMode||this.engine.addedNodes&&this.engine.addedNodes.length>0&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(l=>{delete l._dirty}),this._triggerEvent("added",this.engine.addedNodes),this.engine.addedNodes=[]),this}_triggerRemoveEvent(){return this.engine.batchMode||this.engine.removedNodes&&this.engine.removedNodes.length>0&&(this._triggerEvent("removed",this.engine.removedNodes),this.engine.removedNodes=[]),this}_triggerEvent(l,a){let d=a?new CustomEvent(l,{bubbles:!1,detail:a}):new Event(l);return this.el.dispatchEvent(d),this}_removeStylesheet(){return this._styles&&(n.Utils.removeStylesheet(this._styles._id),delete this._styles),this}_updateStyles(l=!1,a){if(l&&this._removeStylesheet(),this._updateContainerHeight(),this.opts.cellHeight===0)return this;let d=this.opts.cellHeight,h=this.opts.cellHeightUnit,v=`.${this.opts._styleSheetClass} > .${this.opts.itemClass}`;if(!this._styles){let C="gridstack-style-"+(1e5*Math.random()).toFixed(),k=this.opts.styleInHead?void 0:this.el.parentNode;if(this._styles=n.Utils.createStylesheet(C,k),!this._styles)return this;this._styles._id=C,this._styles._max=0,n.Utils.addCSSRule(this._styles,v,`min-height: ${d}${h}`);let j=this.opts.marginTop+this.opts.marginUnit,G=this.opts.marginBottom+this.opts.marginUnit,N=this.opts.marginRight+this.opts.marginUnit,T=this.opts.marginLeft+this.opts.marginUnit,A=`${v} > .grid-stack-item-content`,U=`.${this.opts._styleSheetClass} > .grid-stack-placeholder > .placeholder-content`;n.Utils.addCSSRule(this._styles,A,`top: ${j}; right: ${N}; bottom: ${G}; left: ${T};`),n.Utils.addCSSRule(this._styles,U,`top: ${j}; right: ${N}; bottom: ${G}; left: ${T};`),n.Utils.addCSSRule(this._styles,`${v} > .ui-resizable-ne`,`right: ${N}`),n.Utils.addCSSRule(this._styles,`${v} > .ui-resizable-e`,`right: ${N}`),n.Utils.addCSSRule(this._styles,`${v} > .ui-resizable-se`,`right: ${N}; bottom: ${G}`),n.Utils.addCSSRule(this._styles,`${v} > .ui-resizable-nw`,`left: ${T}`),n.Utils.addCSSRule(this._styles,`${v} > .ui-resizable-w`,`left: ${T}`),n.Utils.addCSSRule(this._styles,`${v} > .ui-resizable-sw`,`left: ${T}; bottom: ${G}`)}if((a=a||this._styles._max)>this._styles._max){let C=k=>d*k+h;for(let k=this._styles._max+1;k<=a;k++){let j=C(k);n.Utils.addCSSRule(this._styles,`${v}[gs-y="${k-1}"]`,`top: ${C(k-1)}`),n.Utils.addCSSRule(this._styles,`${v}[gs-h="${k}"]`,`height: ${j}`),n.Utils.addCSSRule(this._styles,`${v}[gs-min-h="${k}"]`,`min-height: ${j}`),n.Utils.addCSSRule(this._styles,`${v}[gs-max-h="${k}"]`,`max-height: ${j}`)}this._styles._max=a}return this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;let l=this.getRow()+this._extraDragRow,a=parseInt(getComputedStyle(this.el)["min-height"]);if(a>0){let v=Math.round(a/this.getCellHeight(!0));l<v&&(l=v)}if(this.el.setAttribute("gs-current-row",String(l)),l===0)return this.el.style.removeProperty("height"),this;let d=this.opts.cellHeight,h=this.opts.cellHeightUnit;return d?(this.el.style.height=l*d+h,this):this}_prepareElement(l,a=!1,d){d||(l.classList.add(this.opts.itemClass),d=this._readAttr(l)),l.gridstackNode=d,d.el=l,d.grid=this;let h=Object.assign({},d);return d=this.engine.addNode(d,a),n.Utils.same(d,h)||this._writeAttr(l,d),this._prepareDragDropByNode(d),this}_writePosAttr(l,a){return a.x!==void 0&&a.x!==null&&l.setAttribute("gs-x",String(a.x)),a.y!==void 0&&a.y!==null&&l.setAttribute("gs-y",String(a.y)),a.w&&l.setAttribute("gs-w",String(a.w)),a.h&&l.setAttribute("gs-h",String(a.h)),this}_writeAttr(l,a){if(!a)return this;this._writePosAttr(l,a);let d={autoPosition:"gs-auto-position",minW:"gs-min-w",minH:"gs-min-h",maxW:"gs-max-w",maxH:"gs-max-h",noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",resizeHandles:"gs-resize-handles"};for(const h in d)a[h]?l.setAttribute(d[h],String(a[h])):l.removeAttribute(d[h]);return this}_readAttr(l){let a={};a.x=n.Utils.toNumber(l.getAttribute("gs-x")),a.y=n.Utils.toNumber(l.getAttribute("gs-y")),a.w=n.Utils.toNumber(l.getAttribute("gs-w")),a.h=n.Utils.toNumber(l.getAttribute("gs-h")),a.maxW=n.Utils.toNumber(l.getAttribute("gs-max-w")),a.minW=n.Utils.toNumber(l.getAttribute("gs-min-w")),a.maxH=n.Utils.toNumber(l.getAttribute("gs-max-h")),a.minH=n.Utils.toNumber(l.getAttribute("gs-min-h")),a.autoPosition=n.Utils.toBool(l.getAttribute("gs-auto-position")),a.noResize=n.Utils.toBool(l.getAttribute("gs-no-resize")),a.noMove=n.Utils.toBool(l.getAttribute("gs-no-move")),a.locked=n.Utils.toBool(l.getAttribute("gs-locked")),a.resizeHandles=l.getAttribute("gs-resize-handles"),a.id=l.getAttribute("gs-id");for(const d in a){if(!a.hasOwnProperty(d))return;a[d]||a[d]===0||delete a[d]}return a}_setStaticClass(){let l=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...l),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...l),this.el.removeAttribute("gs-static")),this}onParentResize(){if(!this.el||!this.el.clientWidth)return;let l=!this.opts.disableOneColumnMode&&this.el.clientWidth<=this.opts.minWidth,a=!1;return this.opts.column===1!==l&&(a=!0,this.opts.animate&&this.setAnimation(!1),this.column(l?1:this._prevColumn),this.opts.animate&&this.setAnimation(!0)),this._isAutoCellHeight&&(!a&&this.opts.cellHeightThrottle?(this._cellHeightThrottle||(this._cellHeightThrottle=n.Utils.throttle(()=>this.cellHeight(),this.opts.cellHeightThrottle)),this._cellHeightThrottle()):this.cellHeight()),this.engine.nodes.forEach(d=>{d.subGrid&&d.subGrid.onParentResize()}),this}_updateWindowResizeEvent(l=!1){const a=(this._isAutoCellHeight||!this.opts.disableOneColumnMode)&&!this.opts._isNested;return l||!a||this._windowResizeBind?!l&&a||!this._windowResizeBind||(window.removeEventListener("resize",this._windowResizeBind),delete this._windowResizeBind):(this._windowResizeBind=this.onParentResize.bind(this),window.addEventListener("resize",this._windowResizeBind)),this}static getElement(l=".grid-stack-item"){return n.Utils.getElement(l)}static getElements(l=".grid-stack-item"){return n.Utils.getElements(l)}static getGridElement(l){return o.getElement(l)}static getGridElements(l){return n.Utils.getElements(l)}initMargin(){let l,a=0,d=[];return typeof this.opts.margin=="string"&&(d=this.opts.margin.split(" ")),d.length===2?(this.opts.marginTop=this.opts.marginBottom=d[0],this.opts.marginLeft=this.opts.marginRight=d[1]):d.length===4?(this.opts.marginTop=d[0],this.opts.marginRight=d[1],this.opts.marginBottom=d[2],this.opts.marginLeft=d[3]):(l=n.Utils.parseHeight(this.opts.margin),this.opts.marginUnit=l.unit,a=this.opts.margin=l.h),this.opts.marginTop===void 0?this.opts.marginTop=a:(l=n.Utils.parseHeight(this.opts.marginTop),this.opts.marginTop=l.h,delete this.opts.margin),this.opts.marginBottom===void 0?this.opts.marginBottom=a:(l=n.Utils.parseHeight(this.opts.marginBottom),this.opts.marginBottom=l.h,delete this.opts.margin),this.opts.marginRight===void 0?this.opts.marginRight=a:(l=n.Utils.parseHeight(this.opts.marginRight),this.opts.marginRight=l.h,delete this.opts.margin),this.opts.marginLeft===void 0?this.opts.marginLeft=a:(l=n.Utils.parseHeight(this.opts.marginLeft),this.opts.marginLeft=l.h,delete this.opts.margin),this.opts.marginUnit=l.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop),this}static setupDragIn(l,a){}movable(l,a){return this}resizable(l,a){return this}disable(){return this}enable(){return this}enableMove(l){return this}enableResize(l){return this}_setupAcceptWidget(){return this}_setupRemoveDrop(){return this}_prepareDragDropByNode(l){return this}_onStartMoving(l,a,d,h,v,C){}_dragOrResize(l,a,d,h,v,C){}_leave(l,a){}}t.GridStack=o,o.Utils=n.Utils,o.Engine=E.GridStackEngine},861:(m,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDBaseImplement=void 0,t.DDBaseImplement=class{constructor(){this._disabled=!1,this._eventRegister={}}get disabled(){return this._disabled}on(p,w){this._eventRegister[p]=w}off(p){delete this._eventRegister[p]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(p,w){if(!this.disabled&&this._eventRegister&&this._eventRegister[p])return this._eventRegister[p](w)}}},311:(m,t,p)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDDraggable=void 0;const w=p(849),g=p(943),E=p(861);class n extends E.DDBaseImplement{constructor(u,o={}){super(),this.dragging=!1,this.ui=()=>{const l=this.el.parentElement.getBoundingClientRect(),a=this.helper.getBoundingClientRect();return{position:{top:a.top-l.top,left:a.left-l.left}}},this.el=u,this.option=o;let c=o.handle.substring(1);this.dragEl=u.classList.contains(c)?u:u.querySelector(o.handle)||u,this._dragStart=this._dragStart.bind(this),this._drag=this._drag.bind(this),this._dragEnd=this._dragEnd.bind(this),this.enable()}on(u,o){super.on(u,o)}off(u){super.off(u)}enable(){super.enable(),this.dragEl.draggable=!0,this.dragEl.addEventListener("dragstart",this._dragStart),this.el.classList.remove("ui-draggable-disabled"),this.el.classList.add("ui-draggable")}disable(u=!1){super.disable(),this.dragEl.removeAttribute("draggable"),this.dragEl.removeEventListener("dragstart",this._dragStart),this.el.classList.remove("ui-draggable"),u||this.el.classList.add("ui-draggable-disabled")}destroy(){this.dragging&&this._dragEnd({}),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(u){return Object.keys(u).forEach(o=>this.option[o]=u[o]),this}_dragStart(u){w.DDManager.dragElement=this,this.helper=this._createHelper(u),this._setupHelperContainmentStyle(),this.dragOffset=this._getDragOffset(u,this.el,this.helperContainment);const o=g.DDUtils.initEvent(u,{target:this.el,type:"dragstart"});this.helper!==this.el?(this._setupDragFollowNodeNotifyStart(o),this._dragFollow(u)):this.dragFollowTimer=window.setTimeout(()=>{delete this.dragFollowTimer,this._setupDragFollowNodeNotifyStart(o)},0),this._cancelDragGhost(u)}_setupDragFollowNodeNotifyStart(u){return this._setupHelperStyle(),document.addEventListener("dragover",this._drag,n.dragEventListenerOption),this.dragEl.addEventListener("dragend",this._dragEnd),this.option.start&&this.option.start(u,this.ui()),this.dragging=!0,this.helper.classList.add("ui-draggable-dragging"),this.triggerEvent("dragstart",u),this}_drag(u){u.preventDefault(),this._dragFollow(u);const o=g.DDUtils.initEvent(u,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(o,this.ui()),this.triggerEvent("drag",o)}_dragEnd(u){if(this.dragFollowTimer)return clearTimeout(this.dragFollowTimer),void delete this.dragFollowTimer;this.paintTimer&&cancelAnimationFrame(this.paintTimer),document.removeEventListener("dragover",this._drag,n.dragEventListenerOption),this.dragEl.removeEventListener("dragend",this._dragEnd),this.dragging=!1,this.helper.classList.remove("ui-draggable-dragging"),this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper===this.el?this._removeHelperStyle():this.helper.remove();const o=g.DDUtils.initEvent(u,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(o),this.triggerEvent("dragstop",o),delete w.DDManager.dragElement,delete this.helper}_createHelper(u){let o=this.el;return typeof this.option.helper=="function"?o=this.option.helper(u):this.option.helper==="clone"&&(o=g.DDUtils.clone(this.el)),document.body.contains(o)||g.DDUtils.appendTo(o,this.option.appendTo==="parent"?this.el.parentNode:this.option.appendTo),o===this.el&&(this.dragElementOriginStyle=n.originStyleProp.map(c=>this.el.style[c])),o}_setupHelperStyle(){return this.helper.style.pointerEvents="none",this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",this.helper.style.willChange="left, top",this.helper.style.transition="none",this.helper.style.position=this.option.basePosition||n.basePosition,this.helper.style.zIndex="1000",setTimeout(()=>{this.helper&&(this.helper.style.transition=null)},0),this}_removeHelperStyle(){let u=this.helper?this.helper.gridstackNode:void 0;return u&&u._isAboutToRemove||n.originStyleProp.forEach(o=>{this.helper.style[o]=this.dragElementOriginStyle[o]||null}),delete this.dragElementOriginStyle,this}_dragFollow(u){this.paintTimer&&cancelAnimationFrame(this.paintTimer),this.paintTimer=requestAnimationFrame(()=>{delete this.paintTimer;const o=this.dragOffset;let c={left:0,top:0};if(this.helper.style.position==="absolute"){const{left:l,top:a}=this.helperContainment.getBoundingClientRect();c={left:l,top:a}}this.helper.style.left=u.clientX+o.offsetLeft-c.left+"px",this.helper.style.top=u.clientY+o.offsetTop-c.top+"px"})}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.option.basePosition!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,window.getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_cancelDragGhost(u){let o=document.createElement("div");return o.style.width="1px",o.style.height="1px",o.style.position="fixed",document.body.appendChild(o),u.dataTransfer.setDragImage(o,0,0),setTimeout(()=>document.body.removeChild(o)),u.stopPropagation(),this}_getDragOffset(u,o,c){let l=0,a=0;if(c){const h=document.createElement("div");g.DDUtils.addElStyles(h,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),c.appendChild(h);const v=h.getBoundingClientRect();c.removeChild(h),l=v.left,a=v.top}const d=o.getBoundingClientRect();return{left:d.left,top:d.top,offsetLeft:-u.clientX+d.left-l,offsetTop:-u.clientY+d.top-a,width:d.width,height:d.height}}}t.DDDraggable=n,n.basePosition="absolute",n.dragEventListenerOption=!0,n.originStyleProp=["transition","pointerEvents","position","left","top","opacity","zIndex","width","height","willChange"]},54:(m,t,p)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDDroppable=void 0;const w=p(849),g=p(861),E=p(943);class n extends g.DDBaseImplement{constructor(u,o={}){super(),this.el=u,this.option=o,this._dragEnter=this._dragEnter.bind(this),this._dragOver=this._dragOver.bind(this),this._dragLeave=this._dragLeave.bind(this),this._drop=this._drop.bind(this),this.el.classList.add("ui-droppable"),this.el.addEventListener("dragenter",this._dragEnter),this._setupAccept()}on(u,o){super.on(u,o)}off(u){super.off(u)}enable(){this.disabled&&(super.enable(),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("dragenter",this._dragEnter))}disable(u=!1){this.disabled||(super.disable(),u||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("dragenter",this._dragEnter))}destroy(){this.moving&&this._removeLeaveCallbacks(),this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),delete this.moving,super.destroy()}updateOption(u){return Object.keys(u).forEach(o=>this.option[o]=u[o]),this._setupAccept(),this}_dragEnter(u){if(!this._canDrop()||(u.preventDefault(),this.moving))return;this.moving=!0;const o=E.DDUtils.initEvent(u,{target:this.el,type:"dropover"});this.option.over&&this.option.over(o,this._ui(w.DDManager.dragElement)),this.triggerEvent("dropover",o),this.el.addEventListener("dragover",this._dragOver),this.el.addEventListener("drop",this._drop),this.el.addEventListener("dragleave",this._dragLeave),this.el.classList.add("ui-droppable-over")}_dragOver(u){u.preventDefault(),u.stopPropagation()}_dragLeave(u){if(u.relatedTarget){if(this.el.contains(u.relatedTarget))return}else{const{bottom:o,left:c,right:l,top:a}=this.el.getBoundingClientRect();if(u.x<l&&u.x>c&&u.y<o&&u.y>a)return}if(this._removeLeaveCallbacks(),this.moving){u.preventDefault();const o=E.DDUtils.initEvent(u,{target:this.el,type:"dropout"});this.option.out&&this.option.out(o,this._ui(w.DDManager.dragElement)),this.triggerEvent("dropout",o)}delete this.moving}_drop(u){if(!this.moving)return;u.preventDefault();const o=E.DDUtils.initEvent(u,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(o,this._ui(w.DDManager.dragElement)),this.triggerEvent("drop",o),this._removeLeaveCallbacks(),delete this.moving}_removeLeaveCallbacks(){this.el.removeEventListener("dragleave",this._dragLeave),this.el.classList.remove("ui-droppable-over"),this.moving&&(this.el.removeEventListener("dragover",this._dragOver),this.el.removeEventListener("drop",this._drop))}_canDrop(){return w.DDManager.dragElement&&(!this.accept||this.accept(w.DDManager.dragElement.el))}_setupAccept(){return this.option.accept&&typeof this.option.accept=="string"?this.accept=u=>u.matches(this.option.accept):this.accept=this.option.accept,this}_ui(u){return Object.assign({draggable:u.el},u.ui())}}t.DDDroppable=n},485:(m,t,p)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDElement=void 0;const w=p(97),g=p(311),E=p(54);class n{constructor(u){this.el=u}static init(u){return u.ddElement||(u.ddElement=new n(u)),u.ddElement}on(u,o){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(u)>-1?this.ddDraggable.on(u,o):this.ddDroppable&&["drop","dropover","dropout"].indexOf(u)>-1?this.ddDroppable.on(u,o):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(u)>-1&&this.ddResizable.on(u,o),this}off(u){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(u)>-1?this.ddDraggable.off(u):this.ddDroppable&&["drop","dropover","dropout"].indexOf(u)>-1?this.ddDroppable.off(u):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(u)>-1&&this.ddResizable.off(u),this}setupDraggable(u){return this.ddDraggable?this.ddDraggable.updateOption(u):this.ddDraggable=new g.DDDraggable(this.el,u),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(u){return this.ddResizable?this.ddResizable.updateOption(u):this.ddResizable=new w.DDResizable(this.el,u),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(u){return this.ddDroppable?this.ddDroppable.updateOption(u):this.ddDroppable=new E.DDDroppable(this.el,u),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}}t.DDElement=n},849:(m,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDManager=void 0,t.DDManager=class{}},680:(m,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDResizableHandle=void 0;class p{constructor(g,E,n){this.moving=!1,this.host=g,this.dir=E,this.option=n,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._init()}_init(){const g=document.createElement("div");return g.classList.add("ui-resizable-handle"),g.classList.add(`${p.prefix}${this.dir}`),g.style.zIndex="100",g.style.userSelect="none",this.el=g,this.host.appendChild(this.el),this.el.addEventListener("mousedown",this._mouseDown),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(g){g.preventDefault(),this.mouseDownEvent=g,document.addEventListener("mousemove",this._mouseMove,!0),document.addEventListener("mouseup",this._mouseUp)}_mouseMove(g){let E=this.mouseDownEvent;!this.moving&&Math.abs(g.x-E.x)+Math.abs(g.y-E.y)>2?(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent)):this.moving&&this._triggerEvent("move",g)}_mouseUp(g){this.moving&&this._triggerEvent("stop",g),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp),delete this.moving,delete this.mouseDownEvent}_triggerEvent(g,E){return this.option[g]&&this.option[g](E),this}}t.DDResizableHandle=p,p.prefix="ui-resizable-"},97:(m,t,p)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDResizable=void 0;const w=p(680),g=p(861),E=p(943),n=p(593);class i extends g.DDBaseImplement{constructor(o,c={}){super(),this._showHandlers=()=>{this.el.classList.remove("ui-resizable-autohide")},this._hideHandlers=()=>{this.el.classList.add("ui-resizable-autohide")},this._ui=()=>{const l=this.el.parentElement.getBoundingClientRect(),a={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},d=this.temporalRect||a;return{position:{left:d.left-l.left,top:d.top-l.top},size:{width:d.width,height:d.height}}},this.el=o,this.option=c,this.enable(),this._setupAutoHide(),this._setupHandlers()}on(o,c){super.on(o,c)}off(o){super.off(o)}enable(){super.enable(),this.el.classList.add("ui-resizable"),this.el.classList.remove("ui-resizable-disabled")}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this.el.classList.remove("ui-resizable")}destroy(){this._removeHandlers(),this.option.autoHide&&(this.el.removeEventListener("mouseover",this._showHandlers),this.el.removeEventListener("mouseout",this._hideHandlers)),this.el.classList.remove("ui-resizable"),delete this.el,super.destroy()}updateOption(o){let c=o.handles&&o.handles!==this.option.handles,l=o.autoHide&&o.autoHide!==this.option.autoHide;return Object.keys(o).forEach(a=>this.option[a]=o[a]),c&&(this._removeHandlers(),this._setupHandlers()),l&&this._setupAutoHide(),this}_setupAutoHide(){return this.option.autoHide?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._showHandlers),this.el.addEventListener("mouseout",this._hideHandlers)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._showHandlers),this.el.removeEventListener("mouseout",this._hideHandlers)),this}_setupHandlers(){let o=this.option.handles||"e,s,se";return o==="all"&&(o="n,e,s,w,se,sw,ne,nw"),this.handlers=o.split(",").map(c=>c.trim()).map(c=>new w.DDResizableHandle(this.el,c,{start:l=>{this._resizeStart(l)},stop:l=>{this._resizeStop(l)},move:l=>{this._resizing(l,c)}})),this}_resizeStart(o){this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=n.Utils.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.startEvent=o,this._setupHelper(),this._applyChange();const c=E.DDUtils.initEvent(o,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(c,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",c),this}_resizing(o,c){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(o,c),this._applyChange();const l=E.DDUtils.initEvent(o,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(l,this._ui()),this.triggerEvent("resize",l),this}_resizeStop(o){const c=E.DDUtils.initEvent(o,{type:"resizestop",target:this.el});return this.option.stop&&this.option.stop(c),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",c),this._cleanHelper(),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){return this.elOriginStyleVal=i._originStyleProp.map(o=>this.el.style[o]),this.parentOriginStylePosition=this.el.parentElement.style.position,window.getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position=this.option.basePosition||"absolute",this.el.style.opacity="0.8",this.el.style.zIndex="1000",this}_cleanHelper(){return i._originStyleProp.forEach((o,c)=>{this.el.style[o]=this.elOriginStyleVal[c]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(o,c){const l=this.startEvent,a={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},d=o.clientX-l.clientX,h=o.clientY-l.clientY;c.indexOf("e")>-1?a.width+=d:c.indexOf("w")>-1&&(a.width-=d,a.left+=d),c.indexOf("s")>-1?a.height+=h:c.indexOf("n")>-1&&(a.height-=h,a.top+=h);const v=this._constrainSize(a.width,a.height);return Math.round(a.width)!==Math.round(v.width)&&(c.indexOf("w")>-1&&(a.left+=a.width-v.width),a.width=v.width),Math.round(a.height)!==Math.round(v.height)&&(c.indexOf("n")>-1&&(a.top+=a.height-v.height),a.height=v.height),a}_constrainSize(o,c){const l=this.option.maxWidth||Number.MAX_SAFE_INTEGER,a=this.option.minWidth||o,d=this.option.maxHeight||Number.MAX_SAFE_INTEGER,h=this.option.minHeight||c;return{width:Math.min(l,Math.max(a,o)),height:Math.min(d,Math.max(h,c))}}_applyChange(){let o={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const c=this.el.parentElement,{left:l,top:a}=c.getBoundingClientRect();o={left:l,top:a,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(c=>{const l=this.temporalRect[c];this.el.style[c]=l-o[c]+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(o=>o.destroy()),delete this.handlers,this}}t.DDResizable=i,i._originStyleProp=["width","height","position","left","top","opacity","zIndex"]},943:(m,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DDUtils=void 0;class p{static clone(g){const E=g.cloneNode(!0);return E.removeAttribute("id"),E}static appendTo(g,E){let n;n=typeof E=="string"?document.querySelector(E):E,n&&n.appendChild(g)}static setPositionRelative(g){/^(?:r|a|f)/.test(window.getComputedStyle(g).position)||(g.style.position="relative")}static addElStyles(g,E){if(E instanceof Object)for(const n in E)E.hasOwnProperty(n)&&(Array.isArray(E[n])?E[n].forEach(i=>{g.style[n]=i}):g.style[n]=E[n])}static initEvent(g,E){const n={type:E.type},i={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:E.target?E.target:g.target};return g.dataTransfer&&(n.dataTransfer=g.dataTransfer),["altKey","ctrlKey","metaKey","shiftKey"].forEach(u=>n[u]=g[u]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(u=>n[u]=g[u]),Object.assign(Object.assign({},n),i)}}t.DDUtils=p,p.isEventSupportPassiveOption=(()=>{let w=!1,g=()=>{};return document.addEventListener("test",g,{get passive(){return w=!0,!0}}),document.removeEventListener("test",g),w})()},761:function(m,t,p){var w=this&&this.__createBinding||(Object.create?function(c,l,a,d){d===void 0&&(d=a),Object.defineProperty(c,d,{enumerable:!0,get:function(){return l[a]}})}:function(c,l,a,d){d===void 0&&(d=a),c[d]=l[a]}),g=this&&this.__exportStar||function(c,l){for(var a in c)a==="default"||l.hasOwnProperty(a)||w(l,c,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackDDNative=void 0;const E=p(849),n=p(485),i=p(21),u=p(593);g(p(21),t);class o extends i.GridStackDD{resizable(l,a,d,h){return this._getDDElements(l).forEach(v=>{if(a==="disable"||a==="enable")v.ddResizable&&v.ddResizable[a]();else if(a==="destroy")v.ddResizable&&v.cleanResizable();else if(a==="option")v.setupResizable({[d]:h});else{const C=v.el.gridstackNode.grid;let k=v.el.getAttribute("gs-resize-handles")?v.el.getAttribute("gs-resize-handles"):C.opts.resizable.handles;v.setupResizable(Object.assign(Object.assign(Object.assign({},C.opts.resizable),{handles:k}),{start:a.start,stop:a.stop,resize:a.resize}))}}),this}draggable(l,a,d,h){return this._getDDElements(l).forEach(v=>{if(a==="disable"||a==="enable")v.ddDraggable&&v.ddDraggable[a]();else if(a==="destroy")v.ddDraggable&&v.cleanDraggable();else if(a==="option")v.setupDraggable({[d]:h});else{const C=v.el.gridstackNode.grid;v.setupDraggable(Object.assign(Object.assign({},C.opts.draggable),{containment:C.opts._isNested&&!C.opts.dragOut?C.el.parentElement:C.opts.draggable.containment||null,start:a.start,stop:a.stop,drag:a.drag}))}}),this}dragIn(l,a){return this._getDDElements(l).forEach(d=>d.setupDraggable(a)),this}droppable(l,a,d,h){return typeof a.accept!="function"||a._accept||(a._accept=a.accept,a.accept=v=>a._accept(v)),this._getDDElements(l).forEach(v=>{a==="disable"||a==="enable"?v.ddDroppable&&v.ddDroppable[a]():a==="destroy"?v.ddDroppable&&v.cleanDroppable():a==="option"?v.setupDroppable({[d]:h}):v.setupDroppable(a)}),this}isDroppable(l){return!(!(l&&l.ddElement&&l.ddElement.ddDroppable)||l.ddElement.ddDroppable.disabled)}isDraggable(l){return!(!(l&&l.ddElement&&l.ddElement.ddDraggable)||l.ddElement.ddDraggable.disabled)}isResizable(l){return!(!(l&&l.ddElement&&l.ddElement.ddResizable)||l.ddElement.ddResizable.disabled)}on(l,a,d){return this._getDDElements(l).forEach(h=>h.on(a,v=>{d(v,E.DDManager.dragElement?E.DDManager.dragElement.el:v.target,E.DDManager.dragElement?E.DDManager.dragElement.helper:null)})),this}off(l,a){return this._getDDElements(l).forEach(d=>d.off(a)),this}_getDDElements(l,a=!0){let d=u.Utils.getElements(l);if(!d.length)return[];let h=d.map(v=>v.ddElement||(a?n.DDElement.init(v):null));return a||h.filter(v=>v),h}}t.GridStackDDNative=o,i.GridStackDD.registerPlugin(o)},699:(m,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},593:(m,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.obsoleteAttr=t.obsoleteOptsDel=t.obsoleteOpts=t.obsolete=void 0,t.obsolete=function(w,g,E,n,i){let u=(...o)=>(console.warn("gridstack.js: Function `"+E+"` is deprecated in "+i+" and has been replaced with `"+n+"`. It will be **completely** removed in v1.0"),g.apply(w,o));return u.prototype=g.prototype,u},t.obsoleteOpts=function(w,g,E,n){w[g]!==void 0&&(w[E]=w[g],console.warn("gridstack.js: Option `"+g+"` is deprecated in "+n+" and has been replaced with `"+E+"`. It will be **completely** removed in v1.0"))},t.obsoleteOptsDel=function(w,g,E,n){w[g]!==void 0&&console.warn("gridstack.js: Option `"+g+"` is deprecated in "+E+n)},t.obsoleteAttr=function(w,g,E,n){let i=w.getAttribute(g);i!==null&&(w.setAttribute(E,i),console.warn("gridstack.js: attribute `"+g+"`="+i+" is deprecated on this object in "+n+" and has been replaced with `"+E+"`. It will be **completely** removed in v1.0"))};class p{static getElements(g){if(typeof g=="string"){let E=document.querySelectorAll(g);return E.length||g[0]==="."||g[0]==="#"||(E=document.querySelectorAll("."+g),E.length||(E=document.querySelectorAll("#"+g))),Array.from(E)}return[g]}static getElement(g){if(typeof g=="string"){if(!g.length)return null;if(g[0]==="#")return document.getElementById(g.substring(1));if(g[0]==="."||g[0]==="[")return document.querySelector(g);if(!isNaN(+g[0]))return document.getElementById(g);let E=document.querySelector(g);return E||(E=document.getElementById(g)),E||(E=document.querySelector("."+g)),E}return g}static isIntercepted(g,E){return!(g.y>=E.y+E.h||g.y+g.h<=E.y||g.x+g.w<=E.x||g.x>=E.x+E.w)}static isTouching(g,E){return p.isIntercepted(g,{x:E.x-.5,y:E.y-.5,w:E.w+1,h:E.h+1})}static sort(g,E,n){return n=n||g.reduce((i,u)=>Math.max(u.x+u.w,i),0)||12,E===-1?g.sort((i,u)=>u.x+u.y*n-(i.x+i.y*n)):g.sort((i,u)=>i.x+i.y*n-(u.x+u.y*n))}static createStylesheet(g,E){let n=document.createElement("style");return n.setAttribute("type","text/css"),n.setAttribute("gs-style-id",g),n.styleSheet?n.styleSheet.cssText="":n.appendChild(document.createTextNode("")),E?E.insertBefore(n,E.firstChild):(E=document.getElementsByTagName("head")[0]).appendChild(n),n.sheet}static removeStylesheet(g){let E=document.querySelector("STYLE[gs-style-id="+g+"]");E&&E.parentNode&&E.remove()}static addCSSRule(g,E,n){typeof g.addRule=="function"?g.addRule(E,n):typeof g.insertRule=="function"&&g.insertRule(`${E}{${n}}`)}static toBool(g){return typeof g=="boolean"?g:typeof g=="string"?!((g=g.toLowerCase())===""||g==="no"||g==="false"||g==="0"):!!g}static toNumber(g){return g===null||g.length===0?void 0:Number(g)}static parseHeight(g){let E,n="px";if(typeof g=="string"){let i=g.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);if(!i)throw new Error("Invalid height");n=i[2]||"px",E=parseFloat(i[1])}else E=g;return{h:E,unit:n}}static defaults(g,...E){return E.forEach(n=>{for(const i in n){if(!n.hasOwnProperty(i))return;g[i]===null||g[i]===void 0?g[i]=n[i]:typeof n[i]=="object"&&typeof g[i]=="object"&&this.defaults(g[i],n[i])}}),g}static same(g,E){if(typeof g!="object")return g==E;if(typeof g!=typeof E||Object.keys(g).length!==Object.keys(E).length)return!1;for(const n in g)if(g[n]!==E[n])return!1;return!0}static copyPos(g,E,n=!1){return g.x=E.x,g.y=E.y,g.w=E.w,g.h=E.h,n&&(E.minW&&(g.minW=E.minW),E.minH&&(g.minH=E.minH),E.maxW&&(g.maxW=E.maxW),E.maxH&&(g.maxH=E.maxH)),g}static samePos(g,E){return g&&E&&g.x===E.x&&g.y===E.y&&g.w===E.w&&g.h===E.h}static removeInternalAndSame(g,E){if(typeof g=="object"&&typeof E=="object")for(let n in g){let i=g[n];if(n[0]==="_"||i===E[n])delete g[n];else if(i&&typeof i=="object"&&E[n]!==void 0){for(let u in i)i[u]!==E[n][u]&&u[0]!=="_"||delete i[u];Object.keys(i).length||delete g[n]}}}static closestByClass(g,E){for(;g=g.parentElement;)if(g.classList.contains(E))return g;return null}static throttle(g,E){let n=!1;return(...i)=>{n||(n=!0,setTimeout(()=>{g(...i),n=!1},E))}}static removePositioningStyles(g){let E=g.style;E.position&&E.removeProperty("position"),E.left&&E.removeProperty("left"),E.top&&E.removeProperty("top"),E.width&&E.removeProperty("width"),E.height&&E.removeProperty("height")}static getScrollElement(g){if(!g)return document.scrollingElement;const E=getComputedStyle(g);return/(auto|scroll)/.test(E.overflow+E.overflowY)?g:this.getScrollElement(g.parentElement)}static updateScrollPosition(g,E,n){let i=g.getBoundingClientRect(),u=window.innerHeight||document.documentElement.clientHeight;if(i.top<0||i.bottom>u){let o=i.bottom-u,c=i.top,l=this.getScrollElement(g);if(l!==null){let a=l.scrollTop;i.top<0&&n<0?g.offsetHeight>u?l.scrollTop+=n:l.scrollTop+=Math.abs(c)>Math.abs(n)?n:c:n>0&&(g.offsetHeight>u?l.scrollTop+=n:l.scrollTop+=o>n?n:o),E.top+=l.scrollTop-a}}}static updateScrollResize(g,E,n){const i=this.getScrollElement(E),u=i.clientHeight,o=i===this.getScrollElement()?0:i.getBoundingClientRect().top,c=g.clientY-o,l=c>u-n;c<n?i.scrollBy({behavior:"smooth",top:c-n}):l&&i.scrollBy({behavior:"smooth",top:n-(u-c)})}static clone(g){return g==null||typeof g!="object"?g:g instanceof Array?[...g]:Object.assign({},g)}static cloneDeep(g){const E=p.clone(g);for(const n in E)E.hasOwnProperty(n)&&typeof E[n]=="object"&&n.substring(0,2)!=="__"&&(E[n]=p.cloneDeep(g[n]));return E}}t.Utils=p}},P={},B=function m(t){var p=P[t];if(p!==void 0)return p.exports;var w=P[t]={exports:{}};return b[t].call(w.exports,w,w.exports,m),w.exports}(930);return B.GridStack})()})})(Ml);var jd=Ml.exports;const Wd=ba(jd);class Ud{constructor(M,b="user",P=null,B=null){this._webcamElement=M,this._webcamElement.width=this._webcamElement.width||640,this._webcamElement.height=this._webcamElement.height||360,this._facingMode=b,this._webcamList=[],this._streamList=[],this._selectedDeviceId="",this._canvasElement=P,this._snapSoundElement=B}get facingMode(){return this._facingMode}set facingMode(M){this._facingMode=M}get webcamList(){return this._webcamList}get webcamCount(){return this._webcamList.length}get selectedDeviceId(){return this._selectedDeviceId}getVideoInputs(M){return this._webcamList=[],M.forEach(b=>{b.kind==="videoinput"&&this._webcamList.push(b)}),this._webcamList.length==1&&(this._facingMode="user"),this._webcamList}getMediaConstraints(){var M={};this._selectedDeviceId==""?M.facingMode=this._facingMode:M.deviceId={exact:this._selectedDeviceId},M.width={exact:this._webcamElement.width},M.height={exact:this._webcamElement.height};var b={video:M,audio:!1};return b}selectCamera(){for(let M of this._webcamList)if(this._facingMode=="user"&&M.label.toLowerCase().includes("front")||this._facingMode=="enviroment"&&M.label.toLowerCase().includes("back")){this._selectedDeviceId=M.deviceId;break}}flip(){this._facingMode=this._facingMode=="user"?"enviroment":"user",this._webcamElement.style.transform="",this.selectCamera()}async start(M=!0){return new Promise((b,P)=>{this.stop(),navigator.mediaDevices.getUserMedia(this.getMediaConstraints()).then(B=>{this._streamList.push(B),this.info().then(m=>{this.selectCamera(),M?this.stream().then(t=>{b(this._facingMode)}).catch(t=>{P(t)}):b(this._selectedDeviceId)}).catch(m=>{P(m)})}).catch(B=>{P(B)})})}async info(){return new Promise((M,b)=>{navigator.mediaDevices.enumerateDevices().then(P=>{this.getVideoInputs(P),M(this._webcamList)}).catch(P=>{b(P)})})}async stream(){return new Promise((M,b)=>{navigator.mediaDevices.getUserMedia(this.getMediaConstraints()).then(P=>{this._streamList.push(P),this._webcamElement.srcObject=P,this._facingMode=="user"&&(this._webcamElement.style.transform="scale(-1,1)"),this._webcamElement.play(),M(this._facingMode)}).catch(P=>{console.log(P),b(P)})})}stop(){this._streamList.forEach(M=>{M.getTracks().forEach(b=>{b.stop()})})}snap(){if(this._canvasElement!=null){this._snapSoundElement!=null&&this._snapSoundElement.play(),this._canvasElement.height=this._webcamElement.scrollHeight,this._canvasElement.width=this._webcamElement.scrollWidth;let M=this._canvasElement.getContext("2d");return this._facingMode=="user"&&(M.translate(this._canvasElement.width,0),M.scale(-1,1)),M.clearRect(0,0,this._canvasElement.width,this._canvasElement.height),M.drawImage(this._webcamElement,0,0,this._canvasElement.width,this._canvasElement.height),this._canvasElement.toDataURL("image/png")}else throw"canvas element is missing"}}class Vd extends Ud{getVideoInputs(M){const b=super.getVideoInputs(M);return this._facingMode="environment",b}}var Rl={exports:{}};(function(H){(function(M){function b(m,t,p){var w=document.createElement("img"),g;if(w.onerror=function(E){return b.onerror(w,E,m,t,p)},w.onload=function(E){return b.onload(w,E,m,t,p)},typeof m=="string")return b.fetchBlob(m,function(E){E?(m=E,g=b.createObjectURL(m)):(g=m,p&&p.crossOrigin&&(w.crossOrigin=p.crossOrigin)),w.src=g},p),w;if(b.isInstanceOf("Blob",m)||b.isInstanceOf("File",m))return g=w._objectURL=b.createObjectURL(m),g?(w.src=g,w):b.readFile(m,function(E){var n=E.target;n&&n.result?w.src=n.result:t&&t(E)})}var P=M.createObjectURL&&M||M.URL&&URL.revokeObjectURL&&URL||M.webkitURL&&webkitURL;function B(m,t){m._objectURL&&!(t&&t.noRevoke)&&(b.revokeObjectURL(m._objectURL),delete m._objectURL)}b.fetchBlob=function(m,t,p){t()},b.isInstanceOf=function(m,t){return Object.prototype.toString.call(t)==="[object "+m+"]"},b.transform=function(m,t,p,w,g){p(m,g)},b.onerror=function(m,t,p,w,g){B(m,g),w&&w.call(m,t)},b.onload=function(m,t,p,w,g){B(m,g),w&&b.transform(m,g,w,p,{})},b.createObjectURL=function(m){return P?P.createObjectURL(m):!1},b.revokeObjectURL=function(m){return P?P.revokeObjectURL(m):!1},b.readFile=function(m,t,p){if(M.FileReader){var w=new FileReader;if(w.onload=w.onerror=t,p=p||"readAsDataURL",w[p])return w[p](m),w}return!1},H.exports?H.exports=b:M.loadImage=b})(typeof window<"u"&&window||zi)})(Rl);var ra=Rl.exports,_l={exports:{}};(function(H){(function(M){H.exports?M(ra):M(window.loadImage)})(function(M){var b=M.transform;M.transform=function(P,B,m,t,p){b.call(M,M.scale(P,B,p),B,m,t,p)},M.transformCoordinates=function(){},M.getTransformedOptions=function(P,B){var m=B.aspectRatio,t,p,w,g;if(!m)return B;t={};for(p in B)B.hasOwnProperty(p)&&(t[p]=B[p]);return t.crop=!0,w=P.naturalWidth||P.width,g=P.naturalHeight||P.height,w/g>m?(t.maxWidth=g*m,t.maxHeight=g):(t.maxWidth=w,t.maxHeight=w/m),t},M.renderImageToCanvas=function(P,B,m,t,p,w,g,E,n,i){return P.getContext("2d").drawImage(B,m,t,p,w,g,E,n,i),P},M.hasCanvasOption=function(P){return P.canvas||P.crop||!!P.aspectRatio},M.scale=function(P,B,m){B=B||{};var t=document.createElement("canvas"),p=P.getContext||M.hasCanvasOption(B)&&t.getContext,w=P.naturalWidth||P.width,g=P.naturalHeight||P.height,E=w,n=g,i,u,o,c,l,a,d,h,v,C,k;function j(){var N=Math.max((o||E)/E,(c||n)/n);N>1&&(E*=N,n*=N)}function G(){var N=Math.min((i||E)/E,(u||n)/n);N<1&&(E*=N,n*=N)}if(p&&(B=M.getTransformedOptions(P,B,m),d=B.left||0,h=B.top||0,B.sourceWidth?(l=B.sourceWidth,B.right!==void 0&&B.left===void 0&&(d=w-l-B.right)):l=w-d-(B.right||0),B.sourceHeight?(a=B.sourceHeight,B.bottom!==void 0&&B.top===void 0&&(h=g-a-B.bottom)):a=g-h-(B.bottom||0),E=l,n=a),i=B.maxWidth,u=B.maxHeight,o=B.minWidth,c=B.minHeight,p&&i&&u&&B.crop?(E=i,n=u,k=l/a-i/u,k<0?(a=u*l/i,B.top===void 0&&B.bottom===void 0&&(h=(g-a)/2)):k>0&&(l=i*a/u,B.left===void 0&&B.right===void 0&&(d=(w-l)/2))):((B.contain||B.cover)&&(o=i=i||o,c=u=u||c),B.cover?(G(),j()):(j(),G())),p){if(v=B.pixelRatio,v>1&&(t.style.width=E+"px",t.style.height=n+"px",E*=v,n*=v,t.getContext("2d").scale(v,v)),C=B.downsamplingRatio,C>0&&C<1&&E<l&&n<a)for(;l*C>E;)t.width=l*C,t.height=a*C,M.renderImageToCanvas(t,P,d,h,l,a,0,0,t.width,t.height),d=0,h=0,l=t.width,a=t.height,P=document.createElement("canvas"),P.width=l,P.height=a,M.renderImageToCanvas(P,t,0,0,l,a,0,0,l,a);return t.width=E,t.height=n,M.transformCoordinates(t,B),M.renderImageToCanvas(t,P,d,h,l,a,0,0,E,n)}return P.width=E,P.height=n,P}})})(_l);var Gd=_l.exports,Il={exports:{}};(function(H){(function(M){H.exports?M(ra):M(window.loadImage)})(function(M){var b=typeof Blob<"u"&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);M.blobSlice=b&&function(){var B=this.slice||this.webkitSlice||this.mozSlice;return B.apply(this,arguments)},M.metaDataParsers={jpeg:{65505:[],65517:[]}},M.parseMetaData=function(B,m,t,p){t=t||{},p=p||{};var w=this,g=t.maxMetaDataSize||262144,E=!(typeof DataView<"u"&&B&&B.size>=12&&B.type==="image/jpeg"&&M.blobSlice);(E||!M.readFile(M.blobSlice.call(B,0,g),function(n){if(n.target.error){console.log(n.target.error),m(p);return}var i=n.target.result,u=new DataView(i),o=2,c=u.byteLength-4,l=o,a,d,h,v;if(u.getUint16(0)===65496){for(;o<c&&(a=u.getUint16(o),a>=65504&&a<=65519||a===65534);){if(d=u.getUint16(o+2)+2,o+d>u.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if(h=M.metaDataParsers.jpeg[a],h)for(v=0;v<h.length;v+=1)h[v].call(w,u,o,d,p,t);o+=d,l=o}!t.disableImageHead&&l>6&&(i.slice?p.imageHead=i.slice(0,l):p.imageHead=new Uint8Array(i).subarray(0,l))}else console.log("Invalid JPEG file: Missing JPEG marker.");m(p)},"readAsArrayBuffer"))&&m(p)},M.hasMetaOption=function(B){return B&&B.meta};var P=M.transform;M.transform=function(B,m,t,p,w){M.hasMetaOption(m)?M.parseMetaData(p,function(g){P.call(M,B,m,t,p,g)},m,w):P.apply(M,arguments)}})})(Il);var ts=Il.exports,Yd={exports:{}};(function(H){(function(M){H.exports?M(ra,ts):M(window.loadImage)})(function(M){typeof fetch<"u"&&typeof Request<"u"&&(M.fetchBlob=function(b,P,B){if(M.hasMetaOption(B))return fetch(new Request(b,B)).then(function(m){return m.blob()}).then(P).catch(function(m){console.log(m),P()});P()})})})(Yd);var Ol={exports:{}};(function(H){(function(M){H.exports?M(ra,ts):M(window.loadImage)})(function(M){M.ExifMap=function(){return this},M.ExifMap.prototype.map={Orientation:274},M.ExifMap.prototype.get=function(b){return this[b]||this[this.map[b]]},M.getExifThumbnail=function(b,P,B){if(!B||P+B>b.byteLength){console.log("Invalid Exif data: Invalid thumbnail data.");return}return M.createObjectURL(new Blob([b.buffer.slice(P,P+B)]))},M.exifTagTypes={1:{getValue:function(b,P){return b.getUint8(P)},size:1},2:{getValue:function(b,P){return String.fromCharCode(b.getUint8(P))},size:1,ascii:!0},3:{getValue:function(b,P,B){return b.getUint16(P,B)},size:2},4:{getValue:function(b,P,B){return b.getUint32(P,B)},size:4},5:{getValue:function(b,P,B){return b.getUint32(P,B)/b.getUint32(P+4,B)},size:8},9:{getValue:function(b,P,B){return b.getInt32(P,B)},size:4},10:{getValue:function(b,P,B){return b.getInt32(P,B)/b.getInt32(P+4,B)},size:8}},M.exifTagTypes[7]=M.exifTagTypes[1],M.getExifValue=function(b,P,B,m,t,p){var w=M.exifTagTypes[m],g,E,n,i,u,o;if(!w){console.log("Invalid Exif data: Invalid tag type.");return}if(g=w.size*t,E=g>4?P+b.getUint32(B+8,p):B+8,E+g>b.byteLength){console.log("Invalid Exif data: Invalid data offset.");return}if(t===1)return w.getValue(b,E,p);for(n=[],i=0;i<t;i+=1)n[i]=w.getValue(b,E+i*w.size,p);if(w.ascii){for(u="",i=0;i<n.length&&(o=n[i],o!=="\0");i+=1)u+=o;return u}return n},M.parseExifTag=function(b,P,B,m,t){var p=b.getUint16(B,m);t.exif[p]=M.getExifValue(b,P,B,b.getUint16(B+2,m),b.getUint32(B+4,m),m)},M.parseExifTags=function(b,P,B,m,t){var p,w,g;if(B+6>b.byteLength){console.log("Invalid Exif data: Invalid directory offset.");return}if(p=b.getUint16(B,m),w=B+2+12*p,w+4>b.byteLength){console.log("Invalid Exif data: Invalid directory size.");return}for(g=0;g<p;g+=1)this.parseExifTag(b,P,B+2+12*g,m,t);return b.getUint32(w,m)},M.parseExifData=function(b,P,B,m,t){if(!t.disableExif){var p=P+10,w,g,E;if(b.getUint32(P+4)===1165519206){if(p+8>b.byteLength){console.log("Invalid Exif data: Invalid segment size.");return}if(b.getUint16(P+8)!==0){console.log("Invalid Exif data: Missing byte alignment offset.");return}switch(b.getUint16(p)){case 18761:w=!0;break;case 19789:w=!1;break;default:console.log("Invalid Exif data: Invalid byte alignment marker.");return}if(b.getUint16(p+2,w)!==42){console.log("Invalid Exif data: Missing TIFF marker.");return}g=b.getUint32(p+4,w),m.exif=new M.ExifMap,g=M.parseExifTags(b,p,p+g,w,m),g&&!t.disableExifThumbnail&&(E={exif:{}},g=M.parseExifTags(b,p,p+g,w,E),E.exif[513]&&(m.exif.Thumbnail=M.getExifThumbnail(b,p+E.exif[513],E.exif[514]))),m.exif[34665]&&!t.disableExifSub&&M.parseExifTags(b,p,p+m.exif[34665],w,m),m.exif[34853]&&!t.disableExifGps&&M.parseExifTags(b,p,p+m.exif[34853],w,m)}}},M.metaDataParsers.jpeg[65505].push(M.parseExifData)})})(Ol);var Xd=Ol.exports,Kd={exports:{}};(function(H){(function(M){H.exports?M(ra,Xd):M(window.loadImage)})(function(M){M.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},M.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},M.ExifMap.prototype.getText=function(b){var P=this.get(b);switch(b){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[b][P];case"ExifVersion":case"FlashpixVersion":return P?String.fromCharCode(P[0],P[1],P[2],P[3]):void 0;case"ComponentsConfiguration":return P?this.stringValues[b][P[0]]+this.stringValues[b][P[1]]+this.stringValues[b][P[2]]+this.stringValues[b][P[3]]:void 0;case"GPSVersionID":return P?P[0]+"."+P[1]+"."+P[2]+"."+P[3]:void 0}return String(P)},function(b){var P=b.tags,B=b.map,m;for(m in P)P.hasOwnProperty(m)&&(B[P[m]]=m)}(M.ExifMap.prototype),M.ExifMap.prototype.getAll=function(){var b={},P,B;for(P in this)this.hasOwnProperty(P)&&(B=this.tags[P],B&&(b[B]=this.getText(B)));return b}})})(Kd);var kl={exports:{}};(function(H){(function(M){H.exports?M(ra,ts):M(window.loadImage)})(function(M){M.IptcMap=function(){return this},M.IptcMap.prototype.map={ObjectName:5},M.IptcMap.prototype.get=function(b){return this[b]||this[this.map[b]]},M.parseIptcTags=function(b,P,B,m){function t(n,i,u){for(var o="",c=i;c<i+u;c++)o+=String.fromCharCode(n.getUint8(c));return o}for(var p,w,g,E=P;E<P+B;)b.getUint8(E)===28&&b.getUint8(E+1)===2&&(g=b.getUint8(E+2),g in m.iptc.tags&&(w=b.getInt16(E+3),p=t(b,E+5,w),m.iptc.hasOwnProperty(g)?m.iptc[g]instanceof Array?m.iptc[g].push(p):m.iptc[g]=[m.iptc[g],p]:m.iptc[g]=p)),E++},M.parseIptcData=function(b,P,B,m,t){if(!t.disableIptc){for(var p=P+B,w=function(i,u){return i.getUint32(u)===943868237&&i.getUint16(u+4)===1028};P+8<p;){if(w(b,P)){var g=b.getUint8(P+7);g%2!==0&&(g+=1),g===0&&(g=4);var E=P+8+g;if(E>p){console.log("Invalid IPTC data: Invalid segment offset.");break}var n=b.getUint16(P+6+g);if(P+n>p){console.log("Invalid IPTC data: Invalid segment size.");break}return m.iptc=new M.IptcMap,M.parseIptcTags(b,E,n,m)}P++}console.log("No IPTC data at this offset - could be XMP")}},M.metaDataParsers.jpeg[65517].push(M.parseIptcData)})})(kl);var Qd=kl.exports,Zd={exports:{}};(function(H){(function(M){H.exports?M(ra,Qd):M(window.loadImage)})(function(M){M.IptcMap.prototype.tags={3:"ObjectType",4:"ObjectAttribute",5:"ObjectName",7:"EditStatus",8:"EditorialUpdate",10:"Urgency",12:"SubjectRef",15:"Category",20:"SupplCategory",22:"FixtureID",25:"Keywords",26:"ContentLocCode",27:"ContentLocName",30:"ReleaseDate",35:"ReleaseTime",37:"ExpirationDate",38:"ExpirationTime",40:"SpecialInstructions",42:"ActionAdvised",45:"RefService",47:"RefDate",50:"RefNumber",55:"DateCreated",60:"TimeCreated",62:"DigitalCreationDate",63:"DigitalCreationTime",65:"OriginatingProgram",70:"ProgramVersion",75:"ObjectCycle",80:"Byline",85:"BylineTitle",90:"City",92:"Sublocation",95:"State",100:"CountryCode",101:"CountryName",103:"OrigTransRef",105:"Headline",110:"Credit",115:"Source",116:"CopyrightNotice",118:"Contact",120:"Caption",122:"WriterEditor",130:"ImageType",131:"ImageOrientation",135:"LanguageID"},M.IptcMap.prototype.getText=function(b){var P=this.get(b);return String(P)},function(b){var P=b.tags,B=b.map||{},m;for(m in P)P.hasOwnProperty(m)&&(B[P[m]]=m)}(M.IptcMap.prototype),M.IptcMap.prototype.getAll=function(){var b={},P,B;for(P in this)this.hasOwnProperty(P)&&(B=this.tags[P],B&&(b[B]=this.getText(B)));return b}})})(Zd);var Jd={exports:{}};(function(H){(function(M){H.exports?M(ra,Gd,ts):M(window.loadImage)})(function(M){var b=M.hasCanvasOption,P=M.hasMetaOption,B=M.transformCoordinates,m=M.getTransformedOptions;M.hasCanvasOption=function(t){return!!t.orientation||b.call(M,t)},M.hasMetaOption=function(t){return t&&t.orientation===!0||P.call(M,t)},M.transformCoordinates=function(t,p){B.call(M,t,p);var w=t.getContext("2d"),g=t.width,E=t.height,n=t.style.width,i=t.style.height,u=p.orientation;if(!(!u||u>8))switch(u>4&&(t.width=E,t.height=g,t.style.width=i,t.style.height=n),u){case 2:w.translate(g,0),w.scale(-1,1);break;case 3:w.translate(g,E),w.rotate(Math.PI);break;case 4:w.translate(0,E),w.scale(1,-1);break;case 5:w.rotate(.5*Math.PI),w.scale(1,-1);break;case 6:w.rotate(.5*Math.PI),w.translate(0,-E);break;case 7:w.rotate(.5*Math.PI),w.translate(g,-E),w.scale(-1,1);break;case 8:w.rotate(-.5*Math.PI),w.translate(-g,0);break}},M.getTransformedOptions=function(t,p,w){var g=m.call(M,t,p),E=g.orientation,n,i;if(E===!0&&w&&w.exif&&(E=w.exif.get("Orientation")),!E||E>8||E===1)return g;n={};for(i in g)g.hasOwnProperty(i)&&(n[i]=g[i]);switch(n.orientation=E,E){case 2:n.left=g.right,n.right=g.left;break;case 3:n.left=g.right,n.top=g.bottom,n.right=g.left,n.bottom=g.top;break;case 4:n.top=g.bottom,n.bottom=g.top;break;case 5:n.left=g.top,n.top=g.left,n.right=g.bottom,n.bottom=g.right;break;case 6:n.left=g.top,n.top=g.right,n.right=g.bottom,n.bottom=g.left;break;case 7:n.left=g.bottom,n.top=g.right,n.right=g.top,n.bottom=g.left;break;case 8:n.left=g.bottom,n.top=g.left,n.right=g.top,n.bottom=g.right;break}return n.orientation>4&&(n.maxWidth=g.maxHeight,n.maxHeight=g.maxWidth,n.minWidth=g.minHeight,n.minHeight=g.minWidth,n.sourceWidth=g.sourceHeight,n.sourceHeight=g.sourceWidth),n}})})(Jd);var $d=ra;const qd=ba($d);function Al(){let H=null,M={};this.redirect=!1,this.Url=null,this.keyboard=!0,this.Modal=()=>H,this.On=function(E,n){M[E]||(M[E]=[]),M[E].push(n)},this.Off=function(E,n){if(!M[E])return;let i=M[E].indexOf(n);i!==-1&&M[E].splice(i,1),n||(M[E]=[])},this.fireModalEvent=function(E,n){g(E,n)},this.OnOnce=function(E,n){let i=()=>{this.Off(E,i),n.apply(this,arguments)};this.On(E,i)},this.Load=function(E,n,i=!1,u=!0){return this.Url=E,this.redirect=i,this.keyboard=u,new Promise((o,c)=>{w(u),$.ajax({url:E,type:"get",success:l=>{o(l),b(l,this.redirect)},error:l=>{n?setTimeout(()=>{H.modal("hide")}):P(l),c(l)}}),H.content.html(""),H.modal("show")})},this.Submit=function(E){if(E.closest(".modal").length===0)throw"Form element is not inside a modal.";return m(E[0])},this.loadContent=function(E){w();var n='<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>';H.content.html(n),H.content.append(E),H.modal("show")};function b(E,n){H.content.html(E);var i=H.content.find("form");i.addClass("modal-form"),n||i.submit(B)}function P(E){H.content.html(`
                <div class="modal-body" style="font-size: 2em; color: #c92523; text-align: center;">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <i class="fa fa-exclamation-triangle" style="font-size: 5em;" aria-hidden="true"></i>
                    <div style="margin-bottom: -8px;">`+E.statusText+`</div>
                </div>
            `)}function B(E){let n=E.target;$(n).data("redirect")||(E.preventDefault(),m(n))}function m(E){let n=$(E);return new Promise((i,u)=>{t(n),n.find('input[type="submit"], button, a').addClass("disabled-for-submit disabled").prop("disabled",!0),$.ajax({url:n.attr("action"),type:n.attr("method"),data:new FormData(E),dataType:"JSON",processData:!1,contentType:!1,success:o=>{i(o),g("submit",o),H.modal("hide")},error:o=>{u(o),n.find('input[type="submit"], button, a').removeClass("disabled-for-submit disabled").prop("disabled",!1),p(n,o.responseJSON),g("error",o.responseJSON)}})})}function t(E){E.find("input").removeClass("is-invalid"),E.find(".invalid-feedback").remove(),E.find(".form-errors").remove(),E.find("a.has-error").removeClass("has-error")}function p(E,n){if(!n)return;let i="",u=null;if(n.error)i+="<li>"+n.error+`</li>
`;else for(let o in n){let c="";for(let v of n[o])if(typeof v=="object")for(let C in v)c+="<li>"+v[C]+`</li>
`;else c+="<li>"+v+`</li>
`;let l=E.find("#"+o);if(l.length===0){i+=c;continue}let a=$(`
                        <div class="invalid-feedback">
                            <ul class="list-unstyled">
                                `+c+`
                            </ul>
                        </div>
                    `);l.addClass("is-invalid");let d=l.closest(".input-group");d.length>0&&(l=d),l.parent().append(a);let h=l.closest(".tab-pane").attr("id");h&&(u=$('.nav a[href="#'+h+'"]'),u.tab("show"),u.addClass("has-error"))}if(i.length>0){let o=E.find(".form-group");o.length||(o=E.parents().find(".form-horizontal")),o.first().before($(`
                    <div class="alert alert-danger form-errors">
                        <ul class="list-unstyled">
                            `+i+`
                        </ul>
                    </div>
                `));let c=o.closest(".tab-pane").attr("id");c&&(u=$('.nav a[href="#'+c+'"]'),u.tab("show"),u.addClass("has-error"))}E.find(".disabled-for-submit").removeClass("disabled-for-submit disabled")}function w(E=!0){H&&H.remove(),H=$(`
                    <div class="modal fade fade-zoom" tabindex="-1" role="dialog">
                        <div class="modal-flex-container">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content"></div>
                            </div>
                        </div>
                    </div>
                `).modal({backdrop:"static",show:!1,keyboard:E}),$("body").append(H),H.content=H.find(".modal-content"),H.on("show.bs.modal",function(){g("show")}),H.on("hide.bs.modal",function(){g("hide")});var n=function(){var i=!1;return function(u){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(u)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(u.substr(0,4)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i};return n()||H.on("shown.bs.modal",function(){$(document.body).addClass("modal-open"),g("shown"),H.content.find("input[type=number],input[type=text],textarea,select").filter(":first").focus()}),H.on("hidden.bs.modal",function(){$(".modal.show").length>0&&$(document.body).addClass("modal-open"),g("hidden",H)}),H}function g(E,n){if(n=Array.prototype.slice.call(arguments,1),M[E])for(let i of M[E])i.apply(this,n)}}function ec(){let H=new Al;return $(document).on("click","[data-modal]",M=>{M.stopPropagation();let b=$(M.currentTarget),P=b.data("modal");H.Load(P,!1,!!b.data("redirect"))}),H.On("submit",()=>{window.LaravelDataTables&&window.LaravelDataTables.dataTableBuilder.ajax.reload()}),H.On("hidden",M=>{window.destroyModal&&M.remove()}),H}function tc(){var H='<div class="col-xs-1"><button type="button" class="btn btn-danger js-collection-delete-btn"><span class="fa fa-trash"></span></button></div>';$(document).on("click",".js-collection-delete-btn",function(){$(this).closest(".js-collection-child").remove(),$(this).closest(".js-collection-child-exists").remove()}),$(".js-collection-widget.delete .js-collection-child-exists").each(function(){$(this).hasClass("has-delete")||($(this).find(".form-group:last-child").last().append(H),$(this).addClass("has-delete"))}),$(".js-collection-add-btn").click(function(P){P.preventDefault();var B=$(this).parent(".js-collection-container"),m=B.find($(".js-collection-widget [data-prototype]")),t=m.attr("data-prototype");t=t.replace(/__name__/g,m.children().length);var p=$('<div class="js-collection-child"></div>').html(t);p.appendTo(m),b(),M(),B.trigger("item:added")});function M(){$(".js-collection-widget.delete .js-collection-child").each(function(){$(this).hasClass("has-delete")||($(this).find(".form-group:last-child").last().append(H),$(this).addClass("has-delete"))})}function b(){let P=!1;$(".js-member-select").each(function(B){if(searchUrl){var m="js-member-chain-select-"+B;chainSearching&&($(this).parent().find(".form-input-chain").length||$(this).parent().append('<label class="form-input-chain"><input class="include-chain-field '+m+'" type="checkbox"><span>Keten</span></label>')),$(this).select2({dropdownParent:$(this).parent(),minimumInputLength:2,templateResult:function(t){return $(t.text)},templateSelection:function(t){return $(t.text)},ajax:{url:searchUrl,dataType:"json",type:"GET",quietMillis:50,data:function(t){return{term:t,chain:$("."+m).prop("checked")?1:0}},processResults:function(t){return{results:$.map(t,function(p){return{text:"<span>"+p.status+" "+p.text+"</span>",id:p.id}})}}}}),!$(this).val()&&!P&&($(this).select2("open"),P=!0),chainSearching&&$(this).parent().addClass(" form-input--withChain")}}),$("select.select2").each(function(){$(this).select2({dropdownParent:$(this).parent()})})}}function rc(){$(".js-icons-choice-widget").each(function(){let H=$(this);H.select2({dropdownParent:H.closest(".modal"),escapeMarkup:M=>M,matcher:function(M,b){return M.term===void 0||M.term.length===0||(M=M.term.toLowerCase(),b.id.indexOf(M)!==-1||b.text.indexOf(M)!==-1)?b:null}})})}function nc(){$(".js-program-section-container").each(function(){let H=$(this),M=H.data("sections"),b=$(H.data("program")),P=$(H.data("section")),B=!1;b.change(function(){let p=b.val();m(p)});function m(p){let w=M[p]||[];B?P.select2().empty():B=!0,P.select2({dropdownParent:P.closest(".modal"),data:w,placeholder:placeholderName,allowClear:!0})}m(b.val());let t=H.data("section-id");t&&P.val(t).trigger("change")})}window.global||(window.global=window);window.Popper=Vo;window.$=Es;window.jQuery=Es;window.BootBox=ll;window.Pusher=Gl;window.Toastr=Fu;window.Chart=Bu;let Vs=document.head.querySelector('meta[name="pusher-key"]');Vs?window.Echo=new Kl({broadcaster:"pusher",key:Vs.content,encrypted:!0,wsHost:"broadcast.dewi-online.nl",disableStats:!0}):console.error("Pusher token not found");Uu(window,window.$);Yl();window.createEmbeddingContext=wd;window.moment=Od;Gs(()=>import("./nl-cvXTM2UP.js"),__vite__mapDeps([]));window.fullCalendar=Pd;Gs(()=>import("./bootstrap-editable4.min-BzchUbyT.js"),__vite__mapDeps([]));window.GridStack=Wd;window.NoMirrorWebcam=Vd;window.loadImage=qd;window.confetti=ys;const ic=()=>{ys({particleCount:300,startVelocity:80,angle:60,spread:55,origin:{x:0,y:1}}),ys({particleCount:300,startVelocity:80,angle:120,spread:55,origin:{x:1,y:1}})};window.fireConfetti=ic;window.AdminModal=ec();window.AdminModalInstance=Al;window.jsCollection=tc;window.jsIconChoices=rc;window.jsProgramSection=nc;window.getTranslation=function(H){return window.translations[H]?window.translations[H]:H};function ac(){$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}});var H=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;Es.htmlPrefilter=function(m){return m.replace(H,"<$1></$2>")},jsCollection();let M=$("body");window.Toastr.options.closeButton=!0,window.Toastr.options.progressBar=!0,window.Toastr.options.positionClass="toast-bottom-left",M.on("click","[data-method]",function(m){m.preventDefault(),m.stopPropagation();let t=$(this).data("method"),p=$(this).attr("href"),w=$(this).data("confirm"),g=window.confirm_translations||{},E=$(this).data("btn-text")?$(this).data("btn-text"):'<i class="fa fa-trash"></i> '+(g.delete||"Delete"),n=$(this).data("remote"),i=$(this).data("callback");if(!w){c();return}let u;t=="DELETE"?u={cancel:{label:'<i class="fa fa-times"></i> '+(g.cancel||"Cancel")},confirm:{label:E,className:"btn-danger"}}:u={cancel:{label:'<i class="fa fa-times"></i> '+(g.cancel||"Cancel")},confirm:{label:'<i class="fa fa-check"></i> '+(g.confirm||"Confirm")}},ll.confirm({title:$(this).data("title"),message:w,buttons:u,callback:function(l){l&&(n?o(i):c())}});function o(l){$.ajax({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},url:p,method:t,success:function(a){a.status&&($(".js-alert-content").html(a.message),$(".js-alert-type").removeClass(function(d,h){return(h.match(/\balert-\S+/g)||[]).join(" ")}).addClass("alert-"+a.status).show()),l&&window[l]()}})}function c(){$('<form action="'+p+`" method="post">
                       <input type="hidden" name="_token" value="`+$('meta[name="csrf-token"]').attr("content")+`">
                       <input type="hidden" name="_method" value="`+t+`">
                   </form>`).appendTo($("body")).submit()}}),M.on("submit","form:not(.modal-form,.js-datatable-filter-form)",function(){M.find('input[type="submit"], button, a').addClass("disabled-for-submit disabled")}),$.fn.select2.defaults.set("theme","bootstrap"),$.fn.select2.defaults.set("width","100%"),$.fn.select2.defaults.set("language","nl");var b=$.fullCalendar;b&&b.views.agenda&&b.views.basic&&(ps(b.views.agenda),ps(b.views.basic)),b.views.timeline&&ps(b.views.timeline),$(".select2").select2(),$("[data-toggle='tooltip']").tooltip({boundary:"window"}),$(".tooltip-toggle").tooltip({boundary:"window"}),$(".treeview-link").click(function(){$(this).toggleClass("treeview-link--active"),$(this).next().toggleClass("treeview-menu--show")}),$(document).on("click touchstart",".dataTable td",function(m){if(m.stopPropagation(),$(this).children().find("a").length===0){var t=$(this).parent().find(".js-open-url").data("url");t&&(window.location.href=t)}}),$(".treeview-menu li.active").each(function(){$(this).closest(".treeview-menu").addClass("treeview-menu--show")}),$(".main-header-link--sideNav").click(function(){$("body").toggleClass("body--sideNavActive")}),$(".card-header").click(function(){$(this).parent().toggleClass("is-active")}),$(".tab-link").click(function(m){m.preventDefault();var t=$(this).attr("href");$(".member-edit-content-body .tab-pane").hide(),$(".member-edit-content-body").find(t).show(),$("#memberTab a").removeClass("active"),$('#memberTab a[href="'+t+'"]').addClass("active")}),$("#memberTab a").click(function(m){m.preventDefault();var t=$(this).attr("href");$(".member-edit-content-body .tab-pane").hide(),$(".member-edit-content-body").find(t).show(),$("#memberTab a").removeClass("active"),$(this).addClass("active")}),$(".editGrid-sidebar-nav a").click(function(m){m.preventDefault();var t=$(this).attr("href");$(".editGrid-content-body .tab-pane").hide(),$(".editGrid-content-body").find(t).show(),$(".editGrid-sidebar-nav a").removeClass("active"),$(this).addClass("active")}),$(".alert-dismissible").delay(1e4).queue(function(){$(this).addClass("alert--hide")}),$(".js-toggleSideMenu").click(function(m){m.preventDefault(),$(".app-wrapper").toggleClass("app-wrapper--sideNavActive")}),$(".show-password").on("click",function(){var m=$("#password");m.prop("type")==="password"?m.prop("type","text"):m.prop("type","password")}),$(".js-notification-bell").on("click",function(){$("#js-notifications").toggle(),B()});function B(){$.ajax({method:"GET",url:"/notifications",success:function(m){$(".js-notification-items-container").html(m.notifications)}})}window.toggleReadNotification=function(t,p){t.preventDefault(),$.ajax({method:"GET",url:"notifications/read",data:{id:p},success:function(w){w.read?$(`#js-hide-notification-${p}`).find(".fa-circle").removeClass("text-warning").addClass("text-light"):$(`#js-hide-notification-${p}`).find(".fa-circle").removeClass("text-light").addClass("text-warning")}})},window.removeNotification=function(t,p){t.preventDefault(),$.ajax({method:"GET",url:"notifications/dismiss",data:{id:p},success:function(w){$(`#js-hide-notification-${p}`).remove()}})},document.querySelector(".category li.active")&&document.querySelector(".category li.active").closest(".category-items").classList.add("show"),document.querySelectorAll(".category").forEach(m=>{const t=m.querySelector(".category-items");m.addEventListener("click",()=>{t.classList.contains("show")?(t.classList.remove("show"),m.querySelector(".fa").classList.remove("fa-arrow-up"),m.querySelector(".fa").classList.add("fa-arrow-down")):(t.classList.add("show"),m.querySelector(".fa").classList.add("fa-arrow-up"),m.querySelector(".fa").classList.remove("fa-arrow-down"))})})}$(document).ready(ac)});export default oc();
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
//# sourceMappingURL=app-D6m0WXGo.js.map
